@witlink/components 1.0.20 → 1.0.21

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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { InputNumber as ne, RangePicker as Ne, Table as Pe, Popover as Ae, Input as Be, Row as Te, Col as je, Button as De, Slider as Re } from "ant-design-vue/es";
2
- import { markRaw as oe, createElementBlock as P, openBlock as S, createElementVNode as $, defineComponent as O, mergeModels as R, useModel as H, useSlots as _e, useAttrs as Le, createBlock as U, mergeProps as I, createSlots as ae, renderList as V, withCtx as M, unref as x, renderSlot as z, normalizeProps as Ce, guardReactiveProps as Ie, createVNode as N, ref as C, getCurrentInstance as Y, render as X, h as W, computed as B, onMounted as xe, onUnmounted as Oe, normalizeClass as We, normalizeStyle as le, isRef as G, withKeys as Fe, withModifiers as ie, Fragment as q, createTextVNode as Q, toDisplayString as te, nextTick as ce, useCssVars as Ue, watch as ke, createCommentVNode as ue, shallowRef as K, shallowReadonly as Ve, toValue as F, getCurrentScope as ze, onScopeDispose as Ke, toRaw as qe } from "vue";
2
+ import { markRaw as oe, createElementBlock as P, openBlock as S, createElementVNode as $, defineComponent as O, mergeModels as R, useModel as H, useSlots as Ce, useAttrs as Le, createBlock as U, mergeProps as I, createSlots as ae, renderList as z, withCtx as M, unref as x, renderSlot as K, normalizeProps as xe, guardReactiveProps as Ie, createVNode as N, ref as C, getCurrentInstance as Y, render as X, h as W, computed as B, onMounted as ke, onUnmounted as Oe, normalizeClass as We, normalizeStyle as ie, isRef as G, withKeys as Fe, withModifiers as ce, Fragment as q, createTextVNode as Q, toDisplayString as te, nextTick as ue, useCssVars as Ue, watch as se, createCommentVNode as de, shallowRef as V, shallowReadonly as ze, toValue as F, getCurrentScope as Ke, onScopeDispose as Ve, toRaw as qe } from "vue";
3
3
  import { isNullOrUndef as j, hasPermission as Xe } from "./utils.js";
4
4
  import { UserCenterKey as nn, buildTree as on, exportFile as an, forEachTree as sn, getButtonPermissions as rn, getLocale as ln, getMenuInfo as cn, getToken as un, getUserCenterParams as dn, getUserCenterParamsByUrl as pn, getUserInfo as fn, is as mn, isArray as vn, isAsyncFunction as gn, isBoolean as hn, isClient as yn, isDate as bn, isDef as _n, isElement as Cn, isFunction as xn, isImageDom as kn, isNull as Sn, isNumber as wn, isObject as $n, isPromise as En, isServer as Mn, isString as Nn, isUndef as Pn, isWindow as An, logoutToUserCenter as Bn, removeAll as Tn, removeLocale as jn, removeToken as Dn, setLocale as Rn, setMenuInfo as Ln, setToken as In, setUserCenterParams as On, setUserInfo as Wn, toUserCenterConsole as Fn } from "./utils.js";
5
- import de from "dayjs";
5
+ import pe from "dayjs";
6
6
  import { Drawer as A, App as He, Modal as Ze, Button as Ge, ConfigProvider as Ye, Textarea as Qe, Form as Se, message as Je } from "ant-design-vue";
7
7
  import { ElScrollbar as et, ElTooltip as tt } from "element-plus";
8
8
  const nt = {
@@ -11,8 +11,8 @@ const nt = {
11
11
  width: "1.2em",
12
12
  height: "1.2em"
13
13
  };
14
- function ot(e, n) {
15
- return S(), P("svg", nt, n[0] || (n[0] = [
14
+ function ot(e, t) {
15
+ return S(), P("svg", nt, t[0] || (t[0] = [
16
16
  $("path", {
17
17
  fill: "currentColor",
18
18
  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
@@ -29,8 +29,8 @@ const at = oe({ name: "ant-design-plus", render: ot }), st = {
29
29
  width: "1.2em",
30
30
  height: "1.2em"
31
31
  };
32
- function rt(e, n) {
33
- return S(), P("svg", st, n[0] || (n[0] = [
32
+ function rt(e, t) {
33
+ return S(), P("svg", st, t[0] || (t[0] = [
34
34
  $("path", {
35
35
  fill: "currentColor",
36
36
  d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8"
@@ -57,46 +57,46 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
57
57
  valueModifiers: {}
58
58
  }),
59
59
  emits: /* @__PURE__ */ R(["change"], ["update:value"]),
60
- setup(e, { emit: n }) {
61
- const t = H(e, "value"), r = e, i = n, c = _e(), o = Le();
62
- function s(l) {
63
- if (j(l))
64
- t.value = null, i("change", null);
60
+ setup(e, { emit: t }) {
61
+ const n = H(e, "value"), r = e, i = t, c = Ce(), a = Le();
62
+ function l(o) {
63
+ if (j(o))
64
+ n.value = null, i("change", null);
65
65
  else {
66
- let u = l;
67
- r.stringMode && (u = Number(u).toFixed(r.precision)), t.value !== u && (t.value = u, i("change", u));
66
+ let u = o;
67
+ r.stringMode && (u = Number(u).toFixed(r.precision)), n.value !== u && (n.value = u, i("change", u));
68
68
  }
69
69
  }
70
70
  function d() {
71
- if (j(t.value))
71
+ if (j(n.value))
72
72
  return;
73
- let l = t.value;
74
- r.stringMode && (l = Number(l).toFixed(r.precision)), t.value = l;
73
+ let o = n.value;
74
+ r.stringMode && (o = Number(o).toFixed(r.precision)), n.value = o;
75
75
  }
76
76
  function p() {
77
- if (o.disabled) return;
78
- const l = Number(t.value);
79
- !j(o.min) && l <= Number(o.min) || s(l - 1);
77
+ if (a.disabled) return;
78
+ const o = Number(n.value);
79
+ !j(a.min) && o <= Number(a.min) || l(o - 1);
80
80
  }
81
- function a() {
82
- if (o.disabled) return;
83
- const l = Number(t.value);
84
- !j(o.max) && l >= Number(o.max) || s(l + 1);
81
+ function s() {
82
+ if (a.disabled) return;
83
+ const o = Number(n.value);
84
+ !j(a.max) && o >= Number(a.max) || l(o + 1);
85
85
  }
86
- return (l, u) => {
86
+ return (o, u) => {
87
87
  const v = lt, g = at, m = ne;
88
88
  return S(), U(m, I({
89
- value: t.value,
89
+ value: n.value,
90
90
  precision: e.precision,
91
91
  stringMode: e.stringMode,
92
92
  controls: !e.customControls,
93
- onChange: s,
93
+ onChange: l,
94
94
  onBlur: d
95
- }, l.$attrs), ae({ _: 2 }, [
96
- V(Object.keys(x(c)), (h) => ({
95
+ }, o.$attrs), ae({ _: 2 }, [
96
+ z(Object.keys(x(c)), (h) => ({
97
97
  name: h,
98
98
  fn: M((y) => [
99
- z(l.$slots, h, Ce(Ie(y)))
99
+ K(o.$slots, h, xe(Ie(y)))
100
100
  ])
101
101
  })),
102
102
  e.customControls ? {
@@ -116,7 +116,7 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
116
116
  fn: M(() => [
117
117
  $("div", {
118
118
  class: "btn-control",
119
- onClick: a
119
+ onClick: s
120
120
  }, [
121
121
  N(g, { class: "btn-icon" })
122
122
  ])
@@ -155,107 +155,107 @@ const lt = oe({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ O(
155
155
  }
156
156
  },
157
157
  emits: ["update:value", "change"],
158
- setup(e, { emit: n }) {
159
- const t = e, r = n, i = C(), c = C(), o = (a) => {
160
- const l = de().add(t.max, t.maxUnit), u = de().subtract(t.min, t.minUnit), v = t.interval;
158
+ setup(e, { emit: t }) {
159
+ const n = e, r = t, i = C(), c = C(), a = (s) => {
160
+ const o = pe().add(n.max, n.maxUnit), u = pe().subtract(n.min, n.minUnit), v = n.interval;
161
161
  if (!i.value || i.value.length === 0)
162
- return a.isAfter(l) || a.isBefore(u);
163
- const g = i.value[0] && (a.diff(i.value[0], "days") > v || a.isAfter(l));
164
- return i.value[1] && (i.value[1].diff(a, "days") > v || a.isBefore(u)) || g;
165
- }, s = (a) => {
166
- a ? (i.value = [], c.value = []) : c.value = void 0;
167
- }, d = (a) => {
168
- r("update:value", a), r("change", a);
169
- }, p = (a) => {
170
- i.value = a;
162
+ return s.isAfter(o) || s.isBefore(u);
163
+ const g = i.value[0] && (s.diff(i.value[0], "days") > v || s.isAfter(o));
164
+ return i.value[1] && (i.value[1].diff(s, "days") > v || s.isBefore(u)) || g;
165
+ }, l = (s) => {
166
+ s ? (i.value = [], c.value = []) : c.value = void 0;
167
+ }, d = (s) => {
168
+ r("update:value", s), r("change", s);
169
+ }, p = (s) => {
170
+ i.value = s;
171
171
  };
172
- return (a, l) => {
172
+ return (s, o) => {
173
173
  const u = Ne;
174
174
  return S(), U(u, I({
175
175
  value: x(c) || e.value,
176
- "disabled-date": o,
176
+ "disabled-date": a,
177
177
  onChange: d,
178
- onOpenChange: s,
178
+ onOpenChange: l,
179
179
  onCalendarChange: p
180
- }, a.$attrs), ae({ _: 2 }, [
181
- V(Object.keys(a.$slots), (v) => ({
180
+ }, s.$attrs), ae({ _: 2 }, [
181
+ z(Object.keys(s.$slots), (v) => ({
182
182
  name: v,
183
183
  fn: M((g) => [
184
- z(a.$slots, v)
184
+ K(s.$slots, v)
185
185
  ])
186
186
  }))
187
187
  ]), 1040, ["value"]);
188
188
  };
189
189
  }
190
190
  });
191
- function se(e) {
191
+ function re(e) {
192
192
  e || (e = Y());
193
- const n = (e == null ? void 0 : e.provides) || {}, t = ut(n, "configProvider"), r = n[t];
193
+ const t = (e == null ? void 0 : e.provides) || {}, n = ut(t, "configProvider"), r = t[n];
194
194
  return Object.fromEntries(
195
- Object.entries(r).map(([c, o]) => [c, x(o)])
195
+ Object.entries(r).map(([c, a]) => [c, x(a)])
196
196
  );
197
197
  }
198
- function ut(e, n) {
198
+ function ut(e, t) {
199
199
  for (; e; ) {
200
- const t = Reflect.ownKeys(e).find(
201
- (r) => r === n || typeof r == "symbol" && r.description === n
200
+ const n = Reflect.ownKeys(e).find(
201
+ (r) => r === t || typeof r == "symbol" && r.description === t
202
202
  );
203
- if (t)
204
- return t;
203
+ if (n)
204
+ return n;
205
205
  e = Object.getPrototypeOf(e);
206
206
  }
207
207
  return null;
208
208
  }
209
209
  function Yt(e) {
210
- var t;
211
- let n = (t = Y()) == null ? void 0 : t.parent;
212
- for (; n; ) {
213
- if (n.type.name === e)
214
- return n;
215
- n = n.parent;
210
+ var n;
211
+ let t = (n = Y()) == null ? void 0 : n.parent;
212
+ for (; t; ) {
213
+ if (t.type.name === e)
214
+ return t;
215
+ t = t.parent;
216
216
  }
217
217
  return null;
218
218
  }
219
- let L, pe, D, fe;
219
+ let L, fe, D, me;
220
220
  A.destroy = function() {
221
- const e = A.instanceArr || [], n = e.pop();
222
- if (n && X(null, n.container), e.length > 0) {
223
- const t = e[e.length - 1].instance;
224
- Object.assign(t.component.props, {
221
+ const e = A.instanceArr || [], t = e.pop();
222
+ if (t && X(null, t.container), e.length > 0) {
223
+ const n = e[e.length - 1].instance;
224
+ Object.assign(n.component.props, {
225
225
  contentWrapperStyle: { transform: null }
226
- }), t.component.update();
226
+ }), n.component.update();
227
227
  }
228
228
  };
229
229
  A.destroyAll = function() {
230
- (A.instanceArr || []).forEach((n) => {
231
- X(null, n.container);
230
+ (A.instanceArr || []).forEach((t) => {
231
+ X(null, t.container);
232
232
  }), A.instanceArr = [];
233
233
  };
234
234
  function Qt() {
235
- var a, l;
235
+ var s, o;
236
236
  const e = Y();
237
237
  if (!D) {
238
238
  const u = He.useApp();
239
- D = u.modal, pe = u.message, fe = u.notification;
239
+ D = u.modal, fe = u.message, me = u.notification;
240
240
  }
241
241
  D.info || (D = Ze);
242
- const n = {
242
+ const t = {
243
243
  zh: "关闭",
244
244
  en: "Close",
245
245
  fr: "fermeture"
246
- }, t = {
246
+ }, n = {
247
247
  zh: "请输入",
248
248
  en: "Please Enter",
249
249
  fr: "Veuillez entrer"
250
- }, r = se(), i = ((l = (a = r == null ? void 0 : r.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en";
250
+ }, r = re(), i = ((o = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.locale) == null ? void 0 : o.slice(0, 2)) || "en";
251
251
  function c({ title: u, ...v }) {
252
252
  const g = C();
253
- return o({
253
+ return a({
254
254
  title: u,
255
255
  ...v,
256
256
  comp: Qe,
257
257
  props: {
258
- placeholder: t[i],
258
+ placeholder: n[i],
259
259
  autoSize: { minRows: 6 },
260
260
  value: g,
261
261
  "onUpdate:value": (m) => {
@@ -270,7 +270,7 @@ function Qt() {
270
270
  })
271
271
  });
272
272
  }
273
- function o({ title: u, comp: v, props: g, ...m }) {
273
+ function a({ title: u, comp: v, props: g, ...m }) {
274
274
  const h = W(v, g), y = (m == null ? void 0 : m.type) ?? "info", f = {
275
275
  title: u,
276
276
  content: h,
@@ -298,7 +298,7 @@ function Qt() {
298
298
  }
299
299
  return L;
300
300
  }
301
- function s() {
301
+ function l() {
302
302
  L == null || L.destroy();
303
303
  }
304
304
  function d({ title: u, comp: v, props: g, ...m }) {
@@ -332,7 +332,7 @@ function Qt() {
332
332
  A.destroy();
333
333
  }
334
334
  },
335
- n[i]
335
+ t[i]
336
336
  )
337
337
  });
338
338
  const w = m.width || 992;
@@ -370,12 +370,12 @@ function Qt() {
370
370
  A.destroy();
371
371
  }
372
372
  return {
373
- message: pe,
373
+ message: fe,
374
374
  modal: D,
375
- notification: fe,
375
+ notification: me,
376
376
  modalInput: c,
377
- modalComp: o,
378
- modalDestroy: s,
377
+ modalComp: a,
378
+ modalDestroy: l,
379
379
  drawerComp: d,
380
380
  drawerDestroy: p
381
381
  };
@@ -393,52 +393,52 @@ const dt = /* @__PURE__ */ O({
393
393
  default: !0
394
394
  }
395
395
  },
396
- setup(e, { expose: n }) {
397
- const t = e, r = _e(), i = C([]), c = C(!1), o = C(0), s = C(1), d = C(10), p = C(), a = C(), l = {
396
+ setup(e, { expose: t }) {
397
+ const n = e, r = Ce(), i = C([]), c = C(!1), a = C(0), l = C(1), d = C(10), p = C(), s = C(), o = {
398
398
  zh: "共 {num} 条",
399
399
  en: "Total {num} items",
400
400
  fr: "Total de {num}"
401
- }, u = se(), v = B(() => {
401
+ }, u = re(), v = B(() => {
402
402
  var w, k;
403
403
  return ((k = (w = u == null ? void 0 : u.locale) == null ? void 0 : w.locale) == null ? void 0 : k.slice(0, 2)) || "en";
404
404
  }), g = B(() => ({
405
- total: o.value,
406
- current: s.value,
405
+ total: a.value,
406
+ current: l.value,
407
407
  pageSize: d.value,
408
408
  showSizeChanger: !0,
409
409
  size: "small",
410
- showTotal: (_) => l[v.value].replace("{num}", _)
410
+ showTotal: (_) => o[v.value].replace("{num}", _)
411
411
  }));
412
412
  function m() {
413
413
  var _;
414
- if (typeof t.loadData == "function") {
414
+ if (typeof n.loadData == "function") {
415
415
  c.value = !0;
416
- const w = { pageNo: s.value, pageSize: d.value };
417
- t.formatSortParams && ((_ = a.value) != null && _.orderMap) && (w[a.value.field + "SortField"] = a.value.orderMap), t.loadData(w, p.value, a.value).then((k) => {
418
- c.value = !1, (k == null ? void 0 : k.code) === 0 && (o.value = k.result.totalCount, i.value = k.result.data);
416
+ const w = { pageNo: l.value, pageSize: d.value };
417
+ n.formatSortParams && ((_ = s.value) != null && _.orderMap) && (w[s.value.field + "SortField"] = s.value.orderMap), n.loadData(w, p.value, s.value).then((k) => {
418
+ c.value = !1, (k == null ? void 0 : k.code) === 0 && (a.value = k.result.totalCount, i.value = k.result.data);
419
419
  });
420
420
  }
421
421
  }
422
422
  function h(_, w, k) {
423
- if (s.value = _.current, d.value = _.pageSize, p.value = w, k) {
423
+ if (l.value = _.current, d.value = _.pageSize, p.value = w, k) {
424
424
  const T = {
425
425
  ascend: "asc",
426
426
  descend: "desc"
427
427
  };
428
428
  k.orderMap = T[k.order] || "";
429
429
  }
430
- a.value = k, m();
430
+ s.value = k, m();
431
431
  }
432
432
  function y(_, w) {
433
433
  w.width = _;
434
434
  }
435
435
  function f() {
436
- s.value = 1, m();
436
+ l.value = 1, m();
437
437
  }
438
438
  function b() {
439
- s.value = 1, o.value = 0, i.value = [];
439
+ l.value = 1, a.value = 0, i.value = [];
440
440
  }
441
- return n({
441
+ return t({
442
442
  loadData: m,
443
443
  refresh: f,
444
444
  reset: b
@@ -452,10 +452,10 @@ const dt = /* @__PURE__ */ O({
452
452
  onChange: h,
453
453
  onResizeColumn: y
454
454
  }, _.$attrs), ae({ _: 2 }, [
455
- V(Object.keys(x(r)), (T) => ({
455
+ z(Object.keys(x(r)), (T) => ({
456
456
  name: T,
457
457
  fn: M((E) => [
458
- T !== "emptyText" ? z(_.$slots, T, Ce(I({ key: 0 }, E))) : z(_.$slots, T, { key: 1 })
458
+ T !== "emptyText" ? K(_.$slots, T, xe(I({ key: 0 }, E))) : K(_.$slots, T, { key: 1 })
459
459
  ])
460
460
  }))
461
461
  ]), 1040, ["loading", "pagination", "dataSource"]);
@@ -478,39 +478,39 @@ const dt = /* @__PURE__ */ O({
478
478
  }
479
479
  },
480
480
  setup(e) {
481
- const n = e, t = C(), r = C(), i = C({}), c = C({}), o = C(0.2);
482
- function s(p) {
481
+ const t = e, n = C(), r = C(), i = C({}), c = C({}), a = C(0.2);
482
+ function l(p) {
483
483
  i.value = { width: `calc(${p * 100}% - 5px)` }, c.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
484
484
  }
485
485
  function d() {
486
- const p = t.value;
486
+ const p = n.value;
487
487
  if (!p)
488
488
  return;
489
- const a = p.clientWidth, l = p.getBoundingClientRect(), u = l.left;
489
+ const s = p.clientWidth, o = p.getBoundingClientRect(), u = o.left;
490
490
  function v(m) {
491
- m.preventDefault(), (m.clientX < l.left || m.clientX > l.right || m.clientY < l.top || m.clientY > l.bottom) && g();
492
- const y = (m.clientX - u) / a;
493
- y > n.leftMin && y < n.leftMax && (o.value = y, s(y));
491
+ m.preventDefault(), (m.clientX < o.left || m.clientX > o.right || m.clientY < o.top || m.clientY > o.bottom) && g();
492
+ const y = (m.clientX - u) / s;
493
+ y > t.leftMin && y < t.leftMax && (a.value = y, l(y));
494
494
  }
495
495
  function g() {
496
496
  document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", g);
497
497
  }
498
498
  document.addEventListener("mousemove", v), document.addEventListener("mouseup", g);
499
499
  }
500
- return xe(() => {
501
- s(o.value), r.value && r.value.addEventListener("mousedown", d, !1);
500
+ return ke(() => {
501
+ l(a.value), r.value && r.value.addEventListener("mousedown", d, !1);
502
502
  }), Oe(() => {
503
503
  r.value && r.value.removeEventListener("mousedown", d);
504
- }), (p, a) => (S(), P("div", {
504
+ }), (p, s) => (S(), P("div", {
505
505
  ref_key: "container",
506
- ref: t,
506
+ ref: n,
507
507
  class: We(["wl-splitter", { bordered: e.bordered }])
508
508
  }, [
509
509
  $("div", {
510
510
  class: "my-left",
511
- style: le(x(i))
511
+ style: ie(x(i))
512
512
  }, [
513
- z(p.$slots, "left")
513
+ K(p.$slots, "left")
514
514
  ], 4),
515
515
  $("div", {
516
516
  ref_key: "spliter",
@@ -520,9 +520,9 @@ const dt = /* @__PURE__ */ O({
520
520
  }, null, 512),
521
521
  $("div", {
522
522
  class: "my-right",
523
- style: le(x(c))
523
+ style: ie(x(c))
524
524
  }, [
525
- z(p.$slots, "right")
525
+ K(p.$slots, "right")
526
526
  ], 4)
527
527
  ], 2));
528
528
  }
@@ -534,8 +534,8 @@ const dt = /* @__PURE__ */ O({
534
534
  fill: "none",
535
535
  xmlns: "http://www.w3.org/2000/svg"
536
536
  };
537
- function mt(e, n) {
538
- return S(), P("svg", ft, n[0] || (n[0] = [
537
+ function mt(e, t) {
538
+ return S(), P("svg", ft, t[0] || (t[0] = [
539
539
  $("path", {
540
540
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
541
541
  stroke: "#272E3B",
@@ -581,38 +581,38 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
581
581
  valueModifiers: {}
582
582
  }),
583
583
  emits: /* @__PURE__ */ R(["enter"], ["update:value"]),
584
- setup(e, { emit: n }) {
585
- const t = e, r = n, i = C(), c = C(), o = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), s = H(e, "value"), d = C(!1);
584
+ setup(e, { emit: t }) {
585
+ const n = e, r = t, i = C(), c = C(), a = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), l = H(e, "value"), d = C(!1);
586
586
  function p() {
587
587
  d.value = !0;
588
588
  }
589
- function a() {
589
+ function s() {
590
590
  m();
591
591
  }
592
- function l(h) {
593
- c.value.focus(), s.value = Number(h).toFixed(t.precision);
592
+ function o(h) {
593
+ c.value.focus(), l.value = Number(h).toFixed(n.precision);
594
594
  }
595
595
  function u(h) {
596
- if (c.value.focus(), j(s.value) || s.value === "") {
596
+ if (c.value.focus(), j(l.value) || l.value === "") {
597
597
  if (["00", "."].includes(h))
598
598
  return;
599
- s.value = h;
599
+ l.value = h;
600
600
  } else {
601
- const y = String(s.value), f = i.value.getElementsByTagName("input")[0], b = f.selectionStart || 0, _ = f.selectionEnd || 0;
602
- s.value = `${y.slice(0, b)}${h}${y.slice(_)}`;
601
+ const y = String(l.value), f = i.value.getElementsByTagName("input")[0], b = f.selectionStart || 0, _ = f.selectionEnd || 0;
602
+ l.value = `${y.slice(0, b)}${h}${y.slice(_)}`;
603
603
  const w = b + h.length;
604
- ce(() => {
604
+ ue(() => {
605
605
  c.value.setSelectionRange(w, w);
606
606
  });
607
607
  }
608
608
  }
609
609
  function v() {
610
- if (c.value.focus(), j(s.value))
610
+ if (c.value.focus(), j(l.value))
611
611
  return;
612
- const h = String(s.value);
612
+ const h = String(l.value);
613
613
  if (h != null && h.length) {
614
614
  const y = i.value.getElementsByTagName("input")[0], f = y.selectionStart || 0, b = y.selectionEnd || 0, _ = f > 0 ? f - 1 : 0;
615
- f === b ? s.value = h.slice(0, _) + h.slice(b) : s.value = h.slice(0, f) + h.slice(b), ce(() => {
615
+ f === b ? l.value = h.slice(0, _) + h.slice(b) : l.value = h.slice(0, f) + h.slice(b), ue(() => {
616
616
  c.value.setSelectionRange(_, _);
617
617
  });
618
618
  }
@@ -621,9 +621,9 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
621
621
  c.value.blur();
622
622
  }
623
623
  function m() {
624
- const h = t.min, y = t.max;
625
- let f = parseFloat(s.value || "0");
626
- j(h) || (f = f > h ? f : h), j(y) || (f = f > y ? y : f), s.value = Number(f).toFixed(t.precision), d.value = !1, r("enter");
624
+ const h = n.min, y = n.max;
625
+ let f = parseFloat(l.value || "0");
626
+ j(h) || (f = f > h ? f : h), j(y) || (f = f > y ? y : f), l.value = Number(f).toFixed(n.precision), d.value = !1, r("enter");
627
627
  }
628
628
  return (h, y) => {
629
629
  const f = De, b = je, _ = vt, w = Te, k = Be, T = Ae;
@@ -643,7 +643,7 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
643
643
  content: M(() => [
644
644
  $("div", {
645
645
  class: "keyboard-panel",
646
- onMousedownCapture: y[0] || (y[0] = ie(() => {
646
+ onMousedownCapture: y[0] || (y[0] = ce(() => {
647
647
  }, ["prevent", "stop"]))
648
648
  }, [
649
649
  N(w, { gutter: "8" }, {
@@ -651,17 +651,17 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
651
651
  N(b, { span: 18 }, {
652
652
  default: M(() => [
653
653
  $("div", gt, [
654
- (S(!0), P(q, null, V(e.quickNums, (E) => (S(), U(f, {
654
+ (S(!0), P(q, null, z(e.quickNums, (E) => (S(), U(f, {
655
655
  class: "btn-num",
656
656
  key: E,
657
- onClick: (Z) => l(E)
657
+ onClick: (Z) => o(E)
658
658
  }, {
659
659
  default: M(() => [
660
660
  Q(te(E), 1)
661
661
  ]),
662
662
  _: 2
663
663
  }, 1032, ["onClick"]))), 128)),
664
- (S(!0), P(q, null, V(x(o), (E) => (S(), U(f, {
664
+ (S(!0), P(q, null, z(x(a), (E) => (S(), U(f, {
665
665
  class: "btn-num",
666
666
  key: E,
667
667
  onClick: (Z) => u(E)
@@ -690,7 +690,7 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
690
690
  N(f, {
691
691
  class: "btn-enter",
692
692
  type: "primary",
693
- onClick: ie(g, ["stop"])
693
+ onClick: ce(g, ["stop"])
694
694
  }, {
695
695
  default: M(() => y[3] || (y[3] = [
696
696
  Q("Enter ")
@@ -710,11 +710,11 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
710
710
  N(k, I({
711
711
  ref_key: "inputRef",
712
712
  ref: c,
713
- value: s.value,
714
- "onUpdate:value": y[1] || (y[1] = (E) => s.value = E)
713
+ value: l.value,
714
+ "onUpdate:value": y[1] || (y[1] = (E) => l.value = E)
715
715
  }, h.$attrs, {
716
716
  onFocus: p,
717
- onBlur: a,
717
+ onBlur: s,
718
718
  onKeyup: Fe(g, ["enter"])
719
719
  }), null, 16, ["value"])
720
720
  ]),
@@ -751,31 +751,31 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
751
751
  valueModifiers: {}
752
752
  }),
753
753
  emits: /* @__PURE__ */ R(["change"], ["update:value"]),
754
- setup(e, { emit: n }) {
755
- Ue((a) => ({
756
- "6aa59d12": x(o),
757
- "191f412b": x(s),
754
+ setup(e, { emit: t }) {
755
+ Ue((s) => ({
756
+ "6aa59d12": x(a),
757
+ "191f412b": x(l),
758
758
  "191f44ec": x(d)
759
759
  }));
760
- const t = e, r = H(e, "value"), i = n, c = B(() => {
761
- const a = {}, l = Array.from(t.flagStops), u = t.min || 0, v = t.max || 100, g = [u, ...r.value, v];
760
+ const n = e, r = H(e, "value"), i = t, c = B(() => {
761
+ const s = {}, o = Array.from(n.flagStops), u = n.min || 0, v = n.max || 100, g = [u, ...r.value, v];
762
762
  for (let m = 0; m < g.length; m++) {
763
763
  const h = g[m];
764
- if (a[h] = h, m > 0) {
765
- const y = l.shift(), f = g[m - 1], b = f + (h - f) / 2;
766
- a[b] = { style: { top: "-28px" }, label: y };
764
+ if (s[h] = h, m > 0) {
765
+ const y = o.shift(), f = g[m - 1], b = f + (h - f) / 2;
766
+ s[b] = { style: { top: "-28px" }, label: y };
767
767
  }
768
768
  }
769
- return a;
770
- }), o = B(() => {
771
- const a = r.value, l = t.min || 0, u = t.max || 100, v = Math.floor((a[0] - l) / (u - l) * 100), g = t.colorStops, m = g[0], h = g[g.length - 1];
769
+ return s;
770
+ }), a = B(() => {
771
+ const s = r.value, o = n.min || 0, u = n.max || 100, v = Math.floor((s[0] - o) / (u - o) * 100), g = n.colorStops, m = g[0], h = g[g.length - 1];
772
772
  return `linear-gradient(90deg, ${m} 0%, ${m} ${v}%, ${h} ${v}%, ${h} 100%)`;
773
- }), s = B(() => t.colorStops[1]), d = B(() => t.colorStops[2]);
774
- function p(a) {
775
- const l = t.min || 0, u = t.max || 100;
776
- a[0] <= l ? a[0] = l + 1 : a.at(-1) >= u && (a[a.length - 1] = u - 1), a.length === new Set(a).size && (r.value = a, i("change", a));
773
+ }), l = B(() => n.colorStops[1]), d = B(() => n.colorStops[2]);
774
+ function p(s) {
775
+ const o = n.min || 0, u = n.max || 100;
776
+ s[0] <= o ? s[0] = o + 1 : s.at(-1) >= u && (s[s.length - 1] = u - 1), s.length === new Set(s).size && (r.value = s, i("change", s));
777
777
  }
778
- return (a, l) => {
778
+ return (s, o) => {
779
779
  const u = Re;
780
780
  return S(), U(u, I({
781
781
  class: "rate-slider",
@@ -785,7 +785,7 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
785
785
  range: "",
786
786
  marks: x(c),
787
787
  onChange: p
788
- }, a.$attrs), null, 16, ["value", "min", "max", "marks"]);
788
+ }, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
789
789
  };
790
790
  }
791
791
  }), _t = { class: "ip-input" }, Ct = { class: "ip-wrapper" }, xt = {
@@ -804,41 +804,41 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
804
804
  }),
805
805
  emits: ["update:value"],
806
806
  setup(e) {
807
- const n = Se.useInjectFormItemContext(), t = e, r = H(e, "value"), i = C(["", "", "", ""]), c = C(), o = C(""), s = C(), d = (l) => {
807
+ const t = Se.useInjectFormItemContext(), n = e, r = H(e, "value"), i = C(["", "", "", ""]), c = C(), a = C(""), l = C(), d = (o) => {
808
808
  var v, g;
809
- const u = i.value[l];
809
+ const u = i.value[o];
810
810
  if (u && (!/^\d+$/.test(u) || parseInt(u) > 255)) {
811
- i.value[l] = "";
811
+ i.value[o] = "";
812
812
  return;
813
813
  }
814
- parseInt(u) >= 100 && (l < 3 ? (v = c.value) != null && v.length && c.value[l + 1].focus() : t.hasPort && ((g = s.value) == null || g.focus())), r.value = `${i.value.join(".")}${t.hasPort ? ":" + o.value : ""}`, n.clearValidate();
815
- }, p = (l, u) => {
814
+ parseInt(u) >= 100 && (o < 3 ? (v = c.value) != null && v.length && c.value[o + 1].focus() : n.hasPort && ((g = l.value) == null || g.focus())), r.value = `${i.value.join(".")}${n.hasPort ? ":" + a.value : ""}`, t.clearValidate();
815
+ }, p = (o, u) => {
816
816
  var v, g;
817
- u.key === " " && l < 3 && (u.preventDefault(), (v = c.value) != null && v.length && c.value[l + 1].focus()), u.key === "Backspace" && i.value[l] === "" && l > 0 && (g = c.value) != null && g.length && c.value[l - 1].focus();
817
+ u.key === " " && o < 3 && (u.preventDefault(), (v = c.value) != null && v.length && c.value[o + 1].focus()), u.key === "Backspace" && i.value[o] === "" && o > 0 && (g = c.value) != null && g.length && c.value[o - 1].focus();
818
818
  };
819
- function a() {
820
- r.value = `${i.value.join(".")}${t.hasPort ? ":" + (o.value || "") : ""}`, n.clearValidate();
819
+ function s() {
820
+ r.value = `${i.value.join(".")}${n.hasPort ? ":" + (a.value || "") : ""}`, t.clearValidate();
821
821
  }
822
- return ke(
822
+ return se(
823
823
  () => r.value,
824
- (l) => {
825
- if (l) {
826
- let u = l;
827
- if (t.hasPort) {
828
- const g = l.split(":");
829
- o.value = g[1] || "", u = g[0];
824
+ (o) => {
825
+ if (o) {
826
+ let u = o;
827
+ if (n.hasPort) {
828
+ const g = o.split(":");
829
+ a.value = g[1] || "", u = g[0];
830
830
  }
831
831
  const v = u.split(".");
832
832
  v.length === 4 && (i.value = v);
833
833
  } else
834
- i.value = ["", "", "", ""], o.value = "";
834
+ i.value = ["", "", "", ""], a.value = "";
835
835
  },
836
836
  { immediate: !0 }
837
- ), (l, u) => {
837
+ ), (o, u) => {
838
838
  const v = ne;
839
839
  return S(), P("div", _t, [
840
840
  $("div", Ct, [
841
- (S(!0), P(q, null, V(x(i), (g, m) => (S(), P(q, { key: m }, [
841
+ (S(!0), P(q, null, z(x(i), (g, m) => (S(), P(q, { key: m }, [
842
842
  N(v, {
843
843
  ref_for: !0,
844
844
  ref_key: "ipPartArr",
@@ -853,24 +853,24 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
853
853
  onChange: (h) => d(m),
854
854
  onKeydown: (h) => p(m, h)
855
855
  }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
856
- m < 3 ? (S(), P("span", xt, ".")) : ue("", !0)
856
+ m < 3 ? (S(), P("span", xt, ".")) : de("", !0)
857
857
  ], 64))), 128))
858
858
  ]),
859
859
  e.hasPort ? (S(), P(q, { key: 0 }, [
860
860
  u[1] || (u[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
861
861
  N(v, {
862
862
  ref_key: "portRef",
863
- ref: s,
863
+ ref: l,
864
864
  class: "ip-port",
865
- value: x(o),
866
- "onUpdate:value": u[0] || (u[0] = (g) => G(o) ? o.value = g : null),
865
+ value: x(a),
866
+ "onUpdate:value": u[0] || (u[0] = (g) => G(a) ? a.value = g : null),
867
867
  min: 0,
868
868
  max: 65535,
869
869
  precision: 0,
870
870
  controls: !1,
871
- onChange: a
871
+ onChange: s
872
872
  }, null, 8, ["value"])
873
- ], 64)) : ue("", !0)
873
+ ], 64)) : de("", !0)
874
874
  ]);
875
875
  };
876
876
  }
@@ -899,40 +899,47 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
899
899
  },
900
900
  valueModifiers: {}
901
901
  }),
902
- emits: /* @__PURE__ */ R(["enter"], ["update:value"]),
903
- setup(e, { emit: n }) {
904
- const t = e, r = H(e, "value"), i = Se.useInjectFormItemContext(), c = B(() => {
905
- const a = r.value[1];
906
- return j(a) ? t.max : a;
907
- }), o = B(() => {
908
- const a = r.value[0];
909
- return j(a) ? t.min : a;
910
- }), s = C(), d = C();
911
- function p() {
912
- r.value = [s.value, d.value], i.onFieldChange();
902
+ emits: /* @__PURE__ */ R(["change"], ["update:value"]),
903
+ setup(e, { emit: t }) {
904
+ const n = e, r = H(e, "value"), i = t, c = Se.useInjectFormItemContext(), a = B(() => {
905
+ const o = r.value[1];
906
+ return j(o) ? n.max : o;
907
+ }), l = B(() => {
908
+ const o = r.value[0];
909
+ return j(o) ? n.min : o;
910
+ }), d = C(), p = C();
911
+ function s() {
912
+ const o = [d.value, p.value];
913
+ r.value = o, c.onFieldChange(), i("change", o);
913
914
  }
914
- return (a, l) => {
915
- const u = ne;
915
+ return se(
916
+ () => r.value,
917
+ (o) => {
918
+ o != null && o.length ? (d.value = o[0], p.value = o[1]) : (d.value = void 0, p.value = void 0);
919
+ },
920
+ { immediate: !0 }
921
+ ), (o, u) => {
922
+ const v = ne;
916
923
  return S(), P("div", St, [
917
- N(u, I({
918
- min: t.min,
919
- max: x(c),
920
- value: x(s),
921
- "onUpdate:value": l[0] || (l[0] = (v) => G(s) ? s.value = v : null),
924
+ N(v, I({
925
+ min: n.min,
926
+ max: x(a),
927
+ value: x(d),
928
+ "onUpdate:value": u[0] || (u[0] = (g) => G(d) ? d.value = g : null),
922
929
  placeholder: e.placeholder[0] || ""
923
- }, a.$attrs, { onChange: p }), null, 16, ["min", "max", "value", "placeholder"]),
930
+ }, o.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"]),
924
931
  $("span", wt, te(e.separator), 1),
925
- N(u, I({
926
- min: x(o),
927
- max: t.max,
928
- value: x(d),
929
- "onUpdate:value": l[1] || (l[1] = (v) => G(d) ? d.value = v : null),
932
+ N(v, I({
933
+ min: x(l),
934
+ max: n.max,
935
+ value: x(p),
936
+ "onUpdate:value": u[1] || (u[1] = (g) => G(p) ? p.value = g : null),
930
937
  placeholder: e.placeholder[1] || ""
931
- }, a.$attrs, { onChange: p }), null, 16, ["min", "max", "value", "placeholder"])
938
+ }, o.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"])
932
939
  ]);
933
940
  };
934
941
  }
935
- }), me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
942
+ }), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
936
943
  __proto__: null,
937
944
  AInputNumberEx: it,
938
945
  ARangePickerEx: ct,
@@ -944,166 +951,166 @@ const vt = oe({ name: "local-clear", render: mt }), gt = { class: "nums-box" },
944
951
  WlSplitter: pt
945
952
  }, Symbol.toStringTag, { value: "Module" }));
946
953
  function we(e) {
947
- return ze() ? (Ke(e), !0) : !1;
954
+ return Ke() ? (Ve(e), !0) : !1;
948
955
  }
949
- const re = typeof window < "u" && typeof document < "u";
956
+ const le = typeof window < "u" && typeof document < "u";
950
957
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
951
958
  const Et = Object.prototype.toString, Mt = (e) => Et.call(e) === "[object Object]";
952
959
  function Nt(e) {
953
- let n;
954
- function t() {
955
- return n || (n = e()), n;
960
+ let t;
961
+ function n() {
962
+ return t || (t = e()), t;
956
963
  }
957
- return t.reset = async () => {
958
- const r = n;
959
- n = void 0, r && await r;
960
- }, t;
964
+ return n.reset = async () => {
965
+ const r = t;
966
+ t = void 0, r && await r;
967
+ }, n;
961
968
  }
962
969
  function J(e) {
963
970
  return Array.isArray(e) ? e : [e];
964
971
  }
965
- function Pt(e, n, t = {}) {
972
+ function Pt(e, t, n = {}) {
966
973
  const {
967
974
  immediate: r = !0,
968
975
  immediateCallback: i = !1
969
- } = t, c = K(!1);
970
- let o = null;
971
- function s() {
972
- o && (clearTimeout(o), o = null);
976
+ } = n, c = V(!1);
977
+ let a = null;
978
+ function l() {
979
+ a && (clearTimeout(a), a = null);
973
980
  }
974
981
  function d() {
975
- c.value = !1, s();
982
+ c.value = !1, l();
976
983
  }
977
- function p(...a) {
978
- i && e(), s(), c.value = !0, o = setTimeout(() => {
979
- c.value = !1, o = null, e(...a);
980
- }, F(n));
984
+ function p(...s) {
985
+ i && e(), l(), c.value = !0, a = setTimeout(() => {
986
+ c.value = !1, a = null, e(...s);
987
+ }, F(t));
981
988
  }
982
- return r && (c.value = !0, re && p()), we(d), {
983
- isPending: Ve(c),
989
+ return r && (c.value = !0, le && p()), we(d), {
990
+ isPending: ze(c),
984
991
  start: p,
985
992
  stop: d
986
993
  };
987
994
  }
988
- function At(e, n, t) {
989
- return ke(
995
+ function At(e, t, n) {
996
+ return se(
990
997
  e,
991
- n,
998
+ t,
992
999
  {
993
- ...t,
1000
+ ...n,
994
1001
  immediate: !0
995
1002
  }
996
1003
  );
997
1004
  }
998
- const Bt = re ? window : void 0, $e = re ? window.navigator : void 0;
1005
+ const Bt = le ? window : void 0, $e = le ? window.navigator : void 0;
999
1006
  function Tt(e) {
1000
- var n;
1001
- const t = F(e);
1002
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
1007
+ var t;
1008
+ const n = F(e);
1009
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
1003
1010
  }
1004
1011
  function Ee(...e) {
1005
- const n = [], t = () => {
1006
- n.forEach((s) => s()), n.length = 0;
1007
- }, r = (s, d, p, a) => (s.addEventListener(d, p, a), () => s.removeEventListener(d, p, a)), i = B(() => {
1008
- const s = J(F(e[0])).filter((d) => d != null);
1009
- return s.every((d) => typeof d != "string") ? s : void 0;
1012
+ const t = [], n = () => {
1013
+ t.forEach((l) => l()), t.length = 0;
1014
+ }, r = (l, d, p, s) => (l.addEventListener(d, p, s), () => l.removeEventListener(d, p, s)), i = B(() => {
1015
+ const l = J(F(e[0])).filter((d) => d != null);
1016
+ return l.every((d) => typeof d != "string") ? l : void 0;
1010
1017
  }), c = At(
1011
1018
  () => {
1012
- var s, d;
1019
+ var l, d;
1013
1020
  return [
1014
- (d = (s = i.value) == null ? void 0 : s.map((p) => Tt(p))) != null ? d : [Bt].filter((p) => p != null),
1021
+ (d = (l = i.value) == null ? void 0 : l.map((p) => Tt(p))) != null ? d : [Bt].filter((p) => p != null),
1015
1022
  J(F(i.value ? e[1] : e[0])),
1016
1023
  J(x(i.value ? e[2] : e[1])),
1017
1024
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1018
1025
  F(i.value ? e[3] : e[2])
1019
1026
  ];
1020
1027
  },
1021
- ([s, d, p, a]) => {
1022
- if (t(), !(s != null && s.length) || !(d != null && d.length) || !(p != null && p.length))
1028
+ ([l, d, p, s]) => {
1029
+ if (n(), !(l != null && l.length) || !(d != null && d.length) || !(p != null && p.length))
1023
1030
  return;
1024
- const l = Mt(a) ? { ...a } : a;
1025
- n.push(
1026
- ...s.flatMap(
1031
+ const o = Mt(s) ? { ...s } : s;
1032
+ t.push(
1033
+ ...l.flatMap(
1027
1034
  (u) => d.flatMap(
1028
- (v) => p.map((g) => r(u, v, g, l))
1035
+ (v) => p.map((g) => r(u, v, g, o))
1029
1036
  )
1030
1037
  )
1031
1038
  );
1032
1039
  },
1033
1040
  { flush: "post" }
1034
- ), o = () => {
1035
- c(), t();
1041
+ ), a = () => {
1042
+ c(), n();
1036
1043
  };
1037
- return we(t), o;
1044
+ return we(n), a;
1038
1045
  }
1039
1046
  function jt() {
1040
- const e = K(!1), n = Y();
1041
- return n && xe(() => {
1047
+ const e = V(!1), t = Y();
1048
+ return t && ke(() => {
1042
1049
  e.value = !0;
1043
- }, n), e;
1050
+ }, t), e;
1044
1051
  }
1045
1052
  function Me(e) {
1046
- const n = jt();
1047
- return B(() => (n.value, !!e()));
1053
+ const t = jt();
1054
+ return B(() => (t.value, !!e()));
1048
1055
  }
1049
- function ve(e, n = {}) {
1056
+ function ge(e, t = {}) {
1050
1057
  const {
1051
- controls: t = !1,
1058
+ controls: n = !1,
1052
1059
  navigator: r = $e
1053
- } = n, i = Me(() => r && "permissions" in r), c = K(), o = typeof e == "string" ? { name: e } : e, s = K(), d = () => {
1054
- var a, l;
1055
- s.value = (l = (a = c.value) == null ? void 0 : a.state) != null ? l : "prompt";
1060
+ } = t, i = Me(() => r && "permissions" in r), c = V(), a = typeof e == "string" ? { name: e } : e, l = V(), d = () => {
1061
+ var s, o;
1062
+ l.value = (o = (s = c.value) == null ? void 0 : s.state) != null ? o : "prompt";
1056
1063
  };
1057
1064
  Ee(c, "change", d, { passive: !0 });
1058
1065
  const p = Nt(async () => {
1059
1066
  if (i.value) {
1060
1067
  if (!c.value)
1061
1068
  try {
1062
- c.value = await r.permissions.query(o);
1069
+ c.value = await r.permissions.query(a);
1063
1070
  } catch {
1064
1071
  c.value = void 0;
1065
1072
  } finally {
1066
1073
  d();
1067
1074
  }
1068
- if (t)
1075
+ if (n)
1069
1076
  return qe(c.value);
1070
1077
  }
1071
1078
  });
1072
- return p(), t ? {
1073
- state: s,
1079
+ return p(), n ? {
1080
+ state: l,
1074
1081
  isSupported: i,
1075
1082
  query: p
1076
- } : s;
1083
+ } : l;
1077
1084
  }
1078
1085
  function Dt(e = {}) {
1079
1086
  const {
1080
- navigator: n = $e,
1081
- read: t = !1,
1087
+ navigator: t = $e,
1088
+ read: n = !1,
1082
1089
  source: r,
1083
1090
  copiedDuring: i = 1500,
1084
1091
  legacy: c = !1
1085
- } = e, o = Me(() => n && "clipboard" in n), s = ve("clipboard-read"), d = ve("clipboard-write"), p = B(() => o.value || c), a = K(""), l = K(!1), u = Pt(() => l.value = !1, i, { immediate: !1 });
1092
+ } = e, a = Me(() => t && "clipboard" in t), l = ge("clipboard-read"), d = ge("clipboard-write"), p = B(() => a.value || c), s = V(""), o = V(!1), u = Pt(() => o.value = !1, i, { immediate: !1 });
1086
1093
  async function v() {
1087
- let f = !(o.value && y(s.value));
1094
+ let f = !(a.value && y(l.value));
1088
1095
  if (!f)
1089
1096
  try {
1090
- a.value = await n.clipboard.readText();
1097
+ s.value = await t.clipboard.readText();
1091
1098
  } catch {
1092
1099
  f = !0;
1093
1100
  }
1094
- f && (a.value = h());
1101
+ f && (s.value = h());
1095
1102
  }
1096
- p.value && t && Ee(["copy", "cut"], v, { passive: !0 });
1103
+ p.value && n && Ee(["copy", "cut"], v, { passive: !0 });
1097
1104
  async function g(f = F(r)) {
1098
1105
  if (p.value && f != null) {
1099
- let b = !(o.value && y(d.value));
1106
+ let b = !(a.value && y(d.value));
1100
1107
  if (!b)
1101
1108
  try {
1102
- await n.clipboard.writeText(f);
1109
+ await t.clipboard.writeText(f);
1103
1110
  } catch {
1104
1111
  b = !0;
1105
1112
  }
1106
- b && m(f), a.value = f, l.value = !0, u.start();
1113
+ b && m(f), s.value = f, o.value = !0, u.start();
1107
1114
  }
1108
1115
  }
1109
1116
  function m(f) {
@@ -1119,34 +1126,34 @@ function Dt(e = {}) {
1119
1126
  }
1120
1127
  return {
1121
1128
  isSupported: p,
1122
- text: a,
1123
- copied: l,
1129
+ text: s,
1130
+ copied: o,
1124
1131
  copy: g
1125
1132
  };
1126
1133
  }
1127
1134
  const Rt = Dt();
1128
1135
  let ee;
1129
1136
  const Lt = {
1130
- mounted(e, n, t) {
1131
- var o, s;
1132
- const r = se(t.ctx), i = ((s = (o = r == null ? void 0 : r.locale) == null ? void 0 : o.locale) == null ? void 0 : s.slice(0, 2)) || "en", c = {
1137
+ mounted(e, t, n) {
1138
+ var a, l;
1139
+ const r = re(n.ctx), i = ((l = (a = r == null ? void 0 : r.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en", c = {
1133
1140
  zh: "复制成功",
1134
1141
  en: "Copy successfully",
1135
1142
  fr: "Copie réussie"
1136
1143
  };
1137
- e.copyValue = n.value, ee = () => {
1144
+ e.copyValue = t.value, ee = () => {
1138
1145
  Rt.copy(e.copyValue), Je.success(c[i]);
1139
1146
  }, e.addEventListener("click", ee);
1140
1147
  },
1141
- updated(e, n) {
1142
- e.copyValue = n.value;
1148
+ updated(e, t) {
1149
+ e.copyValue = t.value;
1143
1150
  },
1144
1151
  unmounted(e) {
1145
1152
  e.removeEventListener("click", ee);
1146
1153
  }
1147
1154
  }, It = {
1148
- beforeMount(e, n, t) {
1149
- const r = n.value, i = {
1155
+ beforeMount(e, t, n) {
1156
+ const r = t.value, i = {
1150
1157
  letterNumber: /^\w*$/,
1151
1158
  // 字母和数字
1152
1159
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -1158,67 +1165,67 @@ const Lt = {
1158
1165
  verify: /^\d{0,6}$/,
1159
1166
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1160
1167
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1161
- }, c = r instanceof RegExp ? r : n.arg && i[n.arg] ? i[n.arg] : null;
1162
- e._handleInput = (o) => {
1163
- if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1164
- const s = c == null ? void 0 : c.test(o.target.value);
1165
- if (e._input = s ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !s)
1166
- o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
1168
+ }, c = r instanceof RegExp ? r : t.arg && i[t.arg] ? i[t.arg] : null;
1169
+ e._handleInput = (a) => {
1170
+ if (a.isTrusted && !(!a.isComposing && a.inputType === "insertCompositionText" && a.data)) {
1171
+ const l = c == null ? void 0 : c.test(a.target.value);
1172
+ if (e._input = l ? a.target.value : e._input, a.target.value = "", a.target.value = e._input, !l)
1173
+ a.target.selectionStart = e._start, a.target.selectionEnd = e._end;
1167
1174
  else
1168
- switch (o.inputType) {
1175
+ switch (a.inputType) {
1169
1176
  case "deleteContentForward":
1170
1177
  //delete
1171
1178
  case "deleteByDrag":
1172
1179
  //dropout
1173
1180
  case "deleteByCut":
1174
- o.target.selectionStart = e._start, o.target.selectionEnd = e._start;
1181
+ a.target.selectionStart = e._start, a.target.selectionEnd = e._start;
1175
1182
  break;
1176
1183
  case "deleteContentBackward":
1177
- o.target.selectionStart = e._start === e._end ? e._start - 1 : e._start, o.target.selectionEnd = e._start === e._end ? e._start - 1 : e._start;
1184
+ a.target.selectionStart = e._start === e._end ? e._start - 1 : e._start, a.target.selectionEnd = e._start === e._end ? e._start - 1 : e._start;
1178
1185
  break;
1179
1186
  case "insertFromPaste":
1180
1187
  //粘贴
1181
1188
  case "insertFromDrop":
1182
- const p = o.dataTransfer || o.clipboardData || null;
1189
+ const p = a.dataTransfer || a.clipboardData || null;
1183
1190
  if (p) {
1184
- const a = p.getData("text") || "";
1185
- o.target.selectionStart = e._start + a.length, o.target.selectionEnd = e._start + a.length;
1191
+ const s = p.getData("text") || "";
1192
+ a.target.selectionStart = e._start + s.length, a.target.selectionEnd = e._start + s.length;
1186
1193
  }
1187
1194
  break;
1188
1195
  case "insertText":
1189
1196
  //insert
1190
1197
  case "insertCompositionText":
1191
- o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
1198
+ a.target.selectionStart = e._start + 1, a.target.selectionEnd = e._start + 1;
1192
1199
  break;
1193
1200
  }
1194
1201
  const d = new InputEvent("input", {
1195
1202
  isComposing: !1
1196
1203
  });
1197
- o.target.dispatchEvent(d);
1204
+ a.target.dispatchEvent(d);
1198
1205
  }
1199
- }, e._handleKeydown = (o) => {
1200
- const s = c == null ? void 0 : c.test(o.target.value);
1201
- e._input = s ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1202
- }, e._handleDrop = (o) => {
1203
- o.stopPropagation();
1204
- }, t.type === "input" && (e.addEventListener("input", e._handleInput), e.addEventListener("keydown", e._handleKeydown), e.addEventListener("drop", e._handleDrop));
1206
+ }, e._handleKeydown = (a) => {
1207
+ const l = c == null ? void 0 : c.test(a.target.value);
1208
+ e._input = l ? a.target.value : "", e._start = a.target.selectionStart, e._end = a.target.selectionEnd;
1209
+ }, e._handleDrop = (a) => {
1210
+ a.stopPropagation();
1211
+ }, n.type === "input" && (e.addEventListener("input", e._handleInput), e.addEventListener("keydown", e._handleKeydown), e.addEventListener("drop", e._handleDrop));
1205
1212
  },
1206
1213
  unmounted(e) {
1207
1214
  e._handleInput && e.removeEventListener("input", e._handleInput), e._handleKeydown && e.removeEventListener("keydown", e._handleKeydown), e._handleDrop && e.removeEventListener("drop", e._handleDrop);
1208
1215
  }
1209
1216
  };
1210
- function ge(e, n, t) {
1211
- const r = n.value;
1217
+ function he(e, t, n) {
1218
+ const r = t.value;
1212
1219
  if (r) {
1213
1220
  const i = r / 2;
1214
1221
  e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1215
- const c = t.children;
1216
- c != null && c.length && c[0].children.forEach((o) => {
1217
- if (o.component) {
1218
- const s = o.el;
1219
- s != null && s.style && (s.style.paddingLeft = i + "px", s.style.paddingRight = i + "px");
1220
- } else Array.isArray(o.children) && o.children.forEach((s) => {
1221
- const d = s.el;
1222
+ const c = n.children;
1223
+ c != null && c.length && c[0].children.forEach((a) => {
1224
+ if (a.component) {
1225
+ const l = a.el;
1226
+ l != null && l.style && (l.style.paddingLeft = i + "px", l.style.paddingRight = i + "px");
1227
+ } else Array.isArray(a.children) && a.children.forEach((l) => {
1228
+ const d = l.el;
1222
1229
  d != null && d.style && (d.style.paddingLeft = i + "px", d.style.paddingRight = i + "px");
1223
1230
  });
1224
1231
  });
@@ -1228,124 +1235,124 @@ const Ot = {
1228
1235
  beforeMount(e) {
1229
1236
  e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
1230
1237
  },
1231
- mounted(e, n, t) {
1232
- ge(e, n, t);
1238
+ mounted(e, t, n) {
1239
+ he(e, t, n);
1233
1240
  },
1234
- updated(e, n, t, r) {
1235
- ge(e, n, t);
1241
+ updated(e, t, n, r) {
1242
+ he(e, t, n);
1236
1243
  }
1237
1244
  }, Wt = {
1238
- beforeMount(e, n) {
1239
- e.classList.add("ant-col", `ant-col-${n.value}`);
1240
- const t = n.value / 24 * 100;
1241
- e.style.position = "relative", e.style.flex = `0 0 ${t}%`, e.style.maxWidth = `${t}%`;
1245
+ beforeMount(e, t) {
1246
+ e.classList.add("ant-col", `ant-col-${t.value}`);
1247
+ const n = t.value / 24 * 100;
1248
+ e.style.position = "relative", e.style.flex = `0 0 ${n}%`, e.style.maxWidth = `${n}%`;
1242
1249
  }
1243
1250
  }, Ft = {
1244
- mounted(e, n, t) {
1245
- const { value: r } = n, {
1251
+ mounted(e, t, n) {
1252
+ const { value: r } = t, {
1246
1253
  content: i = "",
1247
1254
  placement: c = "top",
1248
- enabled: o = !0,
1249
- padding: s = 8,
1255
+ enabled: a = !0,
1256
+ padding: l = 8,
1250
1257
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1251
1258
  ...d
1252
1259
  } = typeof r == "string" ? { content: r } : r;
1253
- if (e.tooltipDisabled = !1, !o)
1260
+ if (e.tooltipDisabled = !1, !a)
1254
1261
  e.tooltipDisabled = !0;
1255
- else if (n.modifiers.exceed) {
1256
- const v = e.clientWidth, g = he(i);
1257
- e.tooltipDisabled = v ? g < v - s * 2 : !0;
1262
+ else if (t.modifiers.exceed) {
1263
+ const v = e.clientWidth, g = ye(i);
1264
+ e.tooltipDisabled = v ? g < v - l * 2 : !0;
1258
1265
  }
1259
1266
  const p = C({
1260
1267
  top: 0,
1261
1268
  left: 0,
1262
1269
  bottom: 0,
1263
1270
  right: 0
1264
- }), a = C({
1271
+ }), s = C({
1265
1272
  getBoundingClientRect: () => p.value
1266
- }), l = W(tt, {
1273
+ }), o = W(tt, {
1267
1274
  visible: !1,
1268
1275
  content: i,
1269
1276
  placement: c,
1270
1277
  virtualTriggering: !0,
1271
- virtualRef: a.value,
1278
+ virtualRef: s.value,
1272
1279
  popperClass: "vtooltip",
1273
1280
  ...d
1274
1281
  }), u = document.createDocumentFragment();
1275
- X(l, u), e.tooltipVm = l, e.tooltipContainer = u, e.addEventListener("mouseenter", () => {
1276
- p.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
1282
+ X(o, u), e.tooltipVm = o, e.tooltipContainer = u, e.addEventListener("mouseenter", () => {
1283
+ p.value = e.getBoundingClientRect(), o.component && !e.tooltipDisabled && (Object.assign(o.component.props, { visible: !0 }), o.component.update());
1277
1284
  }), e.addEventListener("mouseleave", () => {
1278
- l.component && (Object.assign(l.component.props, { visible: !1 }), l.component.update());
1285
+ o.component && (Object.assign(o.component.props, { visible: !1 }), o.component.update());
1279
1286
  });
1280
1287
  },
1281
- updated(e, n) {
1288
+ updated(e, t) {
1282
1289
  if (e.tooltipVm) {
1283
- const { value: t } = n, {
1290
+ const { value: n } = t, {
1284
1291
  content: r = "",
1285
1292
  placement: i = "top",
1286
1293
  enabled: c = !0,
1287
- padding: o = 8,
1294
+ padding: a = 8,
1288
1295
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1289
- ...s
1290
- } = typeof t == "string" ? { content: t } : t;
1296
+ ...l
1297
+ } = typeof n == "string" ? { content: n } : n;
1291
1298
  if (e.tooltipDisabled = !1, !c)
1292
1299
  e.tooltipDisabled = !0;
1293
- else if (n.modifiers.exceed) {
1294
- const p = e.clientWidth, a = he(r);
1295
- e.tooltipDisabled = p ? a < p - o * 2 : !0;
1300
+ else if (t.modifiers.exceed) {
1301
+ const p = e.clientWidth, s = ye(r);
1302
+ e.tooltipDisabled = p ? s < p - a * 2 : !0;
1296
1303
  }
1297
1304
  const d = e.tooltipVm;
1298
- d.component && (Object.assign(d.component.props, { content: r, placement: i, ...s }), d.component.update());
1305
+ d.component && (Object.assign(d.component.props, { content: r, placement: i, ...l }), d.component.update());
1299
1306
  }
1300
1307
  },
1301
1308
  unmounted(e) {
1302
1309
  e.tooltipContainer && X(null, e.tooltipContainer);
1303
1310
  }
1304
1311
  };
1305
- function he(e, n) {
1312
+ function ye(e, t) {
1306
1313
  const r = document.createElement("canvas").getContext("2d");
1307
1314
  return r.font = "14px Arial", r.measureText(e).width;
1308
1315
  }
1309
1316
  const Ut = {
1310
- beforeMount(e, n) {
1311
- const { value: t } = n;
1312
- t && (Xe(t) || setTimeout(() => {
1317
+ beforeMount(e, t) {
1318
+ const { value: n } = t;
1319
+ n && (Xe(n) || setTimeout(() => {
1313
1320
  var i;
1314
1321
  (i = e.parentNode) == null || i.removeChild(e);
1315
1322
  }, 50));
1316
1323
  }
1317
1324
  };
1318
- function ye(e, n = 4) {
1319
- const t = new RegExp(`(.{${n}})`, "g");
1320
- return e.replace(t, "$1 ").trim();
1325
+ function be(e, t = 4) {
1326
+ const n = new RegExp(`(.{${t}})`, "g");
1327
+ return e.replace(n, "$1 ").trim();
1321
1328
  }
1322
- const Vt = {
1323
- mounted(e, n) {
1324
- const { value: t } = n, { content: r = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, c = r.replace(/\s+/g, "");
1325
- e.textContent = ye(c, i) || "-";
1329
+ const zt = {
1330
+ mounted(e, t) {
1331
+ const { value: n } = t, { content: r = "", spaceNum: i = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1332
+ e.textContent = be(c, i) || "-";
1326
1333
  },
1327
- updated(e, n) {
1328
- const { value: t } = n, { content: r = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, c = r.replace(/\s+/g, "");
1329
- e.textContent = ye(c, i) || "-";
1334
+ updated(e, t) {
1335
+ const { value: n } = t, { content: r = "", spaceNum: i = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1336
+ e.textContent = be(c, i) || "-";
1330
1337
  }
1331
- }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1338
+ }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1332
1339
  __proto__: null,
1333
1340
  col: Wt,
1334
1341
  copy: Lt,
1335
1342
  inputlimit: It,
1336
1343
  permission: Ut,
1337
1344
  row: Ot,
1338
- space: Vt,
1345
+ space: zt,
1339
1346
  tooltip: Ft
1340
1347
  }, Symbol.toStringTag, { value: "Module" }));
1341
- function zt(e) {
1342
- Object.keys(me).forEach((n) => {
1343
- e.component(n, me[n]);
1344
- }), Object.keys(be).forEach((n) => {
1345
- e.directive(n, be[n]);
1348
+ function Kt(e) {
1349
+ Object.keys(ve).forEach((t) => {
1350
+ e.component(t, ve[t]);
1351
+ }), Object.keys(_e).forEach((t) => {
1352
+ e.directive(t, _e[t]);
1346
1353
  });
1347
1354
  }
1348
- const Jt = { install: zt };
1355
+ const Jt = { install: Kt };
1349
1356
  export {
1350
1357
  it as AInputNumberEx,
1351
1358
  ct as ARangePickerEx,
@@ -1401,10 +1408,10 @@ export {
1401
1408
  In as setToken,
1402
1409
  On as setUserCenterParams,
1403
1410
  Wn as setUserInfo,
1404
- Vt as space,
1411
+ zt as space,
1405
1412
  Fn as toUserCenterConsole,
1406
1413
  Ft as tooltip,
1407
- se as useConfigProvider,
1414
+ re as useConfigProvider,
1408
1415
  Yt as useFindParent,
1409
1416
  Qt as useModal
1410
1417
  };