auto-vue-basic 0.0.90 → 0.0.92

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.
Files changed (37) hide show
  1. package/dist/auto-vue-basic.es.js +1376 -1491
  2. package/dist/auto-vue-basic.umd.js +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/types/views/admin/components/AdminFormModal.vue.d.ts +12 -0
  5. package/dist/types/views/admin/index.vue.d.ts +7712 -0
  6. package/dist/types/views/index.d.ts +14 -0
  7. package/dist/types/views/language/components/LanguageSelect.vue.d.ts +52 -0
  8. package/dist/types/views/language/components/ModuleSelect.vue.d.ts +61 -0
  9. package/dist/types/views/language/form/I18N.vue.d.ts +12 -0
  10. package/dist/types/views/language/form/template.vue.d.ts +7742 -0
  11. package/dist/types/views/language/index.vue.d.ts +7692 -0
  12. package/dist/types/views/language/table/I18N.vue.d.ts +7720 -0
  13. package/dist/types/views/log/error/index.vue.d.ts +6187 -0
  14. package/dist/types/views/log/request/index.vue.d.ts +6187 -0
  15. package/dist/types/views/log/sql/index.vue.d.ts +6187 -0
  16. package/dist/types/views/menu/components/MenuFormModal.vue.d.ts +12 -0
  17. package/dist/types/views/menu/components/MenuRuleFormModal.vue.d.ts +12 -0
  18. package/dist/types/views/menu/components/MenuSelect.vue.d.ts +38 -0
  19. package/dist/types/views/menu/components/TopMenuSelect.vue.d.ts +41 -0
  20. package/dist/types/views/menu/index.vue.d.ts +7734 -0
  21. package/dist/types/views/role/components/RoleFormModal.vue.d.ts +54 -0
  22. package/dist/types/views/role/components/RulesCheck.vue.d.ts +32 -0
  23. package/dist/types/views/role/index.vue.d.ts +7754 -0
  24. package/dist/types/views/site/components/DomainFormModal.vue.d.ts +12 -0
  25. package/dist/types/views/site/components/DomainProviderFormModal.vue.d.ts +12 -0
  26. package/dist/types/views/site/components/DomainProviderSelect.vue.d.ts +31 -0
  27. package/dist/types/views/site/components/DomainProviderTableDrawer.vue.d.ts +6211 -0
  28. package/dist/types/views/site/components/DomainSelect.vue.d.ts +31 -0
  29. package/dist/types/views/site/components/DomainTableDrawer.vue.d.ts +12532 -0
  30. package/dist/types/views/site/components/SSLFormModal.vue.d.ts +57 -0
  31. package/dist/types/views/site/components/SSLLogTableDrawer.vue.d.ts +7705 -0
  32. package/dist/types/views/site/components/SSLTableDrawer.vue.d.ts +6301 -0
  33. package/dist/types/views/site/components/SiteFormModal.vue.d.ts +12 -0
  34. package/dist/types/views/site/components/SiteSelect.vue.d.ts +31 -0
  35. package/dist/types/views/site/index.vue.d.ts +6212 -0
  36. package/dist/version.js +1 -1
  37. package/package.json +5 -5
@@ -1,78 +1,65 @@
1
- import { defineComponent as O, toRef as re, resolveComponent as r, openBlock as S, createBlock as T, unref as e, isRef as N, withCtx as o, createVNode as l, createElementVNode as W, normalizeClass as xe, toDisplayString as I, ref as P, Fragment as H, withKeys as Ve, createElementBlock as j, renderList as ae, isVNode as Re, reactive as Be, onMounted as Pe, watch as Se, nextTick as je, createTextVNode as le, createCommentVNode as Ke, onBeforeMount as We } from "vue";
2
- import { ApiUtils as Q, useLoading as F, useSelect as de, Translate as a, InlineRefreshButton as fe, useForm as ee, FormDialog as oe, DEFAULT_STATUS_KEY as Ue, ModifyButton as ne, useCrudPage as z, DEFAULT_REMOVE_KEY as Ge, ProTable as be, DEFAULT_PAGE_KEY as ye, SearchButton as se, RefreshButton as G, OpenButton as K, useCacheStore as Ye, useDialog as He, BasicDrawer as _e, RequestButton as X, BasicRadioButton as Ce, RulesUtils as Qe, BasicAvatar as Je, TimeUtils as E, ProTableList as ie, AssetsUtils as Le, notification as Xe, DEFAULT_LIST_URL as Ze, REQUEST_LOG_URL as el, ERROR_LOG_URL as ll, SQL_LOG_URL as al } from "auto-vue-manual";
3
- import { Key as ol, Search as nl } from "@element-plus/icons-vue";
4
- const tl = {
1
+ import { defineComponent as O, toRef as ne, resolveComponent as r, openBlock as M, createBlock as T, unref as e, isRef as E, withCtx as o, createVNode as l, createElementVNode as P, normalizeClass as Ae, toDisplayString as z, ref as G, Fragment as j, withKeys as Ve, createElementBlock as N, renderList as le, isVNode as Ce, reactive as je, onMounted as We, watch as Le, nextTick as Ge, createTextVNode as ee, createCommentVNode as Ye, shallowRef as He, onBeforeMount as Qe } from "vue";
2
+ import { ApiUtils as W, useLoading as F, useSelect as te, Translate as a, InlineRefreshButton as fe, useForm as Z, FormDialog as ae, DEFAULT_STATUS_KEY as De, ModifyButton as re, useCrudPage as Q, useSingleFormModal as Te, DEFAULT_REMOVE_KEY as Je, ProTable as be, DEFAULT_PAGE_KEY as ye, SearchButton as de, RefreshButton as K, OpenButton as B, useCacheStore as Xe, useDialog as xe, BasicDrawer as _e, BasicRadioButton as qe, RequestButton as X, RulesUtils as Ze, BasicAvatar as el, TimeUtils as $, ProTableList as ie, useSingleDialog as ve, AssetsUtils as Oe, useSingleTable as ll, notification as al, DEFAULT_LIST_URL as ol, REQUEST_LOG_URL as nl, ERROR_LOG_URL as tl, SQL_LOG_URL as rl } from "auto-vue-manual";
3
+ import { Key as dl, Search as sl } from "@element-plus/icons-vue";
4
+ const ul = {
5
5
  tops: "tops",
6
6
  rules: "rules"
7
- }, J = Q.routineApi("menu", "id", tl, {}, ["TOP_MENU_LIST", "MENU_LIST"]), qe = Q.routineApi("rule", "key"), rl = /* @__PURE__ */ O({
7
+ }, Y = W.routineApi("menu", "id", ul, {}, ["TOP_MENU_LIST", "MENU_LIST"]), $e = W.routineApi("rule", "key"), il = /* @__PURE__ */ O({
8
8
  __name: "TopMenuSelect",
9
9
  props: {
10
- modelValue: {
11
- type: [Number, Array],
12
- required: !0
13
- },
14
- multiple: {
15
- type: Boolean,
16
- default: !1
17
- },
18
- disabled: {
19
- type: Boolean,
20
- default: !1
21
- }
10
+ modelValue: { type: [Number, Array, void 0], required: !0, default: void 0 },
11
+ multiple: { type: Boolean, default: !1 },
12
+ disabled: { type: Boolean, default: !1 }
22
13
  },
23
14
  emits: ["update:modelValue", "change"],
24
- setup(x, {
25
- emit: R
26
- }) {
27
- const k = R, V = x, {
28
- requesting: h
29
- } = F(J), {
30
- value: b,
31
- options: i,
32
- change: m,
33
- refresh: p,
34
- filterOptions: n
35
- } = de(re(V, "modelValue"), k, {
15
+ setup(x, { emit: U }) {
16
+ const v = U, h = x, { requesting: g } = F(Y), { value: b, options: c, change: p, refresh: i, filterOptions: n } = te(ne(h, "modelValue"), v, {
36
17
  key: "TOP_MENU_LIST",
37
- api: J,
38
- url: J.urls.tops,
18
+ api: Y,
19
+ url: Y.urls.tops,
39
20
  isArray: !0
40
21
  });
41
- return (v, u) => {
42
- const f = r("el-space"), g = r("el-select-v2");
43
- return S(), T(g, {
22
+ return (w, u) => {
23
+ const m = r("el-space"), f = r("el-select-v2");
24
+ return M(), T(f, {
44
25
  class: "w-full",
45
26
  modelValue: e(b),
46
- "onUpdate:modelValue": u[1] || (u[1] = (_) => N(b) ? b.value = _ : null),
47
- options: e(i),
27
+ "onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
28
+ options: e(c),
48
29
  multiple: x.multiple,
49
- disabled: e(h) || x.disabled,
30
+ disabled: e(g) || x.disabled,
50
31
  placeholder: e(a)("placeholder.select"),
51
32
  filterable: "",
52
33
  filterOptions: e(n),
53
- onChange: e(m)
34
+ "empty-values": [void 0],
35
+ onChange: e(p)
54
36
  }, {
55
- prefix: o(() => [l(e(fe), {
56
- loading: e(h),
57
- onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
58
- }, null, 8, ["loading"])]),
59
- default: o(({
60
- item: _
61
- }) => [l(f, null, {
62
- default: o(() => [W("i", {
63
- class: xe(`icon iconfont ${_.icon}`)
64
- }, null, 2), W("span", null, I(_.translate), 1)]),
65
- _: 2
66
- }, 1024)]),
37
+ prefix: o(() => [
38
+ l(e(fe), {
39
+ loading: e(g),
40
+ onRefresh: u[0] || (u[0] = (_) => e(i)(!0))
41
+ }, null, 8, ["loading"])
42
+ ]),
43
+ default: o(({ item: _ }) => [
44
+ l(m, null, {
45
+ default: o(() => [
46
+ P("i", {
47
+ class: Ae(`icon iconfont ${_.icon}`)
48
+ }, null, 2),
49
+ P("span", null, z(_.translate), 1)
50
+ ]),
51
+ _: 2
52
+ }, 1024)
53
+ ]),
67
54
  _: 1
68
55
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
69
56
  };
70
57
  }
71
- }), dl = /* @__PURE__ */ O({
58
+ }), pl = /* @__PURE__ */ O({
72
59
  __name: "MenuFormModal",
73
60
  emits: ["refresh"],
74
- setup(x, { expose: R, emit: k }) {
75
- const V = k, h = {
61
+ setup(x, { expose: U, emit: v }) {
62
+ const h = v, g = {
76
63
  id: 0,
77
64
  menu_id: 0,
78
65
  module: "",
@@ -137,36 +124,36 @@ const tl = {
137
124
  trigger: "blur"
138
125
  }
139
126
  ]
140
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, J);
141
- return R({
142
- open: f,
143
- modify: g
144
- }), (w, t) => {
145
- const d = r("el-form-item"), s = r("el-col"), y = r("el-input-number"), c = r("el-row"), L = r("el-input"), M = r("el-switch"), D = r("el-form");
146
- return S(), T(e(oe), {
147
- modelValue: e(i),
148
- "onUpdate:modelValue": t[17] || (t[17] = (U) => N(i) ? i.value = U : null),
149
- title: e(m)(),
127
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, Y);
128
+ return U({
129
+ open: m,
130
+ modify: f
131
+ }), (R, t) => {
132
+ const d = r("el-form-item"), s = r("el-col"), S = r("el-input-number"), k = r("el-row"), A = r("el-input"), V = r("el-switch"), L = r("el-form");
133
+ return M(), T(e(ae), {
134
+ modelValue: e(c),
135
+ "onUpdate:modelValue": t[17] || (t[17] = (y) => E(c) ? c.value = y : null),
136
+ title: e(p)(),
150
137
  width: "1000px",
151
138
  executing: e(u),
152
- onClosed: e(A),
139
+ onClosed: e(D),
153
140
  onSubmit: e(_)
154
141
  }, {
155
142
  default: o(() => [
156
- l(D, {
143
+ l(L, {
157
144
  ref_key: "form",
158
- ref: p,
145
+ ref: i,
159
146
  model: e(n),
160
147
  "label-width": "auto",
161
148
  rules: b,
162
- disabled: e(v) || e(u)
149
+ disabled: e(w) || e(u)
163
150
  }, {
164
151
  default: o(() => [
165
- l(c, { gutter: 20 }, {
152
+ l(k, { gutter: 20 }, {
166
153
  default: o(() => [
167
154
  l(s, { span: 12 }, {
168
155
  default: o(() => [
169
- l(c, { gutter: 10 }, {
156
+ l(k, { gutter: 10 }, {
170
157
  default: o(() => [
171
158
  l(s, { span: 14 }, {
172
159
  default: o(() => [
@@ -175,9 +162,9 @@ const tl = {
175
162
  prop: "menu_id"
176
163
  }, {
177
164
  default: o(() => [
178
- l(rl, {
165
+ l(il, {
179
166
  modelValue: e(n).menu_id,
180
- "onUpdate:modelValue": t[0] || (t[0] = (U) => e(n).menu_id = U),
167
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => e(n).menu_id = y),
181
168
  disabled: e(u)
182
169
  }, null, 8, ["modelValue", "disabled"])
183
170
  ]),
@@ -194,10 +181,10 @@ const tl = {
194
181
  prop: "sort"
195
182
  }, {
196
183
  default: o(() => [
197
- l(y, {
184
+ l(S, {
198
185
  class: "w-full",
199
186
  modelValue: e(n).sort,
200
- "onUpdate:modelValue": t[1] || (t[1] = (U) => e(n).sort = U),
187
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => e(n).sort = y),
201
188
  min: 0,
202
189
  placeholder: e(a)("placeholder.input")
203
190
  }, null, 8, ["modelValue", "placeholder"])
@@ -215,9 +202,9 @@ const tl = {
215
202
  prop: "module"
216
203
  }, {
217
204
  default: o(() => [
218
- l(L, {
205
+ l(A, {
219
206
  modelValue: e(n).module,
220
- "onUpdate:modelValue": t[2] || (t[2] = (U) => e(n).module = U),
207
+ "onUpdate:modelValue": t[2] || (t[2] = (y) => e(n).module = y),
221
208
  placeholder: e(a)("placeholder.input")
222
209
  }, null, 8, ["modelValue", "placeholder"])
223
210
  ]),
@@ -228,9 +215,9 @@ const tl = {
228
215
  prop: "name"
229
216
  }, {
230
217
  default: o(() => [
231
- l(L, {
218
+ l(A, {
232
219
  modelValue: e(n).name,
233
- "onUpdate:modelValue": t[3] || (t[3] = (U) => e(n).name = U),
220
+ "onUpdate:modelValue": t[3] || (t[3] = (y) => e(n).name = y),
234
221
  placeholder: e(a)("placeholder.input")
235
222
  }, null, 8, ["modelValue", "placeholder"])
236
223
  ]),
@@ -241,9 +228,9 @@ const tl = {
241
228
  prop: "en_name"
242
229
  }, {
243
230
  default: o(() => [
244
- l(L, {
231
+ l(A, {
245
232
  modelValue: e(n).en_name,
246
- "onUpdate:modelValue": t[4] || (t[4] = (U) => e(n).en_name = U),
233
+ "onUpdate:modelValue": t[4] || (t[4] = (y) => e(n).en_name = y),
247
234
  placeholder: e(a)("placeholder.input")
248
235
  }, null, 8, ["modelValue", "placeholder"])
249
236
  ]),
@@ -254,9 +241,9 @@ const tl = {
254
241
  prop: "component"
255
242
  }, {
256
243
  default: o(() => [
257
- l(L, {
244
+ l(A, {
258
245
  modelValue: e(n).component,
259
- "onUpdate:modelValue": t[5] || (t[5] = (U) => e(n).component = U),
246
+ "onUpdate:modelValue": t[5] || (t[5] = (y) => e(n).component = y),
260
247
  placeholder: e(a)("placeholder.input")
261
248
  }, null, 8, ["modelValue", "placeholder"])
262
249
  ]),
@@ -267,9 +254,9 @@ const tl = {
267
254
  prop: "url"
268
255
  }, {
269
256
  default: o(() => [
270
- l(L, {
257
+ l(A, {
271
258
  modelValue: e(n).url,
272
- "onUpdate:modelValue": t[6] || (t[6] = (U) => e(n).url = U),
259
+ "onUpdate:modelValue": t[6] || (t[6] = (y) => e(n).url = y),
273
260
  placeholder: e(a)("placeholder.input")
274
261
  }, null, 8, ["modelValue", "placeholder"])
275
262
  ]),
@@ -280,9 +267,9 @@ const tl = {
280
267
  prop: "remark"
281
268
  }, {
282
269
  default: o(() => [
283
- l(L, {
270
+ l(A, {
284
271
  modelValue: e(n).remark,
285
- "onUpdate:modelValue": t[7] || (t[7] = (U) => e(n).remark = U),
272
+ "onUpdate:modelValue": t[7] || (t[7] = (y) => e(n).remark = y),
286
273
  placeholder: e(a)("placeholder.input")
287
274
  }, null, 8, ["modelValue", "placeholder"])
288
275
  ]),
@@ -298,17 +285,17 @@ const tl = {
298
285
  prop: "icon"
299
286
  }, {
300
287
  default: o(() => [
301
- l(L, {
288
+ l(A, {
302
289
  modelValue: e(n).icon,
303
- "onUpdate:modelValue": t[8] || (t[8] = (U) => e(n).icon = U),
290
+ "onUpdate:modelValue": t[8] || (t[8] = (y) => e(n).icon = y),
304
291
  placeholder: e(a)("placeholder.input"),
305
- onInput: t[9] || (t[9] = (U) => {
306
- e(n).meta.icon = U;
292
+ onInput: t[9] || (t[9] = (y) => {
293
+ e(n).meta.icon = y;
307
294
  })
308
295
  }, {
309
296
  prepend: o(() => [
310
- W("span", {
311
- class: xe("iconfont " + e(n).icon)
297
+ P("span", {
298
+ class: Ae("iconfont " + e(n).icon)
312
299
  }, null, 2)
313
300
  ]),
314
301
  _: 1
@@ -321,9 +308,9 @@ const tl = {
321
308
  prop: "meta.title"
322
309
  }, {
323
310
  default: o(() => [
324
- l(L, {
311
+ l(A, {
325
312
  modelValue: e(n).meta.title,
326
- "onUpdate:modelValue": t[10] || (t[10] = (U) => e(n).meta.title = U),
313
+ "onUpdate:modelValue": t[10] || (t[10] = (y) => e(n).meta.title = y),
327
314
  placeholder: e(a)("placeholder.input")
328
315
  }, null, 8, ["modelValue", "placeholder"])
329
316
  ]),
@@ -334,15 +321,15 @@ const tl = {
334
321
  prop: "meta.active"
335
322
  }, {
336
323
  default: o(() => [
337
- l(L, {
324
+ l(A, {
338
325
  modelValue: e(n).meta.active,
339
- "onUpdate:modelValue": t[11] || (t[11] = (U) => e(n).meta.active = U),
326
+ "onUpdate:modelValue": t[11] || (t[11] = (y) => e(n).meta.active = y),
340
327
  placeholder: e(a)("placeholder.input")
341
328
  }, null, 8, ["modelValue", "placeholder"])
342
329
  ]),
343
330
  _: 1
344
331
  }, 8, ["label"]),
345
- l(c, null, {
332
+ l(k, null, {
346
333
  default: o(() => [
347
334
  l(s, { span: 12 }, {
348
335
  default: o(() => [
@@ -351,9 +338,9 @@ const tl = {
351
338
  prop: "meta.link"
352
339
  }, {
353
340
  default: o(() => [
354
- l(M, {
341
+ l(V, {
355
342
  modelValue: e(n).meta.link,
356
- "onUpdate:modelValue": t[12] || (t[12] = (U) => e(n).meta.link = U)
343
+ "onUpdate:modelValue": t[12] || (t[12] = (y) => e(n).meta.link = y)
357
344
  }, null, 8, ["modelValue"])
358
345
  ]),
359
346
  _: 1
@@ -368,9 +355,9 @@ const tl = {
368
355
  prop: "meta.keep_alive"
369
356
  }, {
370
357
  default: o(() => [
371
- l(M, {
358
+ l(V, {
372
359
  modelValue: e(n).meta.keep_alive,
373
- "onUpdate:modelValue": t[13] || (t[13] = (U) => e(n).meta.keep_alive = U)
360
+ "onUpdate:modelValue": t[13] || (t[13] = (y) => e(n).meta.keep_alive = y)
374
361
  }, null, 8, ["modelValue"])
375
362
  ]),
376
363
  _: 1
@@ -385,9 +372,9 @@ const tl = {
385
372
  prop: "meta.hide"
386
373
  }, {
387
374
  default: o(() => [
388
- l(M, {
375
+ l(V, {
389
376
  modelValue: e(n).meta.hide,
390
- "onUpdate:modelValue": t[14] || (t[14] = (U) => e(n).meta.hide = U)
377
+ "onUpdate:modelValue": t[14] || (t[14] = (y) => e(n).meta.hide = y)
391
378
  }, null, 8, ["modelValue"])
392
379
  ]),
393
380
  _: 1
@@ -402,9 +389,9 @@ const tl = {
402
389
  prop: "meta.full"
403
390
  }, {
404
391
  default: o(() => [
405
- l(M, {
392
+ l(V, {
406
393
  modelValue: e(n).meta.full,
407
- "onUpdate:modelValue": t[15] || (t[15] = (U) => e(n).meta.full = U)
394
+ "onUpdate:modelValue": t[15] || (t[15] = (y) => e(n).meta.full = y)
408
395
  }, null, 8, ["modelValue"])
409
396
  ]),
410
397
  _: 1
@@ -419,9 +406,9 @@ const tl = {
419
406
  prop: "meta.affix"
420
407
  }, {
421
408
  default: o(() => [
422
- l(M, {
409
+ l(V, {
423
410
  modelValue: e(n).meta.affix,
424
- "onUpdate:modelValue": t[16] || (t[16] = (U) => e(n).meta.affix = U)
411
+ "onUpdate:modelValue": t[16] || (t[16] = (y) => e(n).meta.affix = y)
425
412
  }, null, 8, ["modelValue"])
426
413
  ]),
427
414
  _: 1
@@ -446,74 +433,57 @@ const tl = {
446
433
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
447
434
  };
448
435
  }
449
- }), sl = /* @__PURE__ */ O({
436
+ }), ml = /* @__PURE__ */ O({
450
437
  __name: "MenuSelect",
451
438
  props: {
452
- modelValue: {
453
- type: [Number, Array],
454
- required: !0
455
- },
456
- multiple: {
457
- type: Boolean,
458
- default: !1
459
- },
460
- disabled: {
461
- type: Boolean,
462
- default: !1
463
- }
439
+ modelValue: { type: [Number, Array], required: !0 },
440
+ multiple: { type: Boolean, default: !1 },
441
+ disabled: { type: Boolean, default: !1 }
464
442
  },
465
443
  emits: ["update:modelValue", "change"],
466
- setup(x, {
467
- emit: R
468
- }) {
469
- const k = R, V = x, {
470
- requesting: h
471
- } = F(J), {
472
- value: b,
473
- options: i,
474
- change: m,
475
- refresh: p,
476
- filterOptions: n
477
- } = de(re(V, "modelValue"), k, {
478
- key: "MENU_LIST",
479
- api: J,
480
- isArray: !0
481
- });
482
- return (v, u) => {
483
- const f = r("el-space"), g = r("el-select-v2");
484
- return S(), T(g, {
444
+ setup(x, { emit: U }) {
445
+ const v = U, h = x, { requesting: g } = F(Y), { value: b, options: c, change: p, refresh: i, filterOptions: n } = te(ne(h, "modelValue"), v, { key: "MENU_LIST", api: Y, isArray: !0 });
446
+ return (w, u) => {
447
+ const m = r("el-space"), f = r("el-select-v2");
448
+ return M(), T(f, {
485
449
  class: "w-full",
486
450
  modelValue: e(b),
487
- "onUpdate:modelValue": u[1] || (u[1] = (_) => N(b) ? b.value = _ : null),
488
- options: e(i),
451
+ "onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
452
+ options: e(c),
489
453
  multiple: x.multiple,
490
- disabled: e(h) || x.disabled,
454
+ disabled: e(g) || x.disabled,
491
455
  placeholder: e(a)("placeholder.select"),
492
456
  filterable: "",
493
457
  filterOptions: e(n),
494
- onChange: e(m)
458
+ "empty-values": [void 0],
459
+ onChange: e(p)
495
460
  }, {
496
- prefix: o(() => [l(e(fe), {
497
- loading: e(h),
498
- onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
499
- }, null, 8, ["loading"])]),
500
- default: o(({
501
- item: _
502
- }) => [l(f, null, {
503
- default: o(() => [W("i", {
504
- class: xe(`icon iconfont ${_.icon}`)
505
- }, null, 2), W("span", null, I(_.translate), 1)]),
506
- _: 2
507
- }, 1024)]),
461
+ prefix: o(() => [
462
+ l(e(fe), {
463
+ loading: e(g),
464
+ onRefresh: u[0] || (u[0] = (_) => e(i)(!0))
465
+ }, null, 8, ["loading"])
466
+ ]),
467
+ default: o(({ item: _ }) => [
468
+ l(m, null, {
469
+ default: o(() => [
470
+ P("i", {
471
+ class: Ae(`icon iconfont ${_.icon}`)
472
+ }, null, 2),
473
+ P("span", null, z(_.translate), 1)
474
+ ]),
475
+ _: 2
476
+ }, 1024)
477
+ ]),
508
478
  _: 1
509
479
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
510
480
  };
511
481
  }
512
- }), ul = /* @__PURE__ */ O({
482
+ }), cl = /* @__PURE__ */ O({
513
483
  __name: "MenuRuleFormModal",
514
484
  emits: ["refresh"],
515
- setup(x, { expose: R, emit: k }) {
516
- const V = k, h = {
485
+ setup(x, { expose: U, emit: v }) {
486
+ const h = v, g = {
517
487
  key: "",
518
488
  menu_id: 0,
519
489
  sort: 0,
@@ -559,43 +529,43 @@ const tl = {
559
529
  trigger: "blur"
560
530
  }
561
531
  ]
562
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, qe);
563
- return R({
564
- open: f,
565
- modify: g
566
- }), (w, t) => {
567
- const d = r("el-form-item"), s = r("el-input-number"), y = r("el-input"), c = r("el-col"), L = r("el-row"), M = r("el-form");
568
- return S(), T(e(oe), {
569
- modelValue: e(i),
570
- "onUpdate:modelValue": t[6] || (t[6] = (D) => N(i) ? i.value = D : null),
571
- title: e(m)("menu.rules"),
532
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, $e);
533
+ return U({
534
+ open: m,
535
+ modify: f
536
+ }), (R, t) => {
537
+ const d = r("el-form-item"), s = r("el-input-number"), S = r("el-input"), k = r("el-col"), A = r("el-row"), V = r("el-form");
538
+ return M(), T(e(ae), {
539
+ modelValue: e(c),
540
+ "onUpdate:modelValue": t[6] || (t[6] = (L) => E(c) ? c.value = L : null),
541
+ title: e(p)("menu.rules"),
572
542
  width: "1000px",
573
543
  executing: e(u),
574
- onClosed: e(A),
544
+ onClosed: e(D),
575
545
  onSubmit: e(_)
576
546
  }, {
577
547
  default: o(() => [
578
- l(M, {
548
+ l(V, {
579
549
  ref_key: "form",
580
- ref: p,
550
+ ref: i,
581
551
  model: e(n),
582
552
  "label-width": "auto",
583
553
  rules: b,
584
- disabled: e(v) || e(u)
554
+ disabled: e(w) || e(u)
585
555
  }, {
586
556
  default: o(() => [
587
- l(L, { gutter: 20 }, {
557
+ l(A, { gutter: 20 }, {
588
558
  default: o(() => [
589
- l(c, { span: 10 }, {
559
+ l(k, { span: 10 }, {
590
560
  default: o(() => [
591
561
  l(d, {
592
562
  label: e(a)("menu.Menu"),
593
563
  prop: "menu_id"
594
564
  }, {
595
565
  default: o(() => [
596
- l(sl, {
566
+ l(ml, {
597
567
  modelValue: e(n).menu_id,
598
- "onUpdate:modelValue": t[0] || (t[0] = (D) => e(n).menu_id = D),
568
+ "onUpdate:modelValue": t[0] || (t[0] = (L) => e(n).menu_id = L),
599
569
  disabled: e(u)
600
570
  }, null, 8, ["modelValue", "disabled"])
601
571
  ]),
@@ -609,7 +579,7 @@ const tl = {
609
579
  l(s, {
610
580
  class: "w-full",
611
581
  modelValue: e(n).sort,
612
- "onUpdate:modelValue": t[1] || (t[1] = (D) => e(n).sort = D),
582
+ "onUpdate:modelValue": t[1] || (t[1] = (L) => e(n).sort = L),
613
583
  min: 0,
614
584
  placeholder: e(a)("placeholder.input")
615
585
  }, null, 8, ["modelValue", "placeholder"])
@@ -621,9 +591,9 @@ const tl = {
621
591
  prop: "name"
622
592
  }, {
623
593
  default: o(() => [
624
- l(y, {
594
+ l(S, {
625
595
  modelValue: e(n).name,
626
- "onUpdate:modelValue": t[2] || (t[2] = (D) => e(n).name = D),
596
+ "onUpdate:modelValue": t[2] || (t[2] = (L) => e(n).name = L),
627
597
  placeholder: e(a)("placeholder.input")
628
598
  }, null, 8, ["modelValue", "placeholder"])
629
599
  ]),
@@ -634,9 +604,9 @@ const tl = {
634
604
  prop: "en_name"
635
605
  }, {
636
606
  default: o(() => [
637
- l(y, {
607
+ l(S, {
638
608
  modelValue: e(n).en_name,
639
- "onUpdate:modelValue": t[3] || (t[3] = (D) => e(n).en_name = D),
609
+ "onUpdate:modelValue": t[3] || (t[3] = (L) => e(n).en_name = L),
640
610
  placeholder: e(a)("placeholder.input")
641
611
  }, null, 8, ["modelValue", "placeholder"])
642
612
  ]),
@@ -647,9 +617,9 @@ const tl = {
647
617
  prop: "remark"
648
618
  }, {
649
619
  default: o(() => [
650
- l(y, {
620
+ l(S, {
651
621
  modelValue: e(n).remark,
652
- "onUpdate:modelValue": t[4] || (t[4] = (D) => e(n).remark = D),
622
+ "onUpdate:modelValue": t[4] || (t[4] = (L) => e(n).remark = L),
653
623
  placeholder: e(a)("placeholder.input")
654
624
  }, null, 8, ["modelValue", "placeholder"])
655
625
  ]),
@@ -658,16 +628,16 @@ const tl = {
658
628
  ]),
659
629
  _: 1
660
630
  }),
661
- l(c, { span: 14 }, {
631
+ l(k, { span: 14 }, {
662
632
  default: o(() => [
663
633
  l(d, {
664
634
  label: e(a)("menu.rules"),
665
635
  prop: "urls"
666
636
  }, {
667
637
  default: o(() => [
668
- l(y, {
638
+ l(S, {
669
639
  modelValue: e(n).urls,
670
- "onUpdate:modelValue": t[5] || (t[5] = (D) => e(n).urls = D),
640
+ "onUpdate:modelValue": t[5] || (t[5] = (L) => e(n).urls = L),
671
641
  type: "textarea",
672
642
  rows: 11,
673
643
  placeholder: e(a)("placeholder.input")
@@ -690,16 +660,16 @@ const tl = {
690
660
  };
691
661
  }
692
662
  });
693
- function Me(x) {
694
- return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Re(x);
663
+ function Se(x) {
664
+ return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Ce(x);
695
665
  }
696
- const jl = /* @__PURE__ */ O({
666
+ const Gl = /* @__PURE__ */ O({
697
667
  __name: "index",
698
668
  setup(x) {
699
- const R = {
669
+ const U = {
700
670
  keyword: "",
701
671
  status: 0
702
- }, k = P(""), V = [
672
+ }, v = G(""), h = [
703
673
  {
704
674
  label: a("base.sort"),
705
675
  prop: "sort",
@@ -727,10 +697,7 @@ const jl = /* @__PURE__ */ O({
727
697
  width: 120,
728
698
  render: ({
729
699
  row: t
730
- }) => {
731
- var d;
732
- return l(H, null, [(d = t.menu) == null ? void 0 : d.translate]);
733
- }
700
+ }) => l(j, null, [t.menu?.translate])
734
701
  },
735
702
  {
736
703
  label: a("base.name"),
@@ -758,45 +725,42 @@ const jl = /* @__PURE__ */ O({
758
725
  render: ({
759
726
  row: t
760
727
  }) => l(r("el-space"), null, {
761
- default: () => {
762
- var d;
763
- return [(d = t.rules) == null ? void 0 : d.map((s) => l(r("el-popover"), {
764
- visible: k.value === s.key,
765
- title: a("message.warning"),
766
- placement: "top-end",
767
- width: 220
768
- }, {
769
- reference: () => l(r("el-tag"), {
770
- class: "cursor-pointer",
771
- closable: !0,
772
- key: s.key,
773
- onClick: () => A({
774
- key: s.key
775
- }),
776
- onClose: () => k.value = s.key
777
- }, {
778
- default: () => [s.translate]
728
+ default: () => [t.rules?.map((d) => l(r("el-popover"), {
729
+ visible: v.value === d.key,
730
+ title: a("message.warning"),
731
+ placement: "top-end",
732
+ width: 220
733
+ }, {
734
+ reference: () => l(r("el-tag"), {
735
+ class: "cursor-pointer",
736
+ closable: !0,
737
+ key: d.key,
738
+ onClick: () => D({
739
+ key: d.key
779
740
  }),
780
- default: () => {
781
- let y, c;
782
- return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${t.translate}-${s.translate} ?`]), l("div", {
783
- style: "text-align: right; margin: 0"
784
- }, [l(r("el-button"), {
785
- size: "small",
786
- text: !0,
787
- onClick: () => k.value = ""
788
- }, Me(y = a("base.cancel")) ? y : {
789
- default: () => [y]
790
- }), l(r("el-button"), {
791
- size: "small",
792
- type: "danger",
793
- onClick: () => w(s.key)
794
- }, Me(c = a("base.confirm")) ? c : {
795
- default: () => [c]
796
- })])]);
797
- }
798
- }))];
799
- }
741
+ onClose: () => v.value = d.key
742
+ }, {
743
+ default: () => [d.translate]
744
+ }),
745
+ default: () => {
746
+ let s, S;
747
+ return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${t.translate}-${d.translate} ?`]), l("div", {
748
+ style: "text-align: right; margin: 0"
749
+ }, [l(r("el-button"), {
750
+ size: "small",
751
+ text: !0,
752
+ onClick: () => v.value = ""
753
+ }, Se(s = a("base.cancel")) ? s : {
754
+ default: () => [s]
755
+ }), l(r("el-button"), {
756
+ size: "small",
757
+ type: "danger",
758
+ onClick: () => R(d.key)
759
+ }, Se(S = a("base.confirm")) ? S : {
760
+ default: () => [S]
761
+ })])]);
762
+ }
763
+ }))]
800
764
  })
801
765
  },
802
766
  {
@@ -807,7 +771,7 @@ const jl = /* @__PURE__ */ O({
807
771
  props: {
808
772
  activeValue: 1,
809
773
  inactiveValue: 2,
810
- api: J.urls[Ue],
774
+ api: Y.urls[De],
811
775
  refresh: !0
812
776
  }
813
777
  },
@@ -818,80 +782,80 @@ const jl = /* @__PURE__ */ O({
818
782
  align: "center",
819
783
  render: ({
820
784
  row: t
821
- }) => l(ne, {
785
+ }) => l(re, {
822
786
  size: "default",
823
- onModify: () => f({
787
+ onModify: () => m({
824
788
  id: t.id
825
789
  })
826
790
  }, null)
827
791
  }
828
792
  ], {
829
- requesting: h
830
- } = F(J), {
793
+ requesting: g
794
+ } = F(Y), {
831
795
  tableRef: b,
832
- formModalRef: i,
833
- keyword: m,
834
- search: p,
796
+ formModalRef: c,
797
+ keyword: p,
798
+ search: i,
835
799
  refresh: n,
836
- reset: v,
800
+ reset: w,
837
801
  openFormModal: u,
838
- editFormModal: f
839
- } = z(R), {
840
- formModalRef: g,
841
- openFormModal: _,
842
- editFormModal: A
843
- } = z(), w = (t) => {
844
- qe[Ge]({
802
+ editFormModal: m
803
+ } = Q(U), {
804
+ formRef: f,
805
+ open: _,
806
+ edit: D
807
+ } = Te(), R = (t) => {
808
+ $e[Je]({
845
809
  key: t
846
810
  }).then(() => {
847
- k.value = "", n();
811
+ v.value = "", n();
848
812
  });
849
813
  };
850
814
  return (t, d) => {
851
- const s = r("el-button"), y = r("el-input"), c = r("el-radio-button"), L = r("el-radio-group"), M = r("el-space"), D = r("el-page-header"), U = r("el-card");
852
- return S(), T(U, {
815
+ const s = r("el-button"), S = r("el-input"), k = r("el-radio-button"), A = r("el-radio-group"), V = r("el-space"), L = r("el-page-header"), y = r("el-card");
816
+ return M(), T(y, {
853
817
  class: "basic-card flex-full",
854
818
  "body-class": "flex-1",
855
- onClick: d[5] || (d[5] = () => k.value = "")
819
+ onClick: d[5] || (d[5] = () => v.value = "")
856
820
  }, {
857
- header: o(() => [l(D, {
821
+ header: o(() => [l(L, {
858
822
  class: "basic-header"
859
823
  }, {
860
- title: o(() => [l(e(G), {
861
- loading: e(h),
862
- onRefresh: e(v)
863
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
824
+ title: o(() => [l(e(K), {
825
+ loading: e(g),
826
+ onRefresh: e(w)
827
+ }, null, 8, ["loading", "onRefresh"]), l(e(B), {
864
828
  onOpen: e(u)
865
829
  }, null, 8, ["onOpen"]), l(s, {
866
830
  circle: "",
867
- icon: e(ol),
831
+ icon: e(dl),
868
832
  onClick: e(_)
869
833
  }, null, 8, ["icon", "onClick"])]),
870
- content: o(() => [l(M, {
834
+ content: o(() => [l(V, {
871
835
  class: "search-bar"
872
836
  }, {
873
- default: o(() => [l(y, {
837
+ default: o(() => [l(S, {
874
838
  class: "basic-search-input",
875
- modelValue: e(m).keyword,
876
- "onUpdate:modelValue": d[0] || (d[0] = (C) => e(m).keyword = C),
839
+ modelValue: e(p).keyword,
840
+ "onUpdate:modelValue": d[0] || (d[0] = (C) => e(p).keyword = C),
877
841
  placeholder: e(a)("placeholder.keyword"),
878
842
  clearable: "",
879
- onKeyup: d[1] || (d[1] = Ve((C) => e(p)(), ["enter"])),
880
- onClear: d[2] || (d[2] = (C) => e(p)())
881
- }, null, 8, ["modelValue", "placeholder"]), l(L, {
882
- modelValue: e(m).status,
883
- "onUpdate:modelValue": d[3] || (d[3] = (C) => e(m).status = C),
884
- onChange: d[4] || (d[4] = (C) => e(p)())
843
+ onKeyup: d[1] || (d[1] = Ve((C) => e(i)(), ["enter"])),
844
+ onClear: d[2] || (d[2] = (C) => e(i)())
845
+ }, null, 8, ["modelValue", "placeholder"]), l(A, {
846
+ modelValue: e(p).status,
847
+ "onUpdate:modelValue": d[3] || (d[3] = (C) => e(p).status = C),
848
+ onChange: d[4] || (d[4] = (C) => e(i)())
885
849
  }, {
886
- default: o(() => [(S(), j(H, null, ae([0, 1, 2], (C) => l(c, {
850
+ default: o(() => [(M(), N(j, null, le([0, 1, 2], (C) => l(k, {
887
851
  key: C,
888
852
  label: e(a)(`status.${C}`),
889
853
  value: C
890
854
  }, null, 8, ["label", "value"])), 64))]),
891
855
  _: 1
892
- }, 8, ["modelValue"]), l(e(se), {
893
- disabled: e(h),
894
- onSearch: e(p)
856
+ }, 8, ["modelValue"]), l(e(de), {
857
+ disabled: e(g),
858
+ onSearch: e(i)
895
859
  }, null, 8, ["disabled", "onSearch"])]),
896
860
  _: 1
897
861
  })]),
@@ -900,111 +864,105 @@ const jl = /* @__PURE__ */ O({
900
864
  default: o(() => [l(e(be), {
901
865
  ref_key: "tableRef",
902
866
  ref: b,
903
- columns: V,
904
- url: e(J).urls[e(ye)],
905
- "search-param": e(m),
867
+ columns: h,
868
+ url: e(Y).urls[e(ye)],
869
+ "search-param": e(p),
906
870
  "auto-search": ""
907
- }, null, 8, ["url", "search-param"]), l(dl, {
871
+ }, null, 8, ["url", "search-param"]), l(pl, {
908
872
  ref_key: "formModalRef",
909
- ref: i,
873
+ ref: c,
910
874
  onRefresh: e(n)
911
- }, null, 8, ["onRefresh"]), l(ul, {
875
+ }, null, 8, ["onRefresh"]), l(cl, {
912
876
  ref_key: "ruleFormModalRef",
913
- ref: g,
877
+ ref: f,
914
878
  onRefresh: e(n)
915
879
  }, null, 8, ["onRefresh"])]),
916
880
  _: 1
917
881
  });
918
882
  };
919
883
  }
920
- }), ve = Q.routineApi("role", "key"), il = { class: "rule-check" }, pl = { style: { width: "80px", "line-height": "36px" } }, ml = /* @__PURE__ */ O({
884
+ }), we = W.routineApi("role", "key"), fl = { class: "rule-check" }, bl = { style: { width: "80px", "line-height": "36px" } }, _l = /* @__PURE__ */ O({
921
885
  __name: "RulesCheck",
922
886
  props: {
923
887
  modelValue: { type: Array, required: !0 },
924
888
  disabled: { type: Boolean, default: !1 }
925
889
  },
926
890
  emits: ["update:modelValue"],
927
- setup(x, { expose: R, emit: k }) {
928
- const { requesting: V } = F(J), h = x, b = k, i = P(!1), m = Be({
891
+ setup(x, { expose: U, emit: v }) {
892
+ const { requesting: h } = F(Y), g = x, b = v, c = G(!1), p = je({
929
893
  checkAll: !1,
930
894
  indeterminate: !1,
931
895
  MenuAll: {},
932
896
  MenuList: {},
933
897
  MenuIndeterminate: {}
934
- }), { options: p, refresh: n } = de(re(h, "modelValue"), b, { key: "RULE_CHECK", api: J, url: J.urls.rules, isArray: !0 }, { autoRefresh: !1 });
935
- function v() {
936
- p.value.forEach((w) => {
937
- var t;
938
- (t = w.rules) != null && t.length && (m.MenuAll[w.id] = !1, m.MenuIndeterminate[w.id] = !1, m.MenuList[w.id] = []);
898
+ }), { options: i, refresh: n } = te(ne(g, "modelValue"), b, { key: "RULE_CHECK", api: Y, url: Y.urls.rules, isArray: !0 }, { autoRefresh: !1 });
899
+ function w() {
900
+ i.value.forEach((R) => {
901
+ R.rules?.length && (p.MenuAll[R.id] = !1, p.MenuIndeterminate[R.id] = !1, p.MenuList[R.id] = []);
939
902
  });
940
903
  }
941
- function u(w) {
942
- p.value.forEach((t) => {
943
- var d;
944
- (d = t.rules) != null && d.length && (m.MenuList[t.id] = w ? t.rules.map((s) => s.key) : []);
945
- }), g();
904
+ function u(R) {
905
+ i.value.forEach((t) => {
906
+ t.rules?.length && (p.MenuList[t.id] = R ? t.rules.map((d) => d.key) : []);
907
+ }), f();
946
908
  }
947
- function f(w, t) {
948
- const d = p.value.find((s) => s.id === t);
949
- m.MenuList[t] = w && d ? d.rules.map((s) => s.key) : [], g();
909
+ function m(R, t) {
910
+ const d = i.value.find((s) => s.id === t);
911
+ p.MenuList[t] = R && d ? d.rules.map((s) => s.key) : [], f();
950
912
  }
951
- function g() {
952
- p.value.forEach((w) => {
953
- var s, y;
954
- const t = ((s = w.rules) == null ? void 0 : s.length) || 0, d = ((y = m.MenuList[w.id]) == null ? void 0 : y.length) || 0;
955
- m.MenuAll[w.id] = d === t && t > 0, m.MenuIndeterminate[w.id] = d > 0 && d < t;
956
- }), m.checkAll = Object.values(m.MenuAll).every(Boolean), m.indeterminate = !m.checkAll && Object.values(m.MenuList).some((w) => w.length > 0), b("update:modelValue", Object.values(m.MenuList).flat());
913
+ function f() {
914
+ i.value.forEach((R) => {
915
+ const t = R.rules?.length || 0, d = p.MenuList[R.id]?.length || 0;
916
+ p.MenuAll[R.id] = d === t && t > 0, p.MenuIndeterminate[R.id] = d > 0 && d < t;
917
+ }), p.checkAll = Object.values(p.MenuAll).every(Boolean), p.indeterminate = !p.checkAll && Object.values(p.MenuList).some((R) => R.length > 0), b("update:modelValue", Object.values(p.MenuList).flat());
957
918
  }
958
919
  function _() {
959
- m.checkAll = !1, m.indeterminate = !1, m.MenuAll = {}, m.MenuList = {}, m.MenuIndeterminate = {}, v(), b("update:modelValue", []), i.value = !1;
920
+ p.checkAll = !1, p.indeterminate = !1, p.MenuAll = {}, p.MenuList = {}, p.MenuIndeterminate = {}, w(), b("update:modelValue", []), c.value = !1;
960
921
  }
961
- function A(w) {
962
- var t;
963
- if (Array.isArray(p.value) && p.value.length > 0) {
964
- for (let d of p.value)
965
- if (Array.isArray(d.rules) && d.rules.length > 0)
966
- for (let s of d.rules)
967
- w.some((y) => y === s.key) && (m.MenuList[d.id] = (((t = m.MenuList) == null ? void 0 : t[d.id]) || []).concat([s.key]));
968
- g(), i.value = !0;
922
+ function D(R) {
923
+ if (Array.isArray(i.value) && i.value.length > 0) {
924
+ for (let t of i.value)
925
+ if (Array.isArray(t.rules) && t.rules.length > 0)
926
+ for (let d of t.rules)
927
+ R.some((s) => s === d.key) && (p.MenuList[t.id] = (p.MenuList?.[t.id] || []).concat([d.key]));
928
+ f(), c.value = !0;
969
929
  }
970
930
  }
971
- return Pe(async () => {
972
- var w;
973
- (w = p.value) != null && w.length || await n(), !i.value && h.modelValue && A(h.modelValue);
974
- }), Se(
975
- () => h.modelValue,
976
- (w) => {
977
- je(() => {
978
- var t;
979
- i.value || !((t = p.value) != null && t.length) || w && w.length > 0 && A(w);
931
+ return We(async () => {
932
+ i.value?.length || await n(), !c.value && g.modelValue && D(g.modelValue);
933
+ }), Le(
934
+ () => g.modelValue,
935
+ (R) => {
936
+ Ge(() => {
937
+ c.value || !i.value?.length || R && R.length > 0 && D(R);
980
938
  });
981
939
  },
982
940
  { deep: !0, immediate: !0 }
983
- ), R({
984
- generateOption: A,
941
+ ), U({
942
+ generateOption: D,
985
943
  cleanChecked: _
986
- }), (w, t) => {
987
- const d = r("el-checkbox"), s = r("el-space"), y = r("el-text"), c = r("el-divider"), L = r("el-checkbox-group");
988
- return S(), j("div", il, [
944
+ }), (R, t) => {
945
+ const d = r("el-checkbox"), s = r("el-space"), S = r("el-text"), k = r("el-divider"), A = r("el-checkbox-group");
946
+ return M(), N("div", fl, [
989
947
  l(s, { style: { "margin-bottom": "6px" } }, {
990
948
  default: o(() => [
991
949
  l(d, {
992
- "model-value": m.checkAll,
993
- indeterminate: m.indeterminate,
950
+ "model-value": p.checkAll,
951
+ indeterminate: p.indeterminate,
994
952
  id: "all",
995
953
  disabled: x.disabled,
996
954
  onChange: u
997
955
  }, {
998
956
  default: o(() => [...t[1] || (t[1] = [
999
- W("span", null, "全选", -1)
957
+ P("span", null, "全选", -1)
1000
958
  ])]),
1001
959
  _: 1
1002
960
  }, 8, ["model-value", "indeterminate", "disabled"]),
1003
- l(e(G), {
1004
- loading: e(V),
961
+ l(e(K), {
962
+ loading: e(h),
1005
963
  text: "",
1006
964
  size: "small",
1007
- onRefresh: t[0] || (t[0] = (M) => e(n)(!0))
965
+ onRefresh: t[0] || (t[0] = (V) => e(n)(!0))
1008
966
  }, null, 8, ["loading"])
1009
967
  ]),
1010
968
  _: 1
@@ -1015,8 +973,8 @@ const jl = /* @__PURE__ */ O({
1015
973
  class: "rule-check-content"
1016
974
  }, {
1017
975
  default: o(() => [
1018
- (S(!0), j(H, null, ae(e(p), (M) => (S(), j("div", {
1019
- key: M.id
976
+ (M(!0), N(j, null, le(e(i), (V) => (M(), N("div", {
977
+ key: V.id
1020
978
  }, [
1021
979
  l(s, {
1022
980
  direction: "horizontal",
@@ -1025,43 +983,43 @@ const jl = /* @__PURE__ */ O({
1025
983
  default: o(() => [
1026
984
  l(d, {
1027
985
  style: { "min-width": "150px" },
1028
- "model-value": m.MenuAll[M.id],
1029
- disabled: x.disabled || !M.rules || M.rules.length <= 0,
1030
- indeterminate: m.MenuIndeterminate[M.id],
1031
- onChange: (D) => f(D, M.id)
986
+ "model-value": p.MenuAll[V.id],
987
+ disabled: x.disabled || !V.rules || V.rules.length <= 0,
988
+ indeterminate: p.MenuIndeterminate[V.id],
989
+ onChange: (L) => m(L, V.id)
1032
990
  }, {
1033
991
  default: o(() => [
1034
- l(y, { style: { "font-size": "15px" } }, {
992
+ l(S, { style: { "font-size": "15px" } }, {
1035
993
  default: o(() => [
1036
- le(I(M.translate), 1)
994
+ ee(z(V.translate), 1)
1037
995
  ]),
1038
996
  _: 2
1039
997
  }, 1024)
1040
998
  ]),
1041
999
  _: 2
1042
1000
  }, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
1043
- l(c, { direction: "vertical" }),
1044
- M.rules ? (S(), T(L, {
1001
+ l(k, { direction: "vertical" }),
1002
+ V.rules ? (M(), T(A, {
1045
1003
  key: 0,
1046
- modelValue: m.MenuList[M.id],
1047
- "onUpdate:modelValue": (D) => m.MenuList[M.id] = D,
1004
+ modelValue: p.MenuList[V.id],
1005
+ "onUpdate:modelValue": (L) => p.MenuList[V.id] = L,
1048
1006
  disabled: x.disabled,
1049
1007
  style: { margin: "auto" },
1050
- onChange: g
1008
+ onChange: f
1051
1009
  }, {
1052
1010
  default: o(() => [
1053
- (S(!0), j(H, null, ae(M.rules, (D) => (S(), T(d, {
1054
- key: D.key,
1055
- value: D.key
1011
+ (M(!0), N(j, null, le(V.rules, (L) => (M(), T(d, {
1012
+ key: L.key,
1013
+ value: L.key
1056
1014
  }, {
1057
1015
  default: o(() => [
1058
- W("div", pl, I(D.translate), 1)
1016
+ P("div", bl, z(L.translate), 1)
1059
1017
  ]),
1060
1018
  _: 2
1061
1019
  }, 1032, ["value"]))), 128))
1062
1020
  ]),
1063
1021
  _: 2
1064
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Ke("", !0)
1022
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Ye("", !0)
1065
1023
  ]),
1066
1024
  _: 2
1067
1025
  }, 1024)
@@ -1072,16 +1030,16 @@ const jl = /* @__PURE__ */ O({
1072
1030
  ]);
1073
1031
  };
1074
1032
  }
1075
- }), Te = (x, R) => {
1076
- const k = x.__vccOpts || x;
1077
- for (const [V, h] of R)
1078
- k[V] = h;
1079
- return k;
1080
- }, cl = /* @__PURE__ */ Te(ml, [["__scopeId", "data-v-7adb5f76"]]), fl = /* @__PURE__ */ O({
1033
+ }), Ee = (x, U) => {
1034
+ const v = x.__vccOpts || x;
1035
+ for (const [h, g] of U)
1036
+ v[h] = g;
1037
+ return v;
1038
+ }, gl = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-7adb5f76"]]), hl = /* @__PURE__ */ O({
1081
1039
  __name: "RoleFormModal",
1082
1040
  emits: ["refresh"],
1083
- setup(x, { expose: R, emit: k }) {
1084
- const V = k, h = P(), b = {
1041
+ setup(x, { expose: U, emit: v }) {
1042
+ const h = v, g = G(), b = {
1085
1043
  key: "",
1086
1044
  module: "",
1087
1045
  sort: 0,
@@ -1089,7 +1047,7 @@ const jl = /* @__PURE__ */ O({
1089
1047
  en_name: "",
1090
1048
  remark: "",
1091
1049
  rules: []
1092
- }, i = {
1050
+ }, c = {
1093
1051
  name: [
1094
1052
  {
1095
1053
  required: !0,
@@ -1104,46 +1062,45 @@ const jl = /* @__PURE__ */ O({
1104
1062
  trigger: "blur"
1105
1063
  }
1106
1064
  ]
1107
- }, { modal: m, title: p, form: n, formData: v, requesting: u, executing: f, open: g, modify: _, submit: A, closed: w } = ee(V, b, ve), t = () => {
1108
- var d;
1109
- (d = h.value) == null || d.cleanChecked(), w();
1065
+ }, { modal: p, title: i, form: n, formData: w, requesting: u, executing: m, open: f, modify: _, submit: D, closed: R } = Z(h, b, we), t = () => {
1066
+ g.value?.cleanChecked(), R();
1110
1067
  };
1111
- return R({
1112
- open: g,
1068
+ return U({
1069
+ open: f,
1113
1070
  modify: _
1114
1071
  }), (d, s) => {
1115
- const y = r("el-input"), c = r("el-form-item"), L = r("el-col"), M = r("el-input-number"), D = r("el-row"), U = r("el-form");
1116
- return S(), T(e(oe), {
1117
- modelValue: e(m),
1118
- "onUpdate:modelValue": s[6] || (s[6] = (C) => N(m) ? m.value = C : null),
1119
- title: e(p)(),
1072
+ const S = r("el-input"), k = r("el-form-item"), A = r("el-col"), V = r("el-input-number"), L = r("el-row"), y = r("el-form");
1073
+ return M(), T(e(ae), {
1074
+ modelValue: e(p),
1075
+ "onUpdate:modelValue": s[6] || (s[6] = (C) => E(p) ? p.value = C : null),
1076
+ title: e(i)(),
1120
1077
  width: "1000px",
1121
- executing: e(f),
1078
+ executing: e(m),
1122
1079
  onClosed: t,
1123
- onSubmit: e(A)
1080
+ onSubmit: e(D)
1124
1081
  }, {
1125
1082
  default: o(() => [
1126
- l(U, {
1083
+ l(y, {
1127
1084
  ref_key: "form",
1128
1085
  ref: n,
1129
- model: e(v),
1086
+ model: e(w),
1130
1087
  "label-width": "auto",
1131
- rules: i,
1132
- disabled: e(u) || e(f)
1088
+ rules: c,
1089
+ disabled: e(u) || e(m)
1133
1090
  }, {
1134
1091
  default: o(() => [
1135
- l(D, { gutter: 20 }, {
1092
+ l(L, { gutter: 20 }, {
1136
1093
  default: o(() => [
1137
- l(L, { span: 12 }, {
1094
+ l(A, { span: 12 }, {
1138
1095
  default: o(() => [
1139
- l(c, {
1096
+ l(k, {
1140
1097
  label: e(a)("base.module"),
1141
1098
  prop: "module"
1142
1099
  }, {
1143
1100
  default: o(() => [
1144
- l(y, {
1145
- modelValue: e(v).module,
1146
- "onUpdate:modelValue": s[0] || (s[0] = (C) => e(v).module = C),
1101
+ l(S, {
1102
+ modelValue: e(w).module,
1103
+ "onUpdate:modelValue": s[0] || (s[0] = (C) => e(w).module = C),
1147
1104
  placeholder: e(a)("placeholder.input")
1148
1105
  }, null, 8, ["modelValue", "placeholder"])
1149
1106
  ]),
@@ -1152,17 +1109,17 @@ const jl = /* @__PURE__ */ O({
1152
1109
  ]),
1153
1110
  _: 1
1154
1111
  }),
1155
- l(L, { span: 12 }, {
1112
+ l(A, { span: 12 }, {
1156
1113
  default: o(() => [
1157
- l(c, {
1114
+ l(k, {
1158
1115
  label: e(a)("base.sort"),
1159
1116
  prop: "sort"
1160
1117
  }, {
1161
1118
  default: o(() => [
1162
- l(M, {
1119
+ l(V, {
1163
1120
  class: "w-full",
1164
- modelValue: e(v).sort,
1165
- "onUpdate:modelValue": s[1] || (s[1] = (C) => e(v).sort = C),
1121
+ modelValue: e(w).sort,
1122
+ "onUpdate:modelValue": s[1] || (s[1] = (C) => e(w).sort = C),
1166
1123
  min: 0,
1167
1124
  placeholder: e(a)("placeholder.input")
1168
1125
  }, null, 8, ["modelValue", "placeholder"])
@@ -1175,56 +1132,56 @@ const jl = /* @__PURE__ */ O({
1175
1132
  ]),
1176
1133
  _: 1
1177
1134
  }),
1178
- l(c, {
1135
+ l(k, {
1179
1136
  label: e(a)("base.name"),
1180
1137
  prop: "name"
1181
1138
  }, {
1182
1139
  default: o(() => [
1183
- l(y, {
1184
- modelValue: e(v).name,
1185
- "onUpdate:modelValue": s[2] || (s[2] = (C) => e(v).name = C),
1140
+ l(S, {
1141
+ modelValue: e(w).name,
1142
+ "onUpdate:modelValue": s[2] || (s[2] = (C) => e(w).name = C),
1186
1143
  placeholder: e(a)("placeholder.input")
1187
1144
  }, null, 8, ["modelValue", "placeholder"])
1188
1145
  ]),
1189
1146
  _: 1
1190
1147
  }, 8, ["label"]),
1191
- l(c, {
1148
+ l(k, {
1192
1149
  label: e(a)("base.en_name"),
1193
1150
  prop: "en_name"
1194
1151
  }, {
1195
1152
  default: o(() => [
1196
- l(y, {
1197
- modelValue: e(v).en_name,
1198
- "onUpdate:modelValue": s[3] || (s[3] = (C) => e(v).en_name = C),
1153
+ l(S, {
1154
+ modelValue: e(w).en_name,
1155
+ "onUpdate:modelValue": s[3] || (s[3] = (C) => e(w).en_name = C),
1199
1156
  placeholder: e(a)("placeholder.input")
1200
1157
  }, null, 8, ["modelValue", "placeholder"])
1201
1158
  ]),
1202
1159
  _: 1
1203
1160
  }, 8, ["label"]),
1204
- l(c, {
1161
+ l(k, {
1205
1162
  label: e(a)("base.remark"),
1206
1163
  prop: "remark"
1207
1164
  }, {
1208
1165
  default: o(() => [
1209
- l(y, {
1210
- modelValue: e(v).remark,
1211
- "onUpdate:modelValue": s[4] || (s[4] = (C) => e(v).remark = C),
1166
+ l(S, {
1167
+ modelValue: e(w).remark,
1168
+ "onUpdate:modelValue": s[4] || (s[4] = (C) => e(w).remark = C),
1212
1169
  placeholder: e(a)("placeholder.input")
1213
1170
  }, null, 8, ["modelValue", "placeholder"])
1214
1171
  ]),
1215
1172
  _: 1
1216
1173
  }, 8, ["label"]),
1217
- l(c, {
1174
+ l(k, {
1218
1175
  label: e(a)("menu.rules"),
1219
1176
  prop: "rules"
1220
1177
  }, {
1221
1178
  default: o(() => [
1222
- l(cl, {
1179
+ l(gl, {
1223
1180
  ref_key: "rulesCheck",
1224
- ref: h,
1225
- modelValue: e(v).rules,
1226
- "onUpdate:modelValue": s[5] || (s[5] = (C) => e(v).rules = C),
1227
- disabled: e(u) || e(f)
1181
+ ref: g,
1182
+ modelValue: e(w).rules,
1183
+ "onUpdate:modelValue": s[5] || (s[5] = (C) => e(w).rules = C),
1184
+ disabled: e(u) || e(m)
1228
1185
  }, null, 8, ["modelValue", "disabled"])
1229
1186
  ]),
1230
1187
  _: 1
@@ -1237,12 +1194,12 @@ const jl = /* @__PURE__ */ O({
1237
1194
  }, 8, ["modelValue", "title", "executing", "onSubmit"]);
1238
1195
  };
1239
1196
  }
1240
- }), Kl = /* @__PURE__ */ O({
1197
+ }), Yl = /* @__PURE__ */ O({
1241
1198
  __name: "index",
1242
1199
  setup(x) {
1243
- const R = {
1200
+ const U = {
1244
1201
  keyword: ""
1245
- }, k = [
1202
+ }, v = [
1246
1203
  {
1247
1204
  label: a("base.sort"),
1248
1205
  prop: "sort",
@@ -1275,55 +1232,55 @@ const jl = /* @__PURE__ */ O({
1275
1232
  width: 65,
1276
1233
  align: "center",
1277
1234
  render: ({
1278
- row: f
1279
- }) => l(ne, {
1235
+ row: m
1236
+ }) => l(re, {
1280
1237
  size: "default",
1281
1238
  onModify: () => u({
1282
- key: f.key
1239
+ key: m.key
1283
1240
  })
1284
1241
  }, null)
1285
1242
  }
1286
1243
  ], {
1287
- requesting: V
1288
- } = F(ve), {
1289
- tableRef: h,
1244
+ requesting: h
1245
+ } = F(we), {
1246
+ tableRef: g,
1290
1247
  formModalRef: b,
1291
- keyword: i,
1292
- search: m,
1293
- reset: p,
1248
+ keyword: c,
1249
+ search: p,
1250
+ reset: i,
1294
1251
  refresh: n,
1295
- openFormModal: v,
1252
+ openFormModal: w,
1296
1253
  editFormModal: u
1297
- } = z(R);
1298
- return (f, g) => {
1299
- const _ = r("el-input"), A = r("el-space"), w = r("el-page-header"), t = r("el-card");
1300
- return S(), T(t, {
1254
+ } = Q(U);
1255
+ return (m, f) => {
1256
+ const _ = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
1257
+ return M(), T(t, {
1301
1258
  class: "basic-card flex-full",
1302
1259
  "body-class": "flex-1"
1303
1260
  }, {
1304
- header: o(() => [l(w, {
1261
+ header: o(() => [l(R, {
1305
1262
  class: "basic-header"
1306
1263
  }, {
1307
- title: o(() => [l(e(G), {
1308
- loading: e(V),
1309
- onRefresh: e(p)
1310
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
1311
- onOpen: e(v)
1264
+ title: o(() => [l(e(K), {
1265
+ loading: e(h),
1266
+ onRefresh: e(i)
1267
+ }, null, 8, ["loading", "onRefresh"]), l(e(B), {
1268
+ onOpen: e(w)
1312
1269
  }, null, 8, ["onOpen"])]),
1313
- content: o(() => [l(A, {
1270
+ content: o(() => [l(D, {
1314
1271
  class: "search-bar"
1315
1272
  }, {
1316
1273
  default: o(() => [l(_, {
1317
1274
  class: "basic-search-input",
1318
- modelValue: e(i).keyword,
1319
- "onUpdate:modelValue": g[0] || (g[0] = (d) => e(i).keyword = d),
1275
+ modelValue: e(c).keyword,
1276
+ "onUpdate:modelValue": f[0] || (f[0] = (d) => e(c).keyword = d),
1320
1277
  placeholder: e(a)("placeholder.keyword"),
1321
1278
  clearable: "",
1322
- onKeyup: g[1] || (g[1] = Ve((d) => e(m)(), ["enter"])),
1323
- onClear: g[2] || (g[2] = (d) => e(m)())
1324
- }, null, 8, ["modelValue", "placeholder"]), l(e(se), {
1325
- disabled: e(V),
1326
- onSearch: g[3] || (g[3] = (d) => e(m)())
1279
+ onKeyup: f[1] || (f[1] = Ve((d) => e(p)(), ["enter"])),
1280
+ onClear: f[2] || (f[2] = (d) => e(p)())
1281
+ }, null, 8, ["modelValue", "placeholder"]), l(e(de), {
1282
+ disabled: e(h),
1283
+ onSearch: f[3] || (f[3] = (d) => e(p)())
1327
1284
  }, null, 8, ["disabled"])]),
1328
1285
  _: 1
1329
1286
  })]),
@@ -1331,12 +1288,12 @@ const jl = /* @__PURE__ */ O({
1331
1288
  })]),
1332
1289
  default: o(() => [l(e(be), {
1333
1290
  ref_key: "tableRef",
1334
- ref: h,
1335
- columns: k,
1336
- url: e(ve).urls[e(ye)],
1337
- "search-param": e(i),
1291
+ ref: g,
1292
+ columns: v,
1293
+ url: e(we).urls[e(ye)],
1294
+ "search-param": e(c),
1338
1295
  "auto-search": ""
1339
- }, null, 8, ["url", "search-param"]), l(fl, {
1296
+ }, null, 8, ["url", "search-param"]), l(hl, {
1340
1297
  ref_key: "formModalRef",
1341
1298
  ref: b,
1342
1299
  onRefresh: e(n)
@@ -1345,12 +1302,12 @@ const jl = /* @__PURE__ */ O({
1345
1302
  });
1346
1303
  };
1347
1304
  }
1348
- }), Y = Q.routineApi("I18N", "uuid", {
1305
+ }), H = W.routineApi("I18N", "uuid", {
1349
1306
  modules: "modules",
1350
1307
  languages: "languages"
1351
- }, { gen: "gen" }, ["I18N_MODULES"]), ue = Q.routineApi("I18N_template", "uuid", {
1308
+ }, { gen: "gen" }, ["I18N_MODULES"]), ue = W.routineApi("I18N_template", "uuid", {
1352
1309
  apps: "apps"
1353
- }), Oe = /* @__PURE__ */ O({
1310
+ }), Fe = /* @__PURE__ */ O({
1354
1311
  __name: "ModuleSelect",
1355
1312
  props: {
1356
1313
  modelValue: {
@@ -1377,58 +1334,58 @@ const jl = /* @__PURE__ */ O({
1377
1334
  },
1378
1335
  emits: ["update:modelValue", "update:value", "change"],
1379
1336
  setup(x, {
1380
- emit: R
1337
+ emit: U
1381
1338
  }) {
1382
- const k = R, V = x, {
1383
- requesting: h
1384
- } = F(Y), {
1339
+ const v = U, h = x, {
1340
+ requesting: g
1341
+ } = F(H), {
1385
1342
  value: b,
1386
- options: i,
1387
- change: m,
1388
- refresh: p,
1343
+ options: c,
1344
+ change: p,
1345
+ refresh: i,
1389
1346
  filterOptions: n
1390
- } = de(re(V, "modelValue"), k, {
1347
+ } = te(ne(h, "modelValue"), v, {
1391
1348
  key: "I18N_MODULES",
1392
- url: Y.urls.modules,
1393
- api: Y,
1349
+ url: H.urls.modules,
1350
+ api: H,
1394
1351
  isArray: !0
1395
1352
  });
1396
- return (v, u) => {
1397
- const f = r("el-space"), g = r("el-select-v2");
1398
- return S(), T(g, {
1353
+ return (w, u) => {
1354
+ const m = r("el-space"), f = r("el-select-v2");
1355
+ return M(), T(f, {
1399
1356
  class: "w-full",
1400
1357
  modelValue: e(b),
1401
- "onUpdate:modelValue": u[1] || (u[1] = (_) => N(b) ? b.value = _ : null),
1402
- options: e(i),
1358
+ "onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
1359
+ options: e(c),
1403
1360
  multiple: x.multiple,
1404
- disabled: e(h) || x.disabled,
1361
+ disabled: e(g) || x.disabled,
1405
1362
  clearable: x.clearable,
1406
1363
  filterable: "",
1407
1364
  "allow-create": x.allowCreate,
1408
1365
  "default-first-option": "",
1409
1366
  placeholder: e(a)("placeholder.select"),
1410
1367
  filterOptions: e(n),
1411
- onChange: e(m)
1368
+ onChange: e(p)
1412
1369
  }, {
1413
1370
  prefix: o(() => [l(e(fe), {
1414
- loading: e(h),
1415
- onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
1371
+ loading: e(g),
1372
+ onRefresh: u[0] || (u[0] = (_) => e(i)(!0))
1416
1373
  }, null, 8, ["loading"])]),
1417
1374
  default: o(({
1418
1375
  item: _
1419
- }) => [l(f, null, {
1420
- default: o(() => [W("span", null, I(_.value), 1)]),
1376
+ }) => [l(m, null, {
1377
+ default: o(() => [P("span", null, z(_.value), 1)]),
1421
1378
  _: 2
1422
1379
  }, 1024)]),
1423
1380
  _: 1
1424
1381
  }, 8, ["modelValue", "options", "multiple", "disabled", "clearable", "allow-create", "placeholder", "filterOptions", "onChange"]);
1425
1382
  };
1426
1383
  }
1427
- }), bl = /* @__PURE__ */ O({
1384
+ }), Vl = /* @__PURE__ */ O({
1428
1385
  __name: "I18N",
1429
1386
  emits: ["refresh"],
1430
- setup(x, { expose: R, emit: k }) {
1431
- const V = k, h = {
1387
+ setup(x, { expose: U, emit: v }) {
1388
+ const h = v, g = {
1432
1389
  uuid: "",
1433
1390
  key: "",
1434
1391
  module: void 0,
@@ -1459,93 +1416,93 @@ const jl = /* @__PURE__ */ O({
1459
1416
  trigger: "change"
1460
1417
  }
1461
1418
  ]
1462
- }, i = P([]), m = Ye();
1463
- function p() {
1419
+ }, c = G([]), p = Xe();
1420
+ function i() {
1464
1421
  const s = {
1465
1422
  isArray: !0,
1466
1423
  key: "I18N_LANGUAGES",
1467
- url: Y.urls.languages,
1424
+ url: H.urls.languages,
1468
1425
  params: {}
1469
1426
  };
1470
- m.GET_CACHE({ ...s, force: !0 }).then((y) => {
1471
- i.value = y;
1427
+ p.GET_CACHE({ ...s, force: !0 }).then((S) => {
1428
+ c.value = S;
1472
1429
  });
1473
1430
  }
1474
- p();
1475
- const { modal: n, title: v, form: u, formData: f, requesting: g, executing: _, open: A, modify: w, submit: t, closed: d } = ee(V, h, Y);
1476
- return R({
1477
- open: A,
1478
- modify: w
1479
- }), (s, y) => {
1480
- const c = r("el-form-item"), L = r("el-input"), M = r("el-space"), D = r("el-form");
1481
- return S(), T(e(oe), {
1431
+ i();
1432
+ const { modal: n, title: w, form: u, formData: m, requesting: f, executing: _, open: D, modify: R, submit: t, closed: d } = Z(h, g, H);
1433
+ return U({
1434
+ open: D,
1435
+ modify: R
1436
+ }), (s, S) => {
1437
+ const k = r("el-form-item"), A = r("el-input"), V = r("el-space"), L = r("el-form");
1438
+ return M(), T(e(ae), {
1482
1439
  modelValue: e(n),
1483
- "onUpdate:modelValue": y[3] || (y[3] = (U) => N(n) ? n.value = U : null),
1484
- title: e(v)(),
1440
+ "onUpdate:modelValue": S[3] || (S[3] = (y) => E(n) ? n.value = y : null),
1441
+ title: e(w)(),
1485
1442
  width: "600px",
1486
1443
  executing: e(_),
1487
1444
  onClosed: e(d),
1488
1445
  onSubmit: e(t)
1489
1446
  }, {
1490
1447
  default: o(() => [
1491
- l(D, {
1448
+ l(L, {
1492
1449
  ref_key: "form",
1493
1450
  ref: u,
1494
- model: e(f),
1451
+ model: e(m),
1495
1452
  "label-width": "auto",
1496
1453
  rules: b,
1497
- disabled: e(g) || e(_)
1454
+ disabled: e(f) || e(_)
1498
1455
  }, {
1499
1456
  default: o(() => [
1500
- l(c, {
1457
+ l(k, {
1501
1458
  label: e(a)("i18n.module"),
1502
1459
  prop: "module",
1503
1460
  required: ""
1504
1461
  }, {
1505
1462
  default: o(() => [
1506
- l(Oe, {
1507
- modelValue: e(f).module,
1508
- "onUpdate:modelValue": y[0] || (y[0] = (U) => e(f).module = U),
1463
+ l(Fe, {
1464
+ modelValue: e(m).module,
1465
+ "onUpdate:modelValue": S[0] || (S[0] = (y) => e(m).module = y),
1509
1466
  disabled: e(_),
1510
1467
  "allow-create": ""
1511
1468
  }, null, 8, ["modelValue", "disabled"])
1512
1469
  ]),
1513
1470
  _: 1
1514
1471
  }, 8, ["label"]),
1515
- l(c, {
1472
+ l(k, {
1516
1473
  label: e(a)("i18n.key"),
1517
1474
  prop: "key",
1518
1475
  required: ""
1519
1476
  }, {
1520
1477
  default: o(() => [
1521
- l(L, {
1522
- modelValue: e(f).key,
1523
- "onUpdate:modelValue": y[1] || (y[1] = (U) => e(f).key = U),
1478
+ l(A, {
1479
+ modelValue: e(m).key,
1480
+ "onUpdate:modelValue": S[1] || (S[1] = (y) => e(m).key = y),
1524
1481
  placeholder: e(a)("i18n.placeholder.key")
1525
1482
  }, null, 8, ["modelValue", "placeholder"])
1526
1483
  ]),
1527
1484
  _: 1
1528
1485
  }, 8, ["label"]),
1529
- l(c, {
1486
+ l(k, {
1530
1487
  label: e(a)("i18n.language"),
1531
1488
  prop: "language",
1532
1489
  required: ""
1533
1490
  }, {
1534
1491
  default: o(() => [
1535
- l(M, {
1492
+ l(V, {
1536
1493
  direction: "vertical",
1537
1494
  fill: "",
1538
1495
  style: { width: "100%" }
1539
1496
  }, {
1540
1497
  default: o(() => [
1541
- (S(!0), j(H, null, ae(i.value, (U) => (S(), j("div", { key: U }, [
1542
- l(L, {
1543
- modelValue: e(f).language[U],
1544
- "onUpdate:modelValue": (C) => e(f).language[U] = C,
1498
+ (M(!0), N(j, null, le(c.value, (y) => (M(), N("div", { key: y }, [
1499
+ l(A, {
1500
+ modelValue: e(m).language[y],
1501
+ "onUpdate:modelValue": (C) => e(m).language[y] = C,
1545
1502
  placeholder: e(a)("i18n.placeholder.language")
1546
1503
  }, {
1547
1504
  prepend: o(() => [
1548
- le(I(U), 1)
1505
+ ee(z(y), 1)
1549
1506
  ]),
1550
1507
  _: 2
1551
1508
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
@@ -1556,14 +1513,14 @@ const jl = /* @__PURE__ */ O({
1556
1513
  ]),
1557
1514
  _: 1
1558
1515
  }, 8, ["label"]),
1559
- l(c, {
1516
+ l(k, {
1560
1517
  label: e(a)("base.remark"),
1561
1518
  prop: "remark"
1562
1519
  }, {
1563
1520
  default: o(() => [
1564
- l(L, {
1565
- modelValue: e(f).remark,
1566
- "onUpdate:modelValue": y[2] || (y[2] = (U) => e(f).remark = U),
1521
+ l(A, {
1522
+ modelValue: e(m).remark,
1523
+ "onUpdate:modelValue": S[2] || (S[2] = (y) => e(m).remark = y),
1567
1524
  placeholder: e(a)("placeholder.remark")
1568
1525
  }, null, 8, ["modelValue", "placeholder"])
1569
1526
  ]),
@@ -1577,195 +1534,150 @@ const jl = /* @__PURE__ */ O({
1577
1534
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
1578
1535
  };
1579
1536
  }
1580
- });
1581
- function _l(x) {
1582
- return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Re(x);
1583
- }
1584
- const $e = /* @__PURE__ */ O({
1537
+ }), ze = /* @__PURE__ */ O({
1585
1538
  __name: "I18N",
1586
1539
  emits: ["closed", "choosed"],
1587
- setup(x, {
1588
- expose: R,
1589
- emit: k
1590
- }) {
1591
- const V = k, {
1592
- visible: h,
1593
- open: b,
1594
- close: i
1595
- } = He(void 0, () => V("closed")), m = {
1540
+ setup(x, { expose: U, emit: v }) {
1541
+ const h = v, { visible: g, open: b, close: c } = xe(void 0, () => h("closed")), p = {
1596
1542
  keyword: "",
1597
1543
  module: void 0,
1598
1544
  status: 0
1599
- }, p = ({
1600
- row: M
1601
- }) => {
1602
- const U = Object.keys(M.language).filter((C) => !!M.language[C]).map((C) => `${C}: ${M.language[C]}`).join("; ");
1603
- return l(r("el-space"), null, _l(U) ? U : {
1604
- default: () => [U]
1605
- });
1606
- }, n = ({
1607
- row: M
1608
- }) => l(r("el-space"), null, {
1609
- default: () => [l(ne, {
1610
- size: "default",
1611
- onModify: () => y({
1612
- uuid: M.uuid
1613
- })
1614
- }, null), l(X, {
1615
- size: "default",
1616
- text: !0,
1617
- type: "danger",
1618
- loading: f.value,
1619
- onClick: () => c(M.uuid)
1620
- }, null)]
1621
- }), v = [{
1622
- label: a("i18n.module"),
1623
- prop: "module",
1624
- width: 120
1625
- }, {
1626
- label: a("i18n.key"),
1627
- prop: "key",
1628
- width: 200
1629
- }, {
1630
- label: a("i18n.i18n"),
1631
- align: "left",
1632
- prop: "language",
1633
- render: p
1634
- }, {
1635
- label: a("base.status"),
1636
- prop: "checked",
1637
- width: 80,
1638
- type: "switch",
1639
- props: {
1640
- activeValue: 1,
1641
- inactiveValue: 2,
1642
- api: Y.urls[Ue],
1643
- refresh: !0
1545
+ }, i = [
1546
+ { label: a("i18n.module"), prop: "module", width: 120 },
1547
+ { label: a("i18n.key"), prop: "key", width: 200 },
1548
+ {
1549
+ label: a("i18n.i18n"),
1550
+ align: "left",
1551
+ prop: "language"
1552
+ // render: renderLeft
1553
+ },
1554
+ {
1555
+ label: a("base.status"),
1556
+ prop: "checked",
1557
+ width: 80,
1558
+ type: "switch",
1559
+ props: {
1560
+ activeValue: 1,
1561
+ inactiveValue: 2,
1562
+ api: H.urls[De],
1563
+ refresh: !0
1564
+ }
1565
+ },
1566
+ {
1567
+ prop: "action",
1568
+ label: a("base.action"),
1569
+ width: 120,
1570
+ align: "center"
1571
+ // render: renderAction
1644
1572
  }
1645
- }, {
1646
- prop: "action",
1647
- label: a("base.action"),
1648
- width: 120,
1649
- align: "center",
1650
- render: n
1651
- }], {
1652
- requesting: u,
1653
- executing: f
1654
- } = F(Y), {
1655
- tableRef: g,
1656
- formModalRef: _,
1657
- keyword: A,
1658
- search: w,
1659
- reset: t,
1660
- refresh: d,
1661
- openFormModal: s,
1662
- editFormModal: y
1663
- } = z(m);
1664
- function c(M) {
1665
- return Y.remove({
1666
- uuid: M
1667
- }).finally(() => {
1668
- d();
1669
- });
1670
- }
1671
- function L(M) {
1672
- V("choosed", M);
1573
+ ], { requesting: n } = F(H), { tableRef: w, formModalRef: u, keyword: m, search: f, reset: _, refresh: D, openFormModal: R } = Q(p);
1574
+ function t(d) {
1575
+ h("choosed", d);
1673
1576
  }
1674
- return R({
1577
+ return U({
1675
1578
  open: b
1676
- }), (M, D) => {
1677
- const U = r("el-input"), C = r("el-radio-button"), q = r("el-radio-group"), te = r("el-space"), $ = r("el-page-header");
1678
- return S(), T(e(_e), {
1579
+ }), (d, s) => {
1580
+ const S = r("el-input"), k = r("el-radio-button"), A = r("el-radio-group"), V = r("el-space"), L = r("el-page-header");
1581
+ return M(), T(e(_e), {
1679
1582
  class: "basic-drawer",
1680
- modelValue: e(h),
1681
- "onUpdate:modelValue": D[7] || (D[7] = (B) => N(h) ? h.value = B : null),
1583
+ modelValue: e(g),
1584
+ "onUpdate:modelValue": s[7] || (s[7] = (y) => E(g) ? g.value = y : null),
1682
1585
  width: "880px",
1683
1586
  "show-close": !1,
1684
- onClosed: e(i)
1587
+ onClosed: e(c)
1685
1588
  }, {
1686
- title: o(() => [l($, {
1687
- class: "basic-header"
1688
- }, {
1689
- title: o(() => [l(e(G), {
1690
- loading: e(u),
1691
- onRefresh: e(t)
1692
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
1693
- onOpen: e(s),
1694
- disabled: e(u)
1695
- }, null, 8, ["onOpen", "disabled"])]),
1696
- content: o(() => [l(te, {
1697
- class: "search-bar"
1698
- }, {
1699
- default: o(() => [l(U, {
1700
- style: {
1701
- width: "160px"
1702
- },
1703
- modelValue: e(A).keyword,
1704
- "onUpdate:modelValue": D[0] || (D[0] = (B) => e(A).keyword = B),
1705
- disabled: e(u),
1706
- placeholder: e(a)("placeholder.keyword"),
1707
- clearable: "",
1708
- onKeyup: D[1] || (D[1] = Ve((B) => e(w)(), ["enter"])),
1709
- onClear: D[2] || (D[2] = (B) => e(w)())
1710
- }, null, 8, ["modelValue", "disabled", "placeholder"]), l(Oe, {
1711
- modelValue: e(A).module,
1712
- "onUpdate:modelValue": D[3] || (D[3] = (B) => e(A).module = B),
1713
- clearable: !0,
1714
- disabled: e(u),
1715
- style: {
1716
- width: "160px"
1717
- }
1718
- }, null, 8, ["modelValue", "disabled"]), l(q, {
1719
- modelValue: e(A).status,
1720
- "onUpdate:modelValue": D[4] || (D[4] = (B) => e(A).status = B),
1721
- onChange: D[5] || (D[5] = (B) => e(w)()),
1722
- disabled: e(u)
1723
- }, {
1724
- default: o(() => [(S(), j(H, null, ae([0, 1, 2], (B) => l(C, {
1725
- key: B,
1726
- label: e(a)(`status.${B}`),
1727
- value: B
1728
- }, null, 8, ["label", "value"])), 64))]),
1729
- _: 1
1730
- }, 8, ["modelValue", "disabled"]), l(e(se), {
1731
- disabled: e(u),
1732
- onSearch: D[6] || (D[6] = (B) => e(w)())
1733
- }, null, 8, ["disabled"])]),
1589
+ title: o(() => [
1590
+ l(L, { class: "basic-header" }, {
1591
+ title: o(() => [
1592
+ l(e(K), {
1593
+ loading: e(n),
1594
+ onRefresh: e(_)
1595
+ }, null, 8, ["loading", "onRefresh"]),
1596
+ l(e(B), {
1597
+ onOpen: e(R),
1598
+ disabled: e(n)
1599
+ }, null, 8, ["onOpen", "disabled"])
1600
+ ]),
1601
+ content: o(() => [
1602
+ l(V, { class: "search-bar" }, {
1603
+ default: o(() => [
1604
+ l(S, {
1605
+ style: { width: "160px" },
1606
+ modelValue: e(m).keyword,
1607
+ "onUpdate:modelValue": s[0] || (s[0] = (y) => e(m).keyword = y),
1608
+ disabled: e(n),
1609
+ placeholder: e(a)("placeholder.keyword"),
1610
+ clearable: "",
1611
+ onKeyup: s[1] || (s[1] = Ve((y) => e(f)(), ["enter"])),
1612
+ onClear: s[2] || (s[2] = (y) => e(f)())
1613
+ }, null, 8, ["modelValue", "disabled", "placeholder"]),
1614
+ l(Fe, {
1615
+ modelValue: e(m).module,
1616
+ "onUpdate:modelValue": s[3] || (s[3] = (y) => e(m).module = y),
1617
+ clearable: !0,
1618
+ disabled: e(n),
1619
+ style: { width: "160px" }
1620
+ }, null, 8, ["modelValue", "disabled"]),
1621
+ l(A, {
1622
+ modelValue: e(m).status,
1623
+ "onUpdate:modelValue": s[4] || (s[4] = (y) => e(m).status = y),
1624
+ onChange: s[5] || (s[5] = (y) => e(f)()),
1625
+ disabled: e(n)
1626
+ }, {
1627
+ default: o(() => [
1628
+ (M(), N(j, null, le([0, 1, 2], (y) => l(k, {
1629
+ key: y,
1630
+ label: e(a)(`status.${y}`),
1631
+ value: y
1632
+ }, null, 8, ["label", "value"])), 64))
1633
+ ]),
1634
+ _: 1
1635
+ }, 8, ["modelValue", "disabled"]),
1636
+ l(e(de), {
1637
+ disabled: e(n),
1638
+ onSearch: s[6] || (s[6] = (y) => e(f)())
1639
+ }, null, 8, ["disabled"])
1640
+ ]),
1641
+ _: 1
1642
+ })
1643
+ ]),
1734
1644
  _: 1
1735
- })]),
1736
- _: 1
1737
- })]),
1738
- default: o(() => [l(e(be), {
1739
- ref_key: "tableRef",
1740
- ref: g,
1741
- columns: v,
1742
- url: e(Y).urls[e(ye)],
1743
- "search-param": e(A),
1744
- onRowDblclick: L,
1745
- "auto-search": ""
1746
- }, null, 8, ["url", "search-param"]), l(bl, {
1747
- ref_key: "formModalRef",
1748
- ref: _,
1749
- onRefresh: e(d)
1750
- }, null, 8, ["onRefresh"])]),
1645
+ })
1646
+ ]),
1647
+ default: o(() => [
1648
+ l(e(be), {
1649
+ ref_key: "tableRef",
1650
+ ref: w,
1651
+ columns: i,
1652
+ url: e(H).urls[e(ye)],
1653
+ "search-param": e(m),
1654
+ onRowDblclick: t,
1655
+ "auto-search": ""
1656
+ }, null, 8, ["url", "search-param"]),
1657
+ l(Vl, {
1658
+ ref_key: "formModalRef",
1659
+ ref: u,
1660
+ onRefresh: e(D)
1661
+ }, null, 8, ["onRefresh"])
1662
+ ]),
1751
1663
  _: 1
1752
1664
  }, 8, ["modelValue", "onClosed"]);
1753
1665
  };
1754
1666
  }
1755
- }), gl = { key: 0 }, hl = { key: 1 }, Vl = /* @__PURE__ */ O({
1667
+ }), yl = { key: 0 }, kl = { key: 1 }, vl = /* @__PURE__ */ O({
1756
1668
  __name: "template",
1757
1669
  emits: ["refresh"],
1758
- setup(x, { expose: R, emit: k }) {
1759
- const { formModalRef: V, openFormModal: h } = z(), b = k, i = P("600px"), m = P({
1670
+ setup(x, { expose: U, emit: v }) {
1671
+ const h = He(), g = () => h.value?.open(), b = v, c = G("600px"), p = G({
1760
1672
  "zh-CN": "primary",
1761
1673
  "en-US": "success"
1762
- }), p = P({}), n = {
1674
+ }), i = G({}), n = {
1763
1675
  uuid: "",
1764
1676
  app: 1,
1765
1677
  keys: "",
1766
1678
  values: [],
1767
1679
  remark: ""
1768
- }, v = {
1680
+ }, w = {
1769
1681
  app: [
1770
1682
  {
1771
1683
  required: !0,
@@ -1787,55 +1699,54 @@ const $e = /* @__PURE__ */ O({
1787
1699
  trigger: "change"
1788
1700
  }
1789
1701
  ]
1790
- }, { modal: u, title: f, form: g, formData: _, requesting: A, executing: w, open: t, modify: d, submit: s, closed: y } = ee(b, n, ue);
1791
- function c() {
1792
- i.value = "1080px", h();
1702
+ }, { modal: u, title: m, form: f, formData: _, requesting: D, executing: R, open: t, modify: d, submit: s, closed: S } = Z(b, n, ue);
1703
+ function k() {
1704
+ c.value = "1080px", g();
1793
1705
  }
1794
- function L() {
1795
- i.value = "600px";
1706
+ function A() {
1707
+ c.value = "600px";
1796
1708
  }
1797
- function M(C) {
1798
- var te;
1799
- let q = ((te = C == null ? void 0 : C.module) == null ? void 0 : te.toLowerCase()) + "." + C.key.toLowerCase();
1709
+ function V(C) {
1710
+ let q = C?.module?.toLowerCase() + "." + C.key.toLowerCase();
1800
1711
  _.keys = q, _.values.push(q);
1801
- for (const $ in C.language)
1802
- p.value[$] || (p.value[$] = []), p.value[$].push(C.language[$]);
1712
+ for (const oe in C.language)
1713
+ i.value[oe] || (i.value[oe] = []), i.value[oe].push(C.language[oe]);
1803
1714
  }
1804
- function D() {
1805
- i.value = "600px", U();
1715
+ function L() {
1716
+ c.value = "600px", y();
1806
1717
  }
1807
- function U() {
1808
- _.keys = "", _.values = [], p.value = {
1718
+ function y() {
1719
+ _.keys = "", _.values = [], i.value = {
1809
1720
  "zh-CN": [],
1810
1721
  "en-US": []
1811
1722
  };
1812
1723
  }
1813
- return Se(() => u.value, (C) => {
1814
- C ? D() : y();
1815
- }), R({
1724
+ return Le(() => u.value, (C) => {
1725
+ C ? L() : S();
1726
+ }), U({
1816
1727
  open: t,
1817
1728
  modify: d
1818
1729
  }), (C, q) => {
1819
- const te = r("el-page-header"), $ = r("el-form-item"), B = r("el-button"), Ae = r("el-input"), ze = r("el-tag"), Ie = r("el-space"), Ne = r("el-form");
1820
- return S(), T(e(_e), {
1730
+ const oe = r("el-page-header"), se = r("el-form-item"), Re = r("el-button"), I = r("el-input"), Be = r("el-tag"), Pe = r("el-space"), Ke = r("el-form");
1731
+ return M(), T(e(_e), {
1821
1732
  modelValue: e(u),
1822
- "onUpdate:modelValue": q[3] || (q[3] = (Z) => N(u) ? u.value = Z : null),
1823
- width: i.value,
1733
+ "onUpdate:modelValue": q[3] || (q[3] = (J) => E(u) ? u.value = J : null),
1734
+ width: c.value,
1824
1735
  "show-close": !1,
1825
1736
  class: "basic-drawer"
1826
1737
  }, {
1827
1738
  title: o(() => [
1828
- l(te, { class: "basic-header" }, {
1739
+ l(oe, { class: "basic-header" }, {
1829
1740
  title: o(() => [
1830
- le(I(e(f)("i18n.template")), 1)
1741
+ ee(z(e(m)("i18n.template")), 1)
1831
1742
  ]),
1832
1743
  extra: o(() => [
1833
1744
  l(e(X), {
1834
1745
  size: "default",
1835
1746
  type: "default",
1836
1747
  icon: "icon-clear",
1837
- loading: e(w),
1838
- onClick: U
1748
+ loading: e(R),
1749
+ onClick: y
1839
1750
  }, null, 8, ["loading"]),
1840
1751
  l(e(X), {
1841
1752
  circle: !1,
@@ -1843,7 +1754,7 @@ const $e = /* @__PURE__ */ O({
1843
1754
  type: "primary",
1844
1755
  icon: "icon-save",
1845
1756
  plain: !1,
1846
- loading: e(w),
1757
+ loading: e(R),
1847
1758
  onClick: e(s)
1848
1759
  }, null, 8, ["loading", "onClick"])
1849
1760
  ]),
@@ -1851,24 +1762,24 @@ const $e = /* @__PURE__ */ O({
1851
1762
  })
1852
1763
  ]),
1853
1764
  default: o(() => [
1854
- l(Ne, {
1765
+ l(Ke, {
1855
1766
  ref_key: "form",
1856
- ref: g,
1767
+ ref: f,
1857
1768
  model: e(_),
1858
1769
  "label-width": "auto",
1859
- rules: v,
1860
- disabled: e(A) || e(w)
1770
+ rules: w,
1771
+ disabled: e(D) || e(R)
1861
1772
  }, {
1862
1773
  default: o(() => [
1863
- l($, {
1774
+ l(se, {
1864
1775
  label: e(a)("base.app"),
1865
1776
  prop: "app",
1866
1777
  required: ""
1867
1778
  }, {
1868
1779
  default: o(() => [
1869
- l(e(Ce), {
1780
+ l(e(qe), {
1870
1781
  modelValue: e(_).app,
1871
- "onUpdate:modelValue": q[0] || (q[0] = (Z) => e(_).app = Z),
1782
+ "onUpdate:modelValue": q[0] || (q[0] = (J) => e(_).app = J),
1872
1783
  "cache-key": "I18NAPPS",
1873
1784
  hidden: [0],
1874
1785
  url: e(ue).urls.apps
@@ -1876,21 +1787,21 @@ const $e = /* @__PURE__ */ O({
1876
1787
  ]),
1877
1788
  _: 1
1878
1789
  }, 8, ["label"]),
1879
- l($, {
1790
+ l(se, {
1880
1791
  label: e(a)("i18n.keys"),
1881
1792
  prop: "keys",
1882
1793
  required: ""
1883
1794
  }, {
1884
1795
  default: o(() => [
1885
- l(Ae, {
1796
+ l(I, {
1886
1797
  modelValue: e(_).keys,
1887
- "onUpdate:modelValue": q[1] || (q[1] = (Z) => e(_).keys = Z),
1798
+ "onUpdate:modelValue": q[1] || (q[1] = (J) => e(_).keys = J),
1888
1799
  placeholder: e(a)("i18n.placeholder.key")
1889
1800
  }, {
1890
1801
  append: o(() => [
1891
- l(B, {
1892
- icon: e(nl),
1893
- onClick: c
1802
+ l(Re, {
1803
+ icon: e(sl),
1804
+ onClick: k
1894
1805
  }, null, 8, ["icon"])
1895
1806
  ]),
1896
1807
  _: 1
@@ -1898,36 +1809,36 @@ const $e = /* @__PURE__ */ O({
1898
1809
  ]),
1899
1810
  _: 1
1900
1811
  }, 8, ["label"]),
1901
- l($, {
1812
+ l(se, {
1902
1813
  label: e(a)("i18n.values"),
1903
1814
  prop: "values",
1904
1815
  required: ""
1905
1816
  }, {
1906
1817
  default: o(() => [
1907
- le(I(e(_).values.join(":")), 1)
1818
+ ee(z(e(_).values.join(":")), 1)
1908
1819
  ]),
1909
1820
  _: 1
1910
1821
  }, 8, ["label"]),
1911
- l($, {
1822
+ l(se, {
1912
1823
  label: e(a)("i18n.values")
1913
1824
  }, {
1914
1825
  default: o(() => [
1915
- (S(!0), j(H, null, ae(p.value, (Z, ke) => (S(), j("div", {
1826
+ (M(!0), N(j, null, le(i.value, (J, ke) => (M(), N("div", {
1916
1827
  key: ke,
1917
1828
  class: "w-full"
1918
1829
  }, [
1919
- l(Ie, null, {
1830
+ l(Pe, null, {
1920
1831
  default: o(() => [
1921
- l(ze, {
1922
- type: m.value[ke],
1832
+ l(Be, {
1833
+ type: p.value[ke],
1923
1834
  style: { "min-width": "80px" }
1924
1835
  }, {
1925
1836
  default: o(() => [
1926
- le(I(ke), 1)
1837
+ ee(z(ke), 1)
1927
1838
  ]),
1928
1839
  _: 2
1929
1840
  }, 1032, ["type"]),
1930
- ke == "zh-CN" ? (S(), j("span", gl, I(Z.join("")), 1)) : (S(), j("span", hl, I(Z.join(" ")), 1))
1841
+ ke == "zh-CN" ? (M(), N("span", yl, z(J.join("")), 1)) : (M(), N("span", kl, z(J.join(" ")), 1))
1931
1842
  ]),
1932
1843
  _: 2
1933
1844
  }, 1024)
@@ -1935,14 +1846,14 @@ const $e = /* @__PURE__ */ O({
1935
1846
  ]),
1936
1847
  _: 1
1937
1848
  }, 8, ["label"]),
1938
- l($, {
1849
+ l(se, {
1939
1850
  label: e(a)("base.remark"),
1940
1851
  prop: "remark"
1941
1852
  }, {
1942
1853
  default: o(() => [
1943
- l(Ae, {
1854
+ l(I, {
1944
1855
  modelValue: e(_).remark,
1945
- "onUpdate:modelValue": q[2] || (q[2] = (Z) => e(_).remark = Z),
1856
+ "onUpdate:modelValue": q[2] || (q[2] = (J) => e(_).remark = J),
1946
1857
  placeholder: e(a)("placeholder.input")
1947
1858
  }, null, 8, ["modelValue", "placeholder"])
1948
1859
  ]),
@@ -1951,61 +1862,61 @@ const $e = /* @__PURE__ */ O({
1951
1862
  ]),
1952
1863
  _: 1
1953
1864
  }, 8, ["model", "disabled"]),
1954
- l($e, {
1865
+ l(ze, {
1955
1866
  ref_key: "I18nTableDrawerRef",
1956
- ref: V,
1957
- onChoosed: M,
1958
- onClosed: L
1867
+ ref: h,
1868
+ onChoosed: V,
1869
+ onClosed: A
1959
1870
  }, null, 512)
1960
1871
  ]),
1961
1872
  _: 1
1962
1873
  }, 8, ["modelValue", "width"]);
1963
1874
  };
1964
1875
  }
1965
- }), yl = Q.routineApi("gateway", "id", {
1876
+ }), wl = W.routineApi("gateway", "id", {
1966
1877
  gen: "gen_translation"
1967
1878
  });
1968
- function kl(x) {
1969
- return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Re(x);
1879
+ function xl(x) {
1880
+ return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Ce(x);
1970
1881
  }
1971
- const Wl = /* @__PURE__ */ O({
1882
+ const Hl = /* @__PURE__ */ O({
1972
1883
  __name: "index",
1973
1884
  setup(x) {
1974
- const R = {
1885
+ const U = ze, v = vl, h = {
1975
1886
  keyword: "",
1976
1887
  app: 0,
1977
1888
  status: 0
1978
- }, k = ({
1979
- row: y
1889
+ }, g = ({
1890
+ row: A
1980
1891
  }) => {
1981
- let c;
1892
+ let V;
1982
1893
  return l(r("el-tag"), {
1983
- type: a("i18n.app.colors." + y.app),
1894
+ type: a("i18n.app.colors." + A.app),
1984
1895
  style: "min-width: 80px"
1985
- }, kl(c = a("i18n.app." + y.app)) ? c : {
1986
- default: () => [c]
1896
+ }, xl(V = a("i18n.app." + A.app)) ? V : {
1897
+ default: () => [V]
1987
1898
  });
1988
- }, V = ({
1989
- row: y
1899
+ }, b = ({
1900
+ row: A
1990
1901
  }) => l(r("el-space"), null, {
1991
- default: () => [l(ne, {
1902
+ default: () => [l(re, {
1992
1903
  size: "default",
1993
1904
  disabled: i.value,
1994
- onModify: () => _({
1995
- uuid: y.uuid
1905
+ onModify: () => t({
1906
+ uuid: A.uuid
1996
1907
  })
1997
1908
  }, null), l(X, {
1998
1909
  size: "default",
1999
1910
  text: !0,
2000
1911
  type: "danger",
2001
1912
  loading: i.value,
2002
- onClick: () => t(y.uuid)
1913
+ onClick: () => s(A.uuid)
2003
1914
  }, null)]
2004
- }), h = [{
1915
+ }), c = [{
2005
1916
  label: a("base.app"),
2006
1917
  prop: "app",
2007
1918
  width: 120,
2008
- render: k
1919
+ render: g
2009
1920
  }, {
2010
1921
  label: a("i18n.keys"),
2011
1922
  prop: "keys",
@@ -2022,7 +1933,7 @@ const Wl = /* @__PURE__ */ O({
2022
1933
  props: {
2023
1934
  activeValue: 1,
2024
1935
  inactiveValue: 2,
2025
- api: ue.urls[Ue],
1936
+ api: ue.urls[De],
2026
1937
  refresh: !0
2027
1938
  }
2028
1939
  }, {
@@ -2042,89 +1953,88 @@ const Wl = /* @__PURE__ */ O({
2042
1953
  label: a("base.action"),
2043
1954
  width: 120,
2044
1955
  align: "center",
2045
- render: V
1956
+ render: b
2046
1957
  }], {
2047
- requesting: b,
1958
+ requesting: p,
2048
1959
  executing: i
2049
1960
  } = F(ue), {
2050
- tableRef: m,
2051
- formModalRef: p,
2052
- keyword: n,
2053
- search: v,
2054
- reset: u,
2055
- refresh: f,
2056
- openFormModal: g,
2057
- editFormModal: _
2058
- } = z(R), A = P(), w = () => {
2059
- var y;
2060
- return (y = A.value) == null ? void 0 : y.open();
2061
- };
2062
- function t(y) {
1961
+ tableRef: n,
1962
+ formModalRef: w,
1963
+ dialogRef: u,
1964
+ keyword: m,
1965
+ search: f,
1966
+ reset: _,
1967
+ refresh: D,
1968
+ openFormModal: R,
1969
+ editFormModal: t,
1970
+ openDialog: d
1971
+ } = Q(h);
1972
+ function s(A) {
2063
1973
  return ue.remove({
2064
- uuid: y
1974
+ uuid: A
2065
1975
  }).finally(() => {
2066
- f();
1976
+ D();
2067
1977
  });
2068
1978
  }
2069
- function d() {
2070
- return Y.gen().finally(() => {
2071
- f();
1979
+ function S() {
1980
+ return H.gen().finally(() => {
1981
+ D();
2072
1982
  });
2073
1983
  }
2074
- function s() {
2075
- yl.gen().finally(() => {
2076
- f();
1984
+ function k() {
1985
+ wl.gen().finally(() => {
1986
+ D();
2077
1987
  });
2078
1988
  }
2079
- return (y, c) => {
2080
- const L = r("el-input"), M = r("el-radio-button"), D = r("el-radio-group"), U = r("el-space"), C = r("el-divider"), q = r("el-page-header"), te = r("el-card");
2081
- return S(), T(te, {
1989
+ return (A, V) => {
1990
+ const L = r("el-input"), y = r("el-radio-button"), C = r("el-radio-group"), q = r("el-space"), oe = r("el-divider"), se = r("el-page-header"), Re = r("el-card");
1991
+ return M(), T(Re, {
2082
1992
  class: "basic-card flex-full",
2083
1993
  "body-class": "flex-1"
2084
1994
  }, {
2085
- header: o(() => [l(q, {
1995
+ header: o(() => [l(se, {
2086
1996
  class: "basic-header"
2087
1997
  }, {
2088
- title: o(() => [l(e(G), {
2089
- loading: e(b),
2090
- onRefresh: e(u)
2091
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
2092
- onOpen: e(g)
1998
+ title: o(() => [l(e(K), {
1999
+ loading: e(p),
2000
+ onRefresh: e(_)
2001
+ }, null, 8, ["loading", "onRefresh"]), l(e(B), {
2002
+ onOpen: e(R)
2093
2003
  }, null, 8, ["onOpen"])]),
2094
- content: o(() => [l(U, {
2004
+ content: o(() => [l(q, {
2095
2005
  class: "search-bar"
2096
2006
  }, {
2097
2007
  default: o(() => [l(L, {
2098
2008
  class: "basic-search-input",
2099
- modelValue: e(n).keyword,
2100
- "onUpdate:modelValue": c[0] || (c[0] = ($) => e(n).keyword = $),
2101
- disabled: e(b) || e(i),
2009
+ modelValue: e(m).keyword,
2010
+ "onUpdate:modelValue": V[0] || (V[0] = (I) => e(m).keyword = I),
2011
+ disabled: e(p) || e(i),
2102
2012
  placeholder: e(a)("placeholder.keyword"),
2103
2013
  clearable: "",
2104
- onKeyup: c[1] || (c[1] = Ve(($) => e(v)(), ["enter"])),
2105
- onClear: c[2] || (c[2] = ($) => e(v)())
2106
- }, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(Ce), {
2107
- modelValue: e(n).app,
2108
- "onUpdate:modelValue": c[3] || (c[3] = ($) => e(n).app = $),
2014
+ onKeyup: V[1] || (V[1] = Ve((I) => e(f)(), ["enter"])),
2015
+ onClear: V[2] || (V[2] = (I) => e(f)())
2016
+ }, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(qe), {
2017
+ modelValue: e(m).app,
2018
+ "onUpdate:modelValue": V[3] || (V[3] = (I) => e(m).app = I),
2109
2019
  "cache-key": "I18NAPPS",
2110
- disabled: e(b) || e(i),
2020
+ disabled: e(p) || e(i),
2111
2021
  url: e(ue).urls.apps,
2112
- onChange: c[4] || (c[4] = ($) => e(v)())
2113
- }, null, 8, ["modelValue", "disabled", "url"]), l(D, {
2114
- modelValue: e(n).status,
2115
- "onUpdate:modelValue": c[5] || (c[5] = ($) => e(n).status = $),
2116
- disabled: e(b) || e(i),
2117
- onChange: c[6] || (c[6] = ($) => e(v)())
2022
+ onChange: V[4] || (V[4] = (I) => e(f)())
2023
+ }, null, 8, ["modelValue", "disabled", "url"]), l(C, {
2024
+ modelValue: e(m).status,
2025
+ "onUpdate:modelValue": V[5] || (V[5] = (I) => e(m).status = I),
2026
+ disabled: e(p) || e(i),
2027
+ onChange: V[6] || (V[6] = (I) => e(f)())
2118
2028
  }, {
2119
- default: o(() => [(S(), j(H, null, ae([0, 1, 2], ($) => l(M, {
2120
- key: $,
2121
- label: e(a)(`status.${$}`),
2122
- value: $
2029
+ default: o(() => [(M(), N(j, null, le([0, 1, 2], (I) => l(y, {
2030
+ key: I,
2031
+ label: e(a)(`status.${I}`),
2032
+ value: I
2123
2033
  }, null, 8, ["label", "value"])), 64))]),
2124
2034
  _: 1
2125
- }, 8, ["modelValue", "disabled"]), l(e(se), {
2126
- disabled: e(b) || e(i),
2127
- onSearch: c[7] || (c[7] = ($) => e(v)())
2035
+ }, 8, ["modelValue", "disabled"]), l(e(de), {
2036
+ disabled: e(p) || e(i),
2037
+ onSearch: V[7] || (V[7] = (I) => e(f)())
2128
2038
  }, null, 8, ["disabled"])]),
2129
2039
  _: 1
2130
2040
  })]),
@@ -2134,46 +2044,46 @@ const Wl = /* @__PURE__ */ O({
2134
2044
  icon: "icon-cloud-upload",
2135
2045
  plain: !1,
2136
2046
  loading: e(i),
2137
- onClick: d
2047
+ onClick: S
2138
2048
  }, null, 8, ["loading"]), l(e(X), {
2139
2049
  size: "default",
2140
2050
  type: "danger",
2141
2051
  icon: "icon-translate",
2142
2052
  plain: !1,
2143
2053
  loading: e(i),
2144
- onClick: s
2145
- }, null, 8, ["loading"]), l(C, {
2054
+ onClick: k
2055
+ }, null, 8, ["loading"]), l(oe, {
2146
2056
  direction: "vertical"
2147
- }), l(e(K), {
2148
- onOpen: w,
2057
+ }), l(e(B), {
2058
+ onOpen: e(d),
2149
2059
  icon: "icon-en-US"
2150
- })]),
2060
+ }, null, 8, ["onOpen"])]),
2151
2061
  _: 1
2152
2062
  })]),
2153
2063
  default: o(() => [l(e(be), {
2154
2064
  ref_key: "tableRef",
2155
- ref: m,
2156
- columns: h,
2065
+ ref: n,
2066
+ columns: c,
2157
2067
  url: e(ue).urls[e(ye)],
2158
- "search-param": e(n),
2068
+ "search-param": e(m),
2159
2069
  "auto-search": ""
2160
- }, null, 8, ["url", "search-param"]), l($e, {
2070
+ }, null, 8, ["url", "search-param"]), l(e(U), {
2161
2071
  ref_key: "I18nTableDrawerRef",
2162
- ref: A
2163
- }, null, 512), l(Vl, {
2072
+ ref: u
2073
+ }, null, 512), l(e(v), {
2164
2074
  ref_key: "formModalRef",
2165
- ref: p,
2166
- onRefresh: e(f)
2075
+ ref: w,
2076
+ onRefresh: e(D)
2167
2077
  }, null, 8, ["onRefresh"])]),
2168
2078
  _: 1
2169
2079
  });
2170
2080
  };
2171
2081
  }
2172
- }), we = Q.routineApi("admin", "key"), vl = /* @__PURE__ */ O({
2082
+ }), Ue = W.routineApi("admin", "key"), Rl = /* @__PURE__ */ O({
2173
2083
  __name: "AdminFormModal",
2174
2084
  emits: ["refresh"],
2175
- setup(x, { expose: R, emit: k }) {
2176
- const V = k, h = {
2085
+ setup(x, { expose: U, emit: v }) {
2086
+ const h = v, g = {
2177
2087
  key: "",
2178
2088
  username: "",
2179
2089
  password: "",
@@ -2182,7 +2092,7 @@ const Wl = /* @__PURE__ */ O({
2182
2092
  language: "zh-CN",
2183
2093
  remark: "",
2184
2094
  roles: []
2185
- }, { modal: b, title: i, form: m, formData: p, requesting: n, executing: v, open: u, modify: f, submit: g, closed: _ } = ee(V, h, we), A = {
2095
+ }, { modal: b, title: c, form: p, formData: i, requesting: n, executing: w, open: u, modify: m, submit: f, closed: _ } = Z(h, g, Ue), D = {
2186
2096
  username: [
2187
2097
  {
2188
2098
  required: !0,
@@ -2193,7 +2103,7 @@ const Wl = /* @__PURE__ */ O({
2193
2103
  phone: [
2194
2104
  {
2195
2105
  required: !0,
2196
- validator: Qe.phoneRule,
2106
+ validator: Ze.phoneRule,
2197
2107
  message: a("placeholder.input base.phone"),
2198
2108
  trigger: "blur"
2199
2109
  }
@@ -2227,112 +2137,112 @@ const Wl = /* @__PURE__ */ O({
2227
2137
  trigger: "change"
2228
2138
  }
2229
2139
  ]
2230
- }, w = P([]), t = async () => {
2231
- const d = await ve.list();
2232
- w.value = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
2140
+ }, R = G([]), t = async () => {
2141
+ const d = await we.list();
2142
+ R.value = Array.isArray(d?.data) ? d.data : [];
2233
2143
  };
2234
- return We(async () => {
2144
+ return Qe(async () => {
2235
2145
  await t();
2236
- }), R({
2146
+ }), U({
2237
2147
  open: u,
2238
- modify: f
2148
+ modify: m
2239
2149
  }), (d, s) => {
2240
- const y = r("el-input"), c = r("el-form-item"), L = r("el-radio-button"), M = r("el-radio-group"), D = r("el-checkbox"), U = r("el-checkbox-group"), C = r("el-form");
2241
- return S(), T(e(oe), {
2150
+ const S = r("el-input"), k = r("el-form-item"), A = r("el-radio-button"), V = r("el-radio-group"), L = r("el-checkbox"), y = r("el-checkbox-group"), C = r("el-form");
2151
+ return M(), T(e(ae), {
2242
2152
  modelValue: e(b),
2243
- "onUpdate:modelValue": s[7] || (s[7] = (q) => N(b) ? b.value = q : null),
2244
- title: e(i)(),
2153
+ "onUpdate:modelValue": s[7] || (s[7] = (q) => E(b) ? b.value = q : null),
2154
+ title: e(c)(),
2245
2155
  width: "600px",
2246
- executing: e(v),
2156
+ executing: e(w),
2247
2157
  onClosed: e(_),
2248
- onSubmit: e(g)
2158
+ onSubmit: e(f)
2249
2159
  }, {
2250
2160
  default: o(() => [
2251
2161
  l(C, {
2252
2162
  ref_key: "form",
2253
- ref: m,
2254
- model: e(p),
2163
+ ref: p,
2164
+ model: e(i),
2255
2165
  "label-width": "auto",
2256
- rules: A,
2257
- disabled: e(n) || e(v)
2166
+ rules: D,
2167
+ disabled: e(n) || e(w)
2258
2168
  }, {
2259
2169
  default: o(() => [
2260
- l(c, {
2170
+ l(k, {
2261
2171
  label: e(a)("base.username"),
2262
2172
  prop: "username"
2263
2173
  }, {
2264
2174
  default: o(() => [
2265
- l(y, {
2266
- modelValue: e(p).username,
2267
- "onUpdate:modelValue": s[0] || (s[0] = (q) => e(p).username = q),
2175
+ l(S, {
2176
+ modelValue: e(i).username,
2177
+ "onUpdate:modelValue": s[0] || (s[0] = (q) => e(i).username = q),
2268
2178
  placeholder: e(a)("placeholder.input"),
2269
2179
  autocomplete: "off"
2270
2180
  }, null, 8, ["modelValue", "placeholder"])
2271
2181
  ]),
2272
2182
  _: 1
2273
2183
  }, 8, ["label"]),
2274
- l(c, {
2184
+ l(k, {
2275
2185
  label: e(a)("base.phone"),
2276
2186
  prop: "phone"
2277
2187
  }, {
2278
2188
  default: o(() => [
2279
- l(y, {
2280
- modelValue: e(p).phone,
2281
- "onUpdate:modelValue": s[1] || (s[1] = (q) => e(p).phone = q),
2189
+ l(S, {
2190
+ modelValue: e(i).phone,
2191
+ "onUpdate:modelValue": s[1] || (s[1] = (q) => e(i).phone = q),
2282
2192
  placeholder: e(a)("placeholder.input"),
2283
2193
  autocomplete: "off"
2284
2194
  }, null, 8, ["modelValue", "placeholder"])
2285
2195
  ]),
2286
2196
  _: 1
2287
2197
  }, 8, ["label"]),
2288
- l(c, {
2198
+ l(k, {
2289
2199
  label: e(a)("base.password"),
2290
2200
  prop: "password",
2291
- required: !e(p).key
2201
+ required: !e(i).key
2292
2202
  }, {
2293
2203
  default: o(() => [
2294
- l(y, {
2295
- modelValue: e(p).password,
2296
- "onUpdate:modelValue": s[2] || (s[2] = (q) => e(p).password = q),
2204
+ l(S, {
2205
+ modelValue: e(i).password,
2206
+ "onUpdate:modelValue": s[2] || (s[2] = (q) => e(i).password = q),
2297
2207
  placeholder: e(a)("placeholder.input"),
2298
2208
  autocomplete: "off"
2299
2209
  }, null, 8, ["modelValue", "placeholder"])
2300
2210
  ]),
2301
2211
  _: 1
2302
2212
  }, 8, ["label", "required"]),
2303
- l(c, {
2213
+ l(k, {
2304
2214
  label: e(a)("base.email"),
2305
2215
  prop: "email"
2306
2216
  }, {
2307
2217
  default: o(() => [
2308
- l(y, {
2309
- modelValue: e(p).email,
2310
- "onUpdate:modelValue": s[3] || (s[3] = (q) => e(p).email = q),
2218
+ l(S, {
2219
+ modelValue: e(i).email,
2220
+ "onUpdate:modelValue": s[3] || (s[3] = (q) => e(i).email = q),
2311
2221
  placeholder: e(a)("placeholder.input"),
2312
2222
  autocomplete: "off"
2313
2223
  }, null, 8, ["modelValue", "placeholder"])
2314
2224
  ]),
2315
2225
  _: 1
2316
2226
  }, 8, ["label"]),
2317
- l(c, {
2227
+ l(k, {
2318
2228
  label: e(a)("base.language"),
2319
2229
  prop: "language"
2320
2230
  }, {
2321
2231
  default: o(() => [
2322
- l(M, {
2323
- modelValue: e(p).language,
2324
- "onUpdate:modelValue": s[4] || (s[4] = (q) => e(p).language = q)
2232
+ l(V, {
2233
+ modelValue: e(i).language,
2234
+ "onUpdate:modelValue": s[4] || (s[4] = (q) => e(i).language = q)
2325
2235
  }, {
2326
2236
  default: o(() => [
2327
- l(L, { value: "zh-CN" }, {
2237
+ l(A, { value: "zh-CN" }, {
2328
2238
  default: o(() => [...s[8] || (s[8] = [
2329
- le("zh-CN", -1)
2239
+ ee("zh-CN", -1)
2330
2240
  ])]),
2331
2241
  _: 1
2332
2242
  }),
2333
- l(L, { value: "en-US" }, {
2243
+ l(A, { value: "en-US" }, {
2334
2244
  default: o(() => [...s[9] || (s[9] = [
2335
- le("en-US", -1)
2245
+ ee("en-US", -1)
2336
2246
  ])]),
2337
2247
  _: 1
2338
2248
  })
@@ -2342,22 +2252,22 @@ const Wl = /* @__PURE__ */ O({
2342
2252
  ]),
2343
2253
  _: 1
2344
2254
  }, 8, ["label"]),
2345
- l(c, {
2255
+ l(k, {
2346
2256
  label: e(a)("menu.Role"),
2347
2257
  prop: "roles"
2348
2258
  }, {
2349
2259
  default: o(() => [
2350
- l(U, {
2351
- modelValue: e(p).roles,
2352
- "onUpdate:modelValue": s[5] || (s[5] = (q) => e(p).roles = q)
2260
+ l(y, {
2261
+ modelValue: e(i).roles,
2262
+ "onUpdate:modelValue": s[5] || (s[5] = (q) => e(i).roles = q)
2353
2263
  }, {
2354
2264
  default: o(() => [
2355
- (S(!0), j(H, null, ae(w.value, (q) => (S(), T(D, {
2265
+ (M(!0), N(j, null, le(R.value, (q) => (M(), T(L, {
2356
2266
  key: q.key,
2357
2267
  value: q.key
2358
2268
  }, {
2359
2269
  default: o(() => [
2360
- le(I(q.translate), 1)
2270
+ ee(z(q.translate), 1)
2361
2271
  ]),
2362
2272
  _: 2
2363
2273
  }, 1032, ["value"]))), 128))
@@ -2367,14 +2277,14 @@ const Wl = /* @__PURE__ */ O({
2367
2277
  ]),
2368
2278
  _: 1
2369
2279
  }, 8, ["label"]),
2370
- l(c, {
2280
+ l(k, {
2371
2281
  label: e(a)("base.remark"),
2372
2282
  prop: "remark"
2373
2283
  }, {
2374
2284
  default: o(() => [
2375
- l(y, {
2376
- modelValue: e(p).remark,
2377
- "onUpdate:modelValue": s[6] || (s[6] = (q) => e(p).remark = q),
2285
+ l(S, {
2286
+ modelValue: e(i).remark,
2287
+ "onUpdate:modelValue": s[6] || (s[6] = (q) => e(i).remark = q),
2378
2288
  placeholder: e(a)("placeholder.input")
2379
2289
  }, null, 8, ["modelValue", "placeholder"])
2380
2290
  ]),
@@ -2388,31 +2298,31 @@ const Wl = /* @__PURE__ */ O({
2388
2298
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
2389
2299
  };
2390
2300
  }
2391
- }), Gl = /* @__PURE__ */ O({
2301
+ }), Ql = /* @__PURE__ */ O({
2392
2302
  __name: "index",
2393
2303
  setup(x) {
2394
- const R = {
2304
+ const U = {
2395
2305
  keyword: ""
2396
- }, k = [{
2306
+ }, v = [{
2397
2307
  label: a("base.avatar"),
2398
2308
  prop: "avatar",
2399
2309
  width: 60,
2400
2310
  render: ({
2401
- row: f
2402
- }) => l(Je, {
2403
- src: f.avatar
2311
+ row: m
2312
+ }) => l(el, {
2313
+ src: m.avatar
2404
2314
  }, null)
2405
2315
  }, {
2406
2316
  label: a("base.user"),
2407
2317
  width: 200,
2408
2318
  align: "left",
2409
2319
  render: ({
2410
- row: f
2320
+ row: m
2411
2321
  }) => l(r("el-space"), {
2412
2322
  direction: "vertical",
2413
2323
  alignment: "start"
2414
2324
  }, {
2415
- default: () => [l("div", null, [f.username]), l("div", null, [f.email])]
2325
+ default: () => [l("div", null, [m.username]), l("div", null, [m.email])]
2416
2326
  })
2417
2327
  }, {
2418
2328
  label: a("base.phone"),
@@ -2440,53 +2350,53 @@ const Wl = /* @__PURE__ */ O({
2440
2350
  width: 80,
2441
2351
  align: "center",
2442
2352
  render: ({
2443
- row: f
2444
- }) => l(ne, {
2353
+ row: m
2354
+ }) => l(re, {
2445
2355
  onModify: () => u({
2446
- key: f.key
2356
+ key: m.key
2447
2357
  })
2448
2358
  }, null)
2449
2359
  }], {
2450
- requesting: V
2451
- } = F(we), {
2452
- tableRef: h,
2360
+ requesting: h
2361
+ } = F(Ue), {
2362
+ tableRef: g,
2453
2363
  formModalRef: b,
2454
- keyword: i,
2455
- search: m,
2456
- reset: p,
2364
+ keyword: c,
2365
+ search: p,
2366
+ reset: i,
2457
2367
  refresh: n,
2458
- openFormModal: v,
2368
+ openFormModal: w,
2459
2369
  editFormModal: u
2460
- } = z(R);
2461
- return (f, g) => {
2462
- const _ = r("el-input"), A = r("el-space"), w = r("el-page-header"), t = r("el-card");
2463
- return S(), T(t, {
2370
+ } = Q(U);
2371
+ return (m, f) => {
2372
+ const _ = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
2373
+ return M(), T(t, {
2464
2374
  class: "basic-card flex-full",
2465
2375
  "body-class": "flex-1"
2466
2376
  }, {
2467
- header: o(() => [l(w, {
2377
+ header: o(() => [l(R, {
2468
2378
  class: "basic-header"
2469
2379
  }, {
2470
- title: o(() => [l(e(G), {
2471
- loading: e(V),
2472
- onRefresh: e(p)
2473
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
2474
- onOpen: e(v)
2380
+ title: o(() => [l(e(K), {
2381
+ loading: e(h),
2382
+ onRefresh: e(i)
2383
+ }, null, 8, ["loading", "onRefresh"]), l(e(B), {
2384
+ onOpen: e(w)
2475
2385
  }, null, 8, ["onOpen"])]),
2476
- content: o(() => [l(A, {
2386
+ content: o(() => [l(D, {
2477
2387
  class: "search-bar"
2478
2388
  }, {
2479
2389
  default: o(() => [l(_, {
2480
2390
  class: "basic-search-input",
2481
- modelValue: e(i).keyword,
2482
- "onUpdate:modelValue": g[0] || (g[0] = (d) => e(i).keyword = d),
2391
+ modelValue: e(c).keyword,
2392
+ "onUpdate:modelValue": f[0] || (f[0] = (d) => e(c).keyword = d),
2483
2393
  placeholder: e(a)("placeholder.keyword"),
2484
2394
  clearable: "",
2485
- onKeyup: g[1] || (g[1] = Ve((d) => e(m)(), ["enter"])),
2486
- onClear: g[2] || (g[2] = (d) => e(m)())
2487
- }, null, 8, ["modelValue", "placeholder"]), l(e(se), {
2488
- disabled: e(V),
2489
- onSearch: g[3] || (g[3] = (d) => e(m)())
2395
+ onKeyup: f[1] || (f[1] = Ve((d) => e(p)(), ["enter"])),
2396
+ onClear: f[2] || (f[2] = (d) => e(p)())
2397
+ }, null, 8, ["modelValue", "placeholder"]), l(e(de), {
2398
+ disabled: e(h),
2399
+ onSearch: f[3] || (f[3] = (d) => e(p)())
2490
2400
  }, null, 8, ["disabled"])]),
2491
2401
  _: 1
2492
2402
  })]),
@@ -2494,13 +2404,13 @@ const Wl = /* @__PURE__ */ O({
2494
2404
  })]),
2495
2405
  default: o(() => [l(e(be), {
2496
2406
  ref_key: "tableRef",
2497
- ref: h,
2407
+ ref: g,
2498
2408
  size: "small",
2499
- columns: k,
2500
- url: e(we).urls[e(ye)],
2501
- "search-param": e(i),
2409
+ columns: v,
2410
+ url: e(Ue).urls[e(ye)],
2411
+ "search-param": e(c),
2502
2412
  "auto-search": ""
2503
- }, null, 8, ["url", "search-param"]), l(vl, {
2413
+ }, null, 8, ["url", "search-param"]), l(Rl, {
2504
2414
  ref_key: "formModalRef",
2505
2415
  ref: b,
2506
2416
  onRefresh: e(n)
@@ -2509,9 +2419,9 @@ const Wl = /* @__PURE__ */ O({
2509
2419
  });
2510
2420
  };
2511
2421
  }
2512
- }), wl = {
2422
+ }), Ul = {
2513
2423
  check: "check"
2514
- }, pe = Q.routineApi("site", "id", wl), ge = Q.routineApi("domain"), Ee = /* @__PURE__ */ O({
2424
+ }, pe = W.routineApi("site", "id", Ul), ge = W.routineApi("domain"), Ie = /* @__PURE__ */ O({
2515
2425
  __name: "DomainSelect",
2516
2426
  props: {
2517
2427
  modelValue: {
@@ -2525,46 +2435,46 @@ const Wl = /* @__PURE__ */ O({
2525
2435
  },
2526
2436
  emits: ["update:modelValue", "change"],
2527
2437
  setup(x, {
2528
- expose: R,
2529
- emit: k
2438
+ expose: U,
2439
+ emit: v
2530
2440
  }) {
2531
- const V = k, h = x, {
2441
+ const h = v, g = x, {
2532
2442
  requesting: b
2533
2443
  } = F(ge), {
2534
- key: i,
2535
- options: m,
2536
- refresh: p,
2444
+ key: c,
2445
+ options: p,
2446
+ refresh: i,
2537
2447
  change: n
2538
- } = de(re(h, "modelValue"), V, {
2448
+ } = te(ne(g, "modelValue"), h, {
2539
2449
  key: "DOMAIN_LIST",
2540
2450
  api: ge,
2541
2451
  isArray: !0
2542
2452
  });
2543
- return R({
2544
- refresh: p
2545
- }), (v, u) => {
2546
- const f = r("el-select-v2");
2547
- return S(), T(f, {
2548
- modelValue: e(i),
2549
- "onUpdate:modelValue": u[0] || (u[0] = (g) => N(i) ? i.value = g : null),
2550
- options: e(m),
2453
+ return U({
2454
+ refresh: i
2455
+ }), (w, u) => {
2456
+ const m = r("el-select-v2");
2457
+ return M(), T(m, {
2458
+ modelValue: e(c),
2459
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
2460
+ options: e(p),
2551
2461
  disabled: x.disabled || e(b),
2552
2462
  placeholder: e(a)("base.select config.domain"),
2553
2463
  onChange: e(n)
2554
2464
  }, {
2555
2465
  prefix: o(() => [l(e(fe), {
2556
2466
  loading: e(b),
2557
- onRefresh: e(p)
2467
+ onRefresh: e(i)
2558
2468
  }, null, 8, ["loading", "onRefresh"])]),
2559
2469
  _: 1
2560
2470
  }, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
2561
2471
  };
2562
2472
  }
2563
- }), xl = /* @__PURE__ */ O({
2473
+ }), Al = /* @__PURE__ */ O({
2564
2474
  __name: "SiteFormModal",
2565
2475
  emits: ["refresh"],
2566
- setup(x, { expose: R, emit: k }) {
2567
- const V = k, h = {
2476
+ setup(x, { expose: U, emit: v }) {
2477
+ const h = v, g = {
2568
2478
  id: 0,
2569
2479
  domain_id: 0,
2570
2480
  prefix: "",
@@ -2579,29 +2489,29 @@ const Wl = /* @__PURE__ */ O({
2579
2489
  prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
2580
2490
  name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
2581
2491
  en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
2582
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, pe);
2583
- return R({
2584
- open: f,
2585
- modify: g
2586
- }), (w, t) => {
2587
- const d = r("el-form-item"), s = r("el-input"), y = r("el-form");
2588
- return S(), T(e(oe), {
2589
- modelValue: e(i),
2590
- "onUpdate:modelValue": t[7] || (t[7] = (c) => N(i) ? i.value = c : null),
2591
- title: e(m)("config.site"),
2492
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, pe);
2493
+ return U({
2494
+ open: m,
2495
+ modify: f
2496
+ }), (R, t) => {
2497
+ const d = r("el-form-item"), s = r("el-input"), S = r("el-form");
2498
+ return M(), T(e(ae), {
2499
+ modelValue: e(c),
2500
+ "onUpdate:modelValue": t[7] || (t[7] = (k) => E(c) ? c.value = k : null),
2501
+ title: e(p)("config.site"),
2592
2502
  width: "600px",
2593
2503
  executing: e(u),
2594
- onClosed: e(A),
2504
+ onClosed: e(D),
2595
2505
  onSubmit: e(_)
2596
2506
  }, {
2597
2507
  default: o(() => [
2598
- l(y, {
2508
+ l(S, {
2599
2509
  ref_key: "form",
2600
- ref: p,
2510
+ ref: i,
2601
2511
  model: e(n),
2602
2512
  "label-width": "auto",
2603
2513
  rules: b,
2604
- disabled: e(v) || e(u)
2514
+ disabled: e(w) || e(u)
2605
2515
  }, {
2606
2516
  default: o(() => [
2607
2517
  l(d, {
@@ -2609,9 +2519,9 @@ const Wl = /* @__PURE__ */ O({
2609
2519
  label: e(a)("config.domain")
2610
2520
  }, {
2611
2521
  default: o(() => [
2612
- l(Ee, {
2522
+ l(Ie, {
2613
2523
  modelValue: e(n).domain_id,
2614
- "onUpdate:modelValue": t[0] || (t[0] = (c) => e(n).domain_id = c),
2524
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => e(n).domain_id = k),
2615
2525
  disabled: e(u)
2616
2526
  }, null, 8, ["modelValue", "disabled"])
2617
2527
  ]),
@@ -2624,7 +2534,7 @@ const Wl = /* @__PURE__ */ O({
2624
2534
  default: o(() => [
2625
2535
  l(s, {
2626
2536
  modelValue: e(n).prefix,
2627
- "onUpdate:modelValue": t[1] || (t[1] = (c) => e(n).prefix = c),
2537
+ "onUpdate:modelValue": t[1] || (t[1] = (k) => e(n).prefix = k),
2628
2538
  disabled: e(u),
2629
2539
  placeholder: e(a)("placeholder.input")
2630
2540
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2638,7 +2548,7 @@ const Wl = /* @__PURE__ */ O({
2638
2548
  default: o(() => [
2639
2549
  l(s, {
2640
2550
  modelValue: e(n).name,
2641
- "onUpdate:modelValue": t[2] || (t[2] = (c) => e(n).name = c),
2551
+ "onUpdate:modelValue": t[2] || (t[2] = (k) => e(n).name = k),
2642
2552
  disabled: e(u),
2643
2553
  placeholder: e(a)("placeholder.input")
2644
2554
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2652,7 +2562,7 @@ const Wl = /* @__PURE__ */ O({
2652
2562
  default: o(() => [
2653
2563
  l(s, {
2654
2564
  modelValue: e(n).en_name,
2655
- "onUpdate:modelValue": t[3] || (t[3] = (c) => e(n).en_name = c),
2565
+ "onUpdate:modelValue": t[3] || (t[3] = (k) => e(n).en_name = k),
2656
2566
  disabled: e(u),
2657
2567
  placeholder: e(a)("placeholder.input")
2658
2568
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2666,7 +2576,7 @@ const Wl = /* @__PURE__ */ O({
2666
2576
  default: o(() => [
2667
2577
  l(s, {
2668
2578
  modelValue: e(n).dns,
2669
- "onUpdate:modelValue": t[4] || (t[4] = (c) => e(n).dns = c),
2579
+ "onUpdate:modelValue": t[4] || (t[4] = (k) => e(n).dns = k),
2670
2580
  disabled: e(u),
2671
2581
  placeholder: e(a)("placeholder.input")
2672
2582
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2680,7 +2590,7 @@ const Wl = /* @__PURE__ */ O({
2680
2590
  default: o(() => [
2681
2591
  l(s, {
2682
2592
  modelValue: e(n).git,
2683
- "onUpdate:modelValue": t[5] || (t[5] = (c) => e(n).git = c),
2593
+ "onUpdate:modelValue": t[5] || (t[5] = (k) => e(n).git = k),
2684
2594
  disabled: e(u),
2685
2595
  placeholder: e(a)("placeholder.input")
2686
2596
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2694,7 +2604,7 @@ const Wl = /* @__PURE__ */ O({
2694
2604
  default: o(() => [
2695
2605
  l(s, {
2696
2606
  modelValue: e(n).remark,
2697
- "onUpdate:modelValue": t[6] || (t[6] = (c) => e(n).remark = c),
2607
+ "onUpdate:modelValue": t[6] || (t[6] = (k) => e(n).remark = k),
2698
2608
  disabled: e(u),
2699
2609
  placeholder: e(a)("placeholder.input")
2700
2610
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2709,7 +2619,7 @@ const Wl = /* @__PURE__ */ O({
2709
2619
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
2710
2620
  };
2711
2621
  }
2712
- }), he = Q.routineApi("domain_provider"), Rl = /* @__PURE__ */ O({
2622
+ }), he = W.routineApi("domain_provider"), Dl = /* @__PURE__ */ O({
2713
2623
  __name: "DomainProviderSelect",
2714
2624
  props: {
2715
2625
  modelValue: {
@@ -2723,46 +2633,46 @@ const Wl = /* @__PURE__ */ O({
2723
2633
  },
2724
2634
  emits: ["update:modelValue", "change"],
2725
2635
  setup(x, {
2726
- expose: R,
2727
- emit: k
2636
+ expose: U,
2637
+ emit: v
2728
2638
  }) {
2729
- const V = k, h = x, {
2639
+ const h = v, g = x, {
2730
2640
  requesting: b
2731
2641
  } = F(he), {
2732
- key: i,
2733
- options: m,
2734
- refresh: p,
2642
+ key: c,
2643
+ options: p,
2644
+ refresh: i,
2735
2645
  change: n
2736
- } = de(re(h, "modelValue"), V, {
2646
+ } = te(ne(g, "modelValue"), h, {
2737
2647
  key: "DOMAIN_PROVIDER_LIST",
2738
2648
  api: he,
2739
2649
  isArray: !0
2740
2650
  });
2741
- return R({
2742
- refresh: p
2743
- }), (v, u) => {
2744
- const f = r("el-select-v2");
2745
- return S(), T(f, {
2746
- modelValue: e(i),
2747
- "onUpdate:modelValue": u[0] || (u[0] = (g) => N(i) ? i.value = g : null),
2748
- options: e(m),
2651
+ return U({
2652
+ refresh: i
2653
+ }), (w, u) => {
2654
+ const m = r("el-select-v2");
2655
+ return M(), T(m, {
2656
+ modelValue: e(c),
2657
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
2658
+ options: e(p),
2749
2659
  disabled: x.disabled || e(b),
2750
2660
  placeholder: e(a)("base.select config.domain config.provider"),
2751
2661
  onChange: e(n)
2752
2662
  }, {
2753
2663
  prefix: o(() => [l(e(fe), {
2754
2664
  loading: e(b),
2755
- onRefresh: e(p)
2665
+ onRefresh: e(i)
2756
2666
  }, null, 8, ["loading", "onRefresh"])]),
2757
2667
  _: 1
2758
2668
  }, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
2759
2669
  };
2760
2670
  }
2761
- }), Ul = /* @__PURE__ */ O({
2671
+ }), Sl = /* @__PURE__ */ O({
2762
2672
  __name: "DomainFormModal",
2763
2673
  emits: ["refresh"],
2764
- setup(x, { expose: R, emit: k }) {
2765
- const V = k, h = {
2674
+ setup(x, { expose: U, emit: v }) {
2675
+ const h = v, g = {
2766
2676
  id: 0,
2767
2677
  provider_id: 0,
2768
2678
  name: "",
@@ -2772,29 +2682,29 @@ const Wl = /* @__PURE__ */ O({
2772
2682
  }, b = {
2773
2683
  provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
2774
2684
  name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
2775
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, ge);
2776
- return R({
2777
- open: f,
2778
- modify: g
2779
- }), (w, t) => {
2780
- const d = r("el-form-item"), s = r("el-input"), y = r("el-date-picker"), c = r("el-form");
2781
- return S(), T(e(oe), {
2782
- modelValue: e(i),
2783
- "onUpdate:modelValue": t[4] || (t[4] = (L) => N(i) ? i.value = L : null),
2784
- title: e(m)("config.domain"),
2685
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, ge);
2686
+ return U({
2687
+ open: m,
2688
+ modify: f
2689
+ }), (R, t) => {
2690
+ const d = r("el-form-item"), s = r("el-input"), S = r("el-date-picker"), k = r("el-form");
2691
+ return M(), T(e(ae), {
2692
+ modelValue: e(c),
2693
+ "onUpdate:modelValue": t[4] || (t[4] = (A) => E(c) ? c.value = A : null),
2694
+ title: e(p)("config.domain"),
2785
2695
  width: "600px",
2786
2696
  executing: e(u),
2787
- onClosed: e(A),
2697
+ onClosed: e(D),
2788
2698
  onSubmit: e(_)
2789
2699
  }, {
2790
2700
  default: o(() => [
2791
- l(c, {
2701
+ l(k, {
2792
2702
  ref_key: "form",
2793
- ref: p,
2703
+ ref: i,
2794
2704
  model: e(n),
2795
2705
  "label-width": "auto",
2796
2706
  rules: b,
2797
- disabled: e(v) || e(u)
2707
+ disabled: e(w) || e(u)
2798
2708
  }, {
2799
2709
  default: o(() => [
2800
2710
  l(d, {
@@ -2802,9 +2712,9 @@ const Wl = /* @__PURE__ */ O({
2802
2712
  label: e(a)("config.provider")
2803
2713
  }, {
2804
2714
  default: o(() => [
2805
- l(Rl, {
2715
+ l(Dl, {
2806
2716
  modelValue: e(n).provider_id,
2807
- "onUpdate:modelValue": t[0] || (t[0] = (L) => e(n).provider_id = L),
2717
+ "onUpdate:modelValue": t[0] || (t[0] = (A) => e(n).provider_id = A),
2808
2718
  disabled: e(u)
2809
2719
  }, null, 8, ["modelValue", "disabled"])
2810
2720
  ]),
@@ -2817,7 +2727,7 @@ const Wl = /* @__PURE__ */ O({
2817
2727
  default: o(() => [
2818
2728
  l(s, {
2819
2729
  modelValue: e(n).name,
2820
- "onUpdate:modelValue": t[1] || (t[1] = (L) => e(n).name = L),
2730
+ "onUpdate:modelValue": t[1] || (t[1] = (A) => e(n).name = A),
2821
2731
  disabled: e(u),
2822
2732
  placeholder: e(a)("placeholder.input")
2823
2733
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2830,14 +2740,14 @@ const Wl = /* @__PURE__ */ O({
2830
2740
  label: e(a)("time.expired_at")
2831
2741
  }, {
2832
2742
  default: o(() => [
2833
- l(y, {
2743
+ l(S, {
2834
2744
  type: "date",
2835
2745
  style: { width: "100%" },
2836
2746
  modelValue: e(n).expired_at,
2837
- "onUpdate:modelValue": t[2] || (t[2] = (L) => e(n).expired_at = L),
2747
+ "onUpdate:modelValue": t[2] || (t[2] = (A) => e(n).expired_at = A),
2838
2748
  disabled: e(u),
2839
- "value-format": e(E).DATE_VALUE_FORMAT,
2840
- format: e(E).DATE_FORMAT,
2749
+ "value-format": e($).DATE_VALUE_FORMAT,
2750
+ format: e($).DATE_FORMAT,
2841
2751
  placeholder: e(a)("placeholder.select")
2842
2752
  }, null, 8, ["modelValue", "disabled", "value-format", "format", "placeholder"])
2843
2753
  ]),
@@ -2850,7 +2760,7 @@ const Wl = /* @__PURE__ */ O({
2850
2760
  default: o(() => [
2851
2761
  l(s, {
2852
2762
  modelValue: e(n).remark,
2853
- "onUpdate:modelValue": t[3] || (t[3] = (L) => e(n).remark = L),
2763
+ "onUpdate:modelValue": t[3] || (t[3] = (A) => e(n).remark = A),
2854
2764
  disabled: e(u),
2855
2765
  placeholder: e(a)("placeholder.input")
2856
2766
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -2865,9 +2775,9 @@ const Wl = /* @__PURE__ */ O({
2865
2775
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
2866
2776
  };
2867
2777
  }
2868
- }), Al = {
2778
+ }), Ml = {
2869
2779
  gen: "gen"
2870
- }, me = Q.routineApi("SSL", "id", Al), Ml = /* @__PURE__ */ O({
2780
+ }, me = W.routineApi("SSL", "id", Ml), Cl = /* @__PURE__ */ O({
2871
2781
  __name: "SiteSelect",
2872
2782
  props: {
2873
2783
  modelValue: {
@@ -2881,55 +2791,52 @@ const Wl = /* @__PURE__ */ O({
2881
2791
  },
2882
2792
  emits: ["update:modelValue", "change"],
2883
2793
  setup(x, {
2884
- expose: R,
2885
- emit: k
2794
+ expose: U,
2795
+ emit: v
2886
2796
  }) {
2887
- const V = k, h = x, {
2797
+ const h = v, g = x, {
2888
2798
  requesting: b
2889
2799
  } = F(pe), {
2890
- key: i,
2891
- options: m,
2892
- refresh: p,
2800
+ key: c,
2801
+ options: p,
2802
+ refresh: i,
2893
2803
  change: n
2894
- } = de(re(h, "modelValue"), V, {
2804
+ } = te(ne(g, "modelValue"), h, {
2895
2805
  key: "SITE_LIST",
2896
2806
  api: pe,
2897
2807
  isArray: !0
2898
2808
  }, {
2899
- formatOptions: (v) => v.map((u) => {
2900
- var f;
2901
- return {
2902
- ...u,
2903
- label: u.prefix + "." + ((f = u.domain) == null ? void 0 : f.name),
2904
- value: u.id
2905
- };
2906
- })
2809
+ formatOptions: (w) => w.map((u) => ({
2810
+ ...u,
2811
+ label: u.prefix + "." + u.domain?.name,
2812
+ value: u.id
2813
+ }))
2907
2814
  });
2908
- return R({
2909
- refresh: p
2910
- }), (v, u) => {
2911
- const f = r("el-select-v2");
2912
- return S(), T(f, {
2913
- modelValue: e(i),
2914
- "onUpdate:modelValue": u[0] || (u[0] = (g) => N(i) ? i.value = g : null),
2915
- options: e(m),
2815
+ return U({
2816
+ refresh: i
2817
+ }), (w, u) => {
2818
+ const m = r("el-select-v2");
2819
+ return M(), T(m, {
2820
+ modelValue: e(c),
2821
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
2822
+ options: e(p),
2916
2823
  disabled: x.disabled || e(b),
2917
2824
  placeholder: e(a)("base.select config.domain"),
2918
2825
  onChange: e(n)
2919
2826
  }, {
2920
2827
  prefix: o(() => [l(e(fe), {
2921
2828
  loading: e(b),
2922
- onRefresh: e(p)
2829
+ onRefresh: e(i)
2923
2830
  }, null, 8, ["loading", "onRefresh"])]),
2924
2831
  _: 1
2925
2832
  }, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
2926
2833
  };
2927
2834
  }
2928
- }), Fe = /* @__PURE__ */ O({
2835
+ }), Ne = /* @__PURE__ */ O({
2929
2836
  __name: "SSLFormModal",
2930
2837
  emits: ["refresh"],
2931
- setup(x, { expose: R, emit: k }) {
2932
- const V = k, h = {
2838
+ setup(x, { expose: U, emit: v }) {
2839
+ const h = v, g = {
2933
2840
  id: 0,
2934
2841
  domain_id: void 0,
2935
2842
  client: "Lego",
@@ -2946,30 +2853,30 @@ const Wl = /* @__PURE__ */ O({
2946
2853
  path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
2947
2854
  email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
2948
2855
  encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
2949
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, me);
2950
- return R({
2951
- open: f,
2952
- modify: g,
2856
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, me);
2857
+ return U({
2858
+ open: m,
2859
+ modify: f,
2953
2860
  formData: n
2954
- }), (w, t) => {
2955
- const d = r("el-form-item"), s = r("el-radio-button"), y = r("el-radio-group"), c = r("el-input"), L = r("el-form");
2956
- return S(), T(e(oe), {
2957
- modelValue: e(i),
2958
- "onUpdate:modelValue": t[8] || (t[8] = (M) => N(i) ? i.value = M : null),
2959
- title: e(m)("ssl.ssl"),
2861
+ }), (R, t) => {
2862
+ const d = r("el-form-item"), s = r("el-radio-button"), S = r("el-radio-group"), k = r("el-input"), A = r("el-form");
2863
+ return M(), T(e(ae), {
2864
+ modelValue: e(c),
2865
+ "onUpdate:modelValue": t[8] || (t[8] = (V) => E(c) ? c.value = V : null),
2866
+ title: e(p)("ssl.ssl"),
2960
2867
  width: "600px",
2961
2868
  executing: e(u),
2962
- onClosed: e(A),
2869
+ onClosed: e(D),
2963
2870
  onSubmit: e(_)
2964
2871
  }, {
2965
2872
  default: o(() => [
2966
- l(L, {
2873
+ l(A, {
2967
2874
  ref_key: "form",
2968
- ref: p,
2875
+ ref: i,
2969
2876
  model: e(n),
2970
2877
  "label-width": "auto",
2971
2878
  rules: b,
2972
- disabled: e(v) || e(u)
2879
+ disabled: e(w) || e(u)
2973
2880
  }, {
2974
2881
  default: o(() => [
2975
2882
  l(d, {
@@ -2977,9 +2884,9 @@ const Wl = /* @__PURE__ */ O({
2977
2884
  label: e(a)("config.domain")
2978
2885
  }, {
2979
2886
  default: o(() => [
2980
- l(Ee, {
2887
+ l(Ie, {
2981
2888
  modelValue: e(n).domain_id,
2982
- "onUpdate:modelValue": t[0] || (t[0] = (M) => e(n).domain_id = M),
2889
+ "onUpdate:modelValue": t[0] || (t[0] = (V) => e(n).domain_id = V),
2983
2890
  disabled: e(u)
2984
2891
  }, null, 8, ["modelValue", "disabled"])
2985
2892
  ]),
@@ -2990,9 +2897,9 @@ const Wl = /* @__PURE__ */ O({
2990
2897
  label: e(a)("ssl.client")
2991
2898
  }, {
2992
2899
  default: o(() => [
2993
- l(y, {
2900
+ l(S, {
2994
2901
  modelValue: e(n).client,
2995
- "onUpdate:modelValue": t[1] || (t[1] = (M) => e(n).client = M)
2902
+ "onUpdate:modelValue": t[1] || (t[1] = (V) => e(n).client = V)
2996
2903
  }, {
2997
2904
  default: o(() => [
2998
2905
  l(s, {
@@ -3010,9 +2917,9 @@ const Wl = /* @__PURE__ */ O({
3010
2917
  label: e(a)("config.site")
3011
2918
  }, {
3012
2919
  default: o(() => [
3013
- l(Ml, {
2920
+ l(Cl, {
3014
2921
  modelValue: e(n).site_id,
3015
- "onUpdate:modelValue": t[2] || (t[2] = (M) => e(n).site_id = M),
2922
+ "onUpdate:modelValue": t[2] || (t[2] = (V) => e(n).site_id = V),
3016
2923
  disabled: e(u)
3017
2924
  }, null, 8, ["modelValue", "disabled"])
3018
2925
  ]),
@@ -3023,9 +2930,9 @@ const Wl = /* @__PURE__ */ O({
3023
2930
  label: e(a)("base.name")
3024
2931
  }, {
3025
2932
  default: o(() => [
3026
- l(c, {
2933
+ l(k, {
3027
2934
  modelValue: e(n).name,
3028
- "onUpdate:modelValue": t[3] || (t[3] = (M) => e(n).name = M),
2935
+ "onUpdate:modelValue": t[3] || (t[3] = (V) => e(n).name = V),
3029
2936
  disabled: e(u),
3030
2937
  placeholder: e(a)("placeholder.input")
3031
2938
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3037,9 +2944,9 @@ const Wl = /* @__PURE__ */ O({
3037
2944
  label: e(a)("base.path")
3038
2945
  }, {
3039
2946
  default: o(() => [
3040
- l(c, {
2947
+ l(k, {
3041
2948
  modelValue: e(n).path,
3042
- "onUpdate:modelValue": t[4] || (t[4] = (M) => e(n).path = M),
2949
+ "onUpdate:modelValue": t[4] || (t[4] = (V) => e(n).path = V),
3043
2950
  disabled: e(u),
3044
2951
  placeholder: e(a)("placeholder.input")
3045
2952
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3051,9 +2958,9 @@ const Wl = /* @__PURE__ */ O({
3051
2958
  label: e(a)("base.email")
3052
2959
  }, {
3053
2960
  default: o(() => [
3054
- l(c, {
2961
+ l(k, {
3055
2962
  modelValue: e(n).email,
3056
- "onUpdate:modelValue": t[5] || (t[5] = (M) => e(n).email = M),
2963
+ "onUpdate:modelValue": t[5] || (t[5] = (V) => e(n).email = V),
3057
2964
  disabled: e(u),
3058
2965
  placeholder: e(a)("placeholder.input")
3059
2966
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3065,9 +2972,9 @@ const Wl = /* @__PURE__ */ O({
3065
2972
  label: e(a)("config.encryption")
3066
2973
  }, {
3067
2974
  default: o(() => [
3068
- l(y, {
2975
+ l(S, {
3069
2976
  modelValue: e(n).encryption,
3070
- "onUpdate:modelValue": t[6] || (t[6] = (M) => e(n).encryption = M)
2977
+ "onUpdate:modelValue": t[6] || (t[6] = (V) => e(n).encryption = V)
3071
2978
  }, {
3072
2979
  default: o(() => [
3073
2980
  l(s, {
@@ -3085,9 +2992,9 @@ const Wl = /* @__PURE__ */ O({
3085
2992
  label: e(a)("base.remark")
3086
2993
  }, {
3087
2994
  default: o(() => [
3088
- l(c, {
2995
+ l(k, {
3089
2996
  modelValue: e(n).remark,
3090
- "onUpdate:modelValue": t[7] || (t[7] = (M) => e(n).remark = M),
2997
+ "onUpdate:modelValue": t[7] || (t[7] = (V) => e(n).remark = V),
3091
2998
  disabled: e(u),
3092
2999
  placeholder: e(a)("placeholder.input")
3093
3000
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3102,11 +3009,11 @@ const Wl = /* @__PURE__ */ O({
3102
3009
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
3103
3010
  };
3104
3011
  }
3105
- }), Dl = /* @__PURE__ */ O({
3012
+ }), Ll = /* @__PURE__ */ O({
3106
3013
  __name: "DomainProviderFormModal",
3107
3014
  emits: ["refresh"],
3108
- setup(x, { expose: R, emit: k }) {
3109
- const V = k, h = {
3015
+ setup(x, { expose: U, emit: v }) {
3016
+ const h = v, g = {
3110
3017
  id: 0,
3111
3018
  name: "",
3112
3019
  en_name: "",
@@ -3121,29 +3028,29 @@ const Wl = /* @__PURE__ */ O({
3121
3028
  key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
3122
3029
  secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
3123
3030
  end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
3124
- }, { modal: i, title: m, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: A } = ee(V, h, he);
3125
- return R({
3126
- open: f,
3127
- modify: g
3128
- }), (w, t) => {
3129
- const d = r("el-input"), s = r("el-form-item"), y = r("el-form");
3130
- return S(), T(e(oe), {
3131
- modelValue: e(i),
3132
- "onUpdate:modelValue": t[6] || (t[6] = (c) => N(i) ? i.value = c : null),
3133
- title: e(m)("config.domain"),
3031
+ }, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, he);
3032
+ return U({
3033
+ open: m,
3034
+ modify: f
3035
+ }), (R, t) => {
3036
+ const d = r("el-input"), s = r("el-form-item"), S = r("el-form");
3037
+ return M(), T(e(ae), {
3038
+ modelValue: e(c),
3039
+ "onUpdate:modelValue": t[6] || (t[6] = (k) => E(c) ? c.value = k : null),
3040
+ title: e(p)("config.domain"),
3134
3041
  width: "600px",
3135
3042
  executing: e(u),
3136
- onClosed: e(A),
3043
+ onClosed: e(D),
3137
3044
  onSubmit: e(_)
3138
3045
  }, {
3139
3046
  default: o(() => [
3140
- l(y, {
3047
+ l(S, {
3141
3048
  ref_key: "form",
3142
- ref: p,
3049
+ ref: i,
3143
3050
  model: e(n),
3144
3051
  "label-width": "auto",
3145
3052
  rules: b,
3146
- disabled: e(v) || e(u)
3053
+ disabled: e(w) || e(u)
3147
3054
  }, {
3148
3055
  default: o(() => [
3149
3056
  l(s, {
@@ -3153,7 +3060,7 @@ const Wl = /* @__PURE__ */ O({
3153
3060
  default: o(() => [
3154
3061
  l(d, {
3155
3062
  modelValue: e(n).name,
3156
- "onUpdate:modelValue": t[0] || (t[0] = (c) => e(n).name = c),
3063
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => e(n).name = k),
3157
3064
  disabled: e(u),
3158
3065
  placeholder: e(a)("placeholder.input")
3159
3066
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3167,7 +3074,7 @@ const Wl = /* @__PURE__ */ O({
3167
3074
  default: o(() => [
3168
3075
  l(d, {
3169
3076
  modelValue: e(n).en_name,
3170
- "onUpdate:modelValue": t[1] || (t[1] = (c) => e(n).en_name = c),
3077
+ "onUpdate:modelValue": t[1] || (t[1] = (k) => e(n).en_name = k),
3171
3078
  disabled: e(u),
3172
3079
  placeholder: e(a)("placeholder.input")
3173
3080
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3181,7 +3088,7 @@ const Wl = /* @__PURE__ */ O({
3181
3088
  default: o(() => [
3182
3089
  l(d, {
3183
3090
  modelValue: e(n).key,
3184
- "onUpdate:modelValue": t[2] || (t[2] = (c) => e(n).key = c),
3091
+ "onUpdate:modelValue": t[2] || (t[2] = (k) => e(n).key = k),
3185
3092
  disabled: e(u),
3186
3093
  placeholder: e(a)("placeholder.input")
3187
3094
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3195,7 +3102,7 @@ const Wl = /* @__PURE__ */ O({
3195
3102
  default: o(() => [
3196
3103
  l(d, {
3197
3104
  modelValue: e(n).secret,
3198
- "onUpdate:modelValue": t[3] || (t[3] = (c) => e(n).secret = c),
3105
+ "onUpdate:modelValue": t[3] || (t[3] = (k) => e(n).secret = k),
3199
3106
  disabled: e(u),
3200
3107
  placeholder: e(a)("placeholder.input")
3201
3108
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3209,7 +3116,7 @@ const Wl = /* @__PURE__ */ O({
3209
3116
  default: o(() => [
3210
3117
  l(d, {
3211
3118
  modelValue: e(n).end_point,
3212
- "onUpdate:modelValue": t[4] || (t[4] = (c) => e(n).end_point = c),
3119
+ "onUpdate:modelValue": t[4] || (t[4] = (k) => e(n).end_point = k),
3213
3120
  disabled: e(u),
3214
3121
  placeholder: e(a)("placeholder.input")
3215
3122
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3223,7 +3130,7 @@ const Wl = /* @__PURE__ */ O({
3223
3130
  default: o(() => [
3224
3131
  l(d, {
3225
3132
  modelValue: e(n).remark,
3226
- "onUpdate:modelValue": t[5] || (t[5] = (c) => e(n).remark = c),
3133
+ "onUpdate:modelValue": t[5] || (t[5] = (k) => e(n).remark = k),
3227
3134
  disabled: e(u),
3228
3135
  placeholder: e(a)("placeholder.input")
3229
3136
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -3238,20 +3145,20 @@ const Wl = /* @__PURE__ */ O({
3238
3145
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
3239
3146
  };
3240
3147
  }
3241
- }), Sl = /* @__PURE__ */ O({
3148
+ }), Tl = /* @__PURE__ */ O({
3242
3149
  __name: "DomainProviderTableDrawer",
3243
3150
  setup(x, {
3244
- expose: R
3151
+ expose: U
3245
3152
  }) {
3246
3153
  const {
3247
- requesting: k
3248
- } = F(he), V = P(!1), {
3249
- tableRef: h,
3154
+ requesting: v
3155
+ } = F(he), h = G(!1), {
3156
+ tableRef: g,
3250
3157
  formModalRef: b,
3251
- refresh: i,
3252
- openFormModal: m,
3253
- editFormModal: p
3254
- } = z({}), n = [{
3158
+ refresh: c,
3159
+ openFormModal: p,
3160
+ editFormModal: i
3161
+ } = Q({}), n = [{
3255
3162
  prop: "name",
3256
3163
  label: a("base.name"),
3257
3164
  width: 0,
@@ -3268,90 +3175,90 @@ const Wl = /* @__PURE__ */ O({
3268
3175
  render: ({
3269
3176
  rowData: u
3270
3177
  }) => l(r("el-space"), null, {
3271
- default: () => [l(ne, {
3178
+ default: () => [l(re, {
3272
3179
  icon: "icon-edit",
3273
3180
  t: "",
3274
- onModify: () => p({
3181
+ onModify: () => i({
3275
3182
  id: u.id
3276
3183
  })
3277
3184
  }, null)]
3278
3185
  })
3279
3186
  }];
3280
- return R({
3187
+ return U({
3281
3188
  open: () => {
3282
- V.value = !0;
3189
+ h.value = !0;
3283
3190
  }
3284
- }), (u, f) => {
3285
- const g = r("el-page-header");
3286
- return S(), T(e(_e), {
3287
- modelValue: V.value,
3288
- "onUpdate:modelValue": f[0] || (f[0] = (_) => V.value = _),
3191
+ }), (u, m) => {
3192
+ const f = r("el-page-header");
3193
+ return M(), T(e(_e), {
3194
+ modelValue: h.value,
3195
+ "onUpdate:modelValue": m[0] || (m[0] = (_) => h.value = _),
3289
3196
  width: "400px",
3290
3197
  "show-close": !1,
3291
3198
  class: "basic-drawer"
3292
3199
  }, {
3293
- title: o(() => [l(g, {
3200
+ title: o(() => [l(f, {
3294
3201
  icon: ""
3295
3202
  }, {
3296
- title: o(() => [W("span", null, I(e(a)("config.domain config.provider")), 1)]),
3297
- content: o(() => [l(e(G), {
3298
- onRefresh: e(i),
3203
+ title: o(() => [P("span", null, z(e(a)("config.domain config.provider")), 1)]),
3204
+ content: o(() => [l(e(K), {
3205
+ onRefresh: e(c),
3299
3206
  size: "default",
3300
- loading: e(k)
3207
+ loading: e(v)
3301
3208
  }, null, 8, ["onRefresh", "loading"])]),
3302
- extra: o(() => [l(e(K), {
3303
- onOpen: e(m)
3209
+ extra: o(() => [l(e(B), {
3210
+ onOpen: e(p)
3304
3211
  }, null, 8, ["onOpen"])]),
3305
3212
  _: 1
3306
3213
  })]),
3307
3214
  default: o(() => [l(e(ie), {
3308
3215
  ref_key: "tableRef",
3309
- ref: h,
3216
+ ref: g,
3310
3217
  size: "small",
3311
3218
  "row-key": "id",
3312
3219
  url: e(he).urls.list,
3313
3220
  columns: n,
3314
- loading: e(k)
3315
- }, null, 8, ["url", "loading"]), l(Dl, {
3221
+ loading: e(v)
3222
+ }, null, 8, ["url", "loading"]), l(Ll, {
3316
3223
  ref_key: "formModalRef",
3317
3224
  ref: b,
3318
- onRefresh: e(i)
3225
+ onRefresh: e(c)
3319
3226
  }, null, 8, ["onRefresh"])]),
3320
3227
  _: 1
3321
3228
  }, 8, ["modelValue"]);
3322
3229
  };
3323
3230
  }
3324
- }), Cl = /* @__PURE__ */ O({
3231
+ }), ql = /* @__PURE__ */ O({
3325
3232
  __name: "DomainTableDrawer",
3326
3233
  setup(x, {
3327
- expose: R
3234
+ expose: U
3328
3235
  }) {
3329
3236
  const {
3330
- requesting: k
3331
- } = F(ge), V = P(!1), {
3332
- tableRef: h,
3333
- formModalRef: b,
3334
- refresh: i,
3335
- openFormModal: m,
3336
- editFormModal: p
3337
- } = z(), {
3338
- formModalRef: n,
3339
- openFormModal: v,
3340
- editFormModal: u
3341
- } = z(), {
3342
- formModalRef: f,
3343
- openFormModal: g
3344
- } = z(), _ = [{
3237
+ requesting: v
3238
+ } = F(ge), {
3239
+ visible: h,
3240
+ open: g
3241
+ } = xe(), {
3242
+ tableRef: b,
3243
+ formModalRef: c,
3244
+ refresh: p,
3245
+ openFormModal: i,
3246
+ editFormModal: n
3247
+ } = Q(), {
3248
+ formRef: w,
3249
+ open: u,
3250
+ edit: m
3251
+ } = Te(), {
3252
+ dialogRef: f,
3253
+ open: _
3254
+ } = ve(), D = [{
3345
3255
  prop: "provider",
3346
3256
  label: a("config.domain config.provider"),
3347
3257
  width: 120,
3348
3258
  cellRenderer: ({
3349
- rowData: w
3259
+ rowData: R
3350
3260
  }) => l(r("el-text"), null, {
3351
- default: () => {
3352
- var t;
3353
- return [(t = w.provider) == null ? void 0 : t.name];
3354
- }
3261
+ default: () => [R.provider?.name]
3355
3262
  })
3356
3263
  }, {
3357
3264
  prop: "name",
@@ -3368,37 +3275,34 @@ const Wl = /* @__PURE__ */ O({
3368
3275
  width: 100,
3369
3276
  align: "center",
3370
3277
  render: ({
3371
- rowData: w
3278
+ rowData: R
3372
3279
  }) => l(r("el-space"), null, {
3373
- default: () => [l(ne, {
3280
+ default: () => [l(re, {
3374
3281
  icon: "icon-edit",
3375
3282
  t: "",
3376
- onModify: () => p({
3377
- id: w.id
3283
+ onModify: () => n({
3284
+ id: R.id
3378
3285
  })
3379
- }, null), l(K, {
3286
+ }, null), l(B, {
3380
3287
  icon: "icon-safetycertificate-f",
3381
3288
  type: "primary",
3382
3289
  size: "small",
3383
3290
  link: !0,
3384
3291
  onOpen: () => {
3385
- var t;
3386
- w.ssl && w.ssl.id ? u({
3387
- id: (t = w.ssl) == null ? void 0 : t.id
3388
- }) : (n.value.formData.domain_id = w.id, n.value.formData.site_id = 0, v());
3292
+ R.ssl && R.ssl.id ? m({
3293
+ id: R.ssl?.id
3294
+ }) : (w.value.formData.domain_id = R.id, w.value.formData.site_id = 0, u());
3389
3295
  }
3390
3296
  }, null)]
3391
3297
  })
3392
3298
  }];
3393
- return R({
3394
- open: () => {
3395
- V.value = !0;
3396
- }
3397
- }), (w, t) => {
3299
+ return U({
3300
+ open: g
3301
+ }), (R, t) => {
3398
3302
  const d = r("el-space"), s = r("el-page-header");
3399
- return S(), T(e(_e), {
3400
- modelValue: V.value,
3401
- "onUpdate:modelValue": t[0] || (t[0] = (y) => V.value = y),
3303
+ return M(), T(e(_e), {
3304
+ modelValue: e(h),
3305
+ "onUpdate:modelValue": t[0] || (t[0] = (S) => E(h) ? h.value = S : null),
3402
3306
  width: "600px",
3403
3307
  "show-close": !1,
3404
3308
  class: "basic-drawer"
@@ -3406,20 +3310,20 @@ const Wl = /* @__PURE__ */ O({
3406
3310
  title: o(() => [l(s, {
3407
3311
  icon: ""
3408
3312
  }, {
3409
- title: o(() => [W("span", null, I(e(a)("config.domain")), 1)]),
3410
- content: o(() => [l(e(G), {
3411
- onRefresh: e(i),
3313
+ title: o(() => [P("span", null, z(e(a)("config.domain")), 1)]),
3314
+ content: o(() => [l(e(K), {
3315
+ onRefresh: e(p),
3412
3316
  size: "default",
3413
- loading: e(k)
3414
- }, null, 8, ["onRefresh", "loading"]), l(e(K), {
3415
- onOpen: e(m)
3317
+ loading: e(v)
3318
+ }, null, 8, ["onRefresh", "loading"]), l(e(B), {
3319
+ onOpen: e(i)
3416
3320
  }, null, 8, ["onOpen"])]),
3417
3321
  extra: o(() => [l(d, {
3418
3322
  class: "w-full extra-tool",
3419
3323
  alignment: "center"
3420
3324
  }, {
3421
- default: o(() => [l(e(K), {
3422
- onOpen: e(g),
3325
+ default: o(() => [l(e(B), {
3326
+ onOpen: e(_),
3423
3327
  type: "danger"
3424
3328
  }, null, 8, ["onOpen"])]),
3425
3329
  _: 1
@@ -3428,21 +3332,21 @@ const Wl = /* @__PURE__ */ O({
3428
3332
  })]),
3429
3333
  default: o(() => [l(e(ie), {
3430
3334
  ref_key: "tableRef",
3431
- ref: h,
3335
+ ref: b,
3432
3336
  size: "small",
3433
3337
  "row-key": "id",
3434
3338
  url: e(ge).urls.list,
3435
- columns: _,
3436
- loading: e(k)
3437
- }, null, 8, ["url", "loading"]), l(Ul, {
3339
+ columns: D,
3340
+ loading: e(v)
3341
+ }, null, 8, ["url", "loading"]), l(Sl, {
3438
3342
  ref_key: "formModalRef",
3439
- ref: b,
3440
- onRefresh: e(i)
3441
- }, null, 8, ["onRefresh"]), l(Fe, {
3343
+ ref: c,
3344
+ onRefresh: e(p)
3345
+ }, null, 8, ["onRefresh"]), l(Ne, {
3442
3346
  ref_key: "sslFormModalRef",
3443
- ref: n,
3444
- onRefresh: e(i)
3445
- }, null, 8, ["onRefresh"]), l(Sl, {
3347
+ ref: w,
3348
+ onRefresh: e(p)
3349
+ }, null, 8, ["onRefresh"]), l(Tl, {
3446
3350
  ref_key: "providerTableDrawerRef",
3447
3351
  ref: f
3448
3352
  }, null, 512)]),
@@ -3450,21 +3354,24 @@ const Wl = /* @__PURE__ */ O({
3450
3354
  }, 8, ["modelValue"]);
3451
3355
  };
3452
3356
  }
3453
- }), Ll = /* @__PURE__ */ O({
3357
+ }), Ol = /* @__PURE__ */ O({
3454
3358
  __name: "SSLTableDrawer",
3455
3359
  setup(x, {
3456
- expose: R
3360
+ expose: U
3457
3361
  }) {
3458
3362
  const {
3459
- requesting: k,
3460
- executing: V
3461
- } = F(me), h = P(0), b = P(!1), {
3462
- tableRef: i,
3463
- formModalRef: m,
3464
- refresh: p,
3465
- openFormModal: n,
3466
- editFormModal: v
3467
- } = z(), u = [
3363
+ requesting: v,
3364
+ executing: h
3365
+ } = F(me), g = G(0), {
3366
+ visible: b,
3367
+ open: c
3368
+ } = xe(), {
3369
+ tableRef: p,
3370
+ formModalRef: i,
3371
+ refresh: n,
3372
+ openFormModal: w,
3373
+ editFormModal: u
3374
+ } = Q(), m = [
3468
3375
  {
3469
3376
  prop: "client",
3470
3377
  label: a("ssl.client"),
@@ -3503,58 +3410,56 @@ const Wl = /* @__PURE__ */ O({
3503
3410
  width: 160,
3504
3411
  align: "center",
3505
3412
  render: ({
3506
- rowData: A
3413
+ rowData: D
3507
3414
  }) => l(r("el-space"), null, {
3508
- default: () => [l(ne, {
3415
+ default: () => [l(re, {
3509
3416
  size: "default",
3510
3417
  icon: "icon-edit",
3511
3418
  t: "",
3512
- disabled: V.value,
3513
- onModify: () => v({
3514
- id: A.id
3419
+ disabled: h.value,
3420
+ onModify: () => u({
3421
+ id: D.id
3515
3422
  })
3516
3423
  }, null), l(X, {
3517
3424
  size: "default",
3518
3425
  icon: "icon-key",
3519
3426
  t: "",
3520
3427
  text: !0,
3521
- disabled: V.value && h.value !== A.id,
3522
- loading: h.value == A.id,
3523
- onClick: () => g(A.id)
3428
+ disabled: h.value && g.value !== D.id,
3429
+ loading: g.value == D.id,
3430
+ onClick: () => f(D.id)
3524
3431
  }, null), l(X, {
3525
3432
  size: "default",
3526
3433
  icon: "icon-cloud-download",
3527
3434
  t: "",
3528
3435
  text: !0,
3529
- disabled: V.value && h.value !== A.id,
3530
- loading: h.value == A.id,
3531
- onClick: () => _(A)
3436
+ disabled: h.value && g.value !== D.id,
3437
+ loading: g.value == D.id,
3438
+ onClick: () => _(D)
3532
3439
  }, null)]
3533
3440
  })
3534
3441
  }
3535
- ], f = () => {
3536
- b.value = !0;
3537
- }, g = (A) => {
3442
+ ], f = (D) => {
3538
3443
  me.gen({
3539
- id: A
3540
- }).then((w) => {
3541
- console.warn("Res:", w);
3444
+ id: D
3445
+ }).then((R) => {
3446
+ console.warn("Res:", R);
3542
3447
  });
3543
3448
  };
3544
- function _(A) {
3545
- const w = Le.getDownloadUrl(A.path + ".zip");
3546
- fetch(w).then((t) => t.blob()).then((t) => {
3449
+ function _(D) {
3450
+ const R = Oe.getDownloadUrl(D.path + ".zip");
3451
+ fetch(R).then((t) => t.blob()).then((t) => {
3547
3452
  let d = URL.createObjectURL(t), s = document.createElement("a");
3548
- s.style.display = "none", s.href = d, s.download = A.name + ".zip", s.click(), URL.revokeObjectURL(t);
3453
+ s.style.display = "none", s.href = d, s.download = D.name + ".zip", s.click(), URL.revokeObjectURL(t);
3549
3454
  });
3550
3455
  }
3551
- return R({
3552
- open: f
3553
- }), (A, w) => {
3456
+ return U({
3457
+ open: c
3458
+ }), (D, R) => {
3554
3459
  const t = r("el-page-header");
3555
- return S(), T(e(_e), {
3556
- modelValue: b.value,
3557
- "onUpdate:modelValue": w[0] || (w[0] = (d) => b.value = d),
3460
+ return M(), T(e(_e), {
3461
+ modelValue: e(b),
3462
+ "onUpdate:modelValue": R[0] || (R[0] = (d) => E(b) ? b.value = d : null),
3558
3463
  width: "1000px",
3559
3464
  "show-close": !1,
3560
3465
  class: "basic-drawer"
@@ -3562,156 +3467,139 @@ const Wl = /* @__PURE__ */ O({
3562
3467
  title: o(() => [l(t, {
3563
3468
  icon: ""
3564
3469
  }, {
3565
- title: o(() => [W("span", null, I(e(a)("ssl.ssl")), 1)]),
3566
- content: o(() => [l(e(G), {
3567
- onRefresh: e(p),
3470
+ title: o(() => [P("span", null, z(e(a)("ssl.ssl")), 1)]),
3471
+ content: o(() => [l(e(K), {
3472
+ onRefresh: e(n),
3568
3473
  size: "default",
3569
- loading: e(k)
3570
- }, null, 8, ["onRefresh", "loading"]), l(e(K), {
3571
- onOpen: e(n)
3474
+ loading: e(v)
3475
+ }, null, 8, ["onRefresh", "loading"]), l(e(B), {
3476
+ onOpen: e(w)
3572
3477
  }, null, 8, ["onOpen"])]),
3573
3478
  _: 1
3574
3479
  })]),
3575
3480
  default: o(() => [l(e(ie), {
3576
3481
  ref_key: "tableRef",
3577
- ref: i,
3482
+ ref: p,
3578
3483
  size: "default",
3579
3484
  "row-key": "id",
3580
3485
  url: e(me).urls.list,
3581
- columns: u,
3582
- loading: e(k)
3583
- }, null, 8, ["url", "loading"]), l(Fe, {
3486
+ columns: m,
3487
+ loading: e(v)
3488
+ }, null, 8, ["url", "loading"]), l(Ne, {
3584
3489
  ref_key: "formModalRef",
3585
- ref: m,
3586
- onRefresh: e(p)
3490
+ ref: i,
3491
+ onRefresh: e(n)
3587
3492
  }, null, 8, ["onRefresh"])]),
3588
3493
  _: 1
3589
3494
  }, 8, ["modelValue"]);
3590
3495
  };
3591
3496
  }
3592
- }), De = Q.routineApi("SSLLog", "id"), ql = /* @__PURE__ */ O({
3497
+ }), Me = W.routineApi("SSLLog", "id"), $l = /* @__PURE__ */ O({
3593
3498
  __name: "SSLLogTableDrawer",
3594
3499
  props: {
3595
- ssl: {
3596
- type: Object,
3597
- default: () => ({})
3598
- }
3500
+ ssl: { type: Object, default: () => ({}) }
3599
3501
  },
3600
- setup(x, {
3601
- expose: R
3602
- }) {
3603
- const k = x, {
3604
- requesting: V,
3605
- executing: h
3606
- } = F([De, me]), b = P(!1), {
3607
- tableRef: i,
3608
- refresh: m
3609
- } = z(), p = [{
3610
- prop: "status.label",
3611
- label: a("base.status"),
3612
- width: 100
3613
- }, {
3614
- prop: "at",
3615
- label: a("base.time"),
3616
- width: 180
3617
- }, {
3618
- prop: "type_text",
3619
- label: a("base.type"),
3620
- width: 80
3621
- }, {
3622
- prop: "result",
3623
- label: a("base.result"),
3624
- width: 0
3625
- }], n = () => {
3626
- b.value = !0;
3627
- };
3628
- function v() {
3629
- me.gen({
3630
- id: k.ssl.id
3631
- }).then((f) => {
3632
- console.warn("Res:", f);
3502
+ setup(x, { expose: U }) {
3503
+ const v = x, { requesting: h, executing: g } = F([Me, me]), { visible: b, open: c } = xe(), { tableRef: p, refresh: i } = ll(), n = [
3504
+ { prop: "status.label", label: a("base.status"), width: 100 },
3505
+ { prop: "at", label: a("base.time"), width: 180 },
3506
+ { prop: "type_text", label: a("base.type"), width: 80 },
3507
+ { prop: "result", label: a("base.result"), width: 0 }
3508
+ ];
3509
+ function w() {
3510
+ me.gen({ id: v.ssl.id }).then((m) => {
3511
+ console.warn("Res:", m);
3633
3512
  });
3634
3513
  }
3635
3514
  function u() {
3636
- const f = Le.getDownloadUrl(k.ssl.path + ".zip");
3637
- fetch(f).then((g) => g.blob()).then((g) => {
3638
- let _ = URL.createObjectURL(g), A = document.createElement("a");
3639
- A.style.display = "none", A.href = _, A.download = k.ssl.name + ".zip", A.click(), URL.revokeObjectURL(g);
3515
+ const m = Oe.getDownloadUrl(v.ssl.path + ".zip");
3516
+ fetch(m).then((f) => f.blob()).then((f) => {
3517
+ let _ = URL.createObjectURL(f), D = document.createElement("a");
3518
+ D.style.display = "none", D.href = _, D.download = v.ssl.name + ".zip", D.click(), URL.revokeObjectURL(f);
3640
3519
  });
3641
3520
  }
3642
- return R({
3643
- open: n
3644
- }), (f, g) => {
3521
+ return U({
3522
+ open: c
3523
+ }), (m, f) => {
3645
3524
  const _ = r("el-page-header");
3646
- return S(), T(e(_e), {
3647
- modelValue: b.value,
3648
- "onUpdate:modelValue": g[0] || (g[0] = (A) => b.value = A),
3525
+ return M(), T(e(_e), {
3526
+ modelValue: e(b),
3527
+ "onUpdate:modelValue": f[0] || (f[0] = (D) => E(b) ? b.value = D : null),
3649
3528
  width: "600px",
3650
3529
  "show-close": !1,
3651
3530
  class: "basic-drawer"
3652
3531
  }, {
3653
- title: o(() => [l(_, {
3654
- icon: ""
3655
- }, {
3656
- title: o(() => [W("span", null, I(e(a)("config.ssl base.log")), 1)]),
3657
- content: o(() => [l(e(G), {
3658
- onRefresh: e(m),
3659
- size: "default",
3660
- loading: e(V)
3661
- }, null, 8, ["onRefresh", "loading"])]),
3662
- extra: o(() => [l(e(X), {
3663
- size: "default",
3664
- type: "danger",
3665
- icon: "icon-key",
3666
- disabled: e(h),
3667
- loading: e(h),
3668
- onClick: v
3669
- }, null, 8, ["disabled", "loading"]), l(e(X), {
3670
- size: "default",
3671
- type: "primary",
3672
- icon: "icon-cloud-download",
3673
- disabled: e(h),
3674
- loading: e(h),
3675
- onClick: u
3676
- }, null, 8, ["disabled", "loading"])]),
3677
- _: 1
3678
- })]),
3679
- default: o(() => [l(e(be), {
3680
- ref_key: "tableRef",
3681
- ref: i,
3682
- size: "small",
3683
- "row-key": "id",
3684
- url: e(De).urls.search,
3685
- columns: p,
3686
- loading: e(V)
3687
- }, null, 8, ["url", "loading"])]),
3532
+ title: o(() => [
3533
+ l(_, { icon: "" }, {
3534
+ title: o(() => [
3535
+ P("span", null, z(e(a)("config.ssl base.log")), 1)
3536
+ ]),
3537
+ content: o(() => [
3538
+ l(e(K), {
3539
+ onRefresh: e(i),
3540
+ size: "default",
3541
+ loading: e(h)
3542
+ }, null, 8, ["onRefresh", "loading"])
3543
+ ]),
3544
+ extra: o(() => [
3545
+ l(e(X), {
3546
+ size: "default",
3547
+ type: "danger",
3548
+ icon: "icon-key",
3549
+ disabled: e(g),
3550
+ loading: e(g),
3551
+ onClick: w
3552
+ }, null, 8, ["disabled", "loading"]),
3553
+ l(e(X), {
3554
+ size: "default",
3555
+ type: "primary",
3556
+ icon: "icon-cloud-download",
3557
+ disabled: e(g),
3558
+ loading: e(g),
3559
+ onClick: u
3560
+ }, null, 8, ["disabled", "loading"])
3561
+ ]),
3562
+ _: 1
3563
+ })
3564
+ ]),
3565
+ default: o(() => [
3566
+ l(e(be), {
3567
+ ref_key: "tableRef",
3568
+ ref: p,
3569
+ size: "small",
3570
+ "row-key": "id",
3571
+ url: e(Me).urls.search,
3572
+ columns: n,
3573
+ loading: e(h)
3574
+ }, null, 8, ["url", "loading"])
3575
+ ]),
3688
3576
  _: 1
3689
3577
  }, 8, ["modelValue"]);
3690
3578
  };
3691
3579
  }
3692
- }), Tl = /* @__PURE__ */ O({
3580
+ }), El = /* @__PURE__ */ O({
3693
3581
  __name: "index",
3694
3582
  setup(x) {
3695
- const R = P(), {
3696
- requesting: k,
3697
- executing: V
3583
+ const U = ql, v = Ol, h = $l, g = G(), {
3584
+ requesting: b,
3585
+ executing: c
3698
3586
  } = F(pe), {
3699
- tableRef: h,
3700
- formModalRef: b,
3701
- reset: i,
3702
- refresh: m,
3703
- openFormModal: p,
3704
- editFormModal: n
3705
- } = z(), {
3706
- formModalRef: v,
3707
- openFormModal: u
3708
- } = z(), {
3709
- formModalRef: f,
3710
- openFormModal: g
3711
- } = z(), {
3712
- formModalRef: _,
3713
- openFormModal: A
3714
- } = z(), w = [{
3587
+ tableRef: p,
3588
+ formModalRef: i,
3589
+ reset: n,
3590
+ refresh: w,
3591
+ openFormModal: u,
3592
+ editFormModal: m
3593
+ } = Q(), {
3594
+ dialogRef: f,
3595
+ open: _
3596
+ } = ve(), {
3597
+ dialogRef: D,
3598
+ open: R
3599
+ } = ve(), {
3600
+ dialogRef: t,
3601
+ open: d
3602
+ } = ve(), s = [{
3715
3603
  prop: "domain.name",
3716
3604
  label: a("config.domain"),
3717
3605
  width: 129,
@@ -3736,19 +3624,16 @@ const Wl = /* @__PURE__ */ O({
3736
3624
  align: "center",
3737
3625
  width: 140,
3738
3626
  cellRenderer: ({
3739
- rowData: s
3627
+ rowData: A
3740
3628
  }) => l(r("el-space"), null, {
3741
3629
  default: () => [l(r("el-text"), null, {
3742
- default: () => {
3743
- var y;
3744
- return [(y = s.ssl) == null ? void 0 : y.renewal_days, le(" 天")];
3745
- }
3630
+ default: () => [A.ssl?.renewal_days, ee(" 天")]
3746
3631
  }), l(r("el-button"), {
3747
3632
  size: "small",
3748
3633
  type: "primary",
3749
3634
  text: !0,
3750
- onClick: (y) => {
3751
- y.stopPropagation(), s.ssl && s.ssl.id && (R.value = s.ssl, A());
3635
+ onClick: (V) => {
3636
+ V.stopPropagation(), A.ssl && A.ssl.id && (g.value = A.ssl, d());
3752
3637
  }
3753
3638
  }, {
3754
3639
  default: () => [l("span", {
@@ -3767,36 +3652,36 @@ const Wl = /* @__PURE__ */ O({
3767
3652
  width: 100,
3768
3653
  align: "center",
3769
3654
  cellRenderer: ({
3770
- rowData: s
3655
+ rowData: A
3771
3656
  }) => l(r("el-space"), null, {
3772
- default: () => [l(ne, {
3657
+ default: () => [l(re, {
3773
3658
  icon: "icon-edit",
3774
3659
  t: "",
3775
- onModify: () => n({
3776
- id: s.id
3660
+ onModify: () => m({
3661
+ id: A.id
3777
3662
  })
3778
3663
  }, null), l(X, {
3779
3664
  icon: "icon-securityscan",
3780
3665
  type: "primary",
3781
3666
  size: "small",
3782
3667
  link: !0,
3783
- disabled: V.value,
3784
- loading: t.value == s.id && V.value,
3785
- onClick: () => d(s)
3668
+ disabled: c.value,
3669
+ loading: S.value == A.id && c.value,
3670
+ onClick: () => k(A)
3786
3671
  }, null)]
3787
3672
  })
3788
- }], t = P(0), d = (s) => {
3789
- t.value = s.id, pe.check({
3790
- id: s.id
3791
- }).then((y) => {
3792
- y.data && (Xe(y), m());
3673
+ }], S = G(0), k = (A) => {
3674
+ S.value = A.id, pe.check({
3675
+ id: A.id
3676
+ }).then((V) => {
3677
+ V.data && (al(V), w());
3793
3678
  }).finally(() => {
3794
- t.value = 0;
3679
+ S.value = 0;
3795
3680
  });
3796
3681
  };
3797
- return (s, y) => {
3798
- const c = r("el-space"), L = r("el-page-header"), M = r("el-card");
3799
- return S(), T(M, {
3682
+ return (A, V) => {
3683
+ const L = r("el-space"), y = r("el-page-header"), C = r("el-card");
3684
+ return M(), T(C, {
3800
3685
  "body-style": {
3801
3686
  padding: "12px",
3802
3687
  height: "450px"
@@ -3804,72 +3689,72 @@ const Wl = /* @__PURE__ */ O({
3804
3689
  "body-class": "flex-1",
3805
3690
  class: "config-card"
3806
3691
  }, {
3807
- header: o(() => [l(L, {
3692
+ header: o(() => [l(y, {
3808
3693
  icon: ""
3809
3694
  }, {
3810
- title: o(() => [W("span", null, I(e(a)("config.keys.sites")), 1)]),
3811
- content: o(() => [l(c, {
3695
+ title: o(() => [P("span", null, z(e(a)("config.keys.sites")), 1)]),
3696
+ content: o(() => [l(L, {
3812
3697
  alignment: "center",
3813
3698
  style: {
3814
3699
  height: "32px"
3815
3700
  }
3816
3701
  }, {
3817
- default: o(() => [l(e(G), {
3818
- loading: e(k),
3819
- onRefresh: e(i)
3820
- }, null, 8, ["loading", "onRefresh"]), l(e(K), {
3821
- onOpen: e(p)
3702
+ default: o(() => [l(e(K), {
3703
+ loading: e(b),
3704
+ onRefresh: e(n)
3705
+ }, null, 8, ["loading", "onRefresh"]), l(e(B), {
3706
+ onOpen: e(u)
3822
3707
  }, null, 8, ["onOpen"])]),
3823
3708
  _: 1
3824
3709
  })]),
3825
- extra: o(() => [l(e(K), {
3826
- onOpen: e(u),
3710
+ extra: o(() => [l(e(B), {
3711
+ onOpen: e(_),
3827
3712
  icon: "icon-compass"
3828
- }, null, 8, ["onOpen"]), l(e(K), {
3829
- onOpen: e(g),
3713
+ }, null, 8, ["onOpen"]), l(e(B), {
3714
+ onOpen: e(R),
3830
3715
  icon: "icon-safetycertificate-f"
3831
3716
  }, null, 8, ["onOpen"])]),
3832
3717
  _: 1
3833
3718
  })]),
3834
3719
  default: o(() => [l(e(ie), {
3835
3720
  ref_key: "tableRef",
3836
- ref: h,
3721
+ ref: p,
3837
3722
  size: "small",
3838
3723
  "row-key": "id",
3839
- url: e(pe).urls[e(Ze)],
3724
+ url: e(pe).urls[e(ol)],
3840
3725
  "auto-search": "",
3841
- columns: w
3842
- }, null, 8, ["url"]), l(xl, {
3726
+ columns: s
3727
+ }, null, 8, ["url"]), l(Al, {
3843
3728
  ref_key: "formModalRef",
3844
- ref: b,
3845
- onRefresh: e(m)
3846
- }, null, 8, ["onRefresh"]), l(Cl, {
3729
+ ref: i,
3730
+ onRefresh: e(w)
3731
+ }, null, 8, ["onRefresh"]), l(e(U), {
3847
3732
  ref_key: "domainTableDrawerRef",
3848
- ref: v
3849
- }, null, 512), l(Ll, {
3850
- ref_key: "sslTableDrawerRef",
3851
3733
  ref: f
3852
- }, null, 512), l(ql, {
3734
+ }, null, 512), l(e(v), {
3735
+ ref_key: "sslTableDrawerRef",
3736
+ ref: D
3737
+ }, null, 512), l(e(h), {
3853
3738
  ref_key: "sslLogTableDrawerRef",
3854
- ref: _
3739
+ ref: t
3855
3740
  }, null, 512)]),
3856
3741
  _: 1
3857
3742
  });
3858
3743
  };
3859
3744
  }
3860
- }), Ol = /* @__PURE__ */ Te(Tl, [["__scopeId", "data-v-935d9dc4"]]), $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3745
+ }), Fl = /* @__PURE__ */ Ee(El, [["__scopeId", "data-v-34e18506"]]), zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3861
3746
  __proto__: null,
3862
- default: Ol
3863
- }, Symbol.toStringTag, { value: "Module" })), El = {
3747
+ default: Fl
3748
+ }, Symbol.toStringTag, { value: "Module" })), Il = {
3864
3749
  request: "request",
3865
3750
  error: "error",
3866
3751
  sql: "SQL"
3867
- }, ce = Q.routineApi("log", "id", El), Yl = /* @__PURE__ */ O({
3752
+ }, ce = W.routineApi("log", "id", Il), Jl = /* @__PURE__ */ O({
3868
3753
  __name: "index",
3869
3754
  setup(x) {
3870
- const R = {
3871
- dates: [E.getCurrentHour().format(E.DATE_VALUE_FORMAT), E.getCurrentHour(1).format(E.DATE_VALUE_FORMAT)]
3872
- }, k = [{
3755
+ const U = {
3756
+ dates: [$.getCurrentHour().format($.DATE_VALUE_FORMAT), $.getCurrentHour(1).format($.DATE_VALUE_FORMAT)]
3757
+ }, v = [{
3873
3758
  label: a("base.sort"),
3874
3759
  type: "index",
3875
3760
  width: 60
@@ -3878,52 +3763,52 @@ const Wl = /* @__PURE__ */ O({
3878
3763
  prop: "time",
3879
3764
  width: 180,
3880
3765
  render: ({
3881
- rowData: p
3882
- }) => l(H, null, [E.formatDate(p.time)])
3766
+ rowData: i
3767
+ }) => l(j, null, [$.formatDate(i.time)])
3883
3768
  }, {
3884
3769
  label: a("base.url"),
3885
3770
  prop: "url",
3886
3771
  align: "left",
3887
3772
  width: 200
3888
3773
  }], {
3889
- requesting: V
3774
+ requesting: h
3890
3775
  } = F(ce), {
3891
- tableRef: h,
3776
+ tableRef: g,
3892
3777
  keyword: b,
3893
- search: i,
3894
- reset: m
3895
- } = z(R);
3896
- return (p, n) => {
3897
- const v = r("el-date-picker"), u = r("el-space"), f = r("el-page-header"), g = r("el-card");
3898
- return S(), T(g, {
3778
+ search: c,
3779
+ reset: p
3780
+ } = Q(U);
3781
+ return (i, n) => {
3782
+ const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
3783
+ return M(), T(f, {
3899
3784
  class: "basic-card flex-full",
3900
3785
  "body-class": "flex-1"
3901
3786
  }, {
3902
- header: o(() => [l(f, {
3787
+ header: o(() => [l(m, {
3903
3788
  class: "basic-header"
3904
3789
  }, {
3905
- title: o(() => [l(e(G), {
3906
- loading: e(V),
3907
- onRefresh: e(m)
3790
+ title: o(() => [l(e(K), {
3791
+ loading: e(h),
3792
+ onRefresh: e(p)
3908
3793
  }, null, 8, ["loading", "onRefresh"])]),
3909
3794
  content: o(() => [l(u, {
3910
3795
  class: "search-bar"
3911
3796
  }, {
3912
- default: o(() => [l(v, {
3797
+ default: o(() => [l(w, {
3913
3798
  modelValue: e(b).dates,
3914
3799
  "onUpdate:modelValue": n[0] || (n[0] = (_) => e(b).dates = _),
3915
3800
  class: "basic-search-datetimerange",
3916
- "value-format": e(E).DATE_VALUE_FORMAT,
3917
- format: e(E).DATE_SHOW_FORMAT,
3801
+ "value-format": e($).DATE_VALUE_FORMAT,
3802
+ format: e($).DATE_SHOW_FORMAT,
3918
3803
  type: "datetimerange",
3919
3804
  "range-separator": "-",
3920
3805
  "start-placeholder": e(a)("base.start_at"),
3921
3806
  "end-placeholder": e(a)("base.end_at"),
3922
3807
  clearable: !1,
3923
- onChange: n[1] || (n[1] = (_) => e(i)())
3924
- }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(se), {
3925
- disabled: e(V),
3926
- onSearch: n[2] || (n[2] = (_) => e(i)())
3808
+ onChange: n[1] || (n[1] = (_) => e(c)())
3809
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
3810
+ disabled: e(h),
3811
+ onSearch: n[2] || (n[2] = (_) => e(c)())
3927
3812
  }, null, 8, ["disabled"])]),
3928
3813
  _: 1
3929
3814
  })]),
@@ -3931,9 +3816,9 @@ const Wl = /* @__PURE__ */ O({
3931
3816
  })]),
3932
3817
  default: o(() => [l(e(ie), {
3933
3818
  ref_key: "tableRef",
3934
- ref: h,
3819
+ ref: g,
3935
3820
  size: "small",
3936
- columns: k,
3821
+ columns: v,
3937
3822
  url: e(ce).urls.request,
3938
3823
  "search-param": e(b),
3939
3824
  "auto-search": ""
@@ -3942,12 +3827,12 @@ const Wl = /* @__PURE__ */ O({
3942
3827
  });
3943
3828
  };
3944
3829
  }
3945
- }), Hl = /* @__PURE__ */ O({
3830
+ }), Xl = /* @__PURE__ */ O({
3946
3831
  __name: "index",
3947
3832
  setup(x) {
3948
- const R = {
3949
- dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate(0).format(E.DATE_FORMAT)]
3950
- }, k = [{
3833
+ const U = {
3834
+ dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate(0).format($.DATE_FORMAT)]
3835
+ }, v = [{
3951
3836
  label: a("base.sort"),
3952
3837
  type: "index",
3953
3838
  width: 60
@@ -3956,52 +3841,52 @@ const Wl = /* @__PURE__ */ O({
3956
3841
  prop: "time",
3957
3842
  width: 180,
3958
3843
  render: ({
3959
- rowData: p
3960
- }) => l(H, null, [E.formatDate(p.time)])
3844
+ rowData: i
3845
+ }) => l(j, null, [$.formatDate(i.time)])
3961
3846
  }, {
3962
3847
  label: a("base.url"),
3963
3848
  prop: "url",
3964
3849
  align: "left",
3965
3850
  width: 200
3966
3851
  }], {
3967
- requesting: V
3852
+ requesting: h
3968
3853
  } = F(ce), {
3969
- tableRef: h,
3854
+ tableRef: g,
3970
3855
  keyword: b,
3971
- search: i,
3972
- reset: m
3973
- } = z(R);
3974
- return (p, n) => {
3975
- const v = r("el-date-picker"), u = r("el-space"), f = r("el-page-header"), g = r("el-card");
3976
- return S(), T(g, {
3856
+ search: c,
3857
+ reset: p
3858
+ } = Q(U);
3859
+ return (i, n) => {
3860
+ const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
3861
+ return M(), T(f, {
3977
3862
  class: "basic-card flex-full",
3978
3863
  "body-class": "flex-1"
3979
3864
  }, {
3980
- header: o(() => [l(f, {
3865
+ header: o(() => [l(m, {
3981
3866
  class: "basic-header"
3982
3867
  }, {
3983
- title: o(() => [l(e(G), {
3984
- loading: e(V),
3985
- onRefresh: e(m)
3868
+ title: o(() => [l(e(K), {
3869
+ loading: e(h),
3870
+ onRefresh: e(p)
3986
3871
  }, null, 8, ["loading", "onRefresh"])]),
3987
3872
  content: o(() => [l(u, {
3988
3873
  class: "search-bar"
3989
3874
  }, {
3990
- default: o(() => [l(v, {
3875
+ default: o(() => [l(w, {
3991
3876
  modelValue: e(b).dates,
3992
3877
  "onUpdate:modelValue": n[0] || (n[0] = (_) => e(b).dates = _),
3993
3878
  class: "basic-search-daterange",
3994
- "value-format": e(E).DATE_FORMAT,
3995
- format: e(E).DATE_FORMAT,
3879
+ "value-format": e($).DATE_FORMAT,
3880
+ format: e($).DATE_FORMAT,
3996
3881
  type: "daterange",
3997
3882
  "range-separator": "-",
3998
3883
  "start-placeholder": e(a)("base.start_at"),
3999
3884
  "end-placeholder": e(a)("base.end_at"),
4000
3885
  clearable: !1,
4001
- onChange: n[1] || (n[1] = (_) => e(i)())
4002
- }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(se), {
4003
- disabled: e(V),
4004
- onSearch: n[2] || (n[2] = (_) => e(i)())
3886
+ onChange: n[1] || (n[1] = (_) => e(c)())
3887
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
3888
+ disabled: e(h),
3889
+ onSearch: n[2] || (n[2] = (_) => e(c)())
4005
3890
  }, null, 8, ["disabled"])]),
4006
3891
  _: 1
4007
3892
  })]),
@@ -4009,9 +3894,9 @@ const Wl = /* @__PURE__ */ O({
4009
3894
  })]),
4010
3895
  default: o(() => [l(e(ie), {
4011
3896
  ref_key: "tableRef",
4012
- ref: h,
3897
+ ref: g,
4013
3898
  size: "small",
4014
- columns: k,
3899
+ columns: v,
4015
3900
  url: e(ce).urls.error,
4016
3901
  "search-param": e(b),
4017
3902
  "auto-search": ""
@@ -4020,12 +3905,12 @@ const Wl = /* @__PURE__ */ O({
4020
3905
  });
4021
3906
  };
4022
3907
  }
4023
- }), Ql = /* @__PURE__ */ O({
3908
+ }), Zl = /* @__PURE__ */ O({
4024
3909
  __name: "index",
4025
3910
  setup(x) {
4026
- const R = {
4027
- dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)]
4028
- }, k = [{
3911
+ const U = {
3912
+ dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate().format($.DATE_FORMAT)]
3913
+ }, v = [{
4029
3914
  label: a("base.sort"),
4030
3915
  type: "index",
4031
3916
  width: 60
@@ -4034,52 +3919,52 @@ const Wl = /* @__PURE__ */ O({
4034
3919
  prop: "time",
4035
3920
  width: 180,
4036
3921
  render: ({
4037
- rowData: p
4038
- }) => l(H, null, [E.formatDate(p.time)])
3922
+ rowData: i
3923
+ }) => l(j, null, [$.formatDate(i.time)])
4039
3924
  }, {
4040
3925
  label: a("base.url"),
4041
3926
  prop: "url",
4042
3927
  align: "left",
4043
3928
  width: 200
4044
3929
  }], {
4045
- requesting: V
3930
+ requesting: h
4046
3931
  } = F(ce), {
4047
- tableRef: h,
3932
+ tableRef: g,
4048
3933
  keyword: b,
4049
- search: i,
4050
- reset: m
4051
- } = z(R);
4052
- return (p, n) => {
4053
- const v = r("el-date-picker"), u = r("el-space"), f = r("el-page-header"), g = r("el-card");
4054
- return S(), T(g, {
3934
+ search: c,
3935
+ reset: p
3936
+ } = Q(U);
3937
+ return (i, n) => {
3938
+ const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
3939
+ return M(), T(f, {
4055
3940
  class: "basic-card flex-full",
4056
3941
  "body-class": "flex-1"
4057
3942
  }, {
4058
- header: o(() => [l(f, {
3943
+ header: o(() => [l(m, {
4059
3944
  class: "basic-header"
4060
3945
  }, {
4061
- title: o(() => [l(e(G), {
4062
- loading: e(V),
4063
- onRefresh: e(m)
3946
+ title: o(() => [l(e(K), {
3947
+ loading: e(h),
3948
+ onRefresh: e(p)
4064
3949
  }, null, 8, ["loading", "onRefresh"])]),
4065
3950
  content: o(() => [l(u, {
4066
3951
  class: "search-bar"
4067
3952
  }, {
4068
- default: o(() => [l(v, {
3953
+ default: o(() => [l(w, {
4069
3954
  modelValue: e(b).dates,
4070
3955
  "onUpdate:modelValue": n[0] || (n[0] = (_) => e(b).dates = _),
4071
3956
  class: "basic-search-daterange",
4072
- "value-format": e(E).DATE_FORMAT,
4073
- format: e(E).DATE_FORMAT,
3957
+ "value-format": e($).DATE_FORMAT,
3958
+ format: e($).DATE_FORMAT,
4074
3959
  type: "daterange",
4075
3960
  "range-separator": "-",
4076
3961
  "start-placeholder": e(a)("base.start_at"),
4077
3962
  "end-placeholder": e(a)("base.end_at"),
4078
3963
  clearable: !1,
4079
- onChange: n[1] || (n[1] = (_) => e(i)())
4080
- }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(se), {
4081
- disabled: e(V),
4082
- onSearch: n[2] || (n[2] = (_) => e(i)())
3964
+ onChange: n[1] || (n[1] = (_) => e(c)())
3965
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
3966
+ disabled: e(h),
3967
+ onSearch: n[2] || (n[2] = (_) => e(c)())
4083
3968
  }, null, 8, ["disabled"])]),
4084
3969
  _: 1
4085
3970
  })]),
@@ -4087,9 +3972,9 @@ const Wl = /* @__PURE__ */ O({
4087
3972
  })]),
4088
3973
  default: o(() => [l(e(ie), {
4089
3974
  ref_key: "tableRef",
4090
- ref: h,
3975
+ ref: g,
4091
3976
  size: "small",
4092
- columns: k,
3977
+ columns: v,
4093
3978
  url: e(ce).urls.sql,
4094
3979
  "search-param": e(b),
4095
3980
  "auto-search": ""
@@ -4098,7 +3983,7 @@ const Wl = /* @__PURE__ */ O({
4098
3983
  });
4099
3984
  };
4100
3985
  }
4101
- }), Jl = /* @__PURE__ */ O({
3986
+ }), ea = /* @__PURE__ */ O({
4102
3987
  __name: "LanguageSelect",
4103
3988
  props: {
4104
3989
  modelValue: {
@@ -4121,91 +4006,91 @@ const Wl = /* @__PURE__ */ O({
4121
4006
  },
4122
4007
  emits: ["update:modelValue", "update:value", "change"],
4123
4008
  setup(x, {
4124
- emit: R
4009
+ emit: U
4125
4010
  }) {
4126
- const k = R, V = x, {
4127
- requesting: h
4128
- } = F(Y), {
4011
+ const v = U, h = x, {
4012
+ requesting: g
4013
+ } = F(H), {
4129
4014
  value: b,
4130
- options: i,
4131
- change: m
4132
- } = de(re(V, "modelValue"), k, {
4015
+ options: c,
4016
+ change: p
4017
+ } = te(ne(h, "modelValue"), v, {
4133
4018
  key: "LANGUAGE_SELECT",
4134
- url: Y.urls.languages,
4135
- api: Y,
4019
+ url: H.urls.languages,
4020
+ api: H,
4136
4021
  isArray: !0
4137
4022
  }, {
4138
- formatOptions: (p) => p.map((n) => ({
4023
+ formatOptions: (i) => i.map((n) => ({
4139
4024
  value: n,
4140
4025
  label: n
4141
4026
  }))
4142
4027
  });
4143
- return (p, n) => {
4144
- const v = r("el-radio-button"), u = r("el-radio-group");
4145
- return S(), T(u, {
4028
+ return (i, n) => {
4029
+ const w = r("el-radio-button"), u = r("el-radio-group");
4030
+ return M(), T(u, {
4146
4031
  modelValue: e(b),
4147
- "onUpdate:modelValue": n[0] || (n[0] = (f) => N(b) ? b.value = f : null),
4148
- disabled: e(h),
4149
- onChange: e(m)
4032
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => E(b) ? b.value = m : null),
4033
+ disabled: e(g),
4034
+ onChange: e(p)
4150
4035
  }, {
4151
- default: o(() => [(S(!0), j(H, null, ae(e(i), (f) => (S(), T(v, {
4152
- key: f.value,
4153
- value: f.value
4036
+ default: o(() => [(M(!0), N(j, null, le(e(c), (m) => (M(), T(w, {
4037
+ key: m.value,
4038
+ value: m.value
4154
4039
  }, {
4155
- default: o(() => [W("span", null, I(f.label), 1)]),
4040
+ default: o(() => [P("span", null, z(m.label), 1)]),
4156
4041
  _: 2
4157
4042
  }, 1032, ["value"]))), 128))]),
4158
4043
  _: 1
4159
4044
  }, 8, ["modelValue", "disabled", "onChange"]);
4160
4045
  };
4161
4046
  }
4162
- }), Fl = () => import("./index-SHsqnbNG.js"), zl = () => import("./index-CJMTIvHk.js"), Il = () => import("./index-BMn8mAns.js"), Xl = [
4047
+ }), Nl = () => import("./index-SHsqnbNG.js"), Bl = () => import("./index-CJMTIvHk.js"), Pl = () => import("./index-BMn8mAns.js"), la = [
4163
4048
  {
4164
- path: el,
4049
+ path: nl,
4165
4050
  name: "RequestLog",
4166
- component: Fl,
4051
+ component: Nl,
4167
4052
  meta: {
4168
4053
  title: a("menu.RequestLog")
4169
4054
  }
4170
4055
  },
4171
4056
  {
4172
- path: ll,
4057
+ path: tl,
4173
4058
  name: "ErrorLog",
4174
- component: zl,
4059
+ component: Bl,
4175
4060
  meta: {
4176
4061
  title: a("menu.ErrorLog")
4177
4062
  }
4178
4063
  },
4179
4064
  {
4180
- path: al,
4065
+ path: rl,
4181
4066
  name: "SqlLog",
4182
- component: Il,
4067
+ component: Pl,
4183
4068
  meta: {
4184
4069
  title: a("menu.SqlLog")
4185
4070
  }
4186
4071
  }
4187
- ], Zl = {
4072
+ ], aa = {
4188
4073
  install: (x) => {
4189
- Reflect.ownKeys(x._context.provides).some((R) => String(R) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(x._context.provides));
4074
+ Reflect.ownKeys(x._context.provides).some((U) => String(U) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(x._context.provides));
4190
4075
  },
4191
4076
  version: "__VERSION__"
4192
- }, ea = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": () => import("./index-UtDarrUe.js"), "./views/language/index.vue": () => import("./index-CV4JohFl.js"), "./views/menu/index.vue": () => import("./index-DQqJ05PJ.js"), "./views/role/index.vue": () => import("./index-DM5SO2SX.js"), "./views/site/index.vue": () => Promise.resolve().then(() => $l) });
4077
+ }, oa = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": () => import("./index-UtDarrUe.js"), "./views/language/index.vue": () => import("./index-CV4JohFl.js"), "./views/menu/index.vue": () => import("./index-DQqJ05PJ.js"), "./views/role/index.vue": () => import("./index-DM5SO2SX.js"), "./views/site/index.vue": () => Promise.resolve().then(() => zl) });
4193
4078
  export {
4194
- Gl as AdminsPage,
4195
- Rl as DomainProviderSelect,
4196
- Ee as DomainSelect,
4197
- Hl as ErrorLogsPage,
4198
- Jl as LanguageSelect,
4199
- Wl as LanguagesPage,
4200
- Xl as LogRoutes,
4201
- sl as MenuSelect,
4202
- jl as MenusPage,
4203
- Yl as RequestLogsPage,
4204
- Kl as RolesPage,
4205
- Ql as SQLLogsPage,
4206
- Ol as SitePage,
4207
- Ml as SiteSelect,
4208
- rl as TopMenuSelect,
4209
- ea as basicModules,
4210
- Zl as default
4079
+ Ql as AdminsPage,
4080
+ Dl as DomainProviderSelect,
4081
+ Ie as DomainSelect,
4082
+ Xl as ErrorLogsPage,
4083
+ ea as LanguageSelect,
4084
+ Hl as LanguagesPage,
4085
+ la as LogRoutes,
4086
+ ml as MenuSelect,
4087
+ Gl as MenusPage,
4088
+ Jl as RequestLogsPage,
4089
+ Yl as RolesPage,
4090
+ Zl as SQLLogsPage,
4091
+ Fl as SitePage,
4092
+ Cl as SiteSelect,
4093
+ il as TopMenuSelect,
4094
+ oa as basicModules,
4095
+ aa as default
4211
4096
  };