@hb-hellotech/hb-ui 2.8.0-beta.1 → 2.8.0-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  import './hb_component_lib.css';
2
- import { defineComponent as te, inject as he, computed as H, reactive as Ve, ref as O, watch as se, onMounted as Fe, createElementBlock as w, openBlock as c, normalizeClass as X, unref as v, createVNode as I, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as R, createBlock as E, createCommentVNode as z, Fragment as ee, renderList as fe, resolveComponent as K, Transition as so, withDirectives as we, mergeProps as ce, createSlots as Ne, renderSlot as J, vShow as ro, nextTick as Me, onUnmounted as je, useTemplateRef as co, provide as Ue, normalizeStyle as de, mergeModels as rt, useModel as jt, withModifiers as Ge, resolveDirective as Wt, useAttrs as uo, useSlots as fo, onBeforeUnmount as tt, watchEffect as qt, resolveDynamicComponent as Yt, shallowRef as po, createStaticVNode as bo, defineAsyncComponent as We, toValue as mo, createApp as ho } from "vue";
2
+ import { defineComponent as te, inject as he, computed as H, reactive as Ve, ref as O, watch as se, onMounted as He, createElementBlock as w, openBlock as d, normalizeClass as X, unref as v, createVNode as I, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as E, createBlock as z, createCommentVNode as j, Fragment as ee, renderList as pe, resolveComponent as K, Transition as so, withDirectives as we, mergeProps as de, createSlots as Ne, renderSlot as J, vShow as ro, nextTick as xe, onUnmounted as je, useTemplateRef as co, provide as Ue, normalizeStyle as ue, mergeModels as rt, useModel as jt, withModifiers as Ge, resolveDirective as Wt, useAttrs as uo, useSlots as fo, onBeforeUnmount as tt, watchEffect as qt, resolveDynamicComponent as Yt, shallowRef as po, createStaticVNode as bo, defineAsyncComponent as We, toValue as mo, createApp as ho } from "vue";
3
3
  import Je from "vuedraggable";
4
- import { Modal as ct, Button as dt, message as Ie, Tooltip as Xe, Switch as _t, Radio as Lt, RadioGroup as Ct, InputNumber as wt, DatePicker as kt, Checkbox as Qe, CheckboxGroup as St, Select as ut, Input as xt, Col as vo, Row as go, FormItem as Tt, Form as Ft, SelectOption as ft, Popconfirm as at, MenuItem as Ht, Menu as $t, Dropdown as It, Popover as yo, BackTop as Kt, Spin as _o } from "ant-design-vue";
4
+ import { Modal as ct, Button as dt, message as Me, Tooltip as Xe, Switch as _t, Radio as Lt, RadioGroup as Ct, InputNumber as wt, DatePicker as kt, Checkbox as Qe, CheckboxGroup as St, Select as ut, Input as xt, Col as vo, Row as go, FormItem as Tt, Form as Ft, SelectOption as ft, Popconfirm as at, MenuItem as Ht, Menu as $t, Dropdown as It, Popover as yo, BackTop as Kt, Spin as _o } from "ant-design-vue";
5
5
  import { useRoute as vt } from "vue-router";
6
6
  import { useI18n as ve } from "vue-i18n";
7
7
  import ke from "lodash";
@@ -39,161 +39,161 @@ const Mo = "hb-", gt = (e = "") => {
39
39
  },
40
40
  emits: ["confirm"],
41
41
  setup(e, { expose: t, emit: o }) {
42
- const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s = H(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = H(() => a.title || i("hbLibComp.hbFormItemFilterModal.title")), h = o, f = gt("sfcm"), T = vt(), $ = Ve({
42
+ const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s = H(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = H(() => a.title || i("hbLibComp.hbFormItemFilterModal.title")), h = o, f = gt("sfcm"), S = vt(), $ = Ve({
43
43
  lan: window.localStorage.getItem("lan")
44
- }), U = O(!1), V = O(600);
45
- let k = [];
46
- const S = O([]), A = O([]), D = H(() => S.value.every((M) => M.isLinked || M.isFixed)), g = (M) => ({
47
- ...M,
48
- label: y(M) || `${x(M) || ""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
49
- key: M.key,
50
- isFixed: M?.isFixed || !1,
51
- isLinked: M?.isLinked || !1,
52
- labelLanguage: M?.labelLanguage || void 0
53
- }), F = (M) => {
54
- const N = M.draggedContext.element, W = M.relatedContext.index;
55
- if (N.isLinked || N.isFixed)
44
+ }), N = O(!1), Y = O(600);
45
+ let T = [];
46
+ const x = O([]), P = O([]), D = H(() => x.value.every((B) => B.isLinked || B.isFixed)), y = (B) => ({
47
+ ...B,
48
+ label: _(B) || `${k(B) || ""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
49
+ key: B.key,
50
+ isFixed: B?.isFixed || !1,
51
+ isLinked: B?.isLinked || !1,
52
+ labelLanguage: B?.labelLanguage || void 0
53
+ }), F = (B) => {
54
+ const V = B.draggedContext.element, q = B.relatedContext.index;
55
+ if (V.isLinked || V.isFixed)
56
56
  return !1;
57
- const ie = S.value.map((ue, Le) => ({ item: ue, index: Le })).filter(({ item: ue }) => ue.isLinked).map(({ index: ue }) => ue);
57
+ const ie = x.value.map((fe, Le) => ({ item: fe, index: Le })).filter(({ item: fe }) => fe.isLinked).map(({ index: fe }) => fe);
58
58
  if (ie.length === 0)
59
59
  return !0;
60
- for (let ue = 0; ue < ie.length - 1; ue++) {
61
- const Le = ie[ue], ye = ie[ue + 1];
62
- if (W > Le && W < ye)
60
+ for (let fe = 0; fe < ie.length - 1; fe++) {
61
+ const Le = ie[fe], ye = ie[fe + 1];
62
+ if (q > Le && q < ye)
63
63
  return !1;
64
64
  }
65
65
  return !0;
66
- }, L = H(() => d() + "_" + a.saveKey), d = () => {
67
- const M = localStorage.getItem("pro__Login_Userinfo");
68
- let N = "anonymous";
69
- if (M)
66
+ }, L = H(() => c() + "_" + a.saveKey), c = () => {
67
+ const B = localStorage.getItem("pro__Login_Userinfo");
68
+ let V = "anonymous";
69
+ if (B)
70
70
  try {
71
- N = JSON.parse(M).value.jobNumber || "anonymous";
71
+ V = JSON.parse(B).value.jobNumber || "anonymous";
72
72
  } catch (ie) {
73
73
  console.warn("解析用户信息失败:", ie);
74
74
  }
75
- let W = T?.path;
76
- return `searchFormConfig_${N}_${W}`;
77
- }, y = (M) => ({
78
- ja_JP: () => ke.get(r, M.labelLanguage || ""),
79
- en_US: () => ke.get(l, M.labelLanguage || ""),
80
- zh_CN: () => ke.get(u, M.labelLanguage || "")
81
- })[$.lan]?.() || M.label, x = (M) => ({
82
- ja_JP: () => ke.get(r, M.subLabelLanguage || ""),
83
- en_US: () => ke.get(l, M.subLabelLanguage || ""),
84
- zh_CN: () => ke.get(u, M.subLabelLanguage || "")
85
- })[$.lan]?.() || M.subLabel, P = (M) => Array.isArray(M) ? M.map((N) => {
86
- if (typeof N == "string")
87
- return N;
88
- if (N && typeof N == "object" && "key" in N) {
89
- const W = N.key;
90
- return typeof W == "string" ? W : "";
75
+ let q = S?.path;
76
+ return `searchFormConfig_${V}_${q}`;
77
+ }, _ = (B) => ({
78
+ ja_JP: () => ke.get(r, B.labelLanguage || ""),
79
+ en_US: () => ke.get(l, B.labelLanguage || ""),
80
+ zh_CN: () => ke.get(u, B.labelLanguage || "")
81
+ })[$.lan]?.() || B.label, k = (B) => ({
82
+ ja_JP: () => ke.get(r, B.subLabelLanguage || ""),
83
+ en_US: () => ke.get(l, B.subLabelLanguage || ""),
84
+ zh_CN: () => ke.get(u, B.subLabelLanguage || "")
85
+ })[$.lan]?.() || B.subLabel, U = (B) => Array.isArray(B) ? B.map((V) => {
86
+ if (typeof V == "string")
87
+ return V;
88
+ if (V && typeof V == "object" && "key" in V) {
89
+ const q = V.key;
90
+ return typeof q == "string" ? q : "";
91
91
  }
92
92
  return "";
93
- }).filter((N) => !!N) : [], Y = (M) => {
94
- if (typeof M != "function")
95
- return Array.isArray(M) ? M.map((N) => Y(N)) : M && Object.prototype.toString.call(M) === "[object Object]" ? Object.entries(M).reduce((N, [W, ie]) => (typeof ie != "function" && (N[W] = Y(ie)), N), {}) : M;
96
- }, _ = (M) => M.map((N) => Y(N)), q = (M) => {
93
+ }).filter((V) => !!V) : [], M = (B) => {
94
+ if (typeof B != "function")
95
+ return Array.isArray(B) ? B.map((V) => M(V)) : B && Object.prototype.toString.call(B) === "[object Object]" ? Object.entries(B).reduce((V, [q, ie]) => (typeof ie != "function" && (V[q] = M(ie)), V), {}) : B;
96
+ }, g = (B) => B.map((V) => M(V)), R = (B) => {
97
97
  try {
98
- const N = localStorage.getItem(L.value);
99
- if (N) {
100
- const W = JSON.parse(N);
101
- if (W.originalList && Array.isArray(W.originalList)) {
102
- const ie = P(W.originalList), ue = new Map(M.map((Z) => [Z.key, Z])), Le = ie.map((Z) => ue.get(Z)).filter((Z) => !!Z), ye = new Set(ie), Ce = M.filter((Z) => !ye.has(Z.key));
103
- k = ke.cloneDeep([...Le, ...Ce]);
104
- const _e = k.filter((Z) => Z?.isFixed), Be = k.filter((Z) => Z?.isLinked), Se = Array.isArray(W.showList) ? W.showList : [], Te = P(Se), Pe = new Map(k.map((Z) => [Z.key, Z])), De = Te.map((Z) => Pe.get(Z)).filter((Z) => Z ? !Z.isFixed && !Z.isLinked : !1), B = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : De.length, Q = _e.map((Z) => ({
105
- ...g(Z)
98
+ const V = localStorage.getItem(L.value);
99
+ if (V) {
100
+ const q = JSON.parse(V);
101
+ if (q.originalList && Array.isArray(q.originalList)) {
102
+ const ie = U(q.originalList), fe = new Map(B.map((Z) => [Z.key, Z])), Le = ie.map((Z) => fe.get(Z)).filter((Z) => !!Z), ye = new Set(ie), Ce = B.filter((Z) => !ye.has(Z.key));
103
+ T = ke.cloneDeep([...Le, ...Ce]);
104
+ const _e = T.filter((Z) => Z?.isFixed), Be = T.filter((Z) => Z?.isLinked), Se = Array.isArray(q.showList) ? q.showList : [], Fe = U(Se), Pe = new Map(T.map((Z) => [Z.key, Z])), De = Fe.map((Z) => Pe.get(Z)).filter((Z) => Z ? !Z.isFixed && !Z.isLinked : !1), A = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : De.length, Q = _e.map((Z) => ({
105
+ ...y(Z)
106
106
  })), G = Be.map((Z) => ({
107
- ...g(Z)
108
- })), be = De.slice(0, B).map((Z) => ({
109
- ...g(Z)
107
+ ...y(Z)
108
+ })), be = De.slice(0, A).map((Z) => ({
109
+ ...y(Z)
110
110
  }));
111
- S.value = [...Q, ...G, ...be];
112
- const me = S.value.map((Z) => Z.key), lt = k.map((Z) => Z.key).filter((Z) => !me.includes(Z));
113
- return A.value = k.filter((Z) => lt.includes(Z.key)).map((Z) => ({
114
- ...g(Z),
111
+ x.value = [...Q, ...G, ...be];
112
+ const me = x.value.map((Z) => Z.key), lt = T.map((Z) => Z.key).filter((Z) => !me.includes(Z));
113
+ return P.value = T.filter((Z) => lt.includes(Z.key)).map((Z) => ({
114
+ ...y(Z),
115
115
  active: !1
116
116
  })), !0;
117
117
  }
118
118
  }
119
- } catch (N) {
120
- console.warn("加载保存的搜索配置失败:", N);
119
+ } catch (V) {
120
+ console.warn("加载保存的搜索配置失败:", V);
121
121
  }
122
122
  return !1;
123
- }, ae = () => {
123
+ }, oe = () => {
124
124
  try {
125
- const M = {
126
- originalList: k.map((N) => N.key),
127
- showList: S.value.map((N) => N.key)
125
+ const B = {
126
+ originalList: T.map((V) => V.key),
127
+ showList: x.value.map((V) => V.key)
128
128
  };
129
- localStorage.setItem(L.value, JSON.stringify(M));
130
- } catch (M) {
131
- console.warn("保存搜索配置失败:", M);
129
+ localStorage.setItem(L.value, JSON.stringify(B));
130
+ } catch (B) {
131
+ console.warn("保存搜索配置失败:", B);
132
132
  }
133
- }, pe = H(() => {
134
- const M = S.value.filter((W) => !W.isFixed && !W.isLinked).length, N = S.value.filter((W) => W.isFixed || W.isLinked).length;
135
- return M >= s.value - N;
133
+ }, ce = H(() => {
134
+ const B = x.value.filter((q) => !q.isFixed && !q.isLinked).length, V = x.value.filter((q) => q.isFixed || q.isLinked).length;
135
+ return B >= s.value - V;
136
136
  });
137
137
  se(
138
138
  () => a.list,
139
- (M) => {
140
- let N = !ke.isEqual(_(S.value), _(M));
141
- if (!N)
139
+ (B) => {
140
+ let V = !ke.isEqual(g(x.value), g(B));
141
+ if (!V)
142
142
  return;
143
- const W = localStorage.getItem(L.value), ie = JSON.parse(W || "{}"), ue = M.map((_e) => _e.key), Le = P(ie?.originalList), ye = new Set(ue), Ce = ue.length !== Le.length || Le.some((_e) => !ye.has(_e));
143
+ const q = localStorage.getItem(L.value), ie = JSON.parse(q || "{}"), fe = B.map((_e) => _e.key), Le = U(ie?.originalList), ye = new Set(fe), Ce = fe.length !== Le.length || Le.some((_e) => !ye.has(_e));
144
144
  if (ie && ie?.originalList && Array.isArray(ie.originalList) && !Ce)
145
- q(M), h("confirm", S.value);
146
- else if (N) {
147
- k = ke.cloneDeep(M);
148
- const _e = M.filter((G) => G?.isFixed), Be = M.filter((G) => G?.isLinked), Se = M.filter((G) => !G?.isFixed && !G?.isLinked), Te = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : Se.length, Pe = _e.map((G) => g(G)), De = Be.map((G) => g(G)), B = Se.slice(0, Te).map((G) => g(G));
149
- S.value = [...Pe, ...De, ...B];
150
- const Q = Se.slice(Te).map((G) => ({
151
- ...g(G),
145
+ R(B), h("confirm", x.value);
146
+ else if (V) {
147
+ T = ke.cloneDeep(B);
148
+ const _e = B.filter((G) => G?.isFixed), Be = B.filter((G) => G?.isLinked), Se = B.filter((G) => !G?.isFixed && !G?.isLinked), Fe = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : Se.length, Pe = _e.map((G) => y(G)), De = Be.map((G) => y(G)), A = Se.slice(0, Fe).map((G) => y(G));
149
+ x.value = [...Pe, ...De, ...A];
150
+ const Q = Se.slice(Fe).map((G) => ({
151
+ ...y(G),
152
152
  active: !1
153
153
  }));
154
- A.value = Q, h("confirm", S.value);
154
+ P.value = Q, h("confirm", x.value);
155
155
  }
156
156
  },
157
157
  { immediate: !0 }
158
158
  );
159
- const re = (M) => {
160
- const N = S.value.findIndex((W) => W.key === M.key);
161
- N !== -1 && (S.value.splice(N, 1), A.value.push({ ...M, active: !1 }));
162
- }, ge = (M) => {
163
- if (pe.value) {
164
- Ie.warning(`当前已经超过${i(s.value)}个可选数量,请先删除已显示条件`);
159
+ const re = (B) => {
160
+ const V = x.value.findIndex((q) => q.key === B.key);
161
+ V !== -1 && (x.value.splice(V, 1), P.value.push({ ...B, active: !1 }));
162
+ }, ge = (B) => {
163
+ if (ce.value) {
164
+ Me.warning(`当前已经超过${i(s.value)}个可选数量,请先删除已显示条件`);
165
165
  return;
166
166
  }
167
- const N = A.value.findIndex((W) => W.key === M.key);
168
- if (N !== -1) {
169
- const [W] = A.value.splice(N, 1);
170
- S.value.push({ ...W, active: !1 });
167
+ const V = P.value.findIndex((q) => q.key === B.key);
168
+ if (V !== -1) {
169
+ const [q] = P.value.splice(V, 1);
170
+ x.value.push({ ...q, active: !1 });
171
171
  }
172
- }, xe = () => {
173
- U.value = !1;
172
+ }, Te = () => {
173
+ N.value = !1;
174
174
  }, Oe = () => {
175
- U.value = !0;
176
- }, j = () => {
177
- ae(), h("confirm", S.value), xe();
178
- }, Re = (M) => {
179
- const N = A.value.findIndex((W) => W.key === M.key);
180
- N !== -1 && (A.value[N].active = !0);
181
- }, oe = (M) => {
182
- const N = A.value.findIndex((W) => W.key === M.key);
183
- N !== -1 && (A.value[N].active = !1);
175
+ N.value = !0;
176
+ }, W = () => {
177
+ oe(), h("confirm", x.value), Te();
178
+ }, Ee = (B) => {
179
+ const V = P.value.findIndex((q) => q.key === B.key);
180
+ V !== -1 && (P.value[V].active = !0);
181
+ }, ne = (B) => {
182
+ const V = P.value.findIndex((q) => q.key === B.key);
183
+ V !== -1 && (P.value[V].active = !1);
184
184
  };
185
185
  return t({
186
186
  toOpenModal: Oe
187
- }), Fe(() => {
188
- }), (M, N) => (c(), w("div", {
187
+ }), He(() => {
188
+ }), (B, V) => (d(), w("div", {
189
189
  class: X(v(f).b())
190
190
  }, [
191
191
  I(v(ct), {
192
- visible: U.value,
193
- "onUpdate:visible": N[1] || (N[1] = (W) => U.value = W),
194
- width: V.value,
195
- onCancel: xe,
196
- onOk: j
192
+ visible: N.value,
193
+ "onUpdate:visible": V[1] || (V[1] = (q) => N.value = q),
194
+ width: Y.value,
195
+ onCancel: Te,
196
+ onOk: W
197
197
  }, {
198
198
  title: b(() => [
199
199
  m("div", {
@@ -201,18 +201,18 @@ const Mo = "hb-", gt = (e = "") => {
201
201
  }, C(p.value), 3)
202
202
  ]),
203
203
  footer: b(() => [
204
- I(v(dt), { onClick: xe }, {
204
+ I(v(dt), { onClick: Te }, {
205
205
  default: b(() => [
206
- R(C(M.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
206
+ E(C(B.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
207
207
  ]),
208
208
  _: 1
209
209
  }),
210
210
  I(v(dt), {
211
211
  type: "primary",
212
- onClick: j
212
+ onClick: W
213
213
  }, {
214
214
  default: b(() => [
215
- R(C(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
215
+ E(C(B.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
216
216
  ]),
217
217
  _: 1
218
218
  })
@@ -226,30 +226,30 @@ const Mo = "hb-", gt = (e = "") => {
226
226
  }, [
227
227
  m("span", {
228
228
  class: X(v(f).e("title__tip"))
229
- }, C(M.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
230
- m("span", null, C(M.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(s.value) + C(M.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
229
+ }, C(B.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
230
+ m("span", null, C(B.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(s.value) + C(B.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
231
231
  ], 2),
232
232
  m("div", {
233
233
  class: X(v(f).e("show__tag"))
234
234
  }, [
235
235
  I(v(Je), {
236
- modelValue: S.value,
237
- "onUpdate:modelValue": N[0] || (N[0] = (W) => S.value = W),
236
+ modelValue: x.value,
237
+ "onUpdate:modelValue": V[0] || (V[0] = (q) => x.value = q),
238
238
  "item-key": "key",
239
239
  tag: "div",
240
240
  disabled: D.value,
241
241
  move: F
242
242
  }, {
243
- item: b(({ element: W }) => [
243
+ item: b(({ element: q }) => [
244
244
  m("div", {
245
- class: X([v(f).e("show__tag__item"), v(f).is("fixed", W.isFixed), v(f).is("linked", W.isLinked)])
245
+ class: X([v(f).e("show__tag__item"), v(f).is("fixed", q.isFixed), v(f).is("linked", q.isLinked)])
246
246
  }, [
247
- R(C(W.label) + " ", 1),
248
- !W.isFixed && !W.isLinked && e.list.length > 1 ? (c(), E(v(Lo), {
247
+ E(C(q.label) + " ", 1),
248
+ !q.isFixed && !q.isLinked && e.list.length > 1 ? (d(), z(v(Lo), {
249
249
  key: 0,
250
250
  class: X(v(f).e("show__tag__item-close")),
251
- onClick: (ie) => re(W)
252
- }, null, 8, ["class", "onClick"])) : z("", !0)
251
+ onClick: (ie) => re(q)
252
+ }, null, 8, ["class", "onClick"])) : j("", !0)
253
253
  ], 2)
254
254
  ]),
255
255
  _: 1
@@ -264,27 +264,27 @@ const Mo = "hb-", gt = (e = "") => {
264
264
  }, [
265
265
  m("span", {
266
266
  class: X(v(f).e("title__tip"))
267
- }, C(M.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
267
+ }, C(B.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
268
268
  ], 2),
269
269
  m("div", {
270
270
  class: X(v(f).e("unshow__tag"))
271
271
  }, [
272
- A.value.length > 0 ? (c(!0), w(ee, { key: 0 }, fe(A.value, (W) => (c(), w("div", {
273
- key: W.key,
274
- class: X([v(f).e("unshow__tag__item"), v(f).is("fixed", W.isFixed || ""), v(f).is("linked", W.isLinked || "")]),
275
- onMouseenter: (ie) => Re(W),
276
- onMouseleave: (ie) => oe(W)
272
+ P.value.length > 0 ? (d(!0), w(ee, { key: 0 }, pe(P.value, (q) => (d(), w("div", {
273
+ key: q.key,
274
+ class: X([v(f).e("unshow__tag__item"), v(f).is("fixed", q.isFixed || ""), v(f).is("linked", q.isLinked || "")]),
275
+ onMouseenter: (ie) => Ee(q),
276
+ onMouseleave: (ie) => ne(q)
277
277
  }, [
278
- R(C(W.label) + " ", 1),
279
- W.active ? (c(), w("aside", {
278
+ E(C(q.label) + " ", 1),
279
+ q.active ? (d(), w("aside", {
280
280
  key: 0,
281
281
  class: X(v(f).e("unshow__tag__item-add")),
282
- onClick: (ie) => ge(W)
283
- }, C(M.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ao)) : z("", !0)
284
- ], 42, Do))), 128)) : (c(), w("div", {
282
+ onClick: (ie) => ge(q)
283
+ }, C(B.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ao)) : j("", !0)
284
+ ], 42, Do))), 128)) : (d(), w("div", {
285
285
  key: 1,
286
286
  class: X(v(f).e("unshow__tag__empty"))
287
- }, C(M.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
287
+ }, C(B.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
288
288
  ], 2)
289
289
  ], 2)
290
290
  ]),
@@ -292,23 +292,23 @@ const Mo = "hb-", gt = (e = "") => {
292
292
  }, 8, ["visible", "width"])
293
293
  ], 2));
294
294
  }
295
- }), le = (e, t) => {
295
+ }), ae = (e, t) => {
296
296
  const o = e.__vccOpts || e;
297
297
  for (const [n, i] of t)
298
298
  o[n] = i;
299
299
  return o;
300
- }, Po = /* @__PURE__ */ le(Oo, [["__scopeId", "data-v-e23cf2d6"]]);
301
- function ne(e) {
300
+ }, Po = /* @__PURE__ */ ae(Oo, [["__scopeId", "data-v-e23cf2d6"]]);
301
+ function le(e) {
302
302
  const t = e;
303
303
  return t.install = (o) => {
304
304
  const n = e.name;
305
305
  o.component(n ?? "AnonymousComponent", e);
306
306
  }, t;
307
307
  }
308
- const Uo = ne(Po), Ro = {
308
+ const Uo = le(Po), Eo = {
309
309
  key: 0,
310
310
  class: "form-footer"
311
- }, Eo = { class: "scheme-fontWeight" }, No = { class: "scheme-fontWeight" }, zo = { class: "scheme-fontWeight" }, Vo = { class: "scheme-fontWeight" }, jo = /* @__PURE__ */ te({
311
+ }, Ro = { class: "scheme-fontWeight" }, No = { class: "scheme-fontWeight" }, zo = { class: "scheme-fontWeight" }, Vo = { class: "scheme-fontWeight" }, jo = /* @__PURE__ */ te({
312
312
  name: "HbLibListForm",
313
313
  __name: "HbListForm",
314
314
  props: {
@@ -347,62 +347,62 @@ const Uo = ne(Po), Ro = {
347
347
  ],
348
348
  setup(e, { expose: t, emit: o }) {
349
349
  const n = he("globalCompConfig", {}), i = o, l = he("HB_LIST_PAGE_CONTAINER"), r = H(() => a.searchList || []), u = gt("form"), a = e, s = H(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = O("show"), h = H(() => a.needFooter || n.HbLibListForm?.needFooter), f = H(() => {
350
- const _ = a.items.filter((q) => U(q));
351
- return ke.cloneDeep(_);
352
- }), T = (_) => _ !== void 0, $ = (_) => typeof _ == "function", U = (_) => T(_.condition) ? $(_.condition) ? _.condition() : _.condition : !0, V = H(() => [...a.items].map((_) => ({
353
- ..._,
354
- condition: U(_),
355
- label: _.label?.includes("多项搜索") ? "" : _.label
356
- }))), k = H(() => a.saveKey), S = O(), A = () => {
350
+ const g = a.items.filter((R) => N(R));
351
+ return ke.cloneDeep(g);
352
+ }), S = (g) => g !== void 0, $ = (g) => typeof g == "function", N = (g) => S(g.condition) ? $(g.condition) ? g.condition() : g.condition : !0, Y = H(() => [...a.items].map((g) => ({
353
+ ...g,
354
+ condition: N(g),
355
+ label: g.label?.includes("多项搜索") ? "" : g.label
356
+ }))), T = H(() => a.saveKey), x = O(), P = () => {
357
357
  i("handleSearch");
358
358
  }, D = () => {
359
359
  i("handleReset");
360
- }, g = O(), F = () => {
361
- g.value && g.value.toOpenModal();
362
- }, L = (_) => {
363
- i("handleMenuClick", _);
364
- }, d = (_) => {
365
- const q = a.items.filter((re) => !U(re)), ae = [..._, ...q], pe = [
366
- ...new Map(ae.map((re) => [re.key, re])).values()
360
+ }, y = O(), F = () => {
361
+ y.value && y.value.toOpenModal();
362
+ }, L = (g) => {
363
+ i("handleMenuClick", g);
364
+ }, c = (g) => {
365
+ const R = a.items.filter((re) => !N(re)), oe = [...g, ...R], ce = [
366
+ ...new Map(oe.map((re) => [re.key, re])).values()
367
367
  ];
368
- i("handleSfcmConfirm", pe);
368
+ i("handleSfcmConfirm", ce);
369
369
  };
370
370
  se(
371
371
  () => a.isFormExpanded,
372
- (_) => {
373
- if (_) {
374
- const q = document.querySelector("#subpackage_container");
375
- q instanceof HTMLElement && (q.style.overflow = "hidden", setTimeout(() => {
376
- q.style.overflow = "auto";
372
+ (g) => {
373
+ if (g) {
374
+ const R = document.querySelector("#subpackage_container");
375
+ R instanceof HTMLElement && (R.style.overflow = "hidden", setTimeout(() => {
376
+ R.style.overflow = "auto";
377
377
  }, 500));
378
378
  }
379
379
  }
380
380
  );
381
- const y = (_) => {
382
- const q = _;
383
- q.style.height = "", q.offsetHeight;
384
- }, x = (_) => {
385
- const q = _;
386
- q.style.height = "", q.style.overflow = "", Me(() => {
381
+ const _ = (g) => {
382
+ const R = g;
383
+ R.style.height = "", R.offsetHeight;
384
+ }, k = (g) => {
385
+ const R = g;
386
+ R.style.height = "", R.style.overflow = "", xe(() => {
387
387
  l.calTableHeight && l.calTableHeight();
388
388
  });
389
- }, P = (_) => {
390
- const q = _, ae = q.querySelector(
389
+ }, U = (g) => {
390
+ const R = g, oe = R.querySelector(
391
391
  ".hb-lib-form--container"
392
392
  );
393
- if (ae) {
394
- const pe = ae.offsetHeight;
395
- q.style.height = pe + "px", q.style.overflow = "hidden", q.offsetHeight, requestAnimationFrame(() => {
396
- q.style.height = "0";
393
+ if (oe) {
394
+ const ce = oe.offsetHeight;
395
+ R.style.height = ce + "px", R.style.overflow = "hidden", R.offsetHeight, requestAnimationFrame(() => {
396
+ R.style.height = "0";
397
397
  });
398
398
  }
399
- }, Y = () => {
400
- Me(() => {
399
+ }, M = () => {
400
+ xe(() => {
401
401
  l.calTableHeight && l.calTableHeight();
402
402
  });
403
403
  };
404
404
  return t({
405
- formRef: S,
405
+ formRef: x,
406
406
  SelectOption: ft,
407
407
  Form: Ft,
408
408
  FormItem: Tt,
@@ -419,15 +419,15 @@ const Uo = ne(Po), Ro = {
419
419
  Switch: _t,
420
420
  Button: dt,
421
421
  Tooltip: Xe
422
- }), (_, q) => {
423
- const ae = K("a-button"), pe = K("a-tooltip"), re = K("a-menu-item"), ge = K("a-menu"), xe = K("a-dropdown"), Oe = K("HbLibFormItemFilterModal");
424
- return c(), w(ee, null, [
422
+ }), (g, R) => {
423
+ const oe = K("a-button"), ce = K("a-tooltip"), re = K("a-menu-item"), ge = K("a-menu"), Te = K("a-dropdown"), Oe = K("HbLibFormItemFilterModal");
424
+ return d(), w(ee, null, [
425
425
  I(so, {
426
426
  name: "form-collapse",
427
- onEnter: y,
428
- onAfterEnter: x,
429
- onLeave: P,
430
- onAfterLeave: Y
427
+ onEnter: _,
428
+ onAfterEnter: k,
429
+ onLeave: U,
430
+ onAfterLeave: M
431
431
  }, {
432
432
  default: b(() => [
433
433
  we(m("div", {
@@ -438,118 +438,118 @@ const Uo = ne(Po), Ro = {
438
438
  h.value ? "isNeedFooterCss" : ""
439
439
  ])
440
440
  }, [
441
- I(v(Ft), ce(_.$attrs, {
441
+ I(v(Ft), de(g.$attrs, {
442
442
  ref_key: "formRef",
443
- ref: S,
443
+ ref: x,
444
444
  model: e.formData,
445
445
  class: ["hb-lib-form--container", p.value == "show" ? "" : "hide"]
446
446
  }), {
447
447
  default: b(() => [
448
- (c(!0), w(ee, null, fe(V.value, (j, Re) => (c(), w(ee, { key: Re }, [
449
- j.condition ? (c(), E(v(Tt), ce({
448
+ (d(!0), w(ee, null, pe(Y.value, (W, Ee) => (d(), w(ee, { key: Ee }, [
449
+ W.condition ? (d(), z(v(Tt), de({
450
450
  key: 0,
451
451
  ref_for: !0
452
- }, j, {
453
- name: j.key,
452
+ }, W, {
453
+ name: W.key,
454
454
  class: {
455
- "hb-lib-form-item-border--unneed": j.isUnNeedBorder,
456
- "hb_lib_form_item--needShowAll": j.showAll
455
+ "hb-lib-form-item-border--unneed": W.isUnNeedBorder,
456
+ "hb_lib_form_item--needShowAll": W.showAll
457
457
  }
458
458
  }), Ne({
459
459
  default: b(() => [
460
- j.type === "slot" ? J(_.$slots, j.key, {
460
+ W.type === "slot" ? J(g.$slots, W.key, {
461
461
  key: 0,
462
462
  formData: e.formData,
463
- item: j
464
- }, void 0, !0) : z("", !0),
465
- j.type === "mixin" ? J(_.$slots, j.key, {
463
+ item: W
464
+ }, void 0, !0) : j("", !0),
465
+ W.type === "mixin" ? J(g.$slots, W.key, {
466
466
  key: 1,
467
467
  formData: e.formData,
468
- item: j
469
- }, void 0, !0) : z("", !0),
470
- j.type === "input" ? (c(), E(v(xt), ce({
468
+ item: W
469
+ }, void 0, !0) : j("", !0),
470
+ W.type === "input" ? (d(), z(v(xt), de({
471
471
  key: 2,
472
- value: e.formData[j.key],
473
- "onUpdate:value": (oe) => e.formData[j.key] = oe
474
- }, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
475
- j.type === "select" ? (c(), E(v(ut), ce({
472
+ value: e.formData[W.key],
473
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
474
+ }, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : j("", !0),
475
+ W.type === "select" ? (d(), z(v(ut), de({
476
476
  key: 3,
477
- value: e.formData[j.key],
478
- "onUpdate:value": (oe) => e.formData[j.key] = oe
479
- }, { ref_for: !0 }, j.attrs), {
477
+ value: e.formData[W.key],
478
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
479
+ }, { ref_for: !0 }, W.attrs), {
480
480
  default: b(() => [
481
- (c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(ft), {
482
- key: M,
483
- value: oe.value
481
+ (d(!0), w(ee, null, pe(W.options, (ne, B) => (d(), z(v(ft), {
482
+ key: B,
483
+ value: ne.value
484
484
  }, {
485
485
  default: b(() => [
486
- R(C(oe.label), 1)
486
+ E(C(ne.label), 1)
487
487
  ]),
488
488
  _: 2
489
489
  }, 1032, ["value"]))), 128))
490
490
  ]),
491
491
  _: 2
492
- }, 1040, ["value", "onUpdate:value"])) : z("", !0),
493
- j.type === "checkbox" ? (c(), E(v(St), ce({
492
+ }, 1040, ["value", "onUpdate:value"])) : j("", !0),
493
+ W.type === "checkbox" ? (d(), z(v(St), de({
494
494
  key: 4,
495
- value: e.formData[j.key],
496
- "onUpdate:value": (oe) => e.formData[j.key] = oe
497
- }, { ref_for: !0 }, j.attrs), {
495
+ value: e.formData[W.key],
496
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
497
+ }, { ref_for: !0 }, W.attrs), {
498
498
  default: b(() => [
499
- (c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(Qe), {
500
- key: M,
501
- value: oe.value
499
+ (d(!0), w(ee, null, pe(W.options, (ne, B) => (d(), z(v(Qe), {
500
+ key: B,
501
+ value: ne.value
502
502
  }, {
503
503
  default: b(() => [
504
- R(C(oe.label), 1)
504
+ E(C(ne.label), 1)
505
505
  ]),
506
506
  _: 2
507
507
  }, 1032, ["value"]))), 128))
508
508
  ]),
509
509
  _: 2
510
- }, 1040, ["value", "onUpdate:value"])) : z("", !0),
511
- j.type === "date-picker" ? (c(), E(v(kt), ce({
510
+ }, 1040, ["value", "onUpdate:value"])) : j("", !0),
511
+ W.type === "date-picker" ? (d(), z(v(kt), de({
512
512
  key: 5,
513
- value: e.formData[j.key],
514
- "onUpdate:value": (oe) => e.formData[j.key] = oe
515
- }, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
516
- j.type === "input-number" ? (c(), E(v(wt), ce({
513
+ value: e.formData[W.key],
514
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
515
+ }, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : j("", !0),
516
+ W.type === "input-number" ? (d(), z(v(wt), de({
517
517
  key: 6,
518
- value: e.formData[j.key],
519
- "onUpdate:value": (oe) => e.formData[j.key] = oe
520
- }, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
521
- j.type === "radio" ? (c(), E(v(Ct), ce({
518
+ value: e.formData[W.key],
519
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
520
+ }, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : j("", !0),
521
+ W.type === "radio" ? (d(), z(v(Ct), de({
522
522
  key: 7,
523
- value: e.formData[j.key],
524
- "onUpdate:value": (oe) => e.formData[j.key] = oe
525
- }, { ref_for: !0 }, j.attrs), {
523
+ value: e.formData[W.key],
524
+ "onUpdate:value": (ne) => e.formData[W.key] = ne
525
+ }, { ref_for: !0 }, W.attrs), {
526
526
  default: b(() => [
527
- (c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(Lt), {
528
- key: M,
529
- value: oe.value
527
+ (d(!0), w(ee, null, pe(W.options, (ne, B) => (d(), z(v(Lt), {
528
+ key: B,
529
+ value: ne.value
530
530
  }, {
531
531
  default: b(() => [
532
- R(C(oe.label), 1)
532
+ E(C(ne.label), 1)
533
533
  ]),
534
534
  _: 2
535
535
  }, 1032, ["value"]))), 128))
536
536
  ]),
537
537
  _: 2
538
- }, 1040, ["value", "onUpdate:value"])) : z("", !0),
539
- j.type === "switch" ? (c(), E(v(_t), ce({
538
+ }, 1040, ["value", "onUpdate:value"])) : j("", !0),
539
+ W.type === "switch" ? (d(), z(v(_t), de({
540
540
  key: 8,
541
- checked: e.formData[j.key],
542
- "onUpdate:checked": (oe) => e.formData[j.key] = oe
543
- }, { ref_for: !0 }, j.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
541
+ checked: e.formData[W.key],
542
+ "onUpdate:checked": (ne) => e.formData[W.key] = ne
543
+ }, { ref_for: !0 }, W.attrs), null, 16, ["checked", "onUpdate:checked"])) : j("", !0)
544
544
  ]),
545
545
  _: 2
546
546
  }, [
547
- j.tooltip ? {
547
+ W.tooltip ? {
548
548
  name: "label",
549
549
  fn: b(() => [
550
- R(C(j.label) + " ", 1),
550
+ E(C(W.label) + " ", 1),
551
551
  I(v(Xe), {
552
- title: j.tooltip
552
+ title: W.tooltip
553
553
  }, {
554
554
  default: b(() => [
555
555
  I(v(Co), { style: { "margin-left": "4px", color: "#1890ff" } })
@@ -559,40 +559,40 @@ const Uo = ne(Po), Ro = {
559
559
  ]),
560
560
  key: "0"
561
561
  } : void 0
562
- ]), 1040, ["name", "class"])) : z("", !0)
562
+ ]), 1040, ["name", "class"])) : j("", !0)
563
563
  ], 64))), 128)),
564
- h.value ? z("", !0) : (c(), w("section", Ro, [
565
- I(ae, {
564
+ h.value ? j("", !0) : (d(), w("section", Eo, [
565
+ I(oe, {
566
566
  type: "primary",
567
567
  class: "hb_list_page_button",
568
- onClick: A
568
+ onClick: P
569
569
  }, {
570
570
  icon: b(() => [
571
571
  I(v(Ze))
572
572
  ]),
573
573
  default: b(() => [
574
- R(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
574
+ E(" " + C(g.$t("hbLibComp.hbListPageAct.query")), 1)
575
575
  ]),
576
576
  _: 1
577
577
  }),
578
- I(ae, {
578
+ I(oe, {
579
579
  type: "link",
580
580
  onClick: D
581
581
  }, {
582
582
  default: b(() => [
583
- R(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
583
+ E(C(g.$t("hbLibComp.hbListPageAct.reset")), 1)
584
584
  ]),
585
585
  _: 1
586
586
  }),
587
- e.needFilter ? (c(), E(pe, {
587
+ e.needFilter ? (d(), z(ce, {
588
588
  key: 0,
589
- title: _.$t("hbLibComp.hbListPageAct.selfDefine")
589
+ title: g.$t("hbLibComp.hbListPageAct.selfDefine")
590
590
  }, {
591
591
  default: b(() => [
592
592
  m("span", {
593
593
  class: "hb-lib-form-svg",
594
594
  onClick: F
595
- }, [...q[0] || (q[0] = [
595
+ }, [...R[0] || (R[0] = [
596
596
  m("svg", {
597
597
  t: "1757915025410",
598
598
  class: "icon",
@@ -612,23 +612,23 @@ const Uo = ne(Po), Ro = {
612
612
  ])])
613
613
  ]),
614
614
  _: 1
615
- }, 8, ["title"])) : z("", !0),
616
- J(_.$slots, "formBtns", {}, () => [
617
- e.needSearchCase ? (c(), E(xe, { key: 0 }, {
615
+ }, 8, ["title"])) : j("", !0),
616
+ J(g.$slots, "formBtns", {}, () => [
617
+ e.needSearchCase ? (d(), z(Te, { key: 0 }, {
618
618
  overlay: b(() => [
619
619
  I(ge, { onClick: L }, {
620
620
  default: b(() => [
621
- (c(!0), w(ee, null, fe(r.value, (j) => (c(), E(re, {
622
- key: j.id
621
+ (d(!0), w(ee, null, pe(r.value, (W) => (d(), z(re, {
622
+ key: W.id
623
623
  }, {
624
624
  default: b(() => [
625
- R(C(j.title), 1)
625
+ E(C(W.title), 1)
626
626
  ]),
627
627
  _: 2
628
628
  }, 1024))), 128)),
629
629
  I(re, { key: "add" }, {
630
630
  default: b(() => [
631
- m("span", Eo, C(_.$t(
631
+ m("span", Ro, C(g.$t(
632
632
  "hbLibComp.hbLibListForm.addScheme"
633
633
  )), 1)
634
634
  ]),
@@ -636,7 +636,7 @@ const Uo = ne(Po), Ro = {
636
636
  }),
637
637
  I(re, { key: "edit" }, {
638
638
  default: b(() => [
639
- m("span", No, C(_.$t(
639
+ m("span", No, C(g.$t(
640
640
  "hbLibComp.hbLibListForm.editScheme"
641
641
  )), 1)
642
642
  ]),
@@ -647,10 +647,10 @@ const Uo = ne(Po), Ro = {
647
647
  })
648
648
  ]),
649
649
  default: b(() => [
650
- I(pe, {
651
- title: _.$t("hbLibComp.hbLibListForm.queryCase")
650
+ I(ce, {
651
+ title: g.$t("hbLibComp.hbLibListForm.queryCase")
652
652
  }, {
653
- default: b(() => [...q[1] || (q[1] = [
653
+ default: b(() => [...R[1] || (R[1] = [
654
654
  m("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
655
655
  m("svg", {
656
656
  t: "1765936014161",
@@ -682,60 +682,60 @@ const Uo = ne(Po), Ro = {
682
682
  }, 8, ["title"])
683
683
  ]),
684
684
  _: 1
685
- })) : z("", !0)
685
+ })) : j("", !0)
686
686
  ], !0)
687
687
  ]))
688
688
  ]),
689
689
  _: 3
690
690
  }, 16, ["model", "class"]),
691
- h.value ? (c(), w("div", {
691
+ h.value ? (d(), w("div", {
692
692
  key: 0,
693
693
  class: X([v(u).e("footer"), "form-footer"])
694
694
  }, [
695
695
  m("div", {
696
696
  class: X(v(u).e("footer__left"))
697
697
  }, [
698
- J(_.$slots, "form-footer-left", {}, void 0, !0)
698
+ J(g.$slots, "form-footer-left", {}, void 0, !0)
699
699
  ], 2),
700
700
  m("div", {
701
701
  class: X(v(u).e("footer__right"))
702
702
  }, [
703
- p.value == "show" ? J(_.$slots, "form-footer-right", {
703
+ p.value == "show" ? J(g.$slots, "form-footer-right", {
704
704
  key: 0,
705
- formRef: S.value
705
+ formRef: x.value
706
706
  }, () => [
707
- I(ae, {
707
+ I(oe, {
708
708
  type: "primary",
709
709
  class: "hb_list_page_button",
710
- onClick: A
710
+ onClick: P
711
711
  }, {
712
712
  icon: b(() => [
713
713
  I(v(Ze))
714
714
  ]),
715
715
  default: b(() => [
716
- R(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
716
+ E(" " + C(g.$t("hbLibComp.hbListPageAct.query")), 1)
717
717
  ]),
718
718
  _: 1
719
719
  }),
720
- I(ae, {
720
+ I(oe, {
721
721
  type: "link",
722
722
  class: "hb_list_page_button",
723
723
  onClick: D
724
724
  }, {
725
725
  default: b(() => [
726
- R(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
726
+ E(C(g.$t("hbLibComp.hbListPageAct.reset")), 1)
727
727
  ]),
728
728
  _: 1
729
729
  }),
730
- e.needFilter ? (c(), E(pe, {
730
+ e.needFilter ? (d(), z(ce, {
731
731
  key: 0,
732
- title: _.$t("hbLibComp.hbListPageAct.selfDefine")
732
+ title: g.$t("hbLibComp.hbListPageAct.selfDefine")
733
733
  }, {
734
734
  default: b(() => [
735
735
  m("span", {
736
736
  class: "hb-lib-form-svg",
737
737
  onClick: F
738
- }, [...q[2] || (q[2] = [
738
+ }, [...R[2] || (R[2] = [
739
739
  m("svg", {
740
740
  t: "1757915025410",
741
741
  class: "icon",
@@ -755,23 +755,23 @@ const Uo = ne(Po), Ro = {
755
755
  ])])
756
756
  ]),
757
757
  _: 1
758
- }, 8, ["title"])) : z("", !0),
759
- J(_.$slots, "formBtns", {}, () => [
760
- e.needSearchCase ? (c(), E(xe, { key: 0 }, {
758
+ }, 8, ["title"])) : j("", !0),
759
+ J(g.$slots, "formBtns", {}, () => [
760
+ e.needSearchCase ? (d(), z(Te, { key: 0 }, {
761
761
  overlay: b(() => [
762
762
  I(ge, { onClick: L }, {
763
763
  default: b(() => [
764
- (c(!0), w(ee, null, fe(r.value, (j) => (c(), E(re, {
765
- key: j.id
764
+ (d(!0), w(ee, null, pe(r.value, (W) => (d(), z(re, {
765
+ key: W.id
766
766
  }, {
767
767
  default: b(() => [
768
- R(C(j.title), 1)
768
+ E(C(W.title), 1)
769
769
  ]),
770
770
  _: 2
771
771
  }, 1024))), 128)),
772
772
  I(re, { key: "add" }, {
773
773
  default: b(() => [
774
- m("span", zo, C(_.$t(
774
+ m("span", zo, C(g.$t(
775
775
  "hbLibComp.hbLibListForm.addScheme"
776
776
  )), 1)
777
777
  ]),
@@ -779,7 +779,7 @@ const Uo = ne(Po), Ro = {
779
779
  }),
780
780
  I(re, { key: "edit" }, {
781
781
  default: b(() => [
782
- m("span", Vo, C(_.$t(
782
+ m("span", Vo, C(g.$t(
783
783
  "hbLibComp.hbLibListForm.editScheme"
784
784
  )), 1)
785
785
  ]),
@@ -790,10 +790,10 @@ const Uo = ne(Po), Ro = {
790
790
  })
791
791
  ]),
792
792
  default: b(() => [
793
- I(pe, {
794
- title: _.$t("hbLibComp.hbLibListForm.queryCase")
793
+ I(ce, {
794
+ title: g.$t("hbLibComp.hbLibListForm.queryCase")
795
795
  }, {
796
- default: b(() => [...q[3] || (q[3] = [
796
+ default: b(() => [...R[3] || (R[3] = [
797
797
  m("span", {
798
798
  class: "hb-lib-form-svg",
799
799
  style: { width: "18px", height: "18px", cursor: "pointer" }
@@ -828,11 +828,11 @@ const Uo = ne(Po), Ro = {
828
828
  }, 8, ["title"])
829
829
  ]),
830
830
  _: 1
831
- })) : z("", !0)
831
+ })) : j("", !0)
832
832
  ], !0)
833
- ], !0) : z("", !0)
833
+ ], !0) : j("", !0)
834
834
  ], 2)
835
- ], 2)) : z("", !0)
835
+ ], 2)) : j("", !0)
836
836
  ], 2), [
837
837
  [ro, e.isFormExpanded]
838
838
  ])
@@ -841,16 +841,16 @@ const Uo = ne(Po), Ro = {
841
841
  }),
842
842
  I(Oe, {
843
843
  ref_key: "HbSfCmRef",
844
- ref: g,
844
+ ref: y,
845
845
  "show-number": s.value,
846
846
  list: f.value,
847
- "save-key": k.value,
848
- onConfirm: d
847
+ "save-key": T.value,
848
+ onConfirm: c
849
849
  }, null, 8, ["show-number", "list", "save-key"])
850
850
  ], 64);
851
851
  };
852
852
  }
853
- }), Wo = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-01be3452"]]), qo = ne(Wo), Yo = { class: "hb-lib-list-page-act-box" }, Ko = { class: "hb-lib-list-page-breadcrumb" }, Go = {
853
+ }), Wo = /* @__PURE__ */ ae(jo, [["__scopeId", "data-v-01be3452"]]), qo = le(Wo), Yo = { class: "hb-lib-list-page-act-box" }, Ko = { class: "hb-lib-list-page-breadcrumb" }, Go = {
854
854
  key: 0,
855
855
  class: "hb-lib-list-page-breadcrumb-item-divider"
856
856
  }, Jo = { class: "hb-lib-list-page-act" }, Xo = {
@@ -906,10 +906,10 @@ const Uo = ne(Po), Ro = {
906
906
  s[h]
907
907
  );
908
908
  if (f) {
909
- const T = p.get(
909
+ const S = p.get(
910
910
  s[h]
911
911
  );
912
- f.style.display = T || "", p.delete(s[h]);
912
+ f.style.display = S || "", p.delete(s[h]);
913
913
  }
914
914
  }
915
915
  }, 0);
@@ -929,27 +929,27 @@ const Uo = ne(Po), Ro = {
929
929
  h && (l.value = h.label.split("-"));
930
930
  }
931
931
  };
932
- Fe(() => {
932
+ He(() => {
933
933
  r();
934
934
  });
935
935
  const u = (a) => {
936
936
  a.keyCode === 192 && i();
937
937
  };
938
- return Fe(() => {
938
+ return He(() => {
939
939
  window.addEventListener("keydown", u);
940
940
  }), je(() => {
941
941
  window.removeEventListener("keydown", u);
942
942
  }), (a, s) => {
943
943
  const p = K("a-tooltip");
944
- return c(), w("section", Yo, [
944
+ return d(), w("section", Yo, [
945
945
  m("aside", Ko, [
946
- (c(!0), w(ee, null, fe(l.value, (h, f) => (c(), w(ee, { key: h }, [
946
+ (d(!0), w(ee, null, pe(l.value, (h, f) => (d(), w(ee, { key: h }, [
947
947
  m("span", {
948
948
  class: X(["hb-lib-list-page-breadcrumb-item", {
949
949
  "last-item": f === l.value.length - 1
950
950
  }])
951
951
  }, C(h), 3),
952
- f !== l.value.length - 1 ? (c(), w("span", Go, " / ")) : z("", !0)
952
+ f !== l.value.length - 1 ? (d(), w("span", Go, " / ")) : j("", !0)
953
953
  ], 64))), 128))
954
954
  ]),
955
955
  m("aside", Jo, [
@@ -963,7 +963,7 @@ const Uo = ne(Po), Ro = {
963
963
  onClick: s[0] || (s[0] = //@ts-ignore
964
964
  (...h) => v(i) && v(i)(...h))
965
965
  }, [
966
- v(n) ? (c(), w("svg", Qo, [...s[2] || (s[2] = [
966
+ v(n) ? (d(), w("svg", Qo, [...s[2] || (s[2] = [
967
967
  m("path", {
968
968
  d: "M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",
969
969
  fill: "#ff5000",
@@ -979,7 +979,7 @@ const Uo = ne(Po), Ro = {
979
979
  fill: "#ff5000",
980
980
  "p-id": "23907"
981
981
  }, null, -1)
982
- ])])) : (c(), w("svg", Xo, [...s[1] || (s[1] = [
982
+ ])])) : (d(), w("svg", Xo, [...s[1] || (s[1] = [
983
983
  m("path", {
984
984
  d: "M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",
985
985
  fill: "#ff5000",
@@ -995,7 +995,7 @@ const Uo = ne(Po), Ro = {
995
995
  ]);
996
996
  };
997
997
  }
998
- }), en = /* @__PURE__ */ le(Zo, [["__scopeId", "data-v-a786e48a"]]), tn = ne(en), on = { class: "hb-lib-list-btns-box" }, nn = { class: "hb-lib-list-btns-left" }, ln = { class: "hb-lib-list-btns-right" }, an = /* @__PURE__ */ te({
998
+ }), en = /* @__PURE__ */ ae(Zo, [["__scopeId", "data-v-a786e48a"]]), tn = le(en), on = { class: "hb-lib-list-btns-box" }, nn = { class: "hb-lib-list-btns-left" }, ln = { class: "hb-lib-list-btns-right" }, an = /* @__PURE__ */ te({
999
999
  name: "HbLibListBtnsAct",
1000
1000
  __name: "HbListBtns",
1001
1001
  props: {
@@ -1010,18 +1010,18 @@ const Uo = ne(Po), Ro = {
1010
1010
  o("handleReload");
1011
1011
  }, r = (u) => {
1012
1012
  };
1013
- return Fe(() => {
1013
+ return He(() => {
1014
1014
  window.addEventListener("keydown", r);
1015
1015
  }), je(() => {
1016
1016
  window.removeEventListener("keydown", r);
1017
1017
  }), (u, a) => {
1018
1018
  const s = K("a-tooltip");
1019
- return c(), w("section", on, [
1019
+ return d(), w("section", on, [
1020
1020
  m("aside", nn, [
1021
1021
  J(u.$slots, "btnsLeft", {}, void 0, !0)
1022
1022
  ]),
1023
1023
  m("aside", ln, [
1024
- e.needReload ? (c(), E(s, {
1024
+ e.needReload ? (d(), z(s, {
1025
1025
  key: 0,
1026
1026
  title: u.$t("hbLibComp.hbListBtnsAct.reload")
1027
1027
  }, {
@@ -1049,8 +1049,8 @@ const Uo = ne(Po), Ro = {
1049
1049
  ])])
1050
1050
  ]),
1051
1051
  _: 1
1052
- }, 8, ["title"])) : z("", !0),
1053
- e.needOpenOrClose ? (c(), E(s, {
1052
+ }, 8, ["title"])) : j("", !0),
1053
+ e.needOpenOrClose ? (d(), z(s, {
1054
1054
  key: 1,
1055
1055
  title: n.value ? `${u.$t("hbLibComp.hbListBtnsAct.close")}` : `${u.$t("hbLibComp.hbListBtnsAct.open")}`
1056
1056
  }, {
@@ -1059,81 +1059,81 @@ const Uo = ne(Po), Ro = {
1059
1059
  class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
1060
1060
  onClick: i
1061
1061
  }, [
1062
- n.value ? (c(), E(v(wo), {
1062
+ n.value ? (d(), z(v(wo), {
1063
1063
  key: 0,
1064
1064
  style: { "font-size": "21px", color: "#ff5000" }
1065
- })) : (c(), E(v(ko), {
1065
+ })) : (d(), z(v(ko), {
1066
1066
  key: 1,
1067
1067
  style: { "font-size": "21px", color: "#ff5000" }
1068
1068
  }))
1069
1069
  ])
1070
1070
  ]),
1071
1071
  _: 1
1072
- }, 8, ["title"])) : z("", !0),
1072
+ }, 8, ["title"])) : j("", !0),
1073
1073
  J(u.$slots, "btnsRight", {}, void 0, !0)
1074
1074
  ])
1075
1075
  ]);
1076
1076
  };
1077
1077
  }
1078
- }), sn = /* @__PURE__ */ le(an, [["__scopeId", "data-v-40c1a746"]]), rn = ne(sn), cn = (e = {}) => {
1078
+ }), sn = /* @__PURE__ */ ae(an, [["__scopeId", "data-v-40c1a746"]]), rn = le(sn), cn = (e = {}) => {
1079
1079
  const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: i = 100 } = e, l = O(0);
1080
1080
  let r = null, u = null, a = null, s = null, p = null;
1081
1081
  const h = () => {
1082
1082
  p && clearTimeout(p), p = setTimeout(() => {
1083
1083
  requestAnimationFrame(() => {
1084
- Me(() => {
1085
- const S = document.querySelector(".ant-table"), A = document.querySelector(".ant-pagination");
1086
- if (S) {
1087
- const D = Math.floor(S.getBoundingClientRect().top), g = window.innerHeight, L = (A ? A.offsetHeight + 20 : 40) + o;
1088
- let d = g - D - L;
1089
- d < n && (d = n), l.value = d;
1084
+ xe(() => {
1085
+ const x = document.querySelector(".ant-table"), P = document.querySelector(".ant-pagination");
1086
+ if (x) {
1087
+ const D = Math.floor(x.getBoundingClientRect().top), y = window.innerHeight, L = (P ? P.offsetHeight + 20 : 40) + o;
1088
+ let c = y - D - L;
1089
+ c < n && (c = n), l.value = c;
1090
1090
  }
1091
1091
  });
1092
1092
  });
1093
1093
  }, 100);
1094
1094
  }, f = () => {
1095
- const S = document.querySelector(".ant-pagination");
1096
- if (S) {
1097
- const A = new MutationObserver(() => {
1095
+ const x = document.querySelector(".ant-pagination");
1096
+ if (x) {
1097
+ const P = new MutationObserver(() => {
1098
1098
  h();
1099
1099
  });
1100
- return A.observe(S, {
1100
+ return P.observe(x, {
1101
1101
  childList: !0,
1102
1102
  subtree: !0,
1103
1103
  attributes: !0,
1104
1104
  attributeFilter: ["style", "class"]
1105
- }), A;
1105
+ }), P;
1106
1106
  }
1107
1107
  return null;
1108
- }, T = () => {
1109
- const S = document.querySelector(".hb-lib-list-page-form-box");
1110
- S && (r = new ResizeObserver(() => {
1108
+ }, S = () => {
1109
+ const x = document.querySelector(".hb-lib-list-page-form-box");
1110
+ x && (r = new ResizeObserver(() => {
1111
1111
  document.querySelectorAll(".ant-tooltip").forEach((D) => {
1112
1112
  D.style.display = "none";
1113
1113
  }), h();
1114
- }), r.observe(S));
1114
+ }), r.observe(x));
1115
1115
  }, $ = () => {
1116
- const S = document.querySelector(".hb-lib-list-page-form-box");
1117
- S && (a = new MutationObserver(() => {
1116
+ const x = document.querySelector(".hb-lib-list-page-form-box");
1117
+ x && (a = new MutationObserver(() => {
1118
1118
  setTimeout(() => {
1119
1119
  h();
1120
1120
  }, i);
1121
- }), a.observe(S, {
1121
+ }), a.observe(x, {
1122
1122
  childList: !0,
1123
1123
  subtree: !0,
1124
1124
  attributes: !0,
1125
1125
  attributeFilter: ["style", "class"]
1126
1126
  }));
1127
- }, U = () => {
1127
+ }, N = () => {
1128
1128
  s && clearTimeout(s), s = setTimeout(() => {
1129
1129
  h();
1130
1130
  }, i);
1131
- }, V = () => {
1132
- window.addEventListener("resize", U), Me(() => {
1133
- T(), $(), u = f();
1131
+ }, Y = () => {
1132
+ window.addEventListener("resize", N), xe(() => {
1133
+ S(), $(), u = f();
1134
1134
  });
1135
- }, k = () => {
1136
- window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s), p && clearTimeout(p);
1135
+ }, T = () => {
1136
+ window.removeEventListener("resize", N), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s), p && clearTimeout(p);
1137
1137
  };
1138
1138
  return t && se(
1139
1139
  () => t,
@@ -1143,10 +1143,10 @@ const Uo = ne(Po), Ro = {
1143
1143
  }, 200);
1144
1144
  },
1145
1145
  { deep: !0 }
1146
- ), Fe(() => {
1147
- h(), V();
1146
+ ), He(() => {
1147
+ h(), Y();
1148
1148
  }), je(() => {
1149
- k();
1149
+ T();
1150
1150
  }), {
1151
1151
  tableHeight: l,
1152
1152
  calTableHeight: h
@@ -1184,26 +1184,26 @@ const Uo = ne(Po), Ro = {
1184
1184
  // 通过函数访问,
1185
1185
  tableHeight: h,
1186
1186
  calTableHeight: p
1187
- }), (T, $) => (c(), w("section", {
1187
+ }), (S, $) => (d(), w("section", {
1188
1188
  ref_key: "PageContainerRef",
1189
1189
  ref: i,
1190
1190
  class: "hb-lib-list-page-container"
1191
1191
  }, [
1192
- J(T.$slots, "header"),
1192
+ J(S.$slots, "header"),
1193
1193
  m("section", {
1194
1194
  class: "list-page-box",
1195
- style: de(
1195
+ style: ue(
1196
1196
  s.value ? null : {
1197
1197
  "--hb-list-table-height": v(o) ? f.value - l.value + "px" : f.value - r.value + "px",
1198
1198
  "--hb-list-ttable-height": e.tableData.length ? "" : v(o) ? f.value - l.value + "px" : f.value - r.value + "px"
1199
1199
  }
1200
1200
  )
1201
1201
  }, [
1202
- J(T.$slots, "default")
1202
+ J(S.$slots, "default")
1203
1203
  ], 4)
1204
1204
  ], 512));
1205
1205
  }
1206
- }), un = ne(dn), fn = { style: { "font-weight": "500" } }, pn = {
1206
+ }), un = le(dn), fn = { style: { "font-weight": "500" } }, pn = {
1207
1207
  key: 0,
1208
1208
  class: "hb-lib-search-tag__description"
1209
1209
  }, bn = { class: "hb-lib-selector-dropdown" }, mn = { class: "hb-lib-selector-search" }, hn = { class: "hb-lib-selector-list" }, vn = ["onClick"], gn = { class: "hb-lib-option-content" }, yn = { class: "hb-lib-option-label" }, _n = {
@@ -1238,79 +1238,79 @@ const Uo = ne(Po), Ro = {
1238
1238
  setup(e, { emit: t }) {
1239
1239
  const o = e, n = t, i = jt(e, "value"), l = O(!1), r = O(""), u = O([]), a = O(), s = H(() => {
1240
1240
  if (o.remoteSearch || !r.value) return o.options;
1241
- const g = r.value.toLowerCase();
1241
+ const y = r.value.toLowerCase();
1242
1242
  return o.options.filter(
1243
- (F) => F.label.toLowerCase().includes(g) || F.description?.toLowerCase().includes(g)
1243
+ (F) => F.label.toLowerCase().includes(y) || F.description?.toLowerCase().includes(y)
1244
1244
  );
1245
1245
  }), p = H(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), h = H(() => s.value.length === 0 ? !1 : s.value.every(
1246
- (g) => u.value.includes(g.value)
1246
+ (y) => u.value.includes(y.value)
1247
1247
  )), f = H(() => {
1248
1248
  if (s.value.length === 0) return !1;
1249
- const g = s.value.filter(
1249
+ const y = s.value.filter(
1250
1250
  (F) => u.value.includes(F.value)
1251
1251
  ).length;
1252
- return g > 0 && g < s.value.length;
1252
+ return y > 0 && y < s.value.length;
1253
1253
  });
1254
1254
  se(
1255
1255
  () => i.value,
1256
- (g) => {
1257
- g ? u.value = Array.isArray(g) ? [...g] : [g] : u.value = [];
1256
+ (y) => {
1257
+ y ? u.value = Array.isArray(y) ? [...y] : [y] : u.value = [];
1258
1258
  },
1259
1259
  { immediate: !0 }
1260
1260
  ), se(
1261
1261
  () => o.searchValue,
1262
- (g) => {
1263
- o.remoteSearch && g !== void 0 && (r.value = g);
1262
+ (y) => {
1263
+ o.remoteSearch && y !== void 0 && (r.value = y);
1264
1264
  },
1265
1265
  { immediate: !0 }
1266
1266
  );
1267
- const T = (g) => {
1268
- g && (l.value = g, $.value = [...u.value], r.value = "", setTimeout(() => {
1267
+ const S = (y) => {
1268
+ y && (l.value = y, $.value = [...u.value], r.value = "", setTimeout(() => {
1269
1269
  if (a.value) {
1270
1270
  const F = a.value.input || a.value.$el?.querySelector("input");
1271
1271
  F && F.focus();
1272
1272
  }
1273
1273
  }, 100));
1274
- }, $ = O([]), U = () => {
1274
+ }, $ = O([]), N = () => {
1275
1275
  u.value = [...$.value], l.value = !1, n("cancel");
1276
- }, V = O([]), k = () => {
1277
- const g = o.multiple ? u.value : u.value[0] || "", F = o.options.filter(
1276
+ }, Y = O([]), T = () => {
1277
+ const y = o.multiple ? u.value : u.value[0] || "", F = o.options.filter(
1278
1278
  (L) => u.value.includes(L.value)
1279
1279
  );
1280
- V.value = F, $.value = [...u.value], i.value = g, n("update:value", g), n("change", g, F), n("confirm", g, F), l.value = !1;
1281
- }, S = To((g) => {
1282
- const F = g !== void 0 ? g : r.value;
1280
+ Y.value = F, $.value = [...u.value], i.value = y, n("update:value", y), n("change", y, F), n("confirm", y, F), l.value = !1;
1281
+ }, x = To((y) => {
1282
+ const F = y !== void 0 ? y : r.value;
1283
1283
  o.remoteSearch && (n("search", F), n("update:searchValue", F));
1284
- }, 300), A = (g) => {
1284
+ }, 300), P = (y) => {
1285
1285
  if (o.multiple) {
1286
1286
  const F = new Set(u.value);
1287
- F.has(g.value) ? F.delete(g.value) : F.add(g.value), u.value = Array.from(F);
1287
+ F.has(y.value) ? F.delete(y.value) : F.add(y.value), u.value = Array.from(F);
1288
1288
  } else
1289
- u.value = [g.value], k();
1290
- }, D = (g) => {
1291
- if (g.target.checked) {
1289
+ u.value = [y.value], T();
1290
+ }, D = (y) => {
1291
+ if (y.target.checked) {
1292
1292
  const L = new Set(u.value);
1293
- s.value.forEach((d) => {
1294
- L.add(d.value);
1293
+ s.value.forEach((c) => {
1294
+ L.add(c.value);
1295
1295
  }), u.value = Array.from(L);
1296
1296
  } else {
1297
1297
  const L = new Set(
1298
- s.value.map((d) => d.value)
1298
+ s.value.map((c) => c.value)
1299
1299
  );
1300
1300
  u.value = u.value.filter(
1301
- (d) => !L.has(d)
1301
+ (c) => !L.has(c)
1302
1302
  );
1303
1303
  }
1304
1304
  };
1305
- return (g, F) => {
1306
- const L = K("a-tag"), d = K("a-input"), y = K("a-checkbox"), x = K("a-radio"), P = K("a-button"), Y = K("a-select");
1307
- return c(), w("div", ce({
1305
+ return (y, F) => {
1306
+ const L = K("a-tag"), c = K("a-input"), _ = K("a-checkbox"), k = K("a-radio"), U = K("a-button"), M = K("a-select");
1307
+ return d(), w("div", de({
1308
1308
  class: "hb-lib-selector-wrapper",
1309
1309
  style: { "--prefix-width": p.value }
1310
- }, g.$attrs), [
1311
- I(Y, {
1310
+ }, y.$attrs), [
1311
+ I(M, {
1312
1312
  value: i.value,
1313
- "onUpdate:value": F[5] || (F[5] = (_) => i.value = _),
1313
+ "onUpdate:value": F[5] || (F[5] = (g) => i.value = g),
1314
1314
  mode: e.multiple ? "multiple" : void 0,
1315
1315
  placeholder: e.placeholder,
1316
1316
  "show-search": !0,
@@ -1323,17 +1323,17 @@ const Uo = ne(Po), Ro = {
1323
1323
  class: X({ "has-prefix": e.prefix }),
1324
1324
  "data-prefix": e.prefix,
1325
1325
  style: { width: "100%" },
1326
- onDropdownVisibleChange: T,
1327
- onSearch: v(S)
1326
+ onDropdownVisibleChange: S,
1327
+ onSearch: v(x)
1328
1328
  }, {
1329
- tagRender: b(({ label: _, option: q }) => [
1329
+ tagRender: b(({ label: g, option: R }) => [
1330
1330
  I(L, {
1331
1331
  class: "hb-lib-search-tag",
1332
- onClick: F[0] || (F[0] = () => T(!0))
1332
+ onClick: F[0] || (F[0] = () => S(!0))
1333
1333
  }, {
1334
1334
  default: b(() => [
1335
- m("span", fn, C(_), 1),
1336
- q?.description ? (c(), w("span", pn, " (" + C(q.description) + ") ", 1)) : z("", !0)
1335
+ m("span", fn, C(g), 1),
1336
+ R?.description ? (d(), w("span", pn, " (" + C(R.description) + ") ", 1)) : j("", !0)
1337
1337
  ]),
1338
1338
  _: 2
1339
1339
  }, 1024)
@@ -1341,15 +1341,15 @@ const Uo = ne(Po), Ro = {
1341
1341
  dropdownRender: b(() => [
1342
1342
  m("div", bn, [
1343
1343
  m("div", mn, [
1344
- I(d, {
1344
+ I(c, {
1345
1345
  ref_key: "searchInputRef",
1346
1346
  ref: a,
1347
1347
  value: r.value,
1348
- "onUpdate:value": F[1] || (F[1] = (_) => r.value = _),
1348
+ "onUpdate:value": F[1] || (F[1] = (g) => r.value = g),
1349
1349
  class: "hb-lib-selector-search-input",
1350
1350
  placeholder: "请输入关键词搜索",
1351
1351
  "allow-clear": "",
1352
- onInput: F[2] || (F[2] = (_) => v(S)(_.target.value))
1352
+ onInput: F[2] || (F[2] = (g) => v(x)(g.target.value))
1353
1353
  }, {
1354
1354
  prefix: b(() => [
1355
1355
  I(v(Ze))
@@ -1358,80 +1358,80 @@ const Uo = ne(Po), Ro = {
1358
1358
  }, 8, ["value"])
1359
1359
  ]),
1360
1360
  m("div", hn, [
1361
- (c(!0), w(ee, null, fe(s.value, (_) => (c(), w("div", {
1362
- key: _.value,
1361
+ (d(!0), w(ee, null, pe(s.value, (g) => (d(), w("div", {
1362
+ key: g.value,
1363
1363
  class: X([
1364
1364
  "hb-lib-selector-option",
1365
1365
  {
1366
1366
  selected: u.value.includes(
1367
- _.value
1367
+ g.value
1368
1368
  )
1369
1369
  }
1370
1370
  ]),
1371
- onClick: () => A(_)
1371
+ onClick: () => P(g)
1372
1372
  }, [
1373
- e.multiple ? (c(), E(y, {
1373
+ e.multiple ? (d(), z(_, {
1374
1374
  key: 0,
1375
- checked: u.value.includes(_.value),
1376
- onChange: () => A(_),
1375
+ checked: u.value.includes(g.value),
1376
+ onChange: () => P(g),
1377
1377
  onClick: F[3] || (F[3] = Ge(() => {
1378
1378
  }, ["stop"]))
1379
- }, null, 8, ["checked", "onChange"])) : (c(), E(x, {
1379
+ }, null, 8, ["checked", "onChange"])) : (d(), z(k, {
1380
1380
  key: 1,
1381
- checked: u.value.includes(_.value),
1382
- onChange: () => A(_),
1381
+ checked: u.value.includes(g.value),
1382
+ onChange: () => P(g),
1383
1383
  onClick: F[4] || (F[4] = Ge(() => {
1384
1384
  }, ["stop"]))
1385
1385
  }, null, 8, ["checked", "onChange"])),
1386
1386
  m("div", gn, [
1387
- m("div", yn, C(_.label), 1)
1387
+ m("div", yn, C(g.label), 1)
1388
1388
  ])
1389
1389
  ], 10, vn))), 128))
1390
1390
  ]),
1391
- s.value.length === 0 ? (c(), w("div", _n, C(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
1392
- e.multiple ? (c(), w("div", Ln, [
1393
- I(y, {
1391
+ s.value.length === 0 ? (d(), w("div", _n, C(y.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : j("", !0),
1392
+ e.multiple ? (d(), w("div", Ln, [
1393
+ I(_, {
1394
1394
  checked: h.value,
1395
1395
  indeterminate: f.value,
1396
1396
  onChange: D
1397
1397
  }, {
1398
1398
  default: b(() => [
1399
- R(C(g.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
1399
+ E(C(y.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
1400
1400
  ]),
1401
1401
  _: 1
1402
1402
  }, 8, ["checked", "indeterminate"]),
1403
1403
  m("div", Cn, [
1404
- I(P, {
1404
+ I(U, {
1405
1405
  size: "small",
1406
- onClick: U
1406
+ onClick: N
1407
1407
  }, {
1408
1408
  default: b(() => [
1409
- R(C(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1409
+ E(C(y.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1410
1410
  ]),
1411
1411
  _: 1
1412
1412
  }),
1413
- I(P, {
1413
+ I(U, {
1414
1414
  type: "primary",
1415
1415
  size: "small",
1416
- onClick: k
1416
+ onClick: T
1417
1417
  }, {
1418
1418
  default: b(() => [
1419
- R(C(g.$t(
1419
+ E(C(y.$t(
1420
1420
  "hbLibComp.hbFormItemFilterModal.confirm"
1421
1421
  )), 1)
1422
1422
  ]),
1423
1423
  _: 1
1424
1424
  })
1425
1425
  ])
1426
- ])) : (c(), w("div", wn, [
1426
+ ])) : (d(), w("div", wn, [
1427
1427
  F[6] || (F[6] = m("div", null, null, -1)),
1428
1428
  m("div", kn, [
1429
- I(P, {
1429
+ I(U, {
1430
1430
  size: "small",
1431
- onClick: U
1431
+ onClick: N
1432
1432
  }, {
1433
1433
  default: b(() => [
1434
- R(C(g.$t("hbLibComp.hbFormSelectFilter.close")), 1)
1434
+ E(C(y.$t("hbLibComp.hbFormSelectFilter.close")), 1)
1435
1435
  ]),
1436
1436
  _: 1
1437
1437
  })
@@ -1444,7 +1444,7 @@ const Uo = ne(Po), Ro = {
1444
1444
  ], 16);
1445
1445
  };
1446
1446
  }
1447
- }), xn = /* @__PURE__ */ le(Sn, [["__scopeId", "data-v-14ede517"]]), Tn = ne(xn), Fn = { class: "hb-lib-form-item-filter-modal-search" }, Hn = { class: "hb-lib-form-item-filter-modal-buttons" }, $n = { key: 0 }, In = /* @__PURE__ */ te({
1447
+ }), xn = /* @__PURE__ */ ae(Sn, [["__scopeId", "data-v-14ede517"]]), Tn = le(xn), Fn = { class: "hb-lib-form-item-filter-modal-search" }, Hn = { class: "hb-lib-form-item-filter-modal-buttons" }, $n = { key: 0 }, In = /* @__PURE__ */ te({
1448
1448
  name: "HbLibMutilpleSelectModal",
1449
1449
  __name: "HbMutilpleSelectModal",
1450
1450
  props: {
@@ -1461,145 +1461,145 @@ const Uo = ne(Po), Ro = {
1461
1461
  const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]), p = O([]), h = O(), f = Ve({
1462
1462
  searchText: "",
1463
1463
  searchedColumn: ""
1464
- }), T = H(() => n.tableData.map((L) => (L.id = L.id || Math.random(), L))), $ = H(() => n.tableColumn.map((L) => (L.customFilterDropdown && (L.onFilter = (d, y) => y[L.dataIndex].toString().toLowerCase().includes(d.toLowerCase()), L.onFilterDropdownVisibleChange = (d) => {
1465
- d && setTimeout(() => {
1464
+ }), S = H(() => n.tableData.map((L) => (L.id = L.id || Math.random(), L))), $ = H(() => n.tableColumn.map((L) => (L.customFilterDropdown && (L.onFilter = (c, _) => _[L.dataIndex].toString().toLowerCase().includes(c.toLowerCase()), L.onFilterDropdownVisibleChange = (c) => {
1465
+ c && setTimeout(() => {
1466
1466
  u.value?.focus();
1467
1467
  }, 100);
1468
- }), { ...L }))), U = () => {
1468
+ }), { ...L }))), N = () => {
1469
1469
  let L = "";
1470
- p.value.forEach((d) => {
1471
- L = L + d[n.labelKey] + ",";
1470
+ p.value.forEach((c) => {
1471
+ L = L + c[n.labelKey] + ",";
1472
1472
  }), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm", p.value);
1473
- }, V = () => {
1473
+ }, Y = () => {
1474
1474
  l.value = !1;
1475
- }, k = () => {
1476
- l.value = !0, Me(() => {
1475
+ }, T = () => {
1476
+ l.value = !0, xe(() => {
1477
1477
  const L = h.value?.$el?.querySelector(".ant-table-body");
1478
1478
  L && (L.scrollTop = 0);
1479
1479
  });
1480
- }, S = () => {
1480
+ }, x = () => {
1481
1481
  s.value = [], p.value = [];
1482
- }, A = () => {
1483
- r.value = "", S();
1484
- }, D = (L, d, y) => {
1485
- d(), f.searchText = L[0], f.searchedColumn = y;
1486
- }, g = (L, d) => {
1487
- L({ confirm: !0 }), f.searchText = "", d();
1488
- }, F = (L, d) => {
1489
- s.value = L, p.value = d;
1482
+ }, P = () => {
1483
+ r.value = "", x();
1484
+ }, D = (L, c, _) => {
1485
+ c(), f.searchText = L[0], f.searchedColumn = _;
1486
+ }, y = (L, c) => {
1487
+ L({ confirm: !0 }), f.searchText = "", c();
1488
+ }, F = (L, c) => {
1489
+ s.value = L, p.value = c;
1490
1490
  };
1491
1491
  return t({
1492
- resetInputVal: A
1493
- }), (L, d) => {
1494
- const y = K("a-input"), x = K("a-button"), P = K("a-table"), Y = K("a-modal");
1495
- return c(), w("div", {
1492
+ resetInputVal: P
1493
+ }), (L, c) => {
1494
+ const _ = K("a-input"), k = K("a-button"), U = K("a-table"), M = K("a-modal");
1495
+ return d(), w("div", {
1496
1496
  class: "hb-lib-multipleSelectModal-box",
1497
1497
  ref_key: "hbMultipSelectModalRef",
1498
1498
  ref: a
1499
1499
  }, [
1500
- I(y, {
1500
+ I(_, {
1501
1501
  readonly: "",
1502
- onClick: k,
1502
+ onClick: T,
1503
1503
  value: r.value,
1504
- "onUpdate:value": d[0] || (d[0] = (_) => r.value = _),
1504
+ "onUpdate:value": c[0] || (c[0] = (g) => r.value = g),
1505
1505
  placeholder: L.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
1506
1506
  }, {
1507
1507
  addonAfter: b(() => [
1508
- I(v(So), { onClick: k })
1508
+ I(v(So), { onClick: T })
1509
1509
  ]),
1510
1510
  _: 1
1511
1511
  }, 8, ["value", "placeholder"]),
1512
- I(Y, {
1512
+ I(M, {
1513
1513
  visible: l.value,
1514
- "onUpdate:visible": d[1] || (d[1] = (_) => l.value = _),
1514
+ "onUpdate:visible": c[1] || (c[1] = (g) => l.value = g),
1515
1515
  title: e.modelTitle,
1516
1516
  width: e.modalWidth,
1517
1517
  class: "hb-lib-multipleSelectModal-modal"
1518
1518
  }, {
1519
1519
  footer: b(() => [
1520
- I(x, { onClick: S }, {
1520
+ I(k, { onClick: x }, {
1521
1521
  default: b(() => [
1522
- R(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
1522
+ E(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
1523
1523
  ]),
1524
1524
  _: 1
1525
1525
  }),
1526
- I(x, { onClick: V }, {
1526
+ I(k, { onClick: Y }, {
1527
1527
  default: b(() => [
1528
- R(C(L.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1528
+ E(C(L.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1529
1529
  ]),
1530
1530
  _: 1
1531
1531
  }),
1532
- I(x, {
1532
+ I(k, {
1533
1533
  type: "primary",
1534
- onClick: U
1534
+ onClick: N
1535
1535
  }, {
1536
1536
  default: b(() => [
1537
- R(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1537
+ E(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1538
1538
  ]),
1539
1539
  _: 1
1540
1540
  })
1541
1541
  ]),
1542
1542
  default: b(() => [
1543
- I(P, {
1543
+ I(U, {
1544
1544
  ref_key: "tableRef",
1545
1545
  ref: h,
1546
1546
  columns: $.value,
1547
- dataSource: T.value,
1547
+ dataSource: S.value,
1548
1548
  rowSelection: { selectedRowKeys: s.value, onChange: F },
1549
- rowKey: (_) => _[e.tableKey],
1549
+ rowKey: (g) => g[e.tableKey],
1550
1550
  scroll: { y: e.tableHeight }
1551
1551
  }, {
1552
- customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: q, confirm: ae, clearFilters: pe, column: re }) => [
1552
+ customFilterDropdown: b(({ setSelectedKeys: g, selectedKeys: R, confirm: oe, clearFilters: ce, column: re }) => [
1553
1553
  m("div", Fn, [
1554
- I(y, {
1554
+ I(_, {
1555
1555
  ref_key: "searchInput",
1556
1556
  ref: u,
1557
1557
  placeholder: `请输入${re.title}`,
1558
- value: q[0],
1558
+ value: R[0],
1559
1559
  class: "hb-lib-form-item-filter-modal-search-input",
1560
- onChange: (ge) => _(ge.target.value ? [ge.target.value] : []),
1561
- onPressEnter: (ge) => D(q, ae, re.dataIndex)
1560
+ onChange: (ge) => g(ge.target.value ? [ge.target.value] : []),
1561
+ onPressEnter: (ge) => D(R, oe, re.dataIndex)
1562
1562
  }, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
1563
1563
  m("section", Hn, [
1564
- I(x, {
1564
+ I(k, {
1565
1565
  class: "hb-lib-form-item-filter-modal-button",
1566
1566
  type: "ghost",
1567
- onClick: (ge) => g(pe, ae)
1567
+ onClick: (ge) => y(ce, oe)
1568
1568
  }, {
1569
1569
  default: b(() => [
1570
- R(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
1570
+ E(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
1571
1571
  ]),
1572
1572
  _: 1
1573
1573
  }, 8, ["onClick"]),
1574
- I(x, {
1574
+ I(k, {
1575
1575
  type: "primary",
1576
1576
  class: "hb-lib-form-item-filter-modal-button-confirm",
1577
- onClick: (ge) => D(q, ae, re.dataIndex)
1577
+ onClick: (ge) => D(R, oe, re.dataIndex)
1578
1578
  }, {
1579
1579
  default: b(() => [
1580
- R(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1580
+ E(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1581
1581
  ]),
1582
1582
  _: 1
1583
1583
  }, 8, ["onClick"])
1584
1584
  ])
1585
1585
  ])
1586
1586
  ]),
1587
- customFilterIcon: b(({ filtered: _ }) => [
1587
+ customFilterIcon: b(({ filtered: g }) => [
1588
1588
  I(v(Ze), {
1589
- style: de({ color: _ ? "#108ee9" : void 0 })
1589
+ style: ue({ color: g ? "#108ee9" : void 0 })
1590
1590
  }, null, 8, ["style"])
1591
1591
  ]),
1592
- bodyCell: b(({ text: _, column: q }) => [
1593
- f.searchText && f.searchedColumn === q.dataIndex ? (c(), w("span", $n, [
1594
- (c(!0), w(ee, null, fe(_.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (ae, pe) => (c(), w(ee, null, [
1595
- ae.toLowerCase() === f.searchText.toLowerCase() ? (c(), w("mark", {
1596
- key: pe,
1592
+ bodyCell: b(({ text: g, column: R }) => [
1593
+ f.searchText && f.searchedColumn === R.dataIndex ? (d(), w("span", $n, [
1594
+ (d(!0), w(ee, null, pe(g.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (oe, ce) => (d(), w(ee, null, [
1595
+ oe.toLowerCase() === f.searchText.toLowerCase() ? (d(), w("mark", {
1596
+ key: ce,
1597
1597
  class: "highlight"
1598
- }, C(ae), 1)) : (c(), w(ee, { key: 1 }, [
1599
- R(C(ae), 1)
1598
+ }, C(oe), 1)) : (d(), w(ee, { key: 1 }, [
1599
+ E(C(oe), 1)
1600
1600
  ], 64))
1601
1601
  ], 64))), 256))
1602
- ])) : z("", !0)
1602
+ ])) : j("", !0)
1603
1603
  ]),
1604
1604
  _: 1
1605
1605
  }, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
@@ -1609,13 +1609,13 @@ const Uo = ne(Po), Ro = {
1609
1609
  ], 512);
1610
1610
  };
1611
1611
  }
1612
- }), Mn = ne(In), Bn = { class: "hb-lib-table-act-box" }, Dn = ["onClick"], An = {
1612
+ }), Mn = le(In), Bn = { class: "hb-lib-table-act-box" }, Dn = ["onClick"], An = {
1613
1613
  href: "javascript:;",
1614
1614
  class: "hb-lib-table-main-action"
1615
1615
  }, On = ["onClick"], Pn = {
1616
1616
  href: "javascript:;",
1617
1617
  class: "hb-lib-table-more-action"
1618
- }, Un = ["onClick"], Rn = { href: "javascript:;" }, En = ["onClick"], Nn = { class: "hb-lib-table-confirm-modal-content" }, zn = /* @__PURE__ */ te({
1618
+ }, Un = ["onClick"], En = { href: "javascript:;" }, Rn = ["onClick"], Nn = { class: "hb-lib-table-confirm-modal-content" }, zn = /* @__PURE__ */ te({
1619
1619
  name: "HbLibTableAct",
1620
1620
  __name: "HbTableAct",
1621
1621
  props: {
@@ -1625,55 +1625,55 @@ const Uo = ne(Po), Ro = {
1625
1625
  buttonDisplaysQuantity: {}
1626
1626
  },
1627
1627
  setup(e, { expose: t }) {
1628
- const o = e, { t: n } = ve(), i = O(!1), l = O(!1), r = O(null), u = O({}), a = (D) => !!D && (typeof D == "object" || typeof D == "function") && typeof D.then == "function", s = (D) => !!u.value[D.key], p = (D, g) => {
1628
+ const o = e, { t: n } = ve(), i = O(!1), l = O(!1), r = O(null), u = O({}), a = (D) => !!D && (typeof D == "object" || typeof D == "function") && typeof D.then == "function", s = (D) => !!u.value[D.key], p = (D, y) => {
1629
1629
  u.value = {
1630
1630
  ...u.value,
1631
- [D.key]: g
1631
+ [D.key]: y
1632
1632
  };
1633
1633
  }, h = H(() => o.actions.filter(
1634
1634
  (D) => D.condition !== void 0 ? D.condition : !0
1635
- )), f = H(() => h.value.slice(0, o.buttonDisplaysQuantity)), T = H(() => $(
1635
+ )), f = H(() => h.value.slice(0, o.buttonDisplaysQuantity)), S = H(() => $(
1636
1636
  h.value.slice(o.buttonDisplaysQuantity)
1637
1637
  ));
1638
1638
  function $(D) {
1639
1639
  if (o.filterPermission)
1640
1640
  return o.filterPermission(D);
1641
- let g = [], F = [];
1642
- return g = JSON.parse(
1641
+ let y = [], F = [];
1642
+ return y = JSON.parse(
1643
1643
  sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"
1644
- ), !Array.isArray(g) || D.length === 0 ? (g = [], []) : (g = g.filter((L) => L.type != "2"), D.forEach((L) => {
1645
- (!L.permissionsTag || g.findIndex(
1646
- (d) => d.action === L.permissionsTag
1644
+ ), !Array.isArray(y) || D.length === 0 ? (y = [], []) : (y = y.filter((L) => L.type != "2"), D.forEach((L) => {
1645
+ (!L.permissionsTag || y.findIndex(
1646
+ (c) => c.action === L.permissionsTag
1647
1647
  ) !== -1) && F.push(L);
1648
1648
  }), F);
1649
1649
  }
1650
- const U = async (D) => {
1650
+ const N = async (D) => {
1651
1651
  if (D.needLoading) {
1652
1652
  if (s(D)) return;
1653
1653
  p(D, !0);
1654
- const g = () => p(D, !1), F = D.handler.length >= 2;
1654
+ const y = () => p(D, !1), F = D.handler.length >= 2;
1655
1655
  try {
1656
- const L = D.handler(o.record, g);
1657
- a(L) ? (await L, g()) : F || g();
1656
+ const L = D.handler(o.record, y);
1657
+ a(L) ? (await L, y()) : F || y();
1658
1658
  } catch (L) {
1659
- throw g(), L;
1659
+ throw y(), L;
1660
1660
  }
1661
1661
  } else
1662
1662
  D.handler(o.record);
1663
- }, V = (D) => {
1663
+ }, Y = (D) => {
1664
1664
  r.value = D, i.value = !0;
1665
- }, k = async () => {
1665
+ }, T = async () => {
1666
1666
  if (r.value) {
1667
1667
  l.value = !0;
1668
1668
  try {
1669
- await U(r.value), i.value = !1, r.value = null;
1669
+ await N(r.value), i.value = !1, r.value = null;
1670
1670
  } finally {
1671
1671
  l.value = !1;
1672
1672
  }
1673
1673
  }
1674
- }, S = () => {
1674
+ }, x = () => {
1675
1675
  i.value = !1, r.value = null;
1676
- }, A = H(() => r.value ? {
1676
+ }, P = H(() => r.value ? {
1677
1677
  title: r.value.confirmTitle,
1678
1678
  content: r.value.confirmContent || r.value.confirmTitle
1679
1679
  } : {
@@ -1687,101 +1687,101 @@ const Uo = ne(Po), Ro = {
1687
1687
  APopconfirm: at,
1688
1688
  AModal: ct,
1689
1689
  DownOutlined: pt
1690
- }), (D, g) => {
1690
+ }), (D, y) => {
1691
1691
  const F = K("a-divider"), L = Wt("has");
1692
- return c(), w("div", Bn, [
1693
- (c(!0), w(ee, null, fe(f.value, (d, y) => (c(), w(ee, { key: y }, [
1694
- d.needConfirm ? (c(), w(ee, { key: 0 }, [
1695
- d.confirmType === "modal" ? (c(), w(ee, { key: 0 }, [
1696
- we((c(), w("a", {
1692
+ return d(), w("div", Bn, [
1693
+ (d(!0), w(ee, null, pe(f.value, (c, _) => (d(), w(ee, { key: _ }, [
1694
+ c.needConfirm ? (d(), w(ee, { key: 0 }, [
1695
+ c.confirmType === "modal" ? (d(), w(ee, { key: 0 }, [
1696
+ we((d(), w("a", {
1697
1697
  href: "javascript:;",
1698
1698
  class: "hb-lib-table-main-action",
1699
- onClick: (x) => V(d)
1699
+ onClick: (k) => Y(c)
1700
1700
  }, [
1701
- R(C(d.label), 1)
1701
+ E(C(c.label), 1)
1702
1702
  ], 8, Dn)), [
1703
- [L, d.permissionsTag || null]
1703
+ [L, c.permissionsTag || null]
1704
1704
  ]),
1705
- T.value && T.value.length > 0 || y !== f.value.length - 1 ? (c(), E(F, {
1705
+ S.value && S.value.length > 0 || _ !== f.value.length - 1 ? (d(), z(F, {
1706
1706
  key: 0,
1707
1707
  type: "vertical"
1708
- })) : z("", !0)
1709
- ], 64)) : (c(), w(ee, { key: 1 }, [
1708
+ })) : j("", !0)
1709
+ ], 64)) : (d(), w(ee, { key: 1 }, [
1710
1710
  I(v(at), {
1711
- title: d.confirmTitle,
1712
- onConfirm: (x) => U(d)
1711
+ title: c.confirmTitle,
1712
+ onConfirm: (k) => N(c)
1713
1713
  }, {
1714
1714
  default: b(() => [
1715
- we((c(), w("a", An, [
1716
- R(C(d.label), 1)
1715
+ we((d(), w("a", An, [
1716
+ E(C(c.label), 1)
1717
1717
  ])), [
1718
- [L, d.permissionsTag || null]
1718
+ [L, c.permissionsTag || null]
1719
1719
  ])
1720
1720
  ]),
1721
1721
  _: 2
1722
1722
  }, 1032, ["title", "onConfirm"]),
1723
- T.value && T.value.length > 0 || y !== f.value.length - 1 ? (c(), E(F, {
1723
+ S.value && S.value.length > 0 || _ !== f.value.length - 1 ? (d(), z(F, {
1724
1724
  key: 0,
1725
1725
  type: "vertical"
1726
- })) : z("", !0)
1726
+ })) : j("", !0)
1727
1727
  ], 64))
1728
- ], 64)) : d.slot ? J(D.$slots, d.slot, {
1728
+ ], 64)) : c.slot ? J(D.$slots, c.slot, {
1729
1729
  key: 1,
1730
- item: d,
1731
- haveMore: T.value && T.value.length > 0 || y !== f.value.length - 1
1732
- }, void 0, !0) : (c(), w(ee, { key: 2 }, [
1733
- we((c(), w("a", {
1730
+ item: c,
1731
+ haveMore: S.value && S.value.length > 0 || _ !== f.value.length - 1
1732
+ }, void 0, !0) : (d(), w(ee, { key: 2 }, [
1733
+ we((d(), w("a", {
1734
1734
  href: "javascript:;",
1735
- class: X(["hb-lib-table-main-action", { "is-loading": s(d) }]),
1736
- onClick: (x) => U(d)
1735
+ class: X(["hb-lib-table-main-action", { "is-loading": s(c) }]),
1736
+ onClick: (k) => N(c)
1737
1737
  }, [
1738
- R(C(d.label) + " ", 1),
1739
- s(d) ? (c(), E(v(Mt), {
1738
+ E(C(c.label) + " ", 1),
1739
+ s(c) ? (d(), z(v(Mt), {
1740
1740
  key: 0,
1741
1741
  spin: "",
1742
1742
  class: "hb-lib-table-action-loading-icon"
1743
- })) : z("", !0)
1743
+ })) : j("", !0)
1744
1744
  ], 10, On)), [
1745
- [L, d.permissionsTag || null]
1745
+ [L, c.permissionsTag || null]
1746
1746
  ]),
1747
- T.value && T.value.length > 0 || y !== f.value.length - 1 ? we((c(), E(F, {
1747
+ S.value && S.value.length > 0 || _ !== f.value.length - 1 ? we((d(), z(F, {
1748
1748
  key: 0,
1749
1749
  type: "vertical"
1750
1750
  }, null, 512)), [
1751
- [L, d.permissionsTag || null]
1752
- ]) : z("", !0)
1751
+ [L, c.permissionsTag || null]
1752
+ ]) : j("", !0)
1753
1753
  ], 64))
1754
1754
  ], 64))), 128)),
1755
- T.value && T.value.length > 0 ? (c(), E(v(It), { key: 0 }, {
1755
+ S.value && S.value.length > 0 ? (d(), z(v(It), { key: 0 }, {
1756
1756
  overlay: b(() => [
1757
1757
  I(v($t), null, {
1758
1758
  default: b(() => [
1759
- (c(!0), w(ee, null, fe(T.value, (d, y) => we((c(), E(v(Ht), { key: y }, {
1759
+ (d(!0), w(ee, null, pe(S.value, (c, _) => we((d(), z(v(Ht), { key: _ }, {
1760
1760
  default: b(() => [
1761
- d.needConfirm ? (c(), w(ee, { key: 0 }, [
1762
- d.confirmType === "modal" ? we((c(), w("a", {
1761
+ c.needConfirm ? (d(), w(ee, { key: 0 }, [
1762
+ c.confirmType === "modal" ? we((d(), w("a", {
1763
1763
  key: 0,
1764
1764
  href: "javascript:;",
1765
- onClick: (x) => V(d)
1765
+ onClick: (k) => Y(c)
1766
1766
  }, [
1767
- R(C(d.label), 1)
1767
+ E(C(c.label), 1)
1768
1768
  ], 8, Un)), [
1769
1769
  [
1770
1770
  L,
1771
- d.permissionsTag || null
1771
+ c.permissionsTag || null
1772
1772
  ]
1773
- ]) : we((c(), E(v(at), {
1773
+ ]) : we((d(), z(v(at), {
1774
1774
  key: 1,
1775
- title: d.confirmTitle,
1776
- onConfirm: (x) => U(d)
1775
+ title: c.confirmTitle,
1776
+ onConfirm: (k) => N(c)
1777
1777
  }, {
1778
1778
  default: b(() => [
1779
- we((c(), w("a", Rn, [
1780
- R(C(d.label), 1)
1779
+ we((d(), w("a", En, [
1780
+ E(C(c.label), 1)
1781
1781
  ])), [
1782
1782
  [
1783
1783
  L,
1784
- d.permissionsTag || null
1784
+ c.permissionsTag || null
1785
1785
  ]
1786
1786
  ])
1787
1787
  ]),
@@ -1789,30 +1789,30 @@ const Uo = ne(Po), Ro = {
1789
1789
  }, 1032, ["title", "onConfirm"])), [
1790
1790
  [
1791
1791
  L,
1792
- d.permissionsTag || null
1792
+ c.permissionsTag || null
1793
1793
  ]
1794
1794
  ])
1795
- ], 64)) : we((c(), w("a", {
1795
+ ], 64)) : we((d(), w("a", {
1796
1796
  key: 1,
1797
1797
  href: "javascript:;",
1798
1798
  class: X({
1799
- "is-loading": s(d)
1799
+ "is-loading": s(c)
1800
1800
  }),
1801
- onClick: (x) => U(d)
1801
+ onClick: (k) => N(c)
1802
1802
  }, [
1803
- R(C(d.label) + " ", 1),
1804
- s(d) ? (c(), E(v(Mt), {
1803
+ E(C(c.label) + " ", 1),
1804
+ s(c) ? (d(), z(v(Mt), {
1805
1805
  key: 0,
1806
1806
  spin: "",
1807
1807
  class: "hb-lib-table-action-loading-icon"
1808
- })) : z("", !0)
1809
- ], 10, En)), [
1810
- [L, d.permissionsTag || null]
1808
+ })) : j("", !0)
1809
+ ], 10, Rn)), [
1810
+ [L, c.permissionsTag || null]
1811
1811
  ])
1812
1812
  ]),
1813
1813
  _: 2
1814
1814
  }, 1024)), [
1815
- [L, d.permissionsTag || null]
1815
+ [L, c.permissionsTag || null]
1816
1816
  ])), 128))
1817
1817
  ]),
1818
1818
  _: 1
@@ -1820,41 +1820,41 @@ const Uo = ne(Po), Ro = {
1820
1820
  ]),
1821
1821
  default: b(() => [
1822
1822
  m("a", Pn, [
1823
- R(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
1823
+ E(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
1824
1824
  I(v(pt), { style: { "font-size": "12px", "margin-left": "4px" } })
1825
1825
  ])
1826
1826
  ]),
1827
1827
  _: 1
1828
- })) : z("", !0),
1828
+ })) : j("", !0),
1829
1829
  I(v(ct), {
1830
1830
  visible: i.value,
1831
- title: A.value.title,
1831
+ title: P.value.title,
1832
1832
  "confirm-loading": l.value,
1833
- onOk: k,
1834
- onCancel: S
1833
+ onOk: T,
1834
+ onCancel: x
1835
1835
  }, {
1836
1836
  default: b(() => [
1837
- m("p", Nn, C(A.value.content), 1)
1837
+ m("p", Nn, C(P.value.content), 1)
1838
1838
  ]),
1839
1839
  _: 1
1840
1840
  }, 8, ["visible", "title", "confirm-loading"])
1841
1841
  ]);
1842
1842
  };
1843
1843
  }
1844
- }), Vn = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-ec0b7ef0"]]), jn = ne(Vn), Bt = (e) => ({ tableWidth: H(() => {
1844
+ }), Vn = /* @__PURE__ */ ae(zn, [["__scopeId", "data-v-ec0b7ef0"]]), jn = le(Vn), Bt = (e) => ({ tableWidth: H(() => {
1845
1845
  const o = Array.isArray(e) ? e : e.value;
1846
1846
  return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, i) => n + i, 0);
1847
1847
  }) });
1848
- var Wn = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, Xt = Wn || qn || Function("return this")(), et = Xt.Symbol, Qt = Object.prototype, Yn = Qt.hasOwnProperty, Kn = Qt.toString, Ee = et ? et.toStringTag : void 0;
1848
+ var Wn = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, Xt = Wn || qn || Function("return this")(), et = Xt.Symbol, Qt = Object.prototype, Yn = Qt.hasOwnProperty, Kn = Qt.toString, Re = et ? et.toStringTag : void 0;
1849
1849
  function Gn(e) {
1850
- var t = Yn.call(e, Ee), o = e[Ee];
1850
+ var t = Yn.call(e, Re), o = e[Re];
1851
1851
  try {
1852
- e[Ee] = void 0;
1852
+ e[Re] = void 0;
1853
1853
  var n = !0;
1854
1854
  } catch {
1855
1855
  }
1856
1856
  var i = Kn.call(e);
1857
- return n && (t ? e[Ee] = o : delete e[Ee]), i;
1857
+ return n && (t ? e[Re] = o : delete e[Re]), i;
1858
1858
  }
1859
1859
  var Jn = Object.prototype, Xn = Jn.toString;
1860
1860
  function Qn(e) {
@@ -1909,47 +1909,47 @@ function Zt(e, t, o) {
1909
1909
  if (typeof e != "function")
1910
1910
  throw new TypeError(pl);
1911
1911
  t = Ot(t) || 0, bt(o) && (p = !!o.leading, h = "maxWait" in o, l = h ? bl(Ot(o.maxWait) || 0, t) : l, f = "trailing" in o ? !!o.trailing : f);
1912
- function T(F) {
1913
- var L = n, d = i;
1914
- return n = i = void 0, s = F, r = e.apply(d, L), r;
1912
+ function S(F) {
1913
+ var L = n, c = i;
1914
+ return n = i = void 0, s = F, r = e.apply(c, L), r;
1915
1915
  }
1916
1916
  function $(F) {
1917
- return s = F, u = setTimeout(k, t), p ? T(F) : r;
1917
+ return s = F, u = setTimeout(T, t), p ? S(F) : r;
1918
1918
  }
1919
- function U(F) {
1920
- var L = F - a, d = F - s, y = t - L;
1921
- return h ? ml(y, l - d) : y;
1919
+ function N(F) {
1920
+ var L = F - a, c = F - s, _ = t - L;
1921
+ return h ? ml(_, l - c) : _;
1922
1922
  }
1923
- function V(F) {
1924
- var L = F - a, d = F - s;
1925
- return a === void 0 || L >= t || L < 0 || h && d >= l;
1923
+ function Y(F) {
1924
+ var L = F - a, c = F - s;
1925
+ return a === void 0 || L >= t || L < 0 || h && c >= l;
1926
1926
  }
1927
- function k() {
1927
+ function T() {
1928
1928
  var F = it();
1929
- if (V(F))
1930
- return S(F);
1931
- u = setTimeout(k, U(F));
1929
+ if (Y(F))
1930
+ return x(F);
1931
+ u = setTimeout(T, N(F));
1932
1932
  }
1933
- function S(F) {
1934
- return u = void 0, f && n ? T(F) : (n = i = void 0, r);
1933
+ function x(F) {
1934
+ return u = void 0, f && n ? S(F) : (n = i = void 0, r);
1935
1935
  }
1936
- function A() {
1936
+ function P() {
1937
1937
  u !== void 0 && clearTimeout(u), s = 0, n = a = i = u = void 0;
1938
1938
  }
1939
1939
  function D() {
1940
- return u === void 0 ? r : S(it());
1940
+ return u === void 0 ? r : x(it());
1941
1941
  }
1942
- function g() {
1943
- var F = it(), L = V(F);
1942
+ function y() {
1943
+ var F = it(), L = Y(F);
1944
1944
  if (n = arguments, i = this, a = F, L) {
1945
1945
  if (u === void 0)
1946
1946
  return $(a);
1947
1947
  if (h)
1948
- return clearTimeout(u), u = setTimeout(k, t), T(a);
1948
+ return clearTimeout(u), u = setTimeout(T, t), S(a);
1949
1949
  }
1950
- return u === void 0 && (u = setTimeout(k, t)), r;
1950
+ return u === void 0 && (u = setTimeout(T, t)), r;
1951
1951
  }
1952
- return g.cancel = A, g.flush = D, g;
1952
+ return y.cancel = P, y.flush = D, y;
1953
1953
  }
1954
1954
  const hl = {
1955
1955
  key: 0,
@@ -1969,28 +1969,28 @@ const hl = {
1969
1969
  const o = he("globalCompConfig", {}), n = t, { t: i } = ve(), l = e, r = O([]), u = he("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = Bt(r), s = O(a.value), p = H(() => l.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
1970
1970
  se(
1971
1971
  () => l.columns,
1972
- (k) => {
1973
- const S = k.filter(
1972
+ (T) => {
1973
+ const x = T.filter(
1974
1974
  (D) => D != null && D.checked
1975
1975
  );
1976
- r.value = S.map((D) => {
1977
- let g = {
1976
+ r.value = x.map((D) => {
1977
+ let y = {
1978
1978
  ...D,
1979
1979
  title: D.title || D.label,
1980
1980
  align: D.align || o.listTable?.align || "center"
1981
1981
  };
1982
- g.ellipsis && !g.needTooltip && (g.needTooltip = !0);
1982
+ y.ellipsis && !y.needTooltip && (y.needTooltip = !0);
1983
1983
  let F = l.defaultWidth || o.listTable?.defaultColWidth || 150;
1984
- if (!g.width)
1985
- g.width = F;
1986
- else if (typeof g.width == "string") {
1987
- const L = parseInt(g.width, 10);
1988
- g.width = isNaN(L) ? F : L;
1984
+ if (!y.width)
1985
+ y.width = F;
1986
+ else if (typeof y.width == "string") {
1987
+ const L = parseInt(y.width, 10);
1988
+ y.width = isNaN(L) ? F : L;
1989
1989
  }
1990
- return g.resizable === void 0 && (g.resizable = !0), g;
1990
+ return y.resizable === void 0 && (y.resizable = !0), y;
1991
1991
  });
1992
- const { tableWidth: A } = Bt(r);
1993
- s.value = A.value;
1992
+ const { tableWidth: P } = Bt(r);
1993
+ s.value = P.value;
1994
1994
  },
1995
1995
  {
1996
1996
  immediate: !0,
@@ -1999,29 +1999,29 @@ const hl = {
1999
1999
  );
2000
2000
  const h = Zt(() => {
2001
2001
  n("resizeCol", r.value);
2002
- }, o.listTable?.colSaveTimeOut || 800), f = (k, S) => {
2003
- if (S) {
2004
- const A = typeof k == "string" ? parseInt(k, 10) : k;
2005
- S.width = isNaN(A) ? o.listTable?.defaultColWidth || 150 : A, Me(() => {
2002
+ }, o.listTable?.colSaveTimeOut || 800), f = (T, x) => {
2003
+ if (x) {
2004
+ const P = typeof T == "string" ? parseInt(T, 10) : T;
2005
+ x.width = isNaN(P) ? o.listTable?.defaultColWidth || 150 : P, xe(() => {
2006
2006
  h();
2007
2007
  });
2008
2008
  }
2009
- }, T = (k, S, A) => {
2010
- k?.current && n("change", k, S, A);
2011
- }, $ = (k, S = "YYYY-MM-DD HH:mm:ss") => k ? ot(k).format(S) : "", U = (k, S) => k && S[k] || "", V = (k, S = o.listTable?.ellipsisNumber || 20) => k ? k.length > S ? `${k.substring(0, S)}...` : k : "";
2012
- return (k, S) => {
2013
- const A = K("a-empty"), D = K("a-tooltip"), g = K("HbLibCopy"), F = K("a-tag"), L = K("a-table");
2014
- return c(), w("div", {
2009
+ }, S = (T, x, P) => {
2010
+ T?.current && n("change", T, x, P);
2011
+ }, $ = (T, x = "YYYY-MM-DD HH:mm:ss") => T ? ot(T).format(x) : "", N = (T, x) => T && x[T] || "", Y = (T, x = o.listTable?.ellipsisNumber || 20) => T ? T.length > x ? `${T.substring(0, x)}...` : T : "";
2012
+ return (T, x) => {
2013
+ const P = K("a-empty"), D = K("a-tooltip"), y = K("HbLibCopy"), F = K("a-tag"), L = K("a-table");
2014
+ return d(), w("div", {
2015
2015
  class: X(["hb-lib-list-table", { "nowrap-table": l.rowHeight }]),
2016
- style: de({
2016
+ style: ue({
2017
2017
  "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
2018
2018
  })
2019
2019
  }, [
2020
- k.$slots.tableActLeft ? (c(), w("section", hl, [
2021
- J(k.$slots, "tableActLeft", {}, void 0, !0),
2022
- J(k.$slots, "tableActRight", {}, void 0, !0)
2023
- ])) : z("", !0),
2024
- I(L, ce(k.$attrs, {
2020
+ T.$slots.tableActLeft ? (d(), w("section", hl, [
2021
+ J(T.$slots, "tableActLeft", {}, void 0, !0),
2022
+ J(T.$slots, "tableActRight", {}, void 0, !0)
2023
+ ])) : j("", !0),
2024
+ I(L, de(T.$attrs, {
2025
2025
  bordered: "",
2026
2026
  columns: r.value,
2027
2027
  "table-layout": "fixed",
@@ -2029,148 +2029,148 @@ const hl = {
2029
2029
  x: s.value
2030
2030
  } : { x: s.value, y: v(u).tableHeight },
2031
2031
  onResizeColumn: f,
2032
- onChange: T
2032
+ onChange: S
2033
2033
  }), Ne({
2034
2034
  emptyText: b(() => [
2035
2035
  m("div", vl, [
2036
- I(A, {
2036
+ I(P, {
2037
2037
  description: v(i)("hbLibComp.hbListTable.noData")
2038
2038
  }, null, 8, ["description"])
2039
2039
  ])
2040
2040
  ]),
2041
2041
  _: 2
2042
2042
  }, [
2043
- k.$slots.headerCell ? {
2043
+ T.$slots.headerCell ? {
2044
2044
  name: "headerCell",
2045
- fn: b(({ column: d }) => [
2046
- J(k.$slots, "headerCell", {
2047
- column: d,
2048
- title: d.title
2045
+ fn: b(({ column: c }) => [
2046
+ J(T.$slots, "headerCell", {
2047
+ column: c,
2048
+ title: c.title
2049
2049
  }, () => [
2050
- R(C(d.title), 1)
2050
+ E(C(c.title), 1)
2051
2051
  ], !0)
2052
2052
  ]),
2053
2053
  key: "0"
2054
2054
  } : void 0,
2055
- k.$slots.bodyCell ? {
2055
+ T.$slots.bodyCell ? {
2056
2056
  name: "bodyCell",
2057
- fn: b(({ column: d, record: y, index: x, text: P }) => [
2058
- J(k.$slots, "bodyCell", {
2059
- column: d,
2060
- record: y,
2061
- index: x,
2062
- text: P
2057
+ fn: b(({ column: c, record: _, index: k, text: U }) => [
2058
+ J(T.$slots, "bodyCell", {
2059
+ column: c,
2060
+ record: _,
2061
+ index: k,
2062
+ text: U
2063
2063
  }, void 0, !0),
2064
- d && d.needTooltip && !d.needCopy ? (c(), E(D, {
2064
+ c && c.needTooltip && !c.needCopy ? (d(), z(D, {
2065
2065
  key: 0,
2066
2066
  placement: e.tooltipPlacement
2067
2067
  }, {
2068
2068
  title: b(() => [
2069
- R(C(y[d.dataIndex]), 1)
2069
+ E(C(_[c.dataIndex]), 1)
2070
2070
  ]),
2071
2071
  default: b(() => [
2072
- R(" " + C(y[d.dataIndex]), 1)
2072
+ E(" " + C(_[c.dataIndex]), 1)
2073
2073
  ]),
2074
2074
  _: 2
2075
- }, 1032, ["placement"])) : d && d.needCopy && !d.needTooltip ? (c(), w("div", gl, [
2076
- R(C(y[d.dataIndex]) + " ", 1),
2077
- I(g, {
2078
- "cp-text": y[d.dataIndex],
2075
+ }, 1032, ["placement"])) : c && c.needCopy && !c.needTooltip ? (d(), w("div", gl, [
2076
+ E(C(_[c.dataIndex]) + " ", 1),
2077
+ I(y, {
2078
+ "cp-text": _[c.dataIndex],
2079
2079
  style: { position: "relative" }
2080
2080
  }, null, 8, ["cp-text"])
2081
- ])) : z("", !0),
2082
- d && d.needTooltip && d.needCopy ? (c(), w("div", yl, [
2081
+ ])) : j("", !0),
2082
+ c && c.needTooltip && c.needCopy ? (d(), w("div", yl, [
2083
2083
  I(D, { placement: e.tooltipPlacement }, {
2084
2084
  title: b(() => [
2085
- R(C(y[d.dataIndex]), 1)
2085
+ E(C(_[c.dataIndex]), 1)
2086
2086
  ]),
2087
2087
  default: b(() => [
2088
- R(" " + C(V(
2089
- y[d.dataIndex],
2090
- d.strLen
2088
+ E(" " + C(Y(
2089
+ _[c.dataIndex],
2090
+ c.strLen
2091
2091
  )), 1)
2092
2092
  ]),
2093
2093
  _: 2
2094
2094
  }, 1032, ["placement"]),
2095
- I(g, {
2096
- "cp-text": y[d.dataIndex],
2095
+ I(y, {
2096
+ "cp-text": _[c.dataIndex],
2097
2097
  style: { position: "relative" }
2098
2098
  }, null, 8, ["cp-text"])
2099
- ])) : d && d.needFormat ? (c(), w(ee, { key: 3 }, [
2100
- R(C($(y[d.dataIndex], d.format)), 1)
2101
- ], 64)) : d && d.tags ? (c(), w(ee, { key: 4 }, [
2102
- U(
2103
- y[d.dataIndex],
2104
- d.tags
2105
- ) ? (c(), E(F, {
2099
+ ])) : c && c.needFormat ? (d(), w(ee, { key: 3 }, [
2100
+ E(C($(_[c.dataIndex], c.format)), 1)
2101
+ ], 64)) : c && c.tags ? (d(), w(ee, { key: 4 }, [
2102
+ N(
2103
+ _[c.dataIndex],
2104
+ c.tags
2105
+ ) ? (d(), z(F, {
2106
2106
  key: 0,
2107
- color: U(
2108
- y[d.dataIndex],
2109
- d.tags
2107
+ color: N(
2108
+ _[c.dataIndex],
2109
+ c.tags
2110
2110
  )
2111
2111
  }, {
2112
2112
  default: b(() => [
2113
- R(C(y[d.dataIndex]), 1)
2113
+ E(C(_[c.dataIndex]), 1)
2114
2114
  ]),
2115
2115
  _: 2
2116
- }, 1032, ["color"])) : z("", !0)
2117
- ], 64)) : z("", !0)
2116
+ }, 1032, ["color"])) : j("", !0)
2117
+ ], 64)) : j("", !0)
2118
2118
  ]),
2119
2119
  key: "1"
2120
2120
  } : void 0,
2121
- k.$slots.expandedRowRender ? {
2121
+ T.$slots.expandedRowRender ? {
2122
2122
  name: "expandedRowRender",
2123
- fn: b(({ record: d, index: y }) => [
2124
- J(k.$slots, "expandedRowRender", {
2125
- record: d,
2126
- index: y
2123
+ fn: b(({ record: c, index: _ }) => [
2124
+ J(T.$slots, "expandedRowRender", {
2125
+ record: c,
2126
+ index: _
2127
2127
  }, void 0, !0)
2128
2128
  ]),
2129
2129
  key: "2"
2130
2130
  } : void 0,
2131
- k.$slots.customFilterDropdown ? {
2131
+ T.$slots.customFilterDropdown ? {
2132
2132
  name: "customFilterDropdown",
2133
- fn: b(({ column: d }) => [
2134
- J(k.$slots, "customFilterDropdown", { column: d }, void 0, !0)
2133
+ fn: b(({ column: c }) => [
2134
+ J(T.$slots, "customFilterDropdown", { column: c }, void 0, !0)
2135
2135
  ]),
2136
2136
  key: "3"
2137
2137
  } : void 0,
2138
- k.$slots.customFilterIcon ? {
2138
+ T.$slots.customFilterIcon ? {
2139
2139
  name: "customFilterIcon",
2140
- fn: b(({ column: d }) => [
2141
- J(k.$slots, "customFilterIcon", { column: d }, void 0, !0)
2140
+ fn: b(({ column: c }) => [
2141
+ J(T.$slots, "customFilterIcon", { column: c }, void 0, !0)
2142
2142
  ]),
2143
2143
  key: "4"
2144
2144
  } : void 0,
2145
- k.$slots.expandIcon ? {
2145
+ T.$slots.expandIcon ? {
2146
2146
  name: "expandIcon",
2147
- fn: b(({ expanded: d, record: y, index: x }) => [
2148
- J(k.$slots, "expandIcon", {
2149
- expanded: d,
2150
- record: y,
2151
- index: x
2147
+ fn: b(({ expanded: c, record: _, index: k }) => [
2148
+ J(T.$slots, "expandIcon", {
2149
+ expanded: c,
2150
+ record: _,
2151
+ index: k
2152
2152
  }, void 0, !0)
2153
2153
  ]),
2154
2154
  key: "5"
2155
2155
  } : void 0,
2156
- k.$slots.footer ? {
2156
+ T.$slots.footer ? {
2157
2157
  name: "footer",
2158
2158
  fn: b(() => [
2159
- J(k.$slots, "footer", {}, void 0, !0)
2159
+ J(T.$slots, "footer", {}, void 0, !0)
2160
2160
  ]),
2161
2161
  key: "6"
2162
2162
  } : void 0,
2163
- k.$slots.summary ? {
2163
+ T.$slots.summary ? {
2164
2164
  name: "summary",
2165
2165
  fn: b(() => [
2166
- J(k.$slots, "summary", {}, void 0, !0)
2166
+ J(T.$slots, "summary", {}, void 0, !0)
2167
2167
  ]),
2168
2168
  key: "7"
2169
2169
  } : void 0,
2170
- k.$slots.title ? {
2170
+ T.$slots.title ? {
2171
2171
  name: "title",
2172
2172
  fn: b(() => [
2173
- J(k.$slots, "title", {}, void 0, !0)
2173
+ J(T.$slots, "title", {}, void 0, !0)
2174
2174
  ]),
2175
2175
  key: "8"
2176
2176
  } : void 0
@@ -2178,7 +2178,7 @@ const hl = {
2178
2178
  ], 6);
2179
2179
  };
2180
2180
  }
2181
- }), Ll = /* @__PURE__ */ le(_l, [["__scopeId", "data-v-66578d50"]]), Cl = ne(Ll), wl = { class: "hb-lib-table-setting-box" }, kl = {
2181
+ }), Ll = /* @__PURE__ */ ae(_l, [["__scopeId", "data-v-66578d50"]]), Cl = le(Ll), wl = { class: "hb-lib-table-setting-box" }, kl = {
2182
2182
  key: 0,
2183
2183
  class: "hb-lib-table-drag-item"
2184
2184
  }, Sl = {
@@ -2220,83 +2220,83 @@ const hl = {
2220
2220
  },
2221
2221
  emits: ["on-get-columns"],
2222
2222
  setup(e, { emit: t }) {
2223
- const o = t, { t: n } = ve(), i = e, l = O([]), r = H(() => a.value.filter((d) => d.checked));
2223
+ const o = t, { t: n } = ve(), i = e, l = O([]), r = H(() => a.value.filter((c) => c.checked));
2224
2224
  O([]);
2225
- const u = O(!1), a = O([]), s = O(null), p = H(() => r.value.length > 0 && r.value.length === l.value.length), h = H(() => r.value.length > 0 && r.value.length < l.value.length), f = (d) => {
2226
- s.value = d.oldIndex;
2227
- }, T = (d) => {
2228
- const y = d.newIndex;
2225
+ const u = O(!1), a = O([]), s = O(null), p = H(() => r.value.length > 0 && r.value.length === l.value.length), h = H(() => r.value.length > 0 && r.value.length < l.value.length), f = (c) => {
2226
+ s.value = c.oldIndex;
2227
+ }, S = (c) => {
2228
+ const _ = c.newIndex;
2229
2229
  if (l.value.some(
2230
- (P) => P.fixed === "left" || P.fixed === "right" || P.fixed === !0
2230
+ (U) => U.fixed === "left" || U.fixed === "right" || U.fixed === !0
2231
2231
  )) {
2232
- const P = l.value.filter(
2233
- (_) => _.fixed === "left"
2234
- ).length, Y = l.value.length - l.value.filter((_) => _.fixed === "right").length;
2235
- if ((P > 0 && y < P || Y < l.value.length && y >= Y) && (Ie.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), s.value !== null)) {
2236
- const _ = a.value.splice(y, 1)[0];
2237
- a.value.splice(s.value, 0, _);
2232
+ const U = l.value.filter(
2233
+ (g) => g.fixed === "left"
2234
+ ).length, M = l.value.length - l.value.filter((g) => g.fixed === "right").length;
2235
+ if ((U > 0 && _ < U || M < l.value.length && _ >= M) && (Me.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), s.value !== null)) {
2236
+ const g = a.value.splice(_, 1)[0];
2237
+ a.value.splice(s.value, 0, g);
2238
2238
  }
2239
2239
  }
2240
2240
  s.value = null;
2241
- }, $ = (d) => {
2242
- d.target.checked ? a.value.forEach((x) => x.checked = !0) : a.value.forEach((x) => {
2243
- x.dataIndex !== "action" && x.dataIndex !== "actions" && (x.checked = !1);
2241
+ }, $ = (c) => {
2242
+ c.target.checked ? a.value.forEach((k) => k.checked = !0) : a.value.forEach((k) => {
2243
+ k.dataIndex !== "action" && k.dataIndex !== "actions" && (k.checked = !1);
2244
2244
  });
2245
- }, U = (d) => {
2246
- if (d.title && d.title.tag)
2247
- return g(d.title);
2248
- if (typeof d.title == "function") {
2249
- let y = d.title();
2250
- return typeof y == "string" ? y : d.titleText || d.title2;
2245
+ }, N = (c) => {
2246
+ if (c.title && c.title.tag)
2247
+ return y(c.title);
2248
+ if (typeof c.title == "function") {
2249
+ let _ = c.title();
2250
+ return typeof _ == "string" ? _ : c.titleText || c.title2;
2251
2251
  }
2252
- return d.title || d.title2;
2253
- }, V = (d) => d.map((y) => ({
2254
- ...y,
2255
- label: U(y),
2256
- value: y.dataIndex,
2257
- checked: y.checked || y.checked === void 0
2258
- })), k = () => {
2259
- l.value = V(i.localColumns), a.value = [...l.value];
2260
- let d = [];
2261
- i.tableColumns.forEach(function(y) {
2262
- d.push(y.dataIndex);
2252
+ return c.title || c.title2;
2253
+ }, Y = (c) => c.map((_) => ({
2254
+ ..._,
2255
+ label: N(_),
2256
+ value: _.dataIndex,
2257
+ checked: _.checked || _.checked === void 0
2258
+ })), T = () => {
2259
+ l.value = Y(i.localColumns), a.value = [...l.value];
2260
+ let c = [];
2261
+ i.tableColumns.forEach(function(_) {
2262
+ c.push(_.dataIndex);
2263
2263
  });
2264
- }, S = (d, y) => {
2265
- y ? d.checked = !0 : d.checked = !1;
2266
- }, A = () => {
2264
+ }, x = (c, _) => {
2265
+ _ ? c.checked = !0 : c.checked = !1;
2266
+ }, P = () => {
2267
2267
  l.value = [...a.value], o("on-get-columns", l.value), u.value = !1;
2268
2268
  }, D = () => {
2269
- l.value = V(i.tableColumns), a.value = [...l.value];
2270
- let d = [];
2271
- i.tableColumns.forEach(function(y) {
2272
- d.push(y.dataIndex);
2269
+ l.value = Y(i.tableColumns), a.value = [...l.value];
2270
+ let c = [];
2271
+ i.tableColumns.forEach(function(_) {
2272
+ c.push(_.dataIndex);
2273
2273
  });
2274
- }, g = (d) => d.children[0].text, F = (d) => {
2275
- delete d.fixed;
2276
- const y = a.value.findIndex(
2277
- (x) => x.value === d.value
2274
+ }, y = (c) => c.children[0].text, F = (c) => {
2275
+ delete c.fixed;
2276
+ const _ = a.value.findIndex(
2277
+ (k) => k.value === c.value
2278
2278
  );
2279
- if (y !== -1) {
2280
- let x = -1;
2281
- for (let P = 0; P < a.value.length; P++)
2282
- a.value[P].fixed === "left" && (x = P);
2283
- if (x !== -1 && y !== x + 1) {
2284
- const P = [...a.value], [Y] = P.splice(y, 1);
2285
- P.splice(x + 1, 0, Y), a.value = P;
2279
+ if (_ !== -1) {
2280
+ let k = -1;
2281
+ for (let U = 0; U < a.value.length; U++)
2282
+ a.value[U].fixed === "left" && (k = U);
2283
+ if (k !== -1 && _ !== k + 1) {
2284
+ const U = [...a.value], [M] = U.splice(_, 1);
2285
+ U.splice(k + 1, 0, M), a.value = U;
2286
2286
  }
2287
2287
  }
2288
- }, L = (d) => {
2289
- const y = a.value.findIndex(
2290
- (x) => x.value === d.value
2288
+ }, L = (c) => {
2289
+ const _ = a.value.findIndex(
2290
+ (k) => k.value === c.value
2291
2291
  );
2292
- if (y !== -1) {
2293
- let x = -1;
2294
- for (let q = 0; q < a.value.length; q++)
2295
- a.value[q].fixed === "left" && (x = q);
2296
- const P = [...a.value], [Y] = P.splice(y, 1);
2297
- Y.fixed = "left";
2298
- const _ = x === -1 ? 0 : x + 1;
2299
- P.splice(_, 0, Y), a.value = P;
2292
+ if (_ !== -1) {
2293
+ let k = -1;
2294
+ for (let R = 0; R < a.value.length; R++)
2295
+ a.value[R].fixed === "left" && (k = R);
2296
+ const U = [...a.value], [M] = U.splice(_, 1);
2297
+ M.fixed = "left";
2298
+ const g = k === -1 ? 0 : k + 1;
2299
+ U.splice(g, 0, M), a.value = U;
2300
2300
  }
2301
2301
  };
2302
2302
  return se(
@@ -2308,12 +2308,12 @@ const hl = {
2308
2308
  immediate: !0,
2309
2309
  deep: !0
2310
2310
  }
2311
- ), (d, y) => {
2312
- const x = K("a-tooltip"), P = K("a-button");
2313
- return c(), w("div", wl, [
2311
+ ), (c, _) => {
2312
+ const k = K("a-tooltip"), U = K("a-button");
2313
+ return d(), w("div", wl, [
2314
2314
  I(v(yo), {
2315
2315
  visible: u.value,
2316
- "onUpdate:visible": y[1] || (y[1] = (Y) => u.value = Y),
2316
+ "onUpdate:visible": _[1] || (_[1] = (M) => u.value = M),
2317
2317
  title: v(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
2318
2318
  trigger: "click",
2319
2319
  placement: "leftTop",
@@ -2322,46 +2322,46 @@ const hl = {
2322
2322
  content: b(() => [
2323
2323
  I(v(Je), {
2324
2324
  modelValue: a.value,
2325
- "onUpdate:modelValue": y[0] || (y[0] = (Y) => a.value = Y),
2325
+ "onUpdate:modelValue": _[0] || (_[0] = (M) => a.value = M),
2326
2326
  "item-key": "value",
2327
2327
  class: "hb-lib-table-set-drag",
2328
2328
  "ghost-class": "ghost",
2329
2329
  animation: "200",
2330
2330
  handle: ".drag-handle",
2331
2331
  onStart: f,
2332
- onEnd: T
2332
+ onEnd: S
2333
2333
  }, {
2334
- item: b(({ element: Y }) => [
2335
- Y.fixed !== "right" ? (c(), w("div", kl, [
2334
+ item: b(({ element: M }) => [
2335
+ M.fixed !== "right" ? (d(), w("div", kl, [
2336
2336
  I(v(Qe), {
2337
- checked: Y.checked,
2338
- onChange: (_) => S(
2339
- Y,
2340
- _.target.checked
2337
+ checked: M.checked,
2338
+ onChange: (g) => x(
2339
+ M,
2340
+ g.target.checked
2341
2341
  )
2342
2342
  }, {
2343
2343
  default: b(() => [
2344
- R(C(Y.label), 1)
2344
+ E(C(M.label), 1)
2345
2345
  ]),
2346
2346
  _: 2
2347
2347
  }, 1032, ["checked", "onChange"]),
2348
- Y.checked ? (c(), w("section", Sl, [
2348
+ M.checked ? (d(), w("section", Sl, [
2349
2349
  m("span", {
2350
2350
  class: X(
2351
- Y.fixed ? "drag-hide" : "drag-handle"
2351
+ M.fixed ? "drag-hide" : "drag-handle"
2352
2352
  )
2353
2353
  }, " ⋮⋮ ", 2),
2354
- Y.fixed ? (c(), E(x, { key: 0 }, {
2354
+ M.fixed ? (d(), z(k, { key: 0 }, {
2355
2355
  title: b(() => [
2356
- R(C(v(n)(
2356
+ E(C(v(n)(
2357
2357
  "hbLibComp.hbLibListTableColumsSet.cancelFix"
2358
2358
  )), 1)
2359
2359
  ]),
2360
2360
  default: b(() => [
2361
2361
  m("span", {
2362
2362
  class: "hb-lib-table-drag-item-act-btn",
2363
- onClick: (_) => F(Y)
2364
- }, [...y[2] || (y[2] = [
2363
+ onClick: (g) => F(M)
2364
+ }, [..._[2] || (_[2] = [
2365
2365
  m("svg", {
2366
2366
  t: "1759048615600",
2367
2367
  class: "icon",
@@ -2381,18 +2381,18 @@ const hl = {
2381
2381
  ])], 8, xl)
2382
2382
  ]),
2383
2383
  _: 2
2384
- }, 1024)) : z("", !0),
2385
- Y.fixed ? z("", !0) : (c(), E(x, { key: 1 }, {
2384
+ }, 1024)) : j("", !0),
2385
+ M.fixed ? j("", !0) : (d(), z(k, { key: 1 }, {
2386
2386
  title: b(() => [
2387
- R(C(v(n)(
2387
+ E(C(v(n)(
2388
2388
  "hbLibComp.hbLibListTableColumsSet.fix"
2389
2389
  )), 1)
2390
2390
  ]),
2391
2391
  default: b(() => [
2392
2392
  m("span", {
2393
2393
  class: "hb-lib-table-drag-item-act-btn",
2394
- onClick: (_) => L(Y)
2395
- }, [...y[3] || (y[3] = [
2394
+ onClick: (g) => L(M)
2395
+ }, [..._[3] || (_[3] = [
2396
2396
  m("svg", {
2397
2397
  t: "1759048735643",
2398
2398
  class: "icon",
@@ -2413,8 +2413,8 @@ const hl = {
2413
2413
  ]),
2414
2414
  _: 2
2415
2415
  }, 1024))
2416
- ])) : z("", !0)
2417
- ])) : z("", !0)
2416
+ ])) : j("", !0)
2417
+ ])) : j("", !0)
2418
2418
  ]),
2419
2419
  _: 1
2420
2420
  }, 8, ["modelValue"]),
@@ -2426,38 +2426,38 @@ const hl = {
2426
2426
  onChange: $
2427
2427
  }, {
2428
2428
  default: b(() => [
2429
- R(C(v(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
2429
+ E(C(v(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
2430
2430
  ]),
2431
2431
  _: 1
2432
2432
  }, 8, ["checked", "indeterminate"])
2433
2433
  ]),
2434
- i.localColumns.length ? (c(), E(P, {
2434
+ i.localColumns.length ? (d(), z(U, {
2435
2435
  key: 0,
2436
2436
  style: { "margin-right": "6px" },
2437
- onClick: k
2437
+ onClick: T
2438
2438
  }, {
2439
2439
  default: b(() => [
2440
- R(C(v(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
2440
+ E(C(v(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
2441
2441
  ]),
2442
2442
  _: 1
2443
- })) : z("", !0),
2444
- I(P, {
2443
+ })) : j("", !0),
2444
+ I(U, {
2445
2445
  type: "primary",
2446
- onClick: A
2446
+ onClick: P
2447
2447
  }, {
2448
2448
  default: b(() => [
2449
- R(C(v(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
2449
+ E(C(v(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
2450
2450
  ]),
2451
2451
  _: 1
2452
2452
  })
2453
2453
  ])
2454
2454
  ]),
2455
2455
  default: b(() => [
2456
- I(x, {
2456
+ I(k, {
2457
2457
  title: v(n)("hbLibComp.hbLibListTableColumsSet.title"),
2458
2458
  placement: "leftTop"
2459
2459
  }, {
2460
- default: b(() => [...y[4] || (y[4] = [
2460
+ default: b(() => [..._[4] || (_[4] = [
2461
2461
  m("span", { class: "hb-lib-table-col-set" }, [
2462
2462
  m("svg", {
2463
2463
  t: "1759041858618",
@@ -2490,7 +2490,7 @@ const hl = {
2490
2490
  ]);
2491
2491
  };
2492
2492
  }
2493
- }), Il = /* @__PURE__ */ le($l, [["__scopeId", "data-v-3b97f848"]]), Ml = ne(Il), Bl = /* @__PURE__ */ te({
2493
+ }), Il = /* @__PURE__ */ ae($l, [["__scopeId", "data-v-3b97f848"]]), Ml = le(Il), Bl = /* @__PURE__ */ te({
2494
2494
  name: "HbLibFormTooltipSelect",
2495
2495
  inheritAttrs: !1,
2496
2496
  __name: "HbTooltipSelect",
@@ -2509,10 +2509,10 @@ const hl = {
2509
2509
  emits: ["update:value"],
2510
2510
  setup(e, { expose: t }) {
2511
2511
  const o = e, n = uo(), i = H(() => {
2512
- const $ = n, U = $.dropdownClassName;
2512
+ const $ = n, N = $.dropdownClassName;
2513
2513
  return {
2514
2514
  ...$,
2515
- dropdownClassName: U ?? "hb_lib_form_tooltip_select__dropdown"
2515
+ dropdownClassName: N ?? "hb_lib_form_tooltip_select__dropdown"
2516
2516
  };
2517
2517
  }), l = O(), r = jt(e, "value"), u = H(() => o.options ?? []), a = H(() => ({
2518
2518
  maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
@@ -2525,37 +2525,37 @@ const hl = {
2525
2525
  l.value?.blur?.();
2526
2526
  },
2527
2527
  selectRef: l
2528
- }), ($, U) => (c(), E(v(ut), ce({
2528
+ }), ($, N) => (d(), z(v(ut), de({
2529
2529
  ref_key: "selectRef",
2530
2530
  ref: l
2531
2531
  }, i.value, {
2532
2532
  value: r.value,
2533
- "onUpdate:value": U[0] || (U[0] = (V) => r.value = V),
2533
+ "onUpdate:value": N[0] || (N[0] = (Y) => r.value = Y),
2534
2534
  class: "hb_lib_form_tooltip_select"
2535
2535
  }), {
2536
2536
  default: b(() => [
2537
- $.$slots.default ? J($.$slots, "default", { key: 0 }, void 0, !0) : (c(!0), w(ee, { key: 1 }, fe(u.value, (V) => (c(), E(v(ft), ce({
2538
- key: p(V),
2539
- value: V.value,
2540
- disabled: V.disabled
2541
- }, { ref_for: !0 }, V.optionProps), {
2537
+ $.$slots.default ? J($.$slots, "default", { key: 0 }, void 0, !0) : (d(!0), w(ee, { key: 1 }, pe(u.value, (Y) => (d(), z(v(ft), de({
2538
+ key: p(Y),
2539
+ value: Y.value,
2540
+ disabled: Y.disabled
2541
+ }, { ref_for: !0 }, Y.optionProps), {
2542
2542
  default: b(() => [
2543
- h(V) ? (c(), E(v(Xe), {
2543
+ h(Y) ? (d(), z(v(Xe), {
2544
2544
  key: 0,
2545
- title: s(V),
2545
+ title: s(Y),
2546
2546
  placement: o.tooltipPlacement,
2547
2547
  "overlay-style": a.value
2548
2548
  }, {
2549
2549
  default: b(() => [
2550
2550
  m("span", {
2551
2551
  class: X(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
2552
- }, C(V.label), 3)
2552
+ }, C(Y.label), 3)
2553
2553
  ]),
2554
2554
  _: 2
2555
- }, 1032, ["title", "placement", "overlay-style"])) : (c(), w("span", {
2555
+ }, 1032, ["title", "placement", "overlay-style"])) : (d(), w("span", {
2556
2556
  key: 1,
2557
2557
  class: X(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
2558
- }, C(V.label), 3))
2558
+ }, C(Y.label), 3))
2559
2559
  ]),
2560
2560
  _: 2
2561
2561
  }, 1040, ["value", "disabled"]))), 128))
@@ -2563,7 +2563,7 @@ const hl = {
2563
2563
  _: 3
2564
2564
  }, 16, ["value"]));
2565
2565
  }
2566
- }), Dl = /* @__PURE__ */ le(Bl, [["__scopeId", "data-v-13285691"]]), Al = ne(Dl), Ol = { class: "ant-upload-drag-icon" }, Pl = { class: "ant-upload-text" }, Ul = { style: { color: "#ff5000" } }, Rl = { class: "ant-upload-hint" }, El = {
2566
+ }), Dl = /* @__PURE__ */ ae(Bl, [["__scopeId", "data-v-13285691"]]), Al = le(Dl), Ol = { class: "ant-upload-drag-icon" }, Pl = { class: "ant-upload-text" }, Ul = { style: { color: "#ff5000" } }, El = { class: "ant-upload-hint" }, Rl = {
2567
2567
  key: 0,
2568
2568
  class: "hb_import_btn"
2569
2569
  }, Nl = ["href"], zl = /* @__PURE__ */ te({
@@ -2588,10 +2588,10 @@ const hl = {
2588
2588
  }), u = (f) => {
2589
2589
  if (f == null)
2590
2590
  return;
2591
- const T = r.fileList.indexOf(f);
2592
- if (T !== -1) {
2591
+ const S = r.fileList.indexOf(f);
2592
+ if (S !== -1) {
2593
2593
  const $ = r.fileList.slice();
2594
- $.splice(T, 1), r.fileList = $;
2594
+ $.splice(S, 1), r.fileList = $;
2595
2595
  }
2596
2596
  }, a = () => {
2597
2597
  r.visible = !1, r.fileList = [], l.value = !1;
@@ -2610,12 +2610,12 @@ const hl = {
2610
2610
  openModal: h,
2611
2611
  // 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
2612
2612
  confirmLoading: l
2613
- }), (f, T) => {
2614
- const $ = K("a-upload-dragger"), U = K("a-form-item"), V = K("a-form"), k = K("a-modal"), S = K("a-button");
2615
- return c(), w(ee, null, [
2616
- I(k, ce({
2613
+ }), (f, S) => {
2614
+ const $ = K("a-upload-dragger"), N = K("a-form-item"), Y = K("a-form"), T = K("a-modal"), x = K("a-button");
2615
+ return d(), w(ee, null, [
2616
+ I(T, de({
2617
2617
  visible: r.visible,
2618
- "onUpdate:visible": T[0] || (T[0] = (A) => r.visible = A),
2618
+ "onUpdate:visible": S[0] || (S[0] = (P) => r.visible = P),
2619
2619
  title: i.title,
2620
2620
  "confirm-loading": l.value
2621
2621
  }, f.$attrs, {
@@ -2624,13 +2624,13 @@ const hl = {
2624
2624
  onOk: p
2625
2625
  }), {
2626
2626
  default: b(() => [
2627
- I(V, {
2627
+ I(Y, {
2628
2628
  ref_key: "modalFormRef",
2629
2629
  ref: n,
2630
2630
  model: r
2631
2631
  }, {
2632
2632
  default: b(() => [
2633
- I(U, {
2633
+ I(N, {
2634
2634
  name: "fileList",
2635
2635
  label: v(o)("hbLibComp.HbImportFile.fileLabel"),
2636
2636
  rules: [{ required: i.isRequired, message: v(o)("hbLibComp.HbImportFile.clickUp") }]
@@ -2650,10 +2650,10 @@ const hl = {
2650
2650
  I(v(xo), { style: { "font-size": "37px" } })
2651
2651
  ]),
2652
2652
  m("p", Pl, [
2653
- R(C(v(o)("hbLibComp.HbImportFile.uploadText")), 1),
2653
+ E(C(v(o)("hbLibComp.HbImportFile.uploadText")), 1),
2654
2654
  m("span", Ul, C(v(o)("hbLibComp.HbImportFile.clickUp")), 1)
2655
2655
  ]),
2656
- m("p", Rl, C(v(o)("hbLibComp.HbFileUploadModal.format")) + ": " + C(i.acceptFile), 1)
2656
+ m("p", El, C(v(o)("hbLibComp.HbFileUploadModal.format")) + ": " + C(i.acceptFile), 1)
2657
2657
  ]),
2658
2658
  _: 1
2659
2659
  }, 8, ["max-count", "multiple", "accept", "file-list"])
@@ -2663,22 +2663,22 @@ const hl = {
2663
2663
  ]),
2664
2664
  _: 1
2665
2665
  }, 8, ["model"]),
2666
- i.templateUrl ? (c(), w("p", El, [
2666
+ i.templateUrl ? (d(), w("p", Rl, [
2667
2667
  m("a", {
2668
2668
  download: "Import_number-template.xlsx",
2669
2669
  href: i.templateUrl
2670
2670
  }, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, Nl)
2671
- ])) : z("", !0)
2671
+ ])) : j("", !0)
2672
2672
  ]),
2673
2673
  _: 1
2674
2674
  }, 16, ["visible", "title", "confirm-loading", "width"]),
2675
2675
  J(f.$slots, "btn", {}, () => [
2676
- I(S, {
2676
+ I(x, {
2677
2677
  type: "primary",
2678
2678
  onClick: h
2679
2679
  }, {
2680
2680
  default: b(() => [
2681
- R(C(e.btnText), 1)
2681
+ E(C(e.btnText), 1)
2682
2682
  ]),
2683
2683
  _: 1
2684
2684
  })
@@ -2686,7 +2686,7 @@ const hl = {
2686
2686
  ], 64);
2687
2687
  };
2688
2688
  }
2689
- }), Vl = /* @__PURE__ */ le(zl, [["__scopeId", "data-v-a11cda0f"]]), jl = ne(Vl), Wl = { class: "hb_lib_log_modal_content" }, ql = { class: "log_remark" }, Yl = /* @__PURE__ */ te({
2689
+ }), Vl = /* @__PURE__ */ ae(zl, [["__scopeId", "data-v-a11cda0f"]]), jl = le(Vl), Wl = { class: "hb_lib_log_modal_content" }, ql = { class: "log_remark" }, Yl = /* @__PURE__ */ te({
2690
2690
  name: "HbLibLogModal",
2691
2691
  __name: "HbLogModal",
2692
2692
  props: {
@@ -2730,16 +2730,16 @@ const hl = {
2730
2730
  pageSizeOptions: ["10", "20", "50", "100"],
2731
2731
  showQuickJumper: !0,
2732
2732
  showSizeChanger: !0,
2733
- showTotal: (S, A) => A[0] + "-" + A[1] + " 总共" + S + "页",
2733
+ showTotal: (x, P) => P[0] + "-" + P[1] + " 总共" + x + "页",
2734
2734
  total: 0
2735
2735
  }
2736
2736
  });
2737
2737
  se(
2738
2738
  () => l.pagination,
2739
- (S) => {
2740
- S && (h.pagination = {
2739
+ (x) => {
2740
+ x && (h.pagination = {
2741
2741
  ...h.pagination,
2742
- ...S
2742
+ ...x
2743
2743
  });
2744
2744
  },
2745
2745
  {
@@ -2748,35 +2748,35 @@ const hl = {
2748
2748
  }
2749
2749
  );
2750
2750
  const f = () => {
2751
- const S = {
2751
+ const x = {
2752
2752
  pageIndex: h.pagination.current,
2753
2753
  pageSize: h.pagination.pageSize,
2754
2754
  query: l.params
2755
2755
  };
2756
- l.getLogData && (p.value = !0, l.getLogData(S).then((A) => {
2757
- Number(A.code) == 200 ? (h.pagination.total = Number(A.data.total), h.list = A.data[l.dataStr] || []) : Ie.error(A.message);
2756
+ l.getLogData && (p.value = !0, l.getLogData(x).then((P) => {
2757
+ Number(P.code) == 200 ? (h.pagination.total = Number(P.data.total), h.list = P.data[l.dataStr] || []) : Me.error(P.message);
2758
2758
  }).finally(() => {
2759
2759
  p.value = !1;
2760
2760
  }));
2761
- }, T = (S) => {
2762
- h.pagination.current = S.current, h.pagination.pageSize = S.pageSize, f();
2761
+ }, S = (x) => {
2762
+ h.pagination.current = x.current, h.pagination.pageSize = x.pageSize, f();
2763
2763
  }, $ = () => {
2764
- h.list = [], h.pagination.current = 1, k("update:visible", !1);
2765
- }, U = () => {
2766
- k("update:visible", !0);
2767
- }, V = (S, A = "YYYY-MM-DD HH:mm:ss") => S ? ot(S).format(A) : "", k = o;
2764
+ h.list = [], h.pagination.current = 1, T("update:visible", !1);
2765
+ }, N = () => {
2766
+ T("update:visible", !0);
2767
+ }, Y = (x, P = "YYYY-MM-DD HH:mm:ss") => x ? ot(x).format(P) : "", T = o;
2768
2768
  return se(
2769
2769
  () => l.visible,
2770
- (S) => {
2771
- S && f();
2770
+ (x) => {
2771
+ x && f();
2772
2772
  }
2773
2773
  ), t({
2774
2774
  close: $,
2775
2775
  loading: p
2776
- }), (S, A) => {
2777
- const D = K("a-tooltip"), g = K("HbLibCopy"), F = K("a-table"), L = K("a-button"), d = K("HbLibModal");
2778
- return c(), w(ee, null, [
2779
- I(d, ce(S.$attrs, {
2776
+ }), (x, P) => {
2777
+ const D = K("a-tooltip"), y = K("HbLibCopy"), F = K("a-table"), L = K("a-button"), c = K("HbLibModal");
2778
+ return d(), w(ee, null, [
2779
+ I(c, de(x.$attrs, {
2780
2780
  visible: e.visible,
2781
2781
  title: s.value ? void 0 : a.value,
2782
2782
  width: e.width,
@@ -2788,7 +2788,7 @@ const hl = {
2788
2788
  footer: b(() => [
2789
2789
  I(L, { onClick: $ }, {
2790
2790
  default: b(() => [
2791
- R(C(v(n)("hbLibComp.HbLogModal.close")), 1)
2791
+ E(C(v(n)("hbLibComp.HbLogModal.close")), 1)
2792
2792
  ]),
2793
2793
  _: 1
2794
2794
  })
@@ -2803,41 +2803,41 @@ const hl = {
2803
2803
  pagination: h.pagination,
2804
2804
  loading: p.value,
2805
2805
  scroll: { y: e.scrollY },
2806
- onChange: T
2806
+ onChange: S
2807
2807
  }, Ne({
2808
- bodyCell: b(({ column: y, record: x }) => [
2809
- y && y.needTooltip ? (c(), w(ee, { key: 0 }, [
2810
- y.needTooltip ? (c(), E(D, { key: 0 }, {
2808
+ bodyCell: b(({ column: _, record: k }) => [
2809
+ _ && _.needTooltip ? (d(), w(ee, { key: 0 }, [
2810
+ _.needTooltip ? (d(), z(D, { key: 0 }, {
2811
2811
  title: b(() => [
2812
- R(C(x[y.dataIndex]), 1)
2812
+ E(C(k[_.dataIndex]), 1)
2813
2813
  ]),
2814
2814
  default: b(() => [
2815
- R(" " + C(x[y.dataIndex]), 1)
2815
+ E(" " + C(k[_.dataIndex]), 1)
2816
2816
  ]),
2817
2817
  _: 2
2818
- }, 1024)) : z("", !0)
2819
- ], 64)) : z("", !0),
2820
- y && y.needCopy ? (c(), w(ee, { key: 1 }, [
2821
- m("div", ql, C(x[y.dataIndex]), 1),
2822
- I(g, {
2823
- "cp-text": x[y.dataIndex],
2818
+ }, 1024)) : j("", !0)
2819
+ ], 64)) : j("", !0),
2820
+ _ && _.needCopy ? (d(), w(ee, { key: 1 }, [
2821
+ m("div", ql, C(k[_.dataIndex]), 1),
2822
+ I(y, {
2823
+ "cp-text": k[_.dataIndex],
2824
2824
  style: { position: "relative" }
2825
2825
  }, null, 8, ["cp-text"])
2826
- ], 64)) : z("", !0),
2827
- y && y.needFormat ? (c(), w(ee, { key: 2 }, [
2828
- R(C(V(
2829
- x[y.dataIndex],
2830
- y.operateTime
2826
+ ], 64)) : j("", !0),
2827
+ _ && _.needFormat ? (d(), w(ee, { key: 2 }, [
2828
+ E(C(Y(
2829
+ k[_.dataIndex],
2830
+ _.operateTime
2831
2831
  )), 1)
2832
- ], 64)) : z("", !0)
2832
+ ], 64)) : j("", !0)
2833
2833
  ]),
2834
2834
  _: 2
2835
2835
  }, [
2836
- S.$slots.headerCell ? {
2836
+ x.$slots.headerCell ? {
2837
2837
  name: "headerCell",
2838
- fn: b(({ column: y }) => [
2839
- J(S.$slots, "headerCell", { column: y }, () => [
2840
- R(C(y.title), 1)
2838
+ fn: b(({ column: _ }) => [
2839
+ J(x.$slots, "headerCell", { column: _ }, () => [
2840
+ E(C(_.title), 1)
2841
2841
  ], !0)
2842
2842
  ]),
2843
2843
  key: "0"
@@ -2850,23 +2850,23 @@ const hl = {
2850
2850
  s.value ? {
2851
2851
  name: "title",
2852
2852
  fn: b(() => [
2853
- J(S.$slots, "title", {}, void 0, !0)
2853
+ J(x.$slots, "title", {}, void 0, !0)
2854
2854
  ]),
2855
2855
  key: "0"
2856
2856
  } : void 0
2857
2857
  ]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
2858
- e.needBtn ? J(S.$slots, "default", { key: 0 }, () => [
2859
- I(L, { onClick: U }, {
2858
+ e.needBtn ? J(x.$slots, "default", { key: 0 }, () => [
2859
+ I(L, { onClick: N }, {
2860
2860
  default: b(() => [
2861
- R(C(e.logBtnText), 1)
2861
+ E(C(e.logBtnText), 1)
2862
2862
  ]),
2863
2863
  _: 1
2864
2864
  })
2865
- ], !0) : z("", !0)
2865
+ ], !0) : j("", !0)
2866
2866
  ], 64);
2867
2867
  };
2868
2868
  }
2869
- }), Kl = /* @__PURE__ */ le(Yl, [["__scopeId", "data-v-3ab75993"]]), Gl = ne(Kl), nt = Symbol("GLOBAL_CONFIG_KEY"), Jl = {
2869
+ }), Kl = /* @__PURE__ */ ae(Yl, [["__scopeId", "data-v-3ab75993"]]), Gl = le(Kl), nt = Symbol("GLOBAL_CONFIG_KEY"), Jl = {
2870
2870
  // 图片上传组件的配置
2871
2871
  importFile: {
2872
2872
  isRequired: !1,
@@ -2923,11 +2923,11 @@ const hl = {
2923
2923
  o = Ve(ke.merge({}, Jl, n));
2924
2924
  },
2925
2925
  { deep: !0, immediate: !0 }
2926
- ), Ue(nt, o), (n, i) => (c(), w("div", Xl, [
2926
+ ), Ue(nt, o), (n, i) => (d(), w("div", Xl, [
2927
2927
  J(n.$slots, "default")
2928
2928
  ]));
2929
2929
  }
2930
- }), Zl = ne(Ql), ea = { class: "hb_card" }, ta = {
2930
+ }), Zl = le(Ql), ea = { class: "hb_card" }, ta = {
2931
2931
  key: 0,
2932
2932
  class: "hb_card_header"
2933
2933
  }, oa = { class: "hb_fix" }, na = { class: "hb_card_header-title" }, la = { class: "hb_card_header-action" }, aa = { class: "hb_card_body" }, ia = /* @__PURE__ */ te({
@@ -2965,23 +2965,23 @@ const hl = {
2965
2965
  let i = o.formItemMb || t?.HbLibCard?.formItemMb;
2966
2966
  return i ? { "--hb-card-form-item-mb": i + "px" } : {};
2967
2967
  });
2968
- return (i, l) => (c(), w("div", ce({ class: "hb_card_wrapper" }, i.$attrs), [
2968
+ return (i, l) => (d(), w("div", de({ class: "hb_card_wrapper" }, i.$attrs), [
2969
2969
  m("div", {
2970
2970
  class: X(e.isModal ? "modal__module-card" : "__module-card")
2971
2971
  }, [
2972
2972
  m("div", ea, [
2973
- e.cardTitle ? (c(), w("div", ta, [
2973
+ e.cardTitle ? (d(), w("div", ta, [
2974
2974
  m("div", oa, [
2975
2975
  m("span", na, [
2976
2976
  J(i.$slots, "cardTitle", {}, () => [
2977
- R(C(e.cardTitle), 1)
2977
+ E(C(e.cardTitle), 1)
2978
2978
  ], !0)
2979
2979
  ]),
2980
2980
  m("div", la, [
2981
2981
  J(i.$slots, "cardAct", {}, void 0, !0)
2982
2982
  ])
2983
2983
  ])
2984
- ])) : z("", !0),
2984
+ ])) : j("", !0),
2985
2985
  m("div", aa, [
2986
2986
  m("section", {
2987
2987
  class: X({
@@ -2991,7 +2991,7 @@ const hl = {
2991
2991
  l3c: e.layout == 3,
2992
2992
  l4c: e.layout == 4
2993
2993
  }),
2994
- style: de(n.value)
2994
+ style: ue(n.value)
2995
2995
  }, [
2996
2996
  J(i.$slots, "default", {}, void 0, !0)
2997
2997
  ], 6)
@@ -3000,7 +3000,7 @@ const hl = {
3000
3000
  ], 2)
3001
3001
  ], 16));
3002
3002
  }
3003
- }), sa = /* @__PURE__ */ le(ia, [["__scopeId", "data-v-220e891f"]]), ra = ne(sa), ca = ["onClick"], da = { class: "step" }, ua = {
3003
+ }), sa = /* @__PURE__ */ ae(ia, [["__scopeId", "data-v-220e891f"]]), ra = le(sa), ca = ["onClick"], da = { class: "step" }, ua = {
3004
3004
  key: 0,
3005
3005
  class: "line"
3006
3006
  }, fa = ["title"], pa = /* @__PURE__ */ te({
@@ -3026,28 +3026,28 @@ const hl = {
3026
3026
  a instanceof Window ? s = window.scrollY + n + 5 : s = a.scrollTop + n + 5;
3027
3027
  let p = i.value[0]?.target || "";
3028
3028
  for (const h of i.value) {
3029
- const f = h.target.startsWith("#") || h.target.startsWith(".") ? h.target : `#${h.target}`, T = document.querySelector(f);
3030
- if (!T) continue;
3031
- let $ = T.offsetTop;
3029
+ const f = h.target.startsWith("#") || h.target.startsWith(".") ? h.target : `#${h.target}`, S = document.querySelector(f);
3030
+ if (!S) continue;
3031
+ let $ = S.offsetTop;
3032
3032
  a instanceof HTMLElement && ($ -= a.offsetTop), s >= $ && (p = h.target);
3033
3033
  }
3034
3034
  o.value = p;
3035
3035
  };
3036
- return Fe(() => {
3036
+ return He(() => {
3037
3037
  l().addEventListener("scroll", u), u();
3038
3038
  }), tt(() => {
3039
3039
  l().removeEventListener("scroll", u);
3040
- }), (a, s) => (c(), w("div", {
3040
+ }), (a, s) => (d(), w("div", {
3041
3041
  class: "anchors",
3042
- style: de({ top: `${v(n)}px` })
3042
+ style: ue({ top: `${v(n)}px` })
3043
3043
  }, [
3044
- (c(!0), w(ee, null, fe(i.value, (p, h) => (c(), w("div", {
3044
+ (d(!0), w(ee, null, pe(i.value, (p, h) => (d(), w("div", {
3045
3045
  key: p.target,
3046
3046
  class: X(["anchor-item", { isActive: o.value === p.target }]),
3047
3047
  onClick: (f) => r(p)
3048
3048
  }, [
3049
3049
  m("div", da, [
3050
- h !== i.value.length - 1 ? (c(), w("div", ua)) : z("", !0),
3050
+ h !== i.value.length - 1 ? (d(), w("div", ua)) : j("", !0),
3051
3051
  s[0] || (s[0] = m("div", { class: "circle" }, null, -1))
3052
3052
  ]),
3053
3053
  m("span", {
@@ -3057,7 +3057,7 @@ const hl = {
3057
3057
  ], 10, ca))), 128))
3058
3058
  ], 4));
3059
3059
  }
3060
- }), ba = /* @__PURE__ */ le(pa, [["__scopeId", "data-v-d51548d8"]]), ma = ne(ba), ha = { class: "hb_detail_top_act_left" }, va = {
3060
+ }), ba = /* @__PURE__ */ ae(pa, [["__scopeId", "data-v-d51548d8"]]), ma = le(ba), ha = { class: "hb_detail_top_act_left" }, va = {
3061
3061
  key: 1,
3062
3062
  class: "hb_detail_top_wrapper_sticky"
3063
3063
  }, ga = { class: "hb_detail_top_act" }, ya = {
@@ -3125,100 +3125,162 @@ const hl = {
3125
3125
  spinning: {
3126
3126
  type: Boolean,
3127
3127
  default: !1
3128
+ },
3129
+ // 吸顶区域距离顶部的距离
3130
+ hbTopActionsTop: {
3131
+ type: [Number, String]
3132
+ },
3133
+ // 吸顶区域距离左侧的距离
3134
+ hbTopActionsLeft: {
3135
+ type: [Number, String]
3128
3136
  }
3129
3137
  },
3130
3138
  setup(e) {
3131
3139
  const { t } = ve(), o = e, n = he(nt), i = () => {
3132
3140
  o.backFn ? o.backFn() : window.history.back();
3133
- }, l = H(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), r = H(() => {
3134
- const U = {};
3141
+ }, l = n?.HbLibDetailBox?.hbTopActionsTop || 112, r = n?.HbLibDetailBox?.hbTopActionsLeft || 160, u = (M) => M.trim().replace(/^(['"])(.*)\1$/, "$2"), a = (M) => typeof M == "string" && (M.includes("#") || M.includes(".")), s = (M) => {
3142
+ try {
3143
+ const g = document.querySelector(u(M));
3144
+ return g instanceof HTMLElement ? g : null;
3145
+ } catch {
3146
+ return null;
3147
+ }
3148
+ }, p = (M) => {
3149
+ const g = M === "top" ? o.hbTopActionsTop : o.hbTopActionsLeft;
3150
+ if (a(g)) {
3151
+ const R = s(g);
3152
+ if (R)
3153
+ return M === "top" ? R.offsetTop : R.offsetLeft + R.offsetWidth;
3154
+ }
3155
+ if (typeof g == "number" && g > 0)
3156
+ return g;
3157
+ }, h = O(r);
3158
+ let f = null;
3159
+ const S = () => {
3160
+ f && (f.disconnect(), f = null);
3161
+ }, $ = () => {
3162
+ const M = p("left");
3163
+ h.value = M ?? r;
3164
+ }, N = () => {
3165
+ if (S(), !a(o.hbTopActionsLeft)) {
3166
+ $();
3167
+ return;
3168
+ }
3169
+ const M = s(o.hbTopActionsLeft);
3170
+ if (!M) {
3171
+ $();
3172
+ return;
3173
+ }
3174
+ h.value = M.offsetLeft + M.offsetWidth, f = new ResizeObserver(() => {
3175
+ h.value = M.offsetLeft + M.offsetWidth;
3176
+ }), f.observe(M);
3177
+ }, Y = H(() => {
3178
+ const M = p("top");
3179
+ return M || l;
3180
+ }), T = H(() => h.value), x = H(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), P = H(() => {
3181
+ const M = {};
3135
3182
  return o.needFixWidth ? {
3136
3183
  hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
3137
3184
  hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
3138
- } : U;
3139
- }), u = () => document.querySelector(o.container), a = O(!1), s = O(null), { top: p } = Fo(s), h = H(u), { y: f } = Ho(h);
3185
+ } : M;
3186
+ }), D = () => document.querySelector(o.container), y = O(!1), F = O(null), { top: L } = Fo(F), c = H(D), { y: _ } = Ho(c);
3140
3187
  se(
3141
- f,
3142
- (U) => {
3143
- a.value = U > p.value;
3188
+ _,
3189
+ (M) => {
3190
+ y.value = M > L.value;
3144
3191
  },
3145
3192
  { immediate: !0 }
3146
3193
  );
3147
- const T = (U) => {
3148
- document.querySelectorAll(".hb_card_body").forEach((k) => {
3149
- k.querySelectorAll(".ant-descriptions-item-content span").forEach((A) => {
3150
- A.textContent?.trim() || (A.textContent = U);
3194
+ const k = (M) => {
3195
+ document.querySelectorAll(".hb_card_body").forEach((R) => {
3196
+ R.querySelectorAll(
3197
+ ".ant-descriptions-item-content span"
3198
+ ).forEach((ce) => {
3199
+ ce.textContent?.trim() || (ce.textContent = M);
3151
3200
  });
3152
3201
  });
3153
3202
  };
3154
- let $ = null;
3155
- return Fe(() => {
3156
- n?.HbLibDetailBox?.needSetDesDefault && ($ = setTimeout(() => {
3157
- T(n?.HbLibDetailBox?.desDefault);
3203
+ let U = null;
3204
+ return He(() => {
3205
+ xe(() => {
3206
+ N();
3207
+ }), n?.HbLibDetailBox?.needSetDesDefault && (U = setTimeout(() => {
3208
+ k(n?.HbLibDetailBox?.desDefault);
3158
3209
  }, n?.HbLibDetailBox?.setValuetimeOut));
3159
- }), je(() => {
3160
- $ && clearTimeout($);
3161
- }), (U, V) => {
3162
- const k = K("RollbackOutlined"), S = K("a-divider"), A = K("a-spin");
3163
- return c(), E(A, { spinning: e.spinning }, {
3210
+ }), se(
3211
+ () => o.hbTopActionsLeft,
3212
+ () => {
3213
+ xe(() => {
3214
+ N();
3215
+ });
3216
+ }
3217
+ ), je(() => {
3218
+ S(), U && clearTimeout(U);
3219
+ }), (M, g) => {
3220
+ const R = K("RollbackOutlined"), oe = K("a-divider"), ce = K("a-spin");
3221
+ return d(), z(ce, { spinning: e.spinning }, {
3164
3222
  default: b(() => [
3165
3223
  m("div", {
3166
- class: X(["hb_detail_wrapper", r.value]),
3167
- style: de({
3168
- "--hb-detail-desc-label-width": r.value?.hb_need_set_desc_label_width + "px",
3169
- "--hb-detail-desc-value-width": r.value?.hb_need_set_desc_value_width + "px"
3224
+ class: X(["hb_detail_wrapper", P.value]),
3225
+ style: ue({
3226
+ "--hb-detail-desc-label-width": P.value?.hb_need_set_desc_label_width + "px",
3227
+ "--hb-detail-desc-value-width": P.value?.hb_need_set_desc_value_width + "px"
3170
3228
  })
3171
3229
  }, [
3172
- e.needTotalInfoBox ? (c(), w("div", {
3230
+ e.needTotalInfoBox ? (d(), w("div", {
3173
3231
  key: 0,
3174
- class: X(["hb_detail_top_act_sticky", a.value ? "can_show" : ""])
3232
+ style: ue({
3233
+ top: Y.value + "px",
3234
+ left: T.value + "px"
3235
+ }),
3236
+ class: X(["hb_detail_top_act_sticky", y.value ? "can_show" : ""])
3175
3237
  }, [
3176
3238
  m("div", ha, [
3177
- I(k, { style: { color: "#ff5000" } }),
3239
+ I(R, { style: { color: "#ff5000" } }),
3178
3240
  m("a", {
3179
3241
  href: "javascript:;",
3180
3242
  class: "ml6",
3181
3243
  onClick: i
3182
3244
  }, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
3183
- I(S, { type: "vertical" }),
3245
+ I(oe, { type: "vertical" }),
3184
3246
  m("span", null, C(e.stickyTitle), 1)
3185
3247
  ]),
3186
- V[0] || (V[0] = m("div", { class: "hb_detail_top_act_right" }, null, -1))
3187
- ], 2)) : z("", !0),
3188
- e.needTotalInfoBox ? (c(), w("div", va, [
3248
+ g[0] || (g[0] = m("div", { class: "hb_detail_top_act_right" }, null, -1))
3249
+ ], 6)) : j("", !0),
3250
+ e.needTotalInfoBox ? (d(), w("div", va, [
3189
3251
  m("div", ga, [
3190
- I(k),
3252
+ I(R),
3191
3253
  m("a", {
3192
3254
  href: "javascript:;",
3193
3255
  class: "ml6",
3194
3256
  onClick: i
3195
3257
  }, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
3196
- I(S, { type: "vertical" }),
3258
+ I(oe, { type: "vertical" }),
3197
3259
  m("span", null, C(e.stickyTitle), 1)
3198
3260
  ]),
3199
- e.needTotalInfoBox ? (c(), w("div", ya, [
3261
+ e.needTotalInfoBox ? (d(), w("div", ya, [
3200
3262
  m("aside", _a, [
3201
- J(U.$slots, "totalInfoLeft", {}, () => [
3263
+ J(M.$slots, "totalInfoLeft", {}, () => [
3202
3264
  m("div", La, C(e.totalInfo.totalInfoTitle), 1),
3203
- e.totalInfo.totalInfoSubTitle1 ? (c(), w("div", Ca, [
3265
+ e.totalInfo.totalInfoSubTitle1 ? (d(), w("div", Ca, [
3204
3266
  m("span", wa, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
3205
3267
  m("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
3206
- ])) : z("", !0)
3268
+ ])) : j("", !0)
3207
3269
  ], !0)
3208
3270
  ]),
3209
3271
  m("aside", ka, [
3210
- J(U.$slots, "totalInfoRight", {}, void 0, !0)
3272
+ J(M.$slots, "totalInfoRight", {}, void 0, !0)
3211
3273
  ])
3212
- ])) : z("", !0)
3213
- ])) : z("", !0),
3274
+ ])) : j("", !0)
3275
+ ])) : j("", !0),
3214
3276
  m("div", Sa, [
3215
3277
  m("div", xa, [
3216
- J(U.$slots, "detailContent", {}, void 0, !0)
3278
+ J(M.$slots, "detailContent", {}, void 0, !0)
3217
3279
  ])
3218
3280
  ]),
3219
3281
  I(v(Kt), {
3220
- target: u,
3221
- style: de({ bottom: l.value + "px" })
3282
+ target: D,
3283
+ style: ue({ bottom: x.value + "px" })
3222
3284
  }, {
3223
3285
  default: b(() => [
3224
3286
  m("div", Ta, [
@@ -3233,7 +3295,7 @@ const hl = {
3233
3295
  }, 8, ["spinning"]);
3234
3296
  };
3235
3297
  }
3236
- }), Ha = /* @__PURE__ */ le(Fa, [["__scopeId", "data-v-f2c2c397"]]), $a = ne(Ha), Ia = /* @__PURE__ */ te({
3298
+ }), Ha = /* @__PURE__ */ ae(Fa, [["__scopeId", "data-v-bd0edf40"]]), $a = le(Ha), Ia = /* @__PURE__ */ te({
3237
3299
  name: "HbLibFooterBar",
3238
3300
  __name: "HbLibFooterBar",
3239
3301
  props: {
@@ -3281,19 +3343,19 @@ const hl = {
3281
3343
  return (Array.isArray(a) ? a : [a]).forEach((h) => {
3282
3344
  let f = [];
3283
3345
  if (h.startsWith("#")) {
3284
- const T = document.getElementById(h.slice(1));
3285
- T && f.push(T);
3346
+ const S = document.getElementById(h.slice(1));
3347
+ S && f.push(S);
3286
3348
  } else
3287
3349
  f = Array.from(document.getElementsByClassName(h));
3288
- f.forEach((T) => {
3289
- s += T.offsetWidth || 0;
3350
+ f.forEach((S) => {
3351
+ s += S.offsetWidth || 0;
3290
3352
  });
3291
3353
  }), s;
3292
3354
  }, r = () => {
3293
3355
  t.leftElements && (i.value = l(t.leftElements) + 1);
3294
3356
  };
3295
3357
  let u = null;
3296
- return Fe(() => {
3358
+ return He(() => {
3297
3359
  const a = t.getContainer();
3298
3360
  a !== window && a instanceof HTMLElement && a.addEventListener("scroll", () => {
3299
3361
  }), r(), u = new MutationObserver(() => {
@@ -3311,10 +3373,10 @@ const hl = {
3311
3373
  }), tt(() => {
3312
3374
  u && u.disconnect();
3313
3375
  }), (a, s) => {
3314
- const p = K("a-button"), h = K("a-space"), f = K("a-affix"), T = Wt("has");
3315
- return c(), w("div", {
3376
+ const p = K("a-button"), h = K("a-space"), f = K("a-affix"), S = Wt("has");
3377
+ return d(), w("div", {
3316
3378
  class: "footer-affix-wrapper",
3317
- style: de({ "--pageHeaderOrFonterLeft": i.value + "px" })
3379
+ style: ue({ "--pageHeaderOrFonterLeft": i.value + "px" })
3318
3380
  }, [
3319
3381
  I(f, {
3320
3382
  "offset-bottom": 0,
@@ -3331,7 +3393,7 @@ const hl = {
3331
3393
  }, [
3332
3394
  I(h, null, {
3333
3395
  default: b(() => [
3334
- (c(!0), w(ee, null, fe(n.value, ($) => we((c(), E(p, {
3396
+ (d(!0), w(ee, null, pe(n.value, ($) => we((d(), z(p, {
3335
3397
  key: $.key,
3336
3398
  type: $.type || "default",
3337
3399
  danger: $.danger,
@@ -3341,11 +3403,11 @@ const hl = {
3341
3403
  class: "hb_list_page_button"
3342
3404
  }, {
3343
3405
  default: b(() => [
3344
- R(C($.label), 1)
3406
+ E(C($.label), 1)
3345
3407
  ]),
3346
3408
  _: 2
3347
3409
  }, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
3348
- [T, $.permissionsTag || null]
3410
+ [S, $.permissionsTag || null]
3349
3411
  ])), 128))
3350
3412
  ]),
3351
3413
  _: 1
@@ -3357,7 +3419,7 @@ const hl = {
3357
3419
  ], 4);
3358
3420
  };
3359
3421
  }
3360
- }), Ma = /* @__PURE__ */ le(Ia, [["__scopeId", "data-v-23f13fb5"]]), Ba = ne(Ma), Da = { class: "modal__detail-content" }, Aa = /* @__PURE__ */ te({
3422
+ }), Ma = /* @__PURE__ */ ae(Ia, [["__scopeId", "data-v-23f13fb5"]]), Ba = le(Ma), Da = { class: "modal__detail-content" }, Aa = /* @__PURE__ */ te({
3361
3423
  name: "HbLibModal",
3362
3424
  __name: "HbLibModal",
3363
3425
  props: {
@@ -3407,80 +3469,80 @@ const hl = {
3407
3469
  setup(e, { expose: t, emit: o }) {
3408
3470
  const n = o, i = e, l = H({
3409
3471
  get: () => i.visible,
3410
- set: (x) => n("update:visible", x)
3472
+ set: (k) => n("update:visible", k)
3411
3473
  }), r = O(null), u = H(() => ({ top: "10px", ...i.modalStyle })), a = H(() => ({ overflow: "hidden", ...i.modalStyle })), s = H(() => ({
3412
3474
  maxHeight: "calc(100vh - 120px)",
3413
3475
  overflowY: "auto",
3414
3476
  padding: "0 6px",
3415
3477
  ...i.bodyStyle
3416
- })), { x: p, y: h, isDragging: f } = $o(r), T = O(0), $ = O(0), U = O(!1), V = O(0), k = O(0), S = O(0), A = O(0), D = O({ left: 0, right: 0, top: 0, bottom: 0 });
3417
- let g = null;
3478
+ })), { x: p, y: h, isDragging: f } = $o(r), S = O(0), $ = O(0), N = O(!1), Y = O(0), T = O(0), x = O(0), P = O(0), D = O({ left: 0, right: 0, top: 0, bottom: 0 });
3479
+ let y = null;
3418
3480
  const F = () => {
3419
- V.value = 0, k.value = 0, S.value = 0, A.value = 0, U.value = !1;
3481
+ Y.value = 0, T.value = 0, x.value = 0, P.value = 0, N.value = !1;
3420
3482
  };
3421
- se(l, (x) => {
3422
- x ? setTimeout(() => {
3483
+ se(l, (k) => {
3484
+ k ? setTimeout(() => {
3423
3485
  F();
3424
- }, 50) : (g && clearTimeout(g), g = setTimeout(() => {
3425
- V.value = 0, k.value = 0, S.value = 0, A.value = 0;
3486
+ }, 50) : (y && clearTimeout(y), y = setTimeout(() => {
3487
+ Y.value = 0, T.value = 0, x.value = 0, P.value = 0;
3426
3488
  }, 300));
3427
3489
  }), se([p, h], () => {
3428
- if (!U.value) {
3429
- T.value = p.value, $.value = h.value;
3430
- const x = document.body.getBoundingClientRect(), P = r.value.getBoundingClientRect();
3431
- D.value.right = x.width - P.width, D.value.bottom = x.height - P.height, S.value = V.value, A.value = k.value;
3490
+ if (!N.value) {
3491
+ S.value = p.value, $.value = h.value;
3492
+ const k = document.body.getBoundingClientRect(), U = r.value.getBoundingClientRect();
3493
+ D.value.right = k.width - U.width, D.value.bottom = k.height - U.height, x.value = Y.value, P.value = T.value;
3432
3494
  }
3433
- U.value = !0;
3495
+ N.value = !0;
3434
3496
  }), se(f, () => {
3435
- f || (U.value = !1);
3497
+ f || (N.value = !1);
3436
3498
  }), qt(() => {
3437
- U.value && (V.value = S.value + Math.min(Math.max(D.value.left, p.value), D.value.right) - T.value, k.value = A.value + Math.min(Math.max(D.value.top, h.value), D.value.bottom) - $.value);
3499
+ N.value && (Y.value = x.value + Math.min(Math.max(D.value.left, p.value), D.value.right) - S.value, T.value = P.value + Math.min(Math.max(D.value.top, h.value), D.value.bottom) - $.value);
3438
3500
  });
3439
3501
  const L = H(() => ({
3440
- transform: `translate(${V.value}px, ${k.value}px)`
3441
- })), d = () => {
3502
+ transform: `translate(${Y.value}px, ${T.value}px)`
3503
+ })), c = () => {
3442
3504
  n("cancel");
3443
- }, y = () => {
3505
+ }, _ = () => {
3444
3506
  n("ok");
3445
3507
  };
3446
3508
  return je(() => {
3447
- g && clearTimeout(g);
3509
+ y && clearTimeout(y);
3448
3510
  }), t({
3449
- handleOk: y,
3450
- handleCancel: d
3451
- }), (x, P) => {
3452
- const Y = K("a-spin"), _ = K("a-modal");
3453
- return c(), E(_, ce({
3511
+ handleOk: _,
3512
+ handleCancel: c
3513
+ }), (k, U) => {
3514
+ const M = K("a-spin"), g = K("a-modal");
3515
+ return d(), z(g, de({
3454
3516
  style: u.value,
3455
3517
  bodyStyle: s.value,
3456
3518
  ref: "modalRef",
3457
3519
  visible: l.value,
3458
- "onUpdate:visible": P[0] || (P[0] = (q) => l.value = q),
3520
+ "onUpdate:visible": U[0] || (U[0] = (R) => l.value = R),
3459
3521
  "wrap-style": a.value,
3460
- onOk: y,
3461
- onCancel: d
3462
- }, x.$attrs), Ne({
3522
+ onOk: _,
3523
+ onCancel: c
3524
+ }, k.$attrs), Ne({
3463
3525
  title: b(() => [
3464
3526
  m("div", {
3465
3527
  ref_key: "modalTitleRef",
3466
3528
  ref: r,
3467
3529
  style: { width: "100%", cursor: "move" }
3468
3530
  }, [
3469
- J(x.$slots, "title", {}, () => [
3470
- R(C(e.title), 1)
3531
+ J(k.$slots, "title", {}, () => [
3532
+ E(C(e.title), 1)
3471
3533
  ], !0)
3472
3534
  ], 512)
3473
3535
  ]),
3474
- modalRender: b(({ originVNode: q }) => [
3475
- (c(), w("div", {
3536
+ modalRender: b(({ originVNode: R }) => [
3537
+ (d(), w("div", {
3476
3538
  key: l.value,
3477
- style: de(L.value)
3539
+ style: ue(L.value)
3478
3540
  }, [
3479
- (c(), E(Yt(q)))
3541
+ (d(), z(Yt(R)))
3480
3542
  ], 4))
3481
3543
  ]),
3482
3544
  default: b(() => [
3483
- I(Y, {
3545
+ I(M, {
3484
3546
  spinning: i.spinning
3485
3547
  }, {
3486
3548
  default: b(() => [
@@ -3490,10 +3552,10 @@ const hl = {
3490
3552
  e.descLabelWidth && "hb_need_set_desc_label_width",
3491
3553
  e.descValueWidth && "hb_need_set_desc_value_width"
3492
3554
  ]),
3493
- style: de({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
3555
+ style: ue({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
3494
3556
  }, [
3495
3557
  m("div", Da, [
3496
- J(x.$slots, "default", {}, void 0, !0)
3558
+ J(k.$slots, "default", {}, void 0, !0)
3497
3559
  ])
3498
3560
  ], 6)
3499
3561
  ]),
@@ -3502,20 +3564,20 @@ const hl = {
3502
3564
  ]),
3503
3565
  _: 2
3504
3566
  }, [
3505
- x.$slots.footer ? {
3567
+ k.$slots.footer ? {
3506
3568
  name: "footer",
3507
3569
  fn: b(() => [
3508
- J(x.$slots, "footer", {}, void 0, !0)
3570
+ J(k.$slots, "footer", {}, void 0, !0)
3509
3571
  ]),
3510
3572
  key: "0"
3511
3573
  } : void 0
3512
3574
  ]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
3513
3575
  };
3514
3576
  }
3515
- }), Oa = /* @__PURE__ */ le(Aa, [["__scopeId", "data-v-866a050a"]]), Pa = ne(Oa), Ua = {
3577
+ }), Oa = /* @__PURE__ */ ae(Aa, [["__scopeId", "data-v-866a050a"]]), Pa = le(Oa), Ua = {
3516
3578
  key: 0,
3517
3579
  class: "hb_edit_header"
3518
- }, Ra = { class: "__detail-content" }, Ea = {
3580
+ }, Ea = { class: "__detail-content" }, Ra = {
3519
3581
  key: 1,
3520
3582
  class: "hb_edit_footer"
3521
3583
  }, Na = { class: "hb-back-top-inner" }, za = /* @__PURE__ */ te({
@@ -3543,28 +3605,28 @@ const hl = {
3543
3605
  },
3544
3606
  setup(e) {
3545
3607
  const t = O("vertical"), o = e, n = () => document.querySelector(o.container), i = he("GLOBAL_CONFIG_KEY"), l = H(() => o.backTopBottom || i?.HbLibUnDetailBox?.backTopBottom || 80);
3546
- return (r, u) => (c(), E(v(_o), { spinning: e.spinning }, {
3608
+ return (r, u) => (d(), z(v(_o), { spinning: e.spinning }, {
3547
3609
  default: b(() => [
3548
- m("div", ce({ class: "hb_edit_wrapper" }, r.$attrs, {
3610
+ m("div", de({ class: "hb_edit_wrapper" }, r.$attrs, {
3549
3611
  style: { "--hb-edit-form-label": e.formLabelWidth },
3550
3612
  class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
3551
3613
  }), [
3552
- r.$slots.editHeader ? (c(), w("div", Ua, [
3614
+ r.$slots.editHeader ? (d(), w("div", Ua, [
3553
3615
  J(r.$slots, "editHeader", {}, void 0, !0)
3554
- ])) : z("", !0),
3616
+ ])) : j("", !0),
3555
3617
  m("div", {
3556
3618
  class: X(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
3557
3619
  }, [
3558
- m("div", Ra, [
3620
+ m("div", Ea, [
3559
3621
  J(r.$slots, "editContent", {}, void 0, !0)
3560
3622
  ])
3561
3623
  ], 2),
3562
- r.$slots.editFooter ? (c(), w("div", Ea, [
3624
+ r.$slots.editFooter ? (d(), w("div", Ra, [
3563
3625
  J(r.$slots, "editFooter", {}, void 0, !0)
3564
- ])) : z("", !0),
3626
+ ])) : j("", !0),
3565
3627
  I(v(Kt), {
3566
3628
  target: n,
3567
- style: de({ bottom: l.value + "px" })
3629
+ style: ue({ bottom: l.value + "px" })
3568
3630
  }, {
3569
3631
  default: b(() => [
3570
3632
  m("div", Na, [
@@ -3578,7 +3640,7 @@ const hl = {
3578
3640
  _: 3
3579
3641
  }, 8, ["spinning"]));
3580
3642
  }
3581
- }), Va = /* @__PURE__ */ le(za, [["__scopeId", "data-v-41f1fc73"]]), ja = ne(Va), Wa = { class: "hb_edit_header_left" }, qa = { class: "hb_edit_header_title" }, Ya = { class: "hb_edit_header_right" }, Ka = /* @__PURE__ */ te({
3643
+ }), Va = /* @__PURE__ */ ae(za, [["__scopeId", "data-v-41f1fc73"]]), ja = le(Va), Wa = { class: "hb_edit_header_left" }, qa = { class: "hb_edit_header_title" }, Ya = { class: "hb_edit_header_right" }, Ka = /* @__PURE__ */ te({
3582
3644
  name: "HbLibPageHeader",
3583
3645
  __name: "HbLibPageHeader",
3584
3646
  props: {
@@ -3597,17 +3659,17 @@ const hl = {
3597
3659
  },
3598
3660
  setup(e) {
3599
3661
  const { t } = ve(), o = e, n = vt(), i = O(0), l = H(() => n?.meta?.title || "");
3600
- function r(f, T = "offsetHeight") {
3662
+ function r(f, S = "offsetHeight") {
3601
3663
  let $ = 0;
3602
- return (Array.isArray(f) ? f : [f]).forEach((V) => {
3603
- let k = [];
3604
- if (V.startsWith("#")) {
3605
- const S = document.getElementById(V.slice(1));
3606
- S && k.push(S);
3664
+ return (Array.isArray(f) ? f : [f]).forEach((Y) => {
3665
+ let T = [];
3666
+ if (Y.startsWith("#")) {
3667
+ const x = document.getElementById(Y.slice(1));
3668
+ x && T.push(x);
3607
3669
  } else
3608
- k = Array.from(document.getElementsByClassName(V));
3609
- k.forEach((S) => {
3610
- $ += S[T] || 0;
3670
+ T = Array.from(document.getElementsByClassName(Y));
3671
+ T.forEach((x) => {
3672
+ $ += x[S] || 0;
3611
3673
  });
3612
3674
  }), $;
3613
3675
  }
@@ -3617,7 +3679,7 @@ const hl = {
3617
3679
  o.leftElements && (a.value = r(o.leftElements, "offsetWidth") + 1);
3618
3680
  };
3619
3681
  let p = null;
3620
- Fe(() => {
3682
+ He(() => {
3621
3683
  u(), s(), window.addEventListener("resize", u), p = new MutationObserver(() => {
3622
3684
  s();
3623
3685
  });
@@ -3642,11 +3704,11 @@ const hl = {
3642
3704
  const h = () => {
3643
3705
  o.backFn ? o.backFn() : window.history.back();
3644
3706
  };
3645
- return (f, T) => {
3707
+ return (f, S) => {
3646
3708
  const $ = K("a-divider");
3647
- return c(), w("div", {
3709
+ return d(), w("div", {
3648
3710
  class: "hb_edit_header",
3649
- style: de({ top: i.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
3711
+ style: ue({ top: i.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
3650
3712
  }, [
3651
3713
  m("aside", Wa, [
3652
3714
  m("a", {
@@ -3663,7 +3725,7 @@ const hl = {
3663
3725
  ], 4);
3664
3726
  };
3665
3727
  }
3666
- }), Ga = /* @__PURE__ */ le(Ka, [["__scopeId", "data-v-83fcd208"]]), Ja = ne(Ga), Xa = {
3728
+ }), Ga = /* @__PURE__ */ ae(Ka, [["__scopeId", "data-v-83fcd208"]]), Ja = le(Ga), Xa = {
3667
3729
  // 如果存在cpText时,K和V无效
3668
3730
  cpText: {
3669
3731
  type: String,
@@ -3731,19 +3793,19 @@ const hl = {
3731
3793
  return a;
3732
3794
  }), u = () => {
3733
3795
  navigator.clipboard.writeText(r.value).then(() => {
3734
- Ie.success(i.value);
3796
+ Me.success(i.value);
3735
3797
  }).catch(() => {
3736
- Ie.error(l.value);
3798
+ Me.error(l.value);
3737
3799
  });
3738
3800
  };
3739
- return (a, s) => r.value ? (c(), E(v(Xe), {
3801
+ return (a, s) => r.value ? (d(), z(v(Xe), {
3740
3802
  key: 0,
3741
3803
  title: n.value
3742
3804
  }, {
3743
3805
  default: b(() => [
3744
3806
  m("span", {
3745
3807
  class: "hb-lib-copy-text-eyevue",
3746
- style: de({ ...a.cpStyle }),
3808
+ style: ue({ ...a.cpStyle }),
3747
3809
  onClick: Ge(u, ["stop", "prevent"])
3748
3810
  }, [...s[0] || (s[0] = [
3749
3811
  m("svg", {
@@ -3775,9 +3837,9 @@ const hl = {
3775
3837
  ])], 4)
3776
3838
  ]),
3777
3839
  _: 1
3778
- }, 8, ["title"])) : z("", !0);
3840
+ }, 8, ["title"])) : j("", !0);
3779
3841
  }
3780
- }), Za = /* @__PURE__ */ le(Qa, [["__scopeId", "data-v-2b6710a1"]]), eo = ne(Za), ei = {
3842
+ }), Za = /* @__PURE__ */ ae(Qa, [["__scopeId", "data-v-2b6710a1"]]), eo = le(Za), ei = {
3781
3843
  dragList: {
3782
3844
  type: Array,
3783
3845
  required: !0
@@ -3848,10 +3910,10 @@ const hl = {
3848
3910
  }, s = (p) => {
3849
3911
  l("handleDragRemove", p);
3850
3912
  };
3851
- return (p, h) => (c(), w("div", {
3913
+ return (p, h) => (d(), w("div", {
3852
3914
  class: X(v(i).b())
3853
3915
  }, [
3854
- p.childrenType == "component" ? (c(), E(v(Je), ce({
3916
+ p.childrenType == "component" ? (d(), z(v(Je), de({
3855
3917
  key: 0,
3856
3918
  modelValue: n.value,
3857
3919
  "onUpdate:modelValue": h[0] || (h[0] = (f) => n.value = f),
@@ -3865,10 +3927,10 @@ const hl = {
3865
3927
  onRemove: s
3866
3928
  }), {
3867
3929
  item: b(({ element: f }) => [
3868
- (c(), E(Yt(f.component)))
3930
+ (d(), z(Yt(f.component)))
3869
3931
  ]),
3870
3932
  _: 1
3871
- }, 16, ["modelValue", "class", "ghost-class"])) : (c(), E(v(Je), ce({
3933
+ }, 16, ["modelValue", "class", "ghost-class"])) : (d(), z(v(Je), de({
3872
3934
  key: 1,
3873
3935
  modelValue: n.value,
3874
3936
  "onUpdate:modelValue": h[1] || (h[1] = (f) => n.value = f),
@@ -3890,7 +3952,7 @@ const hl = {
3890
3952
  }, 16, ["modelValue", "class", "ghost-class"]))
3891
3953
  ], 2));
3892
3954
  }
3893
- }), oi = /* @__PURE__ */ le(ti, [["__scopeId", "data-v-841ac118"]]), ni = ne(oi), li = {
3955
+ }), oi = /* @__PURE__ */ ae(ti, [["__scopeId", "data-v-841ac118"]]), ni = le(oi), li = {
3894
3956
  triggerWay: {
3895
3957
  type: String,
3896
3958
  default: "click"
@@ -3940,20 +4002,20 @@ const hl = {
3940
4002
  currentActiveItem: r
3941
4003
  }), (a, s) => {
3942
4004
  const p = K("a-menu-item"), h = K("a-menu"), f = K("a-dropdown");
3943
- return c(), E(f, {
4005
+ return d(), z(f, {
3944
4006
  trigger: [n.triggerWay]
3945
4007
  }, {
3946
4008
  overlay: b(() => [
3947
4009
  I(h, null, {
3948
4010
  default: b(() => [
3949
- (c(!0), w(ee, null, fe(l.value, (T) => (c(), E(p, {
3950
- key: T.value + T.sort,
3951
- onClick: ($) => u(T)
4011
+ (d(!0), w(ee, null, pe(l.value, (S) => (d(), z(p, {
4012
+ key: S.value + S.sort,
4013
+ onClick: ($) => u(S)
3952
4014
  }, {
3953
4015
  default: b(() => [
3954
4016
  m("span", {
3955
- class: X(r.value == T.value + T.sort ? "activted" : "")
3956
- }, C(T.label), 3)
4017
+ class: X(r.value == S.value + S.sort ? "activted" : "")
4018
+ }, C(S.label), 3)
3957
4019
  ]),
3958
4020
  _: 2
3959
4021
  }, 1032, ["onClick"]))), 128))
@@ -3967,7 +4029,7 @@ const hl = {
3967
4029
  onClick: s[0] || (s[0] = Ge(() => {
3968
4030
  }, ["prevent"]))
3969
4031
  }, [
3970
- R(C(n.colText) + " ", 1),
4032
+ E(C(n.colText) + " ", 1),
3971
4033
  I(v(pt))
3972
4034
  ])
3973
4035
  ]),
@@ -3975,7 +4037,7 @@ const hl = {
3975
4037
  }, 8, ["trigger"]);
3976
4038
  };
3977
4039
  }
3978
- }), ii = /* @__PURE__ */ le(ai, [["__scopeId", "data-v-cf0b0a0d"]]), si = ne(ii), ri = { class: "hb_lib_loading" }, ci = { class: "hb_lib_loading_loading_anima" }, di = { class: "hb_lib_loading_load_tips" }, ui = /* @__PURE__ */ te({
4040
+ }), ii = /* @__PURE__ */ ae(ai, [["__scopeId", "data-v-cf0b0a0d"]]), si = le(ii), ri = { class: "hb_lib_loading" }, ci = { class: "hb_lib_loading_loading_anima" }, di = { class: "hb_lib_loading_load_tips" }, ui = /* @__PURE__ */ te({
3979
4041
  name: "HbLibLoading",
3980
4042
  __name: "loading",
3981
4043
  props: {
@@ -3986,14 +4048,14 @@ const hl = {
3986
4048
  },
3987
4049
  setup(e) {
3988
4050
  const { t } = ve(), o = e, n = H(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
3989
- return (i, l) => (c(), w("div", ri, [
4051
+ return (i, l) => (d(), w("div", ri, [
3990
4052
  m("div", ci, [
3991
4053
  l[0] || (l[0] = bo('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
3992
4054
  m("div", di, C(n.value), 1)
3993
4055
  ])
3994
4056
  ]));
3995
4057
  }
3996
- }), fi = /* @__PURE__ */ le(ui, [["__scopeId", "data-v-22f438b9"]]), pi = ne(fi), bi = { class: "file-preview__body" }, mi = {
4058
+ }), fi = /* @__PURE__ */ ae(ui, [["__scopeId", "data-v-22f438b9"]]), pi = le(fi), bi = { class: "file-preview__body" }, mi = {
3997
4059
  key: 0,
3998
4060
  class: "file-preview__placeholder"
3999
4061
  }, hi = {
@@ -4031,8 +4093,8 @@ const hl = {
4031
4093
  emits: ["rendered", "error", "update:visible", "update:fileIndex", "fileChange", "beforeDownload", "downloaded", "cancel"],
4032
4094
  setup(e, { expose: t, emit: o }) {
4033
4095
  const n = e, i = o, { t: l } = ve();
4034
- function r(B) {
4035
- i("update:visible", B);
4096
+ function r(A) {
4097
+ i("update:visible", A);
4036
4098
  }
4037
4099
  function u() {
4038
4100
  i("update:visible", !1), i("cancel");
@@ -4054,14 +4116,14 @@ const hl = {
4054
4116
  return import("./vue-office-pptx-BeWGEYJM.js");
4055
4117
  }
4056
4118
  const f = We(
4057
- () => a().then((B) => B.default)
4058
- ), T = We(
4059
- () => s().then((B) => B.default)
4119
+ () => a().then((A) => A.default)
4120
+ ), S = We(
4121
+ () => s().then((A) => A.default)
4060
4122
  ), $ = We(
4061
- () => p().then((B) => B.default)
4062
- ), U = We(
4063
- () => h().then((B) => B.default)
4064
- ), V = /* @__PURE__ */ new Set([
4123
+ () => p().then((A) => A.default)
4124
+ ), N = We(
4125
+ () => h().then((A) => A.default)
4126
+ ), Y = /* @__PURE__ */ new Set([
4065
4127
  "png",
4066
4128
  "jpg",
4067
4129
  "jpeg",
@@ -4071,79 +4133,79 @@ const hl = {
4071
4133
  "svg",
4072
4134
  "ico"
4073
4135
  ]);
4074
- function k(B) {
4075
- const Q = B.split(/[/\\]/).pop() ?? B, G = Q.split("?")[0] ?? Q, be = G.lastIndexOf(".");
4136
+ function T(A) {
4137
+ const Q = A.split(/[/\\]/).pop() ?? A, G = Q.split("?")[0] ?? Q, be = G.lastIndexOf(".");
4076
4138
  return be >= 0 ? G.slice(be + 1).toLowerCase() : "";
4077
4139
  }
4078
- function S(B, Q) {
4079
- if (B == null || B === "") return "unknown";
4080
- const G = Q && k(Q) || (typeof B == "string" ? k(B) : "");
4081
- return !G && (B instanceof ArrayBuffer || B instanceof Blob) ? "unknown" : G === "docx" ? "docx" : G === "xlsx" || G === "xls" ? "excel" : G === "pdf" ? "pdf" : G === "pptx" ? "pptx" : V.has(G) ? "image" : "unknown";
4140
+ function x(A, Q) {
4141
+ if (A == null || A === "") return "unknown";
4142
+ const G = Q && T(Q) || (typeof A == "string" ? T(A) : "");
4143
+ return !G && (A instanceof ArrayBuffer || A instanceof Blob) ? "unknown" : G === "docx" ? "docx" : G === "xlsx" || G === "xls" ? "excel" : G === "pdf" ? "pdf" : G === "pptx" ? "pptx" : Y.has(G) ? "image" : "unknown";
4082
4144
  }
4083
- const A = H(() => n.fileList?.length ?? 0), D = H(() => A.value > 0 && n.fileList != null), g = H(() => {
4145
+ const P = H(() => n.fileList?.length ?? 0), D = H(() => P.value > 0 && n.fileList != null), y = H(() => {
4084
4146
  if (!D.value) return 0;
4085
- const B = A.value - 1, Q = Math.floor(Number(n.fileIndex));
4086
- return Number.isNaN(Q) ? 0 : Math.min(Math.max(Q, 0), B);
4087
- }), F = H(() => !D.value || !n.fileList ? null : n.fileList[g.value] ?? null), L = H(() => F.value ? F.value.src : n.src), d = H(() => F.value?.fileName ? F.value.fileName : n.fileName);
4147
+ const A = P.value - 1, Q = Math.floor(Number(n.fileIndex));
4148
+ return Number.isNaN(Q) ? 0 : Math.min(Math.max(Q, 0), A);
4149
+ }), F = H(() => !D.value || !n.fileList ? null : n.fileList[y.value] ?? null), L = H(() => F.value ? F.value.src : n.src), c = H(() => F.value?.fileName ? F.value.fileName : n.fileName);
4088
4150
  se(
4089
- [D, A, () => n.fileIndex],
4151
+ [D, P, () => n.fileIndex],
4090
4152
  () => {
4091
- D.value && n.fileIndex !== g.value && i("update:fileIndex", g.value);
4153
+ D.value && n.fileIndex !== y.value && i("update:fileIndex", y.value);
4092
4154
  },
4093
4155
  { immediate: !0 }
4094
- ), se(g, (B, Q) => {
4095
- if (!D.value || B === Q) return;
4096
- const G = n.fileList?.[B] ?? null;
4097
- i("fileChange", { index: B, item: G });
4156
+ ), se(y, (A, Q) => {
4157
+ if (!D.value || A === Q) return;
4158
+ const G = n.fileList?.[A] ?? null;
4159
+ i("fileChange", { index: A, item: G });
4098
4160
  });
4099
- const y = H(
4100
- () => S(L.value, d.value)
4101
- ), x = H(() => {
4102
- const B = L.value;
4103
- return n.needSafe ? B ?? "" : `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(B)}`;
4104
- }), P = H(
4105
- () => typeof x.value == "string" ? x.value : ""
4106
- ), Y = H(() => {
4107
- const B = D.value ? g.value : "", Q = L.value;
4108
- return typeof Q == "string" ? `${B}:${y.value}:${Q}` : Q instanceof ArrayBuffer ? `${B}:${y.value}:ab:${Q.byteLength}` : Q instanceof Blob ? `${B}:${y.value}:blob:${Q.size}` : `${B}:${y.value}`;
4109
- }), _ = H(() => {
4110
- const B = L.value;
4111
- return B != null && B !== "";
4112
- }), q = H(() => n.height), ae = H(
4161
+ const _ = H(
4162
+ () => x(L.value, c.value)
4163
+ ), k = H(() => {
4164
+ const A = L.value;
4165
+ return n.needSafe ? A ?? "" : `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(A)}`;
4166
+ }), U = H(
4167
+ () => typeof k.value == "string" ? k.value : ""
4168
+ ), M = H(() => {
4169
+ const A = D.value ? y.value : "", Q = L.value;
4170
+ return typeof Q == "string" ? `${A}:${_.value}:${Q}` : Q instanceof ArrayBuffer ? `${A}:${_.value}:ab:${Q.byteLength}` : Q instanceof Blob ? `${A}:${_.value}:blob:${Q.size}` : `${A}:${_.value}`;
4171
+ }), g = H(() => {
4172
+ const A = L.value;
4173
+ return A != null && A !== "";
4174
+ }), R = H(() => n.height), oe = H(
4113
4175
  () => ({
4114
4176
  height: "100%",
4115
4177
  width: "100%",
4116
4178
  overflow: "auto"
4117
4179
  })
4118
- ), pe = H(
4180
+ ), ce = H(
4119
4181
  () => n.pdfStaticFileUrl != null && n.pdfStaticFileUrl !== "" ? { staticFileUrl: n.pdfStaticFileUrl } : {}
4120
4182
  ), re = H(
4121
- () => n.showNav && D.value && A.value > 1
4122
- ), ge = H(() => re.value && g.value > 0), xe = H(
4123
- () => re.value && g.value < A.value - 1
4183
+ () => n.showNav && D.value && P.value > 1
4184
+ ), ge = H(() => re.value && y.value > 0), Te = H(
4185
+ () => re.value && y.value < P.value - 1
4124
4186
  );
4125
4187
  function Oe() {
4126
- ge.value && i("update:fileIndex", g.value - 1);
4188
+ ge.value && i("update:fileIndex", y.value - 1);
4127
4189
  }
4128
- function j() {
4129
- xe.value && i("update:fileIndex", g.value + 1);
4190
+ function W() {
4191
+ Te.value && i("update:fileIndex", y.value + 1);
4130
4192
  }
4131
- const Re = H(() => {
4132
- if (!_.value) return "";
4133
- const B = F.value;
4134
- return B?.fileName?.trim() || B?.downloadName?.trim() || n.fileName?.trim() || (typeof L.value == "string" && k(L.value) ? (L.value.split(/[/\\]/).pop() ?? "").split("?")[0] : "") || l("hbLibComp.HbFilePreview.fileNameFallback", {
4135
- index: g.value + 1
4193
+ const Ee = H(() => {
4194
+ if (!g.value) return "";
4195
+ const A = F.value;
4196
+ return A?.fileName?.trim() || A?.downloadName?.trim() || n.fileName?.trim() || (typeof L.value == "string" && T(L.value) ? (L.value.split(/[/\\]/).pop() ?? "").split("?")[0] : "") || l("hbLibComp.HbFilePreview.fileNameFallback", {
4197
+ index: y.value + 1
4136
4198
  });
4137
- }), oe = H(() => {
4199
+ }), ne = H(() => {
4138
4200
  if (n.modalTitleOverride != null && n.modalTitleOverride !== "")
4139
4201
  return n.modalTitleOverride;
4140
- const B = n.modalTitlePrefix ?? l("hbLibComp.HbFilePreview.modalTitle");
4141
- if (!_.value) return B;
4142
- const Q = Re.value;
4143
- return D.value && A.value > 1 ? Q ? `${B} — ${Q}(${g.value + 1} / ${A.value})` : `${B}(${g.value + 1} / ${A.value})` : Q ? `${B} — ${Q}` : B;
4202
+ const A = n.modalTitlePrefix ?? l("hbLibComp.HbFilePreview.modalTitle");
4203
+ if (!g.value) return A;
4204
+ const Q = Ee.value;
4205
+ return D.value && P.value > 1 ? Q ? `${A} — ${Q}(${y.value + 1} / ${P.value})` : `${A}(${y.value + 1} / ${P.value})` : Q ? `${A} — ${Q}` : A;
4144
4206
  });
4145
- function M(B) {
4146
- const Q = k(B);
4207
+ function B(A) {
4208
+ const Q = T(A);
4147
4209
  return {
4148
4210
  pdf: "application/pdf",
4149
4211
  png: "image/png",
@@ -4160,13 +4222,13 @@ const hl = {
4160
4222
  pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
4161
4223
  }[Q] || "application/octet-stream";
4162
4224
  }
4163
- function N(B, Q) {
4164
- const G = URL.createObjectURL(B), be = document.createElement("a");
4225
+ function V(A, Q) {
4226
+ const G = URL.createObjectURL(A), be = document.createElement("a");
4165
4227
  be.href = G, be.download = Q || "download", be.rel = "noopener", document.body.appendChild(be), be.click(), document.body.removeChild(be), URL.revokeObjectURL(G);
4166
4228
  }
4167
- const W = O(!1);
4229
+ const q = O(!1);
4168
4230
  function ie() {
4169
- const B = F.value, Q = B?.downloadName || B?.fileName || n.fileName || "";
4231
+ const A = F.value, Q = A?.downloadName || A?.fileName || n.fileName || "";
4170
4232
  if (Q)
4171
4233
  return Q.split(/[/\\]/).pop()?.split("?")[0] || "download";
4172
4234
  if (typeof L.value == "string") {
@@ -4175,46 +4237,46 @@ const hl = {
4175
4237
  }
4176
4238
  return "download";
4177
4239
  }
4178
- const ue = H(() => _.value);
4240
+ const fe = H(() => g.value);
4179
4241
  async function Le() {
4180
- if (!ue.value) return;
4181
- const B = F.value, Q = D.value ? g.value : 0;
4182
- i("beforeDownload", { item: B, index: Q });
4183
- const G = ie(), be = B?.downloadUrl;
4184
- W.value = !0;
4242
+ if (!fe.value) return;
4243
+ const A = F.value, Q = D.value ? y.value : 0;
4244
+ i("beforeDownload", { item: A, index: Q });
4245
+ const G = ie(), be = A?.downloadUrl;
4246
+ q.value = !0;
4185
4247
  try {
4186
4248
  if (n.customDownload)
4187
4249
  await n.customDownload({
4188
- item: B,
4250
+ item: A,
4189
4251
  index: Q,
4190
4252
  src: L.value,
4191
- fileName: d.value,
4253
+ fileName: c.value,
4192
4254
  downloadName: G
4193
4255
  });
4194
4256
  else if (be) {
4195
4257
  const me = await fetch(be);
4196
4258
  if (!me.ok) throw new Error(String(me.status));
4197
- const He = await me.blob();
4198
- N(He, G);
4259
+ const $e = await me.blob();
4260
+ V($e, G);
4199
4261
  } else {
4200
4262
  const me = L.value;
4201
4263
  if (typeof me == "string") {
4202
- const He = await fetch(me);
4203
- if (!He.ok) throw new Error(String(He.status));
4204
- const lt = await He.blob();
4205
- N(lt, G);
4264
+ const $e = await fetch(me);
4265
+ if (!$e.ok) throw new Error(String($e.status));
4266
+ const lt = await $e.blob();
4267
+ V(lt, G);
4206
4268
  } else if (me instanceof Blob)
4207
- N(me, G);
4269
+ V(me, G);
4208
4270
  else if (me instanceof ArrayBuffer) {
4209
- const He = M(G);
4210
- N(new Blob([me], { type: He }), G);
4271
+ const $e = B(G);
4272
+ V(new Blob([me], { type: $e }), G);
4211
4273
  }
4212
4274
  }
4213
- i("downloaded", { item: B, index: Q });
4275
+ i("downloaded", { item: A, index: Q });
4214
4276
  } catch (me) {
4215
4277
  i("error", me);
4216
4278
  } finally {
4217
- W.value = !1;
4279
+ q.value = !1;
4218
4280
  }
4219
4281
  }
4220
4282
  const ye = O("");
@@ -4224,26 +4286,26 @@ const hl = {
4224
4286
  }
4225
4287
  function Be() {
4226
4288
  _e();
4227
- const B = L.value;
4228
- if (y.value !== "image" || B == null || B === "") {
4289
+ const A = L.value;
4290
+ if (_.value !== "image" || A == null || A === "") {
4229
4291
  ye.value = "";
4230
4292
  return;
4231
4293
  }
4232
- if (typeof B == "string") {
4233
- ye.value = B;
4294
+ if (typeof A == "string") {
4295
+ ye.value = A;
4234
4296
  return;
4235
4297
  }
4236
- if (B instanceof Blob) {
4237
- Ce = URL.createObjectURL(B), ye.value = Ce;
4298
+ if (A instanceof Blob) {
4299
+ Ce = URL.createObjectURL(A), ye.value = Ce;
4238
4300
  return;
4239
4301
  }
4240
- if (B instanceof ArrayBuffer) {
4241
- const G = new Blob([B]);
4302
+ if (A instanceof ArrayBuffer) {
4303
+ const G = new Blob([A]);
4242
4304
  Ce = URL.createObjectURL(G), ye.value = Ce;
4243
4305
  }
4244
4306
  }
4245
4307
  se(
4246
- () => [L.value, y.value],
4308
+ () => [L.value, _.value],
4247
4309
  () => Be(),
4248
4310
  { immediate: !0 }
4249
4311
  ), tt(() => {
@@ -4252,40 +4314,40 @@ const hl = {
4252
4314
  function Se() {
4253
4315
  i("rendered");
4254
4316
  }
4255
- function Te(B) {
4256
- i("error", B ?? new Error("office preview error"));
4317
+ function Fe(A) {
4318
+ i("error", A ?? new Error("office preview error"));
4257
4319
  }
4258
4320
  function Pe() {
4259
4321
  i("rendered");
4260
4322
  }
4261
- function De(B) {
4262
- i("error", B);
4323
+ function De(A) {
4324
+ i("error", A);
4263
4325
  }
4264
4326
  return t({
4265
4327
  /** 预览类型 */
4266
- previewKind: y,
4328
+ previewKind: _,
4267
4329
  /** 安全索引 */
4268
- safeIndex: g,
4330
+ safeIndex: y,
4269
4331
  /** 当前列表项 */
4270
4332
  currentListItem: F,
4271
4333
  /** 有效 src */
4272
4334
  effectiveSrc: L,
4273
4335
  /** 有效文件名 */
4274
- effectiveFileName: d,
4336
+ effectiveFileName: c,
4275
4337
  /** 上一个 */
4276
4338
  goPrev: Oe,
4277
4339
  /** 下一个 */
4278
- goNext: j,
4340
+ goNext: W,
4279
4341
  /** 下载 */
4280
4342
  download: Le,
4281
4343
  /** 关闭 */
4282
4344
  closeModal: u
4283
- }), (B, Q) => {
4345
+ }), (A, Q) => {
4284
4346
  const G = K("a-button"), be = K("a-space"), me = K("a-modal");
4285
- return c(), E(me, {
4347
+ return d(), z(me, {
4286
4348
  "wrap-class-name": "file-preview-modal-wrap",
4287
4349
  visible: e.visible,
4288
- title: oe.value,
4350
+ title: ne.value,
4289
4351
  width: e.modalWidth,
4290
4352
  centered: e.centered,
4291
4353
  "destroy-on-close": e.destroyOnClose,
@@ -4302,131 +4364,131 @@ const hl = {
4302
4364
  wrap: ""
4303
4365
  }, {
4304
4366
  default: b(() => [
4305
- re.value ? (c(), E(G, {
4367
+ re.value ? (d(), z(G, {
4306
4368
  key: 0,
4307
4369
  disabled: !ge.value,
4308
4370
  onClick: Oe
4309
4371
  }, {
4310
4372
  default: b(() => [
4311
- R(C(v(l)("hbLibComp.HbFilePreview.prev")), 1)
4373
+ E(C(v(l)("hbLibComp.HbFilePreview.prev")), 1)
4312
4374
  ]),
4313
4375
  _: 1
4314
- }, 8, ["disabled"])) : z("", !0),
4315
- re.value ? (c(), E(G, {
4376
+ }, 8, ["disabled"])) : j("", !0),
4377
+ re.value ? (d(), z(G, {
4316
4378
  key: 1,
4317
- disabled: !xe.value,
4318
- onClick: j
4379
+ disabled: !Te.value,
4380
+ onClick: W
4319
4381
  }, {
4320
4382
  default: b(() => [
4321
- R(C(v(l)("hbLibComp.HbFilePreview.next")), 1)
4383
+ E(C(v(l)("hbLibComp.HbFilePreview.next")), 1)
4322
4384
  ]),
4323
4385
  _: 1
4324
- }, 8, ["disabled"])) : z("", !0),
4325
- e.showDownload ? (c(), E(G, {
4386
+ }, 8, ["disabled"])) : j("", !0),
4387
+ e.showDownload ? (d(), z(G, {
4326
4388
  key: 2,
4327
4389
  type: "primary",
4328
- disabled: !ue.value,
4329
- loading: W.value,
4390
+ disabled: !fe.value,
4391
+ loading: q.value,
4330
4392
  onClick: Le
4331
4393
  }, {
4332
4394
  default: b(() => [
4333
- R(C(v(l)("hbLibComp.HbFilePreview.download")), 1)
4395
+ E(C(v(l)("hbLibComp.HbFilePreview.download")), 1)
4334
4396
  ]),
4335
4397
  _: 1
4336
- }, 8, ["disabled", "loading"])) : z("", !0),
4398
+ }, 8, ["disabled", "loading"])) : j("", !0),
4337
4399
  I(G, { onClick: u }, {
4338
4400
  default: b(() => [
4339
- R(C(v(l)("hbLibComp.HbFilePreview.close")), 1)
4401
+ E(C(v(l)("hbLibComp.HbFilePreview.close")), 1)
4340
4402
  ]),
4341
4403
  _: 1
4342
4404
  }),
4343
- J(B.$slots, "footer-extra", {}, void 0, !0)
4405
+ J(A.$slots, "footer-extra", {}, void 0, !0)
4344
4406
  ]),
4345
4407
  _: 3
4346
4408
  })
4347
4409
  ])
4348
4410
  ]),
4349
4411
  default: b(() => [
4350
- e.needSafe ? (c(), w("div", {
4412
+ e.needSafe ? (d(), w("div", {
4351
4413
  key: 0,
4352
4414
  class: "file-preview",
4353
- style: de({ height: q.value })
4415
+ style: ue({ height: R.value })
4354
4416
  }, [
4355
4417
  m("div", bi, [
4356
- _.value ? y.value === "unknown" ? (c(), w("div", hi, [
4357
- J(B.$slots, "unsupported", {}, () => [
4358
- R(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
4418
+ g.value ? _.value === "unknown" ? (d(), w("div", hi, [
4419
+ J(A.$slots, "unsupported", {}, () => [
4420
+ E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
4359
4421
  ], !0)
4360
- ])) : y.value === "image" ? (c(), w("img", {
4422
+ ])) : _.value === "image" ? (d(), w("img", {
4361
4423
  key: 2,
4362
4424
  src: ye.value,
4363
4425
  class: "file-preview__image",
4364
4426
  alt: "",
4365
4427
  onLoad: Pe,
4366
4428
  onError: De
4367
- }, null, 40, vi)) : y.value === "docx" ? (c(), E(v(f), {
4368
- key: `docx-${Y.value}`,
4369
- src: x.value,
4429
+ }, null, 40, vi)) : _.value === "docx" ? (d(), z(v(f), {
4430
+ key: `docx-${M.value}`,
4431
+ src: k.value,
4370
4432
  class: "file-preview__office",
4371
- style: de(ae.value),
4433
+ style: ue(oe.value),
4372
4434
  onRendered: Se,
4373
- onError: Te
4374
- }, null, 8, ["src", "style"])) : y.value === "excel" ? (c(), E(v(T), {
4375
- key: `xls-${Y.value}`,
4376
- src: x.value,
4435
+ onError: Fe
4436
+ }, null, 8, ["src", "style"])) : _.value === "excel" ? (d(), z(v(S), {
4437
+ key: `xls-${M.value}`,
4438
+ src: k.value,
4377
4439
  class: "file-preview__office",
4378
- style: de(ae.value),
4440
+ style: ue(oe.value),
4379
4441
  options: e.excelOptions,
4380
4442
  onRendered: Se,
4381
- onError: Te
4382
- }, null, 8, ["src", "style", "options"])) : y.value === "pdf" ? (c(), E(v($), ce({
4383
- key: `pdf-${Y.value}`,
4384
- src: x.value,
4443
+ onError: Fe
4444
+ }, null, 8, ["src", "style", "options"])) : _.value === "pdf" ? (d(), z(v($), de({
4445
+ key: `pdf-${M.value}`,
4446
+ src: k.value,
4385
4447
  class: "file-preview__office",
4386
- style: ae.value
4387
- }, pe.value, {
4448
+ style: oe.value
4449
+ }, ce.value, {
4388
4450
  onRendered: Se,
4389
- onError: Te
4390
- }), null, 16, ["src", "style"])) : y.value === "pptx" ? (c(), E(v(U), {
4391
- key: `pptx-${Y.value}`,
4392
- src: x.value,
4451
+ onError: Fe
4452
+ }), null, 16, ["src", "style"])) : _.value === "pptx" ? (d(), z(v(N), {
4453
+ key: `pptx-${M.value}`,
4454
+ src: k.value,
4393
4455
  class: "file-preview__office",
4394
- style: de(ae.value),
4456
+ style: ue(oe.value),
4395
4457
  onRendered: Se,
4396
- onError: Te
4397
- }, null, 8, ["src", "style"])) : z("", !0) : (c(), w("div", mi, [
4398
- J(B.$slots, "empty", {}, () => [
4399
- R(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
4458
+ onError: Fe
4459
+ }, null, 8, ["src", "style"])) : j("", !0) : (d(), w("div", mi, [
4460
+ J(A.$slots, "empty", {}, () => [
4461
+ E(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
4400
4462
  ], !0)
4401
4463
  ]))
4402
4464
  ])
4403
- ], 4)) : (c(), w("div", {
4465
+ ], 4)) : (d(), w("div", {
4404
4466
  key: 1,
4405
4467
  class: "file-preview",
4406
- style: de({ height: q.value })
4468
+ style: ue({ height: R.value })
4407
4469
  }, [
4408
4470
  m("div", gi, [
4409
- _.value ? y.value === "unknown" ? (c(), w("div", _i, [
4410
- J(B.$slots, "unsupported", {}, () => [
4411
- R(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
4471
+ g.value ? _.value === "unknown" ? (d(), w("div", _i, [
4472
+ J(A.$slots, "unsupported", {}, () => [
4473
+ E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
4412
4474
  ], !0)
4413
- ])) : y.value === "image" ? (c(), w("img", {
4475
+ ])) : _.value === "image" ? (d(), w("img", {
4414
4476
  key: 2,
4415
4477
  src: ye.value,
4416
4478
  class: "file-preview__image",
4417
4479
  alt: "",
4418
4480
  onLoad: Pe,
4419
4481
  onError: De
4420
- }, null, 40, Li)) : (c(), w("iframe", {
4482
+ }, null, 40, Li)) : (d(), w("iframe", {
4421
4483
  key: 3,
4422
- src: P.value,
4484
+ src: U.value,
4423
4485
  class: "file-preview-modal-body__iframe",
4424
4486
  width: "100%",
4425
4487
  style: { border: "none" },
4426
4488
  referrerpolicy: "no-referrer-when-downgrade"
4427
- }, null, 8, Ci)) : (c(), w("div", yi, [
4428
- J(B.$slots, "empty", {}, () => [
4429
- R(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
4489
+ }, null, 8, Ci)) : (d(), w("div", yi, [
4490
+ J(A.$slots, "empty", {}, () => [
4491
+ E(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
4430
4492
  ], !0)
4431
4493
  ]))
4432
4494
  ])
@@ -4436,7 +4498,7 @@ const hl = {
4436
4498
  }, 8, ["visible", "title", "width", "centered", "destroy-on-close", "mask-closable", "keyboard"]);
4437
4499
  };
4438
4500
  }
4439
- }), Si = /* @__PURE__ */ le(ki, [["__scopeId", "data-v-513d7b3b"]]), xi = ne(Si), to = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.css", Ti = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.js", oo = Symbol("HB_ICON_GLOBAL_KEY"), Fi = he(oo, {});
4501
+ }), Si = /* @__PURE__ */ ae(ki, [["__scopeId", "data-v-513d7b3b"]]), xi = le(Si), to = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.css", Ti = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.js", oo = Symbol("HB_ICON_GLOBAL_KEY"), Fi = he(oo, {});
4440
4502
  function Hi(e) {
4441
4503
  return e.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js");
4442
4504
  }
@@ -4532,14 +4594,14 @@ function yt(e, t = "font", o) {
4532
4594
  }
4533
4595
  if (t === "symbol" && Hi(h)) {
4534
4596
  try {
4535
- const T = await (await fetch(h)).text();
4597
+ const S = await (await fetch(h)).text();
4536
4598
  if (p !== u) return;
4537
4599
  const $ = $i(
4538
4600
  o?.symbolIdScope,
4539
4601
  h
4540
- ), U = Ii(T, $), { prefix: V, names: k } = Ai(U);
4541
- if (await Pi(U, h, $), p !== u) return;
4542
- r.value = "symbol", n.value = "", i.value = V, l.value = k;
4602
+ ), N = Ii(S, $), { prefix: Y, names: T } = Ai(N);
4603
+ if (await Pi(N, h, $), p !== u) return;
4604
+ r.value = "symbol", n.value = "", i.value = Y, l.value = T;
4543
4605
  } catch (f) {
4544
4606
  console.error(
4545
4607
  "[HbLibIcon] 加载 iconfont Symbol 失败:",
@@ -4550,11 +4612,11 @@ function yt(e, t = "font", o) {
4550
4612
  return;
4551
4613
  }
4552
4614
  try {
4553
- const T = await (await fetch(h)).text();
4554
- Oi(T, "hb-iconfont-" + h);
4555
- const { baseClass: $, prefix: U, names: V } = Di(T);
4615
+ const S = await (await fetch(h)).text();
4616
+ Oi(S, "hb-iconfont-" + h);
4617
+ const { baseClass: $, prefix: N, names: Y } = Di(S);
4556
4618
  if (p !== u) return;
4557
- r.value = "font", n.value = $, i.value = U, l.value = V;
4619
+ r.value = "font", n.value = $, i.value = N, l.value = Y;
4558
4620
  } catch (f) {
4559
4621
  console.error(
4560
4622
  "[HbLibIcon] 加载 iconfont CSS 失败:",
@@ -4569,7 +4631,7 @@ function yt(e, t = "font", o) {
4569
4631
  iconMode: r
4570
4632
  };
4571
4633
  }
4572
- const Ui = { class: "hb-icon-list" }, Ri = ["onClick"], Ei = {
4634
+ const Ui = { class: "hb-icon-list" }, Ei = ["onClick"], Ri = {
4573
4635
  key: 1,
4574
4636
  class: "hb-icon-list__symbol",
4575
4637
  "aria-hidden": "true"
@@ -4599,32 +4661,32 @@ const Ui = { class: "hb-icon-list" }, Ri = ["onClick"], Ei = {
4599
4661
  const h = (f) => {
4600
4662
  p.value = f, i("select", f), i("update:selected", f);
4601
4663
  };
4602
- return (f, T) => (c(), w("div", Ui, [
4664
+ return (f, S) => (d(), w("div", Ui, [
4603
4665
  J(f.$slots, "iconList", {
4604
4666
  iconClasses: v(a),
4605
4667
  iconBaseClass: v(r),
4606
4668
  iconPrefix: v(u),
4607
4669
  iconMode: v(s)
4608
4670
  }, () => [
4609
- (c(!0), w(ee, null, fe(v(a), ($) => (c(), w("div", {
4671
+ (d(!0), w(ee, null, pe(v(a), ($) => (d(), w("div", {
4610
4672
  key: $,
4611
4673
  class: X(["hb-icon-list__item", { "hb-icon-list__item--active": $ === p.value }]),
4612
- onClick: (U) => h($)
4674
+ onClick: (N) => h($)
4613
4675
  }, [
4614
- v(s) === "font" ? (c(), w("i", {
4676
+ v(s) === "font" ? (d(), w("i", {
4615
4677
  key: 0,
4616
4678
  class: X([v(r), v(u) + $])
4617
- }, null, 2)) : (c(), w("svg", Ei, [
4679
+ }, null, 2)) : (d(), w("svg", Ri, [
4618
4680
  m("use", {
4619
4681
  href: "#" + o(v(u) + $)
4620
4682
  }, null, 8, Ni)
4621
4683
  ])),
4622
4684
  m("span", zi, C($), 1)
4623
- ], 10, Ri))), 128))
4685
+ ], 10, Ei))), 128))
4624
4686
  ], !0)
4625
4687
  ]));
4626
4688
  }
4627
- }), mt = /* @__PURE__ */ le(Vi, [["__scopeId", "data-v-35e114dd"]]), lo = mt;
4689
+ }), mt = /* @__PURE__ */ ae(Vi, [["__scopeId", "data-v-35e114dd"]]), lo = mt;
4628
4690
  lo.install = (e, t) => {
4629
4691
  e.provide(oo, {
4630
4692
  cssUrl: t?.cssUrl ?? to,
@@ -4655,49 +4717,49 @@ const ji = ["href"], Wi = /* @__PURE__ */ te({
4655
4717
  ), i = H(
4656
4718
  () => t.iMode && O(t.iMode) || he("iconMode") || O("")
4657
4719
  ), l = he(nt, null), r = H(() => {
4658
- const T = l?.HbLibIcon, $ = t.width ?? T?.width ?? 27, U = t.height ?? T?.height ?? 27;
4720
+ const S = l?.HbLibIcon, $ = t.width ?? S?.width ?? 27, N = t.height ?? S?.height ?? 27;
4659
4721
  return {
4660
4722
  width: $ + "px",
4661
- height: U + "px",
4723
+ height: N + "px",
4662
4724
  display: "inline-block",
4663
4725
  ...f()
4664
4726
  };
4665
4727
  }), u = H(() => t.name ? n.value.value && t.name.startsWith(n.value.value) ? t.name : `${n.value.value}${t.name}` : ""), a = H(() => {
4666
- const T = [
4728
+ const S = [
4667
4729
  "hb-lib-icon__font",
4668
4730
  o.value.value,
4669
4731
  u.value
4670
4732
  ];
4671
- return t.hover && T.push("hb-icon-hover"), T;
4733
+ return t.hover && S.push("hb-icon-hover"), S;
4672
4734
  });
4673
- function s(T) {
4674
- return encodeURIComponent(T);
4735
+ function s(S) {
4736
+ return encodeURIComponent(S);
4675
4737
  }
4676
4738
  const p = H(() => {
4677
- const T = u.value;
4678
- return T ? `#${s(T)}` : "";
4739
+ const S = u.value;
4740
+ return S ? `#${s(S)}` : "";
4679
4741
  }), h = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/, f = () => {
4680
- const T = t.hover.toString();
4681
- return h.test(T) ? { "--color-hover": T } : T.includes("--") ? { "--color-hover": `var(${T})` } : { "--color-hover": "var(--hb-color-primary-hover)" };
4742
+ const S = t.hover.toString();
4743
+ return h.test(S) ? { "--color-hover": S } : S.includes("--") ? { "--color-hover": `var(${S})` } : { "--color-hover": "var(--hb-color-primary-hover)" };
4682
4744
  };
4683
- return (T, $) => (c(), w("span", {
4745
+ return (S, $) => (d(), w("span", {
4684
4746
  class: X(t.className),
4685
- style: de(r.value)
4747
+ style: ue(r.value)
4686
4748
  }, [
4687
- i.value.value === "font" ? (c(), w("i", {
4749
+ i.value.value === "font" ? (d(), w("i", {
4688
4750
  key: 0,
4689
4751
  class: X([a.value, "iconfont"])
4690
- }, null, 2)) : (c(), w("svg", {
4752
+ }, null, 2)) : (d(), w("svg", {
4691
4753
  key: 1,
4692
4754
  class: X(["hb-lib-icon__symbol", { "hb-icon-hover": e.hover }]),
4693
4755
  "aria-hidden": "true",
4694
- style: de({ fill: e.initFillColor })
4756
+ style: ue({ fill: e.initFillColor })
4695
4757
  }, [
4696
4758
  m("use", { href: p.value }, null, 8, ji)
4697
4759
  ], 6))
4698
4760
  ], 6));
4699
4761
  }
4700
- }), qi = /* @__PURE__ */ le(Wi, [["__scopeId", "data-v-9a2203c0"]]), ht = qi;
4762
+ }), qi = /* @__PURE__ */ ae(Wi, [["__scopeId", "data-v-9a2203c0"]]), ht = qi;
4701
4763
  ht.install = (e, t) => {
4702
4764
  const o = t?.iconURL || void 0;
4703
4765
  if (o) {
@@ -4755,37 +4817,37 @@ const Yi = /* @__PURE__ */ te({
4755
4817
  HbLibTableColumnSet: Ml,
4756
4818
  HbLibUnDetailBox: ja,
4757
4819
  HbUiConfig: Zl
4758
- }, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ new Map();
4820
+ }, Symbol.toStringTag, { value: "Module" })), Ie = /* @__PURE__ */ new Map();
4759
4821
  let Pt;
4760
4822
  Io && (document.addEventListener("mousedown", (e) => Pt = e), document.addEventListener("mouseup", (e) => {
4761
- for (const t of $e.values())
4823
+ for (const t of Ie.values())
4762
4824
  for (const { documentHandler: o } of t)
4763
4825
  o(e, Pt);
4764
4826
  }));
4765
4827
  function Ut(e, t) {
4766
4828
  let o = [];
4767
4829
  return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, i) {
4768
- const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u, p = e.contains(r) || e.contains(u), h = e === r, f = o.length && o.some(($) => $?.contains(r)) || o.length && o.includes(u), T = l && (l.contains(r) || l.contains(u));
4769
- a || s || p || h || f || T || t.value(n, i);
4830
+ const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u, p = e.contains(r) || e.contains(u), h = e === r, f = o.length && o.some(($) => $?.contains(r)) || o.length && o.includes(u), S = l && (l.contains(r) || l.contains(u));
4831
+ a || s || p || h || f || S || t.value(n, i);
4770
4832
  };
4771
4833
  }
4772
4834
  const Ji = {
4773
4835
  beforeMount(e, t) {
4774
- $e.has(e) || $e.set(e, []), $e.get(e).push({
4836
+ Ie.has(e) || Ie.set(e, []), Ie.get(e).push({
4775
4837
  documentHandler: Ut(e, t),
4776
4838
  bindingFn: t.value
4777
4839
  });
4778
4840
  },
4779
4841
  updated(e, t) {
4780
- $e.has(e) || $e.set(e, []);
4781
- const o = $e.get(e), n = o.findIndex((l) => l.bindingFn === t.oldValue), i = {
4842
+ Ie.has(e) || Ie.set(e, []);
4843
+ const o = Ie.get(e), n = o.findIndex((l) => l.bindingFn === t.oldValue), i = {
4782
4844
  documentHandler: Ut(e, t),
4783
4845
  bindingFn: t.value
4784
4846
  };
4785
4847
  n >= 0 ? o.splice(n, 1, i) : o.push(i);
4786
4848
  },
4787
4849
  unmounted(e) {
4788
- $e.delete(e);
4850
+ Ie.delete(e);
4789
4851
  }
4790
4852
  }, Xi = {
4791
4853
  mounted(e, t) {
@@ -4805,7 +4867,7 @@ const Ji = {
4805
4867
  unmounted(e) {
4806
4868
  e.__debounceHandler__ && (e.removeEventListener("click", e.__debounceHandler__), delete e.__debounceHandler__);
4807
4869
  }
4808
- }, Rt = (e, t) => {
4870
+ }, Et = (e, t) => {
4809
4871
  e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
4810
4872
  const o = ho(eo, {
4811
4873
  cpText: t
@@ -4817,15 +4879,15 @@ const Ji = {
4817
4879
  const o = document.createElement("div");
4818
4880
  o.style.display = "inline-flex", o.style.alignItems = "center", o.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(o, e.nextSibling), e._dynamicContainer = o;
4819
4881
  }
4820
- Rt(e, t.value);
4882
+ Et(e, t.value);
4821
4883
  },
4822
4884
  updated(e, t) {
4823
- t.value !== e._dynamicPrevValue && Rt(e, t.value);
4885
+ t.value !== e._dynamicPrevValue && Et(e, t.value);
4824
4886
  },
4825
4887
  unmounted(e) {
4826
4888
  e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
4827
4889
  }
4828
- }, Zi = { cos: Ji, dc: Xi, icp: Qi }, Et = (e) => e.downloadUrl, es = (e, t, o) => {
4890
+ }, Zi = { cos: Ji, dc: Xi, icp: Qi }, Rt = (e) => e.downloadUrl, es = (e, t, o) => {
4829
4891
  const n = (a) => a.previewUrl, i = o?.preferredIndex;
4830
4892
  if (typeof i == "number" && i >= 0 && i < e.length) {
4831
4893
  const a = e[i];
@@ -4844,9 +4906,9 @@ const Ji = {
4844
4906
  const a = e.findIndex((s) => n(s) === r);
4845
4907
  if (a >= 0) return a;
4846
4908
  }
4847
- const u = Et(t);
4909
+ const u = Rt(t);
4848
4910
  if (u) {
4849
- const a = e.findIndex((s) => Et(s) === u);
4911
+ const a = e.findIndex((s) => Rt(s) === u);
4850
4912
  if (a >= 0) return a;
4851
4913
  }
4852
4914
  return e.indexOf(t);
@@ -4938,49 +5000,49 @@ function Ye(e) {
4938
5000
  }
4939
5001
  function ks(e) {
4940
5002
  const { t } = ve(), o = O(!1), n = O(""), i = O(""), l = O(-1), r = O(-1), u = H(() => e.value.attachmentInfos ?? []), a = H(
4941
- () => u.value.reduce((x, P, Y) => {
4942
- const _ = zt(P);
4943
- if (!_) return x;
4944
- const q = Ye(P);
4945
- return x.push({
4946
- attachmentIndex: Y,
4947
- record: P,
5003
+ () => u.value.reduce((k, U, M) => {
5004
+ const g = zt(U);
5005
+ if (!g) return k;
5006
+ const R = Ye(U);
5007
+ return k.push({
5008
+ attachmentIndex: M,
5009
+ record: U,
4948
5010
  item: {
4949
- src: _,
4950
- fileName: q,
4951
- downloadName: q,
4952
- downloadUrl: qe(P) || void 0
5011
+ src: g,
5012
+ fileName: R,
5013
+ downloadName: R,
5014
+ downloadUrl: qe(U) || void 0
4953
5015
  }
4954
- }), x;
5016
+ }), k;
4955
5017
  }, [])
4956
5018
  ), s = H(
4957
- () => a.value.map((x) => x.item)
5019
+ () => a.value.map((k) => k.item)
4958
5020
  ), p = H(
4959
5021
  () => r.value >= 0 ? s.value : []
4960
5022
  ), h = H(() => {
4961
- const x = r.value;
4962
- return x >= 0 ? a.value[x] ?? null : null;
5023
+ const k = r.value;
5024
+ return k >= 0 ? a.value[k] ?? null : null;
4963
5025
  }), f = H(
4964
5026
  () => h.value?.item ?? null
4965
- ), T = H(
5027
+ ), S = H(
4966
5028
  () => r.value > 0 && s.value.length > 1
4967
5029
  ), $ = H(
4968
5030
  () => r.value >= 0 && r.value < s.value.length - 1
4969
- ), U = H(() => s.value.length > 1), V = (x, P, Y, _) => {
4970
- l.value = Y, r.value = _, n.value = x, i.value = P, o.value = !0;
4971
- }, k = (x) => {
4972
- const P = a.value[x];
4973
- P && V(
4974
- String(P.item.src),
4975
- P.item.fileName || "",
4976
- P.attachmentIndex,
4977
- x
5031
+ ), N = H(() => s.value.length > 1), Y = (k, U, M, g) => {
5032
+ l.value = M, r.value = g, n.value = k, i.value = U, o.value = !0;
5033
+ }, T = (k) => {
5034
+ const U = a.value[k];
5035
+ U && Y(
5036
+ String(U.item.src),
5037
+ U.item.fileName || "",
5038
+ U.attachmentIndex,
5039
+ k
4978
5040
  );
4979
- }, S = (x) => {
4980
- const P = a.value.findIndex(
4981
- (Y) => Y.attachmentIndex === x
5041
+ }, x = (k) => {
5042
+ const U = a.value.findIndex(
5043
+ (M) => M.attachmentIndex === k
4982
5044
  );
4983
- P < 0 || k(P);
5045
+ U < 0 || T(U);
4984
5046
  };
4985
5047
  return {
4986
5048
  filePreviewVisible: o,
@@ -4991,57 +5053,57 @@ function ks(e) {
4991
5053
  filePreviewList: s,
4992
5054
  activeFilePreviewList: p,
4993
5055
  currentPreviewFile: f,
4994
- hasPrevAttachment: T,
5056
+ hasPrevAttachment: S,
4995
5057
  hasNextAttachment: $,
4996
- showAttachmentNavBar: U,
4997
- handlePreview: (x, P) => {
4998
- const Y = zt(x);
4999
- if (!Y) {
5000
- Ie.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));
5058
+ showAttachmentNavBar: N,
5059
+ handlePreview: (k, U) => {
5060
+ const M = zt(k);
5061
+ if (!M) {
5062
+ Me.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));
5001
5063
  return;
5002
5064
  }
5003
- const _ = es(u.value, x, {
5004
- preferredIndex: P
5065
+ const g = es(u.value, k, {
5066
+ preferredIndex: U
5005
5067
  });
5006
- if (_ >= 0) {
5007
- S(_);
5068
+ if (g >= 0) {
5069
+ x(g);
5008
5070
  return;
5009
5071
  }
5010
- V(Y, Ye(x), -1, -1);
5072
+ Y(M, Ye(k), -1, -1);
5011
5073
  },
5012
- handleDownload: (x) => {
5013
- const P = qe(x);
5014
- if (!P) {
5015
- Ie.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));
5074
+ handleDownload: (k) => {
5075
+ const U = qe(k);
5076
+ if (!U) {
5077
+ Me.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));
5016
5078
  return;
5017
5079
  }
5018
- st(P, Ye(x));
5080
+ st(U, Ye(k));
5019
5081
  },
5020
5082
  handleClosePreview: () => {
5021
5083
  o.value = !1, l.value = -1, r.value = -1, n.value = "", i.value = "";
5022
5084
  },
5023
- handlePreviewFileIndexChange: (x) => {
5024
- k(x);
5085
+ handlePreviewFileIndexChange: (k) => {
5086
+ T(k);
5025
5087
  },
5026
5088
  goPrevAttachment: () => {
5027
- T.value && k(r.value - 1);
5089
+ S.value && T(r.value - 1);
5028
5090
  },
5029
5091
  goNextAttachment: () => {
5030
- $.value && k(r.value + 1);
5092
+ $.value && T(r.value + 1);
5031
5093
  },
5032
5094
  triggerBrowserDownload: st,
5033
5095
  handleBatchDownloadAttachment: async () => {
5034
- const x = u.value.filter(
5035
- (P) => !!qe(P)
5096
+ const k = u.value.filter(
5097
+ (U) => !!qe(U)
5036
5098
  );
5037
- if (x.length === 0) {
5038
- Ie.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));
5099
+ if (k.length === 0) {
5100
+ Me.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));
5039
5101
  return;
5040
5102
  }
5041
- for (let P = 0; P < x.length; P++) {
5042
- const Y = x[P];
5043
- await st(qe(Y), Ye(Y)), P < x.length - 1 && await new Promise(
5044
- (_) => setTimeout(_, ls)
5103
+ for (let U = 0; U < k.length; U++) {
5104
+ const M = k[U];
5105
+ await st(qe(M), Ye(M)), U < k.length - 1 && await new Promise(
5106
+ (g) => setTimeout(g, ls)
5045
5107
  );
5046
5108
  }
5047
5109
  }
@@ -5064,7 +5126,7 @@ const Ss = (e) => {
5064
5126
  }, xs = (e) => {
5065
5127
  let t = !0;
5066
5128
  return { start: () => {
5067
- Me(() => {
5129
+ xe(() => {
5068
5130
  const l = document.querySelector(`.${e} .ant-modal`);
5069
5131
  if (l) {
5070
5132
  let r = !1, u = { x: 0, y: 0 };
@@ -5085,7 +5147,7 @@ const Ss = (e) => {
5085
5147
  }, stop: () => {
5086
5148
  t = !1;
5087
5149
  }, resetPosition: () => {
5088
- Me(() => {
5150
+ xe(() => {
5089
5151
  const l = document.querySelector(`.${e} .ant-modal`);
5090
5152
  if (l) {
5091
5153
  const r = window.innerWidth, u = window.innerHeight, a = l.offsetWidth, s = l.offsetHeight, p = (r - a) / 2, h = (u - s) / 2;