@gx-design-vue/pro-layout-components 0.1.0-beta.4 → 0.1.0-beta.6

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,29 +1,29 @@
1
- import { defineComponent as C, createVNode as i, ref as X, Fragment as L, reactive as pt, getCurrentInstance as vt, onMounted as je, onUpdated as mt, onUnmounted as bt, watch as K, mergeProps as _, createTextVNode as b, nextTick as ie, computed as R, defineAsyncComponent as yt, unref as xt, Transition as Ct, withDirectives as St, vShow as wt, toRaw as O } from "vue";
2
- import { useState as D, useMediaQuery as Mt } from "@gx-design-vue/pro-hooks";
3
- import { resetComponent as Tt, useProStyle as oe, useStyle as Ge, mergeToken as Xe, unit as q, getProSolidColor as J, setAlpha as kt, useProConfigContext as le, useContext as Ke, getTransitionProps as At, Keyframe as se } from "@gx-design-vue/pro-provider";
4
- import { isUrl as It, getPrefixCls as H, classNames as d, merge as Rt, isWindowsOs as Bt, getLevelData as Et, isBoolean as qe, getSlotsProps as $t, getSlot as Ot, isFunction as zt, deepMerge as Me } from "@gx-design-vue/pro-utils";
5
- import { Popover as Ft, Empty as Te, Input as Lt, Dropdown as Dt, Menu as ke, MenuItem as Ae, Avatar as Ht, Tooltip as Ce, List as Ie, Switch as _t, message as Nt, Drawer as Ue, Segmented as Pt, Divider as he, Button as Re } from "ant-design-vue";
6
- import { getTokenLayoutTheme as ue, darkThemeProps as Wt, LazyIcon as jt, useProLayoutContext as ce, checkMenuDark as Gt, useDarkTheme as Ve, hasDarkValue as Be, toggleLayoutTheme as Ze } from "@gx-design-vue/pro-layout";
7
- import { getAlphaColor as be } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
8
- import Y, { AppstoreOutlined as Xt, MenuOutlined as Kt, ArrowRightOutlined as qt, CloseOutlined as Ut, SearchOutlined as Ee, EnterOutlined as Vt, ArrowUpOutlined as $e, CompressOutlined as Zt, ExpandOutlined as Qt, SettingOutlined as Qe, LockOutlined as Jt, LogoutOutlined as Yt, UserOutlined as en, DesktopOutlined as tn, CheckOutlined as Je, CopyOutlined as nn, ClearOutlined as rn, EditOutlined as an } from "@ant-design/icons-vue";
9
- import { useLocalStorage as Ye, useThrottleFn as on, onKeyStroke as fe, useMagicKeys as ln, whenever as Oe, useFullscreen as sn, useDebounceFn as un, useClipboard as cn } from "@vueuse/core";
10
- import { GProModal as dn } from "@gx-design-vue/pro-modal";
11
- import { useRouter as hn } from "vue-router";
12
- import { pick as Se, cloneDeep as ze } from "lodash-es";
13
- import { GScrollbars as et } from "@gx-design-vue/scrollbar";
14
- import { AggregationColor as fn, GColorPicker as gn } from "@gx-design-vue/color-picker";
15
- const U = {
1
+ import { defineComponent as x, createVNode as i, ref as N, Fragment as O, reactive as ht, getCurrentInstance as ft, onMounted as We, onUpdated as gt, onUnmounted as pt, watch as j, mergeProps as H, createTextVNode as b, nextTick as te, computed as F, defineAsyncComponent as vt, unref as mt, Transition as bt, withDirectives as yt, vShow as xt, toRaw as E } from "vue";
2
+ import { useState as z, useMediaQuery as Ct } from "@gx-design-vue/pro-hooks";
3
+ import { resetComponent as St, useProStyle as re, useStyle as je, mergeToken as Ge, unit as G, getProSolidColor as Z, setAlpha as wt, useContext as Xe, useProConfigContext as xe, getTransitionProps as Mt, Keyframe as oe } from "@gx-design-vue/pro-provider";
4
+ import { isUrl as Tt, getPrefixCls as L, classNames as c, merge as At, isWindowsOs as kt, getLevelData as It, isBoolean as Rt, getSlotsProps as Et, getSlot as Bt, isFunction as $t, deepMerge as Me } from "@gx-design-vue/pro-utils";
5
+ import { Popover as Ot, Empty as Te, Input as zt, Dropdown as Ft, Menu as Ae, MenuItem as ke, Avatar as Lt, Tooltip as Ce, List as Ie, Switch as Ht, message as Dt, Drawer as Ke, Segmented as _t, Divider as de, Button as Re } from "ant-design-vue";
6
+ import { getTokenLayoutTheme as ae, LazyIcon as Nt, useProLayoutContext as le, checkMenuDark as Pt, useThemeContext as qe, toggleAnimateTheme as Wt } from "@gx-design-vue/pro-layout";
7
+ import { getAlphaColor as me } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
8
+ import Q, { AppstoreOutlined as jt, MenuOutlined as Gt, ArrowRightOutlined as Xt, CloseOutlined as Kt, SearchOutlined as Ee, EnterOutlined as qt, ArrowUpOutlined as Be, CompressOutlined as Ut, ExpandOutlined as Vt, SettingOutlined as Ue, LockOutlined as Zt, LogoutOutlined as Qt, UserOutlined as Jt, DesktopOutlined as Yt, CheckOutlined as Ve, CopyOutlined as en, ClearOutlined as tn, EditOutlined as nn } from "@ant-design/icons-vue";
9
+ import { useLocalStorage as Ze, useThrottleFn as rn, onKeyStroke as he, useMagicKeys as on, whenever as $e, useFullscreen as an, useDebounceFn as ln, useClipboard as sn } from "@vueuse/core";
10
+ import { GProModal as un } from "@gx-design-vue/pro-modal";
11
+ import { useRouter as cn } from "vue-router";
12
+ import { pick as Se, cloneDeep as Oe } from "lodash-es";
13
+ import { GScrollbars as Qe } from "@gx-design-vue/scrollbar";
14
+ import { AggregationColor as dn, GColorPicker as hn } from "@gx-design-vue/color-picker";
15
+ const X = {
16
16
  appList: {
17
17
  type: Array,
18
18
  default: void 0
19
19
  },
20
20
  onItemClick: Function
21
- }, tt = /* @__PURE__ */ C({
21
+ }, Je = /* @__PURE__ */ x({
22
22
  props: {
23
23
  hashId: String,
24
24
  baseClassName: String,
25
- appList: U.appList,
26
- onItemClick: U.onItemClick
25
+ appList: X.appList,
26
+ onItemClick: X.onItemClick
27
27
  },
28
28
  setup(e) {
29
29
  return () => i("div", {
@@ -35,7 +35,7 @@ const U = {
35
35
  class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
36
36
  }, [i("div", {
37
37
  class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
38
- }, [t.title]), i(tt, {
38
+ }, [t.title]), i(Je, {
39
39
  hashId: e.hashId,
40
40
  onItemClick: e.onItemClick,
41
41
  appList: t?.children,
@@ -50,12 +50,12 @@ const U = {
50
50
  href: e.onItemClick ? void 0 : t.url,
51
51
  target: t.target,
52
52
  rel: "noreferrer"
53
- }, [i(Sn, {
53
+ }, [i(xn, {
54
54
  logo: t.icon
55
55
  }, null), i("div", null, [i("div", null, [t.title]), t.desc ? i("span", null, [t.desc]) : null])])]))])]);
56
56
  }
57
- }), pn = (e, t) => {
58
- if (e && typeof e == "string" && It(e))
57
+ }), fn = (e, t) => {
58
+ if (e && typeof e == "string" && Tt(e))
59
59
  return i("img", {
60
60
  src: e,
61
61
  alt: "logo"
@@ -73,12 +73,12 @@ const U = {
73
73
  }, [n]);
74
74
  }
75
75
  return e;
76
- }, nt = /* @__PURE__ */ C({
76
+ }, Ye = /* @__PURE__ */ x({
77
77
  props: {
78
78
  hashId: String,
79
79
  baseClassName: String,
80
- appList: U.appList,
81
- onItemClick: U.onItemClick
80
+ appList: X.appList,
81
+ onItemClick: X.onItemClick
82
82
  },
83
83
  setup(e) {
84
84
  return () => i("div", {
@@ -90,7 +90,7 @@ const U = {
90
90
  class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
91
91
  }, [i("div", {
92
92
  class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
93
- }, [t.title]), i(nt, {
93
+ }, [t.title]), i(Ye, {
94
94
  hashId: e.hashId,
95
95
  onItemClick: e.onItemClick,
96
96
  appList: t?.children,
@@ -105,9 +105,9 @@ const U = {
105
105
  href: e.onItemClick ? "javascript:;" : t.url,
106
106
  target: t.target,
107
107
  rel: "noreferrer"
108
- }, [pn(t.icon, t.title), i("div", null, [i("div", null, [t.title])])])]))])]);
108
+ }, [fn(t.icon, t.title), i("div", null, [i("div", null, [t.title])])])]))])]);
109
109
  }
110
- }), vn = (e) => ({
110
+ }), gn = (e) => ({
111
111
  "&-content": {
112
112
  maxHeight: "calc(100vh - 48px)",
113
113
  overflow: "auto",
@@ -147,7 +147,7 @@ const U = {
147
147
  "&:hover": {
148
148
  backgroundColor: e.colorBgTextHover
149
149
  },
150
- "* div": Tt?.(e),
150
+ "* div": St?.(e),
151
151
  a: {
152
152
  display: "flex",
153
153
  height: "100%",
@@ -174,7 +174,7 @@ const U = {
174
174
  }
175
175
  }
176
176
  }
177
- }), mn = (e) => ({
177
+ }), pn = (e) => ({
178
178
  "&-content": {
179
179
  maxHeight: "calc(100vh - 48px)",
180
180
  overflow: "auto",
@@ -256,13 +256,13 @@ const U = {
256
256
  }
257
257
  }
258
258
  }
259
- }), bn = (e) => ({
259
+ }), vn = (e) => ({
260
260
  [e.componentCls]: {
261
- "&-simple": mn(e),
262
- "&-default": vn(e)
261
+ "&-simple": pn(e),
262
+ "&-default": gn(e)
263
263
  }
264
- }), yn = (e) => {
265
- const { theme: t } = ue(e);
264
+ }), mn = (e) => {
265
+ const { theme: t } = ae(e);
266
266
  return {
267
267
  [e.componentCls]: {
268
268
  "&-icon": {
@@ -280,12 +280,12 @@ const U = {
280
280
  borderRadius: e.borderRadius,
281
281
  "&:hover": {
282
282
  color: t === "dark" ? e.colorWhite : e.layout?.colorTextAppListIconHover,
283
- backgroundColor: t === "dark" ? be("#fff", 0.12) : e.layout?.colorBgAppListIconHover
283
+ backgroundColor: t === "dark" ? me("#fff", 0.12) : e.layout?.colorBgAppListIconHover
284
284
  },
285
285
  [`&-active${e.proComponentsCls}-layout-app-icon`]: {
286
286
  fontSize: 18,
287
287
  color: t === "dark" ? e.colorWhite : e.layout?.colorTextAppListIconHover,
288
- backgroundColor: t === "dark" ? be("#fff", 0.12) : e.layout?.colorBgAppListIconHover
288
+ backgroundColor: t === "dark" ? me("#fff", 0.12) : e.layout?.colorBgAppListIconHover
289
289
  }
290
290
  },
291
291
  "&-item-title": {
@@ -311,94 +311,94 @@ const U = {
311
311
  }
312
312
  }
313
313
  };
314
- }, xn = /* @__PURE__ */ C({
315
- props: U,
314
+ }, bn = /* @__PURE__ */ x({
315
+ props: X,
316
316
  emits: ["itemClick"],
317
317
  setup(e) {
318
- const t = H({
318
+ const t = L({
319
319
  suffixCls: "layout-app",
320
320
  isPor: !0
321
321
  }), {
322
322
  wrapSSR: n,
323
323
  hashId: r
324
- } = oe("AppsLogoList", [bn], t), a = (o) => {
325
- e.onItemClick?.(o);
324
+ } = re("AppsLogoList", [vn], t), o = (a) => {
325
+ e.onItemClick?.(a);
326
326
  };
327
- return () => e.appList?.some((l) => !l?.desc) ? n(i(nt, {
327
+ return () => e.appList?.some((l) => !l?.desc) ? n(i(Ye, {
328
328
  hashId: r.value,
329
329
  appList: e.appList,
330
- onItemClick: e.onItemClick ? a : void 0,
330
+ onItemClick: e.onItemClick ? o : void 0,
331
331
  baseClassName: `${t}-simple`
332
- }, null)) : n(i(tt, {
332
+ }, null)) : n(i(Je, {
333
333
  hashId: r.value,
334
334
  appList: e.appList,
335
- onItemClick: e.onItemClick ? a : void 0,
335
+ onItemClick: e.onItemClick ? o : void 0,
336
336
  baseClassName: `${t}-default`
337
337
  }, null));
338
338
  }
339
- }), Cn = () => i(Xt, null, null), Sn = ({
339
+ }), yn = () => i(jt, null, null), xn = ({
340
340
  logo: e
341
341
  }) => typeof e == "string" ? i("img", {
342
342
  width: "auto",
343
343
  height: 22,
344
344
  src: e,
345
345
  alt: "logo"
346
- }, null) : typeof e == "function" ? e() : e, nr = /* @__PURE__ */ C({
346
+ }, null) : typeof e == "function" ? e() : e, er = /* @__PURE__ */ x({
347
347
  name: "AppsLogoIcon",
348
348
  inheritAttrs: !1,
349
- props: U,
349
+ props: X,
350
350
  setup(e) {
351
- const t = H({
351
+ const t = L({
352
352
  suffixCls: "layout-app",
353
353
  isPor: !0
354
354
  }), {
355
355
  wrapSSR: n,
356
356
  hashId: r
357
- } = oe("AppsLogoIcon", [yn], t), [a, o] = D(!1), l = X(), s = X();
358
- return () => n(i(L, null, [i("div", {
357
+ } = re("AppsLogoIcon", [mn], t), [o, a] = z(!1), l = N(), s = N();
358
+ return () => n(i(O, null, [i("div", {
359
359
  ref: l,
360
- onClick: (c) => {
361
- c.stopPropagation(), c.preventDefault();
360
+ onClick: (h) => {
361
+ h.stopPropagation(), h.preventDefault();
362
362
  }
363
- }, null), i(Ft, {
363
+ }, null), i(Ot, {
364
364
  placement: "bottomRight",
365
365
  trigger: ["click"],
366
366
  arrow: !1,
367
367
  destroyTooltipOnHide: !0,
368
- open: a.value,
369
- onOpenChange: o,
368
+ open: o.value,
369
+ onOpenChange: a,
370
370
  overlayClassName: `${t}-popover ${r.value}`.trim(),
371
- content: i(xn, e, null),
371
+ content: i(bn, e, null),
372
372
  getPopupContainer: () => l.value || document.body
373
373
  }, {
374
374
  default: () => [i("span", {
375
375
  ref: s,
376
- onClick: (c) => {
377
- c.stopPropagation();
376
+ onClick: (h) => {
377
+ h.stopPropagation();
378
378
  },
379
- class: d(`${t}-icon`, r.value, {
380
- [`${t}-icon-active`]: a.value
379
+ class: c(`${t}-icon`, r.value, {
380
+ [`${t}-icon-active`]: o.value
381
381
  })
382
- }, [i(Cn, null, null)])]
382
+ }, [i(yn, null, null)])]
383
383
  })]));
384
384
  }
385
385
  });
386
- function Q() {
387
- return Q = Object.assign ? Object.assign.bind() : function(e) {
386
+ function V() {
387
+ return V = Object.assign ? Object.assign.bind() : function(e) {
388
388
  for (var t = 1; t < arguments.length; t++) {
389
389
  var n = arguments[t];
390
390
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
391
391
  }
392
392
  return e;
393
- }, Q.apply(null, arguments);
393
+ }, V.apply(null, arguments);
394
394
  }
395
- var it = (function() {
395
+ var et = (function() {
396
396
  if (typeof Map < "u")
397
397
  return Map;
398
398
  function e(t, n) {
399
399
  var r = -1;
400
- return t.some(function(a, o) {
401
- return a[0] === n ? (r = o, !0) : !1;
400
+ return t.some(function(o, a) {
401
+ return o[0] === n ? (r = a, !0) : !1;
402
402
  }), r;
403
403
  }
404
404
  return (
@@ -417,61 +417,61 @@ var it = (function() {
417
417
  enumerable: !0,
418
418
  configurable: !0
419
419
  }), t.prototype.get = function(n) {
420
- var r = e(this.__entries__, n), a = this.__entries__[r];
421
- return a && a[1];
420
+ var r = e(this.__entries__, n), o = this.__entries__[r];
421
+ return o && o[1];
422
422
  }, t.prototype.set = function(n, r) {
423
- var a = e(this.__entries__, n);
424
- ~a ? this.__entries__[a][1] = r : this.__entries__.push([n, r]);
423
+ var o = e(this.__entries__, n);
424
+ ~o ? this.__entries__[o][1] = r : this.__entries__.push([n, r]);
425
425
  }, t.prototype.delete = function(n) {
426
- var r = this.__entries__, a = e(r, n);
427
- ~a && r.splice(a, 1);
426
+ var r = this.__entries__, o = e(r, n);
427
+ ~o && r.splice(o, 1);
428
428
  }, t.prototype.has = function(n) {
429
429
  return !!~e(this.__entries__, n);
430
430
  }, t.prototype.clear = function() {
431
431
  this.__entries__.splice(0);
432
432
  }, t.prototype.forEach = function(n, r) {
433
433
  r === void 0 && (r = null);
434
- for (var a = 0, o = this.__entries__; a < o.length; a++) {
435
- var l = o[a];
434
+ for (var o = 0, a = this.__entries__; o < a.length; o++) {
435
+ var l = a[o];
436
436
  n.call(r, l[1], l[0]);
437
437
  }
438
438
  }, t;
439
439
  })()
440
440
  );
441
- })(), ye = typeof window < "u" && typeof document < "u" && window.document === document, re = (function() {
441
+ })(), be = typeof window < "u" && typeof document < "u" && window.document === document, ne = (function() {
442
442
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
443
- })(), wn = (function() {
444
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(re) : function(e) {
443
+ })(), Cn = (function() {
444
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ne) : function(e) {
445
445
  return setTimeout(function() {
446
446
  return e(Date.now());
447
447
  }, 1e3 / 60);
448
448
  };
449
- })(), Mn = 2;
450
- function Tn(e, t) {
451
- var n = !1, r = !1, a = 0;
452
- function o() {
449
+ })(), Sn = 2;
450
+ function wn(e, t) {
451
+ var n = !1, r = !1, o = 0;
452
+ function a() {
453
453
  n && (n = !1, e()), r && s();
454
454
  }
455
455
  function l() {
456
- wn(o);
456
+ Cn(a);
457
457
  }
458
458
  function s() {
459
- var c = Date.now();
459
+ var h = Date.now();
460
460
  if (n) {
461
- if (c - a < Mn)
461
+ if (h - o < Sn)
462
462
  return;
463
463
  r = !0;
464
464
  } else
465
465
  n = !0, r = !1, setTimeout(l, t);
466
- a = c;
466
+ o = h;
467
467
  }
468
468
  return s;
469
469
  }
470
- var kn = 20, An = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], In = typeof MutationObserver < "u", Rn = (
470
+ var Mn = 20, Tn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], An = typeof MutationObserver < "u", kn = (
471
471
  /** @class */
472
472
  (function() {
473
473
  function e() {
474
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Tn(this.refresh.bind(this), kn);
474
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = wn(this.refresh.bind(this), Mn);
475
475
  }
476
476
  return e.prototype.addObserver = function(t) {
477
477
  ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
@@ -489,128 +489,128 @@ var kn = 20, An = ["top", "right", "bottom", "left", "width", "height", "size",
489
489
  return n.broadcastActive();
490
490
  }), t.length > 0;
491
491
  }, e.prototype.connect_ = function() {
492
- !ye || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), In ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
492
+ !be || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), An ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
493
493
  attributes: !0,
494
494
  childList: !0,
495
495
  characterData: !0,
496
496
  subtree: !0
497
497
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
498
498
  }, e.prototype.disconnect_ = function() {
499
- !ye || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
499
+ !be || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
500
500
  }, e.prototype.onTransitionEnd_ = function(t) {
501
- var n = t.propertyName, r = n === void 0 ? "" : n, a = An.some(function(o) {
502
- return !!~r.indexOf(o);
501
+ var n = t.propertyName, r = n === void 0 ? "" : n, o = Tn.some(function(a) {
502
+ return !!~r.indexOf(a);
503
503
  });
504
- a && this.refresh();
504
+ o && this.refresh();
505
505
  }, e.getInstance = function() {
506
506
  return this.instance_ || (this.instance_ = new e()), this.instance_;
507
507
  }, e.instance_ = null, e;
508
508
  })()
509
- ), rt = (function(e, t) {
509
+ ), tt = (function(e, t) {
510
510
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
511
- var a = r[n];
512
- Object.defineProperty(e, a, {
513
- value: t[a],
511
+ var o = r[n];
512
+ Object.defineProperty(e, o, {
513
+ value: t[o],
514
514
  enumerable: !1,
515
515
  writable: !1,
516
516
  configurable: !0
517
517
  });
518
518
  }
519
519
  return e;
520
- }), V = (function(e) {
520
+ }), K = (function(e) {
521
521
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
522
- return t || re;
523
- }), at = de(0, 0, 0, 0);
524
- function ae(e) {
522
+ return t || ne;
523
+ }), nt = se(0, 0, 0, 0);
524
+ function ie(e) {
525
525
  return parseFloat(e) || 0;
526
526
  }
527
- function Fe(e) {
527
+ function ze(e) {
528
528
  for (var t = [], n = 1; n < arguments.length; n++)
529
529
  t[n - 1] = arguments[n];
530
- return t.reduce(function(r, a) {
531
- var o = e["border-" + a + "-width"];
532
- return r + ae(o);
530
+ return t.reduce(function(r, o) {
531
+ var a = e["border-" + o + "-width"];
532
+ return r + ie(a);
533
533
  }, 0);
534
534
  }
535
- function Bn(e) {
536
- for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, a = t; r < a.length; r++) {
537
- var o = a[r], l = e["padding-" + o];
538
- n[o] = ae(l);
535
+ function In(e) {
536
+ for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, o = t; r < o.length; r++) {
537
+ var a = o[r], l = e["padding-" + a];
538
+ n[a] = ie(l);
539
539
  }
540
540
  return n;
541
541
  }
542
- function En(e) {
542
+ function Rn(e) {
543
543
  var t = e.getBBox();
544
- return de(0, 0, t.width, t.height);
544
+ return se(0, 0, t.width, t.height);
545
545
  }
546
- function $n(e) {
546
+ function En(e) {
547
547
  var t = e.clientWidth, n = e.clientHeight;
548
548
  if (!t && !n)
549
- return at;
550
- var r = V(e).getComputedStyle(e), a = Bn(r), o = a.left + a.right, l = a.top + a.bottom, s = ae(r.width), c = ae(r.height);
551
- if (r.boxSizing === "border-box" && (Math.round(s + o) !== t && (s -= Fe(r, "left", "right") + o), Math.round(c + l) !== n && (c -= Fe(r, "top", "bottom") + l)), !zn(e)) {
552
- var u = Math.round(s + o) - t, g = Math.round(c + l) - n;
553
- Math.abs(u) !== 1 && (s -= u), Math.abs(g) !== 1 && (c -= g);
549
+ return nt;
550
+ var r = K(e).getComputedStyle(e), o = In(r), a = o.left + o.right, l = o.top + o.bottom, s = ie(r.width), h = ie(r.height);
551
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= ze(r, "left", "right") + a), Math.round(h + l) !== n && (h -= ze(r, "top", "bottom") + l)), !$n(e)) {
552
+ var u = Math.round(s + a) - t, g = Math.round(h + l) - n;
553
+ Math.abs(u) !== 1 && (s -= u), Math.abs(g) !== 1 && (h -= g);
554
554
  }
555
- return de(a.left, a.top, s, c);
555
+ return se(o.left, o.top, s, h);
556
556
  }
557
- var On = /* @__PURE__ */ (function() {
557
+ var Bn = /* @__PURE__ */ (function() {
558
558
  return typeof SVGGraphicsElement < "u" ? function(e) {
559
- return e instanceof V(e).SVGGraphicsElement;
559
+ return e instanceof K(e).SVGGraphicsElement;
560
560
  } : function(e) {
561
- return e instanceof V(e).SVGElement && typeof e.getBBox == "function";
561
+ return e instanceof K(e).SVGElement && typeof e.getBBox == "function";
562
562
  };
563
563
  })();
564
- function zn(e) {
565
- return e === V(e).document.documentElement;
564
+ function $n(e) {
565
+ return e === K(e).document.documentElement;
566
566
  }
567
- function Fn(e) {
568
- return ye ? On(e) ? En(e) : $n(e) : at;
567
+ function On(e) {
568
+ return be ? Bn(e) ? Rn(e) : En(e) : nt;
569
569
  }
570
- function Ln(e) {
571
- var t = e.x, n = e.y, r = e.width, a = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, l = Object.create(o.prototype);
572
- return rt(l, {
570
+ function zn(e) {
571
+ var t = e.x, n = e.y, r = e.width, o = e.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, l = Object.create(a.prototype);
572
+ return tt(l, {
573
573
  x: t,
574
574
  y: n,
575
575
  width: r,
576
- height: a,
576
+ height: o,
577
577
  top: n,
578
578
  right: t + r,
579
- bottom: a + n,
579
+ bottom: o + n,
580
580
  left: t
581
581
  }), l;
582
582
  }
583
- function de(e, t, n, r) {
583
+ function se(e, t, n, r) {
584
584
  return { x: e, y: t, width: n, height: r };
585
585
  }
586
- var Dn = (
586
+ var Fn = (
587
587
  /** @class */
588
588
  (function() {
589
589
  function e(t) {
590
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = de(0, 0, 0, 0), this.target = t;
590
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = se(0, 0, 0, 0), this.target = t;
591
591
  }
592
592
  return e.prototype.isActive = function() {
593
- var t = Fn(this.target);
593
+ var t = On(this.target);
594
594
  return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
595
595
  }, e.prototype.broadcastRect = function() {
596
596
  var t = this.contentRect_;
597
597
  return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
598
598
  }, e;
599
599
  })()
600
- ), Hn = (
600
+ ), Ln = (
601
601
  /** @class */
602
602
  /* @__PURE__ */ (function() {
603
603
  function e(t, n) {
604
- var r = Ln(n);
605
- rt(this, { target: t, contentRect: r });
604
+ var r = zn(n);
605
+ tt(this, { target: t, contentRect: r });
606
606
  }
607
607
  return e;
608
608
  })()
609
- ), _n = (
609
+ ), Hn = (
610
610
  /** @class */
611
611
  (function() {
612
612
  function e(t, n, r) {
613
- if (this.activeObservations_ = [], this.observations_ = new it(), typeof t != "function")
613
+ if (this.activeObservations_ = [], this.observations_ = new et(), typeof t != "function")
614
614
  throw new TypeError("The callback provided as parameter 1 is not a function.");
615
615
  this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
616
616
  }
@@ -618,16 +618,16 @@ var Dn = (
618
618
  if (!arguments.length)
619
619
  throw new TypeError("1 argument required, but only 0 present.");
620
620
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
621
- if (!(t instanceof V(t).Element))
621
+ if (!(t instanceof K(t).Element))
622
622
  throw new TypeError('parameter 1 is not of type "Element".');
623
623
  var n = this.observations_;
624
- n.has(t) || (n.set(t, new Dn(t)), this.controller_.addObserver(this), this.controller_.refresh());
624
+ n.has(t) || (n.set(t, new Fn(t)), this.controller_.addObserver(this), this.controller_.refresh());
625
625
  }
626
626
  }, e.prototype.unobserve = function(t) {
627
627
  if (!arguments.length)
628
628
  throw new TypeError("1 argument required, but only 0 present.");
629
629
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
630
- if (!(t instanceof V(t).Element))
630
+ if (!(t instanceof K(t).Element))
631
631
  throw new TypeError('parameter 1 is not of type "Element".');
632
632
  var n = this.observations_;
633
633
  n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
@@ -642,7 +642,7 @@ var Dn = (
642
642
  }, e.prototype.broadcastActive = function() {
643
643
  if (this.hasActive()) {
644
644
  var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
645
- return new Hn(r.target, r.broadcastRect());
645
+ return new Ln(r.target, r.broadcastRect());
646
646
  });
647
647
  this.callback_.call(t, n, t), this.clearActive();
648
648
  }
@@ -652,7 +652,7 @@ var Dn = (
652
652
  return this.activeObservations_.length > 0;
653
653
  }, e;
654
654
  })()
655
- ), ot = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new it(), lt = (
655
+ ), it = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new et(), rt = (
656
656
  /** @class */
657
657
  /* @__PURE__ */ (function() {
658
658
  function e(t) {
@@ -660,8 +660,8 @@ var Dn = (
660
660
  throw new TypeError("Cannot call a class as a function.");
661
661
  if (!arguments.length)
662
662
  throw new TypeError("1 argument required, but only 0 present.");
663
- var n = Rn.getInstance(), r = new _n(t, n, this);
664
- ot.set(this, r);
663
+ var n = kn.getInstance(), r = new Hn(t, n, this);
664
+ it.set(this, r);
665
665
  }
666
666
  return e;
667
667
  })()
@@ -671,21 +671,21 @@ var Dn = (
671
671
  "unobserve",
672
672
  "disconnect"
673
673
  ].forEach(function(e) {
674
- lt.prototype[e] = function() {
674
+ rt.prototype[e] = function() {
675
675
  var t;
676
- return (t = ot.get(this))[e].apply(t, arguments);
676
+ return (t = it.get(this))[e].apply(t, arguments);
677
677
  };
678
678
  });
679
- var Nn = (function() {
680
- return typeof re.ResizeObserver < "u" ? re.ResizeObserver : lt;
679
+ var Dn = (function() {
680
+ return typeof ne.ResizeObserver < "u" ? ne.ResizeObserver : rt;
681
681
  })();
682
- const Pn = (e) => {
682
+ const _n = (e) => {
683
683
  var t;
684
684
  let n = ((t = e?.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e);
685
685
  for (; n && !n.tagName; )
686
686
  n = n.nextSibling;
687
687
  return n;
688
- }, Wn = C({
688
+ }, Nn = x({
689
689
  compatConfig: {
690
690
  MODE: 3
691
691
  },
@@ -699,40 +699,40 @@ const Pn = (e) => {
699
699
  let {
700
700
  slots: n
701
701
  } = t;
702
- const r = pt({
702
+ const r = ht({
703
703
  width: 0,
704
704
  height: 0,
705
705
  offsetHeight: 0,
706
706
  offsetWidth: 0
707
707
  });
708
- let a = null, o = null;
708
+ let o = null, a = null;
709
709
  const l = () => {
710
- o && (o.disconnect(), o = null);
710
+ a && (a.disconnect(), a = null);
711
711
  }, s = (g) => {
712
712
  const {
713
713
  onResize: p
714
- } = e, x = g[0].target, {
715
- width: B,
716
- height: A
717
- } = x.getBoundingClientRect(), {
718
- offsetWidth: T,
719
- offsetHeight: S
720
- } = x, h = Math.floor(B), v = Math.floor(A);
721
- if (r.width !== h || r.height !== v || r.offsetWidth !== T || r.offsetHeight !== S) {
714
+ } = e, y = g[0].target, {
715
+ width: w,
716
+ height: M
717
+ } = y.getBoundingClientRect(), {
718
+ offsetWidth: A,
719
+ offsetHeight: C
720
+ } = y, f = Math.floor(w), v = Math.floor(M);
721
+ if (r.width !== f || r.height !== v || r.offsetWidth !== A || r.offsetHeight !== C) {
722
722
  const m = {
723
- width: h,
723
+ width: f,
724
724
  height: v,
725
- offsetWidth: T,
726
- offsetHeight: S
725
+ offsetWidth: A,
726
+ offsetHeight: C
727
727
  };
728
- Q(r, m), p && Promise.resolve().then(() => {
729
- p(Q(Q({}, m), {
730
- offsetWidth: T,
731
- offsetHeight: S
732
- }), x);
728
+ V(r, m), p && Promise.resolve().then(() => {
729
+ p(V(V({}, m), {
730
+ offsetWidth: A,
731
+ offsetHeight: C
732
+ }), y);
733
733
  });
734
734
  }
735
- }, c = vt(), u = () => {
735
+ }, h = ft(), u = () => {
736
736
  const {
737
737
  disabled: g
738
738
  } = e;
@@ -740,16 +740,16 @@ const Pn = (e) => {
740
740
  l();
741
741
  return;
742
742
  }
743
- const p = Pn(c);
744
- p !== a && (l(), a = p), !o && p && (o = new Nn(s), o.observe(p));
743
+ const p = _n(h);
744
+ p !== o && (l(), o = p), !a && p && (a = new Dn(s), a.observe(p));
745
745
  };
746
- return je(() => {
746
+ return We(() => {
747
747
  u();
748
- }), mt(() => {
748
+ }), gt(() => {
749
749
  u();
750
- }), bt(() => {
750
+ }), pt(() => {
751
751
  l();
752
- }), K(() => e.disabled, () => {
752
+ }), j(() => e.disabled, () => {
753
753
  u();
754
754
  }, {
755
755
  flush: "post"
@@ -759,8 +759,8 @@ const Pn = (e) => {
759
759
  };
760
760
  }
761
761
  });
762
- function jn(e) {
763
- return i("svg", _({
762
+ function Pn(e) {
763
+ return i("svg", H({
764
764
  xmlns: "http://www.w3.org/2000/svg",
765
765
  width: "1em",
766
766
  height: "1em",
@@ -772,8 +772,8 @@ function jn(e) {
772
772
  "clip-rule": "evenodd"
773
773
  }, null)]);
774
774
  }
775
- function st(e) {
776
- return i("svg", _({
775
+ function ot(e) {
776
+ return i("svg", H({
777
777
  xmlns: "http://www.w3.org/2000/svg",
778
778
  width: "1em",
779
779
  height: "1em",
@@ -890,8 +890,8 @@ function st(e) {
890
890
  values: "10;6"
891
891
  }, null)])]);
892
892
  }
893
- function ut(e) {
894
- return i("svg", _({
893
+ function at(e) {
894
+ return i("svg", H({
895
895
  xmlns: "http://www.w3.org/2000/svg",
896
896
  width: "1em",
897
897
  height: "1em",
@@ -1125,8 +1125,8 @@ function ut(e) {
1125
1125
  to: "0"
1126
1126
  }, null)])]);
1127
1127
  }
1128
- function Gn(e) {
1129
- return i("svg", _({
1128
+ function Wn(e) {
1129
+ return i("svg", H({
1130
1130
  xmlns: "http://www.w3.org/2000/svg",
1131
1131
  width: "1em",
1132
1132
  height: "1em",
@@ -1147,8 +1147,7 @@ const we = {
1147
1147
  default: () => []
1148
1148
  },
1149
1149
  historyKey: String
1150
- }, Xn = () => ({
1151
- ...Wt,
1150
+ }, jn = () => ({
1152
1151
  ...we,
1153
1152
  actions: {
1154
1153
  type: Object,
@@ -1192,17 +1191,17 @@ const we = {
1192
1191
  onLogout: Function,
1193
1192
  onClickSettings: Function
1194
1193
  });
1195
- function Kn(e, t) {
1194
+ function Gn(e, t) {
1196
1195
  const n = /* @__PURE__ */ new Map();
1197
1196
  return e.filter((r) => {
1198
- const a = r[t];
1199
- return n.has(a) ? !1 : (n.set(a, r), !0);
1197
+ const o = r[t];
1198
+ return n.has(o) ? !1 : (n.set(o, r), !0);
1200
1199
  });
1201
1200
  }
1202
- function qn(e) {
1201
+ function Xn(e) {
1203
1202
  return e ? /^https?:\/\/.*$/.test(e) : !1;
1204
1203
  }
1205
- const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\", "]", "^", "{", "|", "}"]), Vn = ({
1204
+ const Kn = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\", "]", "^", "{", "|", "}"]), qn = ({
1206
1205
  className: e,
1207
1206
  value: t
1208
1207
  }) => t ? i(Te, {
@@ -1210,7 +1209,7 @@ const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
1210
1209
  description: `未找到搜索结果 "${t}"`
1211
1210
  }, null) : i("div", {
1212
1211
  class: e
1213
- }, [b("没有搜索历史")]), Zn = /* @__PURE__ */ C({
1212
+ }, [b("没有搜索历史")]), Un = /* @__PURE__ */ x({
1214
1213
  props: {
1215
1214
  ...we,
1216
1215
  className: String,
@@ -1219,102 +1218,102 @@ const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
1219
1218
  onClose: Function
1220
1219
  },
1221
1220
  setup(e) {
1222
- const t = hn(), n = Ye(e.historyKey || H({
1221
+ const t = cn(), n = Ze(e.historyKey || L({
1223
1222
  suffixCls: "layout-search-history",
1224
1223
  isPor: !0
1225
- }), []), r = X(0), a = X([]), o = on(l, 200);
1226
- function l(h) {
1227
- if (h = h.trim(), !h) {
1228
- a.value = [];
1224
+ }), []), r = N(0), o = N([]), a = rn(l, 200);
1225
+ function l(f) {
1226
+ if (f = f.trim(), !f) {
1227
+ o.value = [];
1229
1228
  return;
1230
1229
  }
1231
- const v = p(h), m = [];
1230
+ const v = p(f), m = [];
1232
1231
  e.dataSource.forEach((k) => {
1233
1232
  if (k.meta?.hideInMenu) return;
1234
- const Z = k.meta?.title || k.name || "";
1235
- if (v.test(Z.toLowerCase())) {
1236
- let y = [];
1237
- const N = k?.key?.split("-") || [];
1238
- for (let E = 0; E < N.length; E++)
1239
- y.push(N.slice(0, E + 1).join("-"));
1240
- y = y.map((E) => e.dataSource.find((f) => f?.key === E)?.meta?.title || ""), m.push(Rt(k, {
1233
+ const q = k.meta?.title || k.name || "";
1234
+ if (v.test(q.toLowerCase())) {
1235
+ let d = [];
1236
+ const U = k?.key?.split("-") || [];
1237
+ for (let D = 0; D < U.length; D++)
1238
+ d.push(U.slice(0, D + 1).join("-"));
1239
+ d = d.map((D) => e.dataSource.find((ue) => ue?.key === D)?.meta?.title || ""), m.push(At(k, {
1241
1240
  meta: {
1242
- title: y.join("**")
1241
+ title: d.join("**")
1243
1242
  }
1244
1243
  }));
1245
1244
  }
1246
- }), a.value = m, m.length > 0 && (r.value = 0), r.value = 0;
1245
+ }), o.value = m, m.length > 0 && (r.value = 0), r.value = 0;
1247
1246
  }
1248
- K(() => e.keyword, (h) => {
1249
- h ? o(h) : a.value = [...n.value];
1247
+ j(() => e.keyword, (f) => {
1248
+ f ? a(f) : o.value = [...n.value];
1250
1249
  });
1251
1250
  function s() {
1252
- a.value = [], e.onClose?.();
1251
+ o.value = [], e.onClose?.();
1253
1252
  }
1254
- function c() {
1255
- const h = document.querySelector(`[data-search-item="${r.value}"]`);
1256
- h && h.scrollIntoView({
1253
+ function h() {
1254
+ const f = document.querySelector(`[data-search-item="${r.value}"]`);
1255
+ f && f.scrollIntoView({
1257
1256
  block: "nearest"
1258
1257
  });
1259
1258
  }
1260
1259
  async function u() {
1261
- if (a.value.length === 0)
1260
+ if (o.value.length === 0)
1262
1261
  return;
1263
- const h = a.value, v = r.value;
1264
- if (h.length === 0 || v < 0)
1262
+ const f = o.value, v = r.value;
1263
+ if (f.length === 0 || v < 0)
1265
1264
  return;
1266
- const m = h[v];
1267
- m && (n.value.push(m), s(), await ie(), qn(m.path) ? window.open(m.path, "_blank") : t.push({
1265
+ const m = f[v];
1266
+ m && (n.value.push(m), s(), await te(), Xn(m.path) ? window.open(m.path, "_blank") : t.push({
1268
1267
  path: m.path,
1269
1268
  replace: !0
1270
1269
  }));
1271
1270
  }
1272
- function g(h) {
1273
- return Un.has(h) ? `\\${h}` : h;
1271
+ function g(f) {
1272
+ return Kn.has(f) ? `\\${f}` : f;
1274
1273
  }
1275
- function p(h) {
1276
- const v = [...h].map((m) => g(m)).join(".*");
1274
+ function p(f) {
1275
+ const v = [...f].map((m) => g(m)).join(".*");
1277
1276
  return new RegExp(`.*${v}.*`);
1278
1277
  }
1279
- function x() {
1280
- a.value.length !== 0 && (r.value--, r.value < 0 && (r.value = a.value.length - 1), c());
1278
+ function y() {
1279
+ o.value.length !== 0 && (r.value--, r.value < 0 && (r.value = o.value.length - 1), h());
1281
1280
  }
1282
- function B() {
1283
- a.value.length !== 0 && (r.value++, r.value > a.value.length - 1 && (r.value = 0), c());
1281
+ function w() {
1282
+ o.value.length !== 0 && (r.value++, r.value > o.value.length - 1 && (r.value = 0), h());
1284
1283
  }
1285
- je(() => {
1286
- n.value.length > 0 && (a.value = n.value), fe("Enter", u), fe("ArrowUp", x), fe("ArrowDown", B);
1284
+ We(() => {
1285
+ n.value.length > 0 && (o.value = n.value), he("Enter", u), he("ArrowUp", y), he("ArrowDown", w);
1287
1286
  });
1288
- function A(h) {
1289
- r.value = h;
1287
+ function M(f) {
1288
+ r.value = f;
1290
1289
  }
1291
- function T(h, v) {
1292
- h.stopPropagation(), e.keyword ? a.value.splice(v, 1) : n.value.splice(v, 1), r.value = r.value - 1 >= 0 ? r.value - 1 : 0, c();
1290
+ function A(f, v) {
1291
+ f.stopPropagation(), e.keyword ? o.value.splice(v, 1) : n.value.splice(v, 1), r.value = r.value - 1 >= 0 ? r.value - 1 : 0, h();
1293
1292
  }
1294
- const S = (h) => d(`${e.className}${h ? `-${h}` : ""}`, e.hashId);
1295
- return () => i(L, null, [a.value.length > 0 ? i(L, null, [n.value.length > 0 && !e.keyword && i("div", {
1296
- class: S("panel-title")
1293
+ const C = (f) => c(`${e.className}${f ? `-${f}` : ""}`, e.hashId);
1294
+ return () => i(O, null, [o.value.length > 0 ? i(O, null, [n.value.length > 0 && !e.keyword && i("div", {
1295
+ class: C("panel-title")
1297
1296
  }, [b("搜索历史")]), i("div", {
1298
- class: S("panel-list")
1299
- }, [Kn(a.value, "path").map((h, v) => i("div", {
1300
- key: h.name,
1301
- class: S(d("panel-item", v === r.value && "active")),
1297
+ class: C("panel-list")
1298
+ }, [Gn(o.value, "path").map((f, v) => i("div", {
1299
+ key: f.name,
1300
+ class: C(c("panel-item", v === r.value && "active")),
1302
1301
  "data-search-item": v,
1303
1302
  onClick: () => u(),
1304
- onMouseenter: () => A(v)
1303
+ onMouseenter: () => M(v)
1305
1304
  }, [i("div", {
1306
- class: S("panel-item-left")
1307
- }, [i(jt, _(h.meta || {}, {
1308
- icon: h.meta?.icon || i(Kt, null, null),
1309
- classNames: S("panel-icon")
1310
- }), null), h.meta?.title?.split("**")?.map((m, k) => i(L, null, [m, k < h.meta?.title?.split("**")?.length - 1 && i(qt, null, null)])), i("span", null, null)]), i(Ut, {
1311
- onClick: (m) => T(m, v)
1312
- }, null)]))])]) : i(Vn, {
1313
- className: S("result"),
1305
+ class: C("panel-item-left")
1306
+ }, [i(Nt, H(f.meta || {}, {
1307
+ icon: f.meta?.icon || i(Gt, null, null),
1308
+ classNames: C("panel-icon")
1309
+ }), null), f.meta?.title?.split("**")?.map((m, k) => i(O, null, [m, k < f.meta?.title?.split("**")?.length - 1 && i(Xt, null, null)])), i("span", null, null)]), i(Kt, {
1310
+ onClick: (m) => A(m, v)
1311
+ }, null)]))])]) : i(qn, {
1312
+ className: C("result"),
1314
1313
  value: e.keyword
1315
1314
  }, null)]);
1316
1315
  }
1317
- }), Qn = (e) => ({
1316
+ }), Vn = (e) => ({
1318
1317
  [e.componentCls]: {
1319
1318
  display: "flex",
1320
1319
  alignItems: "center",
@@ -1327,7 +1326,7 @@ const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
1327
1326
  paddingBlock: e.paddingXXS / 2,
1328
1327
  paddingInline: e.paddingXS,
1329
1328
  borderRadius: e.borderRadiusLG * 2,
1330
- backgroundColor: J(e, e.colorBgLayout),
1329
+ backgroundColor: Z(e, e.colorBgLayout),
1331
1330
  transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
1332
1331
  ">.anticon": {
1333
1332
  fontSize: e.fontSize,
@@ -1338,7 +1337,7 @@ const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
1338
1337
  },
1339
1338
  "&-word-icon": {
1340
1339
  padding: "4px 6px",
1341
- lineHeight: q(e.fontSizeSM),
1340
+ lineHeight: G(e.fontSizeSM),
1342
1341
  borderTopLeftRadius: e.borderRadiusSM,
1343
1342
  borderBottomLeftRadius: e.borderRadiusSM,
1344
1343
  borderTopRightRadius: e.borderRadiusLG * 2,
@@ -1402,24 +1401,24 @@ const Un = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
1402
1401
  }
1403
1402
  }
1404
1403
  });
1405
- function Jn(e) {
1406
- return Ge("SearchPageInput", (t) => {
1407
- const n = Xe(t, {});
1408
- return [Qn(n)];
1404
+ function Zn(e) {
1405
+ return je("SearchPageInput", (t) => {
1406
+ const n = Ge(t, {});
1407
+ return [Vn(n)];
1409
1408
  }, e);
1410
1409
  }
1411
- const Yn = ({
1410
+ const Qn = ({
1412
1411
  className: e,
1413
1412
  hashId: t
1414
1413
  }) => i("div", {
1415
- class: d(`${e}-footer`, t)
1414
+ class: c(`${e}-footer`, t)
1416
1415
  }, [i("div", {
1417
- class: d(`${e}-footer-icon`, t)
1418
- }, [i(Vt, null, null), b("选择")]), i("div", {
1419
- class: d(`${e}-footer-icon`, t)
1420
- }, [i($e, null, null), i($e, {
1416
+ class: c(`${e}-footer-icon`, t)
1417
+ }, [i(qt, null, null), b("选择")]), i("div", {
1418
+ class: c(`${e}-footer-icon`, t)
1419
+ }, [i(Be, null, null), i(Be, {
1421
1420
  rotate: 180
1422
- }, null), b("导航")])]), ei = /* @__PURE__ */ C({
1421
+ }, null), b("导航")])]), Jn = /* @__PURE__ */ x({
1423
1422
  name: "SearchPageInput",
1424
1423
  props: {
1425
1424
  ...we,
@@ -1433,44 +1432,44 @@ const Yn = ({
1433
1432
  }
1434
1433
  },
1435
1434
  setup(e) {
1436
- const t = H({
1435
+ const t = L({
1437
1436
  suffixCls: "page-search",
1438
1437
  isPor: !0
1439
1438
  }), {
1440
1439
  wrapSSR: n,
1441
1440
  hashId: r
1442
- } = Jn(t), [a, o] = D(""), [l, s] = D(!1), c = ce(), u = ln(), g = Bt() ? u["ctrl+k"] : u["cmd+k"], p = X(), x = R(() => Et(e.dataSource?.length ? e.dataSource : c?.menuProps?.value?.menuData));
1443
- Oe(g, () => {
1441
+ } = Zn(t), [o, a] = z(""), [l, s] = z(!1), h = le(), u = on(), g = kt() ? u["ctrl+k"] : u["cmd+k"], p = N(), y = F(() => It(e.dataSource?.length ? e.dataSource : h?.menuProps?.value?.menuData));
1442
+ $e(g, () => {
1444
1443
  e.disabledShortKey || s(!0);
1445
- }), Oe(l, () => {
1446
- ie(() => {
1444
+ }), $e(l, () => {
1445
+ te(() => {
1447
1446
  p.value?.focus();
1448
1447
  });
1449
1448
  });
1450
- const B = () => {
1451
- s(!1), a.value = "";
1449
+ const w = () => {
1450
+ s(!1), o.value = "";
1452
1451
  };
1453
1452
  return () => {
1454
- const A = {
1453
+ const M = {
1455
1454
  className: `${t}`,
1456
1455
  hashId: r.value
1457
- }, T = `${t}-modal`;
1458
- return n(i(L, null, [i("div", {
1459
- class: d(t, r.value),
1456
+ }, A = `${t}-modal`;
1457
+ return n(i(O, null, [i("div", {
1458
+ class: c(t, r.value),
1460
1459
  onClick: () => s(!0)
1461
1460
  }, [i(Ee, null, null), i("span", {
1462
- class: d(`${t}-word`, r.value)
1461
+ class: c(`${t}-word`, r.value)
1463
1462
  }, [b("搜索")]), i("span", {
1464
- class: d(`${t}-word-icon`, r.value)
1465
- }, [b("⌘"), " ", i("kbd", null, [b("K")])])]), i(dn, {
1466
- class: d(`${T}`, r.value),
1463
+ class: c(`${t}-word-icon`, r.value)
1464
+ }, [b("⌘"), " ", i("kbd", null, [b("K")])])]), i(un, {
1465
+ class: c(`${A}`, r.value),
1467
1466
  width: 600,
1468
1467
  scrollProps: {
1469
1468
  maxHeight: 400,
1470
1469
  minHeight: 200
1471
1470
  },
1472
1471
  centered: !1,
1473
- title: i(Lt, {
1472
+ title: i(zt, {
1474
1473
  style: {
1475
1474
  width: `${600 * 0.8}px`,
1476
1475
  padding: 0
@@ -1479,27 +1478,27 @@ const Yn = ({
1479
1478
  bordered: !1,
1480
1479
  size: "large",
1481
1480
  placeholder: "搜索导航菜单",
1482
- value: a.value,
1481
+ value: o.value,
1483
1482
  prefix: i(Ee, null, null),
1484
- onChange: (S) => o(S.target.value)
1483
+ onChange: (C) => a(C.target.value)
1485
1484
  }, null),
1486
1485
  open: l.value,
1487
- footer: i(Yn, {
1488
- className: T,
1486
+ footer: i(Qn, {
1487
+ className: A,
1489
1488
  hashId: r.value
1490
1489
  }, null),
1491
- onCancel: () => B()
1490
+ onCancel: () => w()
1492
1491
  }, {
1493
- default: () => [i(Zn, _(A, {
1494
- keyword: a.value,
1495
- dataSource: x.value,
1496
- onClose: () => B()
1492
+ default: () => [i(Un, H(M, {
1493
+ keyword: o.value,
1494
+ dataSource: y.value,
1495
+ onClose: () => w()
1497
1496
  }), null)]
1498
1497
  })]));
1499
1498
  };
1500
1499
  }
1501
- }), ti = (e) => {
1502
- const { dark: t } = ue(e), n = Gt(e, "header");
1500
+ }), Yn = (e) => {
1501
+ const { dark: t } = ae(e), n = Pt(e, "header");
1503
1502
  return {
1504
1503
  [`${e.componentCls}`]: {
1505
1504
  "&-header-actions": {
@@ -1531,7 +1530,7 @@ const Yn = ({
1531
1530
  borderRadius: e.borderRadius,
1532
1531
  transition: `color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,
1533
1532
  "&:hover": {
1534
- background: n ? be("#fff", 0.12) : e.colorBgTextHover
1533
+ background: n ? me("#fff", 0.12) : e.colorBgTextHover
1535
1534
  }
1536
1535
  }
1537
1536
  },
@@ -1543,11 +1542,11 @@ const Yn = ({
1543
1542
  display: "flex",
1544
1543
  alignItems: "center",
1545
1544
  height: 44,
1546
- lineHeight: q(44),
1545
+ lineHeight: G(44),
1547
1546
  borderRadius: e.borderRadius,
1548
1547
  paddingInlineEnd: e.padding,
1549
1548
  "&:hover": {
1550
- backgroundColor: kt(e.colorTextBase, 0.03)
1549
+ backgroundColor: wt(e.colorTextBase, 0.03)
1551
1550
  }
1552
1551
  },
1553
1552
  "&-avatar": {
@@ -1565,17 +1564,17 @@ const Yn = ({
1565
1564
  }
1566
1565
  };
1567
1566
  };
1568
- function ni(e) {
1569
- return Ge("RightContent", (t) => {
1570
- const n = Xe(t);
1571
- return [ti(n)];
1567
+ function ei(e) {
1568
+ return je("RightContent", (t) => {
1569
+ const n = Ge(t);
1570
+ return [Yn(n)];
1572
1571
  }, e);
1573
1572
  }
1574
- const ir = /* @__PURE__ */ C({
1573
+ const tr = /* @__PURE__ */ x({
1575
1574
  name: "GlobalRightContent",
1576
- props: Xn(),
1575
+ props: jn(),
1577
1576
  inheritAttrs: !1,
1578
- emits: ["logout", "darkChange", "clickSettings", "update:dark", "lockOpenChange"],
1577
+ emits: ["logout", "clickSettings", "lockOpenChange"],
1579
1578
  slots: Object,
1580
1579
  setup(e, {
1581
1580
  slots: t
@@ -1583,20 +1582,17 @@ const ir = /* @__PURE__ */ C({
1583
1582
  const {
1584
1583
  isFullscreen: n,
1585
1584
  toggle: r
1586
- } = sn(), a = le(), o = ce(), l = Mt(), s = H({
1585
+ } = an(), o = le(), a = Ct(), {
1586
+ setTheme: l,
1587
+ isDark: s,
1588
+ resolvedTheme: h
1589
+ } = qe(), u = L({
1587
1590
  suffixCls: "global-header",
1588
1591
  isPor: !0
1589
1592
  }), {
1590
- wrapSSR: c,
1591
- hashId: u
1592
- } = ni(s), [g, p] = D(!1), [x, B] = D("auto"), {
1593
- isDark: A,
1594
- toggleMode: T
1595
- } = Ve(R(() => Be(e.dark) ? e.dark : o?.dark?.value), {
1596
- change: (y) => {
1597
- e.onDarkChange?.(y), e?.["onUpdate:dark"]?.(y), o?.onDarkChange?.(y);
1598
- }
1599
- }), S = R(() => qe(o?.isMobile?.value) ? o?.isMobile?.value : l.value === "sm" || l.value === "xs"), h = R(() => Be(e.dark) ? A.value : a?.dark?.value), v = R(() => e.actions === !1 ? {} : {
1593
+ wrapSSR: g,
1594
+ hashId: p
1595
+ } = ei(u), y = N(), [w, M] = z(!1), [A, C] = z("auto"), f = F(() => Rt(o?.isMobile?.value) ? o?.isMobile?.value : a.value === "sm" || a.value === "xs"), v = F(() => e.actions === !1 ? {} : {
1600
1596
  ...{
1601
1597
  lock: !0,
1602
1598
  theme: !0,
@@ -1605,106 +1601,106 @@ const ir = /* @__PURE__ */ C({
1605
1601
  fullScreen: !0
1606
1602
  },
1607
1603
  ...e.actions
1608
- }), m = un(async (y) => {
1609
- B(y);
1610
- }, 160), k = (y) => {
1611
- Ze({
1612
- event: y,
1613
- isDark: h,
1614
- toggle: T
1604
+ }), m = ln(async (d) => {
1605
+ C(d);
1606
+ }, 160), k = () => {
1607
+ y.value && Wt(y.value, {
1608
+ isDark: h.value === "light",
1609
+ setTheme: l
1615
1610
  });
1616
1611
  };
1617
- function Z(y) {
1618
- zt(e.onClickSettings) && e.onClickSettings?.(y);
1612
+ function q(d) {
1613
+ $t(e.onClickSettings) && e.onClickSettings?.(d);
1619
1614
  }
1620
1615
  return () => {
1621
- const y = $t({
1616
+ const d = Et({
1622
1617
  slots: t,
1623
1618
  props: e,
1624
1619
  keys: ["dropdownRender", "dropdownMenuRender", "dropdownMenuExtraItemRender"],
1625
1620
  render: !0
1626
- }), N = Ot({
1621
+ }), U = Bt({
1627
1622
  slots: t,
1628
1623
  props: e,
1629
1624
  key: "actionsRender"
1630
- }), E = n.value ? Zt : Qt, f = v.value.lock ? yt(() => import("./index-D7DswqyL.js")) : i("div", null, null);
1631
- return c(i("div", {
1632
- class: `${s}-right-content ${u.value}`.trim(),
1625
+ }), D = n.value ? Ut : Vt, ue = v.value.lock ? vt(() => import("./index-DTZ6nANN.js")) : i("div", null, null);
1626
+ return g(i("div", {
1627
+ class: `${u}-right-content ${p.value}`.trim(),
1633
1628
  style: {
1634
- minWidth: x.value,
1629
+ minWidth: A.value,
1635
1630
  height: "100%"
1636
1631
  }
1637
1632
  }, [i("div", {
1638
1633
  style: {
1639
1634
  height: "100%"
1640
1635
  }
1641
- }, [i(Wn, {
1636
+ }, [i(Nn, {
1642
1637
  key: "resize-observer",
1643
1638
  onResize: ({
1644
- width: P
1639
+ width: ce
1645
1640
  }) => {
1646
- m(P);
1641
+ m(ce);
1647
1642
  }
1648
1643
  }, {
1649
1644
  default: () => [i("div", {
1650
- class: `${s}-header-actions ${u.value}`.trim()
1651
- }, [t.default?.() ?? i(L, null, [v.value.search && !S.value && i(ei, {
1645
+ class: `${u}-header-actions ${p.value}`.trim()
1646
+ }, [t.default?.() ?? i(O, null, [v.value.search && !f.value && i(Jn, {
1652
1647
  dataSource: e.dataSource,
1653
1648
  disabledShortKey: e.shortsKey?.disabled
1654
1649
  }, null), v.value.theme && i("div", {
1655
- class: `${s}-header-actions-item ${u.value}`.trim()
1656
- }, [i(Y, {
1657
- class: `${s}-header-actions-icon ${u.value}`.trim(),
1658
- component: h.value ? ut : st,
1659
- onClick: (P) => k(P)
1660
- }, null)]), v.value.settings && !S.value && i("div", {
1661
- class: `${s}-header-actions-item ${u.value}`.trim()
1662
- }, [i(Qe, {
1663
- onClick: () => Z("settings")
1664
- }, null)]), v.value.fullScreen && !S.value && i("div", {
1665
- class: `${s}-header-actions-item ${u.value}`.trim()
1666
- }, [i(E, {
1650
+ ref: y,
1651
+ class: `${u}-header-actions-item ${p.value}`.trim()
1652
+ }, [i(Q, {
1653
+ class: `${u}-header-actions-icon ${p.value}`.trim(),
1654
+ component: s.value ? at : ot,
1655
+ onClick: () => k()
1656
+ }, null)]), v.value.settings && !f.value && i("div", {
1657
+ class: `${u}-header-actions-item ${p.value}`.trim()
1658
+ }, [i(Ue, {
1659
+ onClick: () => q("settings")
1660
+ }, null)]), v.value.fullScreen && !f.value && i("div", {
1661
+ class: `${u}-header-actions-item ${p.value}`.trim()
1662
+ }, [i(D, {
1667
1663
  onClick: () => r()
1668
- }, null)]), N ? N?.([`${s}-header-actions-item`, u.value]) : null]), i(Dt, _({
1664
+ }, null)]), U ? U?.([`${u}-header-actions-item`, p.value]) : null]), i(Ft, H({
1669
1665
  placement: "bottomRight",
1670
1666
  overlayStyle: {
1671
1667
  maxWidth: 120,
1672
1668
  minWidth: 120
1673
1669
  }
1674
1670
  }, e.dropdownProps, {
1675
- overlay: y.dropdownMenuRender || i(ke, null, {
1676
- default: () => [y.dropdownMenuExtraItemRender, v.value.lock && i(L, null, [i(Ae, {
1671
+ overlay: d.dropdownMenuRender || i(Ae, null, {
1672
+ default: () => [d.dropdownMenuExtraItemRender, v.value.lock && i(O, null, [i(ke, {
1677
1673
  key: "lock",
1678
- icon: i(Jt, null, null),
1679
- onClick: () => p(!0)
1674
+ icon: i(Zt, null, null),
1675
+ onClick: () => M(!0)
1680
1676
  }, {
1681
1677
  default: () => [b("锁定屏幕")]
1682
- }), i(ke.Divider, null, null)]), i(Ae, {
1678
+ }), i(Ae.Divider, null, null)]), i(ke, {
1683
1679
  key: "logout",
1684
- icon: i(Yt, null, null),
1680
+ icon: i(Qt, null, null),
1685
1681
  onClick: () => e.onLogout?.()
1686
1682
  }, {
1687
1683
  default: () => [b("退出登录")]
1688
1684
  })]
1689
1685
  })
1690
1686
  }), {
1691
- default: () => [y.dropdownRender || i("div", {
1692
- class: `${s}-header-actions-avatar ${u.value}`.trim()
1693
- }, [i(Ht, {
1687
+ default: () => [d.dropdownRender || i("div", {
1688
+ class: `${u}-header-actions-avatar ${p.value}`.trim()
1689
+ }, [i(Lt, {
1694
1690
  size: 28,
1695
- icon: i(en, null, null),
1691
+ icon: i(Jt, null, null),
1696
1692
  src: e.avatar
1697
1693
  }, null), i("div", {
1698
- class: `${s}-header-actions-name ${u.value}`.trim()
1694
+ class: `${u}-header-actions-name ${p.value}`.trim()
1699
1695
  }, [e.name])])]
1700
1696
  })])]
1701
- })]), i(f, {
1702
- open: g.value,
1703
- onOpenChange: (P) => p(P)
1697
+ })]), i(ue, {
1698
+ open: w.value,
1699
+ onOpenChange: (ce) => M(ce)
1704
1700
  }, null)]));
1705
1701
  };
1706
1702
  }
1707
- }), { provideContext: ii, useInjectContext: j } = Ke("theme-editor"), ct = {
1703
+ }), { provideContext: ti, useInjectContext: P } = Xe("theme-editor"), lt = {
1708
1704
  width: Number,
1709
1705
  open: {
1710
1706
  type: Boolean,
@@ -1714,7 +1710,7 @@ const ir = /* @__PURE__ */ C({
1714
1710
  type: Function,
1715
1711
  default: void 0
1716
1712
  }
1717
- }, dt = {
1713
+ }, st = {
1718
1714
  open: {
1719
1715
  type: Boolean,
1720
1716
  default: void 0
@@ -1746,7 +1742,7 @@ const ir = /* @__PURE__ */ C({
1746
1742
  onChangeSettingState: {
1747
1743
  type: Function
1748
1744
  }
1749
- }, ri = [{
1745
+ }, ni = [{
1750
1746
  value: "light",
1751
1747
  label: () => i("div", {
1752
1748
  style: {
@@ -1754,8 +1750,8 @@ const ir = /* @__PURE__ */ C({
1754
1750
  alignItems: "center",
1755
1751
  gap: "6px"
1756
1752
  }
1757
- }, [i(Y, {
1758
- component: st
1753
+ }, [i(Q, {
1754
+ component: ot
1759
1755
  }, null), b("亮色")])
1760
1756
  }, {
1761
1757
  value: "dark",
@@ -1765,8 +1761,8 @@ const ir = /* @__PURE__ */ C({
1765
1761
  alignItems: "center",
1766
1762
  gap: "6px"
1767
1763
  }
1768
- }, [i(Y, {
1769
- component: ut
1764
+ }, [i(Q, {
1765
+ component: at
1770
1766
  }, null), b("深色")])
1771
1767
  }, {
1772
1768
  value: "system",
@@ -1776,14 +1772,14 @@ const ir = /* @__PURE__ */ C({
1776
1772
  alignItems: "center",
1777
1773
  gap: "6px"
1778
1774
  }
1779
- }, [i(tn, null, null), b("自动")])
1780
- }], ht = [{
1775
+ }, [i(Yt, null, null), b("自动")])
1776
+ }], ut = [{
1781
1777
  key: "light",
1782
1778
  title: "亮色菜单风格"
1783
1779
  }, {
1784
1780
  key: "dark",
1785
1781
  title: "暗色菜单风格"
1786
- }], ft = [{
1782
+ }], ct = [{
1787
1783
  key: "side",
1788
1784
  title: "侧边菜单布局"
1789
1785
  }, {
@@ -1798,7 +1794,7 @@ const ir = /* @__PURE__ */ C({
1798
1794
  }, {
1799
1795
  key: "simple",
1800
1796
  title: "简单菜单布局"
1801
- }], ai = [{
1797
+ }], ii = [{
1802
1798
  label: "fixedHeader",
1803
1799
  title: "固定 Header"
1804
1800
  }, {
@@ -1807,13 +1803,13 @@ const ir = /* @__PURE__ */ C({
1807
1803
  }, {
1808
1804
  label: "splitMenus",
1809
1805
  title: "自动分割菜单"
1810
- }], oi = [{
1806
+ }], ri = [{
1811
1807
  label: "showTabsBar",
1812
1808
  title: "多标签"
1813
1809
  }, {
1814
1810
  label: "fixedTabsBar",
1815
1811
  title: "固定多标签"
1816
- }], li = [{
1812
+ }], oi = [{
1817
1813
  key: "techBlue",
1818
1814
  color: "#1677FF",
1819
1815
  title: "拂晓蓝(默认)"
@@ -1845,7 +1841,7 @@ const ir = /* @__PURE__ */ C({
1845
1841
  key: "purple",
1846
1842
  color: "#722ED1",
1847
1843
  title: "酱紫"
1848
- }], Le = /* @__PURE__ */ C({
1844
+ }], Fe = /* @__PURE__ */ x({
1849
1845
  name: "BlockCheckbox",
1850
1846
  props: {
1851
1847
  value: String,
@@ -1860,32 +1856,32 @@ const ir = /* @__PURE__ */ C({
1860
1856
  const {
1861
1857
  hashId: t,
1862
1858
  prefixCls: n
1863
- } = j();
1859
+ } = P();
1864
1860
  return () => {
1865
1861
  const r = `${n}-block-checkbox`;
1866
1862
  return i("div", {
1867
1863
  class: [r, t.value]
1868
- }, [e.list.map((a) => i(Ce, {
1869
- title: a.title,
1870
- key: a.key
1864
+ }, [e.list.map((o) => i(Ce, {
1865
+ title: o.title,
1866
+ key: o.key
1871
1867
  }, {
1872
1868
  default: () => [i("div", {
1873
- class: d(t.value, `${r}-item`, `${r}-item-${a.key}`, `${r}-${e.configType}-item`),
1874
- onClick: (o) => e.onChange?.(a.key, o)
1875
- }, [a.key === "wide" && i("div", {
1876
- class: [`${r}-item-${a.key}-content`, t.value]
1877
- }, null), i(Je, {
1869
+ class: c(t.value, `${r}-item`, `${r}-item-${o.key}`, `${r}-${e.configType}-item`),
1870
+ onClick: (a) => e.onChange?.(o.key, a)
1871
+ }, [o.key === "wide" && i("div", {
1872
+ class: [`${r}-item-${o.key}-content`, t.value]
1873
+ }, null), i(Ve, {
1878
1874
  class: `${r}-selectIcon ${t.value}`.trim(),
1879
1875
  style: {
1880
- display: e.value === a.key ? "block" : "none"
1876
+ display: e.value === o.key ? "block" : "none"
1881
1877
  }
1882
- }, null), a?.icon ? i("div", {
1878
+ }, null), o?.icon ? i("div", {
1883
1879
  class: `${r}-icon ${t.value}`.trim()
1884
- }, [a.icon]) : null])]
1880
+ }, [o.icon]) : null])]
1885
1881
  }))]);
1886
1882
  };
1887
1883
  }
1888
- }), ee = /* @__PURE__ */ C({
1884
+ }), J = /* @__PURE__ */ x({
1889
1885
  name: "RegionalChange",
1890
1886
  props: {
1891
1887
  label: String,
@@ -1898,7 +1894,7 @@ const ir = /* @__PURE__ */ C({
1898
1894
  const {
1899
1895
  hashId: t,
1900
1896
  prefixCls: n
1901
- } = j();
1897
+ } = P();
1902
1898
  return () => i(Ie, {
1903
1899
  class: `${n}-list ${t.value}`.trim(),
1904
1900
  split: !1,
@@ -1921,7 +1917,7 @@ const ir = /* @__PURE__ */ C({
1921
1917
  }),
1922
1918
  dataSource: [{
1923
1919
  title: e.label,
1924
- action: i(_t, {
1920
+ action: i(Ht, {
1925
1921
  size: "small",
1926
1922
  disabled: e.disabled,
1927
1923
  checked: !!e.value,
@@ -1932,13 +1928,13 @@ const ir = /* @__PURE__ */ C({
1932
1928
  }]
1933
1929
  }, null);
1934
1930
  }
1935
- }), si = ["copyButton", "progress", "weakMode", "extraSettingState"], ui = /* @__PURE__ */ C({
1931
+ }), ai = ["copyButton", "progress", "weakMode", "extraSettingState"], li = /* @__PURE__ */ x({
1936
1932
  props: {
1937
- ...ct,
1938
- ...Se(dt, ["copyButton", "progress", "weakMode", "extraSettingState"]),
1933
+ ...lt,
1934
+ ...Se(st, ["copyButton", "progress", "weakMode", "extraSettingState"]),
1939
1935
  disabled: Object,
1940
- dark: Boolean,
1941
- onChangeDark: Function,
1936
+ theme: [Boolean, String],
1937
+ onChangeTheme: Function,
1942
1938
  onChangeConfig: Function,
1943
1939
  onChangeExtraConfig: Function
1944
1940
  },
@@ -1947,18 +1943,18 @@ const ir = /* @__PURE__ */ C({
1947
1943
  hashId: t,
1948
1944
  drawerClass: n,
1949
1945
  prefixCls: r
1950
- } = j(), a = ce(), {
1951
- copy: o,
1946
+ } = P(), o = le(), {
1947
+ copy: a,
1952
1948
  copied: l,
1953
1949
  isSupported: s
1954
- } = cn();
1955
- K(l, (u) => {
1956
- u && Nt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
1950
+ } = sn();
1951
+ j(l, (u) => {
1952
+ u && Dt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
1957
1953
  });
1958
- const c = () => {
1959
- s.value && o(JSON.stringify(xt(a?.settings?.value)));
1954
+ const h = () => {
1955
+ s.value && a(JSON.stringify(mt(o?.settings?.value)));
1960
1956
  };
1961
- return () => i(Ue, {
1957
+ return () => i(Ke, {
1962
1958
  width: e.width,
1963
1959
  closable: !1,
1964
1960
  placement: "right",
@@ -1973,93 +1969,93 @@ const ir = /* @__PURE__ */ C({
1973
1969
  onClose: () => e.onOpenChange?.(!1)
1974
1970
  }, {
1975
1971
  default: () => [i("div", {
1976
- class: d([`${n}-wrapper`, t.value])
1977
- }, [i(et, null, {
1972
+ class: c([`${n}-wrapper`, t.value])
1973
+ }, [i(Qe, null, {
1978
1974
  default: () => [i("div", {
1979
- class: d([`${n}-content`, t.value])
1975
+ class: c([`${n}-content`, t.value])
1980
1976
  }, [i("div", {
1981
- class: d([`${r}-card`, t.value])
1977
+ class: c([`${r}-card`, t.value])
1982
1978
  }, [i("div", {
1983
- class: d(`${r}-card-header`, t.value)
1979
+ class: c(`${r}-card-header`, t.value)
1984
1980
  }, [i("div", {
1985
- class: d(`${r}-card-header-title`, t.value)
1981
+ class: c(`${r}-card-header-title`, t.value)
1986
1982
  }, [b("系统配置")]), i("div", {
1987
- class: d(`${r}-card-header-subtitle`, t.value)
1983
+ class: c(`${r}-card-header-subtitle`, t.value)
1988
1984
  }, [b("GxDesign Pro")])]), i("div", {
1989
- class: d(`${r}-card-content`, t.value)
1990
- }, [i(G, {
1985
+ class: c(`${r}-card-content`, t.value)
1986
+ }, [i(W, {
1991
1987
  prefixCls: `${r}`,
1992
1988
  hashId: t.value,
1993
1989
  title: "整体风格"
1994
1990
  }, {
1995
- default: () => [i(Pt, {
1996
- value: qe(e.dark) ? e.dark ? "dark" : "light" : "system",
1997
- options: ri,
1998
- onChange: (u) => e.onChangeDark?.(u)
1991
+ default: () => [i(_t, {
1992
+ value: e.theme,
1993
+ options: ni,
1994
+ onChange: (u) => e.onChangeTheme?.(u)
1999
1995
  }, null)]
2000
- }), i(G, {
1996
+ }), i(W, {
2001
1997
  prefixCls: r,
2002
1998
  hashId: t.value,
2003
1999
  title: "菜单风格"
2004
2000
  }, {
2005
- default: () => [i(Le, {
2006
- value: a?.settings?.value.theme,
2007
- list: ht,
2001
+ default: () => [i(Fe, {
2002
+ value: o?.settings?.value.menuTheme,
2003
+ list: ut,
2008
2004
  configType: "menuTheme",
2009
2005
  key: "menuTheme",
2010
2006
  onChange: (u) => e.onChangeConfig?.({
2011
- theme: u
2007
+ menuTheme: u
2012
2008
  })
2013
2009
  }, null)]
2014
- }), i(he, null, null), i(G, {
2010
+ }), i(de, null, null), i(W, {
2015
2011
  hashId: t.value,
2016
2012
  prefixCls: r,
2017
2013
  title: "导航模式"
2018
2014
  }, {
2019
- default: () => [i(Le, {
2020
- value: a?.settings?.value.layout,
2015
+ default: () => [i(Fe, {
2016
+ value: o?.settings?.value.layout,
2021
2017
  key: "layout",
2022
2018
  configType: "layout",
2023
- list: ft,
2019
+ list: ct,
2024
2020
  onChange: (u) => e.onChangeConfig?.({
2025
2021
  layout: u
2026
2022
  })
2027
2023
  }, null)]
2028
- }), ai.map(({
2024
+ }), ii.map(({
2029
2025
  label: u,
2030
2026
  title: g
2031
- }) => i(ee, {
2027
+ }) => i(J, {
2032
2028
  label: g,
2033
2029
  valueKey: u,
2034
- value: a?.settings?.value[u],
2030
+ value: o?.settings?.value[u],
2035
2031
  disabled: e.disabled?.[u],
2036
- onChange: (p, x) => e.onChangeConfig?.({
2037
- [p]: x
2032
+ onChange: (p, y) => e.onChangeConfig?.({
2033
+ [p]: y
2038
2034
  })
2039
- }, null)), i(he, null, null), i(G, {
2035
+ }, null)), i(de, null, null), i(W, {
2040
2036
  hashId: t.value,
2041
2037
  prefixCls: r,
2042
2038
  title: "其他设置"
2043
2039
  }, {
2044
- default: () => [oi.map(({
2040
+ default: () => [ri.map(({
2045
2041
  label: u,
2046
2042
  title: g
2047
- }) => i(ee, {
2043
+ }) => i(J, {
2048
2044
  label: g,
2049
2045
  valueKey: u,
2050
- value: a?.settings?.value[u],
2046
+ value: o?.settings?.value[u],
2051
2047
  disabled: e.disabled?.[u],
2052
- onChange: (p, x) => e.onChangeConfig?.({
2053
- [p]: x
2048
+ onChange: (p, y) => e.onChangeConfig?.({
2049
+ [p]: y
2054
2050
  })
2055
- }, null)), e.weakMode && i(ee, {
2051
+ }, null)), e.weakMode && i(J, {
2056
2052
  label: "色弱模式",
2057
2053
  valueKey: "colorWeak",
2058
2054
  value: e.extraSettingState?.colorWeak,
2059
2055
  onChange: (u, g) => e.onChangeExtraConfig?.({
2060
2056
  [u]: g
2061
2057
  })
2062
- }, null), e.progress && i(ee, {
2058
+ }, null), e.progress && i(J, {
2063
2059
  label: "顶部进度条",
2064
2060
  valueKey: "progress",
2065
2061
  value: e.extraSettingState?.progress,
@@ -2067,25 +2063,25 @@ const ir = /* @__PURE__ */ C({
2067
2063
  [u]: g
2068
2064
  })
2069
2065
  }, null)]
2070
- }), e.copyButton && i(he, null, null), i("div", {
2066
+ }), e.copyButton && i(de, null, null), i("div", {
2071
2067
  style: {
2072
2068
  display: "flex",
2073
2069
  gap: "10px"
2074
2070
  }
2075
2071
  }, [e.copyButton && i(Re, {
2076
- onClick: () => c(),
2072
+ onClick: () => h(),
2077
2073
  block: !0
2078
2074
  }, {
2079
- default: () => [i(nn, null, null), b("拷贝设置")]
2075
+ default: () => [i(en, null, null), b("拷贝设置")]
2080
2076
  }), i(Re, {
2081
2077
  block: !0
2082
2078
  }, {
2083
- default: () => [i(rn, null, null), b("清空缓存")]
2079
+ default: () => [i(tn, null, null), b("清空缓存")]
2084
2080
  })])])])])]
2085
2081
  })])]
2086
2082
  });
2087
2083
  }
2088
- }), ci = /* @__PURE__ */ C({
2084
+ }), si = /* @__PURE__ */ x({
2089
2085
  name: "ColorSvg",
2090
2086
  setup() {
2091
2087
  return () => i("svg", {
@@ -2464,7 +2460,7 @@ const ir = /* @__PURE__ */ C({
2464
2460
  fill: "#571042"
2465
2461
  }, null)]);
2466
2462
  }
2467
- }), di = (e) => ({
2463
+ }), ui = (e) => ({
2468
2464
  [`${e.componentCls}`]: {
2469
2465
  display: "flex",
2470
2466
  alignItems: "flex-start",
@@ -2493,7 +2489,7 @@ const ir = /* @__PURE__ */ C({
2493
2489
  marginBlockEnd: e.marginXS,
2494
2490
  transition: `all ${e.motionDurationMid} linear`,
2495
2491
  "&-active": {
2496
- backgroundColor: J(e, e.colorBgContainer)
2492
+ backgroundColor: Z(e, e.colorBgContainer)
2497
2493
  },
2498
2494
  svg: {
2499
2495
  fontSize: 48,
@@ -2512,10 +2508,10 @@ const ir = /* @__PURE__ */ C({
2512
2508
  color: e.colorText,
2513
2509
  marginInlineEnd: e.marginXS,
2514
2510
  borderRadius: e.borderRadius * 2,
2515
- backgroundColor: J(e, e.colorBgContainer)
2511
+ backgroundColor: Z(e, e.colorBgContainer)
2516
2512
  }
2517
2513
  }
2518
- }), hi = /* @__PURE__ */ C({
2514
+ }), ci = /* @__PURE__ */ x({
2519
2515
  props: {
2520
2516
  activeKey: {
2521
2517
  type: String,
@@ -2536,108 +2532,108 @@ const ir = /* @__PURE__ */ C({
2536
2532
  }
2537
2533
  },
2538
2534
  setup(e) {
2539
- const t = H({
2535
+ const t = L({
2540
2536
  suffixCls: "switch-tab",
2541
2537
  isPor: !0
2542
2538
  }), {
2543
2539
  wrapSSR: n,
2544
2540
  hashId: r
2545
- } = oe("SwitchTab", [di], t), a = X(e.activeKey);
2546
- K(() => e.activeKey, (l) => {
2547
- a.value = l;
2541
+ } = re("SwitchTab", [ui], t), o = N(e.activeKey);
2542
+ j(() => e.activeKey, (l) => {
2543
+ o.value = l;
2548
2544
  });
2549
- function o(l) {
2550
- a.value = l, e.onChange?.(l);
2545
+ function a(l) {
2546
+ o.value = l, e.onChange?.(l);
2551
2547
  }
2552
2548
  return () => n(i("div", {
2553
- class: d(`${t}`, r.value)
2549
+ class: c(`${t}`, r.value)
2554
2550
  }, [i("div", {
2555
- class: d(`${t}-nav`, r.value)
2551
+ class: c(`${t}-nav`, r.value)
2556
2552
  }, [e.dataSource.map((l) => i("div", {
2557
2553
  key: l.value,
2558
- class: d(`${t}-panel`, r.value, a.value === l.value && `${t}-panel-active`),
2559
- onClick: () => o(l.value)
2554
+ class: c(`${t}-panel`, r.value, o.value === l.value && `${t}-panel-active`),
2555
+ onClick: () => a(l.value)
2560
2556
  }, [e.renderItem?.(l), i("div", {
2561
- class: d(`${t}-panel-title`, r.value)
2557
+ class: c(`${t}-panel-title`, r.value)
2562
2558
  }, [l.label])])), i("div", {
2563
- class: d(`${t}-line`, r.value),
2559
+ class: c(`${t}-line`, r.value),
2564
2560
  style: {
2565
- top: `${88 * e.dataSource.findIndex((l) => l.value === a.value)}px`
2561
+ top: `${88 * e.dataSource.findIndex((l) => l.value === o.value)}px`
2566
2562
  }
2567
2563
  }, null)]), i("div", {
2568
- class: d(`${t}-content`, r.value)
2569
- }, [i(et, null, {
2570
- default: () => [e.renderContent?.(a.value)]
2564
+ class: c(`${t}-content`, r.value)
2565
+ }, [i(Qe, null, {
2566
+ default: () => [e.renderContent?.(o.value)]
2571
2567
  })])]));
2572
2568
  }
2573
- }), { provideContext: fi, useInjectContext: gi } = Ke("theme-setting"), pi = /* @__PURE__ */ C({
2569
+ }), { provideContext: di, useInjectContext: hi } = Xe("theme-setting"), fi = /* @__PURE__ */ x({
2574
2570
  setup() {
2575
2571
  const {
2576
2572
  prefixCls: e,
2577
2573
  hashId: t
2578
- } = j(), {
2574
+ } = P(), {
2579
2575
  onChange: n
2580
- } = gi(), {
2576
+ } = hi(), {
2581
2577
  token: r
2582
- } = le(), a = R(() => {
2583
- const o = new fn(r.value.colorPrimary);
2578
+ } = xe(), o = F(() => {
2579
+ const a = new dn(r.value.colorPrimary);
2584
2580
  return {
2585
- hsb: o.toHsbString(),
2586
- rgb: o.toRgbString(),
2587
- hex: o.toHexString()
2581
+ hsb: a.toHsbString(),
2582
+ rgb: a.toRgbString(),
2583
+ hex: a.toHexString()
2588
2584
  };
2589
2585
  });
2590
- return () => i(G, {
2586
+ return () => i(W, {
2591
2587
  hashId: t.value,
2592
2588
  prefixCls: e,
2593
2589
  title: "主题色"
2594
2590
  }, {
2595
2591
  default: () => [i("div", {
2596
- class: d(`${e}-color-list`, t.value)
2597
- }, [li.map((o) => i(Ce, {
2598
- title: o.title,
2599
- key: o.key
2592
+ class: c(`${e}-color-list`, t.value)
2593
+ }, [oi.map((a) => i(Ce, {
2594
+ title: a.title,
2595
+ key: a.key
2600
2596
  }, {
2601
2597
  default: () => [i("div", {
2602
- class: d(`${e}-color-item`, t.value),
2598
+ class: c(`${e}-color-item`, t.value),
2603
2599
  style: {
2604
- background: o.color
2600
+ background: a.color
2605
2601
  },
2606
2602
  onClick: () => {
2607
2603
  n?.({
2608
- colorPrimary: o.color
2604
+ colorPrimary: a.color
2609
2605
  });
2610
2606
  }
2611
- }, [o.color.toLowerCase() === r.value.colorPrimary.toLowerCase() ? i(Je, {
2607
+ }, [a.color.toLowerCase() === r.value.colorPrimary.toLowerCase() ? i(Ve, {
2612
2608
  style: {
2613
2609
  color: r.value.colorWhite,
2614
2610
  fontSize: "12px"
2615
2611
  }
2616
2612
  }, null) : null])]
2617
- }))]), i(gn, {
2613
+ }))]), i(hn, {
2618
2614
  value: r.value.colorPrimary,
2619
- onChangeComplete: (o) => {
2615
+ onChangeComplete: (a) => {
2620
2616
  n?.({
2621
- colorPrimary: o.toHexString()
2617
+ colorPrimary: a.toHexString()
2622
2618
  });
2623
2619
  }
2624
2620
  }, {
2625
2621
  default: () => [i("div", {
2626
- class: d(`${e}-color-picker`, t.value)
2622
+ class: c(`${e}-color-picker`, t.value)
2627
2623
  }, [i("div", {
2628
- class: d(`${e}-color-picker-inner`, t.value)
2624
+ class: c(`${e}-color-picker-inner`, t.value)
2629
2625
  }, [i("div", {
2630
- class: d(`${e}-color-picker-top`, t.value),
2626
+ class: c(`${e}-color-picker-top`, t.value),
2631
2627
  style: {
2632
2628
  background: r.value.colorPrimary
2633
2629
  }
2634
- }, [i("p", null, [b("hsb:"), a.value.hsb]), i("p", null, [b("rgb:"), a.value.rgb])]), i("div", {
2635
- class: d(`${e}-color-picker-bottom`, t.value)
2630
+ }, [i("p", null, [b("hsb:"), o.value.hsb]), i("p", null, [b("rgb:"), o.value.rgb])]), i("div", {
2631
+ class: c(`${e}-color-picker-bottom`, t.value)
2636
2632
  }, [i("div", null, [i("p", null, [b("自定义主题颜色")]), i("p", {
2637
2633
  style: {
2638
2634
  color: r.value.colorPrimary
2639
2635
  }
2640
- }, [b("HEX:"), a.value.hex])]), i(an, {
2636
+ }, [b("HEX:"), o.value.hex])]), i(nn, {
2641
2637
  style: {
2642
2638
  fontSize: "18px"
2643
2639
  }
@@ -2645,32 +2641,32 @@ const ir = /* @__PURE__ */ C({
2645
2641
  })]
2646
2642
  });
2647
2643
  }
2648
- }), vi = /* @__PURE__ */ C({
2644
+ }), gi = /* @__PURE__ */ x({
2649
2645
  setup() {
2650
2646
  const {
2651
2647
  prefixCls: e,
2652
2648
  hashId: t
2653
- } = j();
2654
- return () => i(G, {
2649
+ } = P();
2650
+ return () => i(W, {
2655
2651
  hashId: t.value,
2656
2652
  prefixCls: e,
2657
2653
  title: "侧边主题色"
2658
2654
  }, null);
2659
2655
  }
2660
- }), mi = /* @__PURE__ */ C({
2656
+ }), pi = /* @__PURE__ */ x({
2661
2657
  setup() {
2662
2658
  const {
2663
2659
  token: e
2664
- } = le();
2660
+ } = xe();
2665
2661
  return () => i("div", {
2666
2662
  style: {
2667
- padding: q(e.value.padding)
2663
+ padding: G(e.value.padding)
2668
2664
  }
2669
- }, [i(pi, null, null), i(vi, null, null)]);
2665
+ }, [i(fi, null, null), i(gi, null, null)]);
2670
2666
  }
2671
- }), bi = /* @__PURE__ */ C({
2667
+ }), vi = /* @__PURE__ */ x({
2672
2668
  props: {
2673
- ...ct,
2669
+ ...lt,
2674
2670
  onChange: {
2675
2671
  type: Function,
2676
2672
  default: void 0
@@ -2681,25 +2677,25 @@ const ir = /* @__PURE__ */ C({
2681
2677
  hashId: t,
2682
2678
  prefixCls: n,
2683
2679
  drawerClass: r
2684
- } = j(), {
2685
- token: a
2686
- } = le(), o = R(() => ue(a.value)), l = R(() => {
2687
- const s = ft.find((u) => u.key === o.value.layout)?.title;
2688
- return `${ht.find((u) => u.key === o.value.theme)?.title}/${s}`;
2680
+ } = P(), {
2681
+ token: o
2682
+ } = xe(), a = F(() => ae(o.value)), l = F(() => {
2683
+ const s = ct.find((u) => u.key === a.value.layout)?.title;
2684
+ return `${ut.find((u) => u.key === a.value.theme)?.title}/${s}`;
2689
2685
  });
2690
- return fi({
2686
+ return di({
2691
2687
  onChange: e.onChange
2692
2688
  }), () => {
2693
2689
  const {
2694
2690
  width: s,
2695
- open: c,
2691
+ open: h,
2696
2692
  onOpenChange: u
2697
2693
  } = e;
2698
- return i(Ue, {
2694
+ return i(Ke, {
2699
2695
  width: s,
2700
2696
  closable: !1,
2701
2697
  placement: "right",
2702
- open: c,
2698
+ open: h,
2703
2699
  bodyStyle: {
2704
2700
  padding: 0
2705
2701
  },
@@ -2709,19 +2705,19 @@ const ir = /* @__PURE__ */ C({
2709
2705
  onClose: () => u?.(!1)
2710
2706
  }, {
2711
2707
  default: () => [i("div", {
2712
- class: d([`${r}-wrapper`, t.value])
2708
+ class: c([`${r}-wrapper`, t.value])
2713
2709
  }, [i("div", {
2714
2710
  style: {
2715
2711
  paddingInline: "8px",
2716
2712
  paddingTop: "8px"
2717
2713
  }
2718
2714
  }, [i("div", {
2719
- class: d(`${n}-card-header`, t.value)
2715
+ class: c(`${n}-card-header`, t.value)
2720
2716
  }, [i("div", {
2721
- class: d(`${n}-card-header-title`, t.value)
2717
+ class: c(`${n}-card-header-title`, t.value)
2722
2718
  }, [b("主题配置")]), i("div", {
2723
- class: d(`${n}-card-header-subtitle`, t.value)
2724
- }, [l.value])])]), i(hi, {
2719
+ class: c(`${n}-card-header-subtitle`, t.value)
2720
+ }, [l.value])])]), i(ci, {
2725
2721
  activeKey: "color",
2726
2722
  dataSource: [{
2727
2723
  label: "色彩",
@@ -2729,17 +2725,17 @@ const ir = /* @__PURE__ */ C({
2729
2725
  }],
2730
2726
  renderItem: (g) => {
2731
2727
  if (g.value === "color")
2732
- return i(ci, null, null);
2728
+ return i(si, null, null);
2733
2729
  },
2734
2730
  renderContent: (g) => {
2735
2731
  if (g === "color")
2736
- return i(mi, null, null);
2732
+ return i(pi, null, null);
2737
2733
  }
2738
2734
  }, null)])]
2739
2735
  });
2740
2736
  };
2741
2737
  }
2742
- }), yi = /* @__PURE__ */ C({
2738
+ }), mi = /* @__PURE__ */ x({
2743
2739
  name: "Trigger",
2744
2740
  inheritAttrs: !1,
2745
2741
  props: {
@@ -2753,175 +2749,175 @@ const ir = /* @__PURE__ */ C({
2753
2749
  const {
2754
2750
  prefixCls: t,
2755
2751
  hashId: n
2756
- } = j();
2757
- function r(a) {
2752
+ } = P();
2753
+ function r(o) {
2758
2754
  return {
2759
- width: a ? q(216) : q(48),
2755
+ width: o ? G(216) : G(48),
2760
2756
  transition: "width 0.3s"
2761
2757
  };
2762
2758
  }
2763
2759
  return () => {
2764
- const a = At(`${t}-dock-zoom`);
2765
- return i(L, null, [i("div", {
2766
- class: d(n.value, `${t}-button`),
2760
+ const o = Mt(`${t}-dock-zoom`);
2761
+ return i(O, null, [i("div", {
2762
+ class: c(n.value, `${t}-button`),
2767
2763
  onClick: () => e.onOpenChange?.(!0)
2768
2764
  }, [i("sup", {
2769
- class: d(n.value, `${t}-dot`)
2765
+ class: c(n.value, `${t}-dot`)
2770
2766
  }, null), i("div", {
2771
- class: d(n.value, `${t}-icon`)
2772
- }, [i(Y, {
2773
- component: Gn
2774
- }, null)])]), i(Ct, a, {
2775
- default: () => [St(i("div", {
2776
- class: d(n.value, `${t}-dock`)
2767
+ class: c(n.value, `${t}-icon`)
2768
+ }, [i(Q, {
2769
+ component: Wn
2770
+ }, null)])]), i(bt, o, {
2771
+ default: () => [yt(i("div", {
2772
+ class: c(n.value, `${t}-dock`)
2777
2773
  }, [i("div", {
2778
- class: d(n.value, `${t}-dock-btn`, e.type === "setting" && `${t}-dock-btn-active`),
2774
+ class: c(n.value, `${t}-dock-btn`, e.type === "setting" && `${t}-dock-btn-active`),
2779
2775
  style: r(e.type === "setting"),
2780
2776
  onClick: () => e.onTypeChange?.("setting")
2781
2777
  }, [i("div", {
2782
- class: d(n.value, `${t}-dock-icon`)
2783
- }, [i(Qe, null, null), e.type === "setting" && i("span", {
2784
- class: d(n.value, `${t}-dock-icon-text`)
2778
+ class: c(n.value, `${t}-dock-icon`)
2779
+ }, [i(Ue, null, null), e.type === "setting" && i("span", {
2780
+ class: c(n.value, `${t}-dock-icon-text`)
2785
2781
  }, [b("系统配置")])])]), i("div", {
2786
- class: d(n.value, `${t}-dock-btn`, e.type === "theme" && `${t}-dock-btn-active`),
2782
+ class: c(n.value, `${t}-dock-btn`, e.type === "theme" && `${t}-dock-btn-active`),
2787
2783
  style: r(e.type === "theme"),
2788
2784
  onClick: () => e.onTypeChange?.("theme")
2789
2785
  }, [i("div", {
2790
- class: d(n.value, `${t}-dock-icon`)
2791
- }, [i(Y, {
2792
- component: jn
2786
+ class: c(n.value, `${t}-dock-icon`)
2787
+ }, [i(Q, {
2788
+ component: Pn
2793
2789
  }, null), e.type === "theme" && i("span", {
2794
- class: d(n.value, `${t}-dock-icon-text`)
2795
- }, [b("主题配置")])])])]), [[wt, e.open]])]
2790
+ class: c(n.value, `${t}-dock-icon-text`)
2791
+ }, [b("主题配置")])])])]), [[xt, e.open]])]
2796
2792
  })]);
2797
2793
  };
2798
2794
  }
2799
2795
  });
2800
- function w(e, t) {
2801
- xi(e) && (e = "100%");
2802
- var n = Ci(e);
2796
+ function S(e, t) {
2797
+ bi(e) && (e = "100%");
2798
+ var n = yi(e);
2803
2799
  return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
2804
2800
  }
2805
- function te(e) {
2801
+ function Y(e) {
2806
2802
  return Math.min(1, Math.max(0, e));
2807
2803
  }
2808
- function xi(e) {
2804
+ function bi(e) {
2809
2805
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
2810
2806
  }
2811
- function Ci(e) {
2807
+ function yi(e) {
2812
2808
  return typeof e == "string" && e.indexOf("%") !== -1;
2813
2809
  }
2814
- function gt(e) {
2810
+ function dt(e) {
2815
2811
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
2816
2812
  }
2817
- function ne(e) {
2813
+ function ee(e) {
2818
2814
  return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
2819
2815
  }
2820
- function W(e) {
2816
+ function _(e) {
2821
2817
  return e.length === 1 ? "0" + e : String(e);
2822
2818
  }
2823
- function Si(e, t, n) {
2819
+ function xi(e, t, n) {
2824
2820
  return {
2825
- r: w(e, 255) * 255,
2826
- g: w(t, 255) * 255,
2827
- b: w(n, 255) * 255
2821
+ r: S(e, 255) * 255,
2822
+ g: S(t, 255) * 255,
2823
+ b: S(n, 255) * 255
2828
2824
  };
2829
2825
  }
2830
- function De(e, t, n) {
2831
- e = w(e, 255), t = w(t, 255), n = w(n, 255);
2832
- var r = Math.max(e, t, n), a = Math.min(e, t, n), o = 0, l = 0, s = (r + a) / 2;
2833
- if (r === a)
2834
- l = 0, o = 0;
2826
+ function Le(e, t, n) {
2827
+ e = S(e, 255), t = S(t, 255), n = S(n, 255);
2828
+ var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, l = 0, s = (r + o) / 2;
2829
+ if (r === o)
2830
+ l = 0, a = 0;
2835
2831
  else {
2836
- var c = r - a;
2837
- switch (l = s > 0.5 ? c / (2 - r - a) : c / (r + a), r) {
2832
+ var h = r - o;
2833
+ switch (l = s > 0.5 ? h / (2 - r - o) : h / (r + o), r) {
2838
2834
  case e:
2839
- o = (t - n) / c + (t < n ? 6 : 0);
2835
+ a = (t - n) / h + (t < n ? 6 : 0);
2840
2836
  break;
2841
2837
  case t:
2842
- o = (n - e) / c + 2;
2838
+ a = (n - e) / h + 2;
2843
2839
  break;
2844
2840
  case n:
2845
- o = (e - t) / c + 4;
2841
+ a = (e - t) / h + 4;
2846
2842
  break;
2847
2843
  }
2848
- o /= 6;
2844
+ a /= 6;
2849
2845
  }
2850
- return { h: o, s: l, l: s };
2846
+ return { h: a, s: l, l: s };
2851
2847
  }
2852
- function ge(e, t, n) {
2848
+ function fe(e, t, n) {
2853
2849
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
2854
2850
  }
2855
- function wi(e, t, n) {
2856
- var r, a, o;
2857
- if (e = w(e, 360), t = w(t, 100), n = w(n, 100), t === 0)
2858
- a = n, o = n, r = n;
2851
+ function Ci(e, t, n) {
2852
+ var r, o, a;
2853
+ if (e = S(e, 360), t = S(t, 100), n = S(n, 100), t === 0)
2854
+ o = n, a = n, r = n;
2859
2855
  else {
2860
2856
  var l = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - l;
2861
- r = ge(s, l, e + 1 / 3), a = ge(s, l, e), o = ge(s, l, e - 1 / 3);
2857
+ r = fe(s, l, e + 1 / 3), o = fe(s, l, e), a = fe(s, l, e - 1 / 3);
2862
2858
  }
2863
- return { r: r * 255, g: a * 255, b: o * 255 };
2859
+ return { r: r * 255, g: o * 255, b: a * 255 };
2864
2860
  }
2865
2861
  function He(e, t, n) {
2866
- e = w(e, 255), t = w(t, 255), n = w(n, 255);
2867
- var r = Math.max(e, t, n), a = Math.min(e, t, n), o = 0, l = r, s = r - a, c = r === 0 ? 0 : s / r;
2868
- if (r === a)
2869
- o = 0;
2862
+ e = S(e, 255), t = S(t, 255), n = S(n, 255);
2863
+ var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, l = r, s = r - o, h = r === 0 ? 0 : s / r;
2864
+ if (r === o)
2865
+ a = 0;
2870
2866
  else {
2871
2867
  switch (r) {
2872
2868
  case e:
2873
- o = (t - n) / s + (t < n ? 6 : 0);
2869
+ a = (t - n) / s + (t < n ? 6 : 0);
2874
2870
  break;
2875
2871
  case t:
2876
- o = (n - e) / s + 2;
2872
+ a = (n - e) / s + 2;
2877
2873
  break;
2878
2874
  case n:
2879
- o = (e - t) / s + 4;
2875
+ a = (e - t) / s + 4;
2880
2876
  break;
2881
2877
  }
2882
- o /= 6;
2878
+ a /= 6;
2883
2879
  }
2884
- return { h: o, s: c, v: l };
2880
+ return { h: a, s: h, v: l };
2885
2881
  }
2886
- function Mi(e, t, n) {
2887
- e = w(e, 360) * 6, t = w(t, 100), n = w(n, 100);
2888
- var r = Math.floor(e), a = e - r, o = n * (1 - t), l = n * (1 - a * t), s = n * (1 - (1 - a) * t), c = r % 6, u = [n, l, o, o, s, n][c], g = [s, n, n, l, o, o][c], p = [o, o, s, n, n, l][c];
2882
+ function Si(e, t, n) {
2883
+ e = S(e, 360) * 6, t = S(t, 100), n = S(n, 100);
2884
+ var r = Math.floor(e), o = e - r, a = n * (1 - t), l = n * (1 - o * t), s = n * (1 - (1 - o) * t), h = r % 6, u = [n, l, a, a, s, n][h], g = [s, n, n, l, a, a][h], p = [a, a, s, n, n, l][h];
2889
2885
  return { r: u * 255, g: g * 255, b: p * 255 };
2890
2886
  }
2891
- function _e(e, t, n, r) {
2892
- var a = [
2893
- W(Math.round(e).toString(16)),
2894
- W(Math.round(t).toString(16)),
2895
- W(Math.round(n).toString(16))
2887
+ function De(e, t, n, r) {
2888
+ var o = [
2889
+ _(Math.round(e).toString(16)),
2890
+ _(Math.round(t).toString(16)),
2891
+ _(Math.round(n).toString(16))
2896
2892
  ];
2897
- return r && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
2893
+ return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
2898
2894
  }
2899
- function Ti(e, t, n, r, a) {
2900
- var o = [
2901
- W(Math.round(e).toString(16)),
2902
- W(Math.round(t).toString(16)),
2903
- W(Math.round(n).toString(16)),
2904
- W(ki(r))
2895
+ function wi(e, t, n, r, o) {
2896
+ var a = [
2897
+ _(Math.round(e).toString(16)),
2898
+ _(Math.round(t).toString(16)),
2899
+ _(Math.round(n).toString(16)),
2900
+ _(Mi(r))
2905
2901
  ];
2906
- return a && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) && o[3].startsWith(o[3].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) + o[3].charAt(0) : o.join("");
2902
+ return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
2907
2903
  }
2908
- function ki(e) {
2904
+ function Mi(e) {
2909
2905
  return Math.round(parseFloat(e) * 255).toString(16);
2910
2906
  }
2911
- function Ne(e) {
2912
- return M(e) / 255;
2907
+ function _e(e) {
2908
+ return T(e) / 255;
2913
2909
  }
2914
- function M(e) {
2910
+ function T(e) {
2915
2911
  return parseInt(e, 16);
2916
2912
  }
2917
- function Ai(e) {
2913
+ function Ti(e) {
2918
2914
  return {
2919
2915
  r: e >> 16,
2920
2916
  g: (e & 65280) >> 8,
2921
2917
  b: e & 255
2922
2918
  };
2923
2919
  }
2924
- var xe = {
2920
+ var ye = {
2925
2921
  aliceblue: "#f0f8ff",
2926
2922
  antiquewhite: "#faebd7",
2927
2923
  aqua: "#00ffff",
@@ -3071,9 +3067,9 @@ var xe = {
3071
3067
  yellow: "#ffff00",
3072
3068
  yellowgreen: "#9acd32"
3073
3069
  };
3074
- function Ii(e) {
3075
- var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, a = null, o = null, l = !1, s = !1;
3076
- return typeof e == "string" && (e = Ei(e)), typeof e == "object" && ($(e.r) && $(e.g) && $(e.b) ? (t = Si(e.r, e.g, e.b), l = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : $(e.h) && $(e.s) && $(e.v) ? (r = ne(e.s), a = ne(e.v), t = Mi(e.h, r, a), l = !0, s = "hsv") : $(e.h) && $(e.s) && $(e.l) && (r = ne(e.s), o = ne(e.l), t = wi(e.h, r, o), l = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = gt(n), {
3070
+ function Ai(e) {
3071
+ var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, a = null, l = !1, s = !1;
3072
+ return typeof e == "string" && (e = Ri(e)), typeof e == "object" && (R(e.r) && R(e.g) && R(e.b) ? (t = xi(e.r, e.g, e.b), l = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : R(e.h) && R(e.s) && R(e.v) ? (r = ee(e.s), o = ee(e.v), t = Si(e.h, r, o), l = !0, s = "hsv") : R(e.h) && R(e.s) && R(e.l) && (r = ee(e.s), a = ee(e.l), t = Ci(e.h, r, a), l = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = dt(n), {
3077
3073
  ok: l,
3078
3074
  format: e.format || s,
3079
3075
  r: Math.min(255, Math.max(t.r, 0)),
@@ -3082,56 +3078,56 @@ function Ii(e) {
3082
3078
  a: n
3083
3079
  };
3084
3080
  }
3085
- var Ri = "[-\\+]?\\d+%?", Bi = "[-\\+]?\\d*\\.\\d+%?", z = "(?:".concat(Bi, ")|(?:").concat(Ri, ")"), pe = "[\\s|\\(]+(".concat(z, ")[,|\\s]+(").concat(z, ")[,|\\s]+(").concat(z, ")\\s*\\)?"), ve = "[\\s|\\(]+(".concat(z, ")[,|\\s]+(").concat(z, ")[,|\\s]+(").concat(z, ")[,|\\s]+(").concat(z, ")\\s*\\)?"), I = {
3086
- CSS_UNIT: new RegExp(z),
3087
- rgb: new RegExp("rgb" + pe),
3088
- rgba: new RegExp("rgba" + ve),
3089
- hsl: new RegExp("hsl" + pe),
3090
- hsla: new RegExp("hsla" + ve),
3091
- hsv: new RegExp("hsv" + pe),
3092
- hsva: new RegExp("hsva" + ve),
3081
+ var ki = "[-\\+]?\\d+%?", Ii = "[-\\+]?\\d*\\.\\d+%?", B = "(?:".concat(Ii, ")|(?:").concat(ki, ")"), ge = "[\\s|\\(]+(".concat(B, ")[,|\\s]+(").concat(B, ")[,|\\s]+(").concat(B, ")\\s*\\)?"), pe = "[\\s|\\(]+(".concat(B, ")[,|\\s]+(").concat(B, ")[,|\\s]+(").concat(B, ")[,|\\s]+(").concat(B, ")\\s*\\)?"), I = {
3082
+ CSS_UNIT: new RegExp(B),
3083
+ rgb: new RegExp("rgb" + ge),
3084
+ rgba: new RegExp("rgba" + pe),
3085
+ hsl: new RegExp("hsl" + ge),
3086
+ hsla: new RegExp("hsla" + pe),
3087
+ hsv: new RegExp("hsv" + ge),
3088
+ hsva: new RegExp("hsva" + pe),
3093
3089
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
3094
3090
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
3095
3091
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
3096
3092
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
3097
3093
  };
3098
- function Ei(e) {
3094
+ function Ri(e) {
3099
3095
  if (e = e.trim().toLowerCase(), e.length === 0)
3100
3096
  return !1;
3101
3097
  var t = !1;
3102
- if (xe[e])
3103
- e = xe[e], t = !0;
3098
+ if (ye[e])
3099
+ e = ye[e], t = !0;
3104
3100
  else if (e === "transparent")
3105
3101
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
3106
3102
  var n = I.rgb.exec(e);
3107
3103
  return n ? { r: n[1], g: n[2], b: n[3] } : (n = I.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = I.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = I.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = I.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = I.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = I.hex8.exec(e), n ? {
3108
- r: M(n[1]),
3109
- g: M(n[2]),
3110
- b: M(n[3]),
3111
- a: Ne(n[4]),
3104
+ r: T(n[1]),
3105
+ g: T(n[2]),
3106
+ b: T(n[3]),
3107
+ a: _e(n[4]),
3112
3108
  format: t ? "name" : "hex8"
3113
3109
  } : (n = I.hex6.exec(e), n ? {
3114
- r: M(n[1]),
3115
- g: M(n[2]),
3116
- b: M(n[3]),
3110
+ r: T(n[1]),
3111
+ g: T(n[2]),
3112
+ b: T(n[3]),
3117
3113
  format: t ? "name" : "hex"
3118
3114
  } : (n = I.hex4.exec(e), n ? {
3119
- r: M(n[1] + n[1]),
3120
- g: M(n[2] + n[2]),
3121
- b: M(n[3] + n[3]),
3122
- a: Ne(n[4] + n[4]),
3115
+ r: T(n[1] + n[1]),
3116
+ g: T(n[2] + n[2]),
3117
+ b: T(n[3] + n[3]),
3118
+ a: _e(n[4] + n[4]),
3123
3119
  format: t ? "name" : "hex8"
3124
3120
  } : (n = I.hex3.exec(e), n ? {
3125
- r: M(n[1] + n[1]),
3126
- g: M(n[2] + n[2]),
3127
- b: M(n[3] + n[3]),
3121
+ r: T(n[1] + n[1]),
3122
+ g: T(n[2] + n[2]),
3123
+ b: T(n[3] + n[3]),
3128
3124
  format: t ? "name" : "hex"
3129
3125
  } : !1)))))))));
3130
3126
  }
3131
- function $(e) {
3127
+ function R(e) {
3132
3128
  return !!I.CSS_UNIT.exec(String(e));
3133
3129
  }
3134
- var F = (
3130
+ var $ = (
3135
3131
  /** @class */
3136
3132
  (function() {
3137
3133
  function e(t, n) {
@@ -3139,9 +3135,9 @@ var F = (
3139
3135
  var r;
3140
3136
  if (t instanceof e)
3141
3137
  return t;
3142
- typeof t == "number" && (t = Ai(t)), this.originalInput = t;
3143
- var a = Ii(t);
3144
- this.originalInput = t, this.r = a.r, this.g = a.g, this.b = a.b, this.a = a.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : a.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = a.ok;
3138
+ typeof t == "number" && (t = Ti(t)), this.originalInput = t;
3139
+ var o = Ai(t);
3140
+ this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : o.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
3145
3141
  }
3146
3142
  return e.prototype.isDark = function() {
3147
3143
  return this.getBrightness() < 128;
@@ -3151,12 +3147,12 @@ var F = (
3151
3147
  var t = this.toRgb();
3152
3148
  return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
3153
3149
  }, e.prototype.getLuminance = function() {
3154
- var t = this.toRgb(), n, r, a, o = t.r / 255, l = t.g / 255, s = t.b / 255;
3155
- return o <= 0.03928 ? n = o / 12.92 : n = Math.pow((o + 0.055) / 1.055, 2.4), l <= 0.03928 ? r = l / 12.92 : r = Math.pow((l + 0.055) / 1.055, 2.4), s <= 0.03928 ? a = s / 12.92 : a = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * a;
3150
+ var t = this.toRgb(), n, r, o, a = t.r / 255, l = t.g / 255, s = t.b / 255;
3151
+ return a <= 0.03928 ? n = a / 12.92 : n = Math.pow((a + 0.055) / 1.055, 2.4), l <= 0.03928 ? r = l / 12.92 : r = Math.pow((l + 0.055) / 1.055, 2.4), s <= 0.03928 ? o = s / 12.92 : o = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * o;
3156
3152
  }, e.prototype.getAlpha = function() {
3157
3153
  return this.a;
3158
3154
  }, e.prototype.setAlpha = function(t) {
3159
- return this.a = gt(t), this.roundA = Math.round(100 * this.a) / 100, this;
3155
+ return this.a = dt(t), this.roundA = Math.round(100 * this.a) / 100, this;
3160
3156
  }, e.prototype.isMonochrome = function() {
3161
3157
  var t = this.toHsl().s;
3162
3158
  return t === 0;
@@ -3164,20 +3160,20 @@ var F = (
3164
3160
  var t = He(this.r, this.g, this.b);
3165
3161
  return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
3166
3162
  }, e.prototype.toHsvString = function() {
3167
- var t = He(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), a = Math.round(t.v * 100);
3168
- return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(a, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(a, "%, ").concat(this.roundA, ")");
3163
+ var t = He(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.v * 100);
3164
+ return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
3169
3165
  }, e.prototype.toHsl = function() {
3170
- var t = De(this.r, this.g, this.b);
3166
+ var t = Le(this.r, this.g, this.b);
3171
3167
  return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
3172
3168
  }, e.prototype.toHslString = function() {
3173
- var t = De(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), a = Math.round(t.l * 100);
3174
- return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(a, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(a, "%, ").concat(this.roundA, ")");
3169
+ var t = Le(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.l * 100);
3170
+ return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
3175
3171
  }, e.prototype.toHex = function(t) {
3176
- return t === void 0 && (t = !1), _e(this.r, this.g, this.b, t);
3172
+ return t === void 0 && (t = !1), De(this.r, this.g, this.b, t);
3177
3173
  }, e.prototype.toHexString = function(t) {
3178
3174
  return t === void 0 && (t = !1), "#" + this.toHex(t);
3179
3175
  }, e.prototype.toHex8 = function(t) {
3180
- return t === void 0 && (t = !1), Ti(this.r, this.g, this.b, this.a, t);
3176
+ return t === void 0 && (t = !1), wi(this.r, this.g, this.b, this.a, t);
3181
3177
  }, e.prototype.toHex8String = function(t) {
3182
3178
  return t === void 0 && (t = !1), "#" + this.toHex8(t);
3183
3179
  }, e.prototype.toHexShortString = function(t) {
@@ -3194,7 +3190,7 @@ var F = (
3194
3190
  return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
3195
3191
  }, e.prototype.toPercentageRgb = function() {
3196
3192
  var t = function(n) {
3197
- return "".concat(Math.round(w(n, 255) * 100), "%");
3193
+ return "".concat(Math.round(S(n, 255) * 100), "%");
3198
3194
  };
3199
3195
  return {
3200
3196
  r: t(this.r),
@@ -3204,7 +3200,7 @@ var F = (
3204
3200
  };
3205
3201
  }, e.prototype.toPercentageRgbString = function() {
3206
3202
  var t = function(n) {
3207
- return Math.round(w(n, 255) * 100);
3203
+ return Math.round(S(n, 255) * 100);
3208
3204
  };
3209
3205
  return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
3210
3206
  }, e.prototype.toName = function() {
@@ -3212,17 +3208,17 @@ var F = (
3212
3208
  return "transparent";
3213
3209
  if (this.a < 1)
3214
3210
  return !1;
3215
- for (var t = "#" + _e(this.r, this.g, this.b, !1), n = 0, r = Object.entries(xe); n < r.length; n++) {
3216
- var a = r[n], o = a[0], l = a[1];
3211
+ for (var t = "#" + De(this.r, this.g, this.b, !1), n = 0, r = Object.entries(ye); n < r.length; n++) {
3212
+ var o = r[n], a = o[0], l = o[1];
3217
3213
  if (t === l)
3218
- return o;
3214
+ return a;
3219
3215
  }
3220
3216
  return !1;
3221
3217
  }, e.prototype.toString = function(t) {
3222
3218
  var n = !!t;
3223
3219
  t = t ?? this.format;
3224
- var r = !1, a = this.a < 1 && this.a >= 0, o = !n && a && (t.startsWith("hex") || t === "name");
3225
- return o ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString());
3220
+ var r = !1, o = this.a < 1 && this.a >= 0, a = !n && o && (t.startsWith("hex") || t === "name");
3221
+ return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString());
3226
3222
  }, e.prototype.toNumber = function() {
3227
3223
  return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
3228
3224
  }, e.prototype.clone = function() {
@@ -3230,7 +3226,7 @@ var F = (
3230
3226
  }, e.prototype.lighten = function(t) {
3231
3227
  t === void 0 && (t = 10);
3232
3228
  var n = this.toHsl();
3233
- return n.l += t / 100, n.l = te(n.l), new e(n);
3229
+ return n.l += t / 100, n.l = Y(n.l), new e(n);
3234
3230
  }, e.prototype.brighten = function(t) {
3235
3231
  t === void 0 && (t = 10);
3236
3232
  var n = this.toRgb();
@@ -3238,7 +3234,7 @@ var F = (
3238
3234
  }, e.prototype.darken = function(t) {
3239
3235
  t === void 0 && (t = 10);
3240
3236
  var n = this.toHsl();
3241
- return n.l -= t / 100, n.l = te(n.l), new e(n);
3237
+ return n.l -= t / 100, n.l = Y(n.l), new e(n);
3242
3238
  }, e.prototype.tint = function(t) {
3243
3239
  return t === void 0 && (t = 10), this.mix("white", t);
3244
3240
  }, e.prototype.shade = function(t) {
@@ -3246,11 +3242,11 @@ var F = (
3246
3242
  }, e.prototype.desaturate = function(t) {
3247
3243
  t === void 0 && (t = 10);
3248
3244
  var n = this.toHsl();
3249
- return n.s -= t / 100, n.s = te(n.s), new e(n);
3245
+ return n.s -= t / 100, n.s = Y(n.s), new e(n);
3250
3246
  }, e.prototype.saturate = function(t) {
3251
3247
  t === void 0 && (t = 10);
3252
3248
  var n = this.toHsl();
3253
- return n.s += t / 100, n.s = te(n.s), new e(n);
3249
+ return n.s += t / 100, n.s = Y(n.s), new e(n);
3254
3250
  }, e.prototype.greyscale = function() {
3255
3251
  return this.desaturate(100);
3256
3252
  }, e.prototype.spin = function(t) {
@@ -3258,26 +3254,26 @@ var F = (
3258
3254
  return n.h = r < 0 ? 360 + r : r, new e(n);
3259
3255
  }, e.prototype.mix = function(t, n) {
3260
3256
  n === void 0 && (n = 50);
3261
- var r = this.toRgb(), a = new e(t).toRgb(), o = n / 100, l = {
3262
- r: (a.r - r.r) * o + r.r,
3263
- g: (a.g - r.g) * o + r.g,
3264
- b: (a.b - r.b) * o + r.b,
3265
- a: (a.a - r.a) * o + r.a
3257
+ var r = this.toRgb(), o = new e(t).toRgb(), a = n / 100, l = {
3258
+ r: (o.r - r.r) * a + r.r,
3259
+ g: (o.g - r.g) * a + r.g,
3260
+ b: (o.b - r.b) * a + r.b,
3261
+ a: (o.a - r.a) * a + r.a
3266
3262
  };
3267
3263
  return new e(l);
3268
3264
  }, e.prototype.analogous = function(t, n) {
3269
3265
  t === void 0 && (t = 6), n === void 0 && (n = 30);
3270
- var r = this.toHsl(), a = 360 / n, o = [this];
3271
- for (r.h = (r.h - (a * t >> 1) + 720) % 360; --t; )
3272
- r.h = (r.h + a) % 360, o.push(new e(r));
3273
- return o;
3266
+ var r = this.toHsl(), o = 360 / n, a = [this];
3267
+ for (r.h = (r.h - (o * t >> 1) + 720) % 360; --t; )
3268
+ r.h = (r.h + o) % 360, a.push(new e(r));
3269
+ return a;
3274
3270
  }, e.prototype.complement = function() {
3275
3271
  var t = this.toHsl();
3276
3272
  return t.h = (t.h + 180) % 360, new e(t);
3277
3273
  }, e.prototype.monochromatic = function(t) {
3278
3274
  t === void 0 && (t = 6);
3279
- for (var n = this.toHsv(), r = n.h, a = n.s, o = n.v, l = [], s = 1 / t; t--; )
3280
- l.push(new e({ h: r, s: a, v: o })), o = (o + s) % 1;
3275
+ for (var n = this.toHsv(), r = n.h, o = n.s, a = n.v, l = [], s = 1 / t; t--; )
3276
+ l.push(new e({ h: r, s: o, v: a })), a = (a + s) % 1;
3281
3277
  return l;
3282
3278
  }, e.prototype.splitcomplement = function() {
3283
3279
  var t = this.toHsl(), n = t.h;
@@ -3287,34 +3283,34 @@ var F = (
3287
3283
  new e({ h: (n + 216) % 360, s: t.s, l: t.l })
3288
3284
  ];
3289
3285
  }, e.prototype.onBackground = function(t) {
3290
- var n = this.toRgb(), r = new e(t).toRgb(), a = n.a + r.a * (1 - n.a);
3286
+ var n = this.toRgb(), r = new e(t).toRgb(), o = n.a + r.a * (1 - n.a);
3291
3287
  return new e({
3292
- r: (n.r * n.a + r.r * r.a * (1 - n.a)) / a,
3293
- g: (n.g * n.a + r.g * r.a * (1 - n.a)) / a,
3294
- b: (n.b * n.a + r.b * r.a * (1 - n.a)) / a,
3295
- a
3288
+ r: (n.r * n.a + r.r * r.a * (1 - n.a)) / o,
3289
+ g: (n.g * n.a + r.g * r.a * (1 - n.a)) / o,
3290
+ b: (n.b * n.a + r.b * r.a * (1 - n.a)) / o,
3291
+ a: o
3296
3292
  });
3297
3293
  }, e.prototype.triad = function() {
3298
3294
  return this.polyad(3);
3299
3295
  }, e.prototype.tetrad = function() {
3300
3296
  return this.polyad(4);
3301
3297
  }, e.prototype.polyad = function(t) {
3302
- for (var n = this.toHsl(), r = n.h, a = [this], o = 360 / t, l = 1; l < t; l++)
3303
- a.push(new e({ h: (r + l * o) % 360, s: n.s, l: n.l }));
3304
- return a;
3298
+ for (var n = this.toHsl(), r = n.h, o = [this], a = 360 / t, l = 1; l < t; l++)
3299
+ o.push(new e({ h: (r + l * a) % 360, s: n.s, l: n.l }));
3300
+ return o;
3305
3301
  }, e.prototype.equals = function(t) {
3306
3302
  return this.toRgbString() === new e(t).toRgbString();
3307
3303
  }, e;
3308
3304
  })()
3309
3305
  );
3310
- const Pe = new se("toConic", {
3306
+ const Ne = new oe("toConic", {
3311
3307
  "0%": {
3312
3308
  backgroundPosition: "0 0"
3313
3309
  },
3314
3310
  "100%": {
3315
3311
  backgroundPosition: "100% 50%"
3316
3312
  }
3317
- }), $i = new se("dockIconText", {
3313
+ }), Ei = new oe("dockIconText", {
3318
3314
  "0%": { display: "none", opacity: 0 },
3319
3315
  "80%": {
3320
3316
  overflow: "hidden"
@@ -3323,7 +3319,7 @@ const Pe = new se("toConic", {
3323
3319
  display: "unset",
3324
3320
  opacity: 1
3325
3321
  }
3326
- }), Oi = new se("dockZoomIn", {
3322
+ }), Bi = new oe("dockZoomIn", {
3327
3323
  "0%": {
3328
3324
  transform: "translateX(-50%) scale(0)",
3329
3325
  opacity: 0
@@ -3332,7 +3328,7 @@ const Pe = new se("toConic", {
3332
3328
  transform: "translateX(-50%) scale(1)",
3333
3329
  opacity: 1
3334
3330
  }
3335
- }), zi = new se("dockZoomOut", {
3331
+ }), $i = new oe("dockZoomOut", {
3336
3332
  "0%": {
3337
3333
  transform: "translateX(-50%) scale(1)"
3338
3334
  },
@@ -3340,7 +3336,7 @@ const Pe = new se("toConic", {
3340
3336
  transform: "translateX(-50%) scale(0)",
3341
3337
  opacity: 0
3342
3338
  }
3343
- }), We = (e) => e === 0 ? 0 : e - Math.sqrt(e ** 2 / 2), Fi = (e) => ({
3339
+ }), Pe = (e) => e === 0 ? 0 : e - Math.sqrt(e ** 2 / 2), Oi = (e) => ({
3344
3340
  [e.componentCls]: {
3345
3341
  "&-button": {
3346
3342
  border: "none",
@@ -3372,9 +3368,9 @@ const Pe = new se("toConic", {
3372
3368
  height: e.fontSizeSM / 2,
3373
3369
  background: e.colorError,
3374
3370
  borderRadius: "100%",
3375
- boxShadow: `0 0 0 ${q(e.lineWidth)} ${e.colorBorderBg}`,
3376
- top: We(e.controlHeightLG / 2),
3377
- insetInlineEnd: We(e.controlHeightLG / 2)
3371
+ boxShadow: `0 0 0 ${G(e.lineWidth)} ${e.colorBorderBg}`,
3372
+ top: Pe(e.controlHeightLG / 2),
3373
+ insetInlineEnd: Pe(e.controlHeightLG / 2)
3378
3374
  },
3379
3375
  [`${e.componentCls}-icon`]: {
3380
3376
  margin: "auto",
@@ -3385,8 +3381,8 @@ const Pe = new se("toConic", {
3385
3381
  }
3386
3382
  }
3387
3383
  }
3388
- }), Li = (e) => {
3389
- const t = new F(new F("rgb(0, 0, 0)").setAlpha(0.06).toRgbString()), n = new F(new F(e.colorBgBase).setAlpha(0.6).toRgbString());
3384
+ }), zi = (e) => {
3385
+ const t = new $(new $("rgb(0, 0, 0)").setAlpha(0.06).toRgbString()), n = new $(new $(e.colorBgBase).setAlpha(0.6).toRgbString());
3390
3386
  return {
3391
3387
  [e.componentCls]: {
3392
3388
  "&-dock": {
@@ -3404,7 +3400,7 @@ const Pe = new se("toConic", {
3404
3400
  borderRadius: e.controlHeight,
3405
3401
  backdropFilter: "blur(10px)",
3406
3402
  "&-zoom-appear, &-zoom-enter": {
3407
- animationName: Oi,
3403
+ animationName: Bi,
3408
3404
  opacity: 0,
3409
3405
  animationTimingFunction: e.motionEaseOutCirc,
3410
3406
  animationFillMode: "both",
@@ -3416,7 +3412,7 @@ const Pe = new se("toConic", {
3416
3412
  animationPlayState: "running"
3417
3413
  },
3418
3414
  "&-zoom-leave": {
3419
- animationName: zi,
3415
+ animationName: $i,
3420
3416
  animationDuration: e.motionDurationSlow,
3421
3417
  animationTimingFunction: e.motionEaseInOutCirc,
3422
3418
  animationFillMode: "both"
@@ -3432,13 +3428,13 @@ const Pe = new se("toConic", {
3432
3428
  animationTimingFunction: "cubic-bezier(.38,0,.24,1)",
3433
3429
  animationDuration: "0.5s",
3434
3430
  animationFillMode: "forwards",
3435
- animationName: Pe
3431
+ animationName: Ne
3436
3432
  },
3437
3433
  "&-active": {
3438
3434
  animationTimingFunction: "cubic-bezier(.38,0,.24,1)",
3439
3435
  animationDuration: "0.5s",
3440
3436
  animationFillMode: "forwards",
3441
- animationName: Pe
3437
+ animationName: Ne
3442
3438
  }
3443
3439
  },
3444
3440
  "&-icon": {
@@ -3454,7 +3450,7 @@ const Pe = new se("toConic", {
3454
3450
  color: e.colorTextSecondary,
3455
3451
  fontSize: e.fontSizeLG,
3456
3452
  "&-text": {
3457
- animationName: $i,
3453
+ animationName: Ei,
3458
3454
  animationDuration: ".4s",
3459
3455
  animationTimingFunction: "ease"
3460
3456
  }
@@ -3462,7 +3458,7 @@ const Pe = new se("toConic", {
3462
3458
  }
3463
3459
  }
3464
3460
  };
3465
- }, Di = (e) => ({
3461
+ }, Fi = (e) => ({
3466
3462
  [e.componentCls]: {
3467
3463
  "&-body-title": {
3468
3464
  margin: 0,
@@ -3571,8 +3567,8 @@ const Pe = new se("toConic", {
3571
3567
  }
3572
3568
  }
3573
3569
  }
3574
- }), Hi = (e) => {
3575
- const { dark: t } = ue(e);
3570
+ }), Li = (e) => {
3571
+ const { dark: t } = ae(e);
3576
3572
  return {
3577
3573
  [`${e.componentCls}-drawer`]: {
3578
3574
  "&-wrapper": {
@@ -3602,8 +3598,8 @@ const Pe = new se("toConic", {
3602
3598
  }
3603
3599
  }
3604
3600
  };
3605
- }, _i = (e) => {
3606
- const t = `${e.componentCls}`, n = new F(new F(e.colorWhite).setAlpha(0.55).toRgbString());
3601
+ }, Hi = (e) => {
3602
+ const t = `${e.componentCls}`, n = new $(new $(e.colorWhite).setAlpha(0.55).toRgbString());
3607
3603
  return {
3608
3604
  [t]: {
3609
3605
  "&-card": {
@@ -3614,7 +3610,7 @@ const Pe = new se("toConic", {
3614
3610
  [`${t}-card-content`]: {
3615
3611
  flex: 1,
3616
3612
  borderRadius: e.borderRadiusLG,
3617
- backgroundColor: J(e, e.colorBgContainer),
3613
+ backgroundColor: Z(e, e.colorBgContainer),
3618
3614
  padding: e.padding
3619
3615
  }
3620
3616
  },
@@ -3637,8 +3633,8 @@ const Pe = new se("toConic", {
3637
3633
  }
3638
3634
  }
3639
3635
  };
3640
- }, Ni = (e) => {
3641
- const t = `${e.componentCls}`, n = new F(new F(e.colorWhite).setAlpha(0.55).toRgbString());
3636
+ }, Di = (e) => {
3637
+ const t = `${e.componentCls}`, n = new $(new $(e.colorWhite).setAlpha(0.55).toRgbString());
3642
3638
  return {
3643
3639
  [t]: {
3644
3640
  "&-color-list": {
@@ -3669,7 +3665,7 @@ const Pe = new se("toConic", {
3669
3665
  padding: 4
3670
3666
  },
3671
3667
  "&-inner": {
3672
- backgroundColor: J(e, e.colorBgContainer),
3668
+ backgroundColor: Z(e, e.colorBgContainer),
3673
3669
  padding: "2px 2px 4px 2px",
3674
3670
  borderRadius: 7,
3675
3671
  maxHeight: "100%"
@@ -3707,15 +3703,15 @@ const Pe = new se("toConic", {
3707
3703
  }
3708
3704
  };
3709
3705
  };
3710
- function Pi(e) {
3706
+ function _i(e) {
3711
3707
  const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
3712
- let r = Object.keys(e).reduce((a, o) => (a[o] = !1, a), {});
3708
+ let r = Object.keys(e).reduce((o, a) => (o[a] = !1, o), {});
3713
3709
  return r = Se(r, t), e.layout === "mix" && (r.fixSiderbar = !0, r.fixedHeader = !0), e.layout === "top" && (r.fixSiderbar = !0, r.splitMenus = !0), e.layout === "side" && (r.splitMenus = !0), e.layout === "simple" && (r.splitMenus = !0, r.fixedHeader = !0, r.showTabsBar = !0, r.fixedTabsBar = !0), e.layout === "wide" && (r.splitMenus = !0, r.fixedHeader = !0, r.fixSiderbar = !0, r.showTabsBar = !0, r.fixedTabsBar = !0), r;
3714
3710
  }
3715
- function me(e) {
3711
+ function ve(e) {
3716
3712
  return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "top" && (e.fixSiderbar = !1, e.fixedHeader = !0, e.splitMenus = !1), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1, e.fixedHeader = !1, e.fixSiderbar = !1), e.layout === "side" && (e.splitMenus = !1, e.fixedHeader = !0, e.fixSiderbar = !0), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedTabsBar = !1), e;
3717
3713
  }
3718
- const G = (e, {
3714
+ const W = (e, {
3719
3715
  slots: t
3720
3716
  }) => i("div", {
3721
3717
  style: {
@@ -3723,117 +3719,105 @@ const G = (e, {
3723
3719
  }
3724
3720
  }, [i("h3", {
3725
3721
  class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
3726
- }, [e.title]), t.default?.()]), rr = /* @__PURE__ */ C({
3722
+ }, [e.title]), t.default?.()]), nr = /* @__PURE__ */ x({
3727
3723
  name: "ThemeEditor",
3728
3724
  inheritAttrs: !1,
3729
- props: dt,
3725
+ props: st,
3730
3726
  emits: ["update:open", "change", "changeSettingState", "changeThemeState"],
3731
3727
  setup(e) {
3732
- const n = H({
3728
+ const n = L({
3733
3729
  suffixCls: "theme-setting",
3734
3730
  isPor: !0
3735
- }), r = H({
3731
+ }), r = L({
3736
3732
  suffixCls: "theme-editor",
3737
3733
  isPor: !0
3738
3734
  }), {
3739
- wrapSSR: a,
3740
- hashId: o
3741
- } = oe("ProThemeEditor", [Di, Hi, Fi, Li, Ni, _i], r), l = Ye(n, {}), s = ce(), [c, u] = D(!1), [g, p] = D(!1), [x, B] = D("theme");
3742
- Object.keys(l.value).length && e.onChangeSettingState?.(me({
3743
- ...O(l.value)
3735
+ wrapSSR: o,
3736
+ hashId: a
3737
+ } = re("ProThemeEditor", [Fi, Li, Oi, zi, Di, Hi], r), l = Ze(n, {}), s = le(), {
3738
+ theme: h,
3739
+ setTheme: u
3740
+ } = qe(), [g, p] = z(!1), [y, w] = z(!1), [M, A] = z("setting");
3741
+ Object.keys(l.value).length && e.onChangeSettingState?.(ve({
3742
+ ...E(l.value)
3744
3743
  }));
3745
- const A = R(() => ({
3744
+ const C = F(() => ({
3746
3745
  progress: !!e.extraSettingState?.progress,
3747
3746
  colorWeak: !!e.extraSettingState?.colorWeak
3748
- })), T = R(() => Pi({
3749
- ...O(s.settings.value),
3750
- ...O(A.value)
3747
+ })), f = F(() => _i({
3748
+ ...E(s.settings.value),
3749
+ ...E(C.value)
3751
3750
  }));
3752
- K(() => e.open, (f) => {
3753
- f && (x.value === "theme" ? p(f) : u(f));
3754
- }), K([() => c.value, () => g.value], () => {
3755
- e.onChange && e.onChange(c.value || g.value), e?.["onUpdate:open"]?.(c.value || g.value);
3756
- });
3757
- const {
3758
- dark: S,
3759
- isDark: h,
3760
- toggleMode: v
3761
- } = Ve(R(() => s?.dark?.value), {
3762
- change: (f) => {
3763
- s?.onDarkChange?.(f);
3764
- }
3751
+ j(() => e.open, (d) => {
3752
+ d && (M.value === "theme" ? w(d) : p(d));
3753
+ }), j([() => g.value, () => y.value], () => {
3754
+ e.onChange && e.onChange(g.value || y.value), e?.["onUpdate:open"]?.(g.value || y.value);
3765
3755
  });
3766
- function m(f) {
3767
- p(!f), u(f);
3756
+ function v(d) {
3757
+ w(!d), p(d);
3768
3758
  }
3769
- function k(f) {
3770
- p(f), u(!f);
3759
+ function m(d) {
3760
+ w(d), p(!d);
3771
3761
  }
3772
- const Z = (f, P) => Ze({
3773
- event: f,
3774
- isDark: h,
3775
- toggle: v,
3776
- value: P
3777
- }), y = (f) => {
3778
- Z(null, f === "system" ? f : f === "dark");
3779
- };
3780
- function N(f) {
3781
- e.onChangeSettingState?.(f), ie(() => {
3782
- s && (l.value = me(Me(ze(l.value), {
3783
- ...O(s.settings.value),
3784
- ...O(A.value)
3762
+ function k(d) {
3763
+ e.onChangeSettingState?.(d), te(() => {
3764
+ s && (l.value = ve(Me(Oe(l.value), {
3765
+ ...E(s.settings.value),
3766
+ ...E(C.value)
3785
3767
  })));
3786
3768
  });
3787
3769
  }
3788
- function E(f) {
3789
- e.onChangeSettingState?.(f), ie(() => {
3790
- s && (l.value = me(Me(ze(l.value), {
3791
- ...O(s.settings.value),
3792
- ...O(A.value),
3793
- ...O(f)
3770
+ function q(d) {
3771
+ e.onChangeSettingState?.(d), te(() => {
3772
+ s && (l.value = ve(Me(Oe(l.value), {
3773
+ ...E(s.settings.value),
3774
+ ...E(C.value),
3775
+ ...E(d)
3794
3776
  })));
3795
3777
  });
3796
3778
  }
3797
- return ii({
3798
- hashId: o,
3779
+ return ti({
3780
+ hashId: a,
3799
3781
  prefixCls: r,
3800
3782
  drawerClass: `${r}-drawer`
3801
- }), () => a(i("div", {
3802
- class: d(o.value, r)
3803
- }, [i(yi, {
3804
- type: x.value,
3805
- open: c.value || g.value,
3806
- onTypeChange: (f) => {
3807
- B(f), f === "setting" ? m(!0) : f === "theme" && k(!0);
3783
+ }), () => o(i("div", {
3784
+ class: c(a.value, r)
3785
+ }, [i(mi, {
3786
+ type: M.value,
3787
+ open: g.value || y.value,
3788
+ onTypeChange: (d) => {
3789
+ A(d), d === "setting" ? v(!0) : d === "theme" && m(!0);
3808
3790
  },
3809
- onOpenChange: (f) => {
3810
- x.value === "setting" ? m(f) : x.value === "theme" && k(f);
3791
+ onOpenChange: (d) => {
3792
+ M.value === "setting" ? v(d) : M.value === "theme" && m(d);
3811
3793
  },
3812
3794
  onClose: () => {
3813
- u(!1), p(!1);
3795
+ p(!1), w(!1);
3814
3796
  }
3815
- }, null), i(ui, _({
3816
- width: 348,
3817
- dark: S.value,
3818
- open: c.value,
3819
- disabled: T.value
3820
- }, Se(e, si), {
3821
- onChangeDark: y,
3822
- onChangeConfig: N,
3823
- onOpenChange: (f) => u(!!f),
3824
- onChangeExtraConfig: E
3825
- }), null), i(bi, {
3797
+ }, null), i(li, H({
3826
3798
  width: 348,
3799
+ theme: h.value,
3827
3800
  open: g.value,
3828
- onChange: (f) => e.onChangeThemeState?.(f),
3829
- onOpenChange: (f) => p(!!f)
3801
+ disabled: f.value
3802
+ }, Se(e, ai), {
3803
+ onChangeTheme: (d) => {
3804
+ u(d);
3805
+ },
3806
+ onChangeConfig: k,
3807
+ onOpenChange: (d) => p(!!d),
3808
+ onChangeExtraConfig: q
3809
+ }), null), i(vi, {
3810
+ width: 348,
3811
+ open: y.value,
3812
+ onChange: (d) => e.onChangeThemeState?.(d),
3813
+ onOpenChange: (d) => w(!!d)
3830
3814
  }, null)]));
3831
3815
  }
3832
3816
  });
3833
3817
  export {
3834
- nr as A,
3835
- Sn as D,
3836
- ir as G,
3837
- rr as T,
3838
- Xn as g
3818
+ er as A,
3819
+ xn as D,
3820
+ tr as G,
3821
+ nr as T,
3822
+ jn as g
3839
3823
  };