@gameap/frontend 4.1.0-dev1 → 4.1.0-dev2

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 (61) hide show
  1. package/dist/AdminClientCertificatesView-DQTMJ6LY.js +368 -0
  2. package/dist/AdminDaemonTaskListView-Bx3e0Miy.js +316 -0
  3. package/dist/AdminDaemonTaskOutputView-BJtLdoAq.js +87 -0
  4. package/dist/AdminGamesEdit-hDe3Pr-7.js +470 -0
  5. package/dist/AdminGamesList-CM1xADCW.js +500 -0
  6. package/dist/AdminModEdit-DDKd6Vga.js +526 -0
  7. package/dist/AdminNodeShowView-DMoEY2Cu.js +167 -0
  8. package/dist/AdminNodesCreateView-BXZDQIJ1.js +85 -0
  9. package/dist/AdminNodesEditView-xO7-szjJ.js +66 -0
  10. package/dist/AdminNodesView-ugTPiC4h.js +161 -0
  11. package/dist/AdminServersCreate-DOygFz_E.js +345 -0
  12. package/dist/AdminServersEdit-cZX6UGB1.js +400 -0
  13. package/dist/AdminServersList-CC50WRsv.js +165 -0
  14. package/dist/AdminUsersEditView-CXpMKFfI.js +305 -0
  15. package/dist/AdminUsersView-DGuGEHVR.js +443 -0
  16. package/dist/CreateModForm-CqhcrNFp.js +122 -0
  17. package/dist/CreateNodeModal-BvbJTKhD.js +93 -0
  18. package/dist/DsIpSelector-DN9IyT4L.js +90 -0
  19. package/dist/FileManager-8TWHezyM.js +31882 -0
  20. package/dist/GameModSelector-DRIaCbGY.js +94 -0
  21. package/dist/InputManyList-By5xECIK.js +110 -0
  22. package/dist/InputTextList-Bm2Ofq5J.js +63 -0
  23. package/dist/PluginPendingView-DHd_yijv.js +31 -0
  24. package/dist/RconConsole-DH9XeOu3.js +75 -0
  25. package/dist/RconPlayers-GrvCMJX3.js +420 -0
  26. package/dist/ServerConsole-BHHnpxJy.js +98 -0
  27. package/dist/ServerIdView-BfqrYuar.js +577 -0
  28. package/dist/ServerSelector-QMK1qiXa.js +52 -0
  29. package/dist/ServerSettings-Cz6C8Dlh.js +84 -0
  30. package/dist/ServerStatus-DBJW9C6H.js +63 -0
  31. package/dist/ServerTasks-Bs3iGYY3.js +854 -0
  32. package/dist/SettingsParameters-DCqhqxHk.js +87 -0
  33. package/dist/SmartPortSelector-DektJC6p.js +161 -0
  34. package/dist/UpdateNodeForm-CwirLUIK.js +648 -0
  35. package/dist/UserServerPrivileges-utyKdh7O.js +318 -0
  36. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  37. package/dist/_createCompounder-DSupx5mD.js +241 -0
  38. package/dist/camelCase-WcUYdRB3.js +8 -0
  39. package/dist/capitalize-DRKkBaYR.js +40 -0
  40. package/dist/clientCertificates-BsJdUHYw.js +53 -0
  41. package/dist/favicon-32x32.png +0 -0
  42. package/dist/favicon-96x96.png +0 -0
  43. package/dist/favicon.ico +0 -0
  44. package/dist/fonts/gicon.eot +0 -0
  45. package/dist/fonts/gicon.svg +33 -0
  46. package/dist/fonts/gicon.ttf +0 -0
  47. package/dist/fonts/gicon.woff +0 -0
  48. package/dist/fonts/gicon.woff2 +0 -0
  49. package/dist/frontend.css +14 -0
  50. package/dist/gameList-DpGDCxFE.js +115 -0
  51. package/dist/images/gap_logo_white.png +0 -0
  52. package/dist/images/gap_logo_white_mini.png +0 -0
  53. package/dist/images/gicon.svg +18 -0
  54. package/dist/images/icons/save-white.svg +1 -0
  55. package/dist/images/icons/save.svg +1 -0
  56. package/dist/index-60qEjGuU.js +5371 -0
  57. package/dist/index.js +1 -0
  58. package/dist/loader-CrZTMKcy.js +131 -0
  59. package/dist/mockServiceWorker.js +349 -0
  60. package/dist/snakeCase-CTCA7tap.js +7 -0
  61. package/package.json +1 -2
@@ -0,0 +1,443 @@
1
+ import { mergeModels as z, ref as y, useModel as O, createElementBlock as L, openBlock as B, normalizeClass as E, createVNode as a, unref as e, withCtx as d, createBlock as W, createCommentVNode as H, createElementVNode as s, toDisplayString as f, computed as P, onMounted as J, Fragment as K, h as p } from "vue";
2
+ import { Loading as T, GBreadcrumbs as Q } from "@gameap/ui";
3
+ import { a as M, y as X, t as l, v as Y, z as Z, A as ee, o as k, _ as U, d as le, j as se, e as b, n as I } from "./index-60qEjGuU.js";
4
+ import { defineStore as ae, storeToRefs as te } from "pinia";
5
+ import { NForm as oe, NFormItem as w, NInput as h, NSelect as re, NDataTable as ne, NModal as A, NTable as ie } from "naive-ui";
6
+ const ue = ae("userList", {
7
+ state: () => ({
8
+ users: [],
9
+ // This is a counter to keep track of how many API processes are running
10
+ apiProcesses: 0
11
+ }),
12
+ getters: {
13
+ loading: (u) => u.apiProcesses > 0
14
+ },
15
+ actions: {
16
+ async fetchUsers() {
17
+ this.apiProcesses++;
18
+ try {
19
+ const u = await M.get("/api/users/");
20
+ this.users = u.data;
21
+ } catch (u) {
22
+ throw u;
23
+ } finally {
24
+ this.apiProcesses--;
25
+ }
26
+ },
27
+ async createUser(u) {
28
+ this.apiProcesses++;
29
+ try {
30
+ await M.post("/api/users", u);
31
+ } catch (m) {
32
+ throw m;
33
+ } finally {
34
+ this.apiProcesses--;
35
+ }
36
+ },
37
+ async deleteUserById(u) {
38
+ this.apiProcesses++;
39
+ try {
40
+ await M.delete("/api/users/" + u);
41
+ } catch (m) {
42
+ throw m;
43
+ } finally {
44
+ this.apiProcesses--;
45
+ }
46
+ }
47
+ }
48
+ }), de = { class: "flex grid-cols-2 gap-x-4 w-full" }, me = { class: "hidden lg:inline" }, ce = {
49
+ __name: "CreateUserForm",
50
+ props: /* @__PURE__ */ z({
51
+ loading: {
52
+ type: Boolean,
53
+ required: !1
54
+ }
55
+ }, {
56
+ modelValue: {
57
+ name: "",
58
+ password: "",
59
+ passwordConfirmation: ""
60
+ },
61
+ modelModifiers: {}
62
+ }),
63
+ emits: /* @__PURE__ */ z(["create"], ["update:modelValue"]),
64
+ setup(u, { emit: m }) {
65
+ const c = y({}), r = O(u, "modelValue"), x = {
66
+ login: {
67
+ required: !0,
68
+ validator: k(l("labels.login"))
69
+ },
70
+ email: {
71
+ required: !0,
72
+ validator: k(l("labels.email"))
73
+ },
74
+ name: {
75
+ required: !0,
76
+ validator: k(l("labels.name"))
77
+ },
78
+ password: {
79
+ required: !0,
80
+ validator: Y(
81
+ k(l("labels.password")),
82
+ ee(l("labels.password"), 8),
83
+ Z(
84
+ l("labels.password"),
85
+ l("labels.password_confirmation"),
86
+ () => r.value.passwordConfirmation
87
+ )
88
+ )
89
+ },
90
+ roles: {
91
+ required: !0,
92
+ validator: X(l("labels.roles"))
93
+ }
94
+ }, V = [
95
+ {
96
+ label: "Administrator",
97
+ value: "admin"
98
+ },
99
+ {
100
+ label: "User",
101
+ value: "user"
102
+ }
103
+ ], _ = m, N = () => {
104
+ c.value.validate().then(() => {
105
+ _("create");
106
+ });
107
+ };
108
+ return (S, n) => (B(), L("div", {
109
+ class: E(S.$attrs.class)
110
+ }, [
111
+ a(e(oe), {
112
+ "label-placement": "top",
113
+ "label-width": "auto",
114
+ ref_key: "formRef",
115
+ ref: c,
116
+ model: r.value,
117
+ rules: x
118
+ }, {
119
+ default: d(() => [
120
+ u.loading ? (B(), W(e(T), { key: 0 })) : H("", !0),
121
+ s("div", {
122
+ class: E(["mb-4", u.loading ? "hidden" : ""])
123
+ }, [
124
+ a(e(w), {
125
+ label: e(l)("labels.login"),
126
+ path: "login"
127
+ }, {
128
+ default: d(() => [
129
+ a(e(h), {
130
+ value: r.value.login,
131
+ "onUpdate:value": n[0] || (n[0] = (i) => r.value.login = i),
132
+ type: "text"
133
+ }, null, 8, ["value"])
134
+ ]),
135
+ _: 1
136
+ }, 8, ["label"]),
137
+ a(e(w), {
138
+ label: e(l)("labels.email"),
139
+ path: "email"
140
+ }, {
141
+ default: d(() => [
142
+ a(e(h), {
143
+ value: r.value.email,
144
+ "onUpdate:value": n[1] || (n[1] = (i) => r.value.email = i),
145
+ type: "text"
146
+ }, null, 8, ["value"])
147
+ ]),
148
+ _: 1
149
+ }, 8, ["label"]),
150
+ a(e(w), {
151
+ label: e(l)("labels.name"),
152
+ path: "name"
153
+ }, {
154
+ default: d(() => [
155
+ a(e(h), {
156
+ value: r.value.name,
157
+ "onUpdate:value": n[2] || (n[2] = (i) => r.value.name = i),
158
+ type: "text"
159
+ }, null, 8, ["value"])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["label"]),
163
+ a(e(w), {
164
+ label: e(l)("labels.roles"),
165
+ path: "roles"
166
+ }, {
167
+ default: d(() => [
168
+ a(e(re), {
169
+ value: r.value.roles,
170
+ "onUpdate:value": n[3] || (n[3] = (i) => r.value.roles = i),
171
+ multiple: "",
172
+ options: V
173
+ }, null, 8, ["value"])
174
+ ]),
175
+ _: 1
176
+ }, 8, ["label"]),
177
+ a(e(w), {
178
+ label: e(l)("labels.password"),
179
+ path: "password"
180
+ }, {
181
+ default: d(() => [
182
+ s("div", de, [
183
+ a(e(h), {
184
+ value: r.value.password,
185
+ "onUpdate:value": n[4] || (n[4] = (i) => r.value.password = i),
186
+ type: "password",
187
+ "show-password-on": "click",
188
+ "input-props": { autocomplete: "one-time-code" }
189
+ }, null, 8, ["value"]),
190
+ a(e(h), {
191
+ value: r.value.passwordConfirmation,
192
+ "onUpdate:value": n[5] || (n[5] = (i) => r.value.passwordConfirmation = i),
193
+ type: "password",
194
+ "show-password-on": "click",
195
+ "input-props": { autocomplete: "one-time-code" },
196
+ placeholder: e(l)("labels.password_confirmation")
197
+ }, null, 8, ["value", "placeholder"])
198
+ ])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["label"])
202
+ ], 2)
203
+ ]),
204
+ _: 1
205
+ }, 8, ["model"]),
206
+ a(U, {
207
+ color: "green",
208
+ onClick: N
209
+ }, {
210
+ default: d(() => [
211
+ n[6] || (n[6] = s("i", { class: "fa-regular fa-square-plus" }, null, -1)),
212
+ s("span", me, " " + f(e(l)("main.create")), 1)
213
+ ]),
214
+ _: 1
215
+ })
216
+ ], 2));
217
+ }
218
+ }, we = {
219
+ __name: "AdminUsersView",
220
+ setup(u) {
221
+ const m = ue(), c = le(), r = se(), x = P(() => [
222
+ { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
223
+ { route: { name: "admin.users.index" }, text: l("users.users") }
224
+ ]), V = () => [
225
+ {
226
+ title: l("users.name"),
227
+ key: "name"
228
+ },
229
+ {
230
+ title: "Email",
231
+ key: "email"
232
+ },
233
+ {
234
+ title: l("main.actions"),
235
+ render(t) {
236
+ return [
237
+ p(U, {
238
+ color: "green",
239
+ size: "small",
240
+ class: "mr-0.5",
241
+ onClick: () => {
242
+ R(t.id);
243
+ }
244
+ }, [
245
+ p("i", { class: "fa-solid fa-eye" }),
246
+ p("span", { class: "hidden lg:inline" }, l("main.view"))
247
+ ]),
248
+ p(U, {
249
+ color: "blue",
250
+ size: "small",
251
+ class: "mr-0.5",
252
+ route: { name: "admin.users.edit", params: { id: t.id } }
253
+ }, [
254
+ p("i", { class: "fa-solid fa-pen-to-square" }),
255
+ p("span", { class: "hidden lg:inline" }, l("main.edit"))
256
+ ]),
257
+ p(U, {
258
+ color: "red",
259
+ size: "small",
260
+ disabled: r.user?.id === t.id,
261
+ text: l("main.delete"),
262
+ onClick: () => {
263
+ D(t.id);
264
+ }
265
+ }, [
266
+ p("i", { class: "fa-solid fa-trash" }),
267
+ p("span", { class: "hidden lg:inline" }, l("main.delete"))
268
+ ])
269
+ ];
270
+ }
271
+ }
272
+ ], { users: _ } = te(m), N = y(V()), S = {
273
+ pageSize: 20
274
+ }, n = P(() => m.loading || c.loading);
275
+ J(() => {
276
+ i();
277
+ });
278
+ const i = () => {
279
+ m.fetchUsers().catch((t) => {
280
+ b(t);
281
+ });
282
+ }, $ = P(() => _.value.map((t) => ({
283
+ id: t.id,
284
+ name: t.name,
285
+ email: t.email
286
+ }))), D = (t) => {
287
+ window.$dialog.success({
288
+ title: l("users.delete_confirm_msg"),
289
+ positiveText: l("main.yes"),
290
+ negativeText: l("main.no"),
291
+ closable: !1,
292
+ onPositiveClick: () => {
293
+ F(t);
294
+ },
295
+ onNegativeClick: () => {
296
+ }
297
+ });
298
+ }, F = (t) => {
299
+ if (r.user?.id === t) {
300
+ b(l("users.delete_self_error_msg"));
301
+ return;
302
+ }
303
+ m.deleteUserById(t).then(() => {
304
+ I({
305
+ content: l("users.delete_success_msg"),
306
+ type: "success"
307
+ }, () => {
308
+ i();
309
+ });
310
+ }).catch((o) => {
311
+ b(o);
312
+ });
313
+ }, q = y(!1), R = (t) => {
314
+ c.setUserId(t), c.fetchUser().then(() => {
315
+ q.value = !0;
316
+ }).catch((o) => {
317
+ b(o);
318
+ });
319
+ }, C = y(!1), v = y({
320
+ name: "",
321
+ email: ""
322
+ }), j = () => {
323
+ v.value = {}, C.value = !0;
324
+ }, G = () => {
325
+ const t = {
326
+ login: v.value.login,
327
+ email: v.value.email,
328
+ password: v.value.password,
329
+ name: v.value.name,
330
+ roles: v.value.roles
331
+ };
332
+ m.createUser(t).then(() => {
333
+ I({
334
+ content: l("users.create_success_msg"),
335
+ type: "success"
336
+ }, () => {
337
+ C.value = !1, i();
338
+ });
339
+ }).catch((o) => {
340
+ b(o);
341
+ });
342
+ };
343
+ return (t, o) => (B(), L(K, null, [
344
+ a(e(Q), { items: x.value }, null, 8, ["items"]),
345
+ a(U, {
346
+ color: "green",
347
+ size: "middle",
348
+ class: "mb-5",
349
+ onClick: o[0] || (o[0] = (g) => j())
350
+ }, {
351
+ default: d(() => [
352
+ o[4] || (o[4] = s("i", { class: "fa fa-plus-square mr-0.5" }, null, -1)),
353
+ s("span", null, f(e(l)("users.create")), 1)
354
+ ]),
355
+ _: 1
356
+ }),
357
+ a(e(ne), {
358
+ ref: "tableRef",
359
+ bordered: !1,
360
+ "single-line": !0,
361
+ columns: N.value,
362
+ data: $.value,
363
+ loading: n.value,
364
+ pagination: S
365
+ }, {
366
+ loading: d(() => [
367
+ a(e(T))
368
+ ]),
369
+ _: 1
370
+ }, 8, ["columns", "data", "loading"]),
371
+ a(e(A), {
372
+ show: q.value,
373
+ "onUpdate:show": o[1] || (o[1] = (g) => q.value = g),
374
+ class: "custom-card",
375
+ preset: "card",
376
+ title: e(l)("users.user"),
377
+ bordered: !1,
378
+ style: { width: "600px" },
379
+ segmented: { content: "soft", footer: "soft" }
380
+ }, {
381
+ default: d(() => [
382
+ a(e(ie), {
383
+ bordered: !1,
384
+ "single-line": !0
385
+ }, {
386
+ default: d(() => [
387
+ s("tbody", null, [
388
+ s("tr", null, [
389
+ s("td", null, [
390
+ s("strong", null, f(e(l)("users.login")) + ":", 1)
391
+ ]),
392
+ s("td", null, f(e(c).user.login), 1)
393
+ ]),
394
+ s("tr", null, [
395
+ o[5] || (o[5] = s("td", null, [
396
+ s("strong", null, "Email:")
397
+ ], -1)),
398
+ s("td", null, f(e(c).user.email), 1)
399
+ ]),
400
+ s("tr", null, [
401
+ s("td", null, [
402
+ s("strong", null, f(e(l)("users.name")) + ":", 1)
403
+ ]),
404
+ s("td", null, f(e(c).user.name), 1)
405
+ ]),
406
+ s("tr", null, [
407
+ s("td", null, [
408
+ s("strong", null, f(e(l)("users.roles")) + ":", 1)
409
+ ]),
410
+ s("td", null, f(e(c).user.roles.join(", ")), 1)
411
+ ])
412
+ ])
413
+ ]),
414
+ _: 1
415
+ })
416
+ ]),
417
+ _: 1
418
+ }, 8, ["show", "title"]),
419
+ a(e(A), {
420
+ show: C.value,
421
+ "onUpdate:show": o[3] || (o[3] = (g) => C.value = g),
422
+ class: "custom-card",
423
+ preset: "card",
424
+ title: e(l)("users.create"),
425
+ bordered: !1,
426
+ style: { width: "600px" },
427
+ segmented: { content: "soft", footer: "soft" }
428
+ }, {
429
+ default: d(() => [
430
+ a(ce, {
431
+ modelValue: v.value,
432
+ "onUpdate:modelValue": o[2] || (o[2] = (g) => v.value = g),
433
+ onCreate: G
434
+ }, null, 8, ["modelValue"])
435
+ ]),
436
+ _: 1
437
+ }, 8, ["show", "title"])
438
+ ], 64));
439
+ }
440
+ };
441
+ export {
442
+ we as default
443
+ };
@@ -0,0 +1,122 @@
1
+ import { mergeModels as R, ref as w, useModel as C, computed as F, createElementBlock as N, openBlock as V, createVNode as o, unref as e, withCtx as s, createElementVNode as d, toDisplayString as k } from "vue";
2
+ import { o as p, t as r, _ as L } from "./index-60qEjGuU.js";
3
+ import { NForm as M, NFormItem as u, NSelect as S, NInput as n } from "naive-ui";
4
+ import { storeToRefs as q } from "pinia";
5
+ import { u as U } from "./gameList-DpGDCxFE.js";
6
+ const W = { class: "hidden lg:inline" }, G = {
7
+ __name: "CreateModForm",
8
+ props: {
9
+ modelValue: {
10
+ game: "",
11
+ name: "",
12
+ remoteRepositoryLinux: "",
13
+ remoteRepositoryWindows: ""
14
+ },
15
+ modelModifiers: {}
16
+ },
17
+ emits: /* @__PURE__ */ R(["create"], ["update:modelValue"]),
18
+ setup(v, { emit: f }) {
19
+ const b = U(), i = w({}), t = C(v, "modelValue"), { games: y } = q(b), _ = {
20
+ game: {
21
+ required: !0,
22
+ validator: p(r("labels.game_id"))
23
+ },
24
+ name: {
25
+ required: !0,
26
+ validator: p(r("labels.name"))
27
+ }
28
+ }, g = f, c = () => {
29
+ i.value.validate().then(() => {
30
+ g("create");
31
+ });
32
+ }, x = F(() => {
33
+ let m = [];
34
+ return y.value.forEach((l) => {
35
+ m.push({
36
+ label: l.name,
37
+ value: l.code
38
+ });
39
+ }), m;
40
+ });
41
+ return (m, l) => (V(), N("div", null, [
42
+ o(e(M), {
43
+ "label-placement": "top",
44
+ "label-width": "auto",
45
+ ref_key: "modCreateFormRef",
46
+ ref: i,
47
+ model: t.value,
48
+ rules: _
49
+ }, {
50
+ default: s(() => [
51
+ o(e(u), {
52
+ label: e(r)("labels.game_id"),
53
+ path: "game"
54
+ }, {
55
+ default: s(() => [
56
+ o(e(S), {
57
+ filterable: "",
58
+ value: t.value.game,
59
+ "onUpdate:value": l[0] || (l[0] = (a) => t.value.game = a),
60
+ options: x.value
61
+ }, null, 8, ["value", "options"])
62
+ ]),
63
+ _: 1
64
+ }, 8, ["label"]),
65
+ o(e(u), {
66
+ label: e(r)("labels.name"),
67
+ path: "name"
68
+ }, {
69
+ default: s(() => [
70
+ o(e(n), {
71
+ value: t.value.name,
72
+ "onUpdate:value": l[1] || (l[1] = (a) => t.value.name = a),
73
+ type: "text"
74
+ }, null, 8, ["value"])
75
+ ]),
76
+ _: 1
77
+ }, 8, ["label"]),
78
+ o(e(u), {
79
+ label: e(r)("labels.remote_repository_linux"),
80
+ path: "remoteRepositoryLinux"
81
+ }, {
82
+ default: s(() => [
83
+ o(e(n), {
84
+ value: t.value.remoteRepositoryLinux,
85
+ "onUpdate:value": l[2] || (l[2] = (a) => t.value.remoteRepositoryLinux = a),
86
+ type: "text"
87
+ }, null, 8, ["value"])
88
+ ]),
89
+ _: 1
90
+ }, 8, ["label"]),
91
+ o(e(u), {
92
+ label: e(r)("labels.remote_repository_windows"),
93
+ path: "remoteRepositoryWindows"
94
+ }, {
95
+ default: s(() => [
96
+ o(e(n), {
97
+ value: t.value.remoteRepositoryWindows,
98
+ "onUpdate:value": l[3] || (l[3] = (a) => t.value.remoteRepositoryWindows = a),
99
+ type: "text"
100
+ }, null, 8, ["value"])
101
+ ]),
102
+ _: 1
103
+ }, 8, ["label"])
104
+ ]),
105
+ _: 1
106
+ }, 8, ["model"]),
107
+ o(L, {
108
+ color: "green",
109
+ onClick: c
110
+ }, {
111
+ default: s(() => [
112
+ l[4] || (l[4] = d("i", { class: "fa-regular fa-square-plus" }, null, -1)),
113
+ d("span", W, " " + k(e(r)("main.create")), 1)
114
+ ]),
115
+ _: 1
116
+ })
117
+ ]));
118
+ }
119
+ };
120
+ export {
121
+ G as _
122
+ };
@@ -0,0 +1,93 @@
1
+ import { ref as f, onMounted as x, resolveComponent as d, createBlock as w, openBlock as b, withCtx as t, createVNode as r, unref as a, createElementVNode as n, createTextVNode as m } from "vue";
2
+ import { t as l } from "./index-60qEjGuU.js";
3
+ const k = ["innerHTML"], v = ["innerHTML"], C = {
4
+ __name: "CreateNodeModal",
5
+ props: {
6
+ link: "",
7
+ host: "",
8
+ token: ""
9
+ },
10
+ setup(s) {
11
+ const o = f(!1);
12
+ return x(() => {
13
+ o.value = !0;
14
+ }), (h, e) => {
15
+ const i = d("n-tab-pane"), c = d("n-tabs"), p = d("n-card"), _ = d("n-modal");
16
+ return b(), w(_, {
17
+ class: "create-node-modal",
18
+ show: o.value,
19
+ "onUpdate:show": e[1] || (e[1] = (u) => o.value = u)
20
+ }, {
21
+ "header-extra": t(() => [
22
+ n("button", {
23
+ type: "button",
24
+ class: "btn-close",
25
+ "aria-label": "Close",
26
+ onClick: e[0] || (e[0] = (u) => o.value = !1)
27
+ }, [...e[2] || (e[2] = [
28
+ n("i", { class: "fa-solid fa-xmark" }, null, -1)
29
+ ])])
30
+ ]),
31
+ default: t(() => [
32
+ r(p, {
33
+ title: a(l)("dedicated_servers.autosetup_title"),
34
+ style: { "max-width": "800px", "min-height": "500px" },
35
+ bordered: !1,
36
+ size: "huge",
37
+ role: "dialog",
38
+ "aria-modal": "true"
39
+ }, {
40
+ default: t(() => [
41
+ r(c, {
42
+ type: "line",
43
+ class: "flex justify-between",
44
+ animated: ""
45
+ }, {
46
+ default: t(() => [
47
+ r(i, { name: "linux" }, {
48
+ tab: t(() => [...e[3] || (e[3] = [
49
+ n("i", { class: "fa-brands fa-linux mr-1" }, null, -1),
50
+ m("Linux ", -1)
51
+ ])]),
52
+ default: t(() => [
53
+ n("div", {
54
+ class: "md:w-full pr-4 pl-4 m-6",
55
+ innerHTML: a(l)("dedicated_servers.autosetup_description_linux", {
56
+ host: s.host,
57
+ token: s.token
58
+ }) + "<code class='curl-link'>curl " + s.link + " | bash --</code><p class='text-center'><small>" + a(l)("dedicated_servers.autosetup_expire_msg") + "</small></p>"
59
+ }, null, 8, k)
60
+ ]),
61
+ _: 1
62
+ }),
63
+ r(i, { name: "windows" }, {
64
+ tab: t(() => [...e[4] || (e[4] = [
65
+ n("i", { class: "fa-brands fa-windows mr-1" }, null, -1),
66
+ m("Windows ", -1)
67
+ ])]),
68
+ default: t(() => [
69
+ n("div", {
70
+ class: "md:w-full pr-4 pl-4 m-6",
71
+ innerHTML: a(l)("dedicated_servers.autosetup_description_windows", {
72
+ host: s.host,
73
+ token: s.token
74
+ }) + "<p class='text-center'><small>" + a(l)("dedicated_servers.autosetup_expire_token_msg") + "</small></p>"
75
+ }, null, 8, v)
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ _: 1
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["title"])
85
+ ]),
86
+ _: 1
87
+ }, 8, ["show"]);
88
+ };
89
+ }
90
+ };
91
+ export {
92
+ C as default
93
+ };