@chewel611/naive-ui-plus 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Q, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as ot, NLayoutHeader as nt, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as it, zhCN as ct, NDialogProvider as dt, NNotificationProvider as ut, NMessageProvider as ft, NText as pt, NEmpty as gt, NSpin as ht, NResult as ke } from "naive-ui";
2
- import { defineComponent as A, ref as O, computed as U, unref as a, onMounted as X, openBlock as y, createBlock as $, withCtx as s, createElementVNode as b, createElementBlock as N, renderSlot as F, createCommentVNode as B, createVNode as i, normalizeStyle as ue, createTextVNode as Y, h as z, toRaw as Z, reactive as Ce, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as oe, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as yt, useCssVars as bt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
3
- import { PlusSquareOutlined as Ct, DeleteOutlined as xt, ReloadOutlined as xe, MoreOutlined as St, MenuUnfoldOutlined as Lt, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
1
+ import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Z, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as nt, NLayoutHeader as ot, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as it, zhCN as ct, NDialogProvider as ut, NNotificationProvider as dt, NMessageProvider as ft, NText as gt, NEmpty as pt, NSpin as ht, NResult as ke } from "naive-ui";
2
+ import { defineComponent as I, ref as T, computed as j, unref as a, onMounted as Q, openBlock as v, createBlock as $, withCtx as i, createElementVNode as w, createElementBlock as N, renderSlot as F, createCommentVNode as A, createVNode as c, normalizeStyle as de, createTextVNode as Y, h as B, toRaw as J, reactive as Ce, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as ne, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as yt, useCssVars as bt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
3
+ import { PlusSquareOutlined as Ct, DeleteOutlined as Lt, ReloadOutlined as Le, MoreOutlined as xt, MenuUnfoldOutlined as St, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
4
4
  import { cloneDeep as At } from "lodash";
5
- import { defineStore as Se } from "pinia";
6
- import { useRouter as ne, useRoute as le } from "vue-router";
5
+ import { defineStore as xe } from "pinia";
6
+ import { useRouter as oe, useRoute as le } from "vue-router";
7
7
  import It from "element-resize-detector";
8
8
  import zt from "vuedraggable";
9
9
  const We = (t) => {
10
- Object.keys(t).forEach((r) => {
11
- const d = t[r];
12
- Array.isArray(d) ? t[r] = [] : d !== null && typeof d == "object" ? We(d) : t[r] = void 0;
10
+ Object.keys(t).forEach((l) => {
11
+ const d = t[l];
12
+ Array.isArray(d) ? t[l] = [] : d !== null && typeof d == "object" ? We(d) : t[l] = void 0;
13
13
  });
14
14
  }, Bt = { id: "data-content" }, Wt = {
15
15
  key: 0,
16
16
  class: "rounded-lg bg-gray-50 flex flex-row gap-2 items-center justify-end p-5 mb-5"
17
- }, Ht = { key: 1 }, jt = { key: 2 }, Ut = /* @__PURE__ */ A({
17
+ }, Ht = { key: 1 }, Ut = { key: 2 }, jt = /* @__PURE__ */ I({
18
18
  __name: "PTable",
19
19
  props: {
20
20
  idField: { default: "id" },
@@ -31,141 +31,141 @@ const We = (t) => {
31
31
  onSave: {},
32
32
  onDelete: {}
33
33
  },
34
- setup(t, { expose: r }) {
35
- const d = O(null), h = Me(), g = fe(), c = O(!1), x = O([]), w = O([]), m = O(null), T = O(!1), p = O(!1), v = O(!1), u = O({}), S = O({
34
+ setup(t, { expose: l }) {
35
+ const d = T(null), h = Me(), p = fe(), f = T(!1), C = T([]), y = T([]), S = T(null), O = T(!1), s = T(!1), m = T(!1), u = T({}), L = T({
36
36
  page: 1,
37
37
  itemCount: 0,
38
38
  pageSize: 10,
39
39
  pageSizes: [10, 20, 30, 50],
40
40
  showSizePicker: !0,
41
- onChange: async (f) => {
42
- S.value.page = f, await j();
41
+ onChange: async (g) => {
42
+ L.value.page = g, await U();
43
43
  },
44
- onUpdatePageSize: async (f) => {
45
- S.value.pageSize = f, await j();
44
+ onUpdatePageSize: async (g) => {
45
+ L.value.pageSize = g, await U();
46
46
  }
47
- }), o = t, P = (f) => {
48
- const e = (n) => {
49
- const l = [];
50
- return f && f.forEach((C) => {
51
- C.key !== "edit" && C.key !== "delete" && l.push({
52
- label: C.name,
53
- key: C.key,
54
- props: { onClick: () => C.action(n) }
47
+ }), n = t, b = (g) => {
48
+ const e = (o) => {
49
+ const r = [];
50
+ return g && g.forEach((k) => {
51
+ k.key !== "edit" && k.key !== "delete" && r.push({
52
+ label: k.name,
53
+ key: k.key,
54
+ props: { onClick: () => k.action(o) }
55
55
  });
56
- }), l;
56
+ }), r;
57
57
  };
58
58
  return {
59
59
  title: "操作",
60
60
  key: "actions",
61
61
  width: 100,
62
62
  fixed: "right",
63
- render: (n) => {
64
- let l = [];
65
- if (o.hiddenEdit || l.push({
63
+ render: (o) => {
64
+ let r = [];
65
+ if (n.hiddenEdit || r.push({
66
66
  label: "编辑",
67
67
  key: "edit",
68
- props: { onClick: () => pe(n) }
69
- }), o.hiddenDelete || l.push({
68
+ props: { onClick: () => ge(o) }
69
+ }), n.hiddenDelete || r.push({
70
70
  label: "删除",
71
71
  key: "delete",
72
- props: { onClick: () => I(n) }
73
- }), l = [...l, ...e(n)], !(l.length <= 0))
74
- return z(
75
- Q,
72
+ props: { onClick: () => z(o) }
73
+ }), r = [...r, ...e(o)], !(r.length <= 0))
74
+ return B(
75
+ Z,
76
76
  {
77
- options: l,
77
+ options: r,
78
78
  placement: "bottom-start"
79
79
  },
80
80
  {
81
- default: () => z(
81
+ default: () => B(
82
82
  K,
83
83
  { size: "small", type: "primary" },
84
- { default: () => ["操作", z(M, () => z(St))] }
84
+ { default: () => ["操作", B(M, () => B(xt))] }
85
85
  )
86
86
  }
87
87
  );
88
88
  }
89
89
  };
90
- }, _ = U(() => {
91
- const f = o.columns.filter((n) => n.key != "action").map((n) => ({
92
- title: n.title,
93
- key: n.key,
94
- width: n.width,
95
- fixed: n.fixed ?? !1,
96
- render: n.render,
97
- ellipsis: n.ellipsis ? { tooltip: !0 } : !1
98
- })), e = o.columns.reduce(
99
- (n, l) => l.key === "action" ? l : n,
90
+ }, _ = j(() => {
91
+ const g = n.columns.filter((o) => o.key != "action").map((o) => ({
92
+ title: o.title,
93
+ key: o.key,
94
+ width: o.width,
95
+ fixed: o.fixed ?? !1,
96
+ render: o.render,
97
+ ellipsis: o.ellipsis ? { tooltip: !0 } : !1
98
+ })), e = n.columns.reduce(
99
+ (o, r) => r.key === "action" ? r : o,
100
100
  void 0
101
101
  )?.action;
102
- return e && e?.length > 0 || !o.hiddenDelete || !o.hiddenEdit ? [
102
+ return e && e?.length > 0 || !n.hiddenDelete || !n.hiddenEdit ? [
103
103
  { type: "selection", fixed: "left" },
104
- ...f,
105
- P(e)
106
- ] : [{ type: "selection", fixed: "left" }, ...f];
107
- }), k = async () => {
108
- await j();
109
- }, I = (f) => {
110
- L([f]);
104
+ ...g,
105
+ b(e)
106
+ ] : [{ type: "selection", fixed: "left" }, ...g];
107
+ }), P = async () => {
108
+ await U();
109
+ }, z = (g) => {
110
+ x([g]);
111
111
  }, E = () => {
112
- const f = J();
113
- L(f);
114
- }, L = (f) => {
115
- f && f.length > 0 && h.warning({
112
+ const g = G();
113
+ x(g);
114
+ }, x = (g) => {
115
+ g && g.length > 0 && h.warning({
116
116
  title: "警告",
117
117
  content: "删除数据不可恢复, 确认删除吗?",
118
118
  positiveText: "确定",
119
119
  negativeText: "取消",
120
120
  onPositiveClick: async () => {
121
- if (o.onDelete)
121
+ if (n.onDelete)
122
122
  try {
123
- await o.onDelete(f) ? (j(), g.success("删除成功")) : g.error("删除失败");
123
+ await n.onDelete(g) ? (U(), p.success("删除成功")) : p.error("删除失败");
124
124
  } catch (e) {
125
- g.error(e.message);
125
+ p.error(e.message);
126
126
  }
127
127
  }
128
128
  });
129
129
  }, ee = () => {
130
- m.value = null, ie();
131
- }, pe = async (f) => {
132
- m.value = At(f), ie(m.value, async () => {
133
- o.onGet && (m.value = await o.onGet(f[o.idField])), Object.assign(o.item, m.value);
130
+ S.value = null, ie();
131
+ }, ge = async (g) => {
132
+ S.value = At(g), ie(S.value, async () => {
133
+ n.onGet && (S.value = await n.onGet(g[n.idField])), Object.assign(n.item, S.value);
134
134
  });
135
135
  }, re = async () => {
136
- if (o.onSave)
136
+ if (n.onSave)
137
137
  try {
138
- v.value = !0, (T.value ? await o.onSave(void 0, Z(o.item)) : await o.onSave(m.value[o.idField], Z(o.item))) && (G(), await j());
139
- } catch (f) {
140
- g.error(f.message);
138
+ m.value = !0, (O.value ? await n.onSave(void 0, J(n.item)) : await n.onSave(S.value[n.idField], J(n.item))) && (X(), await U());
139
+ } catch (g) {
140
+ p.error(g.message);
141
141
  } finally {
142
- v.value = !1;
142
+ m.value = !1;
143
143
  }
144
- }, ie = async (f, e) => {
145
- o.onOpenModal?.(f), await e?.(), f ? (T.value = !1, p.value = !0) : (p.value = !1, T.value = !0);
146
- }, G = () => {
147
- m.value = null, We(o.item), Object.assign(o.item, { ...Z(u.value) }), o.onCloseModal?.(o.item), T.value = !1, p.value = !1;
148
- }, J = () => x.value ? w.value.filter((e) => x.value.includes(e.id)).map((e) => Z(e)) : [], ge = () => J()[0], he = () => Z(w.value), j = async () => {
149
- if (!c.value) {
150
- c.value = !0;
144
+ }, ie = async (g, e) => {
145
+ n.onOpenModal?.(g), await e?.(), g ? (O.value = !1, s.value = !0) : (s.value = !1, O.value = !0);
146
+ }, X = () => {
147
+ S.value = null, We(n.item), Object.assign(n.item, { ...J(u.value) }), n.onCloseModal?.(n.item), O.value = !1, s.value = !1;
148
+ }, G = () => C.value ? y.value.filter((e) => C.value.includes(e.id)).map((e) => J(e)) : [], pe = () => G()[0], he = () => J(y.value), U = async () => {
149
+ if (!f.value) {
150
+ f.value = !0;
151
151
  try {
152
- if (o.onLoad) {
153
- var { data: f, total: e } = await o.onLoad(
154
- S.value.page,
155
- S.value.pageSize
152
+ if (n.onLoad) {
153
+ var { data: g, total: e } = await n.onLoad(
154
+ L.value.page,
155
+ L.value.pageSize
156
156
  );
157
- w.value = f, S.value.itemCount = e;
157
+ y.value = g, L.value.itemCount = e;
158
158
  }
159
- } catch (n) {
160
- g.error(n.message);
159
+ } catch (o) {
160
+ p.error(o.message);
161
161
  } finally {
162
- c.value = !1;
162
+ f.value = !1;
163
163
  }
164
164
  }
165
- }, me = U(() => {
166
- const f = a(d);
167
- if (!f) return;
168
- const e = f?.$el, n = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: l } = te(n), C = 64;
165
+ }, me = j(() => {
166
+ const g = a(d);
167
+ if (!g) return;
168
+ const e = g?.$el, o = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: r } = te(o), k = 64;
169
169
  let R = 2, D = 24;
170
170
  const V = e.querySelector(
171
171
  ".n-data-table__pagination"
@@ -175,154 +175,154 @@ const We = (t) => {
175
175
  R += _e || 0;
176
176
  } else
177
177
  R += 28;
178
- return l - (C + R + D);
179
- }), ce = (f) => !f || !f.getBoundingClientRect ? 0 : f.getBoundingClientRect(), te = (f) => {
180
- const e = document.documentElement, n = e.scrollLeft, l = e.scrollTop, C = e.clientLeft, R = e.clientTop, D = window.pageXOffset, V = window.pageYOffset, de = ce(f), {
178
+ return r - (k + R + D);
179
+ }), ce = (g) => !g || !g.getBoundingClientRect ? 0 : g.getBoundingClientRect(), te = (g) => {
180
+ const e = document.documentElement, o = e.scrollLeft, r = e.scrollTop, k = e.clientLeft, R = e.clientTop, D = window.pageXOffset, V = window.pageYOffset, ue = ce(g), {
181
181
  left: _e,
182
- top: je,
183
- width: Ue,
182
+ top: Ue,
183
+ width: je,
184
184
  height: Fe
185
- } = de, qe = (D || n) - (C || 0), Ve = (V || l) - (R || 0), Ke = _e + D, Ye = je + V, ye = Ke - qe, be = Ye - Ve, Le = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
185
+ } = ue, qe = (D || o) - (k || 0), Ve = (V || r) - (R || 0), Ke = _e + D, Ye = Ue + V, ye = Ke - qe, be = Ye - Ve, Se = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
186
186
  return {
187
187
  left: ye,
188
188
  top: be,
189
- right: Le - Ue - ye,
189
+ right: Se - je - ye,
190
190
  bottom: Te - Fe - be,
191
- rightIncludeBody: Le - ye,
191
+ rightIncludeBody: Se - ye,
192
192
  bottomIncludeBody: Te - be
193
193
  };
194
194
  }, ve = () => {
195
- u.value = { ...Z(o.item) };
195
+ u.value = { ...J(n.item) };
196
196
  };
197
- return X(async () => {
198
- ve(), await j();
199
- }), r({
197
+ return Q(async () => {
198
+ ve(), await U();
199
+ }), l({
200
200
  getData: he,
201
- getSelectedRow: ge,
202
- getSelectedRows: J,
203
- closeModal: G,
204
- refreshData: j,
201
+ getSelectedRow: pe,
202
+ getSelectedRows: G,
203
+ closeModal: X,
204
+ refreshData: U,
205
205
  resetPage: () => {
206
- S.value.page = 1;
206
+ L.value.page = 1;
207
207
  }
208
- }), (f, e) => {
209
- const n = De, l = Ge, C = Ne, R = Re;
210
- return y(), $(a(Xe), {
208
+ }), (g, e) => {
209
+ const o = De, r = Ge, k = Ne, R = Re;
210
+ return v(), $(a(Xe), {
211
211
  title: " ",
212
212
  "header-class": "p-4",
213
213
  "content-class": "pl-4 pr-4",
214
214
  bordered: !1
215
215
  }, {
216
- "header-extra": s(() => [
217
- t.hiddenAdd ? B("", !0) : (y(), $(n, {
216
+ "header-extra": i(() => [
217
+ t.hiddenAdd ? A("", !0) : (v(), $(o, {
218
218
  key: 0,
219
219
  trigger: "hover"
220
220
  }, {
221
- trigger: s(() => [
222
- i(a(M), {
221
+ trigger: i(() => [
222
+ c(a(M), {
223
223
  size: "18",
224
224
  class: "mr-1 cursor-pointer hover:text-blue-600",
225
225
  onClick: ee
226
226
  }, {
227
- default: s(() => [
228
- i(a(Ct))
227
+ default: i(() => [
228
+ c(a(Ct))
229
229
  ]),
230
230
  _: 1
231
231
  })
232
232
  ]),
233
- default: s(() => [
234
- e[3] || (e[3] = b("span", null, "新增", -1))
233
+ default: i(() => [
234
+ e[3] || (e[3] = w("span", null, "新增", -1))
235
235
  ]),
236
236
  _: 1
237
237
  })),
238
- t.hiddenDelete ? B("", !0) : (y(), $(n, {
238
+ t.hiddenDelete ? A("", !0) : (v(), $(o, {
239
239
  key: 1,
240
240
  trigger: "hover"
241
241
  }, {
242
- trigger: s(() => [
243
- i(a(M), {
242
+ trigger: i(() => [
243
+ c(a(M), {
244
244
  size: "18",
245
245
  class: "mr-1 cursor-pointer hover:text-blue-600",
246
246
  onClick: E
247
247
  }, {
248
- default: s(() => [
249
- i(a(xt))
248
+ default: i(() => [
249
+ c(a(Lt))
250
250
  ]),
251
251
  _: 1
252
252
  })
253
253
  ]),
254
- default: s(() => [
255
- e[4] || (e[4] = b("span", null, "删除", -1))
254
+ default: i(() => [
255
+ e[4] || (e[4] = w("span", null, "删除", -1))
256
256
  ]),
257
257
  _: 1
258
258
  })),
259
- i(n, { trigger: "hover" }, {
260
- trigger: s(() => [
261
- i(a(M), {
259
+ c(o, { trigger: "hover" }, {
260
+ trigger: i(() => [
261
+ c(a(M), {
262
262
  size: "18",
263
263
  class: "cursor-pointer hover:text-blue-600",
264
- onClick: k
264
+ onClick: P
265
265
  }, {
266
- default: s(() => [
267
- i(a(xe))
266
+ default: i(() => [
267
+ c(a(Le))
268
268
  ]),
269
269
  _: 1
270
270
  })
271
271
  ]),
272
- default: s(() => [
273
- e[5] || (e[5] = b("span", null, "刷新", -1))
272
+ default: i(() => [
273
+ e[5] || (e[5] = w("span", null, "刷新", -1))
274
274
  ]),
275
275
  _: 1
276
276
  })
277
277
  ]),
278
- default: s(() => [
279
- b("div", Bt, [
280
- f.$slots.toolbar ? (y(), N("div", Wt, [
281
- F(f.$slots, "toolbar")
282
- ])) : B("", !0),
283
- i(l, {
278
+ default: i(() => [
279
+ w("div", Bt, [
280
+ g.$slots.toolbar ? (v(), N("div", Wt, [
281
+ F(g.$slots, "toolbar")
282
+ ])) : A("", !0),
283
+ c(r, {
284
284
  remote: "",
285
285
  ref_key: "$table",
286
286
  ref: d,
287
- "checked-row-keys": x.value,
288
- "onUpdate:checkedRowKeys": e[0] || (e[0] = (D) => x.value = D),
287
+ "checked-row-keys": C.value,
288
+ "onUpdate:checkedRowKeys": e[0] || (e[0] = (D) => C.value = D),
289
289
  "max-height": me.value,
290
- loading: c.value,
290
+ loading: f.value,
291
291
  bordered: !1,
292
292
  "single-line": !1,
293
293
  columns: _.value,
294
- data: w.value,
295
- pagination: S.value,
294
+ data: y.value,
295
+ pagination: L.value,
296
296
  "row-key": (D) => D[t.idField]
297
297
  }, null, 8, ["checked-row-keys", "max-height", "loading", "columns", "data", "pagination", "row-key"]),
298
- f.$slots.addModal ? (y(), N("div", Ht, [
299
- i(R, {
298
+ g.$slots.addModal ? (v(), N("div", Ht, [
299
+ c(R, {
300
300
  title: "新增",
301
301
  preset: "card",
302
- show: T.value,
303
- "onUpdate:show": e[1] || (e[1] = (D) => T.value = D),
302
+ show: O.value,
303
+ "onUpdate:show": e[1] || (e[1] = (D) => O.value = D),
304
304
  "header-class": "bg-gray-50",
305
305
  closable: !1,
306
306
  "close-on-esc": !1,
307
307
  "mask-closable": !1,
308
308
  draggable: !0,
309
- style: ue({ width: `${t.modalWidth}px` })
309
+ style: de({ width: `${t.modalWidth}px` })
310
310
  }, {
311
- action: s(() => [
312
- i(C, { justify: "end" }, {
313
- default: s(() => [
314
- i(a(K), {
311
+ action: i(() => [
312
+ c(k, { justify: "end" }, {
313
+ default: i(() => [
314
+ c(a(K), {
315
315
  type: "primary",
316
- loading: v.value,
316
+ loading: m.value,
317
317
  onClick: re
318
318
  }, {
319
- default: s(() => [...e[6] || (e[6] = [
319
+ default: i(() => [...e[6] || (e[6] = [
320
320
  Y("保存", -1)
321
321
  ])]),
322
322
  _: 1
323
323
  }, 8, ["loading"]),
324
- i(a(K), { onClick: G }, {
325
- default: s(() => [...e[7] || (e[7] = [
324
+ c(a(K), { onClick: X }, {
325
+ default: i(() => [...e[7] || (e[7] = [
326
326
  Y("取消", -1)
327
327
  ])]),
328
328
  _: 1
@@ -331,40 +331,40 @@ const We = (t) => {
331
331
  _: 1
332
332
  })
333
333
  ]),
334
- default: s(() => [
335
- F(f.$slots, "addModal")
334
+ default: i(() => [
335
+ F(g.$slots, "addModal")
336
336
  ]),
337
337
  _: 3
338
338
  }, 8, ["show", "style"])
339
- ])) : B("", !0),
340
- f.$slots.editModal ? (y(), N("div", jt, [
341
- i(R, {
339
+ ])) : A("", !0),
340
+ g.$slots.editModal ? (v(), N("div", Ut, [
341
+ c(R, {
342
342
  title: "编辑",
343
- show: p.value,
344
- "onUpdate:show": e[2] || (e[2] = (D) => p.value = D),
343
+ show: s.value,
344
+ "onUpdate:show": e[2] || (e[2] = (D) => s.value = D),
345
345
  preset: "card",
346
346
  "header-class": "bg-gray-50",
347
347
  closable: !1,
348
348
  "close-on-esc": !1,
349
349
  "mask-closable": !1,
350
350
  draggable: !0,
351
- style: ue({ width: `${t.modalWidth}px` })
351
+ style: de({ width: `${t.modalWidth}px` })
352
352
  }, {
353
- action: s(() => [
354
- i(C, { justify: "end" }, {
355
- default: s(() => [
356
- i(a(K), {
353
+ action: i(() => [
354
+ c(k, { justify: "end" }, {
355
+ default: i(() => [
356
+ c(a(K), {
357
357
  type: "primary",
358
- loading: v.value,
358
+ loading: m.value,
359
359
  onClick: re
360
360
  }, {
361
- default: s(() => [...e[8] || (e[8] = [
361
+ default: i(() => [...e[8] || (e[8] = [
362
362
  Y("保存", -1)
363
363
  ])]),
364
364
  _: 1
365
365
  }, 8, ["loading"]),
366
- i(a(K), { onClick: G }, {
367
- default: s(() => [...e[9] || (e[9] = [
366
+ c(a(K), { onClick: X }, {
367
+ default: i(() => [...e[9] || (e[9] = [
368
368
  Y("取消", -1)
369
369
  ])]),
370
370
  _: 1
@@ -373,12 +373,12 @@ const We = (t) => {
373
373
  _: 1
374
374
  })
375
375
  ]),
376
- default: s(() => [
377
- F(f.$slots, "editModal")
376
+ default: i(() => [
377
+ F(g.$slots, "editModal")
378
378
  ]),
379
379
  _: 3
380
380
  }, 8, ["show", "style"])
381
- ])) : B("", !0)
381
+ ])) : A("", !0)
382
382
  ])
383
383
  ]),
384
384
  _: 3
@@ -386,11 +386,11 @@ const We = (t) => {
386
386
  };
387
387
  }
388
388
  }), W = (t) => {
389
- const r = t;
390
- return r.install = function(d) {
391
- d.component(r.__name, t);
389
+ const l = t;
390
+ return l.install = function(d) {
391
+ d.component(l.__name, t);
392
392
  }, t;
393
- }, Ft = W(Ut), qt = ["Redirect", "RedirectSon", "login"], se = Se("p-layout", () => {
393
+ }, Ft = W(jt), qt = ["Redirect", "RedirectSon", "login"], se = xe("p-layout", () => {
394
394
  const t = Ce({
395
395
  collapsed: !1,
396
396
  title: "输入项目名称",
@@ -399,178 +399,175 @@ const We = (t) => {
399
399
  uid: "",
400
400
  uname: "",
401
401
  tabs: [],
402
- cacheTabs: !1
402
+ cacheTabs: !1,
403
+ enableLanguage: !1
403
404
  });
404
405
  return {
405
406
  state: t,
406
- initTabs: (o) => {
407
- o.sort((P, _) => (_.meta.affix ? 1 : 0) - (P.meta.affix ? 1 : 0)), t.tabs = o;
407
+ initTabs: (n) => {
408
+ n.sort((b, _) => (_.meta.affix ? 1 : 0) - (b.meta.affix ? 1 : 0)), t.tabs = n;
408
409
  },
409
- addTab: (o) => qt.includes(o.name) ? !1 : (t.tabs?.some(
410
- (_) => _.fullPath == o.fullPath
411
- ) || t.tabs?.push(o), !0),
412
- closeCurrentTab: (o) => {
413
- const P = t.tabs.findIndex(
414
- (_) => _.fullPath == o.fullPath
410
+ addTab: (n) => qt.includes(n.name) ? !1 : (t.tabs?.some(
411
+ (_) => _.fullPath == n.fullPath
412
+ ) || t.tabs?.push(n), !0),
413
+ closeCurrentTab: (n) => {
414
+ const b = t.tabs.findIndex(
415
+ (_) => _.fullPath == n.fullPath
415
416
  );
416
- t.tabs.splice(P, 1);
417
+ t.tabs.splice(b, 1);
417
418
  },
418
419
  closeAllTabs: () => {
419
- t.tabs = t.tabs.filter((o) => o?.meta?.affix ?? !1);
420
+ t.tabs = t.tabs.filter((n) => n?.meta?.affix ?? !1);
420
421
  },
421
- closeOtherTabs: (o) => {
422
+ closeOtherTabs: (n) => {
422
423
  t.tabs = t.tabs.filter(
423
- (P) => P.fullPath == o.fullPath || (P?.meta?.affix ?? !1)
424
+ (b) => b.fullPath == n.fullPath || (b?.meta?.affix ?? !1)
424
425
  );
425
426
  },
426
- closeLeftTabs: (o) => {
427
- const P = t.tabs.findIndex(
428
- (_) => _.fullPath == o.fullPath
427
+ closeLeftTabs: (n) => {
428
+ const b = t.tabs.findIndex(
429
+ (_) => _.fullPath == n.fullPath
429
430
  );
430
431
  t.tabs = t.tabs.filter(
431
- (_, k) => k >= P || (_?.meta?.affix ?? !1)
432
+ (_, P) => P >= b || (_?.meta?.affix ?? !1)
432
433
  );
433
434
  },
434
- closeRightTabs: (o) => {
435
- const P = t.tabs.findIndex(
436
- (_) => _.fullPath == o.fullPath
435
+ closeRightTabs: (n) => {
436
+ const b = t.tabs.findIndex(
437
+ (_) => _.fullPath == n.fullPath
437
438
  );
438
439
  t.tabs = t.tabs.filter(
439
- (_, k) => k <= P || (_?.meta?.affix ?? !1)
440
+ (_, P) => P <= b || (_?.meta?.affix ?? !1)
440
441
  );
441
442
  },
442
443
  collapse: () => {
443
444
  t.collapsed = !t.collapsed;
444
445
  },
445
- setTitle: (o) => {
446
- t.title = o;
446
+ setTitle: (n) => {
447
+ t.title = n;
447
448
  },
448
- setLogo: (o) => {
449
- t.logo = o;
449
+ setLogo: (n) => {
450
+ t.logo = n;
450
451
  },
451
- setUser: (o, P) => {
452
- t.uid = o, t.uname = P;
452
+ setUser: (n, b) => {
453
+ t.uid = n, t.uname = b;
453
454
  },
454
- setSettingPages: (o) => {
455
- t.settingPages = o;
455
+ setSettingPages: (n) => {
456
+ t.settingPages = n;
456
457
  },
457
- setLogout: (o) => {
458
- t.logout = o;
458
+ setLogout: (n) => {
459
+ t.logout = n;
459
460
  }
460
461
  };
461
- }), Vt = { class: "logo" }, Kt = /* @__PURE__ */ A({
462
+ }), Vt = { class: "logo" }, Kt = /* @__PURE__ */ I({
462
463
  __name: "PLogo",
463
464
  setup(t) {
464
- const r = se();
465
- return (d, h) => (y(), N("div", Vt, [
466
- i(a(Ae), {
465
+ const l = se();
466
+ return (d, h) => (v(), N("div", Vt, [
467
+ c(a(Ae), {
467
468
  color: "var(--color-logo)",
468
469
  size: 32,
469
- src: a(r).state.logo,
470
- class: ae({ "mr-2": !a(r).state.collapsed })
470
+ src: a(l).state.logo,
471
+ class: ae({ "mr-2": !a(l).state.collapsed })
471
472
  }, null, 8, ["src", "class"]),
472
- mt(b("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(r).state.title), 513), [
473
- [vt, !a(r).state.collapsed]
473
+ mt(w("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(l).state.title), 513), [
474
+ [vt, !a(l).state.collapsed]
474
475
  ])
475
476
  ]));
476
477
  }
477
- }), H = (t, r) => {
478
+ }), H = (t, l) => {
478
479
  const d = t.__vccOpts || t;
479
- for (const [h, g] of r)
480
- d[h] = g;
480
+ for (const [h, p] of l)
481
+ d[h] = p;
481
482
  return d;
482
483
  }, Yt = /* @__PURE__ */ H(Kt, [["__scopeId", "data-v-e48aeefa"]]), Xt = {
483
484
  translationApiUrl: "https://translate.zvo.cn/api",
484
485
  defaultLanguage: "chinese",
485
486
  currentLanguage: "",
486
487
  options: [],
487
- selectCallback: (t) => {
488
- },
489
- initLanguage: (t) => {
488
+ initLanguages: async () => [],
489
+ selectLanguage: async (t) => {
490
490
  }
491
- }, Gt = Se("language", () => {
492
- const t = O(Xt), r = (p) => {
493
- p.forEach((v) => {
494
- (v.key === "Chinese" || v.key === "chinese") && (v.key = "chinese_simplified");
495
- }), t.value.options = [...p];
496
- }, d = () => t.value.options, h = (p) => {
497
- if (t.value.currentLanguage === p)
498
- return;
499
- const v = t.value.options.find(
500
- (u) => u.key === p
501
- );
502
- v && (t.value.currentLanguage = v.key, t.value.selectCallback(v));
503
- }, g = () => {
504
- if (t.value.currentLanguage)
505
- return t.value.options.find(
506
- (p) => p.key === t.value.currentLanguage
491
+ }, Gt = xe("language", () => {
492
+ const t = T(Xt), l = async () => (t.value.options.length === 0 && (t.value.options = await t.value.initLanguages()), t.value.options);
493
+ return {
494
+ select: async (s) => {
495
+ if (t.value.currentLanguage === s)
496
+ return;
497
+ const m = (await l()).find(
498
+ (u) => u.key === s
507
499
  );
508
- }, c = (p) => {
509
- t.value.selectCallback = p;
510
- }, x = () => t.value.translationApiUrl, w = (p) => {
511
- t.value.translationApiUrl = p;
512
- }, m = (p) => {
513
- (p === "Chinese" || p === "chinese") && (p = "chinese_simplified"), t.value.defaultLanguage = p;
514
- }, T = () => t.value.defaultLanguage ? t.value.defaultLanguage : "chinese_simplified";
515
- return X(() => {
516
- t.value.initLanguage(t.value);
517
- }), {
518
- state: t,
519
- select: h,
520
- setLanguages: r,
521
- getLanguages: d,
522
- getCurrentLanguage: g,
523
- setSelectCallback: c,
524
- setTranslationApiUrl: w,
525
- getTranslationApiUrl: x,
526
- setDefaultLanguage: m,
527
- getDefaultLanguage: T
500
+ m && (t.value.currentLanguage = m.key, t.value.selectLanguage(m));
501
+ },
502
+ selectLanguageCallback: async (s) => {
503
+ t.value.selectLanguage = s;
504
+ },
505
+ initLanguagesCallback: async (s) => {
506
+ t.value.initLanguages = s;
507
+ },
508
+ getLanguages: l,
509
+ getCurrentLanguage: async () => {
510
+ if (t.value.currentLanguage)
511
+ return (await l()).find(
512
+ (s) => s.key === t.value.currentLanguage
513
+ );
514
+ },
515
+ setTranslationApiUrl: (s) => {
516
+ t.value.translationApiUrl = s;
517
+ },
518
+ getTranslationApiUrl: () => t.value.translationApiUrl,
519
+ getDefaultLanguage: () => t.value.defaultLanguage ? t.value.defaultLanguage : "chinese_simplified",
520
+ setDefaultLanguage: (s) => {
521
+ (s === "Chinese" || s === "chinese") && (s = "chinese_simplified"), t.value.defaultLanguage = s;
522
+ }
528
523
  };
529
- }), Jt = { key: 1 }, He = /* @__PURE__ */ A({
524
+ }), Jt = { key: 1 }, He = /* @__PURE__ */ I({
530
525
  __name: "PLanguage",
531
526
  setup(t) {
532
- const r = (m) => d(m), {
533
- select: d,
534
- getLanguages: h,
535
- getCurrentLanguage: g,
536
- getDefaultLanguage: c,
537
- getTranslationApiUrl: x
538
- } = Gt(), w = () => {
539
- const m = window.translate;
540
- m && (m.selectLanguageTag.show = !1, m.selectLanguageTag.languages = h().map((T) => T.key).join(","), m.ignore.class.push("ignore-translate-flag"), m.ignore.id.push("ignore-translation"), m.language.setLocal(c()), m.request.api.translate = "api/v1/translation", m.request.api.connectTest = "api/v1/translation/connect-test", m.request.api.init = "api/v1/translation/init", m.request.api.language = "api/v1/translation/language", m.request.setHost(x()), m.request.listener.start(), m.listener.start(), m.whole.enableAll(), m.execute());
527
+ const {
528
+ select: l,
529
+ getLanguages: d,
530
+ getCurrentLanguage: h,
531
+ getDefaultLanguage: p,
532
+ getTranslationApiUrl: f
533
+ } = Gt(), C = T(), y = T([]), S = async (s) => await l(s), O = async () => {
534
+ const s = window.translate;
535
+ s && (s.selectLanguageTag.show = !1, s.selectLanguageTag.languages = (await d()).map((m) => m.key).join(","), s.ignore.class.push("ignore-translate-flag"), s.ignore.id.push("ignore-translation"), s.language.setLocal(p()), s.request.api.translate = "api/v1/translation", s.request.api.connectTest = "api/v1/translation/connect-test", s.request.api.init = "api/v1/translation/init", s.request.api.language = "api/v1/translation/language", s.request.setHost(f()), s.request.listener.start(), s.listener.start(), s.whole.enableAll(), s.execute());
541
536
  };
542
- return X(async () => await oe(() => w())), (m, T) => {
543
- const p = M, v = K;
544
- return a(h)().length > 0 ? (y(), $(a(Q), {
537
+ return Q(async () => {
538
+ await ne(), await O(), C.value = await h(), y.value = await d();
539
+ }), (s, m) => {
540
+ const u = M, L = K;
541
+ return y.value.length > 0 ? (v(), $(a(Z), {
545
542
  key: 0,
546
543
  id: "ignore-translation",
547
544
  placement: "bottom-start",
548
545
  trigger: "hover",
549
546
  class: "flex flex-col justify-center h-full ignore",
550
- onSelect: r,
551
- options: a(h)()
547
+ onSelect: S,
548
+ options: y.value
552
549
  }, {
553
- default: s(() => [
554
- i(v, {
550
+ default: i(() => [
551
+ c(L, {
555
552
  quaternary: "",
556
553
  type: "info"
557
554
  }, {
558
- default: s(() => [
559
- a(g)() ? (y(), N("label", Jt, q(a(g)()?.label), 1)) : (y(), $(p, {
555
+ default: i(() => [
556
+ C.value ? (v(), N("label", Jt, q(C.value?.label), 1)) : (v(), $(u, {
560
557
  key: 0,
561
558
  size: "18"
562
559
  }, {
563
- default: s(() => [...T[0] || (T[0] = [
564
- b("svg", {
560
+ default: i(() => [...m[0] || (m[0] = [
561
+ w("svg", {
565
562
  xmlns: "http://www.w3.org/2000/svg",
566
563
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
567
564
  viewBox: "0 0 512 512"
568
565
  }, [
569
- b("path", {
566
+ w("path", {
570
567
  d: "M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",
571
568
  fill: "currentColor"
572
569
  }),
573
- b("path", {
570
+ w("path", {
574
571
  d: "M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",
575
572
  fill: "currentColor"
576
573
  })
@@ -583,17 +580,20 @@ const We = (t) => {
583
580
  })
584
581
  ]),
585
582
  _: 1
586
- }, 8, ["options"])) : B("", !0);
583
+ }, 8, ["options"])) : A("", !0);
587
584
  };
588
585
  }
589
586
  }), Zt = { class: "layout-header" }, Qt = { class: "layout-header-left" }, ea = { class: "link-text" }, ta = {
590
587
  key: 1,
591
588
  class: "link-text"
592
- }, aa = { class: "layout-header-right" }, oa = { class: "layout-header-trigger-min" }, na = { class: "layout-header-trigger layout-header-trigger-min" }, la = { class: "layout-header-trigger layout-header-trigger-min" }, sa = { class: "avatar" }, ra = /* @__PURE__ */ A({
589
+ }, aa = { class: "layout-header-right" }, na = {
590
+ key: 0,
591
+ class: "layout-header-trigger-min"
592
+ }, oa = { class: "layout-header-trigger layout-header-trigger-min" }, la = { class: "layout-header-trigger layout-header-trigger-min" }, sa = { class: "avatar" }, ra = /* @__PURE__ */ I({
593
593
  __name: "PHeader",
594
594
  setup(t) {
595
- const r = fe(), d = Me(), h = se(), g = ne(), c = le(), x = Ie("reloadPage"), w = (P) => g.push({ name: P }), m = U(() => T(c.matched)), T = (P) => P.map((_) => {
596
- const k = {
595
+ const l = fe(), d = Me(), h = se(), p = oe(), f = le(), C = Ie("reloadPage"), y = (b) => p.push({ name: b }), S = j(() => O(f.matched)), O = (b) => b.map((_) => {
596
+ const P = {
597
597
  key: _.name,
598
598
  label: _.meta.title,
599
599
  icon: _.meta.icon,
@@ -601,25 +601,25 @@ const We = (t) => {
601
601
  disabled: _.path === "/",
602
602
  children: void 0
603
603
  };
604
- return _.children && _.children.length > 0 && (k.children = T(
604
+ return _.children && _.children.length > 0 && (P.children = O(
605
605
  _.children
606
- )), k;
607
- }), p = O(!1), v = () => {
608
- document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), p.value = !1) : (document.documentElement.requestFullscreen(), p.value = !0);
609
- }, u = U(() => {
610
- const P = [];
611
- return P.push({
606
+ )), P;
607
+ }), s = T(!1), m = () => {
608
+ document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), s.value = !1) : (document.documentElement.requestFullscreen(), s.value = !0);
609
+ }, u = j(() => {
610
+ const b = [];
611
+ return b.push({
612
612
  label: "退出登录",
613
613
  key: "logout"
614
614
  }), h.state.settingPages && h.state.settingPages.length > 0 && h.state.settingPages.forEach((_) => {
615
- P.push({
615
+ b.push({
616
616
  label: _.title,
617
617
  key: _.route
618
618
  });
619
- }), P;
620
- }), S = (P) => {
621
- P === "logout" ? o() : g.push({ name: P });
622
- }, o = () => {
619
+ }), b;
620
+ }), L = (b) => {
621
+ b === "logout" ? n() : p.push({ name: b });
622
+ }, n = () => {
623
623
  d.info({
624
624
  title: "提示",
625
625
  content: "您确定要退出登录吗",
@@ -628,123 +628,123 @@ const We = (t) => {
628
628
  onPositiveClick: async () => {
629
629
  if (h.state.logout)
630
630
  try {
631
- await h.state.logout(), localStorage.removeItem("TABS-ROUTES"), r.error("退出成功");
632
- } catch (P) {
633
- console.error(P), r.error("退出登录失败");
631
+ await h.state.logout(), localStorage.removeItem("TABS-ROUTES"), l.error("退出成功");
632
+ } catch (b) {
633
+ console.error(b), l.error("退出登录失败");
634
634
  } finally {
635
635
  location.reload();
636
636
  }
637
637
  else
638
- r.error("没有配置登出接口, 请配置[usePLayoutStore.logout]方法");
638
+ l.error("没有配置登出接口, 请配置[usePLayoutStore.logout]方法");
639
639
  },
640
640
  onNegativeClick: () => {
641
641
  }
642
642
  });
643
643
  };
644
- return (P, _) => {
645
- const k = De, I = Qe, E = Ae;
646
- return y(), N("div", Zt, [
647
- b("div", Qt, [
648
- b("div", {
644
+ return (b, _) => {
645
+ const P = De, z = Qe, E = Ae;
646
+ return v(), N("div", Zt, [
647
+ w("div", Qt, [
648
+ w("div", {
649
649
  class: "ml-1 layout-header-trigger layout-header-trigger-min",
650
650
  onClick: _[0] || (_[0] = //@ts-ignore
651
- (...L) => a(h).collapse && a(h).collapse(...L))
651
+ (...x) => a(h).collapse && a(h).collapse(...x))
652
652
  }, [
653
- a(h).state.collapsed ? (y(), $(a(M), {
653
+ a(h).state.collapsed ? (v(), $(a(M), {
654
654
  key: 0,
655
655
  size: "18"
656
656
  }, {
657
- default: s(() => [
658
- i(a(Lt))
657
+ default: i(() => [
658
+ c(a(St))
659
659
  ]),
660
660
  _: 1
661
- })) : (y(), $(a(M), {
661
+ })) : (v(), $(a(M), {
662
662
  key: 1,
663
663
  size: "18"
664
664
  }, {
665
- default: s(() => [
666
- i(a(Tt))
665
+ default: i(() => [
666
+ c(a(Tt))
667
667
  ]),
668
668
  _: 1
669
669
  }))
670
670
  ]),
671
- b("div", {
671
+ w("div", {
672
672
  class: "mr-1 layout-header-trigger layout-header-trigger-min",
673
673
  onClick: _[1] || (_[1] = //@ts-ignore
674
- (...L) => a(x) && a(x)(...L))
674
+ (...x) => a(C) && a(C)(...x))
675
675
  }, [
676
- i(a(M), { size: "18" }, {
677
- default: s(() => [
678
- i(a(xe))
676
+ c(a(M), { size: "18" }, {
677
+ default: i(() => [
678
+ c(a(Le))
679
679
  ]),
680
680
  _: 1
681
681
  })
682
682
  ]),
683
- i(a(Je), null, {
684
- default: s(() => [
685
- (y(!0), N(Oe, null, _t(m.value, (L) => (y(), N(Oe, {
686
- key: L.label
683
+ c(a(Je), null, {
684
+ default: i(() => [
685
+ (v(!0), N(Oe, null, _t(S.value, (x) => (v(), N(Oe, {
686
+ key: x.label
687
687
  }, [
688
- L.label ? (y(), $(a(Ze), { key: 0 }, {
689
- default: s(() => [
690
- L.children && L.children.length ? (y(), $(a(Q), {
688
+ x.label ? (v(), $(a(Ze), { key: 0 }, {
689
+ default: i(() => [
690
+ x.children && x.children.length ? (v(), $(a(Z), {
691
691
  key: 0,
692
- options: L.children,
693
- onSelect: w
692
+ options: x.children,
693
+ onSelect: y
694
694
  }, {
695
- default: s(() => [
696
- b("span", ea, [
697
- L.icon ? (y(), $(we(L.icon), { key: 0 })) : B("", !0),
698
- b("span", null, q(L.label), 1)
695
+ default: i(() => [
696
+ w("span", ea, [
697
+ x.icon ? (v(), $(we(x.icon), { key: 0 })) : A("", !0),
698
+ w("span", null, q(x.label), 1)
699
699
  ])
700
700
  ]),
701
701
  _: 2
702
- }, 1032, ["options"])) : (y(), N("span", ta, [
703
- L.icon ? (y(), $(we(L.icon), { key: 0 })) : B("", !0),
704
- b("span", null, q(L.label), 1)
702
+ }, 1032, ["options"])) : (v(), N("span", ta, [
703
+ x.icon ? (v(), $(we(x.icon), { key: 0 })) : A("", !0),
704
+ w("span", null, q(x.label), 1)
705
705
  ]))
706
706
  ]),
707
707
  _: 2
708
- }, 1024)) : B("", !0)
708
+ }, 1024)) : A("", !0)
709
709
  ], 64))), 128))
710
710
  ]),
711
711
  _: 1
712
712
  })
713
713
  ]),
714
- b("div", aa, [
715
- b("div", oa, [
716
- i(He)
717
- ]),
718
- b("div", na, [
719
- i(k, { placement: "bottom" }, {
720
- trigger: s(() => [
721
- i(a(M), {
714
+ w("div", aa, [
715
+ a(h).state.enableLanguage ? (v(), N("div", na, [
716
+ c(He)
717
+ ])) : A("", !0),
718
+ w("div", oa, [
719
+ c(P, { placement: "bottom" }, {
720
+ trigger: i(() => [
721
+ c(a(M), {
722
722
  size: "18",
723
- onClick: Pe(v, ["stop"])
723
+ onClick: Pe(m, ["stop"])
724
724
  }, {
725
- default: s(() => [
726
- p.value ? (y(), $(a(Ot), { key: 1 })) : (y(), $(a($t), { key: 0 }))
725
+ default: i(() => [
726
+ s.value ? (v(), $(a(Ot), { key: 1 })) : (v(), $(a($t), { key: 0 }))
727
727
  ]),
728
728
  _: 1
729
729
  })
730
730
  ]),
731
- default: s(() => [
732
- _[2] || (_[2] = b("span", null, "全屏", -1))
731
+ default: i(() => [
732
+ _[2] || (_[2] = w("span", null, "全屏", -1))
733
733
  ]),
734
734
  _: 1
735
735
  })
736
736
  ]),
737
- b("div", la, [
738
- i(a(Q), {
737
+ w("div", la, [
738
+ c(a(Z), {
739
739
  trigger: "hover",
740
- onSelect: S,
740
+ onSelect: L,
741
741
  options: u.value
742
742
  }, {
743
- default: s(() => [
744
- b("div", sa, [
745
- b("span", null, q(a(h).state.uname), 1),
746
- i(I, { vertical: "" }),
747
- i(E, {
743
+ default: i(() => [
744
+ w("div", sa, [
745
+ w("span", null, q(a(h).state.uname), 1),
746
+ c(z, { vertical: "" }),
747
+ c(E, {
748
748
  round: "",
749
749
  src: a(h).state.avatar
750
750
  }, null, 8, ["src"])
@@ -757,20 +757,20 @@ const We = (t) => {
757
757
  ]);
758
758
  };
759
759
  }
760
- }), ia = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-9fabccfe"]]), ca = { class: "mt-1" }, da = /* @__PURE__ */ A({
760
+ }), ia = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-563e4e55"]]), ca = { class: "mt-1" }, ua = /* @__PURE__ */ I({
761
761
  __name: "PContent",
762
762
  props: {
763
763
  loading: { type: Boolean, default: !1 }
764
764
  },
765
765
  setup(t) {
766
- return (r, d) => {
766
+ return (l, d) => {
767
767
  const h = ze("RouterView");
768
- return y(), N("div", ca, [
769
- t.loading ? B("", !0) : (y(), $(h, { key: 0 }, {
770
- default: s(({ Component: g, route: c }) => [
771
- (y(), $(yt, null, [
772
- (y(), $(we(g), {
773
- key: c.fullPath
768
+ return v(), N("div", ca, [
769
+ t.loading ? A("", !0) : (v(), $(h, { key: 0 }, {
770
+ default: i(({ Component: p, route: f }) => [
771
+ (v(), $(yt, null, [
772
+ (v(), $(we(p), {
773
+ key: f.fullPath
774
774
  }))
775
775
  ], 1024))
776
776
  ]),
@@ -779,120 +779,120 @@ const We = (t) => {
779
779
  ]);
780
780
  };
781
781
  }
782
- }), ua = { class: "tabs-view-main" }, fa = ["id", "onClick", "onContextmenu"], pa = { class: "tabs-close" }, ga = { class: "tabs-close-btn" }, ha = /* @__PURE__ */ A({
782
+ }), da = { class: "tabs-view-main" }, fa = ["id", "onClick", "onContextmenu"], ga = { class: "tabs-close" }, pa = { class: "tabs-close-btn" }, ha = /* @__PURE__ */ I({
783
783
  __name: "PTabs",
784
784
  setup(t) {
785
785
  bt((e) => ({
786
786
  v141ddb06: d.value,
787
787
  cf709148: h.value
788
788
  }));
789
- const r = et(), d = U(() => r.value.cardColor), h = U(() => r.value.textColor1), g = fe(), c = le(), x = ne(), w = O(null), m = O(null), T = O(!1), p = se(), v = U(() => p.state.tabs), u = Ce({
790
- activeKey: c.fullPath,
789
+ const l = et(), d = j(() => l.value.cardColor), h = j(() => l.value.textColor1), p = fe(), f = le(), C = oe(), y = T(null), S = T(null), O = T(!1), s = se(), m = j(() => s.state.tabs), u = Ce({
790
+ activeKey: f.fullPath,
791
791
  scrollable: !0,
792
792
  dropdownX: 0,
793
793
  dropdownY: 0,
794
794
  showDropdown: !1,
795
795
  isMultiHeaderFixed: !0,
796
796
  multiTabsSetting: !0
797
- }), S = ["Login", "Redirect", "ErrorPage"], o = (e) => {
798
- const { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de } = e;
799
- return { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de };
800
- }, P = U(() => {
801
- const l = p.state.collapsed ? "64px" : "272px";
797
+ }), L = ["Login", "Redirect", "ErrorPage"], n = (e) => {
798
+ const { fullPath: o, hash: r, meta: k, name: R, params: D, path: V, query: ue } = e;
799
+ return { fullPath: o, hash: r, meta: k, name: R, params: D, path: V, query: ue };
800
+ }, b = j(() => {
801
+ const r = s.state.collapsed ? "64px" : "272px";
802
802
  return {
803
- left: l,
804
- width: `calc(100% - ${l})`
803
+ left: r,
804
+ width: `calc(100% - ${r})`
805
805
  };
806
- }), _ = U(() => {
807
- const e = v.value.length <= 1;
806
+ }), _ = j(() => {
807
+ const e = m.value.length <= 1;
808
808
  return [
809
809
  {
810
810
  label: "刷新当前",
811
811
  key: "1",
812
- icon: () => z(M, null, { default: () => z(xe) })
812
+ icon: () => B(M, null, { default: () => B(Le) })
813
813
  },
814
814
  {
815
815
  label: "关闭当前",
816
816
  key: "2",
817
- disabled: T.value || e,
818
- icon: () => z(M, null, { default: () => z(Ee) })
817
+ disabled: O.value || e,
818
+ icon: () => B(M, null, { default: () => B(Ee) })
819
819
  },
820
820
  {
821
821
  label: "关闭其他",
822
822
  key: "3",
823
823
  disabled: e,
824
- icon: () => z(M, null, { default: () => z(Et) })
824
+ icon: () => B(M, null, { default: () => B(Et) })
825
825
  },
826
826
  {
827
827
  label: "关闭全部",
828
828
  key: "4",
829
829
  disabled: e,
830
- icon: () => z(M, null, { default: () => z(Mt) })
830
+ icon: () => B(M, null, { default: () => B(Mt) })
831
831
  }
832
832
  ];
833
- }), k = () => {
833
+ }), P = () => {
834
834
  let e = [];
835
- const n = o(c);
835
+ const o = n(f);
836
836
  try {
837
- if (p.state.cacheTabs) {
838
- const l = localStorage.getItem("TABS_ROUTES");
839
- e = l ? JSON.parse(l) : [n];
837
+ if (s.state.cacheTabs) {
838
+ const r = localStorage.getItem("TABS_ROUTES");
839
+ e = r ? JSON.parse(r) : [o];
840
840
  }
841
841
  } catch {
842
- e = [n];
842
+ e = [o];
843
843
  } finally {
844
844
  return e;
845
845
  }
846
- }, I = (e) => {
847
- const n = x.getRoutes();
848
- e.forEach((l) => {
849
- const C = n.find((R) => R.path === l.path);
850
- C && (l.meta = C.meta || l.meta, l.name = C.name || l.name);
851
- }), p.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
846
+ }, z = (e) => {
847
+ const o = C.getRoutes();
848
+ e.forEach((r) => {
849
+ const k = o.find((R) => R.path === r.path);
850
+ k && (r.meta = k.meta || r.meta, r.name = k.name || r.name);
851
+ }), s.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
852
852
  }, E = () => {
853
- const e = k();
854
- I(e), p.initTabs(e);
855
- }, L = async (e) => {
856
- if (await oe(), !w.value) return;
857
- const n = w.value.offsetWidth, l = w.value.scrollWidth;
858
- n < l ? (u.scrollable = !0, e && [...w.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((R) => {
853
+ const e = P();
854
+ z(e), s.initTabs(e);
855
+ }, x = async (e) => {
856
+ if (await ne(), !y.value) return;
857
+ const o = y.value.offsetWidth, r = y.value.scrollWidth;
858
+ o < r ? (u.scrollable = !0, e && [...y.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((R) => {
859
859
  R.id === `tag${u.activeKey.split("/").join("/")}` && R.scrollIntoView && R.scrollIntoView();
860
860
  })) : u.scrollable = !1;
861
- }, ee = (e) => !(e.draggedContext.element.meta.affix || e.relatedContext.element.meta.affix), pe = () => {
861
+ }, ee = (e) => !(e.draggedContext.element.meta.affix || e.relatedContext.element.meta.affix), ge = () => {
862
862
  let e;
863
- e = It(), e.listenTo(m.value, () => L(!0));
863
+ e = It(), e.listenTo(S.value, () => x(!0));
864
864
  }, re = (e) => {
865
- const { fullPath: n } = e;
866
- if (n === c.fullPath || (u.activeKey = n, !e))
865
+ const { fullPath: o } = e;
866
+ if (o === f.fullPath || (u.activeKey = o, !e))
867
867
  return;
868
- const { replace: l } = x;
869
- toString.call(e), l(e).catch(console.error);
870
- }, ie = (e, n) => {
871
- e.preventDefault(), T.value = n.path === "/home", u.showDropdown = !1, oe().then(() => {
868
+ const { replace: r } = C;
869
+ toString.call(e), r(e).catch(console.error);
870
+ }, ie = (e, o) => {
871
+ e.preventDefault(), O.value = o.path === "/home", u.showDropdown = !1, ne().then(() => {
872
872
  u.showDropdown = !0, u.dropdownX = e.clientX, u.dropdownY = e.clientY;
873
873
  });
874
- }, G = () => {
875
- if (c.meta.keepAlive) {
876
- var e = x.currentRoute.value.matched.find(
877
- (n) => n.name == c.name
874
+ }, X = () => {
875
+ if (f.meta.keepAlive) {
876
+ var e = C.currentRoute.value.matched.find(
877
+ (o) => o.name == f.name
878
878
  );
879
879
  e && e.components?.default?.name;
880
880
  }
881
- }, J = (e) => {
882
- if (v.value.length === 1)
883
- return g.warning("这已经是最后一页,不能再关闭了!");
884
- if (G(), p.closeCurrentTab(e), u.activeKey === e.fullPath) {
885
- const n = v.value[Math.max(0, v.value.length - 1)];
886
- u.activeKey = n.fullPath, x.push(n);
881
+ }, G = (e) => {
882
+ if (m.value.length === 1)
883
+ return p.warning("这已经是最后一页,不能再关闭了!");
884
+ if (X(), s.closeCurrentTab(e), u.activeKey === e.fullPath) {
885
+ const o = m.value[Math.max(0, m.value.length - 1)];
886
+ u.activeKey = o.fullPath, C.push(o);
887
887
  }
888
- L();
889
- }, ge = (e) => {
890
- const { fullPath: n } = e, l = v.value.find((C) => C.fullPath == n);
891
- J(l);
888
+ x();
889
+ }, pe = (e) => {
890
+ const { fullPath: o } = e, r = m.value.find((k) => k.fullPath == o);
891
+ G(r);
892
892
  }, he = (e) => {
893
- p.closeOtherTabs(e), u.activeKey = e.fullPath, x.replace(e.fullPath), L();
894
- }, j = () => {
895
- p.closeAllTabs(), L();
893
+ s.closeOtherTabs(e), u.activeKey = e.fullPath, C.replace(e.fullPath), x();
894
+ }, U = () => {
895
+ s.closeAllTabs(), x();
896
896
  }, me = Ie("reloadPage"), ce = (e) => {
897
897
  switch (e) {
898
898
  //刷新
@@ -901,113 +901,113 @@ const We = (t) => {
901
901
  break;
902
902
  //关闭
903
903
  case "2":
904
- J(c);
904
+ G(f);
905
905
  break;
906
906
  //关闭其他
907
907
  case "3":
908
- he(c);
908
+ he(f);
909
909
  break;
910
910
  //关闭所有
911
911
  case "4":
912
- j();
912
+ U();
913
913
  break;
914
914
  }
915
- L(), u.showDropdown = !1;
916
- }, te = (e, n) => {
917
- const l = w.value.scrollLeft, C = n > 0 && l + n >= e || n < 0 && l + n <= e ? e : l + n;
918
- if (w.value && w.value.scrollTo(C, 0), C !== e)
919
- return window.requestAnimationFrame(() => te(e, n));
915
+ x(), u.showDropdown = !1;
916
+ }, te = (e, o) => {
917
+ const r = y.value.scrollLeft, k = o > 0 && r + o >= e || o < 0 && r + o <= e ? e : r + o;
918
+ if (y.value && y.value.scrollTo(k, 0), k !== e)
919
+ return window.requestAnimationFrame(() => te(e, o));
920
920
  }, ve = () => {
921
- const e = w.value.offsetWidth, n = w.value.scrollLeft;
922
- if (!n) return;
923
- const l = n > e ? n - e : 0;
924
- te(l, (l - n) / 20);
925
- }, f = () => {
926
- const e = w.value.offsetWidth, n = w.value.scrollWidth, l = w.value.scrollLeft;
927
- if (n - l <= e) return;
928
- const C = n - l > e * 2 ? l + e : n - e;
929
- te(C, (C - l) / 20);
921
+ const e = y.value.offsetWidth, o = y.value.scrollLeft;
922
+ if (!o) return;
923
+ const r = o > e ? o - e : 0;
924
+ te(r, (r - o) / 20);
925
+ }, g = () => {
926
+ const e = y.value.offsetWidth, o = y.value.scrollWidth, r = y.value.scrollLeft;
927
+ if (o - r <= e) return;
928
+ const k = o - r > e * 2 ? r + e : o - e;
929
+ te(k, (k - r) / 20);
930
930
  };
931
931
  return window.addEventListener("beforeunload", () => {
932
- localStorage.setItem("TABS_ROUTES", JSON.stringify(v.value));
932
+ localStorage.setItem("TABS_ROUTES", JSON.stringify(m.value));
933
933
  }), window.addEventListener(
934
934
  "scroll",
935
935
  (e) => {
936
- let n = e.target.scrollTop || document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
937
- u.isMultiHeaderFixed = n >= 64;
936
+ let o = e.target.scrollTop || document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
937
+ u.isMultiHeaderFixed = o >= 64;
938
938
  },
939
939
  !0
940
940
  ), Be(
941
- () => c.fullPath,
941
+ () => f.fullPath,
942
942
  (e) => {
943
- S.includes(c.name) || (u.activeKey = e, p.addTab(o(c)), L(!0));
943
+ L.includes(f.name) || (u.activeKey = e, s.addTab(n(f)), x(!0));
944
944
  },
945
945
  { immediate: !0 }
946
- ), E(), X(() => pe()), (e, n) => (y(), N("div", {
946
+ ), E(), Q(() => ge()), (e, o) => (v(), N("div", {
947
947
  class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
948
- style: ue(P.value)
948
+ style: de(b.value)
949
949
  }, [
950
- b("div", ua, [
951
- b("div", {
950
+ w("div", da, [
951
+ w("div", {
952
952
  ref_key: "navWrap",
953
- ref: m,
953
+ ref: S,
954
954
  class: ae(["tabs-card", { "tabs-card-scrollable": u.scrollable }])
955
955
  }, [
956
- b("span", {
956
+ w("span", {
957
957
  class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !u.scrollable }]),
958
958
  onClick: ve
959
959
  }, [
960
- i(a(M), {
960
+ c(a(M), {
961
961
  size: "16",
962
962
  color: "#515a6e"
963
963
  }, {
964
- default: s(() => [
965
- i(a(Rt))
964
+ default: i(() => [
965
+ c(a(Rt))
966
966
  ]),
967
967
  _: 1
968
968
  })
969
969
  ], 2),
970
- b("span", {
970
+ w("span", {
971
971
  class: ae(["tabs-card-next", { "tabs-card-next-hide": !u.scrollable }]),
972
- onClick: f
972
+ onClick: g
973
973
  }, [
974
- i(a(M), {
974
+ c(a(M), {
975
975
  size: "16",
976
976
  color: "#515a6e"
977
977
  }, {
978
- default: s(() => [
979
- i(a(Nt))
978
+ default: i(() => [
979
+ c(a(Nt))
980
980
  ]),
981
981
  _: 1
982
982
  })
983
983
  ], 2),
984
- b("div", {
984
+ w("div", {
985
985
  ref_key: "navScroll",
986
- ref: w,
986
+ ref: y,
987
987
  class: "tabs-card-scroll"
988
988
  }, [
989
- i(a(zt), {
990
- list: v.value,
989
+ c(a(zt), {
990
+ list: m.value,
991
991
  animation: "300",
992
992
  "item-key": "fullPath",
993
993
  class: "flex",
994
994
  move: ee
995
995
  }, {
996
- item: s(({ element: l }) => [
997
- b("div", {
998
- id: `tag${l.fullPath.split("/").join("/")}`,
999
- class: ae(["tabs-card-scroll-item", { "active-item": u.activeKey === l.fullPath }]),
1000
- onClick: Pe((C) => re(l), ["stop"]),
1001
- onContextmenu: (C) => ie(C, l)
996
+ item: i(({ element: r }) => [
997
+ w("div", {
998
+ id: `tag${r.fullPath.split("/").join("/")}`,
999
+ class: ae(["tabs-card-scroll-item", { "active-item": u.activeKey === r.fullPath }]),
1000
+ onClick: Pe((k) => re(r), ["stop"]),
1001
+ onContextmenu: (k) => ie(k, r)
1002
1002
  }, [
1003
- b("span", null, q(l.meta.title), 1),
1004
- l.meta.affix ? B("", !0) : (y(), $(a(M), {
1003
+ w("span", null, q(r.meta.title), 1),
1004
+ r.meta.affix ? A("", !0) : (v(), $(a(M), {
1005
1005
  key: 0,
1006
1006
  size: "14",
1007
- onClick: Pe((C) => ge(l), ["stop"])
1007
+ onClick: Pe((k) => pe(r), ["stop"])
1008
1008
  }, {
1009
- default: s(() => [
1010
- i(a(Ee))
1009
+ default: i(() => [
1010
+ c(a(Ee))
1011
1011
  ]),
1012
1012
  _: 1
1013
1013
  }, 8, ["onClick"]))
@@ -1017,21 +1017,21 @@ const We = (t) => {
1017
1017
  }, 8, ["list"])
1018
1018
  ], 512)
1019
1019
  ], 2),
1020
- b("div", pa, [
1021
- i(a(Q), {
1020
+ w("div", ga, [
1021
+ c(a(Z), {
1022
1022
  trigger: "hover",
1023
1023
  onSelect: ce,
1024
1024
  placement: "bottom-end",
1025
1025
  options: _.value
1026
1026
  }, {
1027
- default: s(() => [
1028
- b("div", ga, [
1029
- i(a(M), {
1027
+ default: i(() => [
1028
+ w("div", pa, [
1029
+ c(a(M), {
1030
1030
  size: "16",
1031
1031
  color: "#515a6e"
1032
1032
  }, {
1033
- default: s(() => [
1034
- i(a(Dt))
1033
+ default: i(() => [
1034
+ c(a(Dt))
1035
1035
  ]),
1036
1036
  _: 1
1037
1037
  })
@@ -1040,11 +1040,11 @@ const We = (t) => {
1040
1040
  _: 1
1041
1041
  }, 8, ["options"])
1042
1042
  ]),
1043
- i(a(Q), {
1043
+ c(a(Z), {
1044
1044
  show: u.showDropdown,
1045
1045
  x: u.dropdownX,
1046
1046
  y: u.dropdownY,
1047
- onClickoutside: n[0] || (n[0] = (l) => u.showDropdown = !1),
1047
+ onClickoutside: o[0] || (o[0] = (r) => u.showDropdown = !1),
1048
1048
  placement: "bottom-start",
1049
1049
  onSelect: ce,
1050
1050
  options: _.value
@@ -1052,24 +1052,24 @@ const We = (t) => {
1052
1052
  ])
1053
1053
  ], 4));
1054
1054
  }
1055
- }), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */ A({
1055
+ }), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */ I({
1056
1056
  __name: "PMenus",
1057
1057
  setup(t) {
1058
- const r = le(), d = ne(), h = se(), g = O(r.name), c = O(
1059
- r.matched && r.matched.length ? r.matched.map((u) => u.name) : []
1060
- ), x = O([]), w = (u) => {
1058
+ const l = le(), d = oe(), h = se(), p = T(l.name), f = T(
1059
+ l.matched && l.matched.length ? l.matched.map((u) => u.name) : []
1060
+ ), C = T([]), y = (u) => {
1061
1061
  /http(s)?:/.test(u) ? window.open(u) : d.push({ name: u });
1062
- }, m = (u) => {
1062
+ }, S = (u) => {
1063
1063
  if (!u) return;
1064
- const S = u.find((o) => c.value.indexOf(o) === -1);
1065
- c.value = S ? [S] : [];
1066
- }, T = () => {
1067
- const u = r.matched;
1068
- c.value = u.map((o) => o.name);
1069
- const S = r.meta?.activeMenu || "";
1070
- g.value = S || r.name;
1071
- }, p = (u, S = [], o = !1) => {
1072
- const P = [], _ = [
1064
+ const L = u.find((n) => f.value.indexOf(n) === -1);
1065
+ f.value = L ? [L] : [];
1066
+ }, O = () => {
1067
+ const u = l.matched;
1068
+ f.value = u.map((n) => n.name);
1069
+ const L = l.meta?.activeMenu || "";
1070
+ p.value = L || l.name;
1071
+ }, s = (u, L = [], n = !1) => {
1072
+ const b = [], _ = [
1073
1073
  "/:path(.*)*",
1074
1074
  "/redirect",
1075
1075
  "/redirect/:path(.*)",
@@ -1077,120 +1077,120 @@ const We = (t) => {
1077
1077
  "/oidc-callback"
1078
1078
  ];
1079
1079
  if (!u || u.length === 0)
1080
- return P;
1081
- u = u.sort((k, I) => {
1082
- let E = (I.children?.length ? 1 : 0) - (k.children?.length ? 1 : 0);
1083
- return E === 0 && (E = (k.meta?.sort ?? 0) - (I.meta?.sort ?? 0)), E;
1080
+ return b;
1081
+ u = u.sort((P, z) => {
1082
+ let E = (z.children?.length ? 1 : 0) - (P.children?.length ? 1 : 0);
1083
+ return E === 0 && (E = (P.meta?.sort ?? 0) - (z.meta?.sort ?? 0)), E;
1084
1084
  });
1085
- for (const k of u) {
1086
- if (o || (k.meta?.hidden || !1) == !0 || _.includes(k.path)) {
1087
- S.push(k.name), k.children && k.children.length > 0 && p(k.children, S, !0);
1085
+ for (const P of u) {
1086
+ if (n || (P.meta?.hidden || !1) == !0 || _.includes(P.path)) {
1087
+ L.push(P.name), P.children && P.children.length > 0 && s(P.children, L, !0);
1088
1088
  continue;
1089
1089
  }
1090
- const I = k.meta?.alwaysShow != !0 && k?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = I ? k.children[0] : k, L = {
1090
+ const z = P.meta?.alwaysShow != !0 && P?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = z ? P.children[0] : P, x = {
1091
1091
  key: E.name,
1092
1092
  label: E.meta?.title,
1093
1093
  affix: E.meta?.affix,
1094
1094
  sort: E.meta?.sort,
1095
1095
  path: E.path,
1096
1096
  redirect: E.redirect,
1097
- icon: I ? k.meta?.icon : E.meta?.icon,
1097
+ icon: z ? P.meta?.icon : E.meta?.icon,
1098
1098
  permissions: E.meta?.permissions,
1099
1099
  meta: E.meta,
1100
1100
  children: void 0
1101
1101
  };
1102
- if (!S.includes(k.name)) {
1103
- if (P.push(L), S.push(k.name), I) {
1104
- p(k.children, S, o);
1102
+ if (!L.includes(P.name)) {
1103
+ if (b.push(x), L.push(P.name), z) {
1104
+ s(P.children, L, n);
1105
1105
  continue;
1106
1106
  }
1107
- k.children && k.children.length > 0 && (L.children = p(k.children, S, o));
1107
+ P.children && P.children.length > 0 && (x.children = s(P.children, L, n));
1108
1108
  }
1109
1109
  }
1110
- return P;
1111
- }, v = () => {
1110
+ return b;
1111
+ }, m = () => {
1112
1112
  const u = d.getRoutes();
1113
- x.value = p(u);
1113
+ C.value = s(u);
1114
1114
  };
1115
1115
  return Be(
1116
- () => r.fullPath,
1116
+ () => l.fullPath,
1117
1117
  () => {
1118
- T();
1118
+ O();
1119
1119
  }
1120
- ), X(() => {
1121
- v(), T();
1122
- }), (u, S) => (y(), $(a(tt), {
1120
+ ), Q(() => {
1121
+ m(), O();
1122
+ }), (u, L) => (v(), $(a(tt), {
1123
1123
  class: "h-full",
1124
1124
  inverted: "",
1125
1125
  mode: "vertical",
1126
- options: x.value,
1126
+ options: C.value,
1127
1127
  collapsed: a(h).state.collapsed,
1128
1128
  "collapsed-width": 64,
1129
1129
  "collapsed-icon-size": 20,
1130
1130
  indent: 24,
1131
- "expanded-keys": c.value,
1132
- value: g.value,
1133
- "onUpdate:value": w,
1134
- "onUpdate:expandedKeys": m
1131
+ "expanded-keys": f.value,
1132
+ value: p.value,
1133
+ "onUpdate:value": y,
1134
+ "onUpdate:expandedKeys": S
1135
1135
  }, null, 8, ["options", "collapsed", "expanded-keys", "value"]));
1136
1136
  }
1137
- }), _a = { class: "layout-content-main layout-content-main-fix" }, ya = { class: "main-view main-view-fix" }, ba = /* @__PURE__ */ A({
1137
+ }), _a = { class: "layout-content-main layout-content-main-fix" }, ya = { class: "main-view main-view-fix" }, ba = /* @__PURE__ */ I({
1138
1138
  __name: "PLayout",
1139
1139
  setup(t) {
1140
- const r = se(), d = O(!1);
1140
+ const l = se(), d = T(!1);
1141
1141
  return wt("reloadPage", () => {
1142
- d.value = !0, oe(() => d.value = !1);
1143
- }), (g, c) => {
1144
- const x = st;
1145
- return y(), $(a($e), {
1142
+ d.value = !0, ne(() => d.value = !1);
1143
+ }), (p, f) => {
1144
+ const C = st;
1145
+ return v(), $(a($e), {
1146
1146
  "has-sider": "",
1147
1147
  class: "layout",
1148
1148
  position: "absolute"
1149
1149
  }, {
1150
- default: s(() => [
1151
- i(a(at), {
1150
+ default: i(() => [
1151
+ c(a(at), {
1152
1152
  class: "layout-sider",
1153
1153
  inverted: "",
1154
1154
  "show-trigger": "bar",
1155
1155
  position: "absolute",
1156
1156
  "collapse-mode": "width",
1157
- collapsed: a(r).state.collapsed,
1157
+ collapsed: a(l).state.collapsed,
1158
1158
  "native-scrollbar": !1,
1159
1159
  "collapsed-width": 64,
1160
- onCollapse: a(r).collapse,
1161
- onExpand: a(r).collapse
1160
+ onCollapse: a(l).collapse,
1161
+ onExpand: a(l).collapse
1162
1162
  }, {
1163
- default: s(() => [
1164
- i(a(ot), { vertical: "" }, {
1165
- default: s(() => [
1166
- i(Yt),
1167
- i(va)
1163
+ default: i(() => [
1164
+ c(a(nt), { vertical: "" }, {
1165
+ default: i(() => [
1166
+ c(Yt),
1167
+ c(va)
1168
1168
  ]),
1169
1169
  _: 1
1170
1170
  })
1171
1171
  ]),
1172
1172
  _: 1
1173
1173
  }, 8, ["collapsed", "onCollapse", "onExpand"]),
1174
- i(a($e), null, {
1175
- default: s(() => [
1176
- i(a(nt), { position: "absolute" }, {
1177
- default: s(() => [
1178
- i(ia)
1174
+ c(a($e), null, {
1175
+ default: i(() => [
1176
+ c(a(ot), { position: "absolute" }, {
1177
+ default: i(() => [
1178
+ c(ia)
1179
1179
  ]),
1180
1180
  _: 1
1181
1181
  }),
1182
- i(a(lt), { class: "layout-content layout-default-background" }, {
1183
- default: s(() => [
1184
- b("div", _a, [
1185
- i(ma),
1186
- b("div", ya, [
1187
- i(da, { loading: d.value }, null, 8, ["loading"])
1182
+ c(a(lt), { class: "layout-content layout-default-background" }, {
1183
+ default: i(() => [
1184
+ w("div", _a, [
1185
+ c(ma),
1186
+ w("div", ya, [
1187
+ c(ua, { loading: d.value }, null, 8, ["loading"])
1188
1188
  ])
1189
1189
  ])
1190
1190
  ]),
1191
1191
  _: 1
1192
1192
  }),
1193
- i(x, {
1193
+ c(C, {
1194
1194
  right: 20,
1195
1195
  class: "z-50"
1196
1196
  })
@@ -1203,11 +1203,11 @@ const We = (t) => {
1203
1203
  };
1204
1204
  }
1205
1205
  }), wa = /* @__PURE__ */ H(ba, [["__scopeId", "data-v-8d20e006"]]), Pa = {};
1206
- function ka(t, r) {
1206
+ function ka(t, l) {
1207
1207
  const d = ze("router-view");
1208
- return y(), $(d);
1208
+ return v(), $(d);
1209
1209
  }
1210
- const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La = /* @__PURE__ */ A({
1210
+ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa = /* @__PURE__ */ I({
1211
1211
  __name: "PApplication",
1212
1212
  props: {
1213
1213
  theme: {},
@@ -1224,22 +1224,22 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1224
1224
  } }
1225
1225
  },
1226
1226
  setup(t) {
1227
- return (r, d) => {
1227
+ return (l, d) => {
1228
1228
  const h = rt;
1229
- return y(), $(h, {
1229
+ return v(), $(h, {
1230
1230
  locale: a(ct),
1231
1231
  theme: t.theme,
1232
1232
  "theme-overrides": t.themeOverrides,
1233
1233
  "date-locale": a(it)
1234
1234
  }, {
1235
- default: s(() => [
1236
- i(a(dt), null, {
1237
- default: s(() => [
1238
- i(a(ut), null, {
1239
- default: s(() => [
1240
- i(a(ft), null, {
1241
- default: s(() => [
1242
- F(r.$slots, "default")
1235
+ default: i(() => [
1236
+ c(a(ut), null, {
1237
+ default: i(() => [
1238
+ c(a(dt), null, {
1239
+ default: i(() => [
1240
+ c(a(ft), null, {
1241
+ default: i(() => [
1242
+ F(l.$slots, "default")
1243
1243
  ]),
1244
1244
  _: 3
1245
1245
  })
@@ -1254,7 +1254,7 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1254
1254
  }, 8, ["locale", "theme", "theme-overrides", "date-locale"]);
1255
1255
  };
1256
1256
  }
1257
- }), Ta = W(La), $a = /* @__PURE__ */ A({
1257
+ }), Ta = W(Sa), $a = /* @__PURE__ */ I({
1258
1258
  __name: "PModal",
1259
1259
  props: {
1260
1260
  saveBtnText: { default: "保存" },
@@ -1268,89 +1268,89 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1268
1268
  onClose: {}
1269
1269
  },
1270
1270
  emits: ["update:visible", "update:loading"],
1271
- setup(t, { expose: r, emit: d }) {
1272
- const h = fe(), g = t, c = d, x = async () => {
1273
- c("update:loading", !0);
1271
+ setup(t, { expose: l, emit: d }) {
1272
+ const h = fe(), p = t, f = d, C = async () => {
1273
+ f("update:loading", !0);
1274
1274
  try {
1275
- g.onSave && await g.onSave() && w();
1276
- } catch (v) {
1277
- h.error(v.message);
1275
+ p.onSave && await p.onSave() && y();
1276
+ } catch (m) {
1277
+ h.error(m.message);
1278
1278
  } finally {
1279
- c("update:loading", !1);
1279
+ f("update:loading", !1);
1280
1280
  }
1281
- }, w = () => {
1282
- c("update:visible", !1), c("update:loading", !1);
1283
- }, m = async () => {
1281
+ }, y = () => {
1282
+ f("update:visible", !1), f("update:loading", !1);
1283
+ }, S = async () => {
1284
1284
  try {
1285
- g.onClose ? await g.onClose() && w() : w();
1286
- } catch (v) {
1287
- h.error(v.message), c("update:loading", !1);
1285
+ p.onClose ? await p.onClose() && y() : y();
1286
+ } catch (m) {
1287
+ h.error(m.message), f("update:loading", !1);
1288
1288
  }
1289
1289
  };
1290
- return r({
1290
+ return l({
1291
1291
  open: () => {
1292
- c("update:visible", !0), c("update:loading", !1);
1292
+ f("update:visible", !0), f("update:loading", !1);
1293
1293
  },
1294
1294
  close: () => {
1295
- c("update:visible", !1), c("update:loading", !1);
1295
+ f("update:visible", !1), f("update:loading", !1);
1296
1296
  }
1297
- }), (v, u) => {
1298
- const S = pt, o = K, P = Ne;
1299
- return y(), $(a(Re), Pt({
1297
+ }), (m, u) => {
1298
+ const L = gt, n = K, b = Ne;
1299
+ return v(), $(a(Re), Pt({
1300
1300
  ref: "$modal",
1301
1301
  preset: "card"
1302
- }, v.$attrs, {
1302
+ }, m.$attrs, {
1303
1303
  "header-class": "bg-gray-50",
1304
- show: g.visible,
1304
+ show: p.visible,
1305
1305
  draggable: !0,
1306
1306
  closable: !1,
1307
1307
  "close-on-esc": !1,
1308
1308
  "mask-closable": !1,
1309
1309
  bordered: !1,
1310
- style: { width: `${g.width}px` },
1311
- onClose: w
1310
+ style: { width: `${p.width}px` },
1311
+ onClose: y
1312
1312
  }), {
1313
- header: s(() => [
1314
- v.$slots.header ? F(v.$slots, "header", { key: 0 }) : g.title ? (y(), $(S, { key: 1 }, {
1315
- default: s(() => [
1313
+ header: i(() => [
1314
+ m.$slots.header ? F(m.$slots, "header", { key: 0 }) : p.title ? (v(), $(L, { key: 1 }, {
1315
+ default: i(() => [
1316
1316
  Y(q(t.title), 1)
1317
1317
  ]),
1318
1318
  _: 1
1319
- })) : B("", !0)
1319
+ })) : A("", !0)
1320
1320
  ]),
1321
- "header-extra": s(() => [
1322
- F(v.$slots, "header-extra")
1321
+ "header-extra": i(() => [
1322
+ F(m.$slots, "header-extra")
1323
1323
  ]),
1324
- default: s(() => [
1325
- b("div", {
1324
+ default: i(() => [
1325
+ w("div", {
1326
1326
  class: "overflow-y-auto overflow-hidden mt-5",
1327
- style: ue({ maxHeight: `${g.height}px` })
1327
+ style: de({ maxHeight: `${p.height}px` })
1328
1328
  }, [
1329
- F(v.$slots, "default")
1329
+ F(m.$slots, "default")
1330
1330
  ], 4)
1331
1331
  ]),
1332
- footer: s(() => [
1333
- F(v.$slots, "footer")
1332
+ footer: i(() => [
1333
+ F(m.$slots, "footer")
1334
1334
  ]),
1335
- action: s(() => [
1336
- i(P, { justify: "end" }, {
1337
- default: s(() => [
1338
- i(o, {
1335
+ action: i(() => [
1336
+ c(b, { justify: "end" }, {
1337
+ default: i(() => [
1338
+ c(n, {
1339
1339
  type: "primary",
1340
1340
  loading: t.loading,
1341
- onClick: x
1341
+ onClick: C
1342
1342
  }, {
1343
- default: s(() => [
1343
+ default: i(() => [
1344
1344
  Y(q(t.saveBtnText), 1)
1345
1345
  ]),
1346
1346
  _: 1
1347
1347
  }, 8, ["loading"]),
1348
- F(v.$slots, "action-extra", { loading: t.loading }),
1349
- i(o, {
1350
- onClick: m,
1348
+ F(m.$slots, "action-extra", { loading: t.loading }),
1349
+ c(n, {
1350
+ onClick: S,
1351
1351
  loading: t.loading
1352
1352
  }, {
1353
- default: s(() => [...u[0] || (u[0] = [
1353
+ default: i(() => [...u[0] || (u[0] = [
1354
1354
  Y("取消", -1)
1355
1355
  ])]),
1356
1356
  _: 1
@@ -1363,47 +1363,47 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1363
1363
  }, 16, ["show", "style"]);
1364
1364
  };
1365
1365
  }
1366
- }), Oa = W($a), Ea = W(He), Ma = A({
1366
+ }), Oa = W($a), Ea = W(He), Ma = I({
1367
1367
  name: "Redirect",
1368
1368
  setup() {
1369
- const t = le(), r = ne();
1369
+ const t = le(), l = oe();
1370
1370
  return kt(() => {
1371
- const { params: d, query: h } = t, { path: g } = d;
1372
- r.replace({
1373
- path: "/" + (Array.isArray(g) ? g.join("/") : g),
1371
+ const { params: d, query: h } = t, { path: p } = d;
1372
+ l.replace({
1373
+ path: "/" + (Array.isArray(p) ? p.join("/") : p),
1374
1374
  query: h
1375
1375
  });
1376
- }), () => /* @__PURE__ */ React.createElement(gt, null);
1376
+ }), () => /* @__PURE__ */ React.createElement(pt, null);
1377
1377
  }
1378
- }), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */ A({
1378
+ }), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */ I({
1379
1379
  __name: "PIframe",
1380
1380
  setup(t) {
1381
- const r = le(), d = O(!1), h = O(null), g = O("");
1382
- a(r.meta)?.frameSrc && (g.value = a(r.meta)?.frameSrc);
1383
- function c() {
1381
+ const l = le(), d = T(!1), h = T(null), p = T("");
1382
+ a(l.meta)?.frameSrc && (p.value = a(l.meta)?.frameSrc);
1383
+ function f() {
1384
1384
  d.value = !1;
1385
1385
  }
1386
- function x() {
1387
- oe(() => {
1388
- const w = a(h);
1389
- if (!w) return;
1390
- const m = w;
1391
- m.attachEvent ? m.attachEvent("onload", () => {
1392
- c();
1393
- }) : w.onload = () => {
1394
- c();
1386
+ function C() {
1387
+ ne(() => {
1388
+ const y = a(h);
1389
+ if (!y) return;
1390
+ const S = y;
1391
+ S.attachEvent ? S.attachEvent("onload", () => {
1392
+ f();
1393
+ }) : y.onload = () => {
1394
+ f();
1395
1395
  };
1396
1396
  });
1397
1397
  }
1398
- return X(() => {
1399
- d.value = !0, x();
1400
- }), (w, m) => {
1401
- const T = ht;
1402
- return y(), $(T, { show: d.value }, {
1403
- default: s(() => [
1404
- b("div", Na, [
1405
- b("iframe", {
1406
- src: g.value,
1398
+ return Q(() => {
1399
+ d.value = !0, C();
1400
+ }), (y, S) => {
1401
+ const O = ht;
1402
+ return v(), $(O, { show: d.value }, {
1403
+ default: i(() => [
1404
+ w("div", Na, [
1405
+ w("iframe", {
1406
+ src: p.value,
1407
1407
  class: "frame-iframe",
1408
1408
  ref_key: "frameRef",
1409
1409
  ref: h
@@ -1415,99 +1415,99 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1415
1415
  };
1416
1416
  }
1417
1417
  }), Ia = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-161a378e"]]), za = W(Ia), Ba = {}, Wa = { class: "flex flex-col justify-center page-container" };
1418
- function Ha(t, r) {
1418
+ function Ha(t, l) {
1419
1419
  const d = ke;
1420
- return y(), N("div", Wa, [
1421
- i(d, {
1420
+ return v(), N("div", Wa, [
1421
+ c(d, {
1422
1422
  status: "500",
1423
1423
  title: "服务器错误",
1424
1424
  description: "抱歉,服务器出错了"
1425
1425
  })
1426
1426
  ]);
1427
1427
  }
1428
- const ja = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-89cb65c7"]]), Ua = {}, Fa = { class: "flex flex-col justify-center page-container" };
1429
- function qa(t, r) {
1428
+ const Ua = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-89cb65c7"]]), ja = {}, Fa = { class: "flex flex-col justify-center page-container" };
1429
+ function qa(t, l) {
1430
1430
  const d = ke;
1431
- return y(), N("div", Fa, [
1432
- i(d, {
1431
+ return v(), N("div", Fa, [
1432
+ c(d, {
1433
1433
  status: "404",
1434
1434
  title: "资源不存在",
1435
1435
  description: "抱歉,你访问的页面不存在"
1436
1436
  })
1437
1437
  ]);
1438
1438
  }
1439
- const Va = /* @__PURE__ */ H(Ua, [["render", qa], ["__scopeId", "data-v-99232671"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
1440
- function Xa(t, r) {
1439
+ const Va = /* @__PURE__ */ H(ja, [["render", qa], ["__scopeId", "data-v-99232671"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
1440
+ function Xa(t, l) {
1441
1441
  const d = ke;
1442
- return y(), N("div", Ya, [
1443
- i(d, {
1442
+ return v(), N("div", Ya, [
1443
+ c(d, {
1444
1444
  status: "403",
1445
1445
  title: "禁止访问",
1446
1446
  description: "抱歉,你无权访问该页面"
1447
1447
  })
1448
1448
  ]);
1449
1449
  }
1450
- const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3baa9c16"]]), Ja = W(ja), Za = W(Va), Qa = W(Ga), eo = Se("app-oidc", () => {
1450
+ const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3baa9c16"]]), Ja = W(Ua), Za = W(Va), Qa = W(Ga), en = xe("app-oidc", () => {
1451
1451
  const t = Ce({});
1452
1452
  return {
1453
- setCallback: (c) => t.callback = c,
1454
- callCallback: async (c) => await t.callback?.(c),
1455
- setError: (c) => t.error = c,
1456
- callError: async (c, x) => await t.error?.(c, x)
1453
+ setCallback: (f) => t.callback = f,
1454
+ callCallback: async (f) => await t.callback?.(f),
1455
+ setError: (f) => t.error = f,
1456
+ callError: async (f, C) => await t.error?.(f, C)
1457
1457
  };
1458
- }), to = { class: "view-auth-callback" }, ao = /* @__PURE__ */ A({
1458
+ }), tn = { class: "view-auth-callback" }, an = /* @__PURE__ */ I({
1459
1459
  __name: "POidc",
1460
1460
  setup(t) {
1461
- const r = ne(), { callCallback: d, callError: h } = eo();
1462
- return X(async () => {
1461
+ const l = oe(), { callCallback: d, callError: h } = en();
1462
+ return Q(async () => {
1463
1463
  try {
1464
- await d(r);
1465
- } catch (g) {
1466
- await h(r, g);
1464
+ await d(l);
1465
+ } catch (p) {
1466
+ await h(l, p);
1467
1467
  }
1468
- }), (g, c) => (y(), N("div", to, [...c[0] || (c[0] = [
1469
- b("div", { class: "view-auth-callback-content" }, [
1470
- b("div", { class: "view-auth-callback-spinner" }, [
1471
- b("span", null, "正在处理登录回调...")
1468
+ }), (p, f) => (v(), N("div", tn, [...f[0] || (f[0] = [
1469
+ w("div", { class: "view-auth-callback-content" }, [
1470
+ w("div", { class: "view-auth-callback-spinner" }, [
1471
+ w("span", null, "正在处理登录回调...")
1472
1472
  ])
1473
1473
  ], -1)
1474
1474
  ])]));
1475
1475
  }
1476
- }), oo = /* @__PURE__ */ H(ao, [["__scopeId", "data-v-167395ae"]]), no = W(oo), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1476
+ }), nn = /* @__PURE__ */ H(an, [["__scopeId", "data-v-167395ae"]]), on = W(nn), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1477
1477
  __proto__: null,
1478
1478
  P403: Qa,
1479
1479
  P404: Za,
1480
1480
  P500: Ja,
1481
1481
  PApplication: Ta,
1482
- PEmptyLayout: xa,
1482
+ PEmptyLayout: La,
1483
1483
  PIframe: za,
1484
1484
  PLanguage: Ea,
1485
- PLayout: Sa,
1485
+ PLayout: xa,
1486
1486
  PModal: Oa,
1487
- POidc: no,
1487
+ POidc: on,
1488
1488
  PRedirect: Ra,
1489
1489
  PTable: Ft
1490
- }, Symbol.toStringTag, { value: "Module" })), so = (t, r) => (Object.values(lo).forEach((d) => {
1490
+ }, Symbol.toStringTag, { value: "Module" })), sn = (t, l) => (Object.values(ln).forEach((d) => {
1491
1491
  d.install && t.use(d);
1492
- }), r?.(), t), mo = {
1493
- install: so
1492
+ }), l?.(), t), mn = {
1493
+ install: sn
1494
1494
  };
1495
1495
  export {
1496
1496
  Qa as P403,
1497
1497
  Za as P404,
1498
1498
  Ja as P500,
1499
1499
  Ta as PApplication,
1500
- xa as PEmptyLayout,
1500
+ La as PEmptyLayout,
1501
1501
  za as PIframe,
1502
1502
  Ea as PLanguage,
1503
- Sa as PLayout,
1503
+ xa as PLayout,
1504
1504
  Oa as PModal,
1505
- no as POidc,
1505
+ on as POidc,
1506
1506
  Ra as PRedirect,
1507
1507
  Ft as PTable,
1508
- mo as default,
1509
- so as install,
1508
+ mn as default,
1509
+ sn as install,
1510
1510
  Gt as useLanguageStore,
1511
1511
  se as useLayoutStore,
1512
- eo as useOidcStore
1512
+ en as useOidcStore
1513
1513
  };