@gameap/frontend 4.1.0-dev14 → 4.1.0-dev15

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 (63) hide show
  1. package/dist/{AdminClientCertificatesView-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
  2. package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
  3. package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
  4. package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
  5. package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
  6. package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
  7. package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
  8. package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
  9. package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
  10. package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
  11. package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
  12. package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
  13. package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
  14. package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
  15. package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
  16. package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
  17. package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
  18. package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
  19. package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
  20. package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
  21. package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
  22. package/dist/GCard-BmZwrZ1e.js +50 -0
  23. package/dist/GDataTable-DC0a2vJJ.js +60 -0
  24. package/dist/GDivider-tYaNzeM5.js +16 -0
  25. package/dist/GEmpty-Bkw6u0WR.js +35 -0
  26. package/dist/GModal-C4shXjCa.js +53 -0
  27. package/dist/GSwitch-1wlrRoUA.js +42 -0
  28. package/dist/GTable-DRH5VONX.js +38 -0
  29. package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
  30. package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
  31. package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
  32. package/dist/PluginPendingView-CaK51oA9.js +35 -0
  33. package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
  34. package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
  35. package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
  36. package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
  37. package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
  38. package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
  39. package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
  40. package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
  41. package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
  42. package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
  43. package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
  44. package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
  45. package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
  46. package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
  47. package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
  48. package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
  49. package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
  50. package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
  51. package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
  52. package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
  53. package/dist/frontend.css +1 -1
  54. package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
  55. package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
  56. package/dist/index.js +1 -1
  57. package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
  58. package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
  59. package/dist/mockServiceWorker.js +1 -1
  60. package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
  61. package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
  62. package/package.json +2 -2
  63. package/dist/PluginPendingView-DaDaN30Q.js +0 -34
@@ -0,0 +1,50 @@
1
+ import { useAttrs as d, computed as l, createBlock as i, openBlock as p, unref as u, mergeProps as c, toHandlers as m, createSlots as f, renderList as g, withCtx as h, renderSlot as C, normalizeProps as _, guardReactiveProps as b } from "vue";
2
+ import { NCard as y } from "naive-ui";
3
+ const $ = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GCard",
7
+ props: {
8
+ title: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ size: {
13
+ type: String,
14
+ default: "small"
15
+ },
16
+ bordered: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ segmented: {
21
+ type: [Boolean, Object],
22
+ default: () => ({ content: !0, footer: "soft" })
23
+ },
24
+ headerClass: {
25
+ type: String,
26
+ default: "g-card-header"
27
+ }
28
+ },
29
+ setup(s) {
30
+ const e = s, o = d(), a = l(() => ({
31
+ title: e.title,
32
+ size: e.size,
33
+ bordered: e.bordered,
34
+ segmented: e.segmented,
35
+ headerClass: e.headerClass,
36
+ ...o
37
+ }));
38
+ return (t, S) => (p(), i(u(y), c(a.value, m(t.$attrs)), f({ _: 2 }, [
39
+ g(t.$slots, (z, r) => ({
40
+ name: r,
41
+ fn: h((n) => [
42
+ C(t.$slots, r, _(b(n || {})))
43
+ ])
44
+ }))
45
+ ]), 1040));
46
+ }
47
+ });
48
+ export {
49
+ $ as _
50
+ };
@@ -0,0 +1,60 @@
1
+ import { useAttrs as l, computed as d, createBlock as i, openBlock as p, unref as u, mergeProps as f, toHandlers as c, createSlots as m, renderList as g, withCtx as y, renderSlot as b, normalizeProps as B, guardReactiveProps as _ } from "vue";
2
+ import { NDataTable as A } from "naive-ui";
3
+ const j = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GDataTable",
7
+ props: {
8
+ bordered: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ singleLine: {
13
+ type: Boolean,
14
+ default: !0
15
+ },
16
+ columns: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ data: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ loading: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ pagination: {
29
+ type: [Object, Boolean],
30
+ default: !1
31
+ },
32
+ remote: {
33
+ type: Boolean,
34
+ default: !1
35
+ }
36
+ },
37
+ setup(o) {
38
+ const e = o, r = l(), n = d(() => ({
39
+ bordered: e.bordered,
40
+ singleLine: e.singleLine,
41
+ columns: e.columns,
42
+ data: e.data,
43
+ loading: e.loading,
44
+ pagination: e.pagination,
45
+ remote: e.remote,
46
+ ...r
47
+ }));
48
+ return (t, L) => (p(), i(u(A), f(n.value, c(t.$attrs)), m({ _: 2 }, [
49
+ g(t.$slots, (P, a) => ({
50
+ name: a,
51
+ fn: y((s) => [
52
+ b(t.$slots, a, B(_(s || {})))
53
+ ])
54
+ }))
55
+ ]), 1040));
56
+ }
57
+ });
58
+ export {
59
+ j as _
60
+ };
@@ -0,0 +1,16 @@
1
+ import { createBlock as e, openBlock as t, unref as o, normalizeProps as a, guardReactiveProps as i, withCtx as s, renderSlot as n } from "vue";
2
+ import { NDivider as p } from "naive-ui";
3
+ const u = {
4
+ __name: "GDivider",
5
+ setup(_) {
6
+ return (r, c) => (t(), e(o(p), a(i(r.$attrs)), {
7
+ default: s(() => [
8
+ n(r.$slots, "default")
9
+ ]),
10
+ _: 3
11
+ }, 16));
12
+ }
13
+ };
14
+ export {
15
+ u as _
16
+ };
@@ -0,0 +1,35 @@
1
+ import { useAttrs as p, computed as a, createBlock as c, openBlock as d, unref as u, mergeProps as m, toHandlers as l, createSlots as f, renderList as g, withCtx as _, renderSlot as z, normalizeProps as y, guardReactiveProps as P } from "vue";
2
+ import { NEmpty as S } from "naive-ui";
3
+ const A = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GEmpty",
7
+ props: {
8
+ description: {
9
+ type: String,
10
+ default: void 0
11
+ },
12
+ size: {
13
+ type: String,
14
+ default: void 0
15
+ }
16
+ },
17
+ setup(s) {
18
+ const e = s, n = p(), o = a(() => ({
19
+ ...e.description && { description: e.description },
20
+ ...e.size && { size: e.size },
21
+ ...n
22
+ }));
23
+ return (t, h) => (d(), c(u(S), m(o.value, l(t.$attrs)), f({ _: 2 }, [
24
+ g(t.$slots, ($, r) => ({
25
+ name: r,
26
+ fn: _((i) => [
27
+ z(t.$slots, r, y(P(i || {})))
28
+ ])
29
+ }))
30
+ ]), 1040));
31
+ }
32
+ });
33
+ export {
34
+ A as _
35
+ };
@@ -0,0 +1,53 @@
1
+ import { useAttrs as i, computed as u, createBlock as f, openBlock as m, unref as h, normalizeProps as s, guardReactiveProps as r, createSlots as g, renderList as w, withCtx as _, renderSlot as b } from "vue";
2
+ import { NModal as y } from "naive-ui";
3
+ const k = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GModal",
7
+ props: {
8
+ show: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ preset: {
13
+ type: String,
14
+ default: "card"
15
+ },
16
+ bordered: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ title: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ segmented: {
25
+ type: Object,
26
+ default: () => ({ content: "soft", footer: "soft" })
27
+ }
28
+ },
29
+ emits: ["update:show"],
30
+ setup(a, { emit: n }) {
31
+ const e = a, d = n, p = i(), l = u(() => ({
32
+ show: e.show,
33
+ "onUpdate:show": (t) => d("update:show", t),
34
+ preset: e.preset,
35
+ bordered: e.bordered,
36
+ title: e.title,
37
+ segmented: e.segmented,
38
+ class: "custom-card",
39
+ ...p
40
+ }));
41
+ return (t, B) => (m(), f(h(y), s(r(l.value)), g({ _: 2 }, [
42
+ w(t.$slots, (S, o) => ({
43
+ name: o,
44
+ fn: _((c) => [
45
+ b(t.$slots, o, s(r(c || {})))
46
+ ])
47
+ }))
48
+ ]), 1040));
49
+ }
50
+ });
51
+ export {
52
+ k as _
53
+ };
@@ -0,0 +1,42 @@
1
+ import { useAttrs as u, computed as d, createBlock as p, openBlock as c, unref as m, mergeProps as f, toHandlers as v, createSlots as _, renderList as g, withCtx as h, renderSlot as z, normalizeProps as S, guardReactiveProps as b } from "vue";
2
+ import { NSwitch as B } from "naive-ui";
3
+ const k = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GSwitch",
7
+ props: {
8
+ value: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ disabled: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ size: {
17
+ type: String,
18
+ default: void 0
19
+ }
20
+ },
21
+ emits: ["update:value"],
22
+ setup(r, { emit: a }) {
23
+ const t = r, o = a, n = u(), l = d(() => ({
24
+ value: t.value,
25
+ "onUpdate:value": (e) => o("update:value", e),
26
+ disabled: t.disabled,
27
+ ...t.size && { size: t.size },
28
+ ...n
29
+ }));
30
+ return (e, P) => (c(), p(m(B), f(l.value, v(e.$attrs)), _({ _: 2 }, [
31
+ g(e.$slots, (w, s) => ({
32
+ name: s,
33
+ fn: h((i) => [
34
+ z(e.$slots, s, S(b(i || {})))
35
+ ])
36
+ }))
37
+ ]), 1040));
38
+ }
39
+ });
40
+ export {
41
+ k as _
42
+ };
@@ -0,0 +1,38 @@
1
+ import { useAttrs as n, computed as a, createBlock as l, openBlock as i, unref as d, mergeProps as p, toHandlers as u, withCtx as f, renderSlot as c } from "vue";
2
+ import { NTable as m } from "naive-ui";
3
+ const z = /* @__PURE__ */ Object.assign({
4
+ inheritAttrs: !1
5
+ }, {
6
+ __name: "GTable",
7
+ props: {
8
+ bordered: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ singleLine: {
13
+ type: Boolean,
14
+ default: !0
15
+ },
16
+ size: {
17
+ type: String,
18
+ default: void 0
19
+ }
20
+ },
21
+ setup(r) {
22
+ const e = r, s = n(), o = a(() => ({
23
+ bordered: e.bordered,
24
+ singleLine: e.singleLine,
25
+ ...e.size && { size: e.size },
26
+ ...s
27
+ }));
28
+ return (t, g) => (i(), l(d(m), p(o.value, u(t.$attrs)), {
29
+ default: f(() => [
30
+ c(t.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 16));
34
+ }
35
+ });
36
+ export {
37
+ z as _
38
+ };
@@ -1,8 +1,8 @@
1
1
  import { NFormItem as p, NSelect as U } from "naive-ui";
2
2
  import { mergeModels as x, useModel as c, onUnmounted as O, computed as b, watch as r, createElementBlock as P, openBlock as V, createElementVNode as s, withDirectives as f, createVNode as n, vModelText as M, unref as u, withCtx as h, h as w } from "vue";
3
3
  import { storeToRefs as C } from "pinia";
4
- import { h as D, t as S } from "./index-9fvX7FD-.js";
5
- import { u as j } from "./gameList-kucszmx0.js";
4
+ import { h as D, t as S } from "./index-CiR3a1Cv.js";
5
+ import { u as j } from "./gameList-BuPam-HN.js";
6
6
  import { _ as k } from "./GameIcon-DaYNlnur.js";
7
7
  const y = { class: "mb-3" }, B = { class: "mb-3" }, q = {
8
8
  __name: "GameModSelector",
@@ -1,9 +1,10 @@
1
- import { mergeModels as _, useModel as b, reactive as g, computed as x, h as s, createElementBlock as V, openBlock as N, normalizeClass as w, createElementVNode as y, createVNode as o, withCtx as h, unref as r, createTextVNode as C, toDisplayString as I } from "vue";
2
- import { t as c, _ as m, a as u } from "./index-9fvX7FD-.js";
3
- import { NSwitch as z, NInput as M, NDataTable as T } from "naive-ui";
4
- const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
1
+ import { mergeModels as v, useModel as g, reactive as x, computed as V, h as s, createElementBlock as b, openBlock as w, normalizeClass as C, createElementVNode as y, createVNode as o, withCtx as _, unref as r, createTextVNode as I, toDisplayString as N } from "vue";
2
+ import { t as c, _ as m, a as u } from "./index-CiR3a1Cv.js";
3
+ import { _ as z } from "./GDataTable-DC0a2vJJ.js";
4
+ import { NSwitch as M, NInput as $ } from "naive-ui";
5
+ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, j = {
5
6
  __name: "InputManyList",
6
- props: /* @__PURE__ */ _({
7
+ props: /* @__PURE__ */ v({
7
8
  labels: Array,
8
9
  keys: Array,
9
10
  inputTypes: Array,
@@ -14,19 +15,19 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
14
15
  }),
15
16
  emits: ["update:modelValue"],
16
17
  setup(d) {
17
- const a = d, l = b(d, "modelValue");
18
- g({
18
+ const a = d, l = g(d, "modelValue");
19
+ x({
19
20
  text: "form-control",
20
21
  checkbox: ""
21
22
  });
22
- const k = (t) => {
23
+ const h = (t) => {
23
24
  l.value.splice(t, 1);
24
25
  }, p = () => {
25
26
  let t = {};
26
27
  a.keys.forEach((e) => {
27
28
  t[e] = "";
28
29
  }), l.value.push(t);
29
- }, v = x(() => {
30
+ }, k = V(() => {
30
31
  let t = [];
31
32
  for (let e = 0; e < a.labels.length; e++)
32
33
  t.push({
@@ -35,14 +36,14 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
35
36
  render(n, f) {
36
37
  switch (a.inputTypes[e]) {
37
38
  case "text":
38
- return s(M, {
39
+ return s($, {
39
40
  value: n[a.keys[e]],
40
41
  onUpdateValue(i) {
41
42
  l.value[f][a.keys[e]] = i;
42
43
  }
43
44
  });
44
45
  case "checkbox":
45
- return s(z, {
46
+ return s(M, {
46
47
  value: n[a.keys[e]],
47
48
  onUpdateValue(i) {
48
49
  l.value[f][a.keys[e]] = i;
@@ -60,7 +61,7 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
60
61
  size: "small",
61
62
  text: c("main.delete"),
62
63
  onClick: () => {
63
- k(n);
64
+ h(n);
64
65
  }
65
66
  }, { default: () => [
66
67
  s(u, { name: "close", class: "mr-0.5" }),
@@ -70,8 +71,8 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
70
71
  }
71
72
  }), t;
72
73
  });
73
- return (t, e) => (N(), V("div", {
74
- class: w(["block w-full overflow-auto scrolling-touch", t.$attrs.class])
74
+ return (t, e) => (w(), b("div", {
75
+ class: C(["block w-full overflow-auto scrolling-touch", t.$attrs.class])
75
76
  }, [
76
77
  y("div", A, [
77
78
  o(m, {
@@ -79,14 +80,14 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
79
80
  size: "small",
80
81
  onClick: p
81
82
  }, {
82
- default: h(() => [
83
+ default: _(() => [
83
84
  o(r(u), { name: "add" })
84
85
  ]),
85
86
  _: 1
86
87
  })
87
88
  ]),
88
- o(r(T), {
89
- columns: v.value,
89
+ o(r(z), {
90
+ columns: k.value,
90
91
  data: l.value
91
92
  }, null, 8, ["columns", "data"]),
92
93
  y("div", E, [
@@ -95,9 +96,9 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
95
96
  size: "small",
96
97
  onClick: p
97
98
  }, {
98
- default: h(() => [
99
+ default: _(() => [
99
100
  o(r(u), { name: "add" }),
100
- C(" " + I(r(c)("main.add")), 1)
101
+ I(" " + N(r(c)("main.add")), 1)
101
102
  ]),
102
103
  _: 1
103
104
  })
@@ -106,5 +107,5 @@ const A = { class: "mb-3" }, E = { class: "flex justify-center mt-2" }, D = {
106
107
  }
107
108
  };
108
109
  export {
109
- D as default
110
+ j as default
110
111
  };
@@ -1,5 +1,5 @@
1
1
  import { mergeModels as v, useModel as _, createElementBlock as a, openBlock as s, createElementVNode as o, Fragment as h, renderList as k, createVNode as l, unref as r, withCtx as u } from "vue";
2
- import { _ as c, a as i } from "./index-9fvX7FD-.js";
2
+ import { _ as c, a as i } from "./index-CiR3a1Cv.js";
3
3
  import { NInput as x } from "naive-ui";
4
4
  const g = { class: "flex flex-wrap" }, V = { class: "md:w-full pr-4 pl-4 relative flex items-stretch w-full" }, w = { class: "flex justify-center mt-2" }, N = {
5
5
  __name: "InputTextList",
@@ -0,0 +1,35 @@
1
+ import { ref as c, watch as d, onMounted as m, createElementBlock as p, createBlock as g, openBlock as r, createElementVNode as l, createVNode as f, unref as _ } from "vue";
2
+ import { useRoute as x, useRouter as h } from "vue-router";
3
+ import { g as P, a as R, W as k } from "./index-CiR3a1Cv.js";
4
+ import "naive-ui";
5
+ const v = {
6
+ key: 0,
7
+ class: "flex items-center justify-center h-64"
8
+ }, y = { class: "text-center" }, w = {
9
+ __name: "PluginPendingView",
10
+ setup(z) {
11
+ const i = x(), s = h(), e = P(), o = c(!e.initialized);
12
+ function a() {
13
+ const t = i.params.pluginId;
14
+ e.registeredRoutes.some(
15
+ (u) => u.startsWith(`plugin.${t}.`)
16
+ ) ? (s.removeRoute("plugin.pending"), s.replace(i.fullPath)) : o.value = !1;
17
+ }
18
+ return d(() => e.initialized, (t) => {
19
+ t && a();
20
+ }), m(() => {
21
+ e.initialized && a();
22
+ }), (t, n) => o.value ? (r(), p("div", v, [
23
+ l("div", y, [
24
+ f(_(R), {
25
+ name: "loading",
26
+ class: "animate-spin text-4xl text-stone-400"
27
+ }),
28
+ n[0] || (n[0] = l("p", { class: "mt-4 text-stone-600 dark:text-stone-400" }, "Loading plugin...", -1))
29
+ ])
30
+ ])) : (r(), g(k, { key: 1 }));
31
+ }
32
+ };
33
+ export {
34
+ w as default
35
+ };