@hb-hellotech/hb-ui 2.4.2 → 2.4.3

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,6 +1,6 @@
1
1
  import './hb_component_lib.css';
2
2
  import Gt from "vue-files-preview";
3
- import { defineComponent as te, inject as Ce, computed as $, reactive as Ne, ref as E, watch as ie, onMounted as ke, createElementBlock as w, openBlock as n, normalizeClass as J, unref as k, createVNode as F, withCtx as u, createElementVNode as p, toDisplayString as x, createTextVNode as O, createBlock as R, createCommentVNode as A, Fragment as G, renderList as me, resolveComponent as j, Transition as Jt, withDirectives as _e, mergeProps as ee, createSlots as Pe, renderSlot as q, vShow as Xt, nextTick as xe, onUnmounted as Be, useTemplateRef as Qt, provide as Bt, normalizeStyle as ve, mergeModels as Qe, useModel as Ot, withModifiers as Re, resolveDirective as Et, useAttrs as Zt, useSlots as eo, onBeforeUnmount as nt, watchEffect as Pt, resolveDynamicComponent as Nt, shallowRef as to, createStaticVNode as oo, getCurrentInstance as lo, createApp as ao } from "vue";
3
+ import { defineComponent as oe, inject as Ce, computed as $, reactive as Ne, ref as E, watch as ie, onMounted as ke, createElementBlock as L, openBlock as n, normalizeClass as Q, unref as w, createVNode as x, withCtx as u, createElementVNode as p, toDisplayString as k, createTextVNode as O, createBlock as V, createCommentVNode as B, Fragment as X, renderList as me, resolveComponent as j, Transition as Jt, withDirectives as _e, mergeProps as te, createSlots as Pe, renderSlot as Y, vShow as Xt, nextTick as xe, onUnmounted as Be, useTemplateRef as Qt, provide as Bt, normalizeStyle as ve, mergeModels as Qe, useModel as Ot, withModifiers as Re, resolveDirective as Et, useAttrs as Zt, useSlots as eo, onBeforeUnmount as nt, watchEffect as Pt, resolveDynamicComponent as Nt, shallowRef as to, createStaticVNode as oo, getCurrentInstance as lo, createApp as ao } from "vue";
4
4
  import Ve from "vuedraggable";
5
5
  import { Modal as Ze, Button as et, message as Le, Tooltip as We, Switch as ft, Radio as pt, RadioGroup as mt, InputNumber as bt, DatePicker as ht, Checkbox as je, CheckboxGroup as vt, Select as tt, Input as gt, Col as no, Row as io, FormItem as yt, Form as _t, SelectOption as ot, Popconfirm as Je, MenuItem as Lt, Menu as wt, Dropdown as Ct, Popover as so, BackTop as Ut, Spin as ro } from "ant-design-vue";
6
6
  import { useRoute as it } from "vue-router";
@@ -27,7 +27,7 @@ const wo = "hb-", st = (e = "") => {
27
27
  bem: (o, t, a) => He(e, o, t, a),
28
28
  // is-disabled
29
29
  is: (o, t) => t ? `is-${o}` : ""
30
- }), ko = ["onMouseenter", "onMouseleave"], So = ["onClick"], xo = /* @__PURE__ */ te({
30
+ }), ko = ["onMouseenter", "onMouseleave"], So = ["onClick"], xo = /* @__PURE__ */ oe({
31
31
  name: "HbLibFormItemFilterModal",
32
32
  __name: "HbFormItemFilterModal",
33
33
  props: {
@@ -40,42 +40,42 @@ const wo = "hb-", st = (e = "") => {
40
40
  },
41
41
  emits: ["confirm"],
42
42
  setup(e, { expose: o, emit: t }) {
43
- const a = Ce("globalCompConfig", {}), d = ye().t, s = ye().messages.value.en_US, c = ye().messages.value.ja_JP, r = ye().messages.value.zh_CN, l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = $(() => l.title || d("hbLibComp.hbFormItemFilterModal.title")), L = t, b = st("sfcm"), P = it(), I = Ne({
43
+ const a = Ce("globalCompConfig", {}), d = ye().t, s = ye().messages.value.en_US, c = ye().messages.value.ja_JP, r = ye().messages.value.zh_CN, l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = $(() => l.title || d("hbLibComp.hbFormItemFilterModal.title")), _ = t, h = st("sfcm"), P = it(), I = Ne({
44
44
  lan: window.localStorage.getItem("lan")
45
- }), V = E(!1), B = E(600);
46
- let h = [];
47
- const m = E([]), y = E([]), H = $(() => m.value.every((g) => g.isLinked || g.isFixed)), S = (g) => ({
45
+ }), W = E(!1), A = E(600);
46
+ let v = [];
47
+ const m = E([]), y = E([]), F = $(() => m.value.every((g) => g.isLinked || g.isFixed)), C = (g) => ({
48
48
  ...g,
49
- label: T(g) || `${N(g) || ""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
49
+ label: S(g) || `${N(g) || ""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
50
50
  key: g.key,
51
51
  isFixed: g?.isFixed || !1,
52
52
  isLinked: g?.isLinked || !1,
53
53
  labelLanguage: g?.labelLanguage || void 0
54
- }), C = (g) => {
55
- const Y = g.draggedContext.element, M = g.relatedContext.index;
56
- if (Y.isLinked || Y.isFixed)
54
+ }), T = (g) => {
55
+ const K = g.draggedContext.element, D = g.relatedContext.index;
56
+ if (K.isLinked || K.isFixed)
57
57
  return !1;
58
- const Q = m.value.map((ue, we) => ({ item: ue, index: we })).filter(({ item: ue }) => ue.isLinked).map(({ index: ue }) => ue);
59
- if (Q.length === 0)
58
+ const Z = m.value.map((ue, we) => ({ item: ue, index: we })).filter(({ item: ue }) => ue.isLinked).map(({ index: ue }) => ue);
59
+ if (Z.length === 0)
60
60
  return !0;
61
- for (let ue = 0; ue < Q.length - 1; ue++) {
62
- const we = Q[ue], ge = Q[ue + 1];
63
- if (M > we && M < ge)
61
+ for (let ue = 0; ue < Z.length - 1; ue++) {
62
+ const we = Z[ue], ge = Z[ue + 1];
63
+ if (D > we && D < ge)
64
64
  return !1;
65
65
  }
66
66
  return !0;
67
- }, v = $(() => _() + "_" + l.saveKey), _ = () => {
67
+ }, M = $(() => b() + "_" + l.saveKey), b = () => {
68
68
  const g = localStorage.getItem("pro__Login_Userinfo");
69
- let Y = "anonymous";
69
+ let K = "anonymous";
70
70
  if (g)
71
71
  try {
72
- Y = JSON.parse(g).value.jobNumber || "anonymous";
73
- } catch (Q) {
74
- console.warn("解析用户信息失败:", Q);
72
+ K = JSON.parse(g).value.jobNumber || "anonymous";
73
+ } catch (Z) {
74
+ console.warn("解析用户信息失败:", Z);
75
75
  }
76
- let M = P?.path;
77
- return `searchFormConfig_${Y}_${M}`;
78
- }, T = (g) => ({
76
+ let D = P?.path;
77
+ return `searchFormConfig_${K}_${D}`;
78
+ }, S = (g) => ({
79
79
  ja_JP: () => Ae.get(c, g.labelLanguage || ""),
80
80
  en_US: () => Ae.get(s, g.labelLanguage || ""),
81
81
  zh_CN: () => Ae.get(r, g.labelLanguage || "")
@@ -83,24 +83,24 @@ const wo = "hb-", st = (e = "") => {
83
83
  ja_JP: () => Ae.get(c, g.subLabelLanguage || ""),
84
84
  en_US: () => Ae.get(s, g.subLabelLanguage || ""),
85
85
  zh_CN: () => Ae.get(r, g.subLabelLanguage || "")
86
- })[I.lan]?.() || g.subLabel, X = () => {
86
+ })[I.lan]?.() || g.subLabel, q = () => {
87
87
  try {
88
- const g = localStorage.getItem(v.value);
88
+ const g = localStorage.getItem(M.value);
89
89
  if (g) {
90
- const Y = JSON.parse(g);
91
- if (Y.originalList && Array.isArray(Y.originalList)) {
92
- h = JSON.parse(JSON.stringify(Y.originalList));
93
- const M = h.filter((K) => K?.isFixed), Q = h.filter((K) => K?.isLinked), ue = Y.showList.filter((K) => !K.isFixed && !K.isLinked), we = i.value && i.value > 0 ? Math.max(0, i.value - M.length - Q.length) : ue.length, ge = M.map((K) => ({
94
- ...S(K)
95
- })), ae = Q.map((K) => ({
96
- ...S(K)
97
- })), $e = ue.slice(0, we).map((K) => ({
98
- ...S(K)
90
+ const K = JSON.parse(g);
91
+ if (K.originalList && Array.isArray(K.originalList)) {
92
+ v = JSON.parse(JSON.stringify(K.originalList));
93
+ const D = v.filter((J) => J?.isFixed), Z = v.filter((J) => J?.isLinked), ue = K.showList.filter((J) => !J.isFixed && !J.isLinked), we = i.value && i.value > 0 ? Math.max(0, i.value - D.length - Z.length) : ue.length, ge = D.map((J) => ({
94
+ ...C(J)
95
+ })), ae = Z.map((J) => ({
96
+ ...C(J)
97
+ })), $e = ue.slice(0, we).map((J) => ({
98
+ ...C(J)
99
99
  }));
100
100
  m.value = [...ge, ...ae, ...$e];
101
- const Ie = m.value.map((K) => K.key), De = h.map((K) => K.key).filter((K) => !Ie.includes(K));
102
- return y.value = h.filter((K) => De.includes(K.key)).map((K) => ({
103
- ...S(K),
101
+ const Ie = m.value.map((J) => J.key), De = v.map((J) => J.key).filter((J) => !Ie.includes(J));
102
+ return y.value = v.filter((J) => De.includes(J.key)).map((J) => ({
103
+ ...C(J),
104
104
  active: !1
105
105
  })), !0;
106
106
  }
@@ -109,143 +109,143 @@ const wo = "hb-", st = (e = "") => {
109
109
  console.warn("加载保存的搜索配置失败:", g);
110
110
  }
111
111
  return !1;
112
- }, le = () => {
112
+ }, G = () => {
113
113
  try {
114
114
  const g = {
115
- originalList: h,
116
- showList: m.value.map((Y) => ({
117
- ...Y,
118
- key: Y.key,
119
- label: Y.label,
120
- isFixed: Y.isFixed,
121
- isLinked: Y.isLinked,
122
- labelLanguage: Y?.labelLanguage || void 0
115
+ originalList: v,
116
+ showList: m.value.map((K) => ({
117
+ ...K,
118
+ key: K.key,
119
+ label: K.label,
120
+ isFixed: K.isFixed,
121
+ isLinked: K.isLinked,
122
+ labelLanguage: K?.labelLanguage || void 0
123
123
  }))
124
124
  };
125
- localStorage.setItem(v.value, JSON.stringify(g));
125
+ localStorage.setItem(M.value, JSON.stringify(g));
126
126
  } catch (g) {
127
127
  console.warn("保存搜索配置失败:", g);
128
128
  }
129
- }, D = $(() => {
130
- const g = m.value.filter((M) => !M.isFixed && !M.isLinked).length, Y = m.value.filter((M) => M.isFixed || M.isLinked).length;
131
- return g >= i.value - Y;
129
+ }, H = $(() => {
130
+ const g = m.value.filter((D) => !D.isFixed && !D.isLinked).length, K = m.value.filter((D) => D.isFixed || D.isLinked).length;
131
+ return g >= i.value - K;
132
132
  });
133
133
  ie(
134
134
  () => l.list,
135
135
  (g) => {
136
- let Y = JSON.stringify(m.value) !== JSON.stringify(g);
137
- if (!Y)
136
+ let K = JSON.stringify(m.value) !== JSON.stringify(g);
137
+ if (!K)
138
138
  return;
139
- const M = localStorage.getItem(v.value), Q = JSON.parse(M || "{}");
140
- if (Q && Q?.originalList && Array.isArray(Q.originalList))
141
- X(), L("confirm", m.value);
142
- else if (Y) {
143
- h = JSON.parse(JSON.stringify(g));
144
- const ue = g.filter((K) => K?.isFixed), we = g.filter((K) => K?.isLinked), ge = g.filter((K) => !K?.isFixed && !K?.isLinked), ae = i.value && i.value > 0 ? Math.max(0, i.value - ue.length - we.length) : ge.length, $e = ue.map((K) => S(K)), Ie = we.map((K) => S(K)), Me = ge.slice(0, ae).map((K) => S(K));
139
+ const D = localStorage.getItem(M.value), Z = JSON.parse(D || "{}");
140
+ if (Z && Z?.originalList && Array.isArray(Z.originalList))
141
+ q(), _("confirm", m.value);
142
+ else if (K) {
143
+ v = JSON.parse(JSON.stringify(g));
144
+ const ue = g.filter((J) => J?.isFixed), we = g.filter((J) => J?.isLinked), ge = g.filter((J) => !J?.isFixed && !J?.isLinked), ae = i.value && i.value > 0 ? Math.max(0, i.value - ue.length - we.length) : ge.length, $e = ue.map((J) => C(J)), Ie = we.map((J) => C(J)), Me = ge.slice(0, ae).map((J) => C(J));
145
145
  m.value = [...$e, ...Ie, ...Me];
146
- const De = ge.slice(ae).map((K) => ({
147
- ...S(K),
146
+ const De = ge.slice(ae).map((J) => ({
147
+ ...C(J),
148
148
  active: !1
149
149
  }));
150
- y.value = De, L("confirm", m.value);
150
+ y.value = De, _("confirm", m.value);
151
151
  }
152
152
  },
153
153
  { immediate: !0 }
154
154
  );
155
- const W = (g) => {
156
- const Y = m.value.findIndex((M) => M.key === g.key);
157
- Y !== -1 && (m.value.splice(Y, 1), y.value.push({ ...g, active: !1 }));
155
+ const z = (g) => {
156
+ const K = m.value.findIndex((D) => D.key === g.key);
157
+ K !== -1 && (m.value.splice(K, 1), y.value.push({ ...g, active: !1 }));
158
158
  }, se = (g) => {
159
- if (D.value) {
159
+ if (H.value) {
160
160
  Le.warning(`当前已经超过${d(i.value)}个可选数量,请先删除已显示条件`);
161
161
  return;
162
162
  }
163
- const Y = y.value.findIndex((M) => M.key === g.key);
164
- if (Y !== -1) {
165
- const [M] = y.value.splice(Y, 1);
166
- m.value.push({ ...M, active: !1 });
163
+ const K = y.value.findIndex((D) => D.key === g.key);
164
+ if (K !== -1) {
165
+ const [D] = y.value.splice(K, 1);
166
+ m.value.push({ ...D, active: !1 });
167
167
  }
168
168
  }, re = () => {
169
- V.value = !1;
169
+ W.value = !1;
170
170
  }, fe = () => {
171
- V.value = !0;
171
+ W.value = !0;
172
172
  }, be = () => {
173
- le(), L("confirm", m.value), re();
173
+ G(), _("confirm", m.value), re();
174
174
  }, pe = (g) => {
175
- const Y = y.value.findIndex((M) => M.key === g.key);
176
- Y !== -1 && (y.value[Y].active = !0);
175
+ const K = y.value.findIndex((D) => D.key === g.key);
176
+ K !== -1 && (y.value[K].active = !0);
177
177
  }, he = (g) => {
178
- const Y = y.value.findIndex((M) => M.key === g.key);
179
- Y !== -1 && (y.value[Y].active = !1);
178
+ const K = y.value.findIndex((D) => D.key === g.key);
179
+ K !== -1 && (y.value[K].active = !1);
180
180
  };
181
181
  return o({
182
182
  toOpenModal: fe
183
183
  }), ke(() => {
184
- }), (g, Y) => (n(), w("div", {
185
- class: J(k(b).b())
184
+ }), (g, K) => (n(), L("div", {
185
+ class: Q(w(h).b())
186
186
  }, [
187
- F(k(Ze), {
188
- visible: V.value,
189
- "onUpdate:visible": Y[1] || (Y[1] = (M) => V.value = M),
190
- width: B.value,
187
+ x(w(Ze), {
188
+ visible: W.value,
189
+ "onUpdate:visible": K[1] || (K[1] = (D) => W.value = D),
190
+ width: A.value,
191
191
  onCancel: re,
192
192
  onOk: be
193
193
  }, {
194
194
  title: u(() => [
195
195
  p("div", {
196
- class: J(k(b).e("title"))
197
- }, x(f.value), 3)
196
+ class: Q(w(h).e("title"))
197
+ }, k(f.value), 3)
198
198
  ]),
199
199
  footer: u(() => [
200
- F(k(et), { onClick: re }, {
200
+ x(w(et), { onClick: re }, {
201
201
  default: u(() => [
202
- O(x(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
202
+ O(k(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
203
203
  ]),
204
204
  _: 1
205
205
  }),
206
- F(k(et), {
206
+ x(w(et), {
207
207
  type: "primary",
208
208
  onClick: be
209
209
  }, {
210
210
  default: u(() => [
211
- O(x(g.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
211
+ O(k(g.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
212
212
  ]),
213
213
  _: 1
214
214
  })
215
215
  ]),
216
216
  default: u(() => [
217
217
  p("section", {
218
- class: J(k(b).e("show"))
218
+ class: Q(w(h).e("show"))
219
219
  }, [
220
220
  p("div", {
221
- class: J(k(b).e("show__title"))
221
+ class: Q(w(h).e("show__title"))
222
222
  }, [
223
223
  p("span", {
224
- class: J(k(b).e("title__tip"))
225
- }, x(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
226
- p("span", null, x(g.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + x(i.value) + x(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
224
+ class: Q(w(h).e("title__tip"))
225
+ }, k(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
226
+ p("span", null, k(g.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + k(i.value) + k(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
227
227
  ], 2),
228
228
  p("div", {
229
- class: J(k(b).e("show__tag"))
229
+ class: Q(w(h).e("show__tag"))
230
230
  }, [
231
- F(k(Ve), {
231
+ x(w(Ve), {
232
232
  modelValue: m.value,
233
- "onUpdate:modelValue": Y[0] || (Y[0] = (M) => m.value = M),
233
+ "onUpdate:modelValue": K[0] || (K[0] = (D) => m.value = D),
234
234
  "item-key": "key",
235
235
  tag: "div",
236
- disabled: H.value,
237
- move: C
236
+ disabled: F.value,
237
+ move: T
238
238
  }, {
239
- item: u(({ element: M }) => [
239
+ item: u(({ element: D }) => [
240
240
  p("div", {
241
- class: J([k(b).e("show__tag__item"), k(b).is("fixed", M.isFixed), k(b).is("linked", M.isLinked)])
241
+ class: Q([w(h).e("show__tag__item"), w(h).is("fixed", D.isFixed), w(h).is("linked", D.isLinked)])
242
242
  }, [
243
- O(x(M.label) + " ", 1),
244
- !M.isFixed && !M.isLinked && e.list.length > 1 ? (n(), R(k(uo), {
243
+ O(k(D.label) + " ", 1),
244
+ !D.isFixed && !D.isLinked && e.list.length > 1 ? (n(), V(w(uo), {
245
245
  key: 0,
246
- class: J(k(b).e("show__tag__item-close")),
247
- onClick: (Q) => W(M)
248
- }, null, 8, ["class", "onClick"])) : A("", !0)
246
+ class: Q(w(h).e("show__tag__item-close")),
247
+ onClick: (Z) => z(D)
248
+ }, null, 8, ["class", "onClick"])) : B("", !0)
249
249
  ], 2)
250
250
  ]),
251
251
  _: 1
@@ -253,34 +253,34 @@ const wo = "hb-", st = (e = "") => {
253
253
  ], 2)
254
254
  ], 2),
255
255
  p("section", {
256
- class: J(k(b).e("unshow"))
256
+ class: Q(w(h).e("unshow"))
257
257
  }, [
258
258
  p("div", {
259
- class: J(k(b).e("show__title"))
259
+ class: Q(w(h).e("show__title"))
260
260
  }, [
261
261
  p("span", {
262
- class: J(k(b).e("title__tip"))
263
- }, x(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
262
+ class: Q(w(h).e("title__tip"))
263
+ }, k(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
264
264
  ], 2),
265
265
  p("div", {
266
- class: J(k(b).e("unshow__tag"))
266
+ class: Q(w(h).e("unshow__tag"))
267
267
  }, [
268
- y.value.length > 0 ? (n(!0), w(G, { key: 0 }, me(y.value, (M) => (n(), w("div", {
269
- key: M.key,
270
- class: J([k(b).e("unshow__tag__item"), k(b).is("fixed", M.isFixed || ""), k(b).is("linked", M.isLinked || "")]),
271
- onMouseenter: (Q) => pe(M),
272
- onMouseleave: (Q) => he(M)
268
+ y.value.length > 0 ? (n(!0), L(X, { key: 0 }, me(y.value, (D) => (n(), L("div", {
269
+ key: D.key,
270
+ class: Q([w(h).e("unshow__tag__item"), w(h).is("fixed", D.isFixed || ""), w(h).is("linked", D.isLinked || "")]),
271
+ onMouseenter: (Z) => pe(D),
272
+ onMouseleave: (Z) => he(D)
273
273
  }, [
274
- O(x(M.label) + " ", 1),
275
- M.active ? (n(), w("aside", {
274
+ O(k(D.label) + " ", 1),
275
+ D.active ? (n(), L("aside", {
276
276
  key: 0,
277
- class: J(k(b).e("unshow__tag__item-add")),
278
- onClick: (Q) => se(M)
279
- }, x(g.$t("hbLibComp.hbFormItemFilterModal.add")), 11, So)) : A("", !0)
280
- ], 42, ko))), 128)) : (n(), w("div", {
277
+ class: Q(w(h).e("unshow__tag__item-add")),
278
+ onClick: (Z) => se(D)
279
+ }, k(g.$t("hbLibComp.hbFormItemFilterModal.add")), 11, So)) : B("", !0)
280
+ ], 42, ko))), 128)) : (n(), L("div", {
281
281
  key: 1,
282
- class: J(k(b).e("unshow__tag__empty"))
283
- }, x(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
282
+ class: Q(w(h).e("unshow__tag__empty"))
283
+ }, k(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
284
284
  ], 2)
285
285
  ], 2)
286
286
  ]),
@@ -288,23 +288,23 @@ const wo = "hb-", st = (e = "") => {
288
288
  }, 8, ["visible", "width"])
289
289
  ], 2));
290
290
  }
291
- }), oe = (e, o) => {
291
+ }), le = (e, o) => {
292
292
  const t = e.__vccOpts || e;
293
293
  for (const [a, d] of o)
294
294
  t[a] = d;
295
295
  return t;
296
- }, To = /* @__PURE__ */ oe(xo, [["__scopeId", "data-v-657502f3"]]);
297
- function Z(e) {
296
+ }, To = /* @__PURE__ */ le(xo, [["__scopeId", "data-v-657502f3"]]);
297
+ function ee(e) {
298
298
  const o = e;
299
299
  return o.install = (t) => {
300
300
  const a = e.name;
301
301
  t.component(a ?? "AnonymousComponent", e);
302
302
  }, o;
303
303
  }
304
- const Fo = Z(To), Ho = {
304
+ const Fo = ee(To), Ho = {
305
305
  key: 0,
306
306
  class: "form-footer"
307
- }, $o = { class: "scheme-fontWeight" }, Io = { class: "scheme-fontWeight" }, Mo = { class: "scheme-fontWeight" }, Do = { class: "scheme-fontWeight" }, Ao = /* @__PURE__ */ te({
307
+ }, $o = { class: "scheme-fontWeight" }, Io = { class: "scheme-fontWeight" }, Mo = { class: "scheme-fontWeight" }, Do = { class: "scheme-fontWeight" }, Ao = /* @__PURE__ */ oe({
308
308
  name: "HbLibListForm",
309
309
  __name: "HbListForm",
310
310
  props: {
@@ -337,52 +337,52 @@ const Fo = Z(To), Ho = {
337
337
  },
338
338
  emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
339
339
  setup(e, { expose: o, emit: t }) {
340
- const a = Ce("globalCompConfig", {}), d = t, s = Ce("HB_LIST_PAGE_CONTAINER"), c = $(() => l.searchList || []), r = st("form"), l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = E("show"), L = $(() => l.needFooter || a.HbLibListForm?.needFooter), b = $(() => [...l.items]), P = (D) => D !== void 0, I = (D) => typeof D == "function", V = (D) => P(D.condition) ? I(D.condition) ? D.condition() : D.condition : !0, B = $(() => [...l.items].map((D) => ({
341
- ...D,
342
- condition: V(D),
343
- label: D.label?.includes("多项搜索") ? "" : D.label
340
+ const a = Ce("globalCompConfig", {}), d = t, s = Ce("HB_LIST_PAGE_CONTAINER"), c = $(() => l.searchList || []), r = st("form"), l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = E("show"), _ = $(() => l.needFooter || a.HbLibListForm?.needFooter), h = $(() => [...l.items]), P = (H) => H !== void 0, I = (H) => typeof H == "function", W = (H) => P(H.condition) ? I(H.condition) ? H.condition() : H.condition : !0, A = $(() => [...l.items].map((H) => ({
341
+ ...H,
342
+ condition: W(H),
343
+ label: H.label?.includes("多项搜索") ? "" : H.label
344
344
  })));
345
- console.log(B.value);
346
- const h = $(() => l.saveKey), m = E(), y = () => {
345
+ console.log(A.value);
346
+ const v = $(() => l.saveKey), m = E(), y = () => {
347
347
  d("handleSearch");
348
- }, H = () => {
348
+ }, F = () => {
349
349
  d("handleReset");
350
- }, S = E(), C = () => {
351
- S.value && S.value.toOpenModal();
352
- }, v = (D) => {
353
- d("handleMenuClick", D);
354
- }, _ = (D) => {
355
- d("handleSfcmConfirm", D);
350
+ }, C = E(), T = () => {
351
+ C.value && C.value.toOpenModal();
352
+ }, M = (H) => {
353
+ d("handleMenuClick", H);
354
+ }, b = (H) => {
355
+ d("handleSfcmConfirm", H);
356
356
  };
357
357
  ie(
358
358
  () => l.isFormExpanded,
359
- (D) => {
360
- if (D) {
361
- console.log(D);
362
- const W = document.querySelector("#subpackage_container");
363
- W instanceof HTMLElement && (W.style.overflow = "hidden", setTimeout(() => {
364
- W.style.overflow = "auto";
359
+ (H) => {
360
+ if (H) {
361
+ console.log(H);
362
+ const z = document.querySelector("#subpackage_container");
363
+ z instanceof HTMLElement && (z.style.overflow = "hidden", setTimeout(() => {
364
+ z.style.overflow = "auto";
365
365
  }, 500));
366
366
  }
367
367
  }
368
368
  );
369
- const T = (D) => {
370
- const W = D;
371
- W.style.height = "", W.offsetHeight;
372
- }, N = (D) => {
373
- const W = D;
374
- W.style.height = "", W.style.overflow = "", xe(() => {
369
+ const S = (H) => {
370
+ const z = H;
371
+ z.style.height = "", z.offsetHeight;
372
+ }, N = (H) => {
373
+ const z = H;
374
+ z.style.height = "", z.style.overflow = "", xe(() => {
375
375
  s.calTableHeight && s.calTableHeight();
376
376
  });
377
- }, X = (D) => {
378
- const W = D, se = W.querySelector(".hb-lib-form--container");
377
+ }, q = (H) => {
378
+ const z = H, se = z.querySelector(".hb-lib-form--container");
379
379
  if (se) {
380
380
  const re = se.offsetHeight;
381
- W.style.height = re + "px", W.style.overflow = "hidden", W.offsetHeight, requestAnimationFrame(() => {
382
- W.style.height = "0";
381
+ z.style.height = re + "px", z.style.overflow = "hidden", z.offsetHeight, requestAnimationFrame(() => {
382
+ z.style.height = "0";
383
383
  });
384
384
  }
385
- }, le = () => {
385
+ }, G = () => {
386
386
  xe(() => {
387
387
  s.calTableHeight && s.calTableHeight();
388
388
  });
@@ -405,29 +405,29 @@ const Fo = Z(To), Ho = {
405
405
  Switch: ft,
406
406
  Button: et,
407
407
  Tooltip: We
408
- }), (D, W) => {
408
+ }), (H, z) => {
409
409
  const se = j("a-button"), re = j("a-tooltip"), fe = j("a-menu-item"), be = j("a-menu"), pe = j("a-dropdown"), he = j("HbLibFormItemFilterModal");
410
- return n(), w(G, null, [
411
- F(Jt, {
410
+ return n(), L(X, null, [
411
+ x(Jt, {
412
412
  name: "form-collapse",
413
- onEnter: T,
413
+ onEnter: S,
414
414
  onAfterEnter: N,
415
- onLeave: X,
416
- onAfterLeave: le
415
+ onLeave: q,
416
+ onAfterLeave: G
417
417
  }, {
418
418
  default: u(() => [
419
419
  _e(p("div", {
420
- class: J([k(r).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", L.value ? "isNeedFooterCss" : ""])
420
+ class: Q([w(r).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", _.value ? "isNeedFooterCss" : ""])
421
421
  }, [
422
- F(k(_t), ee(D.$attrs, {
422
+ x(w(_t), te(H.$attrs, {
423
423
  model: e.formData,
424
424
  ref_key: "formRef",
425
425
  ref: m,
426
426
  class: ["hb-lib-form--container", f.value == "show" ? "" : "hide"]
427
427
  }), {
428
428
  default: u(() => [
429
- (n(!0), w(G, null, me(B.value, (g, Y) => (n(), w(G, { key: Y }, [
430
- g.condition ? (n(), R(k(yt), ee({
429
+ (n(!0), L(X, null, me(A.value, (g, K) => (n(), L(X, { key: K }, [
430
+ g.condition ? (n(), V(w(yt), te({
431
431
  key: 0,
432
432
  ref_for: !0
433
433
  }, g, {
@@ -438,142 +438,142 @@ const Fo = Z(To), Ho = {
438
438
  }
439
439
  }), Pe({
440
440
  default: u(() => [
441
- g.type === "slot" ? q(D.$slots, g.key, {
441
+ g.type === "slot" ? Y(H.$slots, g.key, {
442
442
  key: 0,
443
443
  formData: e.formData,
444
444
  item: g
445
- }, void 0, !0) : A("", !0),
446
- g.type === "mixin" ? q(D.$slots, g.key, {
445
+ }, void 0, !0) : B("", !0),
446
+ g.type === "mixin" ? Y(H.$slots, g.key, {
447
447
  key: 1,
448
448
  formData: e.formData,
449
449
  item: g
450
- }, void 0, !0) : A("", !0),
451
- g.type === "input" ? (n(), R(k(gt), ee({
450
+ }, void 0, !0) : B("", !0),
451
+ g.type === "input" ? (n(), V(w(gt), te({
452
452
  key: 2,
453
453
  value: e.formData[g.key],
454
- "onUpdate:value": (M) => e.formData[g.key] = M
455
- }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : A("", !0),
456
- g.type === "select" ? (n(), R(k(tt), ee({
454
+ "onUpdate:value": (D) => e.formData[g.key] = D
455
+ }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
456
+ g.type === "select" ? (n(), V(w(tt), te({
457
457
  key: 3,
458
458
  value: e.formData[g.key],
459
- "onUpdate:value": (M) => e.formData[g.key] = M
459
+ "onUpdate:value": (D) => e.formData[g.key] = D
460
460
  }, { ref_for: !0 }, g.attrs), {
461
461
  default: u(() => [
462
- (n(!0), w(G, null, me(g.options, (M, Q) => (n(), R(k(ot), {
463
- key: Q,
464
- value: M.value
462
+ (n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(ot), {
463
+ key: Z,
464
+ value: D.value
465
465
  }, {
466
466
  default: u(() => [
467
- O(x(M.label), 1)
467
+ O(k(D.label), 1)
468
468
  ]),
469
469
  _: 2
470
470
  }, 1032, ["value"]))), 128))
471
471
  ]),
472
472
  _: 2
473
- }, 1040, ["value", "onUpdate:value"])) : A("", !0),
474
- g.type === "checkbox" ? (n(), R(k(vt), ee({
473
+ }, 1040, ["value", "onUpdate:value"])) : B("", !0),
474
+ g.type === "checkbox" ? (n(), V(w(vt), te({
475
475
  key: 4,
476
476
  value: e.formData[g.key],
477
- "onUpdate:value": (M) => e.formData[g.key] = M
477
+ "onUpdate:value": (D) => e.formData[g.key] = D
478
478
  }, { ref_for: !0 }, g.attrs), {
479
479
  default: u(() => [
480
- (n(!0), w(G, null, me(g.options, (M, Q) => (n(), R(k(je), {
481
- key: Q,
482
- value: M.value
480
+ (n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(je), {
481
+ key: Z,
482
+ value: D.value
483
483
  }, {
484
484
  default: u(() => [
485
- O(x(M.label), 1)
485
+ O(k(D.label), 1)
486
486
  ]),
487
487
  _: 2
488
488
  }, 1032, ["value"]))), 128))
489
489
  ]),
490
490
  _: 2
491
- }, 1040, ["value", "onUpdate:value"])) : A("", !0),
492
- g.type === "date-picker" ? (n(), R(k(ht), ee({
491
+ }, 1040, ["value", "onUpdate:value"])) : B("", !0),
492
+ g.type === "date-picker" ? (n(), V(w(ht), te({
493
493
  key: 5,
494
494
  value: e.formData[g.key],
495
- "onUpdate:value": (M) => e.formData[g.key] = M
496
- }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : A("", !0),
497
- g.type === "input-number" ? (n(), R(k(bt), ee({
495
+ "onUpdate:value": (D) => e.formData[g.key] = D
496
+ }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
497
+ g.type === "input-number" ? (n(), V(w(bt), te({
498
498
  key: 6,
499
499
  value: e.formData[g.key],
500
- "onUpdate:value": (M) => e.formData[g.key] = M
501
- }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : A("", !0),
502
- g.type === "radio" ? (n(), R(k(mt), ee({
500
+ "onUpdate:value": (D) => e.formData[g.key] = D
501
+ }, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
502
+ g.type === "radio" ? (n(), V(w(mt), te({
503
503
  key: 7,
504
504
  value: e.formData[g.key],
505
- "onUpdate:value": (M) => e.formData[g.key] = M
505
+ "onUpdate:value": (D) => e.formData[g.key] = D
506
506
  }, { ref_for: !0 }, g.attrs), {
507
507
  default: u(() => [
508
- (n(!0), w(G, null, me(g.options, (M, Q) => (n(), R(k(pt), {
509
- key: Q,
510
- value: M.value
508
+ (n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(pt), {
509
+ key: Z,
510
+ value: D.value
511
511
  }, {
512
512
  default: u(() => [
513
- O(x(M.label), 1)
513
+ O(k(D.label), 1)
514
514
  ]),
515
515
  _: 2
516
516
  }, 1032, ["value"]))), 128))
517
517
  ]),
518
518
  _: 2
519
- }, 1040, ["value", "onUpdate:value"])) : A("", !0),
520
- g.type === "switch" ? (n(), R(k(ft), ee({
519
+ }, 1040, ["value", "onUpdate:value"])) : B("", !0),
520
+ g.type === "switch" ? (n(), V(w(ft), te({
521
521
  key: 8,
522
522
  checked: e.formData[g.key],
523
- "onUpdate:checked": (M) => e.formData[g.key] = M
524
- }, { ref_for: !0 }, g.attrs), null, 16, ["checked", "onUpdate:checked"])) : A("", !0)
523
+ "onUpdate:checked": (D) => e.formData[g.key] = D
524
+ }, { ref_for: !0 }, g.attrs), null, 16, ["checked", "onUpdate:checked"])) : B("", !0)
525
525
  ]),
526
526
  _: 2
527
527
  }, [
528
528
  g.tooltip ? {
529
529
  name: "label",
530
530
  fn: u(() => [
531
- O(x(g.label) + " ", 1),
532
- F(k(We), {
531
+ O(k(g.label) + " ", 1),
532
+ x(w(We), {
533
533
  title: g.tooltip
534
534
  }, {
535
535
  default: u(() => [
536
- F(k(fo), { style: { "margin-left": "4px", color: "#1890ff" } })
536
+ x(w(fo), { style: { "margin-left": "4px", color: "#1890ff" } })
537
537
  ]),
538
538
  _: 1
539
539
  }, 8, ["title"])
540
540
  ]),
541
541
  key: "0"
542
542
  } : void 0
543
- ]), 1040, ["name", "class"])) : A("", !0)
543
+ ]), 1040, ["name", "class"])) : B("", !0)
544
544
  ], 64))), 128)),
545
- L.value ? A("", !0) : (n(), w("section", Ho, [
546
- F(se, {
545
+ _.value ? B("", !0) : (n(), L("section", Ho, [
546
+ x(se, {
547
547
  type: "primary",
548
548
  onClick: y,
549
549
  class: "hb_list_page_button"
550
550
  }, {
551
551
  icon: u(() => [
552
- F(k(qe))
552
+ x(w(qe))
553
553
  ]),
554
554
  default: u(() => [
555
- O(" " + x(D.$t("hbLibComp.hbListPageAct.query")), 1)
555
+ O(" " + k(H.$t("hbLibComp.hbListPageAct.query")), 1)
556
556
  ]),
557
557
  _: 1
558
558
  }),
559
- F(se, {
559
+ x(se, {
560
560
  type: "link",
561
- onClick: H
561
+ onClick: F
562
562
  }, {
563
563
  default: u(() => [
564
- O(x(D.$t("hbLibComp.hbListPageAct.reset")), 1)
564
+ O(k(H.$t("hbLibComp.hbListPageAct.reset")), 1)
565
565
  ]),
566
566
  _: 1
567
567
  }),
568
- e.needFilter ? (n(), R(re, {
568
+ e.needFilter ? (n(), V(re, {
569
569
  key: 0,
570
- title: D.$t("hbLibComp.hbListPageAct.selfDefine")
570
+ title: H.$t("hbLibComp.hbListPageAct.selfDefine")
571
571
  }, {
572
572
  default: u(() => [
573
573
  p("span", {
574
574
  class: "hb-lib-form-svg",
575
- onClick: C
576
- }, [...W[0] || (W[0] = [
575
+ onClick: T
576
+ }, [...z[0] || (z[0] = [
577
577
  p("svg", {
578
578
  t: "1757915025410",
579
579
  class: "icon",
@@ -593,29 +593,29 @@ const Fo = Z(To), Ho = {
593
593
  ])])
594
594
  ]),
595
595
  _: 1
596
- }, 8, ["title"])) : A("", !0),
597
- q(D.$slots, "formBtns", {}, () => [
598
- e.needSearchCase ? (n(), R(pe, { key: 0 }, {
596
+ }, 8, ["title"])) : B("", !0),
597
+ Y(H.$slots, "formBtns", {}, () => [
598
+ e.needSearchCase ? (n(), V(pe, { key: 0 }, {
599
599
  overlay: u(() => [
600
- F(be, { onClick: v }, {
600
+ x(be, { onClick: M }, {
601
601
  default: u(() => [
602
- (n(!0), w(G, null, me(c.value, (g) => (n(), R(fe, {
602
+ (n(!0), L(X, null, me(c.value, (g) => (n(), V(fe, {
603
603
  key: g.id
604
604
  }, {
605
605
  default: u(() => [
606
- O(x(g.title), 1)
606
+ O(k(g.title), 1)
607
607
  ]),
608
608
  _: 2
609
609
  }, 1024))), 128)),
610
- F(fe, { key: "add" }, {
610
+ x(fe, { key: "add" }, {
611
611
  default: u(() => [
612
- p("span", $o, x(D.$t("hbLibComp.hbLibListForm.addScheme")), 1)
612
+ p("span", $o, k(H.$t("hbLibComp.hbLibListForm.addScheme")), 1)
613
613
  ]),
614
614
  _: 1
615
615
  }),
616
- F(fe, { key: "edit" }, {
616
+ x(fe, { key: "edit" }, {
617
617
  default: u(() => [
618
- p("span", Io, x(D.$t("hbLibComp.hbLibListForm.editScheme")), 1)
618
+ p("span", Io, k(H.$t("hbLibComp.hbLibListForm.editScheme")), 1)
619
619
  ]),
620
620
  _: 1
621
621
  })
@@ -624,10 +624,10 @@ const Fo = Z(To), Ho = {
624
624
  })
625
625
  ]),
626
626
  default: u(() => [
627
- F(re, {
628
- title: D.$t("hbLibComp.hbLibListForm.queryCase")
627
+ x(re, {
628
+ title: H.$t("hbLibComp.hbLibListForm.queryCase")
629
629
  }, {
630
- default: u(() => [...W[1] || (W[1] = [
630
+ default: u(() => [...z[1] || (z[1] = [
631
631
  p("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
632
632
  p("svg", {
633
633
  t: "1765936014161",
@@ -659,60 +659,60 @@ const Fo = Z(To), Ho = {
659
659
  }, 8, ["title"])
660
660
  ]),
661
661
  _: 1
662
- })) : A("", !0)
662
+ })) : B("", !0)
663
663
  ], !0)
664
664
  ]))
665
665
  ]),
666
666
  _: 3
667
667
  }, 16, ["model", "class"]),
668
- L.value ? (n(), w("div", {
668
+ _.value ? (n(), L("div", {
669
669
  key: 0,
670
- class: J([k(r).e("footer"), "form-footer"])
670
+ class: Q([w(r).e("footer"), "form-footer"])
671
671
  }, [
672
672
  p("div", {
673
- class: J(k(r).e("footer__left"))
673
+ class: Q(w(r).e("footer__left"))
674
674
  }, [
675
- q(D.$slots, "form-footer-left", {}, void 0, !0)
675
+ Y(H.$slots, "form-footer-left", {}, void 0, !0)
676
676
  ], 2),
677
677
  p("div", {
678
- class: J(k(r).e("footer__right"))
678
+ class: Q(w(r).e("footer__right"))
679
679
  }, [
680
- f.value == "show" ? q(D.$slots, "form-footer-right", {
680
+ f.value == "show" ? Y(H.$slots, "form-footer-right", {
681
681
  key: 0,
682
682
  formRef: m.value
683
683
  }, () => [
684
- F(se, {
684
+ x(se, {
685
685
  type: "primary",
686
686
  onClick: y,
687
687
  class: "hb_list_page_button"
688
688
  }, {
689
689
  icon: u(() => [
690
- F(k(qe))
690
+ x(w(qe))
691
691
  ]),
692
692
  default: u(() => [
693
- O(" " + x(D.$t("hbLibComp.hbListPageAct.query")), 1)
693
+ O(" " + k(H.$t("hbLibComp.hbListPageAct.query")), 1)
694
694
  ]),
695
695
  _: 1
696
696
  }),
697
- F(se, {
697
+ x(se, {
698
698
  type: "link",
699
- onClick: H,
699
+ onClick: F,
700
700
  class: "hb_list_page_button"
701
701
  }, {
702
702
  default: u(() => [
703
- O(x(D.$t("hbLibComp.hbListPageAct.reset")), 1)
703
+ O(k(H.$t("hbLibComp.hbListPageAct.reset")), 1)
704
704
  ]),
705
705
  _: 1
706
706
  }),
707
- e.needFilter ? (n(), R(re, {
707
+ e.needFilter ? (n(), V(re, {
708
708
  key: 0,
709
- title: D.$t("hbLibComp.hbListPageAct.selfDefine")
709
+ title: H.$t("hbLibComp.hbListPageAct.selfDefine")
710
710
  }, {
711
711
  default: u(() => [
712
712
  p("span", {
713
713
  class: "hb-lib-form-svg",
714
- onClick: C
715
- }, [...W[2] || (W[2] = [
714
+ onClick: T
715
+ }, [...z[2] || (z[2] = [
716
716
  p("svg", {
717
717
  t: "1757915025410",
718
718
  class: "icon",
@@ -732,29 +732,29 @@ const Fo = Z(To), Ho = {
732
732
  ])])
733
733
  ]),
734
734
  _: 1
735
- }, 8, ["title"])) : A("", !0),
736
- q(D.$slots, "formBtns", {}, () => [
737
- e.needSearchCase ? (n(), R(pe, { key: 0 }, {
735
+ }, 8, ["title"])) : B("", !0),
736
+ Y(H.$slots, "formBtns", {}, () => [
737
+ e.needSearchCase ? (n(), V(pe, { key: 0 }, {
738
738
  overlay: u(() => [
739
- F(be, { onClick: v }, {
739
+ x(be, { onClick: M }, {
740
740
  default: u(() => [
741
- (n(!0), w(G, null, me(c.value, (g) => (n(), R(fe, {
741
+ (n(!0), L(X, null, me(c.value, (g) => (n(), V(fe, {
742
742
  key: g.id
743
743
  }, {
744
744
  default: u(() => [
745
- O(x(g.title), 1)
745
+ O(k(g.title), 1)
746
746
  ]),
747
747
  _: 2
748
748
  }, 1024))), 128)),
749
- F(fe, { key: "add" }, {
749
+ x(fe, { key: "add" }, {
750
750
  default: u(() => [
751
- p("span", Mo, x(D.$t("hbLibComp.hbLibListForm.addScheme")), 1)
751
+ p("span", Mo, k(H.$t("hbLibComp.hbLibListForm.addScheme")), 1)
752
752
  ]),
753
753
  _: 1
754
754
  }),
755
- F(fe, { key: "edit" }, {
755
+ x(fe, { key: "edit" }, {
756
756
  default: u(() => [
757
- p("span", Do, x(D.$t("hbLibComp.hbLibListForm.editScheme")), 1)
757
+ p("span", Do, k(H.$t("hbLibComp.hbLibListForm.editScheme")), 1)
758
758
  ]),
759
759
  _: 1
760
760
  })
@@ -763,10 +763,10 @@ const Fo = Z(To), Ho = {
763
763
  })
764
764
  ]),
765
765
  default: u(() => [
766
- F(re, {
767
- title: D.$t("hbLibComp.hbLibListForm.queryCase")
766
+ x(re, {
767
+ title: H.$t("hbLibComp.hbLibListForm.queryCase")
768
768
  }, {
769
- default: u(() => [...W[3] || (W[3] = [
769
+ default: u(() => [...z[3] || (z[3] = [
770
770
  p("span", {
771
771
  class: "hb-lib-form-svg",
772
772
  style: { width: "18px", height: "18px", cursor: "pointer" }
@@ -801,29 +801,29 @@ const Fo = Z(To), Ho = {
801
801
  }, 8, ["title"])
802
802
  ]),
803
803
  _: 1
804
- })) : A("", !0)
804
+ })) : B("", !0)
805
805
  ], !0)
806
- ], !0) : A("", !0)
806
+ ], !0) : B("", !0)
807
807
  ], 2)
808
- ], 2)) : A("", !0)
808
+ ], 2)) : B("", !0)
809
809
  ], 2), [
810
810
  [Xt, e.isFormExpanded]
811
811
  ])
812
812
  ]),
813
813
  _: 3
814
814
  }),
815
- F(he, {
815
+ x(he, {
816
816
  showNumber: i.value,
817
- list: b.value,
817
+ list: h.value,
818
818
  ref_key: "HbSfCmRef",
819
- ref: S,
820
- onConfirm: _,
821
- saveKey: h.value
819
+ ref: C,
820
+ onConfirm: b,
821
+ saveKey: v.value
822
822
  }, null, 8, ["showNumber", "list", "saveKey"])
823
823
  ], 64);
824
824
  };
825
825
  }
826
- }), Bo = /* @__PURE__ */ oe(Ao, [["__scopeId", "data-v-f513ff59"]]), Oo = Z(Bo), Eo = { class: "hb-lib-list-page-act-box" }, Po = { class: "hb-lib-list-page-breadcrumb" }, No = { class: "hb-lib-list-page-act" }, Uo = {
826
+ }), Bo = /* @__PURE__ */ le(Ao, [["__scopeId", "data-v-f513ff59"]]), Oo = ee(Bo), Eo = { class: "hb-lib-list-page-act-box" }, Po = { class: "hb-lib-list-page-breadcrumb" }, No = { class: "hb-lib-list-page-act" }, Uo = {
827
827
  key: 0,
828
828
  t: "1757915338760",
829
829
  class: "icon",
@@ -843,7 +843,7 @@ const Fo = Z(To), Ho = {
843
843
  "p-id": "23904",
844
844
  width: "200",
845
845
  height: "200"
846
- }, Ro = /* @__PURE__ */ te({
846
+ }, Ro = /* @__PURE__ */ oe({
847
847
  name: "HbLibListPageAct",
848
848
  __name: "HbListPageAct",
849
849
  props: {
@@ -860,17 +860,17 @@ const Fo = Z(To), Ho = {
860
860
  const f = /* @__PURE__ */ new Map();
861
861
  setTimeout(l ? () => {
862
862
  if (i?.length)
863
- for (let L = 0; L < i.length; L++) {
864
- const b = document.querySelector(i[L]);
865
- b && (f.set(i[L], b.style.display), b.style.display = "none");
863
+ for (let _ = 0; _ < i.length; _++) {
864
+ const h = document.querySelector(i[_]);
865
+ h && (f.set(i[_], h.style.display), h.style.display = "none");
866
866
  }
867
867
  } : () => {
868
868
  if (i?.length)
869
- for (let L = 0; L < i.length; L++) {
870
- const b = document.querySelector(i[L]);
871
- if (b) {
872
- const P = f.get(i[L]);
873
- b.style.display = P || "", f.delete(i[L]);
869
+ for (let _ = 0; _ < i.length; _++) {
870
+ const h = document.querySelector(i[_]);
871
+ if (h) {
872
+ const P = f.get(i[_]);
873
+ h.style.display = P || "", f.delete(i[_]);
874
874
  }
875
875
  }
876
876
  }, 0);
@@ -880,8 +880,8 @@ const Fo = Z(To), Ho = {
880
880
  const l = it();
881
881
  let i = localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", f = l?.path;
882
882
  if (i !== "[]") {
883
- let L = JSON.parse(i).find((b) => b.value === f);
884
- L && (s.value = L.label.replace(/-/g, " / "));
883
+ let _ = JSON.parse(i).find((h) => h.value === f);
884
+ _ && (s.value = _.label.replace(/-/g, " / "));
885
885
  }
886
886
  };
887
887
  ke(() => {
@@ -896,20 +896,20 @@ const Fo = Z(To), Ho = {
896
896
  window.removeEventListener("keydown", r);
897
897
  }), (l, i) => {
898
898
  const f = j("a-tooltip");
899
- return n(), w("section", Eo, [
900
- p("aside", Po, x(s.value), 1),
899
+ return n(), L("section", Eo, [
900
+ p("aside", Po, k(s.value), 1),
901
901
  p("aside", No, [
902
- F(f, {
903
- title: k(a) ? `${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,
902
+ x(f, {
903
+ title: w(a) ? `${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,
904
904
  placement: "leftTop"
905
905
  }, {
906
906
  default: u(() => [
907
907
  p("span", {
908
908
  class: "hb-lib-list-page-act-svg",
909
909
  onClick: i[0] || (i[0] = //@ts-ignore
910
- (...L) => k(d) && k(d)(...L))
910
+ (..._) => w(d) && w(d)(..._))
911
911
  }, [
912
- k(a) ? (n(), w("svg", zo, [...i[2] || (i[2] = [
912
+ w(a) ? (n(), L("svg", zo, [...i[2] || (i[2] = [
913
913
  p("path", {
914
914
  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",
915
915
  fill: "#ff5000",
@@ -925,7 +925,7 @@ const Fo = Z(To), Ho = {
925
925
  fill: "#ff5000",
926
926
  "p-id": "23907"
927
927
  }, null, -1)
928
- ])])) : (n(), w("svg", Uo, [...i[1] || (i[1] = [
928
+ ])])) : (n(), L("svg", Uo, [...i[1] || (i[1] = [
929
929
  p("path", {
930
930
  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",
931
931
  fill: "#ff5000",
@@ -936,12 +936,12 @@ const Fo = Z(To), Ho = {
936
936
  ]),
937
937
  _: 1
938
938
  }, 8, ["title"]),
939
- q(l.$slots, "listAct", {}, void 0, !0)
939
+ Y(l.$slots, "listAct", {}, void 0, !0)
940
940
  ])
941
941
  ]);
942
942
  };
943
943
  }
944
- }), Vo = /* @__PURE__ */ oe(Ro, [["__scopeId", "data-v-c7cd0710"]]), Wo = Z(Vo), jo = { class: "hb-lib-list-btns-box" }, qo = { class: "hb-lib-list-btns-left" }, Yo = { class: "hb-lib-list-btns-right" }, Ko = /* @__PURE__ */ te({
944
+ }), Vo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-c7cd0710"]]), Wo = ee(Vo), jo = { class: "hb-lib-list-btns-box" }, qo = { class: "hb-lib-list-btns-left" }, Yo = { class: "hb-lib-list-btns-right" }, Ko = /* @__PURE__ */ oe({
945
945
  name: "HbLibListBtnsAct",
946
946
  __name: "HbListBtns",
947
947
  props: {
@@ -962,12 +962,12 @@ const Fo = Z(To), Ho = {
962
962
  window.removeEventListener("keydown", c);
963
963
  }), (r, l) => {
964
964
  const i = j("a-tooltip");
965
- return n(), w("section", jo, [
965
+ return n(), L("section", jo, [
966
966
  p("aside", qo, [
967
- q(r.$slots, "btnsLeft", {}, void 0, !0)
967
+ Y(r.$slots, "btnsLeft", {}, void 0, !0)
968
968
  ]),
969
969
  p("aside", Yo, [
970
- e.needReload ? (n(), R(i, {
970
+ e.needReload ? (n(), V(i, {
971
971
  key: 0,
972
972
  title: r.$t("hbLibComp.hbListBtnsAct.reload")
973
973
  }, {
@@ -995,8 +995,8 @@ const Fo = Z(To), Ho = {
995
995
  ])])
996
996
  ]),
997
997
  _: 1
998
- }, 8, ["title"])) : A("", !0),
999
- e.needOpenOrClose ? (n(), R(i, {
998
+ }, 8, ["title"])) : B("", !0),
999
+ e.needOpenOrClose ? (n(), V(i, {
1000
1000
  key: 1,
1001
1001
  title: a.value ? `${r.$t("hbLibComp.hbListBtnsAct.close")}` : `${r.$t("hbLibComp.hbListBtnsAct.open")}`
1002
1002
  }, {
@@ -1005,43 +1005,43 @@ const Fo = Z(To), Ho = {
1005
1005
  class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
1006
1006
  onClick: d
1007
1007
  }, [
1008
- a.value ? (n(), R(k(po), {
1008
+ a.value ? (n(), V(w(po), {
1009
1009
  key: 0,
1010
1010
  style: { "font-size": "21px", color: "#ff5000" }
1011
- })) : (n(), R(k(mo), {
1011
+ })) : (n(), V(w(mo), {
1012
1012
  key: 1,
1013
1013
  style: { "font-size": "21px", color: "#ff5000" }
1014
1014
  }))
1015
1015
  ])
1016
1016
  ]),
1017
1017
  _: 1
1018
- }, 8, ["title"])) : A("", !0),
1019
- q(r.$slots, "btnsRight", {}, void 0, !0)
1018
+ }, 8, ["title"])) : B("", !0),
1019
+ Y(r.$slots, "btnsRight", {}, void 0, !0)
1020
1020
  ])
1021
1021
  ]);
1022
1022
  };
1023
1023
  }
1024
- }), Go = /* @__PURE__ */ oe(Ko, [["__scopeId", "data-v-40c1a746"]]), Jo = Z(Go), Xo = (e = {}) => {
1024
+ }), Go = /* @__PURE__ */ le(Ko, [["__scopeId", "data-v-40c1a746"]]), Jo = ee(Go), Xo = (e = {}) => {
1025
1025
  const { formRef: o, offsetBottom: t = 50, minHeight: a = 300, timeOut: d = 100 } = e, s = E(0);
1026
1026
  let c = null, r = null, l = null, i = null, f = null;
1027
- const L = () => {
1027
+ const _ = () => {
1028
1028
  f && clearTimeout(f), f = setTimeout(() => {
1029
1029
  requestAnimationFrame(() => {
1030
1030
  xe(() => {
1031
1031
  const m = document.querySelector(".ant-table"), y = document.querySelector(".ant-pagination");
1032
1032
  if (m) {
1033
- const H = Math.floor(m.getBoundingClientRect().top), S = window.innerHeight, v = (y ? y.offsetHeight + 20 : 40) + t;
1034
- let _ = S - H - v;
1035
- _ < a && (_ = a), s.value = _;
1033
+ const F = Math.floor(m.getBoundingClientRect().top), C = window.innerHeight, M = (y ? y.offsetHeight + 20 : 40) + t;
1034
+ let b = C - F - M;
1035
+ b < a && (b = a), s.value = b;
1036
1036
  }
1037
1037
  });
1038
1038
  });
1039
1039
  }, 100);
1040
- }, b = () => {
1040
+ }, h = () => {
1041
1041
  const m = document.querySelector(".ant-pagination");
1042
1042
  if (m) {
1043
1043
  const y = new MutationObserver(() => {
1044
- L();
1044
+ _();
1045
1045
  });
1046
1046
  return y.observe(m, {
1047
1047
  childList: !0,
@@ -1054,15 +1054,15 @@ const Fo = Z(To), Ho = {
1054
1054
  }, P = () => {
1055
1055
  const m = document.querySelector(".hb-lib-list-page-form-box");
1056
1056
  m && (c = new ResizeObserver(() => {
1057
- document.querySelectorAll(".ant-tooltip").forEach((H) => {
1058
- H.style.display = "none";
1059
- }), L();
1057
+ document.querySelectorAll(".ant-tooltip").forEach((F) => {
1058
+ F.style.display = "none";
1059
+ }), _();
1060
1060
  }), c.observe(m));
1061
1061
  }, I = () => {
1062
1062
  const m = document.querySelector(".hb-lib-list-page-form-box");
1063
1063
  m && (l = new MutationObserver(() => {
1064
1064
  setTimeout(() => {
1065
- L();
1065
+ _();
1066
1066
  }, d);
1067
1067
  }), l.observe(m, {
1068
1068
  childList: !0,
@@ -1070,34 +1070,34 @@ const Fo = Z(To), Ho = {
1070
1070
  attributes: !0,
1071
1071
  attributeFilter: ["style", "class"]
1072
1072
  }));
1073
- }, V = () => {
1073
+ }, W = () => {
1074
1074
  i && clearTimeout(i), i = setTimeout(() => {
1075
- L();
1075
+ _();
1076
1076
  }, d);
1077
- }, B = () => {
1078
- window.addEventListener("resize", V), xe(() => {
1079
- P(), I(), r = b();
1077
+ }, A = () => {
1078
+ window.addEventListener("resize", W), xe(() => {
1079
+ P(), I(), r = h();
1080
1080
  });
1081
- }, h = () => {
1082
- window.removeEventListener("resize", V), c && c.disconnect(), l && l.disconnect(), r && r.disconnect(), i && clearTimeout(i), f && clearTimeout(f);
1081
+ }, v = () => {
1082
+ window.removeEventListener("resize", W), c && c.disconnect(), l && l.disconnect(), r && r.disconnect(), i && clearTimeout(i), f && clearTimeout(f);
1083
1083
  };
1084
1084
  return o && ie(
1085
1085
  () => o,
1086
1086
  () => {
1087
1087
  setTimeout(() => {
1088
- L();
1088
+ _();
1089
1089
  }, 200);
1090
1090
  },
1091
1091
  { deep: !0 }
1092
1092
  ), ke(() => {
1093
- L(), B();
1093
+ _(), A();
1094
1094
  }), Be(() => {
1095
- h();
1095
+ v();
1096
1096
  }), {
1097
1097
  tableHeight: s,
1098
- calTableHeight: L
1098
+ calTableHeight: _
1099
1099
  };
1100
- }, Qo = /* @__PURE__ */ te({
1100
+ }, Qo = /* @__PURE__ */ oe({
1101
1101
  name: "HbLibListPageContainer",
1102
1102
  __name: "HbListPageContainer",
1103
1103
  props: {
@@ -1112,38 +1112,38 @@ const Fo = Z(To), Ho = {
1112
1112
  setup(e) {
1113
1113
  const o = Ce("globalCompConfig", {}), { isFullscreen: t } = Rt(document.body), a = e, d = Qt("PageContainerRef"), s = $(() => a.offsetHeight || o.HbLibListPageContainer?.offsetHeight || 110), c = $(() => a.offsetBottom || o.HbLibListPageContainer?.offsetBottom || 20), r = $(() => a.minHeight || o.HbLibListPageContainer?.minHeight || 300), l = $(() => a.timeOut || o.HbLibListPageContainer?.timeOut || 100), i = $(() => a.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
1114
1114
  console.log(a.isUnFixTbHeight);
1115
- const { calTableHeight: f, tableHeight: L } = Xo({
1115
+ const { calTableHeight: f, tableHeight: _ } = Xo({
1116
1116
  offsetBottom: c.value,
1117
1117
  // 底部预留空间
1118
1118
  minHeight: r.value,
1119
1119
  // table最小高度 请勿随便修改!!
1120
1120
  timeOut: l.value
1121
- }), b = $(() => L.value);
1121
+ }), h = $(() => _.value);
1122
1122
  return Bt("HB_LIST_PAGE_CONTAINER", {
1123
1123
  PageContainerRef: d,
1124
1124
  // 通过函数访问,
1125
- tableHeight: L,
1125
+ tableHeight: _,
1126
1126
  calTableHeight: f
1127
- }), (P, I) => (n(), w("section", {
1127
+ }), (P, I) => (n(), L("section", {
1128
1128
  class: "hb-lib-list-page-container",
1129
1129
  ref_key: "PageContainerRef",
1130
1130
  ref: d
1131
1131
  }, [
1132
- q(P.$slots, "header"),
1132
+ Y(P.$slots, "header"),
1133
1133
  p("section", {
1134
1134
  class: "list-page-box",
1135
1135
  style: ve(
1136
1136
  i.value ? null : {
1137
- "--hb-list-table-height": k(t) ? b.value - s.value + "px" : b.value - c.value + "px",
1138
- "--hb-list-ttable-height": e.tableData.length ? "" : k(t) ? b.value - s.value + "px" : b.value - c.value + "px"
1137
+ "--hb-list-table-height": w(t) ? h.value - s.value + "px" : h.value - c.value + "px",
1138
+ "--hb-list-ttable-height": e.tableData.length ? "" : w(t) ? h.value - s.value + "px" : h.value - c.value + "px"
1139
1139
  }
1140
1140
  )
1141
1141
  }, [
1142
- q(P.$slots, "default")
1142
+ Y(P.$slots, "default")
1143
1143
  ], 4)
1144
1144
  ], 512));
1145
1145
  }
1146
- }), Zo = Z(Qo), el = { style: { "font-weight": "500" } }, tl = {
1146
+ }), Zo = ee(Qo), el = { style: { "font-weight": "500" } }, tl = {
1147
1147
  key: 0,
1148
1148
  class: "hb-lib-search-tag__description"
1149
1149
  }, ol = { class: "hb-lib-selector-dropdown" }, ll = { class: "hb-lib-selector-search" }, al = { class: "hb-lib-selector-list" }, nl = ["onClick"], il = { class: "hb-lib-option-content" }, sl = { class: "hb-lib-option-label" }, rl = {
@@ -1155,7 +1155,7 @@ const Fo = Z(To), Ho = {
1155
1155
  }, dl = { class: "hb-lib-footer-buttons" }, ul = {
1156
1156
  key: 2,
1157
1157
  class: "hb-lib-selector-footer"
1158
- }, fl = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */ te({
1158
+ }, fl = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */ oe({
1159
1159
  name: "HbLibListMultiSelect",
1160
1160
  __name: "HbListMultiSelect",
1161
1161
  props: /* @__PURE__ */ Qe({
@@ -1178,67 +1178,67 @@ const Fo = Z(To), Ho = {
1178
1178
  setup(e, { emit: o }) {
1179
1179
  const t = e, a = o, d = Ot(e, "value"), s = E(!1), c = E(""), r = E([]), l = E(), i = $(() => {
1180
1180
  if (t.remoteSearch || !c.value) return t.options;
1181
- const S = c.value.toLowerCase();
1182
- return t.options.filter((C) => C.label.toLowerCase().includes(S) || C.description?.toLowerCase().includes(S));
1183
- }), f = $(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), L = $(() => i.value.length === 0 ? !1 : i.value.every((S) => r.value.includes(S.value))), b = $(() => {
1181
+ const C = c.value.toLowerCase();
1182
+ return t.options.filter((T) => T.label.toLowerCase().includes(C) || T.description?.toLowerCase().includes(C));
1183
+ }), f = $(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), _ = $(() => i.value.length === 0 ? !1 : i.value.every((C) => r.value.includes(C.value))), h = $(() => {
1184
1184
  if (i.value.length === 0) return !1;
1185
- const S = i.value.filter((C) => r.value.includes(C.value)).length;
1186
- return S > 0 && S < i.value.length;
1185
+ const C = i.value.filter((T) => r.value.includes(T.value)).length;
1186
+ return C > 0 && C < i.value.length;
1187
1187
  });
1188
1188
  ie(
1189
1189
  () => d.value,
1190
- (S) => {
1191
- S ? r.value = Array.isArray(S) ? [...S] : [S] : r.value = [];
1190
+ (C) => {
1191
+ C ? r.value = Array.isArray(C) ? [...C] : [C] : r.value = [];
1192
1192
  },
1193
1193
  { immediate: !0 }
1194
1194
  ), ie(
1195
1195
  () => t.searchValue,
1196
- (S) => {
1197
- t.remoteSearch && S !== void 0 && (c.value = S);
1196
+ (C) => {
1197
+ t.remoteSearch && C !== void 0 && (c.value = C);
1198
1198
  },
1199
1199
  { immediate: !0 }
1200
1200
  );
1201
- const P = (S) => {
1202
- S && (s.value = S, I.value = [...r.value], c.value = "", setTimeout(() => {
1201
+ const P = (C) => {
1202
+ C && (s.value = C, I.value = [...r.value], c.value = "", setTimeout(() => {
1203
1203
  if (l.value) {
1204
- const C = l.value.input || l.value.$el?.querySelector("input");
1205
- C && C.focus();
1204
+ const T = l.value.input || l.value.$el?.querySelector("input");
1205
+ T && T.focus();
1206
1206
  }
1207
1207
  }, 100));
1208
- }, I = E([]), V = () => {
1208
+ }, I = E([]), W = () => {
1209
1209
  r.value = [...I.value], s.value = !1, a("cancel");
1210
- }, B = E([]), h = () => {
1211
- const S = t.multiple ? r.value : r.value[0] || "", C = t.options.filter((v) => r.value.includes(v.value));
1212
- B.value = C, console.log(S, C), I.value = [...r.value], d.value = S, a("update:value", S), a("change", S, C), a("confirm", S, C), s.value = !1;
1213
- }, m = vo((S) => {
1214
- const C = S !== void 0 ? S : c.value;
1215
- t.remoteSearch && (a("search", C), a("update:searchValue", C));
1216
- }, 300), y = (S) => {
1210
+ }, A = E([]), v = () => {
1211
+ const C = t.multiple ? r.value : r.value[0] || "", T = t.options.filter((M) => r.value.includes(M.value));
1212
+ A.value = T, console.log(C, T), I.value = [...r.value], d.value = C, a("update:value", C), a("change", C, T), a("confirm", C, T), s.value = !1;
1213
+ }, m = vo((C) => {
1214
+ const T = C !== void 0 ? C : c.value;
1215
+ t.remoteSearch && (a("search", T), a("update:searchValue", T));
1216
+ }, 300), y = (C) => {
1217
1217
  if (t.multiple) {
1218
- const C = new Set(r.value);
1219
- C.has(S.value) ? C.delete(S.value) : C.add(S.value), r.value = Array.from(C);
1218
+ const T = new Set(r.value);
1219
+ T.has(C.value) ? T.delete(C.value) : T.add(C.value), r.value = Array.from(T);
1220
1220
  } else
1221
- r.value = [S.value], h();
1222
- }, H = (S) => {
1223
- if (S.target.checked) {
1224
- const v = new Set(r.value);
1225
- i.value.forEach((_) => {
1226
- v.add(_.value);
1227
- }), r.value = Array.from(v);
1221
+ r.value = [C.value], v();
1222
+ }, F = (C) => {
1223
+ if (C.target.checked) {
1224
+ const M = new Set(r.value);
1225
+ i.value.forEach((b) => {
1226
+ M.add(b.value);
1227
+ }), r.value = Array.from(M);
1228
1228
  } else {
1229
- const v = new Set(i.value.map((_) => _.value));
1230
- r.value = r.value.filter((_) => !v.has(_));
1229
+ const M = new Set(i.value.map((b) => b.value));
1230
+ r.value = r.value.filter((b) => !M.has(b));
1231
1231
  }
1232
1232
  };
1233
- return (S, C) => {
1234
- const v = j("a-tag"), _ = j("a-input"), T = j("a-checkbox"), N = j("a-radio"), X = j("a-button"), le = j("a-select");
1235
- return n(), w("div", ee({
1233
+ return (C, T) => {
1234
+ const M = j("a-tag"), b = j("a-input"), S = j("a-checkbox"), N = j("a-radio"), q = j("a-button"), G = j("a-select");
1235
+ return n(), L("div", te({
1236
1236
  class: "hb-lib-selector-wrapper",
1237
1237
  style: { "--prefix-width": f.value }
1238
- }, S.$attrs), [
1239
- F(le, {
1238
+ }, C.$attrs), [
1239
+ x(G, {
1240
1240
  value: d.value,
1241
- "onUpdate:value": C[5] || (C[5] = (D) => d.value = D),
1241
+ "onUpdate:value": T[5] || (T[5] = (H) => d.value = H),
1242
1242
  mode: e.multiple ? "multiple" : void 0,
1243
1243
  placeholder: e.placeholder,
1244
1244
  "show-search": !0,
@@ -1248,109 +1248,109 @@ const Fo = Z(To), Ho = {
1248
1248
  maxTagCount: e.maxTagCount,
1249
1249
  options: i.value,
1250
1250
  onDropdownVisibleChange: P,
1251
- onSearch: k(m),
1251
+ onSearch: w(m),
1252
1252
  "max-tag-text-length": e.tagTextLength,
1253
- class: J({ "has-prefix": e.prefix }),
1253
+ class: Q({ "has-prefix": e.prefix }),
1254
1254
  "data-prefix": e.prefix,
1255
1255
  style: { width: "100%" }
1256
1256
  }, {
1257
- tagRender: u(({ value: D, label: W, closable: se, option: re }) => [
1258
- F(v, {
1257
+ tagRender: u(({ value: H, label: z, closable: se, option: re }) => [
1258
+ x(M, {
1259
1259
  class: "hb-lib-search-tag",
1260
- onClick: C[0] || (C[0] = () => P(!0))
1260
+ onClick: T[0] || (T[0] = () => P(!0))
1261
1261
  }, {
1262
1262
  default: u(() => [
1263
- p("span", el, x(W), 1),
1264
- re?.description ? (n(), w("span", tl, " (" + x(re.description) + ") ", 1)) : A("", !0)
1263
+ p("span", el, k(z), 1),
1264
+ re?.description ? (n(), L("span", tl, " (" + k(re.description) + ") ", 1)) : B("", !0)
1265
1265
  ]),
1266
1266
  _: 2
1267
1267
  }, 1024)
1268
1268
  ]),
1269
- dropdownRender: u(({ menuNode: D }) => [
1269
+ dropdownRender: u(({ menuNode: H }) => [
1270
1270
  p("div", ol, [
1271
1271
  p("div", ll, [
1272
- F(_, {
1272
+ x(b, {
1273
1273
  ref_key: "searchInputRef",
1274
1274
  ref: l,
1275
1275
  class: "hb-lib-selector-search-input",
1276
1276
  value: c.value,
1277
- "onUpdate:value": C[1] || (C[1] = (W) => c.value = W),
1277
+ "onUpdate:value": T[1] || (T[1] = (z) => c.value = z),
1278
1278
  placeholder: "请输入关键词搜索",
1279
1279
  "allow-clear": "",
1280
- onInput: C[2] || (C[2] = (W) => k(m)(W.target.value))
1280
+ onInput: T[2] || (T[2] = (z) => w(m)(z.target.value))
1281
1281
  }, {
1282
1282
  prefix: u(() => [
1283
- F(k(qe))
1283
+ x(w(qe))
1284
1284
  ]),
1285
1285
  _: 1
1286
1286
  }, 8, ["value"])
1287
1287
  ]),
1288
1288
  p("div", al, [
1289
- (n(!0), w(G, null, me(i.value, (W) => (n(), w("div", {
1290
- key: W.value,
1291
- class: J(["hb-lib-selector-option", { selected: r.value.includes(W.value) }]),
1292
- onClick: () => y(W)
1289
+ (n(!0), L(X, null, me(i.value, (z) => (n(), L("div", {
1290
+ key: z.value,
1291
+ class: Q(["hb-lib-selector-option", { selected: r.value.includes(z.value) }]),
1292
+ onClick: () => y(z)
1293
1293
  }, [
1294
- e.multiple ? (n(), R(T, {
1294
+ e.multiple ? (n(), V(S, {
1295
1295
  key: 0,
1296
- checked: r.value.includes(W.value),
1297
- onChange: () => y(W),
1298
- onClick: C[3] || (C[3] = Re(() => {
1296
+ checked: r.value.includes(z.value),
1297
+ onChange: () => y(z),
1298
+ onClick: T[3] || (T[3] = Re(() => {
1299
1299
  }, ["stop"]))
1300
- }, null, 8, ["checked", "onChange"])) : (n(), R(N, {
1300
+ }, null, 8, ["checked", "onChange"])) : (n(), V(N, {
1301
1301
  key: 1,
1302
- checked: r.value.includes(W.value),
1303
- onChange: () => y(W),
1304
- onClick: C[4] || (C[4] = Re(() => {
1302
+ checked: r.value.includes(z.value),
1303
+ onChange: () => y(z),
1304
+ onClick: T[4] || (T[4] = Re(() => {
1305
1305
  }, ["stop"]))
1306
1306
  }, null, 8, ["checked", "onChange"])),
1307
1307
  p("div", il, [
1308
- p("div", sl, x(W.label), 1)
1308
+ p("div", sl, k(z.label), 1)
1309
1309
  ])
1310
1310
  ], 10, nl))), 128))
1311
1311
  ]),
1312
- i.value.length === 0 ? (n(), w("div", rl, x(S.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : A("", !0),
1313
- e.multiple ? (n(), w("div", cl, [
1314
- F(T, {
1315
- checked: L.value,
1316
- indeterminate: b.value,
1317
- onChange: H
1312
+ i.value.length === 0 ? (n(), L("div", rl, k(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : B("", !0),
1313
+ e.multiple ? (n(), L("div", cl, [
1314
+ x(S, {
1315
+ checked: _.value,
1316
+ indeterminate: h.value,
1317
+ onChange: F
1318
1318
  }, {
1319
1319
  default: u(() => [
1320
- O(x(S.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
1320
+ O(k(C.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
1321
1321
  ]),
1322
1322
  _: 1
1323
1323
  }, 8, ["checked", "indeterminate"]),
1324
1324
  p("div", dl, [
1325
- F(X, {
1325
+ x(q, {
1326
1326
  size: "small",
1327
- onClick: V
1327
+ onClick: W
1328
1328
  }, {
1329
1329
  default: u(() => [
1330
- O(x(S.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1330
+ O(k(C.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1331
1331
  ]),
1332
1332
  _: 1
1333
1333
  }),
1334
- F(X, {
1334
+ x(q, {
1335
1335
  type: "primary",
1336
1336
  size: "small",
1337
- onClick: h
1337
+ onClick: v
1338
1338
  }, {
1339
1339
  default: u(() => [
1340
- O(x(S.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1340
+ O(k(C.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1341
1341
  ]),
1342
1342
  _: 1
1343
1343
  })
1344
1344
  ])
1345
- ])) : (n(), w("div", ul, [
1346
- C[6] || (C[6] = p("div", null, null, -1)),
1345
+ ])) : (n(), L("div", ul, [
1346
+ T[6] || (T[6] = p("div", null, null, -1)),
1347
1347
  p("div", fl, [
1348
- F(X, {
1348
+ x(q, {
1349
1349
  size: "small",
1350
- onClick: V
1350
+ onClick: W
1351
1351
  }, {
1352
1352
  default: u(() => [
1353
- O(x(S.$t("hbLibComp.hbFormSelectFilter.close")), 1)
1353
+ O(k(C.$t("hbLibComp.hbFormSelectFilter.close")), 1)
1354
1354
  ]),
1355
1355
  _: 1
1356
1356
  })
@@ -1363,7 +1363,7 @@ const Fo = Z(To), Ho = {
1363
1363
  ], 16);
1364
1364
  };
1365
1365
  }
1366
- }), ml = /* @__PURE__ */ oe(pl, [["__scopeId", "data-v-87177371"]]), bl = Z(ml), hl = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-lib-form-item-filter-modal-buttons" }, gl = { key: 0 }, yl = /* @__PURE__ */ te({
1366
+ }), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-87177371"]]), bl = ee(ml), hl = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-lib-form-item-filter-modal-buttons" }, gl = { key: 0 }, yl = /* @__PURE__ */ oe({
1367
1367
  name: "HbLibMutilpleSelectModal",
1368
1368
  __name: "HbMutilpleSelectModal",
1369
1369
  props: {
@@ -1377,148 +1377,148 @@ const Fo = Z(To), Ho = {
1377
1377
  },
1378
1378
  emits: ["handleConfirm", "handleCancel"],
1379
1379
  setup(e, { expose: o, emit: t }) {
1380
- const a = e, d = t, s = E(!1), c = E(""), r = E(), l = E(), i = E([]), f = E([]), L = E(), b = Ne({
1380
+ const a = e, d = t, s = E(!1), c = E(""), r = E(), l = E(), i = E([]), f = E([]), _ = E(), h = Ne({
1381
1381
  searchText: "",
1382
1382
  searchedColumn: ""
1383
- }), P = $(() => a.tableData.map((v) => (v.id = v.id || Math.random(), v))), I = $(() => a.tableColumn.map((v) => (v.customFilterDropdown && (v.onFilter = (_, T) => T[v.dataIndex].toString().toLowerCase().includes(_.toLowerCase()), v.onFilterDropdownVisibleChange = (_) => {
1384
- _ && setTimeout(() => {
1383
+ }), P = $(() => a.tableData.map((M) => (M.id = M.id || Math.random(), M))), I = $(() => a.tableColumn.map((M) => (M.customFilterDropdown && (M.onFilter = (b, S) => S[M.dataIndex].toString().toLowerCase().includes(b.toLowerCase()), M.onFilterDropdownVisibleChange = (b) => {
1384
+ b && setTimeout(() => {
1385
1385
  r.value?.focus();
1386
1386
  }, 100);
1387
- }), { ...v }))), V = () => {
1388
- let v = "";
1389
- f.value.forEach((_) => {
1390
- v = v + _[a.labelKey] + ",";
1391
- }), c.value = v.substring(0, v.length - 1), s.value = !1, d("handleConfirm", f.value);
1392
- }, B = () => {
1387
+ }), { ...M }))), W = () => {
1388
+ let M = "";
1389
+ f.value.forEach((b) => {
1390
+ M = M + b[a.labelKey] + ",";
1391
+ }), c.value = M.substring(0, M.length - 1), s.value = !1, d("handleConfirm", f.value);
1392
+ }, A = () => {
1393
1393
  s.value = !1;
1394
- }, h = () => {
1394
+ }, v = () => {
1395
1395
  s.value = !0, xe(() => {
1396
- const v = L.value?.$el?.querySelector(".ant-table-body");
1397
- v && (v.scrollTop = 0);
1396
+ const M = _.value?.$el?.querySelector(".ant-table-body");
1397
+ M && (M.scrollTop = 0);
1398
1398
  });
1399
1399
  }, m = () => {
1400
1400
  i.value = [], f.value = [];
1401
1401
  }, y = () => {
1402
1402
  c.value = "", m();
1403
- }, H = (v, _, T) => {
1404
- _(), b.searchText = v[0], b.searchedColumn = T;
1405
- }, S = (v, _) => {
1406
- v({ confirm: !0 }), b.searchText = "", _();
1407
- }, C = (v, _) => {
1408
- i.value = v, f.value = _;
1403
+ }, F = (M, b, S) => {
1404
+ b(), h.searchText = M[0], h.searchedColumn = S;
1405
+ }, C = (M, b) => {
1406
+ M({ confirm: !0 }), h.searchText = "", b();
1407
+ }, T = (M, b) => {
1408
+ i.value = M, f.value = b;
1409
1409
  };
1410
1410
  return o({
1411
1411
  resetInputVal: y
1412
- }), (v, _) => {
1413
- const T = j("a-input"), N = j("a-button"), X = j("a-table"), le = j("a-modal");
1414
- return n(), w("div", {
1412
+ }), (M, b) => {
1413
+ const S = j("a-input"), N = j("a-button"), q = j("a-table"), G = j("a-modal");
1414
+ return n(), L("div", {
1415
1415
  class: "hb-lib-multipleSelectModal-box",
1416
1416
  ref_key: "hbMultipSelectModalRef",
1417
1417
  ref: l
1418
1418
  }, [
1419
- F(T, {
1419
+ x(S, {
1420
1420
  readonly: "",
1421
- onClick: h,
1421
+ onClick: v,
1422
1422
  value: c.value,
1423
- "onUpdate:value": _[0] || (_[0] = (D) => c.value = D),
1424
- placeholder: v.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
1423
+ "onUpdate:value": b[0] || (b[0] = (H) => c.value = H),
1424
+ placeholder: M.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
1425
1425
  }, {
1426
1426
  addonAfter: u(() => [
1427
- F(k(bo), { onClick: h })
1427
+ x(w(bo), { onClick: v })
1428
1428
  ]),
1429
1429
  _: 1
1430
1430
  }, 8, ["value", "placeholder"]),
1431
- F(le, {
1431
+ x(G, {
1432
1432
  visible: s.value,
1433
- "onUpdate:visible": _[1] || (_[1] = (D) => s.value = D),
1433
+ "onUpdate:visible": b[1] || (b[1] = (H) => s.value = H),
1434
1434
  title: e.modelTitle,
1435
1435
  width: e.modalWidth,
1436
1436
  class: "hb-lib-multipleSelectModal-modal"
1437
1437
  }, {
1438
1438
  footer: u(() => [
1439
- F(N, { onClick: m }, {
1439
+ x(N, { onClick: m }, {
1440
1440
  default: u(() => [
1441
- O(x(v.$t("hbLibComp.hbListPageAct.reset")), 1)
1441
+ O(k(M.$t("hbLibComp.hbListPageAct.reset")), 1)
1442
1442
  ]),
1443
1443
  _: 1
1444
1444
  }),
1445
- F(N, { onClick: B }, {
1445
+ x(N, { onClick: A }, {
1446
1446
  default: u(() => [
1447
- O(x(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1447
+ O(k(M.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
1448
1448
  ]),
1449
1449
  _: 1
1450
1450
  }),
1451
- F(N, {
1451
+ x(N, {
1452
1452
  type: "primary",
1453
- onClick: V
1453
+ onClick: W
1454
1454
  }, {
1455
1455
  default: u(() => [
1456
- O(x(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1456
+ O(k(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1457
1457
  ]),
1458
1458
  _: 1
1459
1459
  })
1460
1460
  ]),
1461
1461
  default: u(() => [
1462
- F(X, {
1462
+ x(q, {
1463
1463
  ref_key: "tableRef",
1464
- ref: L,
1464
+ ref: _,
1465
1465
  columns: I.value,
1466
1466
  dataSource: P.value,
1467
- rowSelection: { selectedRowKeys: i.value, onChange: C },
1468
- rowKey: (D) => D[e.tableKey],
1467
+ rowSelection: { selectedRowKeys: i.value, onChange: T },
1468
+ rowKey: (H) => H[e.tableKey],
1469
1469
  scroll: { y: e.tableHeight }
1470
1470
  }, {
1471
- customFilterDropdown: u(({ setSelectedKeys: D, selectedKeys: W, confirm: se, clearFilters: re, column: fe }) => [
1471
+ customFilterDropdown: u(({ setSelectedKeys: H, selectedKeys: z, confirm: se, clearFilters: re, column: fe }) => [
1472
1472
  p("div", hl, [
1473
- F(T, {
1473
+ x(S, {
1474
1474
  ref_key: "searchInput",
1475
1475
  ref: r,
1476
1476
  placeholder: `请输入${fe.title}`,
1477
- value: W[0],
1477
+ value: z[0],
1478
1478
  class: "hb-lib-form-item-filter-modal-search-input",
1479
- onChange: (be) => D(be.target.value ? [be.target.value] : []),
1480
- onPressEnter: (be) => H(W, se, fe.dataIndex)
1479
+ onChange: (be) => H(be.target.value ? [be.target.value] : []),
1480
+ onPressEnter: (be) => F(z, se, fe.dataIndex)
1481
1481
  }, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
1482
1482
  p("section", vl, [
1483
- F(N, {
1483
+ x(N, {
1484
1484
  class: "hb-lib-form-item-filter-modal-button",
1485
1485
  type: "ghost",
1486
- onClick: (be) => S(re, se)
1486
+ onClick: (be) => C(re, se)
1487
1487
  }, {
1488
1488
  default: u(() => [
1489
- O(x(v.$t("hbLibComp.hbListPageAct.reset")), 1)
1489
+ O(k(M.$t("hbLibComp.hbListPageAct.reset")), 1)
1490
1490
  ]),
1491
1491
  _: 1
1492
1492
  }, 8, ["onClick"]),
1493
- F(N, {
1493
+ x(N, {
1494
1494
  type: "primary",
1495
1495
  class: "hb-lib-form-item-filter-modal-button-confirm",
1496
- onClick: (be) => H(W, se, fe.dataIndex)
1496
+ onClick: (be) => F(z, se, fe.dataIndex)
1497
1497
  }, {
1498
1498
  default: u(() => [
1499
- O(x(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1499
+ O(k(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
1500
1500
  ]),
1501
1501
  _: 1
1502
1502
  }, 8, ["onClick"])
1503
1503
  ])
1504
1504
  ])
1505
1505
  ]),
1506
- customFilterIcon: u(({ filtered: D }) => [
1507
- F(k(qe), {
1508
- style: ve({ color: D ? "#108ee9" : void 0 })
1506
+ customFilterIcon: u(({ filtered: H }) => [
1507
+ x(w(qe), {
1508
+ style: ve({ color: H ? "#108ee9" : void 0 })
1509
1509
  }, null, 8, ["style"])
1510
1510
  ]),
1511
- bodyCell: u(({ text: D, column: W }) => [
1512
- b.searchText && b.searchedColumn === W.dataIndex ? (n(), w("span", gl, [
1513
- (n(!0), w(G, null, me(D.toString().split(new RegExp(`(?<=${b.searchText})|(?=${b.searchText})`, "i")), (se, re) => (n(), w(G, null, [
1514
- se.toLowerCase() === b.searchText.toLowerCase() ? (n(), w("mark", {
1511
+ bodyCell: u(({ text: H, column: z }) => [
1512
+ h.searchText && h.searchedColumn === z.dataIndex ? (n(), L("span", gl, [
1513
+ (n(!0), L(X, null, me(H.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`, "i")), (se, re) => (n(), L(X, null, [
1514
+ se.toLowerCase() === h.searchText.toLowerCase() ? (n(), L("mark", {
1515
1515
  key: re,
1516
1516
  class: "highlight"
1517
- }, x(se), 1)) : (n(), w(G, { key: 1 }, [
1518
- O(x(se), 1)
1517
+ }, k(se), 1)) : (n(), L(X, { key: 1 }, [
1518
+ O(k(se), 1)
1519
1519
  ], 64))
1520
1520
  ], 64))), 256))
1521
- ])) : A("", !0)
1521
+ ])) : B("", !0)
1522
1522
  ]),
1523
1523
  _: 1
1524
1524
  }, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
@@ -1528,13 +1528,13 @@ const Fo = Z(To), Ho = {
1528
1528
  ], 512);
1529
1529
  };
1530
1530
  }
1531
- }), _l = Z(yl), Ll = { class: "hb-lib-table-act-box" }, wl = ["onClick"], Cl = {
1531
+ }), _l = ee(yl), Ll = { class: "hb-lib-table-act-box" }, wl = ["onClick"], Cl = {
1532
1532
  href: "javascript:;",
1533
1533
  class: "hb-lib-table-main-action"
1534
1534
  }, kl = ["onClick"], Sl = {
1535
1535
  href: "javascript:;",
1536
1536
  class: "hb-lib-table-more-action"
1537
- }, xl = ["onClick"], Tl = { href: "javascript:;" }, Fl = ["onClick"], Hl = { class: "hb-lib-table-confirm-modal-content" }, $l = /* @__PURE__ */ te({
1537
+ }, xl = ["onClick"], Tl = { href: "javascript:;" }, Fl = ["onClick"], Hl = { class: "hb-lib-table-confirm-modal-content" }, $l = /* @__PURE__ */ oe({
1538
1538
  name: "HbLibTableAct",
1539
1539
  __name: "HbTableAct",
1540
1540
  props: {
@@ -1544,31 +1544,31 @@ const Fo = Z(To), Ho = {
1544
1544
  buttonDisplaysQuantity: {}
1545
1545
  },
1546
1546
  setup(e, { expose: o }) {
1547
- const t = e, { t: a } = ye(), d = E(!1), s = E(!1), c = E(null), r = $(() => t.actions.filter((B) => B.condition !== void 0 ? B.condition : !0)), l = $(() => r.value.slice(0, t.buttonDisplaysQuantity)), i = $(() => f(r.value.slice(t.buttonDisplaysQuantity)));
1548
- function f(B) {
1547
+ const t = e, { t: a } = ye(), d = E(!1), s = E(!1), c = E(null), r = $(() => t.actions.filter((A) => A.condition !== void 0 ? A.condition : !0)), l = $(() => r.value.slice(0, t.buttonDisplaysQuantity)), i = $(() => f(r.value.slice(t.buttonDisplaysQuantity)));
1548
+ function f(A) {
1549
1549
  if (t.filterPermission)
1550
- return t.filterPermission(B);
1551
- let h = [], m = [];
1552
- return h = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(h) || B.length === 0 ? (h = [], []) : (h = h.filter((y) => y.type != "2"), B.forEach((y) => {
1553
- (!y.permissionsTag || h.findIndex((H) => H.action === y.permissionsTag) !== -1) && m.push(y);
1550
+ return t.filterPermission(A);
1551
+ let v = [], m = [];
1552
+ return v = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(v) || A.length === 0 ? (v = [], []) : (v = v.filter((y) => y.type != "2"), A.forEach((y) => {
1553
+ (!y.permissionsTag || v.findIndex((F) => F.action === y.permissionsTag) !== -1) && m.push(y);
1554
1554
  }), m);
1555
1555
  }
1556
- const L = (B) => {
1557
- B.handler && B.handler(t.record);
1558
- }, b = (B) => {
1559
- c.value = B, d.value = !0;
1556
+ const _ = (A) => {
1557
+ A.handler && A.handler(t.record);
1558
+ }, h = (A) => {
1559
+ c.value = A, d.value = !0;
1560
1560
  }, P = () => {
1561
1561
  if (c.value) {
1562
1562
  s.value = !0;
1563
1563
  try {
1564
- L(c.value), s.value = !1, d.value = !1;
1564
+ _(c.value), s.value = !1, d.value = !1;
1565
1565
  } catch {
1566
1566
  s.value = !1;
1567
1567
  }
1568
1568
  }
1569
1569
  }, I = () => {
1570
1570
  d.value = !1, c.value = null;
1571
- }, V = $(() => c.value ? {
1571
+ }, W = $(() => c.value ? {
1572
1572
  title: c.value.confirmTitle,
1573
1573
  content: c.value.confirmContent || c.value.confirmTitle
1574
1574
  } : {
@@ -1582,112 +1582,112 @@ const Fo = Z(To), Ho = {
1582
1582
  APopconfirm: Je,
1583
1583
  AModal: Ze,
1584
1584
  DownOutlined: lt
1585
- }), (B, h) => {
1585
+ }), (A, v) => {
1586
1586
  const m = j("a-divider"), y = Et("has");
1587
- return n(), w("div", Ll, [
1588
- (n(!0), w(G, null, me(l.value, (H, S) => (n(), w(G, { key: S }, [
1589
- H.needConfirm ? (n(), w(G, { key: 0 }, [
1590
- H.confirmType === "modal" ? (n(), w(G, { key: 0 }, [
1591
- _e((n(), w("a", {
1587
+ return n(), L("div", Ll, [
1588
+ (n(!0), L(X, null, me(l.value, (F, C) => (n(), L(X, { key: C }, [
1589
+ F.needConfirm ? (n(), L(X, { key: 0 }, [
1590
+ F.confirmType === "modal" ? (n(), L(X, { key: 0 }, [
1591
+ _e((n(), L("a", {
1592
1592
  href: "javascript:;",
1593
- onClick: (C) => b(H),
1593
+ onClick: (T) => h(F),
1594
1594
  class: "hb-lib-table-main-action"
1595
1595
  }, [
1596
- O(x(H.label), 1)
1596
+ O(k(F.label), 1)
1597
1597
  ], 8, wl)), [
1598
- [y, H.permissionsTag || null]
1598
+ [y, F.permissionsTag || null]
1599
1599
  ]),
1600
- i.value && i.value.length > 0 || S !== l.value.length - 1 ? (n(), R(m, {
1600
+ i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
1601
1601
  key: 0,
1602
1602
  type: "vertical"
1603
- })) : A("", !0)
1604
- ], 64)) : (n(), w(G, { key: 1 }, [
1605
- F(k(Je), {
1606
- title: H.confirmTitle,
1607
- onConfirm: (C) => L(H)
1603
+ })) : B("", !0)
1604
+ ], 64)) : (n(), L(X, { key: 1 }, [
1605
+ x(w(Je), {
1606
+ title: F.confirmTitle,
1607
+ onConfirm: (T) => _(F)
1608
1608
  }, {
1609
1609
  default: u(() => [
1610
- _e((n(), w("a", Cl, [
1611
- O(x(H.label), 1)
1610
+ _e((n(), L("a", Cl, [
1611
+ O(k(F.label), 1)
1612
1612
  ])), [
1613
- [y, H.permissionsTag || null]
1613
+ [y, F.permissionsTag || null]
1614
1614
  ])
1615
1615
  ]),
1616
1616
  _: 2
1617
1617
  }, 1032, ["title", "onConfirm"]),
1618
- i.value && i.value.length > 0 || S !== l.value.length - 1 ? (n(), R(m, {
1618
+ i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
1619
1619
  key: 0,
1620
1620
  type: "vertical"
1621
- })) : A("", !0)
1621
+ })) : B("", !0)
1622
1622
  ], 64))
1623
- ], 64)) : H.slot ? (n(), w(G, { key: 1 }, [
1624
- q(B.$slots, H.slot, { item: H }, void 0, !0),
1625
- i.value && i.value.length > 0 || S !== l.value.length - 1 ? (n(), R(m, {
1623
+ ], 64)) : F.slot ? (n(), L(X, { key: 1 }, [
1624
+ Y(A.$slots, F.slot, { item: F }, void 0, !0),
1625
+ i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
1626
1626
  key: 0,
1627
1627
  type: "vertical"
1628
- })) : A("", !0)
1629
- ], 64)) : (n(), w(G, { key: 2 }, [
1630
- _e((n(), w("a", {
1628
+ })) : B("", !0)
1629
+ ], 64)) : (n(), L(X, { key: 2 }, [
1630
+ _e((n(), L("a", {
1631
1631
  href: "javascript:;",
1632
- onClick: (C) => L(H),
1632
+ onClick: (T) => _(F),
1633
1633
  class: "hb-lib-table-main-action"
1634
1634
  }, [
1635
- O(x(H.label), 1)
1635
+ O(k(F.label), 1)
1636
1636
  ], 8, kl)), [
1637
- [y, H.permissionsTag || null]
1637
+ [y, F.permissionsTag || null]
1638
1638
  ]),
1639
- i.value && i.value.length > 0 || S !== l.value.length - 1 ? _e((n(), R(m, {
1639
+ i.value && i.value.length > 0 || C !== l.value.length - 1 ? _e((n(), V(m, {
1640
1640
  key: 0,
1641
1641
  type: "vertical"
1642
1642
  }, null, 512)), [
1643
- [y, H.permissionsTag || null]
1644
- ]) : A("", !0)
1643
+ [y, F.permissionsTag || null]
1644
+ ]) : B("", !0)
1645
1645
  ], 64))
1646
1646
  ], 64))), 128)),
1647
- i.value && i.value.length > 0 ? (n(), R(k(Ct), { key: 0 }, {
1647
+ i.value && i.value.length > 0 ? (n(), V(w(Ct), { key: 0 }, {
1648
1648
  overlay: u(() => [
1649
- F(k(wt), null, {
1649
+ x(w(wt), null, {
1650
1650
  default: u(() => [
1651
- (n(!0), w(G, null, me(i.value, (H, S) => _e((n(), R(k(Lt), { key: S }, {
1651
+ (n(!0), L(X, null, me(i.value, (F, C) => _e((n(), V(w(Lt), { key: C }, {
1652
1652
  default: u(() => [
1653
- H.needConfirm ? (n(), w(G, { key: 0 }, [
1654
- H.confirmType === "modal" ? _e((n(), w("a", {
1653
+ F.needConfirm ? (n(), L(X, { key: 0 }, [
1654
+ F.confirmType === "modal" ? _e((n(), L("a", {
1655
1655
  key: 0,
1656
1656
  href: "javascript:;",
1657
- onClick: (C) => b(H)
1657
+ onClick: (T) => h(F)
1658
1658
  }, [
1659
- O(x(H.label), 1)
1659
+ O(k(F.label), 1)
1660
1660
  ], 8, xl)), [
1661
- [y, H.permissionsTag || null]
1662
- ]) : _e((n(), R(k(Je), {
1661
+ [y, F.permissionsTag || null]
1662
+ ]) : _e((n(), V(w(Je), {
1663
1663
  key: 1,
1664
- title: H.confirmTitle,
1665
- onConfirm: (C) => L(H)
1664
+ title: F.confirmTitle,
1665
+ onConfirm: (T) => _(F)
1666
1666
  }, {
1667
1667
  default: u(() => [
1668
- _e((n(), w("a", Tl, [
1669
- O(x(H.label), 1)
1668
+ _e((n(), L("a", Tl, [
1669
+ O(k(F.label), 1)
1670
1670
  ])), [
1671
- [y, H.permissionsTag || null]
1671
+ [y, F.permissionsTag || null]
1672
1672
  ])
1673
1673
  ]),
1674
1674
  _: 2
1675
1675
  }, 1032, ["title", "onConfirm"])), [
1676
- [y, H.permissionsTag || null]
1676
+ [y, F.permissionsTag || null]
1677
1677
  ])
1678
- ], 64)) : _e((n(), w("a", {
1678
+ ], 64)) : _e((n(), L("a", {
1679
1679
  key: 1,
1680
1680
  href: "javascript:;",
1681
- onClick: (C) => L(H)
1681
+ onClick: (T) => _(F)
1682
1682
  }, [
1683
- O(x(H.label), 1)
1683
+ O(k(F.label), 1)
1684
1684
  ], 8, Fl)), [
1685
- [y, H.permissionsTag || null]
1685
+ [y, F.permissionsTag || null]
1686
1686
  ])
1687
1687
  ]),
1688
1688
  _: 2
1689
1689
  }, 1024)), [
1690
- [y, H.permissionsTag || null]
1690
+ [y, F.permissionsTag || null]
1691
1691
  ])), 128))
1692
1692
  ]),
1693
1693
  _: 1
@@ -1695,28 +1695,28 @@ const Fo = Z(To), Ho = {
1695
1695
  ]),
1696
1696
  default: u(() => [
1697
1697
  p("a", Sl, [
1698
- O(x(B.$t("hbLibComp.hbTableAct.more")) + " ", 1),
1699
- F(k(lt), { style: { "font-size": "12px", "margin-left": "4px" } })
1698
+ O(k(A.$t("hbLibComp.hbTableAct.more")) + " ", 1),
1699
+ x(w(lt), { style: { "font-size": "12px", "margin-left": "4px" } })
1700
1700
  ])
1701
1701
  ]),
1702
1702
  _: 1
1703
- })) : A("", !0),
1704
- F(k(Ze), {
1703
+ })) : B("", !0),
1704
+ x(w(Ze), {
1705
1705
  visible: d.value,
1706
- title: V.value.title,
1706
+ title: W.value.title,
1707
1707
  "confirm-loading": s.value,
1708
1708
  onOk: P,
1709
1709
  onCancel: I
1710
1710
  }, {
1711
1711
  default: u(() => [
1712
- p("p", Hl, x(V.value.content), 1)
1712
+ p("p", Hl, k(W.value.content), 1)
1713
1713
  ]),
1714
1714
  _: 1
1715
1715
  }, 8, ["visible", "title", "confirm-loading"])
1716
1716
  ]);
1717
1717
  };
1718
1718
  }
1719
- }), Il = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-25fd055e"]]), Ml = Z(Il), kt = (e) => ({ tableWidth: $(() => {
1719
+ }), Il = /* @__PURE__ */ le($l, [["__scopeId", "data-v-25fd055e"]]), Ml = ee(Il), kt = (e) => ({ tableWidth: $(() => {
1720
1720
  const t = Array.isArray(e) ? e : e.value;
1721
1721
  return !t || t.length === 0 ? 0 : t.map((a) => a.width && Number(a.width.toString().replace("px", "")) || 0).reduce((a, d) => a + d, 0);
1722
1722
  }) });
@@ -1780,56 +1780,56 @@ var Xe = function() {
1780
1780
  return Vt.Date.now();
1781
1781
  }, ta = "Expected a function", oa = Math.max, la = Math.min;
1782
1782
  function jt(e, o, t) {
1783
- var a, d, s, c, r, l, i = 0, f = !1, L = !1, b = !0;
1783
+ var a, d, s, c, r, l, i = 0, f = !1, _ = !1, h = !0;
1784
1784
  if (typeof e != "function")
1785
1785
  throw new TypeError(ta);
1786
- o = Tt(o) || 0, at(t) && (f = !!t.leading, L = "maxWait" in t, s = L ? oa(Tt(t.maxWait) || 0, o) : s, b = "trailing" in t ? !!t.trailing : b);
1787
- function P(C) {
1788
- var v = a, _ = d;
1789
- return a = d = void 0, i = C, c = e.apply(_, v), c;
1786
+ o = Tt(o) || 0, at(t) && (f = !!t.leading, _ = "maxWait" in t, s = _ ? oa(Tt(t.maxWait) || 0, o) : s, h = "trailing" in t ? !!t.trailing : h);
1787
+ function P(T) {
1788
+ var M = a, b = d;
1789
+ return a = d = void 0, i = T, c = e.apply(b, M), c;
1790
1790
  }
1791
- function I(C) {
1792
- return i = C, r = setTimeout(h, o), f ? P(C) : c;
1791
+ function I(T) {
1792
+ return i = T, r = setTimeout(v, o), f ? P(T) : c;
1793
1793
  }
1794
- function V(C) {
1795
- var v = C - l, _ = C - i, T = o - v;
1796
- return L ? la(T, s - _) : T;
1794
+ function W(T) {
1795
+ var M = T - l, b = T - i, S = o - M;
1796
+ return _ ? la(S, s - b) : S;
1797
1797
  }
1798
- function B(C) {
1799
- var v = C - l, _ = C - i;
1800
- return l === void 0 || v >= o || v < 0 || L && _ >= s;
1798
+ function A(T) {
1799
+ var M = T - l, b = T - i;
1800
+ return l === void 0 || M >= o || M < 0 || _ && b >= s;
1801
1801
  }
1802
- function h() {
1803
- var C = Xe();
1804
- if (B(C))
1805
- return m(C);
1806
- r = setTimeout(h, V(C));
1802
+ function v() {
1803
+ var T = Xe();
1804
+ if (A(T))
1805
+ return m(T);
1806
+ r = setTimeout(v, W(T));
1807
1807
  }
1808
- function m(C) {
1809
- return r = void 0, b && a ? P(C) : (a = d = void 0, c);
1808
+ function m(T) {
1809
+ return r = void 0, h && a ? P(T) : (a = d = void 0, c);
1810
1810
  }
1811
1811
  function y() {
1812
1812
  r !== void 0 && clearTimeout(r), i = 0, a = l = d = r = void 0;
1813
1813
  }
1814
- function H() {
1814
+ function F() {
1815
1815
  return r === void 0 ? c : m(Xe());
1816
1816
  }
1817
- function S() {
1818
- var C = Xe(), v = B(C);
1819
- if (a = arguments, d = this, l = C, v) {
1817
+ function C() {
1818
+ var T = Xe(), M = A(T);
1819
+ if (a = arguments, d = this, l = T, M) {
1820
1820
  if (r === void 0)
1821
1821
  return I(l);
1822
- if (L)
1823
- return clearTimeout(r), r = setTimeout(h, o), P(l);
1822
+ if (_)
1823
+ return clearTimeout(r), r = setTimeout(v, o), P(l);
1824
1824
  }
1825
- return r === void 0 && (r = setTimeout(h, o)), c;
1825
+ return r === void 0 && (r = setTimeout(v, o)), c;
1826
1826
  }
1827
- return S.cancel = y, S.flush = H, S;
1827
+ return C.cancel = y, C.flush = F, C;
1828
1828
  }
1829
1829
  const aa = {
1830
1830
  key: 0,
1831
1831
  class: "hb-lib-list-table-act"
1832
- }, na = { class: "empty-container" }, ia = { key: 1 }, sa = { key: 2 }, ra = /* @__PURE__ */ te({
1832
+ }, na = { class: "empty-container" }, ia = { key: 1 }, sa = { key: 2 }, ra = /* @__PURE__ */ oe({
1833
1833
  name: "HbLibListTable",
1834
1834
  __name: "HbListTable",
1835
1835
  props: {
@@ -1844,19 +1844,25 @@ const aa = {
1844
1844
  const t = Ce("globalCompConfig", {}), a = o, { t: d } = ye(), s = e, c = E([]), r = Ce("HB_LIST_PAGE_CONTAINER"), { tableWidth: l } = kt(c), i = E(l.value), f = $(() => s.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
1845
1845
  ie(
1846
1846
  () => s.columns,
1847
- (h) => {
1848
- const m = h.filter((H) => H != null && H.checked);
1849
- c.value = m.map((H) => {
1850
- let S = { ...H, title: H.title || H.label, align: H.align || t.listTable?.align || "center" };
1851
- S.ellipsis && !S.needTooltip && (S.needTooltip = !0);
1852
- let C = s.defaultWidth || t.listTable?.defaultColWidth || 150;
1853
- if (!S.width)
1854
- S.width = C;
1855
- else if (typeof S.width == "string") {
1856
- const v = parseInt(S.width, 10);
1857
- S.width = isNaN(v) ? C : v;
1847
+ (v) => {
1848
+ const m = v.filter(
1849
+ (F) => F != null && F.checked
1850
+ );
1851
+ c.value = m.map((F) => {
1852
+ let C = {
1853
+ ...F,
1854
+ title: F.title || F.label,
1855
+ align: F.align || t.listTable?.align || "center"
1856
+ };
1857
+ C.ellipsis && !C.needTooltip && (C.needTooltip = !0);
1858
+ let T = s.defaultWidth || t.listTable?.defaultColWidth || 150;
1859
+ if (!C.width)
1860
+ C.width = T;
1861
+ else if (typeof C.width == "string") {
1862
+ const M = parseInt(C.width, 10);
1863
+ C.width = isNaN(M) ? T : M;
1858
1864
  }
1859
- return S.resizable === void 0 && (S.resizable = !0), S;
1865
+ return C.resizable === void 0 && (C.resizable = !0), C;
1860
1866
  });
1861
1867
  const { tableWidth: y } = kt(c);
1862
1868
  i.value = y.value;
@@ -1866,169 +1872,180 @@ const aa = {
1866
1872
  deep: !0
1867
1873
  }
1868
1874
  );
1869
- const L = jt(() => {
1870
- a("resizeCol", c);
1871
- }, t.listTable?.colSaveTimeOut || 800), b = (h, m) => {
1875
+ const _ = jt(() => {
1876
+ a("resizeCol", c.value);
1877
+ }, t.listTable?.colSaveTimeOut || 800), h = (v, m) => {
1872
1878
  if (m) {
1873
- const y = typeof h == "string" ? parseInt(h, 10) : h;
1879
+ const y = typeof v == "string" ? parseInt(v, 10) : v;
1874
1880
  m.width = isNaN(y) ? t.listTable?.defaultColWidth || 150 : y, xe(() => {
1875
- L();
1881
+ _();
1876
1882
  });
1877
1883
  }
1878
- }, P = (h, m, y) => {
1879
- h?.current && a("change", h, m, y);
1880
- }, I = (h, m = "YYYY-MM-DD HH:mm:ss") => h ? Ke(h).format(m) : "", V = (h, m) => h && m[h] || "", B = (h, m = t.listTable?.ellipsisNumber || 20) => h ? h.length > m ? `${h.substring(0, m)}...` : h : "";
1881
- return (h, m) => {
1882
- const y = j("a-empty"), H = j("a-tooltip"), S = j("HbLibCopy"), C = j("a-tag"), v = j("a-table");
1883
- return n(), w("div", {
1884
- class: J(["hb-lib-list-table", { "nowrap-table": s.rowHeight }]),
1885
- style: ve({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
1884
+ }, P = (v, m, y) => {
1885
+ v?.current && a("change", v, m, y);
1886
+ }, I = (v, m = "YYYY-MM-DD HH:mm:ss") => v ? Ke(v).format(m) : "", W = (v, m) => v && m[v] || "", A = (v, m = t.listTable?.ellipsisNumber || 20) => v ? v.length > m ? `${v.substring(0, m)}...` : v : "";
1887
+ return (v, m) => {
1888
+ const y = j("a-empty"), F = j("a-tooltip"), C = j("HbLibCopy"), T = j("a-tag"), M = j("a-table");
1889
+ return n(), L("div", {
1890
+ class: Q(["hb-lib-list-table", { "nowrap-table": s.rowHeight }]),
1891
+ style: ve({
1892
+ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
1893
+ })
1886
1894
  }, [
1887
- h.$slots.tableActLeft ? (n(), w("section", aa, [
1888
- q(h.$slots, "tableActLeft", {}, void 0, !0),
1889
- q(h.$slots, "tableActRight", {}, void 0, !0)
1890
- ])) : A("", !0),
1891
- F(v, ee(h.$attrs, {
1895
+ v.$slots.tableActLeft ? (n(), L("section", aa, [
1896
+ Y(v.$slots, "tableActLeft", {}, void 0, !0),
1897
+ Y(v.$slots, "tableActRight", {}, void 0, !0)
1898
+ ])) : B("", !0),
1899
+ x(M, te(v.$attrs, {
1892
1900
  bordered: "",
1893
1901
  columns: c.value,
1894
- tableLayout: "fixed",
1895
- onResizeColumn: b,
1896
- onChange: P,
1902
+ "table-layout": "fixed",
1897
1903
  scroll: f.value ? {
1898
1904
  x: i.value
1899
- } : { x: i.value, y: k(r).tableHeight }
1905
+ } : { x: i.value, y: w(r).tableHeight },
1906
+ onResizeColumn: h,
1907
+ onChange: P
1900
1908
  }), Pe({
1901
1909
  emptyText: u(() => [
1902
1910
  p("div", na, [
1903
- F(y, {
1904
- description: k(d)("hbLibComp.hbListTable.noData")
1911
+ x(y, {
1912
+ description: w(d)("hbLibComp.hbListTable.noData")
1905
1913
  }, null, 8, ["description"])
1906
1914
  ])
1907
1915
  ]),
1908
1916
  _: 2
1909
1917
  }, [
1910
- h.$slots.headerCell ? {
1918
+ v.$slots.headerCell ? {
1911
1919
  name: "headerCell",
1912
- fn: u(({ column: _ }) => [
1913
- q(h.$slots, "headerCell", {
1914
- column: _,
1915
- title: _.title
1920
+ fn: u(({ column: b }) => [
1921
+ Y(v.$slots, "headerCell", {
1922
+ column: b,
1923
+ title: b.title
1916
1924
  }, () => [
1917
- O(x(_.title), 1)
1925
+ O(k(b.title), 1)
1918
1926
  ], !0)
1919
1927
  ]),
1920
1928
  key: "0"
1921
1929
  } : void 0,
1922
- h.$slots.bodyCell ? {
1930
+ v.$slots.bodyCell ? {
1923
1931
  name: "bodyCell",
1924
- fn: u(({ column: _, record: T, index: N, text: X }) => [
1925
- q(h.$slots, "bodyCell", {
1926
- column: _,
1927
- record: T,
1932
+ fn: u(({ column: b, record: S, index: N, text: q }) => [
1933
+ Y(v.$slots, "bodyCell", {
1934
+ column: b,
1935
+ record: S,
1928
1936
  index: N,
1929
- text: X
1937
+ text: q
1930
1938
  }, void 0, !0),
1931
- _ && _.needTooltip && !_.needCopy ? (n(), R(H, {
1939
+ b && b.needTooltip && !b.needCopy ? (n(), V(F, {
1932
1940
  key: 0,
1933
1941
  placement: e.tooltipPlacement
1934
1942
  }, {
1935
1943
  title: u(() => [
1936
- O(x(T[_.dataIndex]), 1)
1944
+ O(k(S[b.dataIndex]), 1)
1937
1945
  ]),
1938
1946
  default: u(() => [
1939
- O(" " + x(T[_.dataIndex]), 1)
1947
+ O(" " + k(S[b.dataIndex]), 1)
1940
1948
  ]),
1941
1949
  _: 2
1942
- }, 1032, ["placement"])) : _ && _.needCopy && !_.needTooltip ? (n(), w("div", ia, [
1943
- O(x(T[_.dataIndex]) + " ", 1),
1944
- F(S, {
1945
- "cp-text": T[_.dataIndex],
1950
+ }, 1032, ["placement"])) : b && b.needCopy && !b.needTooltip ? (n(), L("div", ia, [
1951
+ O(k(S[b.dataIndex]) + " ", 1),
1952
+ x(C, {
1953
+ "cp-text": S[b.dataIndex],
1946
1954
  style: { position: "relative" }
1947
1955
  }, null, 8, ["cp-text"])
1948
- ])) : A("", !0),
1949
- _ && _.needTooltip && _.needCopy ? (n(), w("div", sa, [
1950
- F(H, { placement: e.tooltipPlacement }, {
1956
+ ])) : B("", !0),
1957
+ b && b.needTooltip && b.needCopy ? (n(), L("div", sa, [
1958
+ x(F, { placement: e.tooltipPlacement }, {
1951
1959
  title: u(() => [
1952
- O(x(T[_.dataIndex]), 1)
1960
+ O(k(S[b.dataIndex]), 1)
1953
1961
  ]),
1954
1962
  default: u(() => [
1955
- O(" " + x(B(T[_.dataIndex], _.strLen)), 1)
1963
+ O(" " + k(A(
1964
+ S[b.dataIndex],
1965
+ b.strLen
1966
+ )), 1)
1956
1967
  ]),
1957
1968
  _: 2
1958
1969
  }, 1032, ["placement"]),
1959
- F(S, {
1960
- "cp-text": T[_.dataIndex],
1970
+ x(C, {
1971
+ "cp-text": S[b.dataIndex],
1961
1972
  style: { position: "relative" }
1962
1973
  }, null, 8, ["cp-text"])
1963
- ])) : _ && _.needFormat ? (n(), w(G, { key: 3 }, [
1964
- O(x(I(T[_.dataIndex], _.format)), 1)
1965
- ], 64)) : _ && _.tags ? (n(), w(G, { key: 4 }, [
1966
- V(T[_.dataIndex], _.tags) ? (n(), R(C, {
1974
+ ])) : b && b.needFormat ? (n(), L(X, { key: 3 }, [
1975
+ O(k(I(S[b.dataIndex], b.format)), 1)
1976
+ ], 64)) : b && b.tags ? (n(), L(X, { key: 4 }, [
1977
+ W(
1978
+ S[b.dataIndex],
1979
+ b.tags
1980
+ ) ? (n(), V(T, {
1967
1981
  key: 0,
1968
- color: V(T[_.dataIndex], _.tags)
1982
+ color: W(
1983
+ S[b.dataIndex],
1984
+ b.tags
1985
+ )
1969
1986
  }, {
1970
1987
  default: u(() => [
1971
- O(x(T[_.dataIndex]), 1)
1988
+ O(k(S[b.dataIndex]), 1)
1972
1989
  ]),
1973
1990
  _: 2
1974
- }, 1032, ["color"])) : A("", !0)
1975
- ], 64)) : A("", !0)
1991
+ }, 1032, ["color"])) : B("", !0)
1992
+ ], 64)) : B("", !0)
1976
1993
  ]),
1977
1994
  key: "1"
1978
1995
  } : void 0,
1979
- h.$slots.expandedRowRender ? {
1996
+ v.$slots.expandedRowRender ? {
1980
1997
  name: "expandedRowRender",
1981
- fn: u(({ record: _, index: T }) => [
1982
- q(h.$slots, "expandedRowRender", {
1983
- record: _,
1984
- index: T
1998
+ fn: u(({ record: b, index: S }) => [
1999
+ Y(v.$slots, "expandedRowRender", {
2000
+ record: b,
2001
+ index: S
1985
2002
  }, void 0, !0)
1986
2003
  ]),
1987
2004
  key: "2"
1988
2005
  } : void 0,
1989
- h.$slots.customFilterDropdown ? {
2006
+ v.$slots.customFilterDropdown ? {
1990
2007
  name: "customFilterDropdown",
1991
- fn: u(({ column: _ }) => [
1992
- q(h.$slots, "customFilterDropdown", { column: _ }, void 0, !0)
2008
+ fn: u(({ column: b }) => [
2009
+ Y(v.$slots, "customFilterDropdown", { column: b }, void 0, !0)
1993
2010
  ]),
1994
2011
  key: "3"
1995
2012
  } : void 0,
1996
- h.$slots.customFilterIcon ? {
2013
+ v.$slots.customFilterIcon ? {
1997
2014
  name: "customFilterIcon",
1998
- fn: u(({ column: _ }) => [
1999
- q(h.$slots, "customFilterIcon", { column: _ }, void 0, !0)
2015
+ fn: u(({ column: b }) => [
2016
+ Y(v.$slots, "customFilterIcon", { column: b }, void 0, !0)
2000
2017
  ]),
2001
2018
  key: "4"
2002
2019
  } : void 0,
2003
- h.$slots.expandIcon ? {
2020
+ v.$slots.expandIcon ? {
2004
2021
  name: "expandIcon",
2005
- fn: u(({ expanded: _, record: T, index: N }) => [
2006
- q(h.$slots, "expandIcon", {
2007
- expanded: _,
2008
- record: T,
2022
+ fn: u(({ expanded: b, record: S, index: N }) => [
2023
+ Y(v.$slots, "expandIcon", {
2024
+ expanded: b,
2025
+ record: S,
2009
2026
  index: N
2010
2027
  }, void 0, !0)
2011
2028
  ]),
2012
2029
  key: "5"
2013
2030
  } : void 0,
2014
- h.$slots.footer ? {
2031
+ v.$slots.footer ? {
2015
2032
  name: "footer",
2016
2033
  fn: u(() => [
2017
- q(h.$slots, "footer", {}, void 0, !0)
2034
+ Y(v.$slots, "footer", {}, void 0, !0)
2018
2035
  ]),
2019
2036
  key: "6"
2020
2037
  } : void 0,
2021
- h.$slots.summary ? {
2038
+ v.$slots.summary ? {
2022
2039
  name: "summary",
2023
2040
  fn: u(() => [
2024
- q(h.$slots, "summary", {}, void 0, !0)
2041
+ Y(v.$slots, "summary", {}, void 0, !0)
2025
2042
  ]),
2026
2043
  key: "7"
2027
2044
  } : void 0,
2028
- h.$slots.title ? {
2045
+ v.$slots.title ? {
2029
2046
  name: "title",
2030
2047
  fn: u(() => [
2031
- q(h.$slots, "title", {}, void 0, !0)
2048
+ Y(v.$slots, "title", {}, void 0, !0)
2032
2049
  ]),
2033
2050
  key: "8"
2034
2051
  } : void 0
@@ -2036,7 +2053,7 @@ const aa = {
2036
2053
  ], 6);
2037
2054
  };
2038
2055
  }
2039
- }), ca = /* @__PURE__ */ oe(ra, [["__scopeId", "data-v-4a8b9aaa"]]), da = Z(ca), ua = { class: "hb-lib-table-setting-box" }, fa = {
2056
+ }), ca = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-6c43044f"]]), da = ee(ca), ua = { class: "hb-lib-table-setting-box" }, fa = {
2040
2057
  key: 0,
2041
2058
  class: "hb-lib-table-drag-item"
2042
2059
  }, pa = {
@@ -2045,7 +2062,7 @@ const aa = {
2045
2062
  }, ma = ["onClick"], ba = ["onClick"], ha = { class: "hb-lib-table-set-btn-group" }, va = {
2046
2063
  class: "select-all-container",
2047
2064
  style: { "margin-right": "10px" }
2048
- }, ga = /* @__PURE__ */ te({
2065
+ }, ga = /* @__PURE__ */ oe({
2049
2066
  name: "HbLibTableColumnSet",
2050
2067
  __name: "HbTableColumnSet",
2051
2068
  props: {
@@ -2078,130 +2095,148 @@ const aa = {
2078
2095
  },
2079
2096
  emits: ["on-get-columns"],
2080
2097
  setup(e, { emit: o }) {
2081
- const t = o, { t: a } = ye(), d = e, s = E([]), c = $(() => l.value.filter((C) => C.checked));
2098
+ const t = o, { t: a } = ye(), d = e, s = E([]), c = $(() => l.value.filter((b) => b.checked));
2082
2099
  E([]);
2083
- const r = E(!1), l = E([]), i = E(null), f = $(() => c.value.length > 0 && c.value.length === s.value.length), L = $(() => c.value.length > 0 && c.value.length < s.value.length), b = (C) => {
2084
- i.value = C.oldIndex;
2085
- }, P = (C) => {
2086
- const v = C.newIndex;
2087
- if (s.value.some((T) => T.fixed === "left" || T.fixed === "right" || T.fixed === !0)) {
2088
- const T = s.value.filter((X) => X.fixed === "left").length, N = s.value.length - s.value.filter((X) => X.fixed === "right").length;
2089
- if ((T > 0 && v < T || N < s.value.length && v >= N) && (Le.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")), i.value !== null)) {
2090
- const X = l.value.splice(v, 1)[0];
2091
- l.value.splice(i.value, 0, X);
2100
+ const r = E(!1), l = E([]), i = E(null), f = $(() => c.value.length > 0 && c.value.length === s.value.length), _ = $(() => c.value.length > 0 && c.value.length < s.value.length), h = (b) => {
2101
+ i.value = b.oldIndex;
2102
+ }, P = (b) => {
2103
+ const S = b.newIndex;
2104
+ if (s.value.some(
2105
+ (q) => q.fixed === "left" || q.fixed === "right" || q.fixed === !0
2106
+ )) {
2107
+ const q = s.value.filter(
2108
+ (H) => H.fixed === "left"
2109
+ ).length, G = s.value.length - s.value.filter((H) => H.fixed === "right").length;
2110
+ if ((q > 0 && S < q || G < s.value.length && S >= G) && (Le.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")), i.value !== null)) {
2111
+ const H = l.value.splice(S, 1)[0];
2112
+ l.value.splice(i.value, 0, H);
2092
2113
  }
2093
2114
  }
2094
2115
  i.value = null;
2095
- }, I = (C) => {
2096
- C.target.checked ? l.value.forEach((_) => _.checked = !0) : l.value.forEach((_) => {
2097
- _.dataIndex !== "action" && _.dataIndex !== "actions" && (_.checked = !1);
2116
+ }, I = (b) => {
2117
+ b.target.checked ? l.value.forEach((N) => N.checked = !0) : l.value.forEach((N) => {
2118
+ N.dataIndex !== "action" && N.dataIndex !== "actions" && (N.checked = !1);
2098
2119
  });
2099
- }, V = () => {
2100
- s.value = d.localColumns.map((v) => ({
2101
- ...v,
2102
- label: v.title && v.title.tag ? y(v.title) : v.title || v.title2,
2103
- value: v.dataIndex,
2104
- checked: v.checked || v.checked === void 0
2105
- })), l.value = [...s.value];
2106
- let C = [];
2107
- d.tableColumns.forEach(function(v) {
2108
- C.push(v.dataIndex);
2120
+ }, W = (b) => {
2121
+ if (b.title && b.title.tag)
2122
+ return C(b.title);
2123
+ if (typeof b.title == "function") {
2124
+ let S = b.title();
2125
+ return typeof S == "string" ? S : b.titleText || b.title2;
2126
+ }
2127
+ return b.title || b.title2;
2128
+ }, A = () => d.localColumns.map((b) => ({
2129
+ ...b,
2130
+ label: W(b),
2131
+ value: b.dataIndex,
2132
+ checked: b.checked || b.checked === void 0
2133
+ })), v = () => {
2134
+ s.value = A(), l.value = [...s.value];
2135
+ let b = [];
2136
+ d.tableColumns.forEach(function(S) {
2137
+ b.push(S.dataIndex);
2109
2138
  });
2110
- }, B = (C, v) => {
2111
- v ? C.checked = !0 : C.checked = !1;
2112
- }, h = () => {
2139
+ }, m = (b, S) => {
2140
+ S ? b.checked = !0 : b.checked = !1;
2141
+ }, y = () => {
2113
2142
  s.value = [...l.value], t("on-get-columns", s.value), r.value = !1;
2114
- }, m = () => {
2115
- s.value = d.tableColumns.map((v) => ({
2116
- ...v,
2117
- label: v.title && v.title.tag ? y(v.title) : v.title || v.title2,
2118
- value: v.dataIndex,
2119
- checked: v.checked || v.checked === void 0
2120
- })), l.value = [...s.value];
2121
- let C = [];
2122
- d.tableColumns.forEach(function(v) {
2123
- C.push(v.dataIndex);
2143
+ }, F = () => {
2144
+ s.value = A(), l.value = [...s.value];
2145
+ let b = [];
2146
+ d.tableColumns.forEach(function(S) {
2147
+ b.push(S.dataIndex);
2124
2148
  });
2125
- }, y = (C) => C.children[0].text, H = (C) => {
2126
- delete C.fixed;
2127
- const v = l.value.findIndex((_) => _.value === C.value);
2128
- if (v !== -1) {
2129
- let _ = -1;
2130
- for (let T = 0; T < l.value.length; T++)
2131
- l.value[T].fixed === "left" && (_ = T);
2132
- if (_ !== -1 && v !== _ + 1) {
2133
- const T = [...l.value], [N] = T.splice(v, 1);
2134
- T.splice(_ + 1, 0, N), l.value = T;
2149
+ }, C = (b) => b.children[0].text, T = (b) => {
2150
+ delete b.fixed;
2151
+ const S = l.value.findIndex(
2152
+ (N) => N.value === b.value
2153
+ );
2154
+ if (S !== -1) {
2155
+ let N = -1;
2156
+ for (let q = 0; q < l.value.length; q++)
2157
+ l.value[q].fixed === "left" && (N = q);
2158
+ if (N !== -1 && S !== N + 1) {
2159
+ const q = [...l.value], [G] = q.splice(S, 1);
2160
+ q.splice(N + 1, 0, G), l.value = q;
2135
2161
  }
2136
2162
  }
2137
- }, S = (C) => {
2138
- const v = l.value.findIndex((_) => _.value === C.value);
2139
- if (v !== -1) {
2140
- let _ = -1;
2141
- for (let le = 0; le < l.value.length; le++)
2142
- l.value[le].fixed === "left" && (_ = le);
2143
- const T = [...l.value], [N] = T.splice(v, 1);
2144
- N.fixed = "left";
2145
- const X = _ === -1 ? 0 : _ + 1;
2146
- T.splice(X, 0, N), l.value = T;
2163
+ }, M = (b) => {
2164
+ const S = l.value.findIndex(
2165
+ (N) => N.value === b.value
2166
+ );
2167
+ if (S !== -1) {
2168
+ let N = -1;
2169
+ for (let z = 0; z < l.value.length; z++)
2170
+ l.value[z].fixed === "left" && (N = z);
2171
+ const q = [...l.value], [G] = q.splice(S, 1);
2172
+ G.fixed = "left";
2173
+ const H = N === -1 ? 0 : N + 1;
2174
+ q.splice(H, 0, G), l.value = q;
2147
2175
  }
2148
2176
  };
2149
2177
  return ie(
2150
2178
  () => d.tableColumns,
2151
2179
  () => {
2152
- m();
2180
+ F();
2153
2181
  },
2154
2182
  {
2155
2183
  immediate: !0,
2156
2184
  deep: !0
2157
2185
  }
2158
- ), (C, v) => {
2159
- const _ = j("a-tooltip"), T = j("a-button");
2160
- return n(), w("div", ua, [
2161
- F(k(so), {
2162
- title: k(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
2186
+ ), (b, S) => {
2187
+ const N = j("a-tooltip"), q = j("a-button");
2188
+ return n(), L("div", ua, [
2189
+ x(w(so), {
2190
+ visible: r.value,
2191
+ "onUpdate:visible": S[1] || (S[1] = (G) => r.value = G),
2192
+ title: w(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
2163
2193
  trigger: "click",
2164
2194
  placement: "leftTop",
2165
- overlayClassName: "column_setting_popover",
2166
- visible: r.value,
2167
- "onUpdate:visible": v[1] || (v[1] = (N) => r.value = N)
2195
+ "overlay-class-name": "column_setting_popover"
2168
2196
  }, {
2169
2197
  content: u(() => [
2170
- F(k(Ve), {
2198
+ x(w(Ve), {
2171
2199
  modelValue: l.value,
2172
- "onUpdate:modelValue": v[0] || (v[0] = (N) => l.value = N),
2200
+ "onUpdate:modelValue": S[0] || (S[0] = (G) => l.value = G),
2173
2201
  "item-key": "value",
2174
2202
  class: "hb-lib-table-set-drag",
2175
2203
  "ghost-class": "ghost",
2176
2204
  animation: "200",
2177
2205
  handle: ".drag-handle",
2178
- onStart: b,
2206
+ onStart: h,
2179
2207
  onEnd: P
2180
2208
  }, {
2181
- item: u(({ element: N }) => [
2182
- N.fixed !== "right" ? (n(), w("div", fa, [
2183
- F(k(je), {
2184
- checked: N.checked,
2185
- onChange: (X) => B(N, X.target.checked)
2209
+ item: u(({ element: G }) => [
2210
+ G.fixed !== "right" ? (n(), L("div", fa, [
2211
+ x(w(je), {
2212
+ checked: G.checked,
2213
+ onChange: (H) => m(
2214
+ G,
2215
+ H.target.checked
2216
+ )
2186
2217
  }, {
2187
2218
  default: u(() => [
2188
- O(x(N.label), 1)
2219
+ O(k(G.label), 1)
2189
2220
  ]),
2190
2221
  _: 2
2191
2222
  }, 1032, ["checked", "onChange"]),
2192
- N.checked ? (n(), w("section", pa, [
2223
+ G.checked ? (n(), L("section", pa, [
2193
2224
  p("span", {
2194
- class: J(N.fixed ? "drag-hide" : "drag-handle")
2195
- }, "⋮⋮", 2),
2196
- N.fixed ? (n(), R(_, { key: 0 }, {
2225
+ class: Q(
2226
+ G.fixed ? "drag-hide" : "drag-handle"
2227
+ )
2228
+ }, " ⋮⋮ ", 2),
2229
+ G.fixed ? (n(), V(N, { key: 0 }, {
2197
2230
  title: u(() => [
2198
- O(x(k(a)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
2231
+ O(k(w(a)(
2232
+ "hbLibComp.hbLibListTableColumsSet.cancelFix"
2233
+ )), 1)
2199
2234
  ]),
2200
2235
  default: u(() => [
2201
2236
  p("span", {
2202
2237
  class: "hb-lib-table-drag-item-act-btn",
2203
- onClick: (X) => H(N)
2204
- }, [...v[2] || (v[2] = [
2238
+ onClick: (H) => T(G)
2239
+ }, [...S[2] || (S[2] = [
2205
2240
  p("svg", {
2206
2241
  t: "1759048615600",
2207
2242
  class: "icon",
@@ -2221,16 +2256,18 @@ const aa = {
2221
2256
  ])], 8, ma)
2222
2257
  ]),
2223
2258
  _: 2
2224
- }, 1024)) : A("", !0),
2225
- N.fixed ? A("", !0) : (n(), R(_, { key: 1 }, {
2259
+ }, 1024)) : B("", !0),
2260
+ G.fixed ? B("", !0) : (n(), V(N, { key: 1 }, {
2226
2261
  title: u(() => [
2227
- O(x(k(a)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
2262
+ O(k(w(a)(
2263
+ "hbLibComp.hbLibListTableColumsSet.fix"
2264
+ )), 1)
2228
2265
  ]),
2229
2266
  default: u(() => [
2230
2267
  p("span", {
2231
2268
  class: "hb-lib-table-drag-item-act-btn",
2232
- onClick: (X) => S(N)
2233
- }, [...v[3] || (v[3] = [
2269
+ onClick: (H) => M(G)
2270
+ }, [...S[3] || (S[3] = [
2234
2271
  p("svg", {
2235
2272
  t: "1759048735643",
2236
2273
  class: "icon",
@@ -2251,51 +2288,51 @@ const aa = {
2251
2288
  ]),
2252
2289
  _: 2
2253
2290
  }, 1024))
2254
- ])) : A("", !0)
2255
- ])) : A("", !0)
2291
+ ])) : B("", !0)
2292
+ ])) : B("", !0)
2256
2293
  ]),
2257
2294
  _: 1
2258
2295
  }, 8, ["modelValue"]),
2259
2296
  p("div", ha, [
2260
2297
  p("div", va, [
2261
- F(k(je), {
2298
+ x(w(je), {
2262
2299
  checked: f.value,
2263
- indeterminate: L.value,
2300
+ indeterminate: _.value,
2264
2301
  onChange: I
2265
2302
  }, {
2266
2303
  default: u(() => [
2267
- O(x(k(a)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
2304
+ O(k(w(a)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
2268
2305
  ]),
2269
2306
  _: 1
2270
2307
  }, 8, ["checked", "indeterminate"])
2271
2308
  ]),
2272
- d.localColumns.length ? (n(), R(T, {
2309
+ d.localColumns.length ? (n(), V(q, {
2273
2310
  key: 0,
2274
2311
  style: { "margin-right": "6px" },
2275
- onClick: V
2312
+ onClick: v
2276
2313
  }, {
2277
2314
  default: u(() => [
2278
- O(x(k(a)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
2315
+ O(k(w(a)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
2279
2316
  ]),
2280
2317
  _: 1
2281
- })) : A("", !0),
2282
- F(T, {
2283
- onClick: h,
2284
- type: "primary"
2318
+ })) : B("", !0),
2319
+ x(q, {
2320
+ type: "primary",
2321
+ onClick: y
2285
2322
  }, {
2286
2323
  default: u(() => [
2287
- O(x(k(a)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
2324
+ O(k(w(a)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
2288
2325
  ]),
2289
2326
  _: 1
2290
2327
  })
2291
2328
  ])
2292
2329
  ]),
2293
2330
  default: u(() => [
2294
- F(_, {
2295
- title: k(a)("hbLibComp.hbLibListTableColumsSet.title"),
2331
+ x(N, {
2332
+ title: w(a)("hbLibComp.hbLibListTableColumsSet.title"),
2296
2333
  placement: "leftTop"
2297
2334
  }, {
2298
- default: u(() => [...v[4] || (v[4] = [
2335
+ default: u(() => [...S[4] || (S[4] = [
2299
2336
  p("span", { class: "hb-lib-table-col-set" }, [
2300
2337
  p("svg", {
2301
2338
  t: "1759041858618",
@@ -2324,11 +2361,11 @@ const aa = {
2324
2361
  }, 8, ["title"])
2325
2362
  ]),
2326
2363
  _: 1
2327
- }, 8, ["title", "visible"])
2364
+ }, 8, ["visible", "title"])
2328
2365
  ]);
2329
2366
  };
2330
2367
  }
2331
- }), ya = /* @__PURE__ */ oe(ga, [["__scopeId", "data-v-07a63550"]]), _a = Z(ya), La = /* @__PURE__ */ te({
2368
+ }), ya = /* @__PURE__ */ le(ga, [["__scopeId", "data-v-5dd5443c"]]), _a = ee(ya), La = /* @__PURE__ */ oe({
2332
2369
  name: "HbLibFormTooltipSelect",
2333
2370
  inheritAttrs: !1,
2334
2371
  __name: "HbTooltipSelect",
@@ -2347,14 +2384,14 @@ const aa = {
2347
2384
  emits: ["update:value"],
2348
2385
  setup(e, { expose: o }) {
2349
2386
  const t = e, a = Zt(), d = $(() => {
2350
- const I = a, V = I.dropdownClassName;
2387
+ const I = a, W = I.dropdownClassName;
2351
2388
  return {
2352
2389
  ...I,
2353
- dropdownClassName: V ?? "hb_lib_form_tooltip_select__dropdown"
2390
+ dropdownClassName: W ?? "hb_lib_form_tooltip_select__dropdown"
2354
2391
  };
2355
2392
  }), s = E(), c = Ot(e, "value"), r = $(() => t.options ?? []), l = $(() => ({
2356
2393
  maxWidth: typeof t.tooltipMaxWidth == "number" ? `${t.tooltipMaxWidth}px` : t.tooltipMaxWidth
2357
- })), i = (I) => I.tooltip ?? I.label, f = (I) => I.key ?? I.label, L = (I) => !!(t.enableTooltip && i(I));
2394
+ })), i = (I) => I.tooltip ?? I.label, f = (I) => I.key ?? I.label, _ = (I) => !!(t.enableTooltip && i(I));
2358
2395
  return o({
2359
2396
  focus: () => {
2360
2397
  s.value?.focus?.();
@@ -2363,37 +2400,37 @@ const aa = {
2363
2400
  s.value?.blur?.();
2364
2401
  },
2365
2402
  selectRef: s
2366
- }), (I, V) => (n(), R(k(tt), ee({
2403
+ }), (I, W) => (n(), V(w(tt), te({
2367
2404
  ref_key: "selectRef",
2368
2405
  ref: s
2369
2406
  }, d.value, {
2370
2407
  value: c.value,
2371
- "onUpdate:value": V[0] || (V[0] = (B) => c.value = B),
2408
+ "onUpdate:value": W[0] || (W[0] = (A) => c.value = A),
2372
2409
  class: "hb_lib_form_tooltip_select"
2373
2410
  }), {
2374
2411
  default: u(() => [
2375
- I.$slots.default ? q(I.$slots, "default", { key: 0 }, void 0, !0) : (n(!0), w(G, { key: 1 }, me(r.value, (B) => (n(), R(k(ot), ee({
2376
- key: f(B),
2377
- value: B.value,
2378
- disabled: B.disabled
2379
- }, { ref_for: !0 }, B.optionProps), {
2412
+ I.$slots.default ? Y(I.$slots, "default", { key: 0 }, void 0, !0) : (n(!0), L(X, { key: 1 }, me(r.value, (A) => (n(), V(w(ot), te({
2413
+ key: f(A),
2414
+ value: A.value,
2415
+ disabled: A.disabled
2416
+ }, { ref_for: !0 }, A.optionProps), {
2380
2417
  default: u(() => [
2381
- L(B) ? (n(), R(k(We), {
2418
+ _(A) ? (n(), V(w(We), {
2382
2419
  key: 0,
2383
- title: i(B),
2420
+ title: i(A),
2384
2421
  placement: t.tooltipPlacement,
2385
2422
  "overlay-style": l.value
2386
2423
  }, {
2387
2424
  default: u(() => [
2388
2425
  p("span", {
2389
- class: J(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
2390
- }, x(B.label), 3)
2426
+ class: Q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
2427
+ }, k(A.label), 3)
2391
2428
  ]),
2392
2429
  _: 2
2393
- }, 1032, ["title", "placement", "overlay-style"])) : (n(), w("span", {
2430
+ }, 1032, ["title", "placement", "overlay-style"])) : (n(), L("span", {
2394
2431
  key: 1,
2395
- class: J(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
2396
- }, x(B.label), 3))
2432
+ class: Q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
2433
+ }, k(A.label), 3))
2397
2434
  ]),
2398
2435
  _: 2
2399
2436
  }, 1040, ["value", "disabled"]))), 128))
@@ -2401,10 +2438,10 @@ const aa = {
2401
2438
  _: 3
2402
2439
  }, 16, ["value"]));
2403
2440
  }
2404
- }), wa = /* @__PURE__ */ oe(La, [["__scopeId", "data-v-13285691"]]), Ca = Z(wa), ka = { class: "ant-upload-drag-icon" }, Sa = { class: "ant-upload-text" }, xa = { style: { color: "#ff5000" } }, Ta = { class: "ant-upload-hint" }, Fa = {
2441
+ }), wa = /* @__PURE__ */ le(La, [["__scopeId", "data-v-13285691"]]), Ca = ee(wa), ka = { class: "ant-upload-drag-icon" }, Sa = { class: "ant-upload-text" }, xa = { style: { color: "#ff5000" } }, Ta = { class: "ant-upload-hint" }, Fa = {
2405
2442
  key: 0,
2406
2443
  class: "hb_import_btn"
2407
- }, Ha = ["href"], $a = /* @__PURE__ */ te({
2444
+ }, Ha = ["href"], $a = /* @__PURE__ */ oe({
2408
2445
  name: "HbLibImportFile",
2409
2446
  __name: "HbImportFile",
2410
2447
  props: {
@@ -2423,58 +2460,58 @@ const aa = {
2423
2460
  const { t } = ye(), a = E(), d = e, s = E(!1), c = Ne({
2424
2461
  fileList: [],
2425
2462
  visible: !1
2426
- }), r = (b) => {
2427
- if (b == null)
2463
+ }), r = (h) => {
2464
+ if (h == null)
2428
2465
  return;
2429
- const P = c.fileList.indexOf(b);
2466
+ const P = c.fileList.indexOf(h);
2430
2467
  if (P !== -1) {
2431
2468
  const I = c.fileList.slice();
2432
2469
  I.splice(P, 1), c.fileList = I;
2433
2470
  }
2434
2471
  }, l = () => {
2435
2472
  c.visible = !1, c.fileList = [], s.value = !1;
2436
- }, i = (b) => (c.fileList = [b], d.beforeUpload ? d.beforeUpload(b.originFileObj) : !1), f = () => {
2473
+ }, i = (h) => (c.fileList = [h], d.beforeUpload ? d.beforeUpload(h.originFileObj) : !1), f = () => {
2437
2474
  a.value.validateFields().then(() => {
2438
2475
  d.beforeSubmit && (s.value = !0, d.beforeSubmit(c.fileList).then(() => {
2439
2476
  }).finally(() => {
2440
2477
  s.value = !1;
2441
2478
  }));
2442
2479
  });
2443
- }, L = () => {
2480
+ }, _ = () => {
2444
2481
  c.visible = !0;
2445
2482
  };
2446
2483
  return o({
2447
2484
  handleCancel: l,
2448
- openModal: L,
2485
+ openModal: _,
2449
2486
  // 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
2450
2487
  confirmLoading: s
2451
- }), (b, P) => {
2452
- const I = j("a-upload-dragger"), V = j("a-form-item"), B = j("a-form"), h = j("a-modal"), m = j("a-button");
2453
- return n(), w(G, null, [
2454
- F(h, ee({
2488
+ }), (h, P) => {
2489
+ const I = j("a-upload-dragger"), W = j("a-form-item"), A = j("a-form"), v = j("a-modal"), m = j("a-button");
2490
+ return n(), L(X, null, [
2491
+ x(v, te({
2455
2492
  visible: c.visible,
2456
2493
  "onUpdate:visible": P[0] || (P[0] = (y) => c.visible = y),
2457
2494
  title: d.title,
2458
2495
  "confirm-loading": s.value
2459
- }, b.$attrs, {
2496
+ }, h.$attrs, {
2460
2497
  width: d.modalWidth,
2461
2498
  onCancel: l,
2462
2499
  onOk: f
2463
2500
  }), {
2464
2501
  default: u(() => [
2465
- F(B, {
2502
+ x(A, {
2466
2503
  ref_key: "modalFormRef",
2467
2504
  ref: a,
2468
2505
  model: c
2469
2506
  }, {
2470
2507
  default: u(() => [
2471
- F(V, {
2508
+ x(W, {
2472
2509
  name: "fileList",
2473
- label: k(t)("hbLibComp.HbImportFile.fileLabel"),
2474
- rules: [{ required: d.isRequired, message: k(t)("hbLibComp.HbImportFile.clickUp") }]
2510
+ label: w(t)("hbLibComp.HbImportFile.fileLabel"),
2511
+ rules: [{ required: d.isRequired, message: w(t)("hbLibComp.HbImportFile.clickUp") }]
2475
2512
  }, {
2476
2513
  default: u(() => [
2477
- F(I, {
2514
+ x(I, {
2478
2515
  "max-count": d.maxCount,
2479
2516
  multiple: d.multiple,
2480
2517
  accept: d.acceptFile,
@@ -2485,13 +2522,13 @@ const aa = {
2485
2522
  }, {
2486
2523
  default: u(() => [
2487
2524
  p("p", ka, [
2488
- F(k(ho), { style: { "font-size": "37px" } })
2525
+ x(w(ho), { style: { "font-size": "37px" } })
2489
2526
  ]),
2490
2527
  p("p", Sa, [
2491
- O(x(k(t)("hbLibComp.HbImportFile.uploadText")), 1),
2492
- p("span", xa, x(k(t)("hbLibComp.HbImportFile.clickUp")), 1)
2528
+ O(k(w(t)("hbLibComp.HbImportFile.uploadText")), 1),
2529
+ p("span", xa, k(w(t)("hbLibComp.HbImportFile.clickUp")), 1)
2493
2530
  ]),
2494
- p("p", Ta, x(k(t)("hbLibComp.HbFileUploadModal.format")) + ": " + x(d.acceptFile), 1)
2531
+ p("p", Ta, k(w(t)("hbLibComp.HbFileUploadModal.format")) + ": " + k(d.acceptFile), 1)
2495
2532
  ]),
2496
2533
  _: 1
2497
2534
  }, 8, ["max-count", "multiple", "accept", "file-list"])
@@ -2501,22 +2538,22 @@ const aa = {
2501
2538
  ]),
2502
2539
  _: 1
2503
2540
  }, 8, ["model"]),
2504
- d.templateUrl ? (n(), w("p", Fa, [
2541
+ d.templateUrl ? (n(), L("p", Fa, [
2505
2542
  p("a", {
2506
2543
  download: "Import_number-template.xlsx",
2507
2544
  href: d.templateUrl
2508
- }, x(k(t)("hbLibComp.HbImportFile.downloadTemplate")), 9, Ha)
2509
- ])) : A("", !0)
2545
+ }, k(w(t)("hbLibComp.HbImportFile.downloadTemplate")), 9, Ha)
2546
+ ])) : B("", !0)
2510
2547
  ]),
2511
2548
  _: 1
2512
2549
  }, 16, ["visible", "title", "confirm-loading", "width"]),
2513
- q(b.$slots, "btn", {}, () => [
2514
- F(m, {
2550
+ Y(h.$slots, "btn", {}, () => [
2551
+ x(m, {
2515
2552
  type: "primary",
2516
- onClick: L
2553
+ onClick: _
2517
2554
  }, {
2518
2555
  default: u(() => [
2519
- O(x(e.btnText), 1)
2556
+ O(k(e.btnText), 1)
2520
2557
  ]),
2521
2558
  _: 1
2522
2559
  })
@@ -2524,7 +2561,7 @@ const aa = {
2524
2561
  ], 64);
2525
2562
  };
2526
2563
  }
2527
- }), Ia = /* @__PURE__ */ oe($a, [["__scopeId", "data-v-a11cda0f"]]), Ma = Z(Ia), Da = { class: "hb_lib_log_modal_content" }, Aa = { class: "log_remark" }, Ba = /* @__PURE__ */ te({
2564
+ }), Ia = /* @__PURE__ */ le($a, [["__scopeId", "data-v-a11cda0f"]]), Ma = ee(Ia), Da = { class: "hb_lib_log_modal_content" }, Aa = { class: "log_remark" }, Ba = /* @__PURE__ */ oe({
2528
2565
  name: "HbLibLogModal",
2529
2566
  __name: "HbLogModal",
2530
2567
  props: {
@@ -2558,7 +2595,7 @@ const aa = {
2558
2595
  width: "25%"
2559
2596
  },
2560
2597
  { title: a("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
2561
- ], r = $(() => s.columns || c), l = $(() => s.title || a("hbLibComp.HbLogModal.operateLogs")), i = $(() => !!d.title), f = E(!1), L = Ne({
2598
+ ], r = $(() => s.columns || c), l = $(() => s.title || a("hbLibComp.HbLogModal.operateLogs")), i = $(() => !!d.title), f = E(!1), _ = Ne({
2562
2599
  list: [],
2563
2600
  pagination: {
2564
2601
  current: 1,
@@ -2573,8 +2610,8 @@ const aa = {
2573
2610
  ie(
2574
2611
  () => s.pagination,
2575
2612
  (m) => {
2576
- m && (L.pagination = {
2577
- ...L.pagination,
2613
+ m && (_.pagination = {
2614
+ ..._.pagination,
2578
2615
  ...m
2579
2616
  });
2580
2617
  },
@@ -2583,36 +2620,36 @@ const aa = {
2583
2620
  immediate: !0
2584
2621
  }
2585
2622
  );
2586
- const b = () => {
2623
+ const h = () => {
2587
2624
  const m = {
2588
- pageIndex: L.pagination.current,
2589
- pageSize: L.pagination.pageSize,
2625
+ pageIndex: _.pagination.current,
2626
+ pageSize: _.pagination.pageSize,
2590
2627
  query: s.params
2591
2628
  };
2592
2629
  s.getLogData && (f.value = !0, s.getLogData(m).then((y) => {
2593
- Number(y.code) == 200 ? (L.pagination.total = Number(y.data.total), L.list = y.data[s.dataStr] || []) : Le.error(y.message);
2630
+ Number(y.code) == 200 ? (_.pagination.total = Number(y.data.total), _.list = y.data[s.dataStr] || []) : Le.error(y.message);
2594
2631
  }).finally(() => {
2595
2632
  f.value = !1;
2596
2633
  }));
2597
2634
  }, P = (m) => {
2598
- L.pagination.current = m.current, L.pagination.pageSize = m.pageSize, b();
2635
+ _.pagination.current = m.current, _.pagination.pageSize = m.pageSize, h();
2599
2636
  }, I = () => {
2600
- L.list = [], h("update:visible", !1);
2601
- }, V = () => {
2602
- h("update:visible", !0);
2603
- }, B = (m, y = "YYYY-MM-DD HH:mm:ss") => m ? Ke(m).format(y) : "", h = t;
2637
+ _.list = [], v("update:visible", !1);
2638
+ }, W = () => {
2639
+ v("update:visible", !0);
2640
+ }, A = (m, y = "YYYY-MM-DD HH:mm:ss") => m ? Ke(m).format(y) : "", v = t;
2604
2641
  return ie(
2605
2642
  () => s.visible,
2606
2643
  (m) => {
2607
- m && b();
2644
+ m && h();
2608
2645
  }
2609
2646
  ), o({
2610
2647
  close: I,
2611
2648
  loading: f
2612
2649
  }), (m, y) => {
2613
- const H = j("a-tooltip"), S = j("HbLibCopy"), C = j("a-table"), v = j("a-button"), _ = j("HbLibModal");
2614
- return n(), w(G, null, [
2615
- F(_, ee(m.$attrs, {
2650
+ const F = j("a-tooltip"), C = j("HbLibCopy"), T = j("a-table"), M = j("a-button"), b = j("HbLibModal");
2651
+ return n(), L(X, null, [
2652
+ x(b, te(m.$attrs, {
2616
2653
  visible: e.visible,
2617
2654
  title: i.value ? void 0 : l.value,
2618
2655
  width: e.width,
@@ -2622,55 +2659,55 @@ const aa = {
2622
2659
  onCancel: I
2623
2660
  }), Pe({
2624
2661
  footer: u(() => [
2625
- F(v, { onClick: I }, {
2662
+ x(M, { onClick: I }, {
2626
2663
  default: u(() => [
2627
- O(x(k(a)("hbLibComp.HbLogModal.close")), 1)
2664
+ O(k(w(a)("hbLibComp.HbLogModal.close")), 1)
2628
2665
  ]),
2629
2666
  _: 1
2630
2667
  })
2631
2668
  ]),
2632
2669
  default: u(() => [
2633
2670
  p("div", Da, [
2634
- F(C, {
2671
+ x(T, {
2635
2672
  bordered: "",
2636
2673
  rowKey: "id",
2637
2674
  columns: r.value,
2638
- dataSource: L.list,
2639
- pagination: L.pagination,
2675
+ dataSource: _.list,
2676
+ pagination: _.pagination,
2640
2677
  loading: f.value,
2641
2678
  scroll: { y: e.scrollY },
2642
2679
  onChange: P
2643
2680
  }, Pe({
2644
- bodyCell: u(({ column: T, record: N }) => [
2645
- T && T.needTooltip ? (n(), w(G, { key: 0 }, [
2646
- T.needTooltip ? (n(), R(H, { key: 0 }, {
2681
+ bodyCell: u(({ column: S, record: N }) => [
2682
+ S && S.needTooltip ? (n(), L(X, { key: 0 }, [
2683
+ S.needTooltip ? (n(), V(F, { key: 0 }, {
2647
2684
  title: u(() => [
2648
- O(x(N[T.dataIndex]), 1)
2685
+ O(k(N[S.dataIndex]), 1)
2649
2686
  ]),
2650
2687
  default: u(() => [
2651
- O(" " + x(N[T.dataIndex]), 1)
2688
+ O(" " + k(N[S.dataIndex]), 1)
2652
2689
  ]),
2653
2690
  _: 2
2654
- }, 1024)) : A("", !0)
2655
- ], 64)) : A("", !0),
2656
- T && T.needCopy ? (n(), w(G, { key: 1 }, [
2657
- p("div", Aa, x(N[T.dataIndex]), 1),
2658
- F(S, {
2659
- "cp-text": N[T.dataIndex],
2691
+ }, 1024)) : B("", !0)
2692
+ ], 64)) : B("", !0),
2693
+ S && S.needCopy ? (n(), L(X, { key: 1 }, [
2694
+ p("div", Aa, k(N[S.dataIndex]), 1),
2695
+ x(C, {
2696
+ "cp-text": N[S.dataIndex],
2660
2697
  style: { position: "relative" }
2661
2698
  }, null, 8, ["cp-text"])
2662
- ], 64)) : A("", !0),
2663
- T && T.needFormat ? (n(), w(G, { key: 2 }, [
2664
- O(x(B(N[T.dataIndex], T.operateTime)), 1)
2665
- ], 64)) : A("", !0)
2699
+ ], 64)) : B("", !0),
2700
+ S && S.needFormat ? (n(), L(X, { key: 2 }, [
2701
+ O(k(A(N[S.dataIndex], S.operateTime)), 1)
2702
+ ], 64)) : B("", !0)
2666
2703
  ]),
2667
2704
  _: 2
2668
2705
  }, [
2669
2706
  m.$slots.headerCell ? {
2670
2707
  name: "headerCell",
2671
- fn: u(({ column: T }) => [
2672
- q(m.$slots, "headerCell", { column: T }, () => [
2673
- O(x(T.title), 1)
2708
+ fn: u(({ column: S }) => [
2709
+ Y(m.$slots, "headerCell", { column: S }, () => [
2710
+ O(k(S.title), 1)
2674
2711
  ], !0)
2675
2712
  ]),
2676
2713
  key: "0"
@@ -2683,23 +2720,23 @@ const aa = {
2683
2720
  i.value ? {
2684
2721
  name: "title",
2685
2722
  fn: u(() => [
2686
- q(m.$slots, "title", {}, void 0, !0)
2723
+ Y(m.$slots, "title", {}, void 0, !0)
2687
2724
  ]),
2688
2725
  key: "0"
2689
2726
  } : void 0
2690
2727
  ]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
2691
- e.needBtn ? q(m.$slots, "default", { key: 0 }, () => [
2692
- F(v, { onClick: V }, {
2728
+ e.needBtn ? Y(m.$slots, "default", { key: 0 }, () => [
2729
+ x(M, { onClick: W }, {
2693
2730
  default: u(() => [
2694
- O(x(e.logBtnText), 1)
2731
+ O(k(e.logBtnText), 1)
2695
2732
  ]),
2696
2733
  _: 1
2697
2734
  })
2698
- ], !0) : A("", !0)
2735
+ ], !0) : B("", !0)
2699
2736
  ], 64);
2700
2737
  };
2701
2738
  }
2702
- }), Oa = /* @__PURE__ */ oe(Ba, [["__scopeId", "data-v-ac23253c"]]), Ea = Z(Oa), Pa = {
2739
+ }), Oa = /* @__PURE__ */ le(Ba, [["__scopeId", "data-v-ac23253c"]]), Ea = ee(Oa), Pa = {
2703
2740
  // 图片上传组件的配置
2704
2741
  importFile: {
2705
2742
  isRequired: !1,
@@ -2741,7 +2778,7 @@ const aa = {
2741
2778
  // 表单距离底部的距离
2742
2779
  formItemMb: 10
2743
2780
  }
2744
- }, Na = { class: "hb_ui_config" }, Ua = /* @__PURE__ */ te({
2781
+ }, Na = { class: "hb_ui_config" }, Ua = /* @__PURE__ */ oe({
2745
2782
  name: "HbUiConfig",
2746
2783
  __name: "hbUiConfig",
2747
2784
  props: {
@@ -2756,14 +2793,14 @@ const aa = {
2756
2793
  t = Ne(co({}, Pa, a));
2757
2794
  },
2758
2795
  { deep: !0, immediate: !0 }
2759
- ), Bt(rt, t), (a, d) => (n(), w("div", Na, [
2760
- q(a.$slots, "default")
2796
+ ), Bt(rt, t), (a, d) => (n(), L("div", Na, [
2797
+ Y(a.$slots, "default")
2761
2798
  ]));
2762
2799
  }
2763
- }), rt = Symbol("GLOBAL_CONFIG_KEY"), za = Z(Ua), Ra = { class: "hb_card" }, Va = {
2800
+ }), rt = Symbol("GLOBAL_CONFIG_KEY"), za = ee(Ua), Ra = { class: "hb_card" }, Va = {
2764
2801
  key: 0,
2765
2802
  class: "hb_card_header"
2766
- }, Wa = { class: "hb_fix" }, ja = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ya = { class: "hb_card_body" }, Ka = /* @__PURE__ */ te({
2803
+ }, Wa = { class: "hb_fix" }, ja = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ya = { class: "hb_card_body" }, Ka = /* @__PURE__ */ oe({
2767
2804
  name: "HbLibCard",
2768
2805
  __name: "HbLibCard",
2769
2806
  props: {
@@ -2797,26 +2834,26 @@ const aa = {
2797
2834
  let d = t.formItemMb || o?.HbLibCard?.formItemMb;
2798
2835
  return d ? { "--hb-card-form-item-mb": d + "px" } : {};
2799
2836
  });
2800
- return (d, s) => (n(), w("div", ee({ class: "hb_card_wrapper" }, d.$attrs), [
2837
+ return (d, s) => (n(), L("div", te({ class: "hb_card_wrapper" }, d.$attrs), [
2801
2838
  p("div", {
2802
- class: J(e.isModal ? "modal__module-card" : "__module-card")
2839
+ class: Q(e.isModal ? "modal__module-card" : "__module-card")
2803
2840
  }, [
2804
2841
  p("div", Ra, [
2805
- e.cardTitle ? (n(), w("div", Va, [
2842
+ e.cardTitle ? (n(), L("div", Va, [
2806
2843
  p("div", Wa, [
2807
2844
  p("span", ja, [
2808
- q(d.$slots, "cardTitle", {}, () => [
2809
- O(x(e.cardTitle), 1)
2845
+ Y(d.$slots, "cardTitle", {}, () => [
2846
+ O(k(e.cardTitle), 1)
2810
2847
  ], !0)
2811
2848
  ]),
2812
2849
  p("div", qa, [
2813
- q(d.$slots, "cardAct", {}, void 0, !0)
2850
+ Y(d.$slots, "cardAct", {}, void 0, !0)
2814
2851
  ])
2815
2852
  ])
2816
- ])) : A("", !0),
2853
+ ])) : B("", !0),
2817
2854
  p("div", Ya, [
2818
2855
  p("section", {
2819
- class: J({
2856
+ class: Q({
2820
2857
  hb_card_form: e.isForm && !e.isModal,
2821
2858
  hb_card_flex_form: e.isForm && e.isModal,
2822
2859
  l1c: e.layout == 1,
@@ -2825,17 +2862,17 @@ const aa = {
2825
2862
  }),
2826
2863
  style: ve(a.value)
2827
2864
  }, [
2828
- q(d.$slots, "default", {}, void 0, !0)
2865
+ Y(d.$slots, "default", {}, void 0, !0)
2829
2866
  ], 6)
2830
2867
  ])
2831
2868
  ])
2832
2869
  ], 2)
2833
2870
  ], 16));
2834
2871
  }
2835
- }), Ga = /* @__PURE__ */ oe(Ka, [["__scopeId", "data-v-4d8c1b1b"]]), Ja = Z(Ga), Xa = ["onClick"], Qa = { class: "step" }, Za = {
2872
+ }), Ga = /* @__PURE__ */ le(Ka, [["__scopeId", "data-v-4d8c1b1b"]]), Ja = ee(Ga), Xa = ["onClick"], Qa = { class: "step" }, Za = {
2836
2873
  key: 0,
2837
2874
  class: "line"
2838
- }, en = ["title"], tn = /* @__PURE__ */ te({
2875
+ }, en = ["title"], tn = /* @__PURE__ */ oe({
2839
2876
  name: "HbLibAnchor",
2840
2877
  __name: "HbLibAnchor",
2841
2878
  props: {
@@ -2848,20 +2885,20 @@ const aa = {
2848
2885
  const l = o.containerSelector || "#subpackage_container";
2849
2886
  return document.querySelector(l) || window;
2850
2887
  }, c = (l) => {
2851
- const i = s(), f = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`, L = document.querySelector(f);
2852
- if (!L) return;
2853
- let b = L.offsetTop;
2854
- i instanceof HTMLElement && (b -= i.offsetTop), b -= a, i instanceof Window ? window.scrollTo({ top: b, behavior: "smooth" }) : i.scrollTo({ top: b, behavior: "smooth" }), t.value = l.target;
2888
+ const i = s(), f = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`, _ = document.querySelector(f);
2889
+ if (!_) return;
2890
+ let h = _.offsetTop;
2891
+ i instanceof HTMLElement && (h -= i.offsetTop), h -= a, i instanceof Window ? window.scrollTo({ top: h, behavior: "smooth" }) : i.scrollTo({ top: h, behavior: "smooth" }), t.value = l.target;
2855
2892
  }, r = () => {
2856
2893
  const l = s();
2857
2894
  let i = 0;
2858
2895
  l instanceof Window ? i = window.scrollY + a + 5 : i = l.scrollTop + a + 5;
2859
2896
  let f = d.value[0]?.target || "";
2860
- for (const L of d.value) {
2861
- const b = L.target.startsWith("#") || L.target.startsWith(".") ? L.target : `#${L.target}`, P = document.querySelector(b);
2897
+ for (const _ of d.value) {
2898
+ const h = _.target.startsWith("#") || _.target.startsWith(".") ? _.target : `#${_.target}`, P = document.querySelector(h);
2862
2899
  if (!P) continue;
2863
2900
  let I = P.offsetTop;
2864
- l instanceof HTMLElement && (I -= l.offsetTop), i >= I && (f = L.target);
2901
+ l instanceof HTMLElement && (I -= l.offsetTop), i >= I && (f = _.target);
2865
2902
  }
2866
2903
  t.value = f;
2867
2904
  };
@@ -2869,27 +2906,27 @@ const aa = {
2869
2906
  s().addEventListener("scroll", r), r();
2870
2907
  }), nt(() => {
2871
2908
  s().removeEventListener("scroll", r);
2872
- }), (l, i) => (n(), w("div", {
2909
+ }), (l, i) => (n(), L("div", {
2873
2910
  class: "anchors",
2874
- style: ve({ top: `${k(a)}px` })
2911
+ style: ve({ top: `${w(a)}px` })
2875
2912
  }, [
2876
- (n(!0), w(G, null, me(d.value, (f, L) => (n(), w("div", {
2913
+ (n(!0), L(X, null, me(d.value, (f, _) => (n(), L("div", {
2877
2914
  key: f.target,
2878
- class: J(["anchor-item", { isActive: t.value === f.target }]),
2879
- onClick: (b) => c(f)
2915
+ class: Q(["anchor-item", { isActive: t.value === f.target }]),
2916
+ onClick: (h) => c(f)
2880
2917
  }, [
2881
2918
  p("div", Qa, [
2882
- L !== d.value.length - 1 ? (n(), w("div", Za)) : A("", !0),
2919
+ _ !== d.value.length - 1 ? (n(), L("div", Za)) : B("", !0),
2883
2920
  i[0] || (i[0] = p("div", { class: "circle" }, null, -1))
2884
2921
  ]),
2885
2922
  p("span", {
2886
2923
  class: "title",
2887
2924
  title: f.title
2888
- }, x(f.title.length > 12 ? f.title.slice(0, 12) + "..." : f.title), 9, en)
2925
+ }, k(f.title.length > 12 ? f.title.slice(0, 12) + "..." : f.title), 9, en)
2889
2926
  ], 10, Xa))), 128))
2890
2927
  ], 4));
2891
2928
  }
2892
- }), on = /* @__PURE__ */ oe(tn, [["__scopeId", "data-v-d51548d8"]]), ln = Z(on), an = { class: "hb_detail_top_act_left" }, nn = {
2929
+ }), on = /* @__PURE__ */ le(tn, [["__scopeId", "data-v-d51548d8"]]), ln = ee(on), an = { class: "hb_detail_top_act_left" }, nn = {
2893
2930
  key: 1,
2894
2931
  class: "hb_detail_top_wrapper_sticky"
2895
2932
  }, sn = { class: "hb_detail_top_act" }, rn = {
@@ -2898,7 +2935,7 @@ const aa = {
2898
2935
  }, cn = { class: "hb_detail_all_info_left" }, dn = { class: "hb_detail_info_title" }, un = {
2899
2936
  key: 0,
2900
2937
  class: "hb_detail_info_content"
2901
- }, fn = { class: "create_by" }, pn = { class: "hb_detail_all_info_right" }, mn = { class: "hb_edit_detail_content_wrapper" }, bn = { class: "hb_detail_content" }, hn = { class: "hb-back-top-inner" }, vn = /* @__PURE__ */ te({
2938
+ }, fn = { class: "create_by" }, pn = { class: "hb_detail_all_info_right" }, mn = { class: "hb_edit_detail_content_wrapper" }, bn = { class: "hb_detail_content" }, hn = { class: "hb-back-top-inner" }, vn = /* @__PURE__ */ oe({
2902
2939
  name: "HbLibDetailBox",
2903
2940
  __name: "HbLibDetailBox",
2904
2941
  props: {
@@ -2963,23 +3000,23 @@ const aa = {
2963
3000
  const { t: o } = ye(), t = e, a = Ce(rt), d = () => {
2964
3001
  t.backFn ? t.backFn() : window.history.back();
2965
3002
  }, s = $(() => t.backTopBottom || a?.HbLibDetailBox?.backTopBottom || 80), c = $(() => {
2966
- const V = {};
3003
+ const W = {};
2967
3004
  return t.needFixWidth ? {
2968
3005
  hb_need_set_desc_label_width: t.descLabelWidth || a?.HbLibDetailBox?.descLabelWidth,
2969
3006
  hb_need_set_desc_value_width: t.descValueWidth || a?.HbLibDetailBox?.descValueWidth
2970
- } : V;
2971
- }), r = () => document.querySelector(t.container), l = E(!1), i = E(null), { top: f } = go(i), L = $(r), { y: b } = yo(L);
3007
+ } : W;
3008
+ }), r = () => document.querySelector(t.container), l = E(!1), i = E(null), { top: f } = go(i), _ = $(r), { y: h } = yo(_);
2972
3009
  ie(
2973
- b,
2974
- (V) => {
2975
- l.value = V > f.value;
3010
+ h,
3011
+ (W) => {
3012
+ l.value = W > f.value;
2976
3013
  },
2977
3014
  { immediate: !0 }
2978
3015
  );
2979
- const P = (V) => {
2980
- document.querySelectorAll(".hb_card_body").forEach((h) => {
2981
- h.querySelectorAll(".ant-descriptions-item-content span").forEach((y) => {
2982
- y.textContent?.trim() || (y.textContent = V);
3016
+ const P = (W) => {
3017
+ document.querySelectorAll(".hb_card_body").forEach((v) => {
3018
+ v.querySelectorAll(".ant-descriptions-item-content span").forEach((y) => {
3019
+ y.textContent?.trim() || (y.textContent = W);
2983
3020
  });
2984
3021
  });
2985
3022
  };
@@ -2990,71 +3027,71 @@ const aa = {
2990
3027
  }, a?.HbLibDetailBox?.setValuetimeOut));
2991
3028
  }), Be(() => {
2992
3029
  I && clearTimeout(I);
2993
- }), (V, B) => {
2994
- const h = j("RollbackOutlined"), m = j("a-divider"), y = j("a-spin");
2995
- return n(), R(y, { spinning: e.spinning }, {
3030
+ }), (W, A) => {
3031
+ const v = j("RollbackOutlined"), m = j("a-divider"), y = j("a-spin");
3032
+ return n(), V(y, { spinning: e.spinning }, {
2996
3033
  default: u(() => [
2997
3034
  p("div", {
2998
- class: J(["hb_detail_wrapper", c.value]),
3035
+ class: Q(["hb_detail_wrapper", c.value]),
2999
3036
  style: ve({
3000
3037
  "--hb-detail-desc-label-width": c.value?.hb_need_set_desc_label_width + "px",
3001
3038
  "--hb-detail-desc-value-width": c.value?.hb_need_set_desc_value_width + "px"
3002
3039
  })
3003
3040
  }, [
3004
- e.needTotalInfoBox ? (n(), w("div", {
3041
+ e.needTotalInfoBox ? (n(), L("div", {
3005
3042
  key: 0,
3006
- class: J(["hb_detail_top_act_sticky", l.value ? "can_show" : ""])
3043
+ class: Q(["hb_detail_top_act_sticky", l.value ? "can_show" : ""])
3007
3044
  }, [
3008
3045
  p("div", an, [
3009
- F(h, { style: { color: "#ff5000" } }),
3046
+ x(v, { style: { color: "#ff5000" } }),
3010
3047
  p("a", {
3011
3048
  href: "javascript:;",
3012
3049
  class: "ml6",
3013
3050
  onClick: d
3014
- }, x(k(o)("hbLibComp.HbLibDetailBox.back")), 1),
3015
- F(m, { type: "vertical" }),
3016
- p("span", null, x(e.stickyTitle), 1)
3051
+ }, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
3052
+ x(m, { type: "vertical" }),
3053
+ p("span", null, k(e.stickyTitle), 1)
3017
3054
  ]),
3018
- B[0] || (B[0] = p("div", { class: "hb_detail_top_act_right" }, null, -1))
3019
- ], 2)) : A("", !0),
3020
- e.needTotalInfoBox ? (n(), w("div", nn, [
3055
+ A[0] || (A[0] = p("div", { class: "hb_detail_top_act_right" }, null, -1))
3056
+ ], 2)) : B("", !0),
3057
+ e.needTotalInfoBox ? (n(), L("div", nn, [
3021
3058
  p("div", sn, [
3022
- F(h),
3059
+ x(v),
3023
3060
  p("a", {
3024
3061
  href: "javascript:;",
3025
3062
  class: "ml6",
3026
3063
  onClick: d
3027
- }, x(k(o)("hbLibComp.HbLibDetailBox.back")), 1),
3028
- F(m, { type: "vertical" }),
3029
- p("span", null, x(e.stickyTitle), 1)
3064
+ }, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
3065
+ x(m, { type: "vertical" }),
3066
+ p("span", null, k(e.stickyTitle), 1)
3030
3067
  ]),
3031
- e.needTotalInfoBox ? (n(), w("div", rn, [
3068
+ e.needTotalInfoBox ? (n(), L("div", rn, [
3032
3069
  p("aside", cn, [
3033
- q(V.$slots, "totalInfoLeft", {}, () => [
3034
- p("div", dn, x(e.totalInfo.totalInfoTitle), 1),
3035
- e.totalInfo.totalInfoSubTitle1 ? (n(), w("div", un, [
3036
- p("span", fn, x(e.totalInfo.totalInfoSubTitle1) + x(e.totalInfo.totalInfoSubVal1), 1),
3037
- p("span", null, x(e.totalInfo.totalInfoSubTitle2) + x(e.totalInfo.totalInfoSubVal2), 1)
3038
- ])) : A("", !0)
3070
+ Y(W.$slots, "totalInfoLeft", {}, () => [
3071
+ p("div", dn, k(e.totalInfo.totalInfoTitle), 1),
3072
+ e.totalInfo.totalInfoSubTitle1 ? (n(), L("div", un, [
3073
+ p("span", fn, k(e.totalInfo.totalInfoSubTitle1) + k(e.totalInfo.totalInfoSubVal1), 1),
3074
+ p("span", null, k(e.totalInfo.totalInfoSubTitle2) + k(e.totalInfo.totalInfoSubVal2), 1)
3075
+ ])) : B("", !0)
3039
3076
  ], !0)
3040
3077
  ]),
3041
3078
  p("aside", pn, [
3042
- q(V.$slots, "totalInfoRight", {}, void 0, !0)
3079
+ Y(W.$slots, "totalInfoRight", {}, void 0, !0)
3043
3080
  ])
3044
- ])) : A("", !0)
3045
- ])) : A("", !0),
3081
+ ])) : B("", !0)
3082
+ ])) : B("", !0),
3046
3083
  p("div", mn, [
3047
3084
  p("div", bn, [
3048
- q(V.$slots, "detailContent", {}, void 0, !0)
3085
+ Y(W.$slots, "detailContent", {}, void 0, !0)
3049
3086
  ])
3050
3087
  ]),
3051
- F(k(Ut), {
3088
+ x(w(Ut), {
3052
3089
  target: r,
3053
3090
  style: ve({ bottom: s.value + "px" })
3054
3091
  }, {
3055
3092
  default: u(() => [
3056
3093
  p("div", hn, [
3057
- F(k(zt))
3094
+ x(w(zt))
3058
3095
  ])
3059
3096
  ]),
3060
3097
  _: 1
@@ -3065,7 +3102,7 @@ const aa = {
3065
3102
  }, 8, ["spinning"]);
3066
3103
  };
3067
3104
  }
3068
- }), gn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-f2c2c397"]]), yn = Z(gn), _n = /* @__PURE__ */ te({
3105
+ }), gn = /* @__PURE__ */ le(vn, [["__scopeId", "data-v-f2c2c397"]]), yn = ee(gn), _n = /* @__PURE__ */ oe({
3069
3106
  name: "HbLibFooterBar",
3070
3107
  __name: "HbLibFooterBar",
3071
3108
  props: {
@@ -3110,14 +3147,14 @@ const aa = {
3110
3147
  onClick: t(i.onClick, i.debounceTime || 300)
3111
3148
  }))), d = E(0), s = (l) => {
3112
3149
  let i = 0;
3113
- return (Array.isArray(l) ? l : [l]).forEach((L) => {
3114
- let b = [];
3115
- if (L.startsWith("#")) {
3116
- const P = document.getElementById(L.slice(1));
3117
- P && b.push(P);
3150
+ return (Array.isArray(l) ? l : [l]).forEach((_) => {
3151
+ let h = [];
3152
+ if (_.startsWith("#")) {
3153
+ const P = document.getElementById(_.slice(1));
3154
+ P && h.push(P);
3118
3155
  } else
3119
- b = Array.from(document.getElementsByClassName(L));
3120
- b.forEach((P) => {
3156
+ h = Array.from(document.getElementsByClassName(_));
3157
+ h.forEach((P) => {
3121
3158
  i += P.offsetWidth || 0;
3122
3159
  });
3123
3160
  }), i;
@@ -3143,27 +3180,27 @@ const aa = {
3143
3180
  }), nt(() => {
3144
3181
  r && r.disconnect();
3145
3182
  }), (l, i) => {
3146
- const f = j("a-button"), L = j("a-space"), b = j("a-affix"), P = Et("has");
3147
- return n(), w("div", {
3183
+ const f = j("a-button"), _ = j("a-space"), h = j("a-affix"), P = Et("has");
3184
+ return n(), L("div", {
3148
3185
  class: "footer-affix-wrapper",
3149
3186
  style: ve({ "--pageHeaderOrFonterLeft": d.value + "px" })
3150
3187
  }, [
3151
- F(b, {
3188
+ x(h, {
3152
3189
  "offset-bottom": 0,
3153
3190
  target: e.getContainer,
3154
3191
  style: { width: "100%" }
3155
3192
  }, {
3156
3193
  default: u(() => [
3157
3194
  p("div", {
3158
- class: J({
3195
+ class: Q({
3159
3196
  "page-footer-bar": !0,
3160
3197
  page_footer_btn_left: e.placeLeft,
3161
3198
  page_footer_btn_right: e.placeRight
3162
3199
  })
3163
3200
  }, [
3164
- F(L, null, {
3201
+ x(_, null, {
3165
3202
  default: u(() => [
3166
- (n(!0), w(G, null, me(a.value, (I) => _e((n(), R(f, {
3203
+ (n(!0), L(X, null, me(a.value, (I) => _e((n(), V(f, {
3167
3204
  key: I.key,
3168
3205
  type: I.type || "default",
3169
3206
  danger: I.danger,
@@ -3173,7 +3210,7 @@ const aa = {
3173
3210
  class: "hb_list_page_button"
3174
3211
  }, {
3175
3212
  default: u(() => [
3176
- O(x(I.label), 1)
3213
+ O(k(I.label), 1)
3177
3214
  ]),
3178
3215
  _: 2
3179
3216
  }, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
@@ -3189,7 +3226,7 @@ const aa = {
3189
3226
  ], 4);
3190
3227
  };
3191
3228
  }
3192
- }), Ln = /* @__PURE__ */ oe(_n, [["__scopeId", "data-v-23f13fb5"]]), wn = Z(Ln), Cn = { class: "modal__detail-content" }, kn = /* @__PURE__ */ te({
3229
+ }), Ln = /* @__PURE__ */ le(_n, [["__scopeId", "data-v-23f13fb5"]]), wn = ee(Ln), Cn = { class: "modal__detail-content" }, kn = /* @__PURE__ */ oe({
3193
3230
  name: "HbLibModal",
3194
3231
  __name: "HbLibModal",
3195
3232
  props: {
@@ -3245,52 +3282,52 @@ const aa = {
3245
3282
  overflowY: "auto",
3246
3283
  padding: "0 6px",
3247
3284
  ...d.bodyStyle
3248
- })), { x: f, y: L, isDragging: b } = _o(c), P = E(0), I = E(0), V = E(!1), B = E(0), h = E(0), m = E(0), y = E(0), H = E({ left: 0, right: 0, top: 0, bottom: 0 });
3249
- let S = null;
3250
- const C = () => {
3251
- B.value = 0, h.value = 0, m.value = 0, y.value = 0, V.value = !1;
3285
+ })), { x: f, y: _, isDragging: h } = _o(c), P = E(0), I = E(0), W = E(!1), A = E(0), v = E(0), m = E(0), y = E(0), F = E({ left: 0, right: 0, top: 0, bottom: 0 });
3286
+ let C = null;
3287
+ const T = () => {
3288
+ A.value = 0, v.value = 0, m.value = 0, y.value = 0, W.value = !1;
3252
3289
  };
3253
3290
  ie(s, (N) => {
3254
3291
  N ? setTimeout(() => {
3255
- C();
3256
- }, 50) : (S && clearTimeout(S), S = setTimeout(() => {
3257
- B.value = 0, h.value = 0, m.value = 0, y.value = 0;
3292
+ T();
3293
+ }, 50) : (C && clearTimeout(C), C = setTimeout(() => {
3294
+ A.value = 0, v.value = 0, m.value = 0, y.value = 0;
3258
3295
  }, 300));
3259
- }), ie([f, L], () => {
3260
- if (!V.value) {
3261
- P.value = f.value, I.value = L.value;
3262
- const N = document.body.getBoundingClientRect(), X = c.value.getBoundingClientRect();
3263
- H.value.right = N.width - X.width, H.value.bottom = N.height - X.height, m.value = B.value, y.value = h.value;
3296
+ }), ie([f, _], () => {
3297
+ if (!W.value) {
3298
+ P.value = f.value, I.value = _.value;
3299
+ const N = document.body.getBoundingClientRect(), q = c.value.getBoundingClientRect();
3300
+ F.value.right = N.width - q.width, F.value.bottom = N.height - q.height, m.value = A.value, y.value = v.value;
3264
3301
  }
3265
- V.value = !0;
3266
- }), ie(b, () => {
3267
- b || (V.value = !1);
3302
+ W.value = !0;
3303
+ }), ie(h, () => {
3304
+ h || (W.value = !1);
3268
3305
  }), Pt(() => {
3269
- V.value && (B.value = m.value + Math.min(Math.max(H.value.left, f.value), H.value.right) - P.value, h.value = y.value + Math.min(Math.max(H.value.top, L.value), H.value.bottom) - I.value);
3306
+ W.value && (A.value = m.value + Math.min(Math.max(F.value.left, f.value), F.value.right) - P.value, v.value = y.value + Math.min(Math.max(F.value.top, _.value), F.value.bottom) - I.value);
3270
3307
  });
3271
- const v = $(() => ({
3272
- transform: `translate(${B.value}px, ${h.value}px)`
3273
- })), _ = () => {
3308
+ const M = $(() => ({
3309
+ transform: `translate(${A.value}px, ${v.value}px)`
3310
+ })), b = () => {
3274
3311
  a("cancel");
3275
- }, T = () => {
3312
+ }, S = () => {
3276
3313
  a("ok");
3277
3314
  };
3278
3315
  return Be(() => {
3279
- S && clearTimeout(S);
3316
+ C && clearTimeout(C);
3280
3317
  }), o({
3281
- handleOk: T,
3282
- handleCancel: _
3283
- }), (N, X) => {
3284
- const le = j("a-spin"), D = j("a-modal");
3285
- return n(), R(D, ee({
3318
+ handleOk: S,
3319
+ handleCancel: b
3320
+ }), (N, q) => {
3321
+ const G = j("a-spin"), H = j("a-modal");
3322
+ return n(), V(H, te({
3286
3323
  style: r.value,
3287
3324
  bodyStyle: i.value,
3288
3325
  ref: "modalRef",
3289
3326
  visible: s.value,
3290
- "onUpdate:visible": X[0] || (X[0] = (W) => s.value = W),
3327
+ "onUpdate:visible": q[0] || (q[0] = (z) => s.value = z),
3291
3328
  "wrap-style": l.value,
3292
- onOk: T,
3293
- onCancel: _
3329
+ onOk: S,
3330
+ onCancel: b
3294
3331
  }, N.$attrs), Pe({
3295
3332
  title: u(() => [
3296
3333
  p("div", {
@@ -3298,26 +3335,26 @@ const aa = {
3298
3335
  ref: c,
3299
3336
  style: { width: "100%", cursor: "move" }
3300
3337
  }, [
3301
- q(N.$slots, "title", {}, () => [
3302
- O(x(e.title), 1)
3338
+ Y(N.$slots, "title", {}, () => [
3339
+ O(k(e.title), 1)
3303
3340
  ], !0)
3304
3341
  ], 512)
3305
3342
  ]),
3306
- modalRender: u(({ originVNode: W }) => [
3307
- (n(), w("div", {
3343
+ modalRender: u(({ originVNode: z }) => [
3344
+ (n(), L("div", {
3308
3345
  key: s.value,
3309
- style: ve(v.value)
3346
+ style: ve(M.value)
3310
3347
  }, [
3311
- (n(), R(Nt(W)))
3348
+ (n(), V(Nt(z)))
3312
3349
  ], 4))
3313
3350
  ]),
3314
3351
  default: u(() => [
3315
- F(le, {
3352
+ x(G, {
3316
3353
  spinning: d.spinning
3317
3354
  }, {
3318
3355
  default: u(() => [
3319
3356
  p("div", {
3320
- class: J([
3357
+ class: Q([
3321
3358
  e.type == "detail" ? "hb_detail_modal_wrapper" : "hb_modal_wrapper",
3322
3359
  e.descLabelWidth && "hb_need_set_desc_label_width",
3323
3360
  e.descValueWidth && "hb_need_set_desc_value_width"
@@ -3325,7 +3362,7 @@ const aa = {
3325
3362
  style: ve({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
3326
3363
  }, [
3327
3364
  p("div", Cn, [
3328
- q(N.$slots, "default", {}, void 0, !0)
3365
+ Y(N.$slots, "default", {}, void 0, !0)
3329
3366
  ])
3330
3367
  ], 6)
3331
3368
  ]),
@@ -3337,20 +3374,20 @@ const aa = {
3337
3374
  N.$slots.footer ? {
3338
3375
  name: "footer",
3339
3376
  fn: u(() => [
3340
- q(N.$slots, "footer", {}, void 0, !0)
3377
+ Y(N.$slots, "footer", {}, void 0, !0)
3341
3378
  ]),
3342
3379
  key: "0"
3343
3380
  } : void 0
3344
3381
  ]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
3345
3382
  };
3346
3383
  }
3347
- }), Sn = /* @__PURE__ */ oe(kn, [["__scopeId", "data-v-866a050a"]]), xn = Z(Sn), Tn = {
3384
+ }), Sn = /* @__PURE__ */ le(kn, [["__scopeId", "data-v-866a050a"]]), xn = ee(Sn), Tn = {
3348
3385
  key: 0,
3349
3386
  class: "hb_edit_header"
3350
3387
  }, Fn = { class: "__detail-content" }, Hn = {
3351
3388
  key: 1,
3352
3389
  class: "hb_edit_footer"
3353
- }, $n = { class: "hb-back-top-inner" }, In = /* @__PURE__ */ te({
3390
+ }, $n = { class: "hb-back-top-inner" }, In = /* @__PURE__ */ oe({
3354
3391
  name: "HbLibUnDetailBox",
3355
3392
  __name: "HbLibUnDetailBox",
3356
3393
  props: {
@@ -3375,32 +3412,32 @@ const aa = {
3375
3412
  },
3376
3413
  setup(e) {
3377
3414
  const o = E("vertical"), t = e, a = () => document.querySelector(t.container), d = Ce("GLOBAL_CONFIG_KEY"), s = $(() => t.backTopBottom || d?.HbLibUnDetailBox?.backTopBottom || 80);
3378
- return (c, r) => (n(), R(k(ro), { spinning: e.spinning }, {
3415
+ return (c, r) => (n(), V(w(ro), { spinning: e.spinning }, {
3379
3416
  default: u(() => [
3380
- p("div", ee({ class: "hb_edit_wrapper" }, c.$attrs, {
3417
+ p("div", te({ class: "hb_edit_wrapper" }, c.$attrs, {
3381
3418
  style: { "--hb-edit-form-label": e.formLabelWidth },
3382
3419
  class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
3383
3420
  }), [
3384
- c.$slots.editHeader ? (n(), w("div", Tn, [
3385
- q(c.$slots, "editHeader", {}, void 0, !0)
3386
- ])) : A("", !0),
3421
+ c.$slots.editHeader ? (n(), L("div", Tn, [
3422
+ Y(c.$slots, "editHeader", {}, void 0, !0)
3423
+ ])) : B("", !0),
3387
3424
  p("div", {
3388
- class: J(["hb_edit_detail_content_wrapper", o.value === "vertical" ? "form_vertical" : ""])
3425
+ class: Q(["hb_edit_detail_content_wrapper", o.value === "vertical" ? "form_vertical" : ""])
3389
3426
  }, [
3390
3427
  p("div", Fn, [
3391
- q(c.$slots, "editContent", {}, void 0, !0)
3428
+ Y(c.$slots, "editContent", {}, void 0, !0)
3392
3429
  ])
3393
3430
  ], 2),
3394
- c.$slots.editFooter ? (n(), w("div", Hn, [
3395
- q(c.$slots, "editFooter", {}, void 0, !0)
3396
- ])) : A("", !0),
3397
- F(k(Ut), {
3431
+ c.$slots.editFooter ? (n(), L("div", Hn, [
3432
+ Y(c.$slots, "editFooter", {}, void 0, !0)
3433
+ ])) : B("", !0),
3434
+ x(w(Ut), {
3398
3435
  target: a,
3399
3436
  style: ve({ bottom: s.value + "px" })
3400
3437
  }, {
3401
3438
  default: u(() => [
3402
3439
  p("div", $n, [
3403
- F(k(zt))
3440
+ x(w(zt))
3404
3441
  ])
3405
3442
  ]),
3406
3443
  _: 1
@@ -3410,7 +3447,7 @@ const aa = {
3410
3447
  _: 3
3411
3448
  }, 8, ["spinning"]));
3412
3449
  }
3413
- }), Mn = /* @__PURE__ */ oe(In, [["__scopeId", "data-v-41f1fc73"]]), Dn = Z(Mn), An = { class: "hb_edit_header_left" }, Bn = { class: "hb_edit_header_title" }, On = { class: "hb_edit_header_right" }, En = /* @__PURE__ */ te({
3450
+ }), Mn = /* @__PURE__ */ le(In, [["__scopeId", "data-v-41f1fc73"]]), Dn = ee(Mn), An = { class: "hb_edit_header_left" }, Bn = { class: "hb_edit_header_title" }, On = { class: "hb_edit_header_right" }, En = /* @__PURE__ */ oe({
3414
3451
  name: "HbLibPageHeader",
3415
3452
  __name: "HbLibPageHeader",
3416
3453
  props: {
@@ -3429,16 +3466,16 @@ const aa = {
3429
3466
  },
3430
3467
  setup(e) {
3431
3468
  const { t: o } = ye(), t = e, a = it(), d = E(0), s = $(() => a?.meta?.title || "");
3432
- function c(b, P = "offsetHeight") {
3469
+ function c(h, P = "offsetHeight") {
3433
3470
  let I = 0;
3434
- return (Array.isArray(b) ? b : [b]).forEach((B) => {
3435
- let h = [];
3436
- if (B.startsWith("#")) {
3437
- const m = document.getElementById(B.slice(1));
3438
- m && h.push(m);
3471
+ return (Array.isArray(h) ? h : [h]).forEach((A) => {
3472
+ let v = [];
3473
+ if (A.startsWith("#")) {
3474
+ const m = document.getElementById(A.slice(1));
3475
+ m && v.push(m);
3439
3476
  } else
3440
- h = Array.from(document.getElementsByClassName(B));
3441
- h.forEach((m) => {
3477
+ v = Array.from(document.getElementsByClassName(A));
3478
+ v.forEach((m) => {
3442
3479
  I += m[P] || 0;
3443
3480
  });
3444
3481
  }), I;
@@ -3453,8 +3490,8 @@ const aa = {
3453
3490
  r(), i(), window.addEventListener("resize", r), f = new MutationObserver(() => {
3454
3491
  i();
3455
3492
  });
3456
- const b = document.body;
3457
- f.observe(b, {
3493
+ const h = document.body;
3494
+ f.observe(h, {
3458
3495
  childList: !0,
3459
3496
  // 子节点的变动
3460
3497
  subtree: !0,
@@ -3471,12 +3508,12 @@ const aa = {
3471
3508
  },
3472
3509
  { immediate: !0 }
3473
3510
  );
3474
- const L = () => {
3511
+ const _ = () => {
3475
3512
  t.backFn ? t.backFn() : window.history.back();
3476
3513
  };
3477
- return (b, P) => {
3514
+ return (h, P) => {
3478
3515
  const I = j("a-divider");
3479
- return n(), w("div", {
3516
+ return n(), L("div", {
3480
3517
  class: "hb_edit_header",
3481
3518
  style: ve({ top: d.value + "px", "--pageHeaderOrFonterLeft": l.value + "px" })
3482
3519
  }, [
@@ -3484,18 +3521,18 @@ const aa = {
3484
3521
  p("a", {
3485
3522
  href: "#",
3486
3523
  class: "backBtn",
3487
- onClick: L
3488
- }, x(k(o)("hbLibComp.HbLibDetailBox.back")), 1),
3489
- F(I, { type: "vertical" }),
3490
- p("span", Bn, x(s.value), 1)
3524
+ onClick: _
3525
+ }, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
3526
+ x(I, { type: "vertical" }),
3527
+ p("span", Bn, k(s.value), 1)
3491
3528
  ]),
3492
3529
  p("aside", On, [
3493
- q(b.$slots, "right", {}, void 0, !0)
3530
+ Y(h.$slots, "right", {}, void 0, !0)
3494
3531
  ])
3495
3532
  ], 4);
3496
3533
  };
3497
3534
  }
3498
- }), Pn = /* @__PURE__ */ oe(En, [["__scopeId", "data-v-83fcd208"]]), Nn = Z(Pn), Un = {
3535
+ }), Pn = /* @__PURE__ */ le(En, [["__scopeId", "data-v-83fcd208"]]), Nn = ee(Pn), Un = {
3499
3536
  // 如果存在cpText时,K和V无效
3500
3537
  cpText: {
3501
3538
  type: String,
@@ -3540,7 +3577,7 @@ const aa = {
3540
3577
  type: String,
3541
3578
  default: "ab"
3542
3579
  }
3543
- }, zn = /* @__PURE__ */ te({
3580
+ }, zn = /* @__PURE__ */ oe({
3544
3581
  name: "HbLibCopy",
3545
3582
  __name: "copy",
3546
3583
  props: Un,
@@ -3568,7 +3605,7 @@ const aa = {
3568
3605
  Le.error(s.value);
3569
3606
  });
3570
3607
  };
3571
- return (l, i) => c.value ? (n(), R(k(We), {
3608
+ return (l, i) => c.value ? (n(), V(w(We), {
3572
3609
  key: 0,
3573
3610
  title: a.value
3574
3611
  }, {
@@ -3607,9 +3644,9 @@ const aa = {
3607
3644
  ])], 4)
3608
3645
  ]),
3609
3646
  _: 1
3610
- }, 8, ["title"])) : A("", !0);
3647
+ }, 8, ["title"])) : B("", !0);
3611
3648
  }
3612
- }), Rn = /* @__PURE__ */ oe(zn, [["__scopeId", "data-v-2b6710a1"]]), qt = Z(Rn), Vn = {
3649
+ }), Rn = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-2b6710a1"]]), qt = ee(Rn), Vn = {
3613
3650
  dragList: {
3614
3651
  type: Array,
3615
3652
  required: !0
@@ -3648,7 +3685,7 @@ const aa = {
3648
3685
  type: String,
3649
3686
  default: ""
3650
3687
  }
3651
- }, Wn = /* @__PURE__ */ te({
3688
+ }, Wn = /* @__PURE__ */ oe({
3652
3689
  name: "HbDrag",
3653
3690
  __name: "index",
3654
3691
  props: Vn,
@@ -3674,13 +3711,13 @@ const aa = {
3674
3711
  }, i = (f) => {
3675
3712
  console.log("drag remove", f), s("handleDragRemove", f);
3676
3713
  };
3677
- return (f, L) => (n(), w("div", {
3678
- class: J(k(d).b())
3714
+ return (f, _) => (n(), L("div", {
3715
+ class: Q(w(d).b())
3679
3716
  }, [
3680
- f.childrenType == "component" ? (n(), R(k(Ve), ee({
3717
+ f.childrenType == "component" ? (n(), V(w(Ve), te({
3681
3718
  key: 0,
3682
3719
  modelValue: a.value,
3683
- "onUpdate:modelValue": L[0] || (L[0] = (b) => a.value = b),
3720
+ "onUpdate:modelValue": _[0] || (_[0] = (h) => a.value = h),
3684
3721
  "item-key": "key",
3685
3722
  class: { [f.dragClass]: f.dragClass }
3686
3723
  }, f.$attrs, {
@@ -3690,14 +3727,14 @@ const aa = {
3690
3727
  onAdd: l,
3691
3728
  onRemove: i
3692
3729
  }), {
3693
- item: u(({ element: b }) => [
3694
- (n(), R(Nt(b.component)))
3730
+ item: u(({ element: h }) => [
3731
+ (n(), V(Nt(h.component)))
3695
3732
  ]),
3696
3733
  _: 1
3697
- }, 16, ["modelValue", "class", "ghost-class"])) : (n(), R(k(Ve), ee({
3734
+ }, 16, ["modelValue", "class", "ghost-class"])) : (n(), V(w(Ve), te({
3698
3735
  key: 1,
3699
3736
  modelValue: a.value,
3700
- "onUpdate:modelValue": L[1] || (L[1] = (b) => a.value = b),
3737
+ "onUpdate:modelValue": _[1] || (_[1] = (h) => a.value = h),
3701
3738
  "item-key": "id",
3702
3739
  class: { [f.dragClass]: f.dragClass }
3703
3740
  }, f.$attrs, {
@@ -3707,16 +3744,16 @@ const aa = {
3707
3744
  onAdd: l,
3708
3745
  onRemove: i
3709
3746
  }), {
3710
- item: u(({ element: b }) => [
3747
+ item: u(({ element: h }) => [
3711
3748
  p("div", null, [
3712
- q(f.$slots, "default", { item: b }, void 0, !0)
3749
+ Y(f.$slots, "default", { item: h }, void 0, !0)
3713
3750
  ])
3714
3751
  ]),
3715
3752
  _: 3
3716
3753
  }, 16, ["modelValue", "class", "ghost-class"]))
3717
3754
  ], 2));
3718
3755
  }
3719
- }), jn = /* @__PURE__ */ oe(Wn, [["__scopeId", "data-v-15b227f5"]]), qn = Z(jn), Yn = {
3756
+ }), jn = /* @__PURE__ */ le(Wn, [["__scopeId", "data-v-15b227f5"]]), qn = ee(jn), Yn = {
3720
3757
  triggerWay: {
3721
3758
  type: String,
3722
3759
  default: "click"
@@ -3732,7 +3769,7 @@ const aa = {
3732
3769
  getSort: {
3733
3770
  type: Function
3734
3771
  }
3735
- }, Kn = /* @__PURE__ */ te({
3772
+ }, Kn = /* @__PURE__ */ oe({
3736
3773
  name: "HbLibSort",
3737
3774
  __name: "sort",
3738
3775
  props: Yn,
@@ -3765,21 +3802,21 @@ const aa = {
3765
3802
  return o({
3766
3803
  currentActiveItem: c
3767
3804
  }), (l, i) => {
3768
- const f = j("a-menu-item"), L = j("a-menu"), b = j("a-dropdown");
3769
- return n(), R(b, {
3805
+ const f = j("a-menu-item"), _ = j("a-menu"), h = j("a-dropdown");
3806
+ return n(), V(h, {
3770
3807
  trigger: [a.triggerWay]
3771
3808
  }, {
3772
3809
  overlay: u(() => [
3773
- F(L, null, {
3810
+ x(_, null, {
3774
3811
  default: u(() => [
3775
- (n(!0), w(G, null, me(s.value, (P) => (n(), R(f, {
3812
+ (n(!0), L(X, null, me(s.value, (P) => (n(), V(f, {
3776
3813
  key: P.value + P.sort,
3777
3814
  onClick: (I) => r(P)
3778
3815
  }, {
3779
3816
  default: u(() => [
3780
3817
  p("span", {
3781
- class: J(c.value == P.value + P.sort ? "activted" : "")
3782
- }, x(P.label), 3)
3818
+ class: Q(c.value == P.value + P.sort ? "activted" : "")
3819
+ }, k(P.label), 3)
3783
3820
  ]),
3784
3821
  _: 2
3785
3822
  }, 1032, ["onClick"]))), 128))
@@ -3793,15 +3830,15 @@ const aa = {
3793
3830
  onClick: i[0] || (i[0] = Re(() => {
3794
3831
  }, ["prevent"]))
3795
3832
  }, [
3796
- O(x(a.colText) + " ", 1),
3797
- F(k(lt))
3833
+ O(k(a.colText) + " ", 1),
3834
+ x(w(lt))
3798
3835
  ])
3799
3836
  ]),
3800
3837
  _: 1
3801
3838
  }, 8, ["trigger"]);
3802
3839
  };
3803
3840
  }
3804
- }), Gn = /* @__PURE__ */ oe(Kn, [["__scopeId", "data-v-cf0b0a0d"]]), Jn = Z(Gn), Xn = { class: "hb_lib_loading" }, Qn = { class: "hb_lib_loading_loading_anima" }, Zn = { class: "hb_lib_loading_load_tips" }, ei = /* @__PURE__ */ te({
3841
+ }), Gn = /* @__PURE__ */ le(Kn, [["__scopeId", "data-v-cf0b0a0d"]]), Jn = ee(Gn), Xn = { class: "hb_lib_loading" }, Qn = { class: "hb_lib_loading_loading_anima" }, Zn = { class: "hb_lib_loading_load_tips" }, ei = /* @__PURE__ */ oe({
3805
3842
  name: "HbLibLoading",
3806
3843
  __name: "loading",
3807
3844
  props: {
@@ -3812,14 +3849,14 @@ const aa = {
3812
3849
  },
3813
3850
  setup(e) {
3814
3851
  const { t: o } = ye(), t = e, a = $(() => t.loadTips || o("hbLibComp.HbLibLoading.loadingTips"));
3815
- return (d, s) => (n(), w("div", Xn, [
3852
+ return (d, s) => (n(), L("div", Xn, [
3816
3853
  p("div", Qn, [
3817
3854
  s[0] || (s[0] = oo('<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)),
3818
- p("div", Zn, x(a.value), 1)
3855
+ p("div", Zn, k(a.value), 1)
3819
3856
  ])
3820
3857
  ]));
3821
3858
  }
3822
- }), ti = /* @__PURE__ */ oe(ei, [["__scopeId", "data-v-22f438b9"]]), oi = Z(ti);
3859
+ }), ti = /* @__PURE__ */ le(ei, [["__scopeId", "data-v-22f438b9"]]), oi = ee(ti);
3823
3860
  function Yt(e) {
3824
3861
  const o = e.trim();
3825
3862
  try {
@@ -4045,7 +4082,7 @@ const ri = (e) => {
4045
4082
  l.value = U;
4046
4083
  }
4047
4084
  );
4048
- const i = $(() => r.mobile ? "100%" : "98%"), f = $(() => String(r.url || "").trim()), L = $(() => !!f.value), b = $(() => r.mobile ? "large" : "middle"), P = $(
4085
+ const i = $(() => r.mobile ? "100%" : "98%"), f = $(() => String(r.url || "").trim()), _ = $(() => !!f.value), h = $(() => r.mobile ? "large" : "middle"), P = $(
4049
4086
  () => r.mobile ? { top: 0, paddingBottom: 0, maxWidth: "100vw" } : { top: "20px" }
4050
4087
  ), I = $(() => ({
4051
4088
  height: r.mobile ? "calc(100vh - 132px)" : "calc(100vh - 150px)",
@@ -4055,37 +4092,37 @@ const ri = (e) => {
4055
4092
  minHeight: 0,
4056
4093
  overflow: "hidden",
4057
4094
  boxSizing: "border-box"
4058
- })), V = (U) => String(U || "").trim().replace(/^\./, "").toLowerCase(), B = (U) => {
4059
- const z = V(ri(String(U || "")));
4060
- return a.has(z) || d.has(z) ? z : "";
4061
- }, h = (U) => {
4095
+ })), W = (U) => String(U || "").trim().replace(/^\./, "").toLowerCase(), A = (U) => {
4096
+ const R = W(ri(String(U || "")));
4097
+ return a.has(R) || d.has(R) ? R : "";
4098
+ }, v = (U) => {
4062
4099
  try {
4063
4100
  return decodeURIComponent(String(U || ""));
4064
4101
  } catch {
4065
4102
  return String(U || "");
4066
4103
  }
4067
4104
  }, m = (U) => {
4068
- const z = h(U).trim();
4069
- if (!z) return "";
4070
- const ce = B(z);
4105
+ const R = v(U).trim();
4106
+ if (!R) return "";
4107
+ const ce = A(R);
4071
4108
  if (ce) return ce;
4072
- const ne = z.match(
4109
+ const ne = R.match(
4073
4110
  /(?:\(|()\s*([a-z0-9]{2,8})\s*(?:\)|))\s*$/i
4074
- ), de = V(ne?.[1]);
4111
+ ), de = W(ne?.[1]);
4075
4112
  return a.has(de) || d.has(de) ? de : "";
4076
4113
  }, y = (U) => {
4077
4114
  if (!U) return "";
4078
- const z = U.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);
4079
- if (z?.[1]) return h(z[1]);
4115
+ const R = U.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);
4116
+ if (R?.[1]) return v(R[1]);
4080
4117
  const ce = U.match(/filename\s*=\s*"?([^";]+)"?/i);
4081
- return ce?.[1] ? h(ce[1]) : "";
4082
- }, H = (U) => {
4083
- const z = String(U || "").trim();
4084
- if (!z) return "";
4085
- const ce = B(z);
4118
+ return ce?.[1] ? v(ce[1]) : "";
4119
+ }, F = (U) => {
4120
+ const R = String(U || "").trim();
4121
+ if (!R) return "";
4122
+ const ce = A(R);
4086
4123
  if (ce) return ce;
4087
4124
  try {
4088
- const ne = new URL(z, "http://local.preview"), de = m(
4125
+ const ne = new URL(R, "http://local.preview"), de = m(
4089
4126
  ne.pathname.split("/").pop() || ""
4090
4127
  );
4091
4128
  if (de) return de;
@@ -4115,11 +4152,11 @@ const ri = (e) => {
4115
4152
  } catch {
4116
4153
  }
4117
4154
  return "";
4118
- }, S = async (U) => {
4119
- const z = String(U || "").trim();
4120
- if (!z) return "";
4155
+ }, C = async (U) => {
4156
+ const R = String(U || "").trim();
4157
+ if (!R) return "";
4121
4158
  try {
4122
- const ce = await fetch(z, {
4159
+ const ce = await fetch(R, {
4123
4160
  method: "HEAD",
4124
4161
  credentials: "include",
4125
4162
  mode: "cors"
@@ -4133,36 +4170,36 @@ const ri = (e) => {
4133
4170
  } catch {
4134
4171
  return "";
4135
4172
  }
4136
- }, C = E("");
4137
- let v = 0;
4173
+ }, T = E("");
4174
+ let M = 0;
4138
4175
  ie(
4139
4176
  // 与 URL/文件名相关的信息变化,都重新走一次扩展名推断
4140
4177
  () => `${r.fileName || ""}\0${f.value}`,
4141
4178
  async () => {
4142
- const U = ++v, z = m(r.fileName || ""), ce = H(f.value);
4143
- if (C.value = z || ce || "", C.value) return;
4144
- const ne = await S(
4179
+ const U = ++M, R = m(r.fileName || ""), ce = F(f.value);
4180
+ if (T.value = R || ce || "", T.value) return;
4181
+ const ne = await C(
4145
4182
  f.value
4146
4183
  );
4147
- U === v && (C.value = V(ne));
4184
+ U === M && (T.value = W(ne));
4148
4185
  },
4149
4186
  { immediate: !0 }
4150
4187
  );
4151
- const _ = $(() => V(C.value)), T = $(
4188
+ const b = $(() => W(T.value)), S = $(
4152
4189
  () => `${r.url}\0${r.fileName || ""}`
4153
- ), N = $(() => d.has(_.value)), X = $(
4154
- () => a.has(_.value)
4155
- ), le = $(() => {
4190
+ ), N = $(() => d.has(b.value)), q = $(
4191
+ () => a.has(b.value)
4192
+ ), G = $(() => {
4156
4193
  const U = f.value;
4157
4194
  if (!U) return !1;
4158
4195
  try {
4159
- const { pathname: z } = new URL(U);
4160
- return /\/file(?:\/|-)preview\b/i.test(z);
4196
+ const { pathname: R } = new URL(U);
4197
+ return /\/file(?:\/|-)preview\b/i.test(R);
4161
4198
  } catch {
4162
4199
  return /\/file(?:\/|-)preview\b/i.test(U);
4163
4200
  }
4164
- }), D = lo(), W = $(() => {
4165
- const U = D?.appContext?.components || {};
4201
+ }), H = lo(), z = $(() => {
4202
+ const U = H?.appContext?.components || {};
4166
4203
  return !!(U.VueFilesPreview || U.VueFilesPreview || U["vue-files-preview"]);
4167
4204
  }), se = /* @__PURE__ */ new Set([
4168
4205
  "xlsx",
@@ -4175,7 +4212,7 @@ const ri = (e) => {
4175
4212
  "fods",
4176
4213
  "xlt",
4177
4214
  "xltm"
4178
- ]), re = $(() => !W.value || !f.value || le.value ? !1 : se.has(_.value)), fe = $(() => _.value === "txt"), be = $(() => !f.value || le.value ? !1 : fe.value), pe = {
4215
+ ]), re = $(() => !z.value || !f.value || G.value ? !1 : se.has(b.value)), fe = $(() => b.value === "txt"), be = $(() => !f.value || G.value ? !1 : fe.value), pe = {
4179
4216
  idle: "idle",
4180
4217
  loading: "loading",
4181
4218
  text: "text",
@@ -4187,11 +4224,11 @@ const ri = (e) => {
4187
4224
  url: f.value,
4188
4225
  isTxt: fe.value
4189
4226
  }),
4190
- async ({ visible: U, url: z, isTxt: ce }) => {
4191
- if (g.value = "", he.value = pe.idle, !(!U || !ce || !z)) {
4227
+ async ({ visible: U, url: R, isTxt: ce }) => {
4228
+ if (g.value = "", he.value = pe.idle, !(!U || !ce || !R)) {
4192
4229
  he.value = pe.loading;
4193
4230
  try {
4194
- const ne = await fetch(z, {
4231
+ const ne = await fetch(R, {
4195
4232
  credentials: "include",
4196
4233
  mode: "cors"
4197
4234
  });
@@ -4204,20 +4241,20 @@ const ri = (e) => {
4204
4241
  },
4205
4242
  { flush: "post" }
4206
4243
  );
4207
- const Y = $(() => !f.value || !W.value || fe.value ? !1 : re.value ? !0 : !X.value && !N.value), M = $(
4208
- () => t.has(_.value)
4209
- ), Q = $(() => {
4244
+ const K = $(() => !f.value || !z.value || fe.value ? !1 : re.value ? !0 : !q.value && !N.value), D = $(
4245
+ () => t.has(b.value)
4246
+ ), Z = $(() => {
4210
4247
  const U = f.value;
4211
- return U ? le.value || !X.value || r.needSafe || _.value === "pdf" ? U : M.value ? `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(U)}` : `https://docs.google.com/gview?url=${encodeURIComponent(U)}&embedded=true` : r.url;
4248
+ return U ? G.value || !q.value || r.needSafe || b.value === "pdf" ? U : D.value ? `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(U)}` : `https://docs.google.com/gview?url=${encodeURIComponent(U)}&embedded=true` : r.url;
4212
4249
  }), ue = /* @__PURE__ */ new Set([
4213
4250
  "view.officeapps.live.com",
4214
4251
  "docs.google.com"
4215
4252
  ]), we = $(() => {
4216
- const U = (Q.value || "").trim();
4253
+ const U = (Z.value || "").trim();
4217
4254
  if (!U) return !1;
4218
4255
  try {
4219
- const z = new URL(U).hostname.toLowerCase();
4220
- return ue.has(z);
4256
+ const R = new URL(U).hostname.toLowerCase();
4257
+ return ue.has(R);
4221
4258
  } catch {
4222
4259
  return /view\.officeapps\.live\.com|docs\.google\.com/i.test(U);
4223
4260
  }
@@ -4228,19 +4265,19 @@ const ri = (e) => {
4228
4265
  ie(
4229
4266
  () => ({
4230
4267
  visible: r.previewVisible,
4231
- src: Q.value,
4232
- doc: X.value,
4233
- serverPage: le.value,
4268
+ src: Z.value,
4269
+ doc: q.value,
4270
+ serverPage: G.value,
4234
4271
  skipIframe: re.value
4235
4272
  }),
4236
- async ({ visible: U, src: z, doc: ce, serverPage: ne, skipIframe: de }) => {
4273
+ async ({ visible: U, src: R, doc: ce, serverPage: ne, skipIframe: de }) => {
4237
4274
  if (ae.value = "", !U || !(ce || ne) || de) return;
4238
- const Fe = (z || "").trim();
4239
- Fe && (await xe(), await new Promise((Se) => requestAnimationFrame(Se)), r.previewVisible && Q.value === Fe && (ae.value = Fe));
4275
+ const Fe = (R || "").trim();
4276
+ Fe && (await xe(), await new Promise((Se) => requestAnimationFrame(Se)), r.previewVisible && Z.value === Fe && (ae.value = Fe));
4240
4277
  },
4241
4278
  { flush: "post" }
4242
4279
  );
4243
- const $e = $(() => L.value), Ie = async () => {
4280
+ const $e = $(() => _.value), Ie = async () => {
4244
4281
  f.value && (Ht() ? window.open(f.value, "_blank") : await Ue(
4245
4282
  f.value,
4246
4283
  r.fileName || "file"
@@ -4248,16 +4285,16 @@ const ri = (e) => {
4248
4285
  }, Me = () => {
4249
4286
  c("closeModal");
4250
4287
  }, De = (U) => {
4251
- const z = U instanceof Error ? U.message : typeof U == "string" ? U : "";
4288
+ const R = U instanceof Error ? U.message : typeof U == "string" ? U : "";
4252
4289
  Le.warning(
4253
- z ? `文件预览加载失败:${z},可尝试下载后查看` : "文件预览加载失败,可尝试下载后查看"
4290
+ R ? `文件预览加载失败:${R},可尝试下载后查看` : "文件预览加载失败,可尝试下载后查看"
4254
4291
  );
4255
- }, K = (U) => U instanceof TypeError && typeof U.message == "string" && /failed to fetch/i.test(U.message), ct = (U) => {
4256
- K(U.error) && r.previewVisible && Le.error(
4292
+ }, J = (U) => U instanceof TypeError && typeof U.message == "string" && /failed to fetch/i.test(U.message), ct = (U) => {
4293
+ J(U.error) && r.previewVisible && Le.error(
4257
4294
  "文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看"
4258
4295
  );
4259
4296
  }, dt = (U) => {
4260
- K(U.reason) && r.previewVisible && Le.error(
4297
+ J(U.reason) && r.previewVisible && Le.error(
4261
4298
  "文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看"
4262
4299
  );
4263
4300
  };
@@ -4271,12 +4308,12 @@ const ri = (e) => {
4271
4308
  "unhandledrejection",
4272
4309
  dt
4273
4310
  );
4274
- }), (U, z) => {
4311
+ }), (U, R) => {
4275
4312
  const ce = j("VueFilesPreview"), ne = j("a-spin"), de = j("a-button"), Fe = j("a-modal");
4276
- return e.needModal ? (n(), R(Fe, ee({
4313
+ return e.needModal ? (n(), V(Fe, te({
4277
4314
  key: 0,
4278
4315
  visible: l.value,
4279
- "onUpdate:visible": z[2] || (z[2] = (Se) => l.value = Se),
4316
+ "onUpdate:visible": R[2] || (R[2] = (Se) => l.value = Se),
4280
4317
  width: i.value,
4281
4318
  "body-style": I.value,
4282
4319
  style: P.value,
@@ -4285,60 +4322,60 @@ const ri = (e) => {
4285
4322
  }, U.$attrs, { onCancel: Me }), {
4286
4323
  title: u(() => [
4287
4324
  p("div", di, [
4288
- q(U.$slots, "title", {}, () => [
4289
- z[5] || (z[5] = O("文件预览", -1))
4325
+ Y(U.$slots, "title", {}, () => [
4326
+ R[5] || (R[5] = O("文件预览", -1))
4290
4327
  ], !0),
4291
- k(Ht)() && e.isTitleTip ? (n(), w("span", ui, x(e.titleTip), 1)) : A("", !0)
4328
+ w(Ht)() && e.isTitleTip ? (n(), L("span", ui, k(e.titleTip), 1)) : B("", !0)
4292
4329
  ])
4293
4330
  ]),
4294
4331
  footer: u(() => [
4295
4332
  p("div", {
4296
- class: J(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
4333
+ class: Q(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
4297
4334
  }, [
4298
- q(U.$slots, "footer", {}, () => [
4299
- e.showAttachmentNav ? (n(), w("div", wi, [
4300
- F(de, {
4335
+ Y(U.$slots, "footer", {}, () => [
4336
+ e.showAttachmentNav ? (n(), L("div", wi, [
4337
+ x(de, {
4301
4338
  disabled: !e.hasPrevAttachment,
4302
- size: b.value,
4339
+ size: h.value,
4303
4340
  block: e.mobile,
4304
- onClick: z[0] || (z[0] = (Se) => c("prevAttachment"))
4341
+ onClick: R[0] || (R[0] = (Se) => c("prevAttachment"))
4305
4342
  }, {
4306
- default: u(() => [...z[6] || (z[6] = [
4343
+ default: u(() => [...R[6] || (R[6] = [
4307
4344
  O(" 上一个 ", -1)
4308
4345
  ])]),
4309
4346
  _: 1
4310
4347
  }, 8, ["disabled", "size", "block"]),
4311
- F(de, {
4348
+ x(de, {
4312
4349
  disabled: !e.hasNextAttachment,
4313
- size: b.value,
4350
+ size: h.value,
4314
4351
  block: e.mobile,
4315
- onClick: z[1] || (z[1] = (Se) => c("nextAttachment"))
4352
+ onClick: R[1] || (R[1] = (Se) => c("nextAttachment"))
4316
4353
  }, {
4317
- default: u(() => [...z[7] || (z[7] = [
4354
+ default: u(() => [...R[7] || (R[7] = [
4318
4355
  O(" 下一个 ", -1)
4319
4356
  ])]),
4320
4357
  _: 1
4321
4358
  }, 8, ["disabled", "size", "block"])
4322
- ])) : A("", !0),
4323
- $e.value ? (n(), R(de, {
4359
+ ])) : B("", !0),
4360
+ $e.value ? (n(), V(de, {
4324
4361
  key: 1,
4325
- size: b.value,
4362
+ size: h.value,
4326
4363
  block: e.mobile,
4327
4364
  onClick: Ie
4328
4365
  }, {
4329
- default: u(() => [...z[8] || (z[8] = [
4366
+ default: u(() => [...R[8] || (R[8] = [
4330
4367
  O(" 下载 ", -1)
4331
4368
  ])]),
4332
4369
  _: 1
4333
- }, 8, ["size", "block"])) : A("", !0),
4334
- F(de, {
4370
+ }, 8, ["size", "block"])) : B("", !0),
4371
+ x(de, {
4335
4372
  type: "primary",
4336
4373
  class: "file-preview-modal-footer__close",
4337
- size: b.value,
4374
+ size: h.value,
4338
4375
  block: e.mobile,
4339
4376
  onClick: Me
4340
4377
  }, {
4341
- default: u(() => [...z[9] || (z[9] = [
4378
+ default: u(() => [...R[9] || (R[9] = [
4342
4379
  O(" 关闭 ", -1)
4343
4380
  ])]),
4344
4381
  _: 1
@@ -4348,174 +4385,174 @@ const ri = (e) => {
4348
4385
  ]),
4349
4386
  default: u(() => [
4350
4387
  p("div", fi, [
4351
- e.needSafe ? (n(), w("section", pi, [
4352
- le.value ? (n(), w(G, { key: 0 }, [
4353
- ae.value ? (n(), w("iframe", ee({
4354
- key: `${T.value}:${ae.value}`,
4388
+ e.needSafe ? (n(), L("section", pi, [
4389
+ G.value ? (n(), L(X, { key: 0 }, [
4390
+ ae.value ? (n(), L("iframe", te({
4391
+ key: `${S.value}:${ae.value}`,
4355
4392
  src: ae.value
4356
4393
  }, ge.value, {
4357
4394
  class: "file-preview-modal-body__iframe",
4358
4395
  width: "100%",
4359
4396
  style: { border: "none" },
4360
4397
  referrerpolicy: "no-referrer-when-downgrade"
4361
- }), null, 16, mi)) : A("", !0)
4362
- ], 64)) : N.value ? (n(), w("img", {
4363
- key: `img:${T.value}`,
4398
+ }), null, 16, mi)) : B("", !0)
4399
+ ], 64)) : N.value ? (n(), L("img", {
4400
+ key: `img:${S.value}`,
4364
4401
  class: "file-preview-modal-body__img",
4365
4402
  src: e.url,
4366
4403
  alt: "预览"
4367
- }, null, 8, bi)) : (n(), R(ce, {
4368
- key: `vfp:${T.value}`,
4404
+ }, null, 8, bi)) : (n(), V(ce, {
4405
+ key: `vfp:${S.value}`,
4369
4406
  url: e.url,
4370
4407
  onError: De
4371
4408
  }, null, 8, ["url"]))
4372
- ])) : (n(), w("section", hi, [
4373
- le.value ? (n(), w(G, { key: 0 }, [
4374
- ae.value ? (n(), w("iframe", ee({
4375
- key: `${T.value}:${ae.value}`,
4409
+ ])) : (n(), L("section", hi, [
4410
+ G.value ? (n(), L(X, { key: 0 }, [
4411
+ ae.value ? (n(), L("iframe", te({
4412
+ key: `${S.value}:${ae.value}`,
4376
4413
  src: ae.value
4377
4414
  }, ge.value, {
4378
4415
  class: "file-preview-modal-body__iframe",
4379
4416
  width: "100%",
4380
4417
  style: { border: "none" },
4381
4418
  referrerpolicy: "no-referrer-when-downgrade"
4382
- }), null, 16, vi)) : A("", !0)
4383
- ], 64)) : be.value ? (n(), w("div", {
4384
- key: `txt:${T.value}`,
4419
+ }), null, 16, vi)) : B("", !0)
4420
+ ], 64)) : be.value ? (n(), L("div", {
4421
+ key: `txt:${S.value}`,
4385
4422
  class: "file-preview-modal-body__plaintext"
4386
4423
  }, [
4387
- he.value === pe.loading ? (n(), R(ne, {
4424
+ he.value === pe.loading ? (n(), V(ne, {
4388
4425
  key: 0,
4389
4426
  tip: "加载中..."
4390
- })) : he.value === pe.iframeFallback ? (n(), w("iframe", {
4427
+ })) : he.value === pe.iframeFallback ? (n(), L("iframe", {
4391
4428
  key: 1,
4392
4429
  src: r.url,
4393
4430
  class: "file-preview-modal-body__iframe",
4394
4431
  width: "100%",
4395
4432
  style: { border: "none" },
4396
4433
  referrerpolicy: "no-referrer-when-downgrade"
4397
- }, null, 8, gi)) : he.value === pe.text ? (n(), w("pre", yi, x(g.value), 1)) : A("", !0)
4398
- ])) : X.value ? (n(), w(G, { key: 2 }, [
4399
- ae.value ? (n(), w("iframe", {
4400
- key: `${T.value}:${ae.value}`,
4434
+ }, null, 8, gi)) : he.value === pe.text ? (n(), L("pre", yi, k(g.value), 1)) : B("", !0)
4435
+ ])) : q.value ? (n(), L(X, { key: 2 }, [
4436
+ ae.value ? (n(), L("iframe", {
4437
+ key: `${S.value}:${ae.value}`,
4401
4438
  src: ae.value,
4402
4439
  class: "file-preview-modal-body__iframe",
4403
4440
  width: "100%",
4404
4441
  style: { border: "none" },
4405
4442
  referrerpolicy: "no-referrer-when-downgrade"
4406
- }, null, 8, _i)) : A("", !0)
4407
- ], 64)) : N.value ? (n(), w("img", {
4408
- key: `img:${T.value}`,
4443
+ }, null, 8, _i)) : B("", !0)
4444
+ ], 64)) : N.value ? (n(), L("img", {
4445
+ key: `img:${S.value}`,
4409
4446
  class: "file-preview-modal-body__img",
4410
4447
  src: e.url,
4411
4448
  alt: "预览"
4412
- }, null, 8, Li)) : e.url ? (n(), w("div", {
4413
- key: `nop:${T.value}`,
4449
+ }, null, 8, Li)) : e.url ? (n(), L("div", {
4450
+ key: `nop:${S.value}`,
4414
4451
  class: "no-preview"
4415
- }, x(W.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : A("", !0)
4452
+ }, k(z.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : B("", !0)
4416
4453
  ]))
4417
4454
  ])
4418
4455
  ]),
4419
4456
  _: 3
4420
- }, 16, ["visible", "width", "body-style", "style", "wrap-class-name"])) : (n(), w(G, { key: 1 }, [
4457
+ }, 16, ["visible", "width", "body-style", "style", "wrap-class-name"])) : (n(), L(X, { key: 1 }, [
4421
4458
  p("div", Ci, [
4422
- le.value ? (n(), w(G, { key: 0 }, [
4423
- ae.value ? (n(), w("iframe", ee({
4424
- key: `${T.value}:${ae.value}`,
4459
+ G.value ? (n(), L(X, { key: 0 }, [
4460
+ ae.value ? (n(), L("iframe", te({
4461
+ key: `${S.value}:${ae.value}`,
4425
4462
  src: ae.value
4426
4463
  }, ge.value, {
4427
4464
  class: "file-preview-modal-body__iframe",
4428
4465
  width: "100%",
4429
4466
  style: { border: "none" },
4430
4467
  referrerpolicy: "no-referrer-when-downgrade"
4431
- }), null, 16, ki)) : A("", !0)
4432
- ], 64)) : be.value ? (n(), w("div", {
4433
- key: `txt:${T.value}`,
4468
+ }), null, 16, ki)) : B("", !0)
4469
+ ], 64)) : be.value ? (n(), L("div", {
4470
+ key: `txt:${S.value}`,
4434
4471
  class: "file-preview-modal-body__plaintext"
4435
4472
  }, [
4436
- he.value === pe.loading ? (n(), R(ne, {
4473
+ he.value === pe.loading ? (n(), V(ne, {
4437
4474
  key: 0,
4438
4475
  tip: "加载中..."
4439
- })) : he.value === pe.iframeFallback ? (n(), w("iframe", {
4476
+ })) : he.value === pe.iframeFallback ? (n(), L("iframe", {
4440
4477
  key: 1,
4441
4478
  src: r.url,
4442
4479
  class: "file-preview-modal-body__iframe",
4443
4480
  width: "100%",
4444
4481
  style: { border: "none" },
4445
4482
  referrerpolicy: "no-referrer-when-downgrade"
4446
- }, null, 8, Si)) : he.value === pe.text ? (n(), w("pre", xi, x(g.value) + `
4447
- `, 1)) : A("", !0)
4448
- ])) : Y.value ? (n(), R(ce, {
4449
- key: `vfp:${T.value}`,
4483
+ }, null, 8, Si)) : he.value === pe.text ? (n(), L("pre", xi, k(g.value) + `
4484
+ `, 1)) : B("", !0)
4485
+ ])) : K.value ? (n(), V(ce, {
4486
+ key: `vfp:${S.value}`,
4450
4487
  url: e.url,
4451
4488
  onError: De
4452
- }, null, 8, ["url"])) : X.value ? (n(), w(G, { key: 3 }, [
4453
- ae.value ? (n(), w("iframe", ee({
4454
- key: `${T.value}:${ae.value}`,
4489
+ }, null, 8, ["url"])) : q.value ? (n(), L(X, { key: 3 }, [
4490
+ ae.value ? (n(), L("iframe", te({
4491
+ key: `${S.value}:${ae.value}`,
4455
4492
  src: ae.value
4456
4493
  }, ge.value, {
4457
4494
  class: "file-preview-modal-body__iframe",
4458
4495
  width: "100%",
4459
4496
  style: { border: "none" },
4460
4497
  referrerpolicy: "no-referrer-when-downgrade"
4461
- }), null, 16, Ti)) : A("", !0)
4462
- ], 64)) : N.value ? (n(), w("img", {
4463
- key: `img:${T.value}`,
4498
+ }), null, 16, Ti)) : B("", !0)
4499
+ ], 64)) : N.value ? (n(), L("img", {
4500
+ key: `img:${S.value}`,
4464
4501
  class: "file-preview-modal-body__img",
4465
4502
  src: e.url,
4466
4503
  alt: "预览"
4467
- }, null, 8, Fi)) : e.url ? (n(), w("div", {
4468
- key: `nop:${T.value}`,
4504
+ }, null, 8, Fi)) : e.url ? (n(), L("div", {
4505
+ key: `nop:${S.value}`,
4469
4506
  class: "no-preview"
4470
- }, x(W.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : A("", !0)
4507
+ }, k(z.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : B("", !0)
4471
4508
  ]),
4472
4509
  p("div", {
4473
- class: J(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
4510
+ class: Q(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
4474
4511
  }, [
4475
- q(U.$slots, "footer", {}, () => [
4476
- e.showAttachmentNav ? (n(), w("div", Hi, [
4477
- F(de, {
4512
+ Y(U.$slots, "footer", {}, () => [
4513
+ e.showAttachmentNav ? (n(), L("div", Hi, [
4514
+ x(de, {
4478
4515
  disabled: !e.hasPrevAttachment,
4479
- size: b.value,
4516
+ size: h.value,
4480
4517
  block: e.mobile,
4481
- onClick: z[3] || (z[3] = (Se) => c("prevAttachment"))
4518
+ onClick: R[3] || (R[3] = (Se) => c("prevAttachment"))
4482
4519
  }, {
4483
- default: u(() => [...z[10] || (z[10] = [
4520
+ default: u(() => [...R[10] || (R[10] = [
4484
4521
  O(" 上一个 ", -1)
4485
4522
  ])]),
4486
4523
  _: 1
4487
4524
  }, 8, ["disabled", "size", "block"]),
4488
- F(de, {
4525
+ x(de, {
4489
4526
  disabled: !e.hasNextAttachment,
4490
- size: b.value,
4527
+ size: h.value,
4491
4528
  block: e.mobile,
4492
- onClick: z[4] || (z[4] = (Se) => c("nextAttachment"))
4529
+ onClick: R[4] || (R[4] = (Se) => c("nextAttachment"))
4493
4530
  }, {
4494
- default: u(() => [...z[11] || (z[11] = [
4531
+ default: u(() => [...R[11] || (R[11] = [
4495
4532
  O(" 下一个 ", -1)
4496
4533
  ])]),
4497
4534
  _: 1
4498
4535
  }, 8, ["disabled", "size", "block"])
4499
- ])) : A("", !0),
4500
- $e.value ? (n(), R(de, {
4536
+ ])) : B("", !0),
4537
+ $e.value ? (n(), V(de, {
4501
4538
  key: 1,
4502
- size: b.value,
4539
+ size: h.value,
4503
4540
  block: e.mobile,
4504
4541
  onClick: Ie
4505
4542
  }, {
4506
- default: u(() => [...z[12] || (z[12] = [
4543
+ default: u(() => [...R[12] || (R[12] = [
4507
4544
  O(" 下载 ", -1)
4508
4545
  ])]),
4509
4546
  _: 1
4510
- }, 8, ["size", "block"])) : A("", !0),
4511
- F(de, {
4547
+ }, 8, ["size", "block"])) : B("", !0),
4548
+ x(de, {
4512
4549
  type: "primary",
4513
4550
  class: "file-preview-modal-footer__close",
4514
- size: b.value,
4551
+ size: h.value,
4515
4552
  block: e.mobile,
4516
4553
  onClick: Me
4517
4554
  }, {
4518
- default: u(() => [...z[13] || (z[13] = [
4555
+ default: u(() => [...R[13] || (R[13] = [
4519
4556
  O(" 关闭 ", -1)
4520
4557
  ])]),
4521
4558
  _: 1
@@ -4525,7 +4562,7 @@ const ri = (e) => {
4525
4562
  ], 64));
4526
4563
  };
4527
4564
  }
4528
- }), Ii = /* @__PURE__ */ oe($i, [["__scopeId", "data-v-e7a92b86"]]), Mi = Z(Ii), Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4565
+ }), Ii = /* @__PURE__ */ le($i, [["__scopeId", "data-v-e7a92b86"]]), Mi = ee(Ii), Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4529
4566
  __proto__: null,
4530
4567
  HbLibAnchor: ln,
4531
4568
  HbLibCard: Ja,
@@ -4563,8 +4600,8 @@ Lo && (document.addEventListener("mousedown", (e) => It = e), document.addEventL
4563
4600
  function Mt(e, o) {
4564
4601
  let t = [];
4565
4602
  return Array.isArray(o.arg) ? t = o.arg : o.arg instanceof HTMLElement && t.push(o.arg), function(a, d) {
4566
- const s = o.instance.popperRef, c = a.target, r = d?.target, l = !o || !o.instance, i = !c || !r, f = e.contains(c) || e.contains(r), L = e === c, b = t.length && t.some((I) => I?.contains(c)) || t.length && t.includes(r), P = s && (s.contains(c) || s.contains(r));
4567
- l || i || f || L || b || P || o.value(a, d);
4603
+ const s = o.instance.popperRef, c = a.target, r = d?.target, l = !o || !o.instance, i = !c || !r, f = e.contains(c) || e.contains(r), _ = e === c, h = t.length && t.some((I) => I?.contains(c)) || t.length && t.includes(r), P = s && (s.contains(c) || s.contains(r));
4604
+ l || i || f || _ || h || P || o.value(a, d);
4568
4605
  };
4569
4606
  }
4570
4607
  const Ai = {
@@ -4625,58 +4662,58 @@ const Ai = {
4625
4662
  }
4626
4663
  }, Ei = { cos: Ai, dc: Bi, icp: Oi };
4627
4664
  function as(e) {
4628
- const o = E(!1), t = E(""), a = E(""), d = E(-1), s = (h) => h.previewUrl, c = $(() => {
4629
- const h = e.value.attachmentInfos, m = d.value;
4665
+ const o = E(!1), t = E(""), a = E(""), d = E(-1), s = (v) => v.previewUrl, c = $(() => {
4666
+ const v = e.value.attachmentInfos, m = d.value;
4630
4667
  if (m <= 0) return !1;
4631
4668
  for (let y = m - 1; y >= 0; y--)
4632
- if (s(h[y])) return !0;
4669
+ if (s(v[y])) return !0;
4633
4670
  return !1;
4634
4671
  }), r = $(() => {
4635
- const h = e.value.attachmentInfos, m = d.value;
4636
- if (m < 0 || m >= h.length - 1) return !1;
4637
- for (let y = m + 1; y < h.length; y++)
4638
- if (s(h[y])) return !0;
4672
+ const v = e.value.attachmentInfos, m = d.value;
4673
+ if (m < 0 || m >= v.length - 1) return !1;
4674
+ for (let y = m + 1; y < v.length; y++)
4675
+ if (s(v[y])) return !0;
4639
4676
  return !1;
4640
- }), l = $(() => e.value.attachmentInfos.length > 1), i = (h) => {
4641
- const y = e.value.attachmentInfos[h];
4677
+ }), l = $(() => e.value.attachmentInfos.length > 1), i = (v) => {
4678
+ const y = e.value.attachmentInfos[v];
4642
4679
  if (!y) return;
4643
- const H = s(y);
4644
- H && (d.value = h, t.value = H, a.value = y.attachmentDesc || "", o.value = !0);
4680
+ const F = s(y);
4681
+ F && (d.value = v, t.value = F, a.value = y.attachmentDesc || "", o.value = !0);
4645
4682
  }, f = () => {
4646
- const h = e.value.attachmentInfos, m = d.value;
4683
+ const v = e.value.attachmentInfos, m = d.value;
4647
4684
  for (let y = m - 1; y >= 0; y--)
4648
- if (s(h[y])) {
4685
+ if (s(v[y])) {
4649
4686
  i(y);
4650
4687
  return;
4651
4688
  }
4652
- }, L = () => {
4653
- const h = e.value.attachmentInfos, m = d.value;
4654
- for (let y = m + 1; y < h.length; y++)
4655
- if (s(h[y])) {
4689
+ }, _ = () => {
4690
+ const v = e.value.attachmentInfos, m = d.value;
4691
+ for (let y = m + 1; y < v.length; y++)
4692
+ if (s(v[y])) {
4656
4693
  i(y);
4657
4694
  return;
4658
4695
  }
4659
- }, b = () => {
4696
+ }, h = () => {
4660
4697
  o.value = !1, d.value = -1, t.value = "", a.value = "";
4661
- }, P = (h, m) => {
4662
- const y = s(h);
4698
+ }, P = (v, m) => {
4699
+ const y = s(v);
4663
4700
  if (!y) {
4664
4701
  Le.warning("暂无预览地址");
4665
4702
  return;
4666
4703
  }
4667
- const H = e.value.attachmentInfos, S = ci(H, h, {
4704
+ const F = e.value.attachmentInfos, C = ci(F, v, {
4668
4705
  preferredIndex: m
4669
4706
  });
4670
- S >= 0 ? i(S) : (d.value = -1, t.value = y, a.value = h.attachmentDesc || "", o.value = !0);
4671
- }, I = (h) => {
4672
- const m = h.downloadUrl;
4707
+ C >= 0 ? i(C) : (d.value = -1, t.value = y, a.value = v.attachmentDesc || "", o.value = !0);
4708
+ }, I = (v) => {
4709
+ const m = v.downloadUrl;
4673
4710
  if (!m) {
4674
4711
  Le.warning("暂无下载地址");
4675
4712
  return;
4676
4713
  }
4677
- const y = h.attachmentDesc?.trim() || "download";
4714
+ const y = v.attachmentDesc?.trim() || "download";
4678
4715
  Ue(m, y);
4679
- }, V = 400;
4716
+ }, W = 400;
4680
4717
  return {
4681
4718
  filePreviewVisible: o,
4682
4719
  pdfPreviewUrlRef: t,
@@ -4687,9 +4724,9 @@ function as(e) {
4687
4724
  showAttachmentNavBar: l,
4688
4725
  handlePreview: P,
4689
4726
  handleDownload: I,
4690
- handleClosePreview: b,
4727
+ handleClosePreview: h,
4691
4728
  goPrevAttachment: f,
4692
- goNextAttachment: L,
4729
+ goNextAttachment: _,
4693
4730
  triggerBrowserDownload: Ue,
4694
4731
  handleBatchDownloadAttachment: async () => {
4695
4732
  const m = e.value.attachmentInfos.filter((y) => !!y.downloadUrl?.trim());
@@ -4698,8 +4735,8 @@ function as(e) {
4698
4735
  return;
4699
4736
  }
4700
4737
  for (let y = 0; y < m.length; y++) {
4701
- const H = m[y], S = H.attachmentDesc?.trim() || "download";
4702
- Ue(H.downloadUrl, S), y < m.length - 1 && await new Promise((C) => setTimeout(C, V));
4738
+ const F = m[y], C = F.attachmentDesc?.trim() || "download";
4739
+ Ue(F.downloadUrl, C), y < m.length - 1 && await new Promise((T) => setTimeout(T, W));
4703
4740
  }
4704
4741
  }
4705
4742
  };
@@ -4732,8 +4769,8 @@ const ns = (e) => {
4732
4769
  c = !0, r.x = f.clientX - s.offsetLeft, r.y = f.clientY - s.offsetTop, document.body.style.userSelect = "none";
4733
4770
  }), document.addEventListener("mousemove", (f) => {
4734
4771
  if (!c || !o) return;
4735
- const L = f.clientX - r.x, b = f.clientY - r.y;
4736
- s.style.left = `${L}px`, s.style.top = `${b}px`;
4772
+ const _ = f.clientX - r.x, h = f.clientY - r.y;
4773
+ s.style.left = `${_}px`, s.style.top = `${h}px`;
4737
4774
  }), document.addEventListener("mouseup", () => {
4738
4775
  c = !1, document.body.style.userSelect = "";
4739
4776
  }));
@@ -4745,8 +4782,8 @@ const ns = (e) => {
4745
4782
  xe(() => {
4746
4783
  const s = document.querySelector(`.${e} .ant-modal`);
4747
4784
  if (s) {
4748
- const c = window.innerWidth, r = window.innerHeight, l = s.offsetWidth, i = s.offsetHeight, f = (c - l) / 2, L = (r - i) / 2;
4749
- s.style.left = `${f}px`, s.style.top = `${L}px`;
4785
+ const c = window.innerWidth, r = window.innerHeight, l = s.offsetWidth, i = s.offsetHeight, f = (c - l) / 2, _ = (r - i) / 2;
4786
+ s.style.left = `${f}px`, s.style.top = `${_}px`;
4750
4787
  }
4751
4788
  });
4752
4789
  } };