@gameap/frontend 4.1.0-dev7 → 4.1.0-dev9

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 (77) hide show
  1. package/dist/{AdminClientCertificatesView-BQyXmri1.js → AdminClientCertificatesView-rVNAX5Dl.js} +97 -94
  2. package/dist/AdminDaemonTaskListView-CoUVp9tK.js +316 -0
  3. package/dist/{AdminDaemonTaskOutputView-DRrZwAwW.js → AdminDaemonTaskOutputView-BJpuWCtc.js} +18 -17
  4. package/dist/{AdminGamesEdit-CDTCJu52.js → AdminGamesEdit-HKWU2C59.js} +121 -117
  5. package/dist/AdminGamesList-BwN_RFDY.js +518 -0
  6. package/dist/{AdminModEdit-P0crpkM3.js → AdminModEdit-CbVGlk5M.js} +123 -119
  7. package/dist/AdminNodeShowView-C7VsvwQo.js +175 -0
  8. package/dist/AdminNodesCreateView-BfEHhFn2.js +87 -0
  9. package/dist/{AdminNodesEditView-DdNciuMa.js → AdminNodesEditView-DE-zhVTd.js} +11 -11
  10. package/dist/AdminNodesView-QMdy3oJ1.js +167 -0
  11. package/dist/AdminPluginsView-BBALhxPk.js +984 -0
  12. package/dist/{AdminServersCreate-zGHHAEkO.js → AdminServersCreate-g_A290kz.js} +122 -124
  13. package/dist/{AdminServersEdit-BR6sRGlM.js → AdminServersEdit-D0RERbR5.js} +125 -124
  14. package/dist/{AdminServersList-DhUQ1zrt.js → AdminServersList-_ek_2u8B.js} +35 -31
  15. package/dist/{AdminUsersEditView-CqRLzCkV.js → AdminUsersEditView-CbZCH6eM.js} +89 -85
  16. package/dist/{AdminUsersView-TCHghzxY.js → AdminUsersView-D4WoRB5b.js} +145 -141
  17. package/dist/CreateModForm-CpbIOQNu.js +123 -0
  18. package/dist/CreateNodeModal-C96UVcAJ.js +99 -0
  19. package/dist/{DsIpSelector-EnBHsJLE.js → DsIpSelector-D_hc_JYQ.js} +1 -1
  20. package/dist/EmptyView-qkQQJ_OR.js +9 -0
  21. package/dist/FileManager-v-1ASSne.js +5931 -0
  22. package/dist/GameIcon-DaYNlnur.js +87 -0
  23. package/dist/{GameModSelector-bZsSGC6T.js → GameModSelector-CiI3H5Zq.js} +21 -20
  24. package/dist/InputManyList-C52f5V6l.js +110 -0
  25. package/dist/InputTextList-5KeNATa7.js +63 -0
  26. package/dist/PluginPendingView-CDR44QCG.js +34 -0
  27. package/dist/ProfileView-CC3KJ2gK.js +295 -0
  28. package/dist/RconConsole-DkRK7vz3.js +74 -0
  29. package/dist/{RconPlayers-CXL0bHlU.js → RconPlayers-CDRCp79f.js} +131 -127
  30. package/dist/ServerConsole-Bj0Zr1BS.js +99 -0
  31. package/dist/ServerControlButton-C4zWzA-d.js +185 -0
  32. package/dist/ServerIdView-BJS6wcMH.js +608 -0
  33. package/dist/{ServerSelector-D7O1thVu.js → ServerSelector-DPM5SjWO.js} +7 -7
  34. package/dist/{ServerSettings-Lk4lq5hI.js → ServerSettings-BYRSLaJk.js} +26 -26
  35. package/dist/{ServerStatus-CCFiPWXV.js → ServerStatus-BK8yKehx.js} +1 -1
  36. package/dist/{ServerTasks-gNFBkyv1.js → ServerTasks-DUC2DDcY.js} +304 -302
  37. package/dist/ServersView-BbLoOEEz.js +312 -0
  38. package/dist/SettingsParameters-C-TFWsJF.js +89 -0
  39. package/dist/SmartPortSelector-DCsuCDpV.js +174 -0
  40. package/dist/TokensView-B5D45QbV.js +392 -0
  41. package/dist/{UpdateNodeForm-BQDjp3CR.js → UpdateNodeForm-DmAoHURu.js} +131 -127
  42. package/dist/UserServerPrivileges-k-30v4ps.js +319 -0
  43. package/dist/{_createCompounder-NPjOAZm-.js → _createCompounder-DHQYnhTQ.js} +2 -2
  44. package/dist/{camelCase-BXg45SFI.js → camelCase-CE1GGhvX.js} +2 -2
  45. package/dist/{capitalize-BSQeiLff.js → capitalize-DnZmwhT4.js} +5 -5
  46. package/dist/{clientCertificates-Dm0Bh62v.js → clientCertificates-Dd9OqxGQ.js} +1 -1
  47. package/dist/frontend.css +6 -14
  48. package/dist/{gameList-CJAymSBL.js → gameList-BLdEusRA.js} +40 -40
  49. package/dist/gameap.svg +3 -0
  50. package/dist/gameap_full.svg +9 -0
  51. package/dist/index-BDKiNPpP.js +3840 -0
  52. package/dist/index.js +1 -1
  53. package/dist/isEmpty-lBntcFaB.js +263 -0
  54. package/dist/join-CmlzL0H9.js +7 -0
  55. package/dist/{loader-BGOXrNPF.js → loader-C49Def-j.js} +1 -1
  56. package/dist/{snakeCase-o1mQEFQr.js → snakeCase--wUVfLw4.js} +1 -1
  57. package/dist/validators-BVXTUmow.js +65 -0
  58. package/package.json +1 -1
  59. package/dist/AdminDaemonTaskListView-DTQbTpkt.js +0 -315
  60. package/dist/AdminGamesList-CU_RB7gu.js +0 -499
  61. package/dist/AdminNodeShowView-Col-7fyA.js +0 -166
  62. package/dist/AdminNodesCreateView-CZsMnSCJ.js +0 -84
  63. package/dist/AdminNodesView-DvuZ9haB.js +0 -160
  64. package/dist/CreateModForm-Byq8UvuW.js +0 -122
  65. package/dist/CreateNodeModal-BNV35RnR.js +0 -93
  66. package/dist/FileManager-X3FkHNzF.js +0 -31882
  67. package/dist/InputManyList-BFGIEnls.js +0 -110
  68. package/dist/InputTextList-D280D5fs.js +0 -63
  69. package/dist/PluginPendingView-Cp6KgA8z.js +0 -31
  70. package/dist/RconConsole-BxjHKC6E.js +0 -74
  71. package/dist/ServerConsole-Cr-BZJIC.js +0 -98
  72. package/dist/ServerIdView-wsnPfVUi.js +0 -576
  73. package/dist/SettingsParameters-BVpVg868.js +0 -87
  74. package/dist/SmartPortSelector-bubAEnvR.js +0 -161
  75. package/dist/UserServerPrivileges-CizE2EYl.js +0 -318
  76. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  77. package/dist/index-Fmomw6wi.js +0 -5750
@@ -0,0 +1,518 @@
1
+ import { mergeModels as ee, ref as _, useModel as ae, createElementBlock as A, openBlock as B, createVNode as l, unref as e, withCtx as n, createElementVNode as $, toDisplayString as R, computed as T, onMounted as te, watch as oe, Fragment as le, createTextVNode as L, h as d } from "vue";
2
+ import { t as o, _ as y, a as p, e as f, m as se, l as ne, A as ie, n as M } from "./index-BDKiNPpP.js";
3
+ import { _ as re } from "./GameIcon-DaYNlnur.js";
4
+ import { u as me } from "./gameList-BLdEusRA.js";
5
+ import { NForm as de, NFormItem as x, NInput as C, NSpace as ue, NInputGroup as ce, NInputGroupLabel as pe, NButton as ge, NDataTable as ve, NEmpty as fe, NModal as W } from "naive-ui";
6
+ import { useRouter as _e } from "vue-router";
7
+ import { storeToRefs as ye } from "pinia";
8
+ import { _ as Ce } from "./CreateModForm-CpbIOQNu.js";
9
+ import { r as I, a as be, c as xe } from "./validators-BVXTUmow.js";
10
+ const we = { class: "hidden lg:inline" }, he = {
11
+ __name: "CreateGameForm",
12
+ props: {
13
+ modelValue: {
14
+ code: "",
15
+ name: "",
16
+ engine: "",
17
+ engineVersion: "",
18
+ remoteRepositoryLinux: "",
19
+ remoteRepositoryWindows: ""
20
+ },
21
+ modelModifiers: {}
22
+ },
23
+ emits: /* @__PURE__ */ ee(["create"], ["update:modelValue"]),
24
+ setup(U, { emit: G }) {
25
+ const u = _({}), i = ae(U, "modelValue"), w = {
26
+ code: {
27
+ required: !0,
28
+ validator: be(
29
+ I(o("labels.code")),
30
+ xe(o("labels.code"), 2, 16)
31
+ )
32
+ },
33
+ name: {
34
+ required: !0,
35
+ validator: I(o("labels.name"))
36
+ }
37
+ }, b = G, V = () => {
38
+ u.value.validate().then(() => {
39
+ b("create");
40
+ });
41
+ };
42
+ return (S, r) => (B(), A("div", null, [
43
+ l(e(de), {
44
+ "label-placement": "top",
45
+ "label-width": "auto",
46
+ ref_key: "formRef",
47
+ ref: u,
48
+ model: i.value,
49
+ rules: w
50
+ }, {
51
+ default: n(() => [
52
+ l(e(x), {
53
+ label: e(o)("labels.code"),
54
+ path: "code"
55
+ }, {
56
+ default: n(() => [
57
+ l(e(C), {
58
+ minlength: "2",
59
+ maxlength: "16",
60
+ "show-count": "",
61
+ value: i.value.code,
62
+ "onUpdate:value": r[0] || (r[0] = (m) => i.value.code = m),
63
+ type: "text"
64
+ }, null, 8, ["value"])
65
+ ]),
66
+ _: 1
67
+ }, 8, ["label"]),
68
+ l(e(x), {
69
+ label: e(o)("labels.name"),
70
+ path: "name"
71
+ }, {
72
+ default: n(() => [
73
+ l(e(C), {
74
+ value: i.value.name,
75
+ "onUpdate:value": r[1] || (r[1] = (m) => i.value.name = m),
76
+ type: "text"
77
+ }, null, 8, ["value"])
78
+ ]),
79
+ _: 1
80
+ }, 8, ["label"]),
81
+ l(e(ue), null, {
82
+ default: n(() => [
83
+ l(e(x), {
84
+ label: e(o)("labels.engine"),
85
+ path: "engine"
86
+ }, {
87
+ default: n(() => [
88
+ l(e(C), {
89
+ value: i.value.engine,
90
+ "onUpdate:value": r[2] || (r[2] = (m) => i.value.engine = m),
91
+ type: "text"
92
+ }, null, 8, ["value"])
93
+ ]),
94
+ _: 1
95
+ }, 8, ["label"]),
96
+ l(e(x), {
97
+ label: e(o)("labels.engine_version"),
98
+ path: "engineVersion"
99
+ }, {
100
+ default: n(() => [
101
+ l(e(C), {
102
+ value: i.value.engineVersion,
103
+ "onUpdate:value": r[3] || (r[3] = (m) => i.value.engineVersion = m),
104
+ type: "text"
105
+ }, null, 8, ["value"])
106
+ ]),
107
+ _: 1
108
+ }, 8, ["label"])
109
+ ]),
110
+ _: 1
111
+ }),
112
+ l(e(x), {
113
+ label: e(o)("labels.remote_repository_linux"),
114
+ path: "remoteRepositoryLinux"
115
+ }, {
116
+ default: n(() => [
117
+ l(e(C), {
118
+ value: i.value.remoteRepositoryLinux,
119
+ "onUpdate:value": r[4] || (r[4] = (m) => i.value.remoteRepositoryLinux = m),
120
+ type: "text"
121
+ }, null, 8, ["value"])
122
+ ]),
123
+ _: 1
124
+ }, 8, ["label"]),
125
+ l(e(x), {
126
+ label: e(o)("labels.remote_repository_windows"),
127
+ path: "remoteRepositoryWindows"
128
+ }, {
129
+ default: n(() => [
130
+ l(e(C), {
131
+ value: i.value.remoteRepositoryWindows,
132
+ "onUpdate:value": r[5] || (r[5] = (m) => i.value.remoteRepositoryWindows = m),
133
+ type: "text"
134
+ }, null, 8, ["value"])
135
+ ]),
136
+ _: 1
137
+ }, 8, ["label"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["model"]),
141
+ l(y, {
142
+ color: "green",
143
+ onClick: V
144
+ }, {
145
+ default: n(() => [
146
+ l(e(p), { name: "add-square" }),
147
+ $("span", we, " " + R(e(o)("main.create")), 1)
148
+ ]),
149
+ _: 1
150
+ })
151
+ ]));
152
+ }
153
+ }, ke = { class: "mb-5" }, Re = { class: "w-1/3 mb-1" }, N = "gameap_games_search", Te = {
154
+ __name: "AdminGamesList",
155
+ setup(U) {
156
+ const G = _e(), u = me(), i = T(() => [
157
+ { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
158
+ { route: { name: "admin.games.index" }, text: o("games.games") }
159
+ ]);
160
+ te(() => {
161
+ w(), b();
162
+ });
163
+ const w = () => {
164
+ u.fetchGames().catch((a) => {
165
+ f(a);
166
+ });
167
+ }, b = () => {
168
+ u.fetchAllGameMods().catch((a) => {
169
+ f(a);
170
+ });
171
+ }, V = () => [
172
+ {
173
+ title: o("games.name"),
174
+ key: "name",
175
+ render(a) {
176
+ return d("div", { class: "flex items-center" }, [
177
+ d(re, { game: a.code, class: "mr-2" }),
178
+ d("span", { class: "" }, a.name)
179
+ ]);
180
+ }
181
+ },
182
+ {
183
+ title: o("games.code"),
184
+ key: "code"
185
+ },
186
+ {
187
+ title: o("games.mods"),
188
+ key: "mods",
189
+ render(a) {
190
+ return a.mods.length === 0 ? d(y, {
191
+ color: "orange",
192
+ size: "small",
193
+ class: "px-2 py-1",
194
+ onClick: () => {
195
+ E(a.code);
196
+ }
197
+ }, { default: () => [
198
+ d(p, { name: "mods", class: "mr-0.5" }),
199
+ d("span", { class: "" }, o("games.add_first_mod"))
200
+ ] }) : d(
201
+ ie,
202
+ {
203
+ class: ["md:max-w-48"],
204
+ items: a.mods,
205
+ deleteCallback: Q,
206
+ clickCallback: J
207
+ }
208
+ );
209
+ }
210
+ },
211
+ {
212
+ title: o("main.actions"),
213
+ render(a) {
214
+ return [
215
+ d(y, {
216
+ color: "blue",
217
+ size: "small",
218
+ class: "mr-0.5",
219
+ route: { name: "admin.games.edit", params: { code: a.code } }
220
+ }, { default: () => [
221
+ d(p, { name: "edit" }),
222
+ d("span", { class: "hidden lg:inline" }, o("main.edit"))
223
+ ] }),
224
+ d(y, {
225
+ color: "red",
226
+ size: "small",
227
+ text: o("main.delete"),
228
+ onClick: () => {
229
+ O(a.code);
230
+ }
231
+ }, { default: () => [
232
+ d(p, { name: "delete" }),
233
+ d("span", { class: "hidden lg:inline" }, o("main.delete"))
234
+ ] })
235
+ ];
236
+ }
237
+ }
238
+ ], { loading: S, games: r, allGameMods: m } = ye(u), h = _(!1), g = _({
239
+ game: null,
240
+ name: "",
241
+ remoteRepositoryLinux: "",
242
+ remoteRepositoryWindows: ""
243
+ }), k = _(!1), c = _({
244
+ code: "",
245
+ name: "",
246
+ engine: "",
247
+ engineVersion: "",
248
+ remoteRepositoryLinux: "",
249
+ remoteRepositoryWindows: ""
250
+ }), q = _(V()), D = {
251
+ pageSize: 50
252
+ }, v = _(sessionStorage.getItem(N) || "");
253
+ oe(v, (a) => {
254
+ a ? sessionStorage.setItem(N, a) : sessionStorage.removeItem(N);
255
+ });
256
+ const z = () => {
257
+ v.value = "";
258
+ }, F = T(() => {
259
+ let a = [];
260
+ return r.value.forEach((t) => {
261
+ v.value && !t.name.toLowerCase().includes(v.value.toLowerCase()) && !t.code.toLowerCase().includes(v.value.toLowerCase()) || a.push({
262
+ name: t.name,
263
+ code: t.code,
264
+ engine: t.engine,
265
+ mods: P(t.code)
266
+ });
267
+ }), a.sort((t, s) => t.name.localeCompare(s.name));
268
+ }), P = (a) => {
269
+ let t = [];
270
+ return m.value.forEach((s) => {
271
+ s.game_code === a && t.push({
272
+ id: s.id,
273
+ name: s.name,
274
+ gameCode: s.game_code
275
+ });
276
+ }), t;
277
+ }, O = (a) => {
278
+ window.$dialog.success({
279
+ title: o("games.delete_game_confirm_msg"),
280
+ positiveText: o("main.yes"),
281
+ negativeText: o("main.no"),
282
+ closable: !1,
283
+ onPositiveClick: () => {
284
+ H(a);
285
+ },
286
+ onNegativeClick: () => {
287
+ }
288
+ });
289
+ }, H = (a) => {
290
+ u.deleteGameByCode(a).then(() => {
291
+ w();
292
+ }).catch((t) => {
293
+ f(t);
294
+ });
295
+ }, E = (a) => {
296
+ g.value = {
297
+ game: null,
298
+ name: "",
299
+ remoteRepositoryLinux: "",
300
+ remoteRepositoryWindows: ""
301
+ }, a && (g.value.game = a), h.value = !0;
302
+ }, K = () => {
303
+ const a = {
304
+ name: g.value.name,
305
+ game_code: g.value.game,
306
+ remote_repository_linux: g.value.remoteRepositoryLinux,
307
+ remote_repository_windows: g.value.remoteRepositoryWindows
308
+ };
309
+ u.createGameMod(a).then(({ id: t }) => {
310
+ M({
311
+ content: o("games.mod_create_success_msg"),
312
+ type: "success"
313
+ }, () => {
314
+ b();
315
+ });
316
+ }).catch((t) => {
317
+ f(t);
318
+ }).finally(() => {
319
+ h.value = !1;
320
+ });
321
+ }, Y = () => {
322
+ c.value = {
323
+ code: "",
324
+ name: "",
325
+ remoteRepositoryLinux: "",
326
+ remoteRepositoryWindows: ""
327
+ }, k.value = !0;
328
+ }, j = () => {
329
+ const a = {
330
+ name: c.value.name,
331
+ code: c.value.code,
332
+ engine: c.value.engine,
333
+ engine_version: c.value.engineVersion,
334
+ remote_repository_linux: c.value.remoteRepositoryLinux,
335
+ remote_repository_windows: c.value.remoteRepositoryWindows
336
+ };
337
+ a.engine || (a.engine = "unknown"), u.createGame(a).then(({ id: t }) => {
338
+ M({
339
+ content: o("games.create_success_msg"),
340
+ type: "success"
341
+ }, () => {
342
+ u.fetchGames();
343
+ });
344
+ }).catch((t) => {
345
+ f(t);
346
+ }).finally(() => {
347
+ k.value = !1;
348
+ });
349
+ }, J = (a, t) => {
350
+ G.push({ name: "admin.games.mods.edit", params: { code: a, id: t } });
351
+ }, Q = (a) => {
352
+ window.$dialog.success({
353
+ title: o("games.delete_mod_confirm_msg"),
354
+ positiveText: o("main.yes"),
355
+ negativeText: o("main.no"),
356
+ closable: !1,
357
+ onPositiveClick: () => {
358
+ X(a);
359
+ },
360
+ onNegativeClick: () => {
361
+ }
362
+ });
363
+ }, X = (a) => {
364
+ u.deleteModById(a).then(() => {
365
+ b();
366
+ }).catch((t) => {
367
+ f(t);
368
+ });
369
+ }, Z = () => {
370
+ window.$dialog.success({
371
+ title: o("games.d_upgrade_confirm"),
372
+ positiveText: o("main.yes"),
373
+ negativeText: o("main.no"),
374
+ closable: !1,
375
+ onPositiveClick: () => {
376
+ u.upgradeGames().then(() => {
377
+ M({
378
+ content: o("games.upgrade_success_msg"),
379
+ type: "success"
380
+ }), w(), b();
381
+ }).catch((a) => {
382
+ f(a);
383
+ });
384
+ },
385
+ onNegativeClick: () => {
386
+ }
387
+ });
388
+ };
389
+ return (a, t) => (B(), A(le, null, [
390
+ l(e(se), { items: i.value }, null, 8, ["items"]),
391
+ $("div", ke, [
392
+ l(y, {
393
+ class: "mr-1",
394
+ color: "green",
395
+ onClick: t[0] || (t[0] = (s) => Y())
396
+ }, {
397
+ default: n(() => [
398
+ l(e(p), { name: "add-square" }),
399
+ L(" " + R(e(o)("games.add")), 1)
400
+ ]),
401
+ _: 1
402
+ }),
403
+ l(y, {
404
+ class: "mr-1",
405
+ color: "orange",
406
+ onClick: t[1] || (t[1] = (s) => E())
407
+ }, {
408
+ default: n(() => [
409
+ l(e(p), { name: "mods" }),
410
+ L(" " + R(e(o)("games.add_mod")), 1)
411
+ ]),
412
+ _: 1
413
+ }),
414
+ l(y, {
415
+ class: "mr-1",
416
+ color: "black",
417
+ onClick: t[2] || (t[2] = (s) => Z())
418
+ }, {
419
+ default: n(() => [
420
+ l(e(p), { name: "sync" }),
421
+ L(" " + R(e(o)("games.upgrade")), 1)
422
+ ]),
423
+ _: 1
424
+ })
425
+ ]),
426
+ $("div", Re, [
427
+ l(e(ce), null, {
428
+ default: n(() => [
429
+ l(e(pe), null, {
430
+ default: n(() => [
431
+ l(e(p), { name: "search" })
432
+ ]),
433
+ _: 1
434
+ }),
435
+ l(e(C), {
436
+ value: v.value,
437
+ "onUpdate:value": t[3] || (t[3] = (s) => v.value = s),
438
+ type: "text",
439
+ placeholder: e(o)("main.search")
440
+ }, null, 8, ["value", "placeholder"]),
441
+ l(e(ge), {
442
+ onClick: z,
443
+ type: "error",
444
+ disabled: !v.value,
445
+ ghost: ""
446
+ }, {
447
+ default: n(() => [
448
+ l(e(p), { name: "eraser" })
449
+ ]),
450
+ _: 1
451
+ }, 8, ["disabled"])
452
+ ]),
453
+ _: 1
454
+ })
455
+ ]),
456
+ l(e(ve), {
457
+ ref: "tableRef",
458
+ bordered: !1,
459
+ "single-line": !0,
460
+ columns: q.value,
461
+ data: F.value,
462
+ loading: e(S),
463
+ pagination: D
464
+ }, {
465
+ loading: n(() => [
466
+ l(e(ne))
467
+ ]),
468
+ empty: n(() => [
469
+ l(e(fe), {
470
+ description: e(o)("servers.empty_list")
471
+ }, null, 8, ["description"])
472
+ ]),
473
+ _: 1
474
+ }, 8, ["columns", "data", "loading"]),
475
+ l(e(W), {
476
+ show: k.value,
477
+ "onUpdate:show": t[5] || (t[5] = (s) => k.value = s),
478
+ class: "custom-card",
479
+ preset: "card",
480
+ title: e(o)("games.title_add"),
481
+ bordered: !1,
482
+ style: { width: "600px" },
483
+ segmented: { content: "soft", footer: "soft" }
484
+ }, {
485
+ default: n(() => [
486
+ l(he, {
487
+ modelValue: c.value,
488
+ "onUpdate:modelValue": t[4] || (t[4] = (s) => c.value = s),
489
+ onCreate: j
490
+ }, null, 8, ["modelValue"])
491
+ ]),
492
+ _: 1
493
+ }, 8, ["show", "title"]),
494
+ l(e(W), {
495
+ show: h.value,
496
+ "onUpdate:show": t[7] || (t[7] = (s) => h.value = s),
497
+ class: "custom-card",
498
+ preset: "card",
499
+ title: e(o)("games.title_add_mod"),
500
+ bordered: !1,
501
+ style: { width: "600px" },
502
+ segmented: { content: "soft", footer: "soft" }
503
+ }, {
504
+ default: n(() => [
505
+ l(Ce, {
506
+ modelValue: g.value,
507
+ "onUpdate:modelValue": t[6] || (t[6] = (s) => g.value = s),
508
+ onCreate: K
509
+ }, null, 8, ["modelValue"])
510
+ ]),
511
+ _: 1
512
+ }, 8, ["show", "title"])
513
+ ], 64));
514
+ }
515
+ };
516
+ export {
517
+ Te as default
518
+ };