@vcmap/module-selector 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10,93 +10,94 @@ function loadCss(href) {
10
10
  elem.onerror = reject;
11
11
  document.head.appendChild(elem);
12
12
  });
13
- } await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtMjlhMjIwMmZde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnYtYnJlYWRjcnVtYnNbZGF0YS12LTgyMzc3NDY4XXtwYWRkaW5nOjE2cHggMCA0cHh9Cg==');var Te = Object.defineProperty;
14
- var Fe = (e, o, t) => o in e ? Te(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
15
- var W = (e, o, t) => Fe(e, typeof o != "symbol" ? o + "" : o, t);
16
- import { VcsFormButton as be, VcsTextField as ae, VcsLabel as Me, VcsFormSection as Se, VcsCheckbox as _e, useProxiedComplexModel as Re, useModelHasProperty as De, VcsDataTable as qe, VcsList as Pe, AbstractConfigEditor as Ge, WindowSlot as je, createToggleAction as Le, ButtonLocation as ze } from "../../../assets/ui.js";
17
- import { defineComponent as J, inject as Ve, computed as H, resolveComponent as m, openBlock as I, createBlock as _, withCtx as n, createVNode as d, createTextVNode as V, toDisplayString as w, createCommentVNode as q, createElementBlock as ie, Fragment as de, renderList as pe, normalizeClass as we, ref as k, createElementVNode as fe, normalizeProps as We, guardReactiveProps as He, reactive as Ke, watch as Ee, toRaw as ue, mergeProps as Je } from "../../../assets/vue.js";
18
- import { VSheet as Ze, VContainer as Z, VRow as Q, VCol as X, VCard as ye, VIcon as ke, VCardTitle as Qe, VForm as Ue, VDivider as Xe, VTooltip as Ye, VDialog as xe, VBreadcrumbs as eo, VBreadcrumbsItem as oo } from "../../../assets/vuetify.js";
19
- import { VcsModule as to } from "../../../assets/core.js";
20
- function Ie(e, o) {
13
+ } await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtNDFiNjIzZGNde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTQxYjYyM2RjXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTQxYjYyM2RjXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnRvcC1yaWdodC1pY29uW2RhdGEtdi00MWI2MjNkY117cG9zaXRpb246YWJzb2x1dGU7dG9wOjhweDtsZWZ0OjhweDt6LWluZGV4OjEwO2N1cnNvcjpwb2ludGVyO2NvbG9yOnJnYih2YXIoLS12LXRoZW1lLW9uLXN1cmZhY2UpKX0uZ3JvdXBDYXJkW2RhdGEtdi00MWI2MjNkY117d2lkdGg6MTQ2cHg7YmFja2dyb3VuZC1jb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1zdXJmYWNlKSk7Ym9yZGVyOm5vbmUhaW1wb3J0YW50O2JvcmRlci1yaWdodDoxcHggc29saWQhaW1wb3J0YW50fS5pbnRlcm1lZGlhdGUtY2FyZFtkYXRhLXYtNDFiNjIzZGNde3dpZHRoOjE0OHB4O2JhY2tncm91bmQtY29sb3I6cmdiKHZhcigtLXYtdGhlbWUtc3VyZmFjZSkpO2JvcmRlcjpub25lIWltcG9ydGFudDtib3JkZXItcmlnaHQ6MXB4IHNvbGlkIWltcG9ydGFudH0uZ3JvdXBUaXRsZVtkYXRhLXYtNDFiNjIzZGNdLC5ncm91cEljb25bZGF0YS12LTQxYjYyM2RjXXttYXJnaW4tbGVmdDoyMHB4IWltcG9ydGFudH0K');var qe = Object.defineProperty;
14
+ var Pe = (e, o, i) => o in e ? qe(e, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[o] = i;
15
+ var K = (e, o, i) => Pe(e, typeof o != "symbol" ? o + "" : o, i);
16
+ import { VcsFormButton as ce, VcsTextField as me, VcsLabel as ye, VcsFormSection as Se, VcsTextArea as we, VcsCheckbox as _e, useProxiedComplexModel as je, useModelHasProperty as Le, VcsDataTable as ze, VcsList as We, AbstractConfigEditor as He, WindowSlot as Ke, createToggleAction as Je, ButtonLocation as Ze } from "../../../assets/ui.js";
17
+ import { defineComponent as oe, inject as Ue, computed as J, resolveComponent as a, openBlock as C, createBlock as _, withCtx as t, createVNode as l, mergeProps as se, createTextVNode as M, toDisplayString as v, createCommentVNode as G, createElementVNode as H, createElementBlock as x, Fragment as ee, renderList as Me, normalizeClass as re, ref as A, normalizeProps as Qe, guardReactiveProps as Xe, reactive as Ye, watch as xe, toRaw as fe } from "../../../assets/vue.js";
18
+ import { VSheet as Ae, VContainer as te, VRow as le, VCol as ie, VCard as Ie, VIcon as Te, VCardTitle as eo, VTooltip as Ne, VForm as Ee, VDivider as oo, VDialog as to } from "../../../assets/vuetify.js";
19
+ import { VcsModule as lo } from "../../../assets/core.js";
20
+ function Ce(e, o) {
21
21
  if (e != null) {
22
- const t = Number.parseInt(String(e), 10);
23
- if (t != null && !Number.isNaN(t))
24
- return t;
22
+ const i = Number.parseInt(String(e), 10);
23
+ if (i != null && !Number.isNaN(i))
24
+ return i;
25
25
  }
26
26
  return o;
27
27
  }
28
- function lo(e, o) {
28
+ function io(e, o) {
29
29
  return e == null ? !!o : typeof e == "boolean" ? e : e === 1 ? !0 : e === 0 ? !1 : typeof e == "string" && (e.toLowerCase() === "true" || e.toLowerCase() === "1") ? !0 : typeof e == "string" && (e.toLowerCase() === "false" || e.toLowerCase() === "0") ? !1 : !!o;
30
30
  }
31
31
  function no(e) {
32
32
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
33
33
  }
34
- var io = function e(o, t) {
35
- if (o === t) return !0;
36
- if (o && t && typeof o == "object" && typeof t == "object") {
37
- if (o.constructor !== t.constructor) return !1;
38
- var r, i, l;
34
+ var ro = function e(o, i) {
35
+ if (o === i) return !0;
36
+ if (o && i && typeof o == "object" && typeof i == "object") {
37
+ if (o.constructor !== i.constructor) return !1;
38
+ var d, n, r;
39
39
  if (Array.isArray(o)) {
40
- if (r = o.length, r != t.length) return !1;
41
- for (i = r; i-- !== 0; )
42
- if (!e(o[i], t[i])) return !1;
40
+ if (d = o.length, d != i.length) return !1;
41
+ for (n = d; n-- !== 0; )
42
+ if (!e(o[n], i[n])) return !1;
43
43
  return !0;
44
44
  }
45
- if (o.constructor === RegExp) return o.source === t.source && o.flags === t.flags;
46
- if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() === t.valueOf();
47
- if (o.toString !== Object.prototype.toString) return o.toString() === t.toString();
48
- if (l = Object.keys(o), r = l.length, r !== Object.keys(t).length) return !1;
49
- for (i = r; i-- !== 0; )
50
- if (!Object.prototype.hasOwnProperty.call(t, l[i])) return !1;
51
- for (i = r; i-- !== 0; ) {
52
- var s = l[i];
53
- if (!e(o[s], t[s])) return !1;
45
+ if (o.constructor === RegExp) return o.source === i.source && o.flags === i.flags;
46
+ if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() === i.valueOf();
47
+ if (o.toString !== Object.prototype.toString) return o.toString() === i.toString();
48
+ if (r = Object.keys(o), d = r.length, d !== Object.keys(i).length) return !1;
49
+ for (n = d; n-- !== 0; )
50
+ if (!Object.prototype.hasOwnProperty.call(i, r[n])) return !1;
51
+ for (n = d; n-- !== 0; ) {
52
+ var s = r[n];
53
+ if (!e(o[s], i[s])) return !1;
54
54
  }
55
55
  return !0;
56
56
  }
57
- return o !== o && t !== t;
57
+ return o !== o && i !== i;
58
58
  };
59
- const ce = /* @__PURE__ */ no(io), j = "@vcmap/module-selector", ro = "2.0.3", so = "^6.0";
60
- async function Ce(e, o) {
61
- const t = await fetch(e, {
59
+ const ve = /* @__PURE__ */ no(ro), L = "@vcmap/module-selector", so = "2.0.4", uo = "^6.0";
60
+ async function $e(e, o) {
61
+ const i = await fetch(e, {
62
62
  method: "GET"
63
- }).then((r) => {
64
- if (r.ok)
65
- return r.json();
63
+ }).then((d) => {
64
+ if (d.ok)
65
+ return d.json();
66
66
  });
67
- if (t) {
68
- t._id = "moduleSelector_module_id";
69
- const r = new to(t);
70
- await o.addModule(r);
67
+ if (i) {
68
+ i._id = "moduleSelector_module_id";
69
+ const d = new lo(i);
70
+ await o.addModule(d);
71
71
  }
72
72
  }
73
73
  async function ao(e) {
74
- var i, l;
75
- const o = "moduleSelector_module_id", t = (i = e.maps.activeMap) == null ? void 0 : i.name;
76
- e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(t || ((l = [...e.maps][0]) == null ? void 0 : l.name));
74
+ var n, r;
75
+ const o = "moduleSelector_module_id", i = (n = e.maps.activeMap) == null ? void 0 : n.name;
76
+ e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(i || ((r = [...e.maps][0]) == null ? void 0 : r.name));
77
77
  }
78
- const se = "moduleSelector_window_id";
79
- async function Ae(e, o, t, r, i) {
80
- var a;
81
- if (await ao(t), e === null && !i) {
82
- t.windowManager.remove(se);
78
+ const ae = "moduleSelector_window_id";
79
+ async function Oe(e, o, i, d, n) {
80
+ var u;
81
+ if (await ao(i), e === null && !n) {
82
+ i.windowManager.remove(ae);
83
83
  return;
84
84
  }
85
- const l = r[e], s = (l == null ? void 0 : l.type) === "group" ? (a = l.cards) == null ? void 0 : a[o] : null;
86
- s != null && s.moduleUrl ? await Ce(s.moduleUrl, t) : (l == null ? void 0 : l.type) === "url" && await Ce(l.moduleUrl, t), t.windowManager.remove(se);
85
+ const r = d[e], s = (r == null ? void 0 : r.type) === "group" ? (u = r.cards) == null ? void 0 : u[o] : null;
86
+ s != null && s.moduleUrl ? await $e(s.moduleUrl, i) : (r == null ? void 0 : r.type) === "url" && await $e(r.moduleUrl, i), i.windowManager.remove(ae);
87
87
  }
88
- const uo = J({
88
+ const co = oe({
89
89
  name: "ModuleSelector",
90
- methods: { startApplication: Ae },
90
+ methods: { startApplication: Oe },
91
91
  components: {
92
- VSheet: Ze,
93
- VContainer: Z,
94
- VRow: Q,
95
- VCol: X,
96
- VCard: ye,
97
- VIcon: ke,
98
- VCardTitle: Qe,
99
- VcsFormButton: be
92
+ VSheet: Ae,
93
+ VContainer: te,
94
+ VRow: le,
95
+ VCol: ie,
96
+ VCard: Ie,
97
+ VIcon: Te,
98
+ VCardTitle: eo,
99
+ VcsFormButton: ce,
100
+ VTooltip: Ne
100
101
  },
101
102
  props: {
102
103
  modules: {
@@ -115,79 +116,110 @@ const uo = J({
115
116
  }
116
117
  },
117
118
  setup(e) {
118
- const o = Ve("vcsApp"), t = o.plugins.getByKey(j), { modules: r } = e, i = H(() => {
119
- const c = e.modules[t.selectedMainModuleIndex.value];
119
+ const o = Ue("vcsApp"), i = o.plugins.getByKey(L), { modules: d } = e, n = J(() => {
120
+ const c = e.modules[i.selectedMainModuleIndex.value];
120
121
  return (c == null ? void 0 : c.type) === "group" ? c.cards : [];
121
- }), l = (c) => {
122
- t.selectedMainModuleIndex.value === c ? t.selectedMainModuleIndex.value = null : t.selectedMainModuleIndex.value = c;
122
+ }), r = (c) => {
123
+ i.selectedMainModuleIndex.value === c ? i.selectedMainModuleIndex.value = null : i.selectedMainModuleIndex.value = c;
123
124
  }, s = (c) => {
124
- t.selectedNestedModuleIndex.value === c ? t.selectedNestedModuleIndex.value = null : t.selectedNestedModuleIndex.value = c;
125
- }, a = () => {
126
- t.selectedNestedModuleIndex.value = null, t.selectedMainModuleIndex.value = null;
127
- }, v = H(() => {
125
+ i.selectedNestedModuleIndex.value === c ? i.selectedNestedModuleIndex.value = null : i.selectedNestedModuleIndex.value = c;
126
+ }, u = () => {
127
+ i.selectedNestedModuleIndex.value = null, i.selectedMainModuleIndex.value = null;
128
+ }, y = J(() => {
128
129
  if (!e.requireModuleSelection) return !1;
129
- const c = t.selectedMainModuleIndex.value, C = t.selectedNestedModuleIndex.value, b = r[c];
130
- return c == null || (b == null ? void 0 : b.type) === "group" && b.cards && C == null;
130
+ const c = i.selectedMainModuleIndex.value, h = i.selectedNestedModuleIndex.value, S = d[c];
131
+ return c == null || (S == null ? void 0 : S.type) === "group" && S.cards && h == null;
131
132
  });
132
133
  return {
133
- nestedCards: i,
134
- plugin: t,
135
- selectModule: l,
134
+ nestedCards: n,
135
+ plugin: i,
136
+ selectModule: r,
136
137
  selectNestedModule: s,
137
- showMainCards: a,
138
- isButtonDisabled: v,
138
+ showMainCards: u,
139
+ isButtonDisabled: y,
139
140
  app: o
140
141
  };
141
142
  }
142
- }), Y = (e, o) => {
143
- const t = e.__vccOpts || e;
144
- for (const [r, i] of o)
145
- t[r] = i;
146
- return t;
143
+ }), ne = (e, o) => {
144
+ const i = e.__vccOpts || e;
145
+ for (const [d, n] of o)
146
+ i[d] = n;
147
+ return i;
147
148
  };
148
- function co(e, o, t, r, i, l) {
149
- const s = m("v-icon"), a = m("v-card-title"), v = m("v-card"), c = m("v-col"), C = m("v-row"), b = m("VcsFormButton"), h = m("v-container"), R = m("v-sheet");
150
- return I(), _(R, {
149
+ function mo(e, o, i, d, n, r) {
150
+ const s = a("v-icon"), u = a("v-tooltip"), y = a("v-card-title"), c = a("v-card"), h = a("v-col"), S = a("v-row"), $ = a("VcsFormButton"), B = a("v-container"), V = a("v-sheet");
151
+ return C(), _(V, {
151
152
  class: "module-selector",
152
153
  elevation: "1"
153
154
  }, {
154
- default: n(() => [
155
- d(h, null, {
156
- default: n(() => [
157
- d(C, {
155
+ default: t(() => [
156
+ l(B, null, {
157
+ default: t(() => [
158
+ l(S, {
158
159
  class: "justify-center align-center",
159
160
  "no-gutters": ""
160
161
  }, {
161
- default: n(() => [
162
- e.basisModule && !e.nestedCards.length ? (I(), _(c, {
162
+ default: t(() => [
163
+ e.basisModule && !e.nestedCards.length ? (C(), _(h, {
163
164
  key: 0,
164
165
  cols: "auto",
165
166
  class: "pa-2"
166
167
  }, {
167
- default: n(() => [
168
- d(v, {
168
+ default: t(() => [
169
+ l(c, {
169
170
  class: "pa-3 fixed-card selected-card",
170
- outlined: ""
171
+ variant: "outlined"
171
172
  }, {
172
- default: n(() => [
173
- e.basisModule.icon ? (I(), _(s, {
173
+ default: t(() => [
174
+ l(u, { "max-width": 300 }, {
175
+ activator: t(({ props: g }) => [
176
+ e.basisModule.description ? (C(), _(
177
+ s,
178
+ se({
179
+ key: 0,
180
+ class: "top-right-icon"
181
+ }, g),
182
+ {
183
+ default: t(() => [
184
+ M(v("$vcsInfo"))
185
+ ]),
186
+ _: 2
187
+ /* DYNAMIC */
188
+ },
189
+ 1040
190
+ /* FULL_PROPS, DYNAMIC_SLOTS */
191
+ )) : G("v-if", !0)
192
+ ]),
193
+ default: t(() => [
194
+ H(
195
+ "span",
196
+ null,
197
+ v(e.$st(e.basisModule.description)),
198
+ 1
199
+ /* TEXT */
200
+ )
201
+ ]),
202
+ _: 1
203
+ /* STABLE */
204
+ }),
205
+ e.basisModule.icon ? (C(), _(s, {
174
206
  key: 0,
175
207
  size: "50"
176
208
  }, {
177
- default: n(() => [
178
- V(
179
- w(e.basisModule.icon),
209
+ default: t(() => [
210
+ M(
211
+ v(e.basisModule.icon),
180
212
  1
181
213
  /* TEXT */
182
214
  )
183
215
  ]),
184
216
  _: 1
185
217
  /* STABLE */
186
- })) : q("v-if", !0),
187
- d(a, { class: "text-center" }, {
188
- default: n(() => [
189
- V(
190
- w(e.$st(e.basisModule.title)),
218
+ })) : G("v-if", !0),
219
+ l(y, { class: "text-center" }, {
220
+ default: t(() => [
221
+ M(
222
+ v(e.$st(e.basisModule.title)),
191
223
  1
192
224
  /* TEXT */
193
225
  )
@@ -202,31 +234,31 @@ function co(e, o, t, r, i, l) {
202
234
  ]),
203
235
  _: 1
204
236
  /* STABLE */
205
- })) : q("v-if", !0),
206
- e.nestedCards.length ? (I(), ie(
207
- de,
237
+ })) : G("v-if", !0),
238
+ e.nestedCards.length ? (C(), x(
239
+ ee,
208
240
  { key: 2 },
209
241
  [
210
- d(c, {
242
+ l(h, {
211
243
  cols: "auto",
212
244
  class: "pa-2"
213
245
  }, {
214
- default: n(() => [
215
- d(v, {
246
+ default: t(() => [
247
+ l(c, {
216
248
  class: "fixed-card hover-card",
217
- outlined: "",
249
+ variant: "outlined",
218
250
  onClick: o[0] || (o[0] = (g) => e.showMainCards())
219
251
  }, {
220
- default: n(() => [
221
- d(s, { size: "50" }, {
222
- default: n(() => [
223
- V("mdi-arrow-left")
252
+ default: t(() => [
253
+ l(s, { size: "50" }, {
254
+ default: t(() => [
255
+ M("mdi-arrow-left")
224
256
  ]),
225
257
  _: 1
226
258
  /* STABLE */
227
259
  }),
228
- V(
229
- " " + w(e.$st("moduleSelector.cardBack")),
260
+ M(
261
+ " " + v(e.$st("moduleSelector.cardBack")),
230
262
  1
231
263
  /* TEXT */
232
264
  )
@@ -238,36 +270,74 @@ function co(e, o, t, r, i, l) {
238
270
  _: 1
239
271
  /* STABLE */
240
272
  }),
241
- (I(!0), ie(
242
- de,
273
+ (C(!0), x(
274
+ ee,
243
275
  null,
244
- pe(e.nestedCards, (g, y) => (I(), _(
245
- c,
276
+ Me(e.nestedCards, (g, N) => (C(), _(
277
+ h,
246
278
  {
247
- key: y,
279
+ key: N,
248
280
  cols: "auto",
249
281
  class: "pa-2"
250
282
  },
251
283
  {
252
- default: n(() => [
253
- d(v, {
254
- class: we(["fixed-card hover-card", {
255
- "selected-card": e.plugin.selectedNestedModuleIndex.value === y
284
+ default: t(() => [
285
+ l(c, {
286
+ class: re(["fixed-card hover-card", {
287
+ "selected-card": e.plugin.selectedNestedModuleIndex.value === N
256
288
  }]),
257
- outlined: "",
258
- onClick: (U) => e.selectNestedModule(y)
289
+ variant: "outlined",
290
+ onClick: (p) => e.selectNestedModule(N)
259
291
  }, {
260
- default: n(() => [
261
- g.icon ? (I(), _(
292
+ default: t(() => [
293
+ l(
294
+ u,
295
+ { "max-width": 300 },
296
+ {
297
+ activator: t(({ props: p }) => [
298
+ g.description ? (C(), _(
299
+ s,
300
+ se({
301
+ key: 0,
302
+ class: "top-right-icon",
303
+ ref_for: !0
304
+ }, p),
305
+ {
306
+ default: t(() => [
307
+ M(v("$vcsInfo"))
308
+ ]),
309
+ _: 2
310
+ /* DYNAMIC */
311
+ },
312
+ 1040
313
+ /* FULL_PROPS, DYNAMIC_SLOTS */
314
+ )) : G("v-if", !0)
315
+ ]),
316
+ default: t(() => [
317
+ H(
318
+ "span",
319
+ null,
320
+ v(e.$st(g.description)),
321
+ 1
322
+ /* TEXT */
323
+ )
324
+ ]),
325
+ _: 2
326
+ /* DYNAMIC */
327
+ },
328
+ 1024
329
+ /* DYNAMIC_SLOTS */
330
+ ),
331
+ g.icon ? (C(), _(
262
332
  s,
263
333
  {
264
334
  key: 0,
265
335
  size: "50"
266
336
  },
267
337
  {
268
- default: n(() => [
269
- V(
270
- w(g.icon),
338
+ default: t(() => [
339
+ M(
340
+ v(g.icon),
271
341
  1
272
342
  /* TEXT */
273
343
  )
@@ -277,14 +347,14 @@ function co(e, o, t, r, i, l) {
277
347
  },
278
348
  1024
279
349
  /* DYNAMIC_SLOTS */
280
- )) : q("v-if", !0),
281
- d(
282
- a,
350
+ )) : G("v-if", !0),
351
+ l(
352
+ y,
283
353
  { class: "text-center" },
284
354
  {
285
- default: n(() => [
286
- V(
287
- w(e.$st(g.title)),
355
+ default: t(() => [
356
+ M(
357
+ v(e.$st(g.title)),
288
358
  1
289
359
  /* TEXT */
290
360
  )
@@ -312,53 +382,55 @@ function co(e, o, t, r, i, l) {
312
382
  ],
313
383
  64
314
384
  /* STABLE_FRAGMENT */
315
- )) : (I(!0), ie(
316
- de,
385
+ )) : (C(!0), x(
386
+ ee,
317
387
  { key: 1 },
318
- pe(e.modules, (g, y) => (I(), _(
319
- c,
388
+ Me(e.modules, (g, N) => (C(), _(
389
+ h,
320
390
  {
321
391
  cols: "auto",
322
392
  class: "pa-2",
323
- key: y
393
+ key: N
324
394
  },
325
395
  {
326
- default: n(() => [
327
- d(v, {
328
- class: we(["fixed-card hover-card", {
329
- "selected-card": e.plugin.selectedMainModuleIndex.value === y
396
+ default: t(() => [
397
+ l(c, {
398
+ class: re(["fixed-card hover-card", {
399
+ "selected-card": e.plugin.selectedMainModuleIndex.value === N,
400
+ "pr-3": g.type === "group"
330
401
  }]),
331
- outlined: "",
332
- onClick: (U) => e.selectModule(y)
402
+ variant: "outlined",
403
+ onClick: (p) => e.selectModule(N)
333
404
  }, {
334
- default: n(() => [
335
- g.icon ? (I(), _(
336
- s,
405
+ default: t(() => [
406
+ l(
407
+ u,
408
+ { "max-width": 300 },
337
409
  {
338
- key: 0,
339
- size: "50"
340
- },
341
- {
342
- default: n(() => [
343
- V(
344
- w(g.icon),
345
- 1
346
- /* TEXT */
347
- )
410
+ activator: t(({ props: p }) => [
411
+ g.description ? (C(), _(
412
+ s,
413
+ se({
414
+ key: 0,
415
+ class: "top-right-icon",
416
+ ref_for: !0
417
+ }, p),
418
+ {
419
+ default: t(() => [
420
+ M(v("$vcsInfo"))
421
+ ]),
422
+ _: 2
423
+ /* DYNAMIC */
424
+ },
425
+ 1040
426
+ /* FULL_PROPS, DYNAMIC_SLOTS */
427
+ )) : G("v-if", !0)
348
428
  ]),
349
- _: 2
350
- /* DYNAMIC */
351
- },
352
- 1024
353
- /* DYNAMIC_SLOTS */
354
- )) : q("v-if", !0),
355
- d(
356
- a,
357
- { class: "text-center" },
358
- {
359
- default: n(() => [
360
- V(
361
- w(e.$st(g.title)),
429
+ default: t(() => [
430
+ H(
431
+ "span",
432
+ null,
433
+ v(e.$st(g.description)),
362
434
  1
363
435
  /* TEXT */
364
436
  )
@@ -368,7 +440,115 @@ function co(e, o, t, r, i, l) {
368
440
  },
369
441
  1024
370
442
  /* DYNAMIC_SLOTS */
371
- )
443
+ ),
444
+ g.type === "group" && g.cards ? (C(), _(c, {
445
+ key: 0,
446
+ class: re(["intermediate-card", {
447
+ "selected-card": e.plugin.selectedMainModuleIndex.value === N,
448
+ "pr-3": g.type === "group"
449
+ }]),
450
+ variant: "outlined"
451
+ }, {
452
+ default: t(() => [
453
+ l(c, {
454
+ variant: g.type === "group" && g.cards ? "outlined" : void 0,
455
+ class: re({
456
+ "selected-card": e.plugin.selectedMainModuleIndex.value === N,
457
+ groupCard: g.type === "group",
458
+ innerCard: g.type === "group"
459
+ })
460
+ }, {
461
+ default: t(() => [
462
+ g.icon ? (C(), _(
463
+ s,
464
+ {
465
+ key: 0,
466
+ size: "50",
467
+ class: "groupIcon"
468
+ },
469
+ {
470
+ default: t(() => [
471
+ M(
472
+ v(g.icon),
473
+ 1
474
+ /* TEXT */
475
+ )
476
+ ]),
477
+ _: 2
478
+ /* DYNAMIC */
479
+ },
480
+ 1024
481
+ /* DYNAMIC_SLOTS */
482
+ )) : G("v-if", !0),
483
+ l(
484
+ y,
485
+ { class: "text-center groupTitle" },
486
+ {
487
+ default: t(() => [
488
+ M(
489
+ v(e.$st(g.title)),
490
+ 1
491
+ /* TEXT */
492
+ )
493
+ ]),
494
+ _: 2
495
+ /* DYNAMIC */
496
+ },
497
+ 1024
498
+ /* DYNAMIC_SLOTS */
499
+ )
500
+ ]),
501
+ _: 2
502
+ /* DYNAMIC */
503
+ }, 1032, ["variant", "class"])
504
+ ]),
505
+ _: 2
506
+ /* DYNAMIC */
507
+ }, 1032, ["class"])) : (C(), x(
508
+ ee,
509
+ { key: 1 },
510
+ [
511
+ g.icon ? (C(), _(
512
+ s,
513
+ {
514
+ key: 0,
515
+ size: "50"
516
+ },
517
+ {
518
+ default: t(() => [
519
+ M(
520
+ v(g.icon),
521
+ 1
522
+ /* TEXT */
523
+ )
524
+ ]),
525
+ _: 2
526
+ /* DYNAMIC */
527
+ },
528
+ 1024
529
+ /* DYNAMIC_SLOTS */
530
+ )) : G("v-if", !0),
531
+ l(
532
+ y,
533
+ { class: "text-center" },
534
+ {
535
+ default: t(() => [
536
+ M(
537
+ v(e.$st(g.title)),
538
+ 1
539
+ /* TEXT */
540
+ )
541
+ ]),
542
+ _: 2
543
+ /* DYNAMIC */
544
+ },
545
+ 1024
546
+ /* DYNAMIC_SLOTS */
547
+ )
548
+ ],
549
+ 64
550
+ /* STABLE_FRAGMENT */
551
+ ))
372
552
  ]),
373
553
  _: 2
374
554
  /* DYNAMIC */
@@ -387,9 +567,9 @@ function co(e, o, t, r, i, l) {
387
567
  _: 1
388
568
  /* STABLE */
389
569
  }),
390
- d(C, { justify: "end" }, {
391
- default: n(() => [
392
- d(b, {
570
+ l(S, { justify: "end" }, {
571
+ default: t(() => [
572
+ l($, {
393
573
  variant: "filled",
394
574
  class: "ma-5",
395
575
  onClick: o[1] || (o[1] = (g) => e.startApplication(
@@ -401,9 +581,9 @@ function co(e, o, t, r, i, l) {
401
581
  )),
402
582
  disabled: e.isButtonDisabled
403
583
  }, {
404
- default: n(() => [
405
- V(
406
- w(e.$st("moduleSelector.startButton")),
584
+ default: t(() => [
585
+ M(
586
+ v(e.$st("moduleSelector.startButton")),
407
587
  1
408
588
  /* TEXT */
409
589
  )
@@ -424,14 +604,15 @@ function co(e, o, t, r, i, l) {
424
604
  /* STABLE */
425
605
  });
426
606
  }
427
- const mo = /* @__PURE__ */ Y(uo, [["render", co], ["__scopeId", "data-v-29a2202f"]]), re = () => ({
607
+ const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-41b623dc"]]), ue = () => ({
428
608
  windowTitle: "moduleSelector.title",
429
609
  isActiveOnStart: !0,
430
610
  requireModuleSelection: !1,
431
611
  position: {
432
612
  left: "33%",
433
613
  right: "33%",
434
- top: "10%"
614
+ top: "10%",
615
+ maxHeight: "80%"
435
616
  },
436
617
  basisModule: void 0,
437
618
  modules: [],
@@ -439,19 +620,20 @@ const mo = /* @__PURE__ */ Y(uo, [["render", co], ["__scopeId", "data-v-29a2202f
439
620
  projectId: "",
440
621
  appId: "",
441
622
  token: ""
442
- }), po = J({
623
+ }), fo = oe({
443
624
  name: "ModuleEditor",
444
625
  components: {
445
- VcsTextField: ae,
446
- VcsLabel: Me,
447
- VCol: X,
448
- VRow: Q,
449
- VForm: Ue,
450
- VContainer: Z,
451
- VcsFormButton: be,
452
- VDivider: Xe,
453
- VCard: ye,
454
- VcsFormSection: Se
626
+ VcsTextField: me,
627
+ VcsLabel: ye,
628
+ VCol: ie,
629
+ VRow: le,
630
+ VForm: Ee,
631
+ VContainer: te,
632
+ VcsFormButton: ce,
633
+ VDivider: oo,
634
+ VCard: Ie,
635
+ VcsFormSection: Se,
636
+ VcsTextArea: we
455
637
  },
456
638
  props: {
457
639
  modelValue: {
@@ -460,42 +642,42 @@ const mo = /* @__PURE__ */ Y(uo, [["render", co], ["__scopeId", "data-v-29a2202f
460
642
  }
461
643
  },
462
644
  setup(e) {
463
- const o = k(e.modelValue), t = k(!1);
645
+ const o = A(e.modelValue), i = A(!1);
464
646
  return {
465
647
  localModuleOptions: o,
466
- isFormValid: t,
648
+ isFormValid: i,
467
649
  validateForm: () => {
468
- t.value = !!o.value.title;
650
+ i.value = !!o.value.title;
469
651
  },
470
- requiredRule: (l) => !!l || "moduleSelector.configEditor.editorError"
652
+ requiredRule: (r) => !!r || "moduleSelector.configEditor.editorError"
471
653
  };
472
654
  }
473
- }), fo = { class: "d-flex gc-2 w-100 justify-end pa-2" };
474
- function vo(e, o, t, r, i, l) {
475
- const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container"), b = m("v-form"), h = m("v-divider"), R = m("VcsFormButton"), g = m("VcsFormSection"), y = m("v-card");
476
- return I(), _(y, null, {
477
- default: n(() => [
478
- d(g, null, {
479
- default: n(() => [
480
- d(b, {
655
+ }), vo = { class: "d-flex gc-2 w-100 justify-end pa-2" };
656
+ function go(e, o, i, d, n, r) {
657
+ const s = a("VcsLabel"), u = a("v-col"), y = a("VcsTextField"), c = a("v-row"), h = a("VcsTextArea"), S = a("v-container"), $ = a("v-form"), B = a("v-divider"), V = a("VcsFormButton"), g = a("VcsFormSection"), N = a("v-card");
658
+ return C(), _(N, null, {
659
+ default: t(() => [
660
+ l(g, null, {
661
+ default: t(() => [
662
+ l($, {
481
663
  modelValue: e.isFormValid,
482
- "onUpdate:modelValue": o[3] || (o[3] = (U) => e.isFormValid = U),
664
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => e.isFormValid = p),
483
665
  ref: "form"
484
666
  }, {
485
- default: n(() => [
486
- d(C, { class: "px-2 pt-0 pb-2" }, {
487
- default: n(() => [
488
- d(c, { "no-gutters": "" }, {
489
- default: n(() => [
490
- d(a, { cols: "6" }, {
491
- default: n(() => [
492
- d(s, {
667
+ default: t(() => [
668
+ l(S, { class: "px-2 pt-0 pb-2" }, {
669
+ default: t(() => [
670
+ l(c, { "no-gutters": "" }, {
671
+ default: t(() => [
672
+ l(u, { cols: "6" }, {
673
+ default: t(() => [
674
+ l(s, {
493
675
  required: "",
494
676
  "html-for": "moduleName"
495
677
  }, {
496
- default: n(() => [
497
- V(
498
- w(e.$st("moduleSelector.configEditor.moduleName")),
678
+ default: t(() => [
679
+ M(
680
+ v(e.$st("moduleSelector.configEditor.moduleName")),
499
681
  1
500
682
  /* TEXT */
501
683
  )
@@ -507,13 +689,13 @@ function vo(e, o, t, r, i, l) {
507
689
  _: 1
508
690
  /* STABLE */
509
691
  }),
510
- d(a, { cols: "6" }, {
511
- default: n(() => [
512
- d(v, {
692
+ l(u, { cols: "6" }, {
693
+ default: t(() => [
694
+ l(y, {
513
695
  id: "moduleName",
514
696
  placeholder: "Module Name",
515
697
  modelValue: e.localModuleOptions.title,
516
- "onUpdate:modelValue": o[0] || (o[0] = (U) => e.localModuleOptions.title = U),
698
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => e.localModuleOptions.title = p),
517
699
  rules: [e.requiredRule]
518
700
  }, null, 8, ["modelValue", "rules"])
519
701
  ]),
@@ -524,17 +706,17 @@ function vo(e, o, t, r, i, l) {
524
706
  _: 1
525
707
  /* STABLE */
526
708
  }),
527
- d(c, { "no-gutters": "" }, {
528
- default: n(() => [
529
- d(a, { cols: "6" }, {
530
- default: n(() => [
531
- d(s, {
709
+ l(c, { "no-gutters": "" }, {
710
+ default: t(() => [
711
+ l(u, { cols: "6" }, {
712
+ default: t(() => [
713
+ l(s, {
532
714
  required: "",
533
715
  "html-for": "moduleIcon"
534
716
  }, {
535
- default: n(() => [
536
- V(
537
- w(e.$st("moduleSelector.configEditor.moduleIcon")),
717
+ default: t(() => [
718
+ M(
719
+ v(e.$st("moduleSelector.configEditor.moduleIcon")),
538
720
  1
539
721
  /* TEXT */
540
722
  )
@@ -546,13 +728,13 @@ function vo(e, o, t, r, i, l) {
546
728
  _: 1
547
729
  /* STABLE */
548
730
  }),
549
- d(a, { cols: "6" }, {
550
- default: n(() => [
551
- d(v, {
731
+ l(u, { cols: "6" }, {
732
+ default: t(() => [
733
+ l(y, {
552
734
  id: "moduleIcon",
553
735
  placeholder: "Icon Name",
554
736
  modelValue: e.localModuleOptions.icon,
555
- "onUpdate:modelValue": o[1] || (o[1] = (U) => e.localModuleOptions.icon = U),
737
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => e.localModuleOptions.icon = p),
556
738
  rules: [e.requiredRule]
557
739
  }, null, 8, ["modelValue", "rules"])
558
740
  ]),
@@ -563,17 +745,17 @@ function vo(e, o, t, r, i, l) {
563
745
  _: 1
564
746
  /* STABLE */
565
747
  }),
566
- d(c, { "no-gutters": "" }, {
567
- default: n(() => [
568
- d(a, { cols: "6" }, {
569
- default: n(() => [
570
- d(s, {
748
+ l(c, { "no-gutters": "" }, {
749
+ default: t(() => [
750
+ l(u, { cols: "6" }, {
751
+ default: t(() => [
752
+ l(s, {
571
753
  required: "",
572
754
  "html-for": "moduleUrl"
573
755
  }, {
574
- default: n(() => [
575
- V(
576
- w(e.$st("moduleSelector.configEditor.moduleUrl")),
756
+ default: t(() => [
757
+ M(
758
+ v(e.$st("moduleSelector.configEditor.moduleUrl")),
577
759
  1
578
760
  /* TEXT */
579
761
  )
@@ -585,13 +767,13 @@ function vo(e, o, t, r, i, l) {
585
767
  _: 1
586
768
  /* STABLE */
587
769
  }),
588
- d(a, { cols: "6" }, {
589
- default: n(() => [
590
- d(v, {
770
+ l(u, { cols: "6" }, {
771
+ default: t(() => [
772
+ l(y, {
591
773
  id: "moduleUrl",
592
774
  placeholder: "URL",
593
775
  modelValue: e.localModuleOptions.moduleUrl,
594
- "onUpdate:modelValue": o[2] || (o[2] = (U) => e.localModuleOptions.moduleUrl = U),
776
+ "onUpdate:modelValue": o[2] || (o[2] = (p) => e.localModuleOptions.moduleUrl = p),
595
777
  rules: [e.requiredRule]
596
778
  }, null, 8, ["modelValue", "rules"])
597
779
  ]),
@@ -601,6 +783,40 @@ function vo(e, o, t, r, i, l) {
601
783
  ]),
602
784
  _: 1
603
785
  /* STABLE */
786
+ }),
787
+ l(c, { "no-gutters": "" }, {
788
+ default: t(() => [
789
+ l(u, { cols: "6" }, {
790
+ default: t(() => [
791
+ l(s, { "html-for": "moduleDescription" }, {
792
+ default: t(() => [
793
+ M(
794
+ v(e.$st("moduleSelector.configEditor.moduleDescription")),
795
+ 1
796
+ /* TEXT */
797
+ )
798
+ ]),
799
+ _: 1
800
+ /* STABLE */
801
+ })
802
+ ]),
803
+ _: 1
804
+ /* STABLE */
805
+ }),
806
+ l(u, { cols: "6" }, {
807
+ default: t(() => [
808
+ l(h, {
809
+ id: "moduleDescription",
810
+ modelValue: e.localModuleOptions.description,
811
+ "onUpdate:modelValue": o[3] || (o[3] = (p) => e.localModuleOptions.description = p)
812
+ }, null, 8, ["modelValue"])
813
+ ]),
814
+ _: 1
815
+ /* STABLE */
816
+ })
817
+ ]),
818
+ _: 1
819
+ /* STABLE */
604
820
  })
605
821
  ]),
606
822
  _: 1
@@ -610,18 +826,18 @@ function vo(e, o, t, r, i, l) {
610
826
  _: 1
611
827
  /* STABLE */
612
828
  }, 8, ["modelValue"]),
613
- d(h),
614
- fe("div", fo, [
615
- d(R, {
829
+ l(B),
830
+ H("div", vo, [
831
+ l(V, {
616
832
  disabled: !e.isFormValid,
617
- onClick: o[4] || (o[4] = () => {
833
+ onClick: o[5] || (o[5] = () => {
618
834
  e.$emit("submit", e.localModuleOptions);
619
835
  }),
620
836
  variant: "filled"
621
837
  }, {
622
- default: n(() => [
623
- V(
624
- w(e.$st("components.apply")),
838
+ default: t(() => [
839
+ M(
840
+ v(e.$st("components.apply")),
625
841
  1
626
842
  /* TEXT */
627
843
  )
@@ -629,12 +845,12 @@ function vo(e, o, t, r, i, l) {
629
845
  _: 1
630
846
  /* STABLE */
631
847
  }, 8, ["disabled"]),
632
- d(R, {
633
- onClick: o[5] || (o[5] = (U) => e.$emit("close"))
848
+ l(V, {
849
+ onClick: o[6] || (o[6] = (p) => e.$emit("close"))
634
850
  }, {
635
- default: n(() => [
636
- V(
637
- w(e.$st("components.cancel")),
851
+ default: t(() => [
852
+ M(
853
+ v(e.$st("components.cancel")),
638
854
  1
639
855
  /* TEXT */
640
856
  )
@@ -652,14 +868,14 @@ function vo(e, o, t, r, i, l) {
652
868
  /* STABLE */
653
869
  });
654
870
  }
655
- const go = /* @__PURE__ */ Y(po, [["render", vo]]), ho = J({
871
+ const Mo = /* @__PURE__ */ ne(fo, [["render", go]]), ho = oe({
656
872
  name: "WindowPositionSettings",
657
873
  components: {
658
- VContainer: Z,
659
- VRow: Q,
660
- VCol: X,
874
+ VContainer: te,
875
+ VRow: le,
876
+ VCol: ie,
661
877
  VcsCheckbox: _e,
662
- VcsTextField: ae
878
+ VcsTextField: me
663
879
  },
664
880
  props: {
665
881
  modelValue: {
@@ -672,55 +888,55 @@ const go = /* @__PURE__ */ Y(po, [["render", vo]]), ho = J({
672
888
  }
673
889
  },
674
890
  setup(e, { emit: o }) {
675
- const t = Re(
891
+ const i = je(
676
892
  e,
677
893
  "modelValue",
678
894
  o
679
895
  );
680
896
  return {
681
- inputs: H(() => e.positionKeys.reduce(
682
- (i, l) => (i[l] = {
683
- key: l,
684
- checkbox: De(t, l, null),
685
- input: H({
897
+ inputs: J(() => e.positionKeys.reduce(
898
+ (n, r) => (n[r] = {
899
+ key: r,
900
+ checkbox: Le(i, r, null),
901
+ input: J({
686
902
  get() {
687
- return t.value[l];
903
+ return i.value[r];
688
904
  },
689
905
  set(s) {
690
- t.value[l] = s;
906
+ i.value[r] = s;
691
907
  }
692
908
  }),
693
909
  placeholder: "auto"
694
- }, i),
910
+ }, n),
695
911
  {}
696
912
  ))
697
913
  };
698
914
  }
699
915
  });
700
- function bo(e, o, t, r, i, l) {
701
- const s = m("VcsCheckbox"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container");
702
- return I(), _(C, { class: "py-0 px-1" }, {
703
- default: n(() => [
704
- (I(!0), ie(
705
- de,
916
+ function Vo(e, o, i, d, n, r) {
917
+ const s = a("VcsCheckbox"), u = a("v-col"), y = a("VcsTextField"), c = a("v-row"), h = a("v-container");
918
+ return C(), _(h, { class: "py-0 px-1" }, {
919
+ default: t(() => [
920
+ (C(!0), x(
921
+ ee,
706
922
  null,
707
- pe(e.inputs, ({ key: b, checkbox: h, input: R, placeholder: g }) => (I(), _(
923
+ Me(e.inputs, ({ key: S, checkbox: $, input: B, placeholder: V }) => (C(), _(
708
924
  c,
709
925
  {
710
926
  "no-gutters": "",
711
- key: b
927
+ key: S
712
928
  },
713
929
  {
714
- default: n(() => [
715
- d(
716
- a,
930
+ default: t(() => [
931
+ l(
932
+ u,
717
933
  null,
718
934
  {
719
- default: n(() => [
720
- d(s, {
721
- label: `appConfigurator.editors.featureInfo.window.position.${b}`,
722
- modelValue: h.value,
723
- "onUpdate:modelValue": (y) => h.value = y
935
+ default: t(() => [
936
+ l(s, {
937
+ label: `appConfigurator.editors.featureInfo.window.position.${S}`,
938
+ modelValue: $.value,
939
+ "onUpdate:modelValue": (g) => $.value = g
724
940
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
725
941
  ]),
726
942
  _: 2
@@ -729,17 +945,17 @@ function bo(e, o, t, r, i, l) {
729
945
  1024
730
946
  /* DYNAMIC_SLOTS */
731
947
  ),
732
- d(
733
- a,
948
+ l(
949
+ u,
734
950
  null,
735
951
  {
736
- default: n(() => [
737
- d(v, {
952
+ default: t(() => [
953
+ l(y, {
738
954
  clearable: "",
739
- disabled: !h.value,
740
- placeholder: g,
741
- modelValue: R.value,
742
- "onUpdate:modelValue": (y) => R.value = y,
955
+ disabled: !$.value,
956
+ placeholder: V,
957
+ modelValue: B.value,
958
+ "onUpdate:modelValue": (g) => B.value = g,
743
959
  modelModifiers: { trim: !0 }
744
960
  }, null, 8, ["disabled", "placeholder", "modelValue", "onUpdate:modelValue"])
745
961
  ]),
@@ -764,67 +980,67 @@ function bo(e, o, t, r, i, l) {
764
980
  /* STABLE */
765
981
  });
766
982
  }
767
- const Mo = /* @__PURE__ */ Y(ho, [["render", bo]]);
768
- let Ne = "";
769
- function So(e) {
770
- Ne = e;
983
+ const bo = /* @__PURE__ */ ne(ho, [["render", Vo]]);
984
+ let De = "";
985
+ function yo(e) {
986
+ De = e;
771
987
  }
772
- let ve;
773
- function Vo(e) {
774
- ve = e;
988
+ let he;
989
+ function So(e) {
990
+ he = e;
775
991
  }
776
- let $e = {};
777
- function yo() {
778
- return ve ? {
779
- authorization: `Bearer ${ve}`,
780
- ...$e
781
- } : { ...$e };
992
+ let ke = {};
993
+ function wo() {
994
+ return he ? {
995
+ authorization: `Bearer ${he}`,
996
+ ...ke
997
+ } : { ...ke };
782
998
  }
783
- class wo extends Error {
784
- constructor(t, r, i, l, s) {
785
- super(`Failed to ${r} ${i}. Got status ${t} with reason: ${l}`);
786
- W(this, "url");
787
- W(this, "method");
788
- W(this, "status");
789
- W(this, "reason");
790
- W(this, "error");
791
- this.error = s, this.method = r, this.status = t, this.url = i, this.reason = l;
999
+ class Io extends Error {
1000
+ constructor(i, d, n, r, s) {
1001
+ super(`Failed to ${d} ${n}. Got status ${i} with reason: ${r}`);
1002
+ K(this, "url");
1003
+ K(this, "method");
1004
+ K(this, "status");
1005
+ K(this, "reason");
1006
+ K(this, "error");
1007
+ this.error = s, this.method = d, this.status = i, this.url = n, this.reason = r;
792
1008
  }
793
1009
  }
794
- function Eo(e, o, t) {
795
- let r = e;
796
- Object.keys(t).filter((l) => t[l] === "path").map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
797
- r = r.replace(`{${l}}`, s.toString());
1010
+ function Eo(e, o, i) {
1011
+ let d = e;
1012
+ Object.keys(i).filter((r) => i[r] === "path").map((r) => ({ key: r, param: o[r] })).forEach(({ key: r, param: s }) => {
1013
+ d = d.replace(`{${r}}`, s.toString());
798
1014
  });
799
- const i = new URL(r, Ne);
800
- return Object.keys(t).filter((l) => t[l] === "query" && o[l]).map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
801
- Array.isArray(s) ? s.forEach((a) => {
802
- i.searchParams.append(l, a.toString());
803
- }) : i.searchParams.append(l, s.toString());
804
- }), i.toString();
1015
+ const n = new URL(d, De);
1016
+ return Object.keys(i).filter((r) => i[r] === "query" && o[r]).map((r) => ({ key: r, param: o[r] })).forEach(({ key: r, param: s }) => {
1017
+ Array.isArray(s) ? s.forEach((u) => {
1018
+ n.searchParams.append(r, u.toString());
1019
+ }) : n.searchParams.append(r, s.toString());
1020
+ }), n.toString();
805
1021
  }
806
- async function Io(e, o, t, r = void 0, i = {}) {
807
- const l = await fetch(e, {
1022
+ async function Co(e, o, i, d = void 0, n = {}) {
1023
+ const r = await fetch(e, {
808
1024
  method: o,
809
- body: r,
810
- headers: { ...i, ...yo() },
1025
+ body: d,
1026
+ headers: { ...n, ...wo() },
811
1027
  redirect: "follow"
812
1028
  });
813
- if (l.status === t)
814
- return l;
815
- let s = await l.text(), a;
1029
+ if (r.status === i)
1030
+ return r;
1031
+ let s = await r.text(), u;
816
1032
  try {
817
- const v = JSON.parse(s);
818
- v.reason && ({ reason: s } = v), v.error && ({ error: a } = v);
1033
+ const y = JSON.parse(s);
1034
+ y.reason && ({ reason: s } = y), y.error && ({ error: u } = y);
819
1035
  } catch {
820
1036
  }
821
- throw new wo(l.status, o, e, s, a);
1037
+ throw new Io(r.status, o, e, s, u);
822
1038
  }
823
- async function Co(e, o, t, r = void 0, i = {}) {
824
- return (await Io(e, o, t, r, i)).json();
1039
+ async function $o(e, o, i, d = void 0, n = {}) {
1040
+ return (await Co(e, o, i, d, n)).json();
825
1041
  }
826
- async function $o(e) {
827
- const o = "api/v1/project/{projectId}/modules", t = "get", i = Eo(o, e, {
1042
+ async function ko(e) {
1043
+ const o = "api/v1/project/{projectId}/modules", i = "get", n = Eo(o, e, {
828
1044
  projectId: "path",
829
1045
  limit: "query",
830
1046
  page: "query",
@@ -832,33 +1048,33 @@ async function $o(e) {
832
1048
  orderBy: "query",
833
1049
  name: "query"
834
1050
  });
835
- return Co(i, t, 200, void 0, void 0);
1051
+ return $o(n, i, 200, void 0, void 0);
836
1052
  }
837
- const N = {
1053
+ const O = {
838
1054
  OFF: 1,
839
1055
  ERROR: 2,
840
1056
  WARN: 4,
841
1057
  INFO: 8,
842
1058
  DEBUG: 16
843
- }, G = {
1059
+ }, j = {
844
1060
  ERROR: 0,
845
1061
  WARN: 0,
846
1062
  INFO: 0,
847
1063
  DEBUG: 0
848
1064
  };
849
- G.ERROR = N.ERROR | N.WARN | N.INFO | N.DEBUG;
850
- G.WARN = N.WARN | N.INFO | N.DEBUG;
851
- G.INFO = N.INFO | N.DEBUG;
852
- G.DEBUG = N.DEBUG;
853
- const K = {
1065
+ j.ERROR = O.ERROR | O.WARN | O.INFO | O.DEBUG;
1066
+ j.WARN = O.WARN | O.INFO | O.DEBUG;
1067
+ j.INFO = O.INFO | O.DEBUG;
1068
+ j.DEBUG = O.DEBUG;
1069
+ const Y = {
854
1070
  useTimestamp: !1,
855
- logLevel: N.INFO
856
- }, x = /* @__PURE__ */ new Map();
857
- x.set(N.ERROR, "error");
858
- x.set(N.WARN, "warn");
859
- x.set(N.INFO, "info");
860
- x.set(N.DEBUG, "log");
861
- class Oe {
1071
+ logLevel: O.INFO
1072
+ }, de = /* @__PURE__ */ new Map();
1073
+ de.set(O.ERROR, "error");
1074
+ de.set(O.WARN, "warn");
1075
+ de.set(O.INFO, "info");
1076
+ de.set(O.DEBUG, "log");
1077
+ class Be {
862
1078
  /**
863
1079
  * @param {string=} className
864
1080
  */
@@ -870,28 +1086,28 @@ class Oe {
870
1086
  * @param {string} msg The message to log.
871
1087
  * @param {...any} optArgs
872
1088
  */
873
- error(o, ...t) {
874
- K.logLevel & G.ERROR && this._log(String(o), N.ERROR, t);
1089
+ error(o, ...i) {
1090
+ Y.logLevel & j.ERROR && this._log(String(o), O.ERROR, i);
875
1091
  }
876
1092
  /**
877
1093
  * Logs a warning message
878
1094
  * @param {string} msg The message to log.
879
1095
  * @param {...any} optArgs
880
1096
  */
881
- warning(o, ...t) {
882
- K.logLevel & G.WARN && this._log(String(o), N.WARN, t);
1097
+ warning(o, ...i) {
1098
+ Y.logLevel & j.WARN && this._log(String(o), O.WARN, i);
883
1099
  }
884
1100
  /**
885
1101
  * Deprecate a function. deprecations are stored on the logger
886
1102
  * @param {string} functionName
887
1103
  * @param {string=} alternativeFunctionName
888
1104
  */
889
- deprecate(o, t) {
890
- const r = String(o), i = t ? String(t) : null;
891
- if (!this.deprecations.has(r)) {
892
- this.deprecations.set(r, i || null);
893
- let l = `${r} has been deprecated and will be removed`;
894
- i && (l = `${l}. ${i}`), this.warning(l);
1105
+ deprecate(o, i) {
1106
+ const d = String(o), n = i ? String(i) : null;
1107
+ if (!this.deprecations.has(d)) {
1108
+ this.deprecations.set(d, n || null);
1109
+ let r = `${d} has been deprecated and will be removed`;
1110
+ n && (r = `${r}. ${n}`), this.warning(r);
895
1111
  }
896
1112
  }
897
1113
  /**
@@ -899,24 +1115,24 @@ class Oe {
899
1115
  * @param {string} msg The message to log.
900
1116
  * @param {...any} optArgs
901
1117
  */
902
- info(o, ...t) {
903
- K.logLevel & G.INFO && this._log(String(o), N.INFO, t);
1118
+ info(o, ...i) {
1119
+ Y.logLevel & j.INFO && this._log(String(o), O.INFO, i);
904
1120
  }
905
1121
  /**
906
1122
  * Logs a debug message
907
1123
  * @param {string} msg The message to log.
908
1124
  * @param {...any} optArgs
909
1125
  */
910
- debug(o, ...t) {
911
- K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
1126
+ debug(o, ...i) {
1127
+ Y.logLevel & j.DEBUG && this._log(String(o), O.DEBUG, i);
912
1128
  }
913
1129
  /**
914
1130
  * Alias for debug
915
1131
  * @param {string} msg The message to log.
916
1132
  * @param {...any} optArgs
917
1133
  */
918
- log(o, ...t) {
919
- K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
1134
+ log(o, ...i) {
1135
+ Y.logLevel & j.DEBUG && this._log(String(o), O.DEBUG, i);
920
1136
  }
921
1137
  /**
922
1138
  * Logs a message
@@ -925,46 +1141,47 @@ class Oe {
925
1141
  * @param {Array} optArgs
926
1142
  * @private
927
1143
  */
928
- _log(o, t, r) {
929
- let i = o;
930
- this.className && (i = `[${this.className}] ${i}`), console[x.get(t)](i, ...r), t & N.ERROR && (console.group(), console.trace(), console.groupEnd());
1144
+ _log(o, i, d) {
1145
+ let n = o;
1146
+ this.className && (n = `[${this.className}] ${n}`), console[de.get(i)](n, ...d), i & O.ERROR && (console.group(), console.trace(), console.groupEnd());
931
1147
  }
932
1148
  }
933
- const ge = /* @__PURE__ */ new Map();
934
- let me;
1149
+ const Ve = /* @__PURE__ */ new Map();
1150
+ let ge;
935
1151
  function _o() {
936
- return me || (me = new Oe()), me;
1152
+ return ge || (ge = new Be()), ge;
937
1153
  }
938
- function ko(e) {
939
- const o = new Oe(e);
940
- return ge.set(e, o), o;
1154
+ function Uo(e) {
1155
+ const o = new Be(e);
1156
+ return Ve.set(e, o), o;
941
1157
  }
942
- function he(e) {
943
- return e ? ge.has(e) ? ge.get(e) : ko(e) : _o();
1158
+ function be(e) {
1159
+ return e ? Ve.has(e) ? Ve.get(e) : Uo(e) : _o();
944
1160
  }
945
- function Uo(e) {
1161
+ function Ao(e) {
946
1162
  try {
947
1163
  if (e.serverUrl) {
948
1164
  const o = new URL(
949
1165
  e.serverUrl,
950
1166
  window.location.href
951
1167
  ).toString();
952
- So(o);
953
- const t = e.token || localStorage.getItem("Meteor.loginToken");
954
- t && (Vo(t), he(j).info("Publisher connection successful"));
1168
+ yo(o);
1169
+ const i = e.token || localStorage.getItem("Meteor.loginToken");
1170
+ i && (So(i), be(L).info("Publisher connection successful"));
955
1171
  }
956
1172
  } catch (o) {
957
- he(j).error("Failed to connect to publisher", o);
1173
+ be(L).error("Failed to connect to publisher", o);
958
1174
  }
959
1175
  }
960
- function Ao(e, o) {
1176
+ function To(e, o) {
961
1177
  return new Date(e).toLocaleString(o);
962
1178
  }
963
1179
  function No() {
964
1180
  return [
965
1181
  {
966
1182
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.name",
967
- value: "name"
1183
+ value: "name",
1184
+ sortable: !0
968
1185
  },
969
1186
  {
970
1187
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.type",
@@ -973,7 +1190,8 @@ function No() {
973
1190
  },
974
1191
  {
975
1192
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.description",
976
- value: "description"
1193
+ value: "description",
1194
+ sortable: !0
977
1195
  },
978
1196
  {
979
1197
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.createdAt",
@@ -987,29 +1205,32 @@ function No() {
987
1205
  },
988
1206
  {
989
1207
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.createdBy",
990
- value: "createdBy"
1208
+ value: "createdBy",
1209
+ sortable: !0
991
1210
  },
992
1211
  {
993
1212
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.updatedBy",
994
- value: "updatedBy"
1213
+ value: "updatedBy",
1214
+ sortable: !0
995
1215
  }
996
1216
  ];
997
1217
  }
998
- const Oo = J({
1218
+ const Oo = oe({
999
1219
  name: "CloudModuleSelector",
1000
1220
  components: {
1001
- VcsDataTable: qe,
1002
- VcsFormButton: be,
1003
- VTooltip: Ye,
1004
- VIcon: ke,
1005
- VCard: ye,
1006
- VcsLabel: Me,
1007
- VcsTextField: ae,
1221
+ VcsDataTable: ze,
1222
+ VcsFormButton: ce,
1223
+ VTooltip: Ne,
1224
+ VIcon: Te,
1225
+ VCard: Ie,
1226
+ VcsLabel: ye,
1227
+ VcsTextField: me,
1008
1228
  VcsFormSection: Se,
1009
- VRow: Q,
1010
- VCol: X,
1011
- VForm: Ue,
1012
- VContainer: Z
1229
+ VRow: le,
1230
+ VCol: ie,
1231
+ VForm: Ee,
1232
+ VContainer: te,
1233
+ VcsTextArea: we
1013
1234
  },
1014
1235
  props: {
1015
1236
  modelValue: {
@@ -1018,86 +1239,86 @@ const Oo = J({
1018
1239
  }
1019
1240
  },
1020
1241
  setup(e, { emit: o }) {
1021
- const t = Ve("vcsApp"), r = t.plugins.getByKey(j), i = t.plugins.getByKey(
1242
+ const i = Ue("vcsApp"), d = i.plugins.getByKey(L), n = i.plugins.getByKey(
1022
1243
  "@vcmap/app-configurator"
1023
- );
1024
- Uo(i.config || r.config);
1025
- const l = k(!0), s = k([]), a = k(0), v = k(0), c = k([void 0]), C = No(), b = /* @__PURE__ */ new Map(), h = k(e.modelValue), R = H(() => h.value.id === ""), g = k(!1), y = () => {
1026
- var D, L;
1027
- g.value = !!((D = h.value) != null && D.title) && !!((L = h.value) != null && L.icon);
1028
- }, U = {
1244
+ ), { serverUrl: r, projectId: s, appId: u, token: y } = (n == null ? void 0 : n.config) || d.config, c = { serverUrl: r, projectId: s, appId: u, token: y };
1245
+ Ao(c);
1246
+ const h = A(!0), S = A([]), $ = A(0), B = A(0), V = A([void 0]), g = No(), N = /* @__PURE__ */ new Map(), p = A(e.modelValue), P = J(() => p.value.id === ""), U = A(!1), Z = () => {
1247
+ var R, z;
1248
+ U.value = !!((R = p.value) != null && R.title) && !!((z = p.value) != null && z.icon);
1249
+ }, Q = {
1029
1250
  standalone: "$vcsGlobeNature",
1030
1251
  extension: "$vcsShapes"
1031
1252
  };
1032
- function P(D) {
1033
- var $;
1034
- const { itemsPerPage: L, page: te, search: le, sortBy: ne, sortDesc: u } = D;
1035
- l.value = !0, ($ = i == null ? void 0 : i.config) != null && $.projectId && $o({
1036
- projectId: i.config.projectId,
1037
- limit: L,
1038
- page: te - 1,
1039
- name: le,
1040
- orderBy: ne,
1041
- sort: u != null && u[0] ? "desc" : "asc"
1042
- }).then((p) => {
1043
- s.value = p.items.map((M) => {
1044
- var T, E;
1045
- const A = {
1046
- name: M.name,
1047
- description: M.description,
1048
- createdAt: M.createdAt,
1049
- updatedAt: M.updatedAt,
1050
- createdBy: (i == null ? void 0 : i.getUserName(M.createdBy)) || M.createdBy,
1051
- updatedBy: (i == null ? void 0 : i.getUserName(M.updatedBy)) || M.updatedBy,
1052
- _id: M._id
1253
+ function X(R) {
1254
+ var T;
1255
+ const { itemsPerPage: z, page: m, search: I, sortBy: f } = R;
1256
+ h.value = !0, c.projectId ? ko({
1257
+ projectId: c.projectId,
1258
+ limit: z,
1259
+ page: m - 1,
1260
+ name: I,
1261
+ orderBy: f == null ? void 0 : f.map(({ key: k }) => k),
1262
+ sort: (T = f == null ? void 0 : f[0]) == null ? void 0 : T.order
1263
+ }).then((k) => {
1264
+ S.value = k.items.map((E) => {
1265
+ var D, F;
1266
+ const w = {
1267
+ name: E.name,
1268
+ description: E.description,
1269
+ createdAt: E.createdAt,
1270
+ updatedAt: E.updatedAt,
1271
+ createdBy: (n == null ? void 0 : n.getUserName(E.createdBy)) || E.createdBy,
1272
+ updatedBy: (n == null ? void 0 : n.getUserName(E.updatedBy)) || E.updatedBy,
1273
+ _id: E._id
1053
1274
  };
1054
- return (((T = M.maps) == null ? void 0 : T.length) ?? 0) > 0 && (((E = M.layers) == null ? void 0 : E.length) ?? 0) > 0 ? A.type = "standalone" : A.type = "extension", A.disabled = !!t.getModuleById(M._id), b.set(M._id, M), A;
1055
- }), a.value = p.totalCount, v.value = p.totalPages;
1056
- }).catch((p) => {
1057
- he("CloudModuleSelector.vue").error(
1275
+ return (((D = E.maps) == null ? void 0 : D.length) ?? 0) > 0 && (((F = E.layers) == null ? void 0 : F.length) ?? 0) > 0 ? w.type = "standalone" : w.type = "extension", w.disabled = !!i.getModuleById(E._id), N.set(E._id, E), w;
1276
+ }), $.value = k.totalCount, B.value = k.totalPages;
1277
+ }).catch((k) => {
1278
+ be("CloudModuleSelector.vue").error(
1058
1279
  "Failed to load project modules.",
1059
- p
1280
+ k
1060
1281
  );
1061
1282
  }).finally(() => {
1062
- l.value = !1;
1063
- });
1283
+ h.value = !1;
1284
+ }) : (S.value = [], h.value = !1);
1064
1285
  }
1065
1286
  return {
1066
- selectedItem: h,
1067
- isItemIdEmpty: R,
1068
- loading: l,
1069
- items: s,
1070
- totalItems: a,
1071
- totalPages: v,
1072
- headers: C,
1073
- selected: c,
1074
- typeIcon(D) {
1075
- return U[D];
1287
+ selectedItem: p,
1288
+ isItemIdEmpty: P,
1289
+ loading: h,
1290
+ items: S,
1291
+ totalItems: $,
1292
+ totalPages: B,
1293
+ headers: g,
1294
+ selected: V,
1295
+ typeIcon(R) {
1296
+ return Q[R];
1076
1297
  },
1077
- formatDate: Ao,
1078
- getItems: P,
1298
+ formatDate: To,
1299
+ getItems: X,
1079
1300
  close: () => {
1080
1301
  o("close");
1081
1302
  },
1082
1303
  addSelected: () => {
1083
- var D;
1084
- c.value.length > 0 && ((D = c.value[0]) == null ? void 0 : D._id) !== "" && (h.value.id = c.value[0]._id, h.value.title = c.value[0].name, h.value.icon = "", h.value.moduleUrl = `configs/${c.value[0]._id}.json`);
1304
+ var R;
1305
+ V.value.length > 0 && ((R = V.value[0]) == null ? void 0 : R._id) !== "" && (p.value.id = V.value[0]._id, p.value.title = V.value[0].name, p.value.icon = "", p.value.moduleUrl = `configs/${V.value[0]._id}.json`, p.value.description = V.value[0].description);
1085
1306
  },
1086
- isFValid: g,
1087
- validateForm: y,
1307
+ isFValid: U,
1308
+ validateForm: Z,
1088
1309
  removeSelected: () => {
1089
- h.value.id = "", h.value.title = "", h.value.icon = "", h.value.moduleUrl = "";
1310
+ p.value.id = "", p.value.title = "", p.value.icon = "", p.value.description = "", p.value.moduleUrl = "";
1090
1311
  },
1091
- requiredRule: (D) => !!D || "moduleSelector.configEditor.editorError"
1312
+ requiredRule: (R) => !!R || "moduleSelector.configEditor.editorError"
1092
1313
  };
1093
1314
  }
1094
- }), Bo = { class: "d-flex px-2" };
1095
- function To(e, o, t, r, i, l) {
1096
- const s = m("v-icon"), a = m("v-tooltip"), v = m("VcsDataTable"), c = m("VcsLabel"), C = m("v-col"), b = m("VcsTextField"), h = m("v-row"), R = m("v-container"), g = m("v-form"), y = m("VcsFormSection"), U = m("VcsFormButton"), P = m("v-card");
1097
- return I(), _(P, null, {
1098
- default: n(() => [
1099
- fe("div", null, [
1100
- e.isItemIdEmpty ? (I(), _(v, {
1315
+ }), Do = { class: "d-flex px-2 justify-end w-100" };
1316
+ function Bo(e, o, i, d, n, r) {
1317
+ const s = a("v-icon"), u = a("v-tooltip"), y = a("VcsDataTable"), c = a("VcsLabel"), h = a("v-col"), S = a("VcsTextField"), $ = a("v-row"), B = a("VcsTextArea"), V = a("v-container"), g = a("v-form"), N = a("VcsFormSection"), p = a("VcsFormButton"), P = a("v-card");
1318
+ return C(), _(P, null, {
1319
+ default: t(() => [
1320
+ H("div", null, [
1321
+ e.isItemIdEmpty ? (C(), _(y, {
1101
1322
  key: 0,
1102
1323
  "base-component": "VDataTableServer",
1103
1324
  loading: e.loading,
@@ -1111,17 +1332,17 @@ function To(e, o, t, r, i, l) {
1111
1332
  "show-select": "",
1112
1333
  "item-value": "_id",
1113
1334
  modelValue: e.selected,
1114
- "onUpdate:modelValue": o[0] || (o[0] = (O) => e.selected = O),
1335
+ "onUpdate:modelValue": o[0] || (o[0] = (U) => e.selected = U),
1115
1336
  "onUpdate:items": e.getItems
1116
1337
  }, {
1117
- "item.type": n(({ item: O }) => [
1118
- d(
1338
+ "item.type": t(({ item: U }) => [
1339
+ l(
1119
1340
  s,
1120
- We(He({ ...e.$attrs })),
1341
+ Qe(Xe({ ...e.$attrs })),
1121
1342
  {
1122
- default: n(() => [
1123
- V(
1124
- w(e.typeIcon(O.type)),
1343
+ default: t(() => [
1344
+ M(
1345
+ v(e.typeIcon(U.type)),
1125
1346
  1
1126
1347
  /* TEXT */
1127
1348
  )
@@ -1132,16 +1353,16 @@ function To(e, o, t, r, i, l) {
1132
1353
  1040
1133
1354
  /* FULL_PROPS, DYNAMIC_SLOTS */
1134
1355
  ),
1135
- d(
1136
- a,
1356
+ l(
1357
+ u,
1137
1358
  {
1138
1359
  activator: "parent",
1139
1360
  location: "right"
1140
1361
  },
1141
1362
  {
1142
- default: n(() => [
1143
- V(
1144
- w(e.$t(`appConfigurator.dialogs.vcsModuleTable.${O.type}`)),
1363
+ default: t(() => [
1364
+ M(
1365
+ v(e.$t(`appConfigurator.dialogs.vcsModuleTable.${U.type}`)),
1145
1366
  1
1146
1367
  /* TEXT */
1147
1368
  )
@@ -1153,46 +1374,46 @@ function To(e, o, t, r, i, l) {
1153
1374
  /* DYNAMIC_SLOTS */
1154
1375
  )
1155
1376
  ]),
1156
- "item.createdAt": n(({ item: O }) => [
1157
- V(
1158
- w(e.formatDate(O.createdAt, e.$i18n.locale)),
1377
+ "item.createdAt": t(({ item: U }) => [
1378
+ M(
1379
+ v(e.formatDate(U.createdAt, e.$i18n.locale)),
1159
1380
  1
1160
1381
  /* TEXT */
1161
1382
  )
1162
1383
  ]),
1163
- "item.updatedAt": n(({ item: O }) => [
1164
- V(
1165
- w(e.formatDate(O.updatedAt, e.$i18n.locale)),
1384
+ "item.updatedAt": t(({ item: U }) => [
1385
+ M(
1386
+ v(e.formatDate(U.updatedAt, e.$i18n.locale)),
1166
1387
  1
1167
1388
  /* TEXT */
1168
1389
  )
1169
1390
  ]),
1170
1391
  _: 1
1171
1392
  /* STABLE */
1172
- }, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "modelValue", "onUpdate:items"])) : (I(), _(y, { key: 1 }, {
1173
- default: n(() => [
1174
- d(g, {
1393
+ }, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "modelValue", "onUpdate:items"])) : (C(), _(N, { key: 1 }, {
1394
+ default: t(() => [
1395
+ l(g, {
1175
1396
  modelValue: e.isFValid,
1176
- "onUpdate:modelValue": o[3] || (o[3] = (O) => e.isFValid = O),
1397
+ "onUpdate:modelValue": o[4] || (o[4] = (U) => e.isFValid = U),
1177
1398
  ref: "form"
1178
1399
  }, {
1179
- default: n(() => [
1180
- d(R, { class: "px-2 pt-0 pb-2" }, {
1181
- default: n(() => [
1182
- d(h, {
1400
+ default: t(() => [
1401
+ l(V, { class: "px-2 pt-0 pb-2" }, {
1402
+ default: t(() => [
1403
+ l($, {
1183
1404
  "no-gutters": "",
1184
1405
  class: "px-2"
1185
1406
  }, {
1186
- default: n(() => [
1187
- d(C, { cols: "2" }, {
1188
- default: n(() => [
1189
- d(c, {
1407
+ default: t(() => [
1408
+ l(h, { cols: "2" }, {
1409
+ default: t(() => [
1410
+ l(c, {
1190
1411
  required: "",
1191
1412
  "html-for": "moduleName"
1192
1413
  }, {
1193
- default: n(() => [
1194
- V(
1195
- w(e.$st("moduleSelector.configEditor.moduleName")),
1414
+ default: t(() => [
1415
+ M(
1416
+ v(e.$st("moduleSelector.configEditor.moduleName")),
1196
1417
  1
1197
1418
  /* TEXT */
1198
1419
  )
@@ -1204,13 +1425,13 @@ function To(e, o, t, r, i, l) {
1204
1425
  _: 1
1205
1426
  /* STABLE */
1206
1427
  }),
1207
- d(C, { cols: "4" }, {
1208
- default: n(() => [
1209
- d(b, {
1428
+ l(h, { cols: "4" }, {
1429
+ default: t(() => [
1430
+ l(S, {
1210
1431
  id: "moduleName",
1211
1432
  placeholder: "Module Name",
1212
1433
  modelValue: e.selectedItem.title,
1213
- "onUpdate:modelValue": o[1] || (o[1] = (O) => e.selectedItem.title = O),
1434
+ "onUpdate:modelValue": o[1] || (o[1] = (U) => e.selectedItem.title = U),
1214
1435
  rules: [e.requiredRule]
1215
1436
  }, null, 8, ["modelValue", "rules"])
1216
1437
  ]),
@@ -1221,20 +1442,20 @@ function To(e, o, t, r, i, l) {
1221
1442
  _: 1
1222
1443
  /* STABLE */
1223
1444
  }),
1224
- d(h, {
1445
+ l($, {
1225
1446
  "no-gutters": "",
1226
1447
  class: "px-2"
1227
1448
  }, {
1228
- default: n(() => [
1229
- d(C, { cols: "2" }, {
1230
- default: n(() => [
1231
- d(c, {
1449
+ default: t(() => [
1450
+ l(h, { cols: "2" }, {
1451
+ default: t(() => [
1452
+ l(c, {
1232
1453
  required: "",
1233
1454
  "html-for": "moduleIcon"
1234
1455
  }, {
1235
- default: n(() => [
1236
- V(
1237
- w(e.$st("moduleSelector.configEditor.moduleIcon")),
1456
+ default: t(() => [
1457
+ M(
1458
+ v(e.$st("moduleSelector.configEditor.moduleIcon")),
1238
1459
  1
1239
1460
  /* TEXT */
1240
1461
  )
@@ -1246,13 +1467,13 @@ function To(e, o, t, r, i, l) {
1246
1467
  _: 1
1247
1468
  /* STABLE */
1248
1469
  }),
1249
- d(C, { cols: "4" }, {
1250
- default: n(() => [
1251
- d(b, {
1470
+ l(h, { cols: "4" }, {
1471
+ default: t(() => [
1472
+ l(S, {
1252
1473
  id: "moduleIcon",
1253
1474
  placeholder: "Icon Name",
1254
1475
  modelValue: e.selectedItem.icon,
1255
- "onUpdate:modelValue": o[2] || (o[2] = (O) => e.selectedItem.icon = O),
1476
+ "onUpdate:modelValue": o[2] || (o[2] = (U) => e.selectedItem.icon = U),
1256
1477
  rules: [e.requiredRule]
1257
1478
  }, null, 8, ["modelValue", "rules"])
1258
1479
  ]),
@@ -1262,6 +1483,43 @@ function To(e, o, t, r, i, l) {
1262
1483
  ]),
1263
1484
  _: 1
1264
1485
  /* STABLE */
1486
+ }),
1487
+ l($, {
1488
+ "no-gutters": "",
1489
+ class: "px-2"
1490
+ }, {
1491
+ default: t(() => [
1492
+ l(h, { cols: "2" }, {
1493
+ default: t(() => [
1494
+ l(c, { "html-for": "moduleDescription" }, {
1495
+ default: t(() => [
1496
+ M(
1497
+ v(e.$st("moduleSelector.configEditor.moduleDescription")),
1498
+ 1
1499
+ /* TEXT */
1500
+ )
1501
+ ]),
1502
+ _: 1
1503
+ /* STABLE */
1504
+ })
1505
+ ]),
1506
+ _: 1
1507
+ /* STABLE */
1508
+ }),
1509
+ l(h, { cols: "4" }, {
1510
+ default: t(() => [
1511
+ l(B, {
1512
+ id: "moduleDescription",
1513
+ modelValue: e.selectedItem.description,
1514
+ "onUpdate:modelValue": o[3] || (o[3] = (U) => e.selectedItem.description = U)
1515
+ }, null, 8, ["modelValue"])
1516
+ ]),
1517
+ _: 1
1518
+ /* STABLE */
1519
+ })
1520
+ ]),
1521
+ _: 1
1522
+ /* STABLE */
1265
1523
  })
1266
1524
  ]),
1267
1525
  _: 1
@@ -1275,8 +1533,8 @@ function To(e, o, t, r, i, l) {
1275
1533
  _: 1
1276
1534
  /* STABLE */
1277
1535
  })),
1278
- fe("div", Bo, [
1279
- e.isItemIdEmpty ? (I(), _(U, {
1536
+ H("div", Do, [
1537
+ e.isItemIdEmpty ? (C(), _(p, {
1280
1538
  key: 0,
1281
1539
  variant: "filled",
1282
1540
  disabled: e.selected[0] === void 0,
@@ -1285,28 +1543,28 @@ function To(e, o, t, r, i, l) {
1285
1543
  tooltip: "appConfigurator.dialogs.addTooltip",
1286
1544
  "tooltip-position": "bottom"
1287
1545
  }, {
1288
- default: n(() => [
1289
- V(
1290
- w(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
1546
+ default: t(() => [
1547
+ M(
1548
+ v(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
1291
1549
  1
1292
1550
  /* TEXT */
1293
1551
  )
1294
1552
  ]),
1295
1553
  _: 1
1296
1554
  /* STABLE */
1297
- }, 8, ["disabled", "onClick"])) : q("v-if", !0),
1298
- e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
1555
+ }, 8, ["disabled", "onClick"])) : G("v-if", !0),
1556
+ e.isItemIdEmpty ? G("v-if", !0) : (C(), _(p, {
1299
1557
  key: 1,
1300
1558
  disabled: !e.isFValid,
1301
1559
  variant: "filled",
1302
1560
  class: "ma-2",
1303
- onClick: o[4] || (o[4] = () => {
1561
+ onClick: o[5] || (o[5] = () => {
1304
1562
  e.$emit("submit", e.selectedItem);
1305
1563
  })
1306
1564
  }, {
1307
- default: n(() => [
1308
- V(
1309
- w(e.$t("components.apply")),
1565
+ default: t(() => [
1566
+ M(
1567
+ v(e.$t("components.apply")),
1310
1568
  1
1311
1569
  /* TEXT */
1312
1570
  )
@@ -1314,14 +1572,14 @@ function To(e, o, t, r, i, l) {
1314
1572
  _: 1
1315
1573
  /* STABLE */
1316
1574
  }, 8, ["disabled"])),
1317
- e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
1575
+ e.isItemIdEmpty ? G("v-if", !0) : (C(), _(p, {
1318
1576
  key: 2,
1319
1577
  onClick: e.removeSelected,
1320
1578
  class: "ma-2"
1321
1579
  }, {
1322
- default: n(() => [
1323
- V(
1324
- w(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
1580
+ default: t(() => [
1581
+ M(
1582
+ v(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
1325
1583
  1
1326
1584
  /* TEXT */
1327
1585
  )
@@ -1329,13 +1587,13 @@ function To(e, o, t, r, i, l) {
1329
1587
  _: 1
1330
1588
  /* STABLE */
1331
1589
  }, 8, ["onClick"])),
1332
- d(U, {
1590
+ l(p, {
1333
1591
  class: "ma-2",
1334
1592
  onClick: e.close
1335
1593
  }, {
1336
- default: n(() => [
1337
- V(
1338
- w(e.$t("components.cancel")),
1594
+ default: t(() => [
1595
+ M(
1596
+ v(e.$t("components.cancel")),
1339
1597
  1
1340
1598
  /* TEXT */
1341
1599
  )
@@ -1350,24 +1608,26 @@ function To(e, o, t, r, i, l) {
1350
1608
  /* STABLE */
1351
1609
  });
1352
1610
  }
1353
- const Fo = /* @__PURE__ */ Y(Oo, [["render", To]]), Ro = J({
1611
+ const Fo = /* @__PURE__ */ ne(Oo, [["render", Bo]]), Go = oe({
1354
1612
  name: "ModuleSelectorConfigEditor",
1355
1613
  components: {
1614
+ VForm: Ee,
1615
+ VcsFormButton: ce,
1356
1616
  VcsCheckbox: _e,
1357
- VDialog: xe,
1358
- VcsList: Pe,
1617
+ VDialog: to,
1618
+ VcsList: We,
1359
1619
  VcsFormSection: Se,
1360
- VRow: Q,
1361
- VcsLabel: Me,
1362
- AbstractConfigEditor: Ge,
1363
- VcsTextField: ae,
1364
- VCol: X,
1365
- VContainer: Z,
1366
- ModuleEditor: go,
1367
- VBreadcrumbs: eo,
1368
- VBreadcrumbsItem: oo,
1369
- WindowPositionSettings: Mo,
1370
- VcsModuleTable: Fo
1620
+ VRow: le,
1621
+ VSheet: Ae,
1622
+ VcsLabel: ye,
1623
+ AbstractConfigEditor: He,
1624
+ VcsTextField: me,
1625
+ VCol: ie,
1626
+ VContainer: te,
1627
+ ModuleEditor: Mo,
1628
+ WindowPositionSettings: bo,
1629
+ VcsModuleTable: Fo,
1630
+ VcsTextArea: we
1371
1631
  },
1372
1632
  props: {
1373
1633
  getConfig: {
@@ -1380,342 +1640,373 @@ const Fo = /* @__PURE__ */ Y(Oo, [["render", To]]), Ro = J({
1380
1640
  }
1381
1641
  },
1382
1642
  setup(e) {
1383
- var te, le, ne;
1384
- const o = Ve("vcsApp"), t = k(0), r = k(void 0), i = k([]), l = k(void 0), s = k({ id: "", title: "", icon: "", moduleUrl: "" }), a = k({ id: "", title: "", icon: "", moduleUrl: "" }), v = k(!1), c = k(!1), C = k(!1), b = k(void 0);
1385
- r.value = {
1386
- ...re(),
1643
+ var pe, R, z;
1644
+ const o = A(0), i = A(void 0), d = A([]), n = A(void 0), r = A({
1645
+ id: "",
1646
+ title: "",
1647
+ icon: "",
1648
+ moduleUrl: "",
1649
+ description: ""
1650
+ }), s = A({
1651
+ id: "",
1652
+ title: "",
1653
+ icon: "",
1654
+ moduleUrl: "",
1655
+ description: ""
1656
+ });
1657
+ let u = {
1658
+ title: "",
1659
+ icon: "",
1660
+ type: "group",
1661
+ description: "",
1662
+ cards: []
1663
+ };
1664
+ const y = A(!1), c = A(!1), h = A(!1), S = A(void 0);
1665
+ i.value = {
1666
+ ...ue(),
1387
1667
  ...e.getConfig()
1388
1668
  };
1389
- const h = k();
1390
- (te = r.value) != null && te.basisModule && (h.value = (le = r.value) == null ? void 0 : le.basisModule);
1391
- const R = H({
1669
+ const $ = A();
1670
+ (pe = i.value) != null && pe.basisModule && ($.value = (R = i.value) == null ? void 0 : R.basisModule);
1671
+ const B = J({
1392
1672
  get() {
1393
- return !!h.value;
1673
+ return !!$.value;
1394
1674
  },
1395
- set(u) {
1396
- var $;
1397
- u ? h.value = (($ = r.value) == null ? void 0 : $.basisModule) || { title: "" } : h.value = null;
1675
+ set(m) {
1676
+ var I;
1677
+ m ? $.value = ((I = i.value) == null ? void 0 : I.basisModule) || { title: "" } : $.value = null;
1678
+ }
1679
+ }), V = Ye([]);
1680
+ function g(m) {
1681
+ var I;
1682
+ if (m.type === "url") {
1683
+ const { actions: f, id: T, name: k, ...E } = m;
1684
+ return {
1685
+ ...E,
1686
+ moduleUrl: m.moduleUrl || ""
1687
+ };
1688
+ } else {
1689
+ const f = ((I = m.cards) == null ? void 0 : I.map((D) => {
1690
+ const { actions: F, id: q, name: W, ...Re } = D;
1691
+ return {
1692
+ ...Re
1693
+ };
1694
+ })) || [], { actions: T, id: k, name: E, ...w } = m;
1695
+ return {
1696
+ ...w,
1697
+ ...f.length ? { cards: f } : {}
1698
+ };
1398
1699
  }
1399
- }), g = Ke([]);
1400
- function y(u, $) {
1401
- var M, A, T;
1402
- const p = {
1403
- id: `${u.title || "undefined"}-${$}`,
1404
- name: u.title,
1405
- title: u.title,
1406
- icon: u.icon,
1407
- type: u.type,
1700
+ }
1701
+ function N(m) {
1702
+ return m.map(g);
1703
+ }
1704
+ function p(m, I) {
1705
+ var T, k, E;
1706
+ const f = {
1707
+ id: `${m.title || "undefined"}-${I}`,
1708
+ name: m.title,
1709
+ title: m.title,
1710
+ icon: m.icon,
1711
+ type: m.type,
1712
+ description: m.description,
1408
1713
  actions: []
1409
1714
  };
1410
- return u.type === "url" && (p.moduleUrl = u.moduleUrl, (M = p.actions) == null || M.push({
1715
+ return m.type === "url" && (f.moduleUrl = m.moduleUrl, (T = f.actions) == null || T.push({
1411
1716
  name: "edit",
1412
1717
  title: "moduleSelector.configEditor.TooltipEditModule",
1413
1718
  icon: "$vcsEdit",
1414
1719
  callback() {
1415
- if (l.value === void 0 && i.value.length > 0) {
1416
- const E = i.value.find(
1417
- (F) => F.id === p.id
1720
+ if (n.value === void 0 && d.value.length > 0) {
1721
+ const w = d.value.find(
1722
+ (D) => D.id === f.id
1418
1723
  );
1419
- E && (s.value = {
1420
- id: E.id,
1421
- title: E.title,
1422
- icon: E.icon,
1423
- moduleUrl: E.moduleUrl
1724
+ w && (r.value = {
1725
+ id: w.id,
1726
+ title: w.title,
1727
+ icon: w.icon,
1728
+ moduleUrl: w.moduleUrl,
1729
+ description: w.description
1424
1730
  });
1425
1731
  } else {
1426
- const E = l.value.cards.find(
1427
- (F) => F.id === p.id
1732
+ const w = n.value.cards.find(
1733
+ (D) => D.id === f.id
1428
1734
  );
1429
- E && (s.value = {
1430
- id: E.id,
1431
- title: E.title,
1432
- icon: E.icon,
1433
- moduleUrl: E.moduleUrl
1735
+ w && (r.value = {
1736
+ id: w.id,
1737
+ title: w.title,
1738
+ icon: w.icon,
1739
+ moduleUrl: w.moduleUrl,
1740
+ description: w.description
1434
1741
  });
1435
1742
  }
1436
1743
  c.value = !0;
1437
1744
  }
1438
- })), u.type === "group" && ((A = p.actions) == null || A.push({
1745
+ })), m.type === "group" && ((k = f.actions) == null || k.push({
1439
1746
  name: "editGroup",
1440
1747
  title: "moduleSelector.configEditor.TooltipEditGroup",
1441
1748
  icon: "mdi-playlist-edit",
1442
1749
  callback() {
1443
- if (i.value.length > 0) {
1444
- const E = i.value.find(
1445
- (F) => F.id === p.id
1750
+ if (d.value.length > 0) {
1751
+ const w = d.value.find(
1752
+ (D) => D.id === f.id
1446
1753
  );
1447
- E && (l.value = E, g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule"));
1754
+ if (w) {
1755
+ n.value = w, h.value = !0;
1756
+ const [D] = N([
1757
+ n.value
1758
+ ]);
1759
+ D.cards.length === 0 && (D.cards = []), u = structuredClone(D), V.splice(2, 1), V.length > 1 && (V[1].icon = "$vcsPlus", V[1].title = "moduleSelector.configEditor.TooltipAddModule");
1760
+ }
1448
1761
  }
1449
1762
  }
1450
- }), u.cards && (p.cards = u.cards.map(y))), (T = p.actions) == null || T.push({
1763
+ }), m.cards && (f.cards = m.cards.map(p))), (E = f.actions) == null || E.push({
1451
1764
  name: "linkButton.editor.remove",
1452
1765
  title: "moduleSelector.configEditor.TooltipDeleteMG",
1453
1766
  icon: "$vcsTrashCan",
1454
1767
  callback() {
1455
- var E, F, S;
1456
- l.value ? l.value.cards = (F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.filter(
1457
- (B) => B.id !== p.id
1458
- ) : i.value = (S = i.value) == null ? void 0 : S.filter(
1459
- (B) => B.id !== p.id
1768
+ var w, D, F;
1769
+ n.value ? n.value.cards = (D = (w = n.value) == null ? void 0 : w.cards) == null ? void 0 : D.filter(
1770
+ (q) => q.id !== f.id
1771
+ ) : d.value = (F = d.value) == null ? void 0 : F.filter(
1772
+ (q) => q.id !== f.id
1460
1773
  );
1461
1774
  }
1462
- }), p;
1775
+ }), f;
1463
1776
  }
1464
- g.push({
1777
+ V.push({
1465
1778
  name: "moduleSelector.configEditor.addFromCloud",
1779
+ title: "moduleSelector.configEditor.TooltipAddCloudModule",
1466
1780
  icon: "$vcsImport",
1467
1781
  callback() {
1468
- a.value = {
1782
+ s.value = {
1469
1783
  id: "",
1470
1784
  title: "",
1471
1785
  icon: "",
1472
- moduleUrl: ""
1473
- }, v.value = !0;
1786
+ moduleUrl: "",
1787
+ description: ""
1788
+ }, y.value = !0;
1474
1789
  }
1475
1790
  });
1476
- function U(u) {
1477
- var $;
1478
- if (u.type === "url") {
1479
- const { actions: p, id: M, name: A, ...T } = u;
1480
- return {
1481
- ...T,
1482
- moduleUrl: u.moduleUrl || ""
1483
- };
1484
- } else {
1485
- const p = (($ = u.cards) == null ? void 0 : $.map((F) => {
1486
- const { actions: S, id: B, name: z, ...Be } = F;
1487
- return {
1488
- ...Be
1489
- };
1490
- })) || [], { actions: M, id: A, name: T, ...E } = u;
1491
- return {
1492
- ...E,
1493
- ...p.length ? { cards: p } : {}
1494
- };
1495
- }
1496
- }
1497
1791
  const P = {
1498
1792
  name: "moduleSelector.configEditor.addGroup",
1499
1793
  callback() {
1500
- var p;
1501
- const u = {
1794
+ var f;
1795
+ const m = {
1502
1796
  type: "group",
1503
1797
  title: "",
1504
1798
  icon: "",
1799
+ description: "",
1505
1800
  cards: []
1506
1801
  };
1507
- C.value = !0;
1508
- const $ = (p = i.value) == null ? void 0 : p.push(
1509
- y(
1510
- u,
1511
- i.value.length
1802
+ h.value = !0;
1803
+ const I = (f = d.value) == null ? void 0 : f.push(
1804
+ p(
1805
+ m,
1806
+ d.value.length
1512
1807
  )
1513
1808
  );
1514
- l.value = i.value[$ - 1], g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule");
1809
+ n.value = d.value[I - 1], h.value = !0, V.splice(2, 1), V.length > 1 && (V[1].icon = "$vcsPlus", V[1].title = "moduleSelector.configEditor.TooltipAddModule");
1515
1810
  }
1516
1811
  };
1517
- function O(u) {
1518
- return u.map(U);
1519
- }
1520
- (ne = r.value) != null && ne.modules && (i.value = r.value.modules.map(y)), g.push(
1812
+ (z = i.value) != null && z.modules && (d.value = i.value.modules.map(p)), V.push(
1521
1813
  {
1522
1814
  name: "moduleSelector.configEditor.add",
1523
1815
  callback() {
1524
- s.value = {
1816
+ r.value = {
1525
1817
  id: "",
1526
1818
  title: "",
1527
1819
  icon: "",
1528
- moduleUrl: ""
1820
+ moduleUrl: "",
1821
+ description: ""
1529
1822
  }, c.value = !0;
1530
1823
  }
1531
1824
  },
1532
1825
  P
1533
- ), Ee(r, (u) => {
1534
- u != null && u.modules ? b.value = u.modules.map(
1535
- ($, p) => y($, p)
1536
- ) : b.value = [];
1826
+ ), xe(i, (m) => {
1827
+ m != null && m.modules ? S.value = m.modules.map(
1828
+ (I, f) => p(I, f)
1829
+ ) : S.value = [];
1537
1830
  });
1538
- const ee = () => {
1539
- var M;
1540
- const u = ue((M = r.value) == null ? void 0 : M.position), $ = Object.values(u).some(
1541
- (A) => A !== void 0
1542
- ), p = {
1543
- ...ue(r.value),
1544
- modules: O(i.value),
1545
- basisModule: ue(h.value)
1831
+ const U = () => {
1832
+ var T;
1833
+ const m = fe((T = i.value) == null ? void 0 : T.position), I = Object.values(m).some(
1834
+ (k) => k !== void 0
1835
+ ), f = {
1836
+ ...fe(i.value),
1837
+ modules: N(d.value),
1838
+ basisModule: fe($.value)
1546
1839
  };
1547
- $ ? p.position = u : delete p.position, e.setConfig(p);
1548
- }, oe = () => {
1549
- var u, $, p, M, A, T, E, F;
1550
- if (l.value === void 0) {
1551
- if (s.value)
1552
- if (((u = s.value) == null ? void 0 : u.id) !== "") {
1553
- const S = i.value.find(
1554
- (B) => {
1555
- var z;
1556
- return B.id === ((z = s.value) == null ? void 0 : z.id);
1840
+ I ? f.position = m : delete f.position, e.setConfig(f);
1841
+ }, Z = () => {
1842
+ var m, I, f, T, k, E, w, D;
1843
+ if (n.value === void 0) {
1844
+ if (r.value)
1845
+ if (((m = r.value) == null ? void 0 : m.id) !== "") {
1846
+ const F = d.value.find(
1847
+ (q) => {
1848
+ var W;
1849
+ return q.id === ((W = r.value) == null ? void 0 : W.id);
1557
1850
  }
1558
1851
  );
1559
- S && Object.assign(S, {
1560
- ...s.value
1852
+ F && Object.assign(F, {
1853
+ ...r.value
1561
1854
  });
1562
1855
  } else
1563
- i.value.push(
1564
- y(
1856
+ d.value.push(
1857
+ p(
1565
1858
  {
1566
- ...s.value,
1859
+ ...r.value,
1567
1860
  type: "url"
1568
1861
  },
1569
- i.value.length
1862
+ d.value.length
1570
1863
  )
1571
1864
  );
1572
- } else if (s.value && (($ = s.value) == null ? void 0 : $.id) !== "") {
1573
- const S = l.value.cards.find(
1574
- (z) => z.id === s.value.id
1865
+ } else if (r.value && ((I = r.value) == null ? void 0 : I.id) !== "") {
1866
+ const F = n.value.cards.find(
1867
+ (W) => W.id === r.value.id
1575
1868
  );
1576
- S && Object.assign(S, {
1577
- ...s.value
1869
+ F && Object.assign(F, {
1870
+ ...r.value
1578
1871
  });
1579
- let B;
1580
- (p = l.value) != null && p.id || ((M = l.value) == null ? void 0 : M.id) !== "" ? B = l.value.id : B = `${l.value.title}-${i.value.length - 1}`, l.value = i.value.find(
1581
- (z) => z.id === B
1872
+ let q;
1873
+ (f = n.value) != null && f.id || ((T = n.value) == null ? void 0 : T.id) !== "" ? q = n.value.id : q = `${n.value.title}-${d.value.length - 1}`, n.value = d.value.find(
1874
+ (W) => W.id === q
1582
1875
  );
1583
1876
  } else {
1584
- l.value.cards.push(
1585
- y(
1877
+ n.value.cards.push(
1878
+ p(
1586
1879
  {
1587
- ...s.value,
1880
+ ...r.value,
1588
1881
  type: "url"
1589
1882
  },
1590
- l.value.cards.length
1883
+ n.value.cards.length
1591
1884
  )
1592
1885
  );
1593
- let S;
1594
- (A = l.value) != null && A.id || ((T = l.value) == null ? void 0 : T.id) !== "" ? S = l.value.id : S = `${(E = l.value) == null ? void 0 : E.title}-${i.value.length - 1}`, l.value = (F = i.value) == null ? void 0 : F.find(
1595
- (B) => B.id === S
1886
+ let F;
1887
+ (k = n.value) != null && k.id || ((E = n.value) == null ? void 0 : E.id) !== "" ? F = n.value.id : F = `${(w = n.value) == null ? void 0 : w.title}-${d.value.length - 1}`, n.value = (D = d.value) == null ? void 0 : D.find(
1888
+ (q) => q.id === F
1596
1889
  );
1597
1890
  }
1598
- s.value = {
1891
+ r.value = {
1599
1892
  id: "",
1600
1893
  title: "",
1601
1894
  icon: "",
1602
- moduleUrl: ""
1895
+ moduleUrl: "",
1896
+ description: ""
1603
1897
  }, c.value = !1;
1604
- }, f = () => {
1605
- var u, $, p, M;
1606
- if (l.value === void 0)
1607
- a.value && i.value.push(
1608
- y(
1898
+ }, Q = () => {
1899
+ var m, I, f, T;
1900
+ if (n.value === void 0)
1901
+ s.value && d.value.push(
1902
+ p(
1609
1903
  {
1610
- title: a.value.title,
1611
- icon: a.value.icon,
1612
- moduleUrl: a.value.moduleUrl,
1613
- type: "url"
1904
+ title: s.value.title,
1905
+ icon: s.value.icon,
1906
+ moduleUrl: s.value.moduleUrl,
1907
+ type: "url",
1908
+ description: s.value.description
1614
1909
  },
1615
- i.value.length
1910
+ d.value.length
1616
1911
  )
1617
1912
  );
1618
1913
  else {
1619
- l.value.cards.push(
1620
- y(
1914
+ n.value.cards.push(
1915
+ p(
1621
1916
  {
1622
- ...a.value,
1917
+ ...s.value,
1623
1918
  type: "url"
1624
1919
  },
1625
- l.value.cards.length
1920
+ n.value.cards.length
1626
1921
  )
1627
1922
  );
1628
- let A;
1629
- (u = l.value) != null && u.id || (($ = l.value) == null ? void 0 : $.id) !== "" ? A = l.value.id : A = `${(p = l.value) == null ? void 0 : p.title}-${i.value.length - 1}`, l.value = (M = i.value) == null ? void 0 : M.find(
1630
- (T) => T.id === A
1923
+ let k;
1924
+ (m = n.value) != null && m.id || ((I = n.value) == null ? void 0 : I.id) !== "" ? k = n.value.id : k = `${(f = n.value) == null ? void 0 : f.title}-${d.value.length - 1}`, n.value = (T = d.value) == null ? void 0 : T.find(
1925
+ (E) => E.id === k
1631
1926
  );
1632
1927
  }
1633
- a.value = {
1928
+ s.value = {
1634
1929
  id: "",
1635
1930
  title: "",
1636
1931
  icon: "",
1637
- moduleUrl: ""
1638
- }, v.value = !1;
1639
- }, D = () => {
1640
- l.value = void 0, g.length > 1 && (delete g[1].icon, delete g[1].title), g.push(P);
1641
- }, L = k([
1642
- {
1643
- title: o.vueI18n.t(
1644
- "moduleSelector.configEditor.breadcrumbs.overview"
1645
- ),
1646
- disabled: !1,
1647
- href: "#"
1932
+ moduleUrl: "",
1933
+ description: ""
1934
+ }, y.value = !1;
1935
+ }, X = () => {
1936
+ h.value = !1, n.value = void 0, V.length > 1 && (delete V[1].icon, delete V[1].title), V.push(P);
1937
+ }, b = (m) => m && m.trim() !== "" ? !0 : "moduleSelector.configEditor.error";
1938
+ return {
1939
+ isFormValid: A(),
1940
+ editingItem: r,
1941
+ selectedGroupItem: u,
1942
+ groupItemDialogVisible: h,
1943
+ cancelCurrentGroup: () => {
1944
+ const m = d.value.findIndex(
1945
+ (I) => I.id === n.value.id
1946
+ );
1947
+ if (u.title !== "") {
1948
+ const I = p(u, m);
1949
+ d.value.splice(m, 1, I);
1950
+ } else
1951
+ d.value.splice(m, 1);
1952
+ h.value = !1, n.value = void 0, V.length > 1 && (delete V[1].icon, delete V[1].title), V.push(P);
1648
1953
  },
1649
- {
1650
- title: o.vueI18n.t("moduleSelector.configEditor.breadcrumbs.group"),
1651
- disabled: !0,
1652
- href: "#"
1653
- }
1654
- ]);
1655
- return Ee(l, (u) => {
1656
- u && u.title && (L.value[1].title = `${o.vueI18n.t("moduleSelector.configEditor.breadcrumbs.group")}: ${u.title}`, u.name = u.title);
1657
- }), {
1658
- editingItem: s,
1659
- selectCloudItem: a,
1954
+ selectCloudItem: s,
1660
1955
  editingItemDialogVisible: c,
1661
- selectCloudItemDialogVisible: v,
1662
- localConfig: r,
1663
- listItemArray: i,
1664
- breadcrumbItems: L,
1665
- currentGroup: l,
1666
- apply: ee,
1667
- returnLevel: D,
1668
- updateItem: oe,
1669
- updateCloudItem: f,
1670
- level: t,
1671
- listItems: b,
1672
- basisModule: h,
1673
- basisModuleExists: R,
1674
- headerActions: g,
1675
- move({
1676
- item: u,
1677
- targetIndex: $
1956
+ selectCloudItemDialogVisible: y,
1957
+ localConfig: i,
1958
+ listItemArray: d,
1959
+ currentGroup: n,
1960
+ apply: U,
1961
+ returnLevel: X,
1962
+ updateItem: Z,
1963
+ updateCloudItem: Q,
1964
+ level: o,
1965
+ listItems: S,
1966
+ basisModule: $,
1967
+ basisModuleExists: B,
1968
+ headerActions: V,
1969
+ isRequired: b,
1970
+ moveItem({
1971
+ item: m,
1972
+ targetIndex: I
1678
1973
  }) {
1679
- var p, M, A, T, E, F;
1680
- if (i.value && l.value === void 0) {
1681
- let S = $;
1682
- S = S >= 0 ? S : 0, S = S < ((p = i.value) == null ? void 0 : p.length) ? S : i.value.length - 1;
1683
- const B = (M = i.value) == null ? void 0 : M.indexOf(u);
1684
- B !== S && ((A = i.value) == null || A.splice(B, 1), (T = i.value) == null || T.splice(S, 0, u));
1685
- } else if ((((F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.length) ?? 0) > 1) {
1686
- let S = $;
1687
- S = S >= 0 ? S : 0, S = S < l.value.cards.length ? S : l.value.cards.length - 1;
1688
- const B = l.value.cards.indexOf(u);
1689
- B && B !== S && (l.value.cards.splice(B, 1), l.value.cards.splice(S, 0, u));
1690
- }
1974
+ var T, k, E;
1975
+ const f = (T = d.value) == null ? void 0 : T.indexOf(m);
1976
+ f !== I && ((k = d.value) == null || k.splice(f, 1), (E = d.value) == null || E.splice(I, 0, m));
1977
+ },
1978
+ moveCard({
1979
+ item: m,
1980
+ targetIndex: I
1981
+ }) {
1982
+ var T, k, E, w;
1983
+ const f = n.value.cards.indexOf(m);
1984
+ f !== I && ((k = (T = n.value) == null ? void 0 : T.cards) == null || k.splice(f, 1), (w = (E = n.value) == null ? void 0 : E.cards) == null || w.splice(I, 0, m));
1691
1985
  }
1692
1986
  };
1693
1987
  }
1694
- });
1695
- function Do(e, o, t, r, i, l) {
1696
- const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("VcsCheckbox"), b = m("v-container"), h = m("VcsFormSection"), R = m("v-breadcrumbs-item"), g = m("v-breadcrumbs"), y = m("VcsList"), U = m("ModuleEditor"), P = m("v-dialog"), O = m("VcsModuleTable"), ee = m("WindowPositionSettings"), oe = m("AbstractConfigEditor");
1697
- return e.localConfig ? (I(), _(oe, Je({
1988
+ }), Ro = { class: "d-flex px-2 justify-end w-100" };
1989
+ function qo(e, o, i, d, n, r) {
1990
+ const s = a("VcsLabel"), u = a("v-col"), y = a("VcsTextField"), c = a("v-row"), h = a("VcsCheckbox"), S = a("v-container"), $ = a("VcsFormSection"), B = a("VcsTextArea"), V = a("v-form"), g = a("VcsList"), N = a("VcsFormButton"), p = a("v-sheet"), P = a("v-dialog"), U = a("ModuleEditor"), Z = a("VcsModuleTable"), Q = a("WindowPositionSettings"), X = a("AbstractConfigEditor");
1991
+ return e.localConfig ? (C(), _(X, se({
1698
1992
  key: 0,
1699
1993
  onSubmit: e.apply
1700
1994
  }, { ...e.$attrs, ...e.$props }), {
1701
- default: n(() => [
1702
- e.currentGroup === void 0 ? (I(), _(b, {
1703
- key: 0,
1704
- class: "py-0 px-0"
1705
- }, {
1706
- default: n(() => [
1707
- d(h, { heading: "moduleSelector.configEditor.general" }, {
1708
- default: n(() => [
1709
- d(b, { class: "py-0 px-1" }, {
1710
- default: n(() => [
1711
- d(c, { "no-gutters": "" }, {
1712
- default: n(() => [
1713
- d(a, { cols: "6" }, {
1714
- default: n(() => [
1715
- d(s, { "html-for": "moduleselector-window-title" }, {
1716
- default: n(() => [
1717
- V(
1718
- w(e.$st("moduleSelector.configEditor.windowTitle")),
1995
+ default: t(() => [
1996
+ l(S, { class: "py-0 px-0" }, {
1997
+ default: t(() => [
1998
+ l($, { heading: "moduleSelector.configEditor.general" }, {
1999
+ default: t(() => [
2000
+ l(S, { class: "py-0 px-1" }, {
2001
+ default: t(() => [
2002
+ l(c, { "no-gutters": "" }, {
2003
+ default: t(() => [
2004
+ l(u, { cols: "6" }, {
2005
+ default: t(() => [
2006
+ l(s, { "html-for": "moduleselector-window-title" }, {
2007
+ default: t(() => [
2008
+ M(
2009
+ v(e.$st("moduleSelector.configEditor.windowTitle")),
1719
2010
  1
1720
2011
  /* TEXT */
1721
2012
  )
@@ -1727,13 +2018,13 @@ function Do(e, o, t, r, i, l) {
1727
2018
  _: 1
1728
2019
  /* STABLE */
1729
2020
  }),
1730
- d(a, null, {
1731
- default: n(() => [
1732
- d(v, {
2021
+ l(u, null, {
2022
+ default: t(() => [
2023
+ l(y, {
1733
2024
  id: "moduleselector-window-title",
1734
2025
  placeholder: e.$st("moduleSelector.title"),
1735
2026
  modelValue: e.localConfig.windowTitle,
1736
- "onUpdate:modelValue": o[0] || (o[0] = (f) => e.localConfig.windowTitle = f)
2027
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => e.localConfig.windowTitle = b)
1737
2028
  }, null, 8, ["placeholder", "modelValue"])
1738
2029
  ]),
1739
2030
  _: 1
@@ -1743,13 +2034,13 @@ function Do(e, o, t, r, i, l) {
1743
2034
  _: 1
1744
2035
  /* STABLE */
1745
2036
  }),
1746
- d(c, { "no-gutters": "" }, {
1747
- default: n(() => [
1748
- d(a, null, {
1749
- default: n(() => [
1750
- d(C, {
2037
+ l(c, { "no-gutters": "" }, {
2038
+ default: t(() => [
2039
+ l(u, null, {
2040
+ default: t(() => [
2041
+ l(h, {
1751
2042
  modelValue: e.localConfig.isActiveOnStart,
1752
- "onUpdate:modelValue": o[1] || (o[1] = (f) => e.localConfig.isActiveOnStart = f),
2043
+ "onUpdate:modelValue": o[1] || (o[1] = (b) => e.localConfig.isActiveOnStart = b),
1753
2044
  label: "moduleSelector.configEditor.isActiveOnStart"
1754
2045
  }, null, 8, ["modelValue"])
1755
2046
  ]),
@@ -1760,13 +2051,13 @@ function Do(e, o, t, r, i, l) {
1760
2051
  _: 1
1761
2052
  /* STABLE */
1762
2053
  }),
1763
- d(c, { "no-gutters": "" }, {
1764
- default: n(() => [
1765
- d(a, null, {
1766
- default: n(() => [
1767
- d(C, {
2054
+ l(c, { "no-gutters": "" }, {
2055
+ default: t(() => [
2056
+ l(u, null, {
2057
+ default: t(() => [
2058
+ l(h, {
1768
2059
  modelValue: e.localConfig.requireModuleSelection,
1769
- "onUpdate:modelValue": o[2] || (o[2] = (f) => e.localConfig.requireModuleSelection = f),
2060
+ "onUpdate:modelValue": o[2] || (o[2] = (b) => e.localConfig.requireModuleSelection = b),
1770
2061
  label: "moduleSelector.configEditor.requireModuleSelection"
1771
2062
  }, null, 8, ["modelValue"])
1772
2063
  ]),
@@ -1785,18 +2076,18 @@ function Do(e, o, t, r, i, l) {
1785
2076
  _: 1
1786
2077
  /* STABLE */
1787
2078
  }),
1788
- d(h, { heading: "moduleSelector.configEditor.baseModule" }, {
1789
- default: n(() => [
1790
- d(b, { class: "py-0 px-1" }, {
1791
- default: n(() => [
1792
- d(c, { "no-gutters": "" }, {
1793
- default: n(() => [
1794
- d(a, null, {
1795
- default: n(() => [
1796
- d(C, {
2079
+ l($, { heading: "moduleSelector.configEditor.baseModule" }, {
2080
+ default: t(() => [
2081
+ l(S, { class: "py-0 px-1" }, {
2082
+ default: t(() => [
2083
+ l(c, { "no-gutters": "" }, {
2084
+ default: t(() => [
2085
+ l(u, null, {
2086
+ default: t(() => [
2087
+ l(h, {
1797
2088
  id: "BaseModuleCheckbox",
1798
2089
  modelValue: e.basisModuleExists,
1799
- "onUpdate:modelValue": o[3] || (o[3] = (f) => e.basisModuleExists = f),
2090
+ "onUpdate:modelValue": o[3] || (o[3] = (b) => e.basisModuleExists = b),
1800
2091
  label: "moduleSelector.configEditor.baseModuleCheckbox"
1801
2092
  }, null, 8, ["modelValue"])
1802
2093
  ]),
@@ -1807,20 +2098,20 @@ function Do(e, o, t, r, i, l) {
1807
2098
  _: 1
1808
2099
  /* STABLE */
1809
2100
  }),
1810
- e.basisModuleExists ? (I(), _(c, {
2101
+ e.basisModuleExists ? (C(), _(c, {
1811
2102
  key: 0,
1812
2103
  "no-gutters": ""
1813
2104
  }, {
1814
- default: n(() => [
1815
- d(a, { cols: "6" }, {
1816
- default: n(() => [
1817
- d(s, {
2105
+ default: t(() => [
2106
+ l(u, { cols: "6" }, {
2107
+ default: t(() => [
2108
+ l(s, {
1818
2109
  required: "",
1819
2110
  "html-for": "basisModuleName"
1820
2111
  }, {
1821
- default: n(() => [
1822
- V(
1823
- w(e.$st("moduleSelector.configEditor.title")),
2112
+ default: t(() => [
2113
+ M(
2114
+ v(e.$st("moduleSelector.configEditor.title")),
1824
2115
  1
1825
2116
  /* TEXT */
1826
2117
  )
@@ -1832,16 +2123,16 @@ function Do(e, o, t, r, i, l) {
1832
2123
  _: 1
1833
2124
  /* STABLE */
1834
2125
  }),
1835
- d(a, null, {
1836
- default: n(() => [
1837
- d(v, {
2126
+ l(u, null, {
2127
+ default: t(() => [
2128
+ l(y, {
1838
2129
  id: "basisModuleName",
1839
2130
  placeholder: "Base Module",
1840
2131
  rules: [
1841
2132
  e.basisModuleExists && (!e.basisModule.title || e.basisModule.title === "") ? () => "moduleSelector.configEditor.error" : () => !0
1842
2133
  ],
1843
2134
  modelValue: e.basisModule.title,
1844
- "onUpdate:modelValue": o[4] || (o[4] = (f) => e.basisModule.title = f)
2135
+ "onUpdate:modelValue": o[4] || (o[4] = (b) => e.basisModule.title = b)
1845
2136
  }, null, 8, ["rules", "modelValue"])
1846
2137
  ]),
1847
2138
  _: 1
@@ -1850,21 +2141,21 @@ function Do(e, o, t, r, i, l) {
1850
2141
  ]),
1851
2142
  _: 1
1852
2143
  /* STABLE */
1853
- })) : q("v-if", !0),
1854
- e.basisModuleExists ? (I(), _(c, {
2144
+ })) : G("v-if", !0),
2145
+ e.basisModuleExists ? (C(), _(c, {
1855
2146
  key: 1,
1856
2147
  "no-gutters": ""
1857
2148
  }, {
1858
- default: n(() => [
1859
- d(a, { cols: "6" }, {
1860
- default: n(() => [
1861
- d(s, {
2149
+ default: t(() => [
2150
+ l(u, { cols: "6" }, {
2151
+ default: t(() => [
2152
+ l(s, {
1862
2153
  required: "",
1863
2154
  "html-for": "basisModuleIcon"
1864
2155
  }, {
1865
- default: n(() => [
1866
- V(
1867
- w(e.$st("components.style.icon")),
2156
+ default: t(() => [
2157
+ M(
2158
+ v(e.$st("components.style.icon")),
1868
2159
  1
1869
2160
  /* TEXT */
1870
2161
  )
@@ -1876,16 +2167,16 @@ function Do(e, o, t, r, i, l) {
1876
2167
  _: 1
1877
2168
  /* STABLE */
1878
2169
  }),
1879
- d(a, null, {
1880
- default: n(() => [
1881
- d(v, {
2170
+ l(u, null, {
2171
+ default: t(() => [
2172
+ l(y, {
1882
2173
  id: "basisModuleIcon",
1883
2174
  placeholder: "mdi-home-city",
1884
2175
  rules: [
1885
2176
  e.basisModuleExists && (!e.basisModule.icon || e.basisModule.icon === "") ? () => "moduleSelector.configEditor.error" : () => !0
1886
2177
  ],
1887
2178
  modelValue: e.basisModule.icon,
1888
- "onUpdate:modelValue": o[5] || (o[5] = (f) => e.basisModule.icon = f)
2179
+ "onUpdate:modelValue": o[5] || (o[5] = (b) => e.basisModule.icon = b)
1889
2180
  }, null, 8, ["rules", "modelValue"])
1890
2181
  ]),
1891
2182
  _: 1
@@ -1894,7 +2185,44 @@ function Do(e, o, t, r, i, l) {
1894
2185
  ]),
1895
2186
  _: 1
1896
2187
  /* STABLE */
1897
- })) : q("v-if", !0)
2188
+ })) : G("v-if", !0),
2189
+ e.basisModuleExists ? (C(), _(c, {
2190
+ key: 2,
2191
+ "no-gutters": ""
2192
+ }, {
2193
+ default: t(() => [
2194
+ l(u, { cols: "6" }, {
2195
+ default: t(() => [
2196
+ l(s, { "html-for": "basisModuleDescription" }, {
2197
+ default: t(() => [
2198
+ M(
2199
+ v(e.$st("moduleSelector.configEditor.moduleDescription")),
2200
+ 1
2201
+ /* TEXT */
2202
+ )
2203
+ ]),
2204
+ _: 1
2205
+ /* STABLE */
2206
+ })
2207
+ ]),
2208
+ _: 1
2209
+ /* STABLE */
2210
+ }),
2211
+ l(u, null, {
2212
+ default: t(() => [
2213
+ l(B, {
2214
+ id: "basisModuleDescription",
2215
+ modelValue: e.basisModule.description,
2216
+ "onUpdate:modelValue": o[6] || (o[6] = (b) => e.basisModule.description = b)
2217
+ }, null, 8, ["modelValue"])
2218
+ ]),
2219
+ _: 1
2220
+ /* STABLE */
2221
+ })
2222
+ ]),
2223
+ _: 1
2224
+ /* STABLE */
2225
+ })) : G("v-if", !0)
1898
2226
  ]),
1899
2227
  _: 1
1900
2228
  /* STABLE */
@@ -1906,164 +2234,247 @@ function Do(e, o, t, r, i, l) {
1906
2234
  ]),
1907
2235
  _: 1
1908
2236
  /* STABLE */
1909
- })) : (I(), _(b, {
1910
- key: 1,
1911
- class: "py-0 px-1"
2237
+ }),
2238
+ l(P, {
2239
+ modelValue: e.groupItemDialogVisible,
2240
+ "onUpdate:modelValue": o[13] || (o[13] = (b) => e.groupItemDialogVisible = b),
2241
+ width: "800",
2242
+ persistent: !0
1912
2243
  }, {
1913
- default: n(() => [
1914
- d(g, {
1915
- items: e.breadcrumbItems,
1916
- divider: "/"
1917
- }, {
1918
- item: n(({ item: f }) => [
1919
- (I(), _(R, {
1920
- key: f.title,
1921
- disabled: f.disabled,
1922
- href: f.href,
1923
- onClick: (D) => f.disabled ? null : e.returnLevel()
2244
+ default: t(() => [
2245
+ e.currentGroup ? (C(), _(p, { key: 0 }, {
2246
+ default: t(() => [
2247
+ l($, {
2248
+ heading: "moduleSelector.configEditor.groupHeading",
2249
+ "start-open": !0
1924
2250
  }, {
1925
- default: n(() => [
1926
- V(
1927
- w(f.title),
1928
- 1
1929
- /* TEXT */
1930
- )
1931
- ]),
1932
- _: 2
1933
- /* DYNAMIC */
1934
- }, 1032, ["disabled", "href", "onClick"]))
1935
- ]),
1936
- _: 1
1937
- /* STABLE */
1938
- }, 8, ["items"]),
1939
- d(c, { "no-gutters": "" }, {
1940
- default: n(() => [
1941
- d(a, { cols: "6" }, {
1942
- default: n(() => [
1943
- d(s, {
1944
- required: "",
1945
- "html-for": "groupModuleName"
1946
- }, {
1947
- default: n(() => [
1948
- V(
1949
- w(e.$st("moduleSelector.configEditor.groupName")),
1950
- 1
1951
- /* TEXT */
1952
- )
1953
- ]),
1954
- _: 1
1955
- /* STABLE */
1956
- })
1957
- ]),
1958
- _: 1
1959
- /* STABLE */
1960
- }),
1961
- d(a, null, {
1962
- default: n(() => [
1963
- d(v, {
1964
- id: "groupModuleName",
1965
- placeholder: "Module Name",
1966
- modelValue: e.currentGroup.title,
1967
- "onUpdate:modelValue": o[6] || (o[6] = (f) => e.currentGroup.title = f),
1968
- rules: [(f) => !!f || "moduleSelector.configEditor.error"]
1969
- }, null, 8, ["modelValue", "rules"])
1970
- ]),
1971
- _: 1
1972
- /* STABLE */
1973
- })
1974
- ]),
1975
- _: 1
1976
- /* STABLE */
1977
- }),
1978
- d(c, { "no-gutters": "" }, {
1979
- default: n(() => [
1980
- d(a, { cols: "6" }, {
1981
- default: n(() => [
1982
- d(s, {
1983
- required: "",
1984
- "html-for": "groupModuleIcon"
2251
+ default: t(() => [
2252
+ l(V, {
2253
+ modelValue: e.isFormValid,
2254
+ "onUpdate:modelValue": o[10] || (o[10] = (b) => e.isFormValid = b)
1985
2255
  }, {
1986
- default: n(() => [
1987
- V(
1988
- w(e.$st("moduleSelector.configEditor.moduleIcon")),
1989
- 1
1990
- /* TEXT */
1991
- )
2256
+ default: t(() => [
2257
+ l(S, { class: "py-0 px-1" }, {
2258
+ default: t(() => [
2259
+ l(c, { "no-gutters": "" }, {
2260
+ default: t(() => [
2261
+ l(u, { cols: "6" }, {
2262
+ default: t(() => [
2263
+ l(s, {
2264
+ required: "",
2265
+ "html-for": "groupModuleName"
2266
+ }, {
2267
+ default: t(() => [
2268
+ M(
2269
+ v(e.$st("moduleSelector.configEditor.groupName")),
2270
+ 1
2271
+ /* TEXT */
2272
+ )
2273
+ ]),
2274
+ _: 1
2275
+ /* STABLE */
2276
+ })
2277
+ ]),
2278
+ _: 1
2279
+ /* STABLE */
2280
+ }),
2281
+ l(u, null, {
2282
+ default: t(() => [
2283
+ l(y, {
2284
+ id: "groupModuleName",
2285
+ placeholder: "Module Name",
2286
+ modelValue: e.currentGroup.title,
2287
+ "onUpdate:modelValue": o[7] || (o[7] = (b) => e.currentGroup.title = b),
2288
+ rules: [e.isRequired]
2289
+ }, null, 8, ["modelValue", "rules"])
2290
+ ]),
2291
+ _: 1
2292
+ /* STABLE */
2293
+ })
2294
+ ]),
2295
+ _: 1
2296
+ /* STABLE */
2297
+ }),
2298
+ l(c, { "no-gutters": "" }, {
2299
+ default: t(() => [
2300
+ l(u, { cols: "6" }, {
2301
+ default: t(() => [
2302
+ l(s, {
2303
+ required: "",
2304
+ "html-for": "groupModuleIcon"
2305
+ }, {
2306
+ default: t(() => [
2307
+ M(
2308
+ v(e.$st("moduleSelector.configEditor.moduleIcon")),
2309
+ 1
2310
+ /* TEXT */
2311
+ )
2312
+ ]),
2313
+ _: 1
2314
+ /* STABLE */
2315
+ })
2316
+ ]),
2317
+ _: 1
2318
+ /* STABLE */
2319
+ }),
2320
+ l(u, null, {
2321
+ default: t(() => [
2322
+ l(y, {
2323
+ id: "groupModuleIcon",
2324
+ placeholder: "Module Icon",
2325
+ modelValue: e.currentGroup.icon,
2326
+ "onUpdate:modelValue": o[8] || (o[8] = (b) => e.currentGroup.icon = b),
2327
+ rules: [e.isRequired]
2328
+ }, null, 8, ["modelValue", "rules"])
2329
+ ]),
2330
+ _: 1
2331
+ /* STABLE */
2332
+ })
2333
+ ]),
2334
+ _: 1
2335
+ /* STABLE */
2336
+ }),
2337
+ l(c, { "no-gutters": "" }, {
2338
+ default: t(() => [
2339
+ l(u, { cols: "6" }, {
2340
+ default: t(() => [
2341
+ l(s, { "html-for": "groupModuleDescription" }, {
2342
+ default: t(() => [
2343
+ M(
2344
+ v(e.$st("moduleSelector.configEditor.groupDescription")),
2345
+ 1
2346
+ /* TEXT */
2347
+ )
2348
+ ]),
2349
+ _: 1
2350
+ /* STABLE */
2351
+ })
2352
+ ]),
2353
+ _: 1
2354
+ /* STABLE */
2355
+ }),
2356
+ l(u, null, {
2357
+ default: t(() => [
2358
+ l(B, {
2359
+ id: "groupModuleDescription",
2360
+ placeholder: "",
2361
+ modelValue: e.currentGroup.description,
2362
+ "onUpdate:modelValue": o[9] || (o[9] = (b) => e.currentGroup.description = b)
2363
+ }, null, 8, ["modelValue"])
2364
+ ]),
2365
+ _: 1
2366
+ /* STABLE */
2367
+ })
2368
+ ]),
2369
+ _: 1
2370
+ /* STABLE */
2371
+ })
2372
+ ]),
2373
+ _: 1
2374
+ /* STABLE */
2375
+ })
1992
2376
  ]),
1993
2377
  _: 1
1994
2378
  /* STABLE */
1995
- })
2379
+ }, 8, ["modelValue"])
1996
2380
  ]),
1997
2381
  _: 1
1998
2382
  /* STABLE */
1999
2383
  }),
2000
- d(a, null, {
2001
- default: n(() => [
2002
- d(v, {
2003
- id: "groupModuleIcon",
2004
- placeholder: "Module Icon",
2005
- modelValue: e.currentGroup.icon,
2006
- "onUpdate:modelValue": o[7] || (o[7] = (f) => e.currentGroup.icon = f),
2007
- rules: [
2008
- (f) => !!f || "moduleSelector.configEditor.editorError"
2009
- ]
2010
- }, null, 8, ["modelValue", "rules"])
2384
+ l($, {
2385
+ heading: "moduleSelector.configEditor.heading",
2386
+ "start-open": !0,
2387
+ "header-actions": e.headerActions
2388
+ }, {
2389
+ default: t(() => [
2390
+ l(g, {
2391
+ class: "draggable-list",
2392
+ items: e.currentGroup.cards,
2393
+ draggable: !0,
2394
+ onItemMoved: e.moveCard
2395
+ }, null, 8, ["items", "onItemMoved"])
2011
2396
  ]),
2012
2397
  _: 1
2013
2398
  /* STABLE */
2014
- })
2399
+ }, 8, ["header-actions"]),
2400
+ H("div", Ro, [
2401
+ l(N, {
2402
+ variant: "filled",
2403
+ class: "ma-2",
2404
+ disabled: !e.isFormValid,
2405
+ onClick: o[11] || (o[11] = (b) => e.returnLevel())
2406
+ }, {
2407
+ default: t(() => [
2408
+ M(
2409
+ v(e.$t("components.apply")),
2410
+ 1
2411
+ /* TEXT */
2412
+ )
2413
+ ]),
2414
+ _: 1
2415
+ /* STABLE */
2416
+ }, 8, ["disabled"]),
2417
+ l(N, {
2418
+ class: "ma-2",
2419
+ onClick: o[12] || (o[12] = (b) => e.cancelCurrentGroup())
2420
+ }, {
2421
+ default: t(() => [
2422
+ M(
2423
+ v(e.$t("components.cancel")),
2424
+ 1
2425
+ /* TEXT */
2426
+ )
2427
+ ]),
2428
+ _: 1
2429
+ /* STABLE */
2430
+ })
2431
+ ])
2015
2432
  ]),
2016
2433
  _: 1
2017
2434
  /* STABLE */
2018
- })
2435
+ })) : G("v-if", !0)
2019
2436
  ]),
2020
2437
  _: 1
2021
2438
  /* STABLE */
2022
- })),
2023
- d(h, {
2439
+ }, 8, ["modelValue"]),
2440
+ l($, {
2024
2441
  heading: "moduleSelector.configEditor.heading",
2025
2442
  "start-open": !0,
2026
2443
  "header-actions": e.headerActions
2027
2444
  }, {
2028
- default: n(() => [
2029
- e.currentGroup === void 0 ? (I(), _(y, {
2030
- key: 0,
2445
+ default: t(() => [
2446
+ l(g, {
2031
2447
  items: e.listItemArray,
2032
2448
  draggable: !0,
2033
- onItemMoved: e.move
2034
- }, null, 8, ["items", "onItemMoved"])) : (I(), _(y, {
2035
- key: 1,
2036
- items: e.currentGroup.cards,
2037
- draggable: !0,
2038
- onItemMoved: e.move
2039
- }, null, 8, ["items", "onItemMoved"])),
2040
- d(P, {
2449
+ onItemMoved: e.moveItem
2450
+ }, null, 8, ["items", "onItemMoved"]),
2451
+ l(P, {
2041
2452
  modelValue: e.editingItemDialogVisible,
2042
- "onUpdate:modelValue": o[10] || (o[10] = (f) => e.editingItemDialogVisible = f),
2453
+ "onUpdate:modelValue": o[16] || (o[16] = (b) => e.editingItemDialogVisible = b),
2043
2454
  width: "400",
2044
2455
  persistent: !0
2045
2456
  }, {
2046
- default: n(() => [
2047
- d(U, {
2457
+ default: t(() => [
2458
+ l(U, {
2048
2459
  "model-value": e.editingItem,
2049
- onClose: o[8] || (o[8] = (f) => e.editingItemDialogVisible = !1),
2050
- onSubmit: o[9] || (o[9] = (f) => e.updateItem())
2460
+ onClose: o[14] || (o[14] = (b) => e.editingItemDialogVisible = !1),
2461
+ onSubmit: o[15] || (o[15] = (b) => e.updateItem())
2051
2462
  }, null, 8, ["model-value"])
2052
2463
  ]),
2053
2464
  _: 1
2054
2465
  /* STABLE */
2055
2466
  }, 8, ["modelValue"]),
2056
- d(P, {
2467
+ l(P, {
2057
2468
  modelValue: e.selectCloudItemDialogVisible,
2058
- "onUpdate:modelValue": o[13] || (o[13] = (f) => e.selectCloudItemDialogVisible = f),
2469
+ "onUpdate:modelValue": o[19] || (o[19] = (b) => e.selectCloudItemDialogVisible = b),
2059
2470
  width: "1000",
2060
2471
  persistent: !0
2061
2472
  }, {
2062
- default: n(() => [
2063
- d(O, {
2473
+ default: t(() => [
2474
+ l(Z, {
2064
2475
  "model-value": e.selectCloudItem,
2065
- onClose: o[11] || (o[11] = (f) => e.selectCloudItemDialogVisible = !1),
2066
- onSubmit: o[12] || (o[12] = (f) => e.updateCloudItem())
2476
+ onClose: o[17] || (o[17] = (b) => e.selectCloudItemDialogVisible = !1),
2477
+ onSubmit: o[18] || (o[18] = (b) => e.updateCloudItem())
2067
2478
  }, null, 8, ["model-value"])
2068
2479
  ]),
2069
2480
  _: 1
@@ -2073,14 +2484,14 @@ function Do(e, o, t, r, i, l) {
2073
2484
  _: 1
2074
2485
  /* STABLE */
2075
2486
  }, 8, ["header-actions"]),
2076
- d(h, {
2487
+ l($, {
2077
2488
  heading: "moduleSelector.configEditor.windowPosition",
2078
2489
  expandable: !0
2079
2490
  }, {
2080
- default: n(() => [
2081
- d(ee, {
2491
+ default: t(() => [
2492
+ l(Q, {
2082
2493
  modelValue: e.localConfig.position,
2083
- "onUpdate:modelValue": o[14] || (o[14] = (f) => e.localConfig.position = f),
2494
+ "onUpdate:modelValue": o[20] || (o[20] = (b) => e.localConfig.position = b),
2084
2495
  "position-keys": [
2085
2496
  "top",
2086
2497
  "right",
@@ -2099,35 +2510,36 @@ function Do(e, o, t, r, i, l) {
2099
2510
  ]),
2100
2511
  _: 1
2101
2512
  /* STABLE */
2102
- }, 16, ["onSubmit"])) : q("v-if", !0);
2513
+ }, 16, ["onSubmit"])) : G("v-if", !0);
2103
2514
  }
2104
- const qo = /* @__PURE__ */ Y(Ro, [["render", Do], ["__scopeId", "data-v-82377468"]]);
2105
- function Wo(e) {
2515
+ const Po = /* @__PURE__ */ ne(Go, [["render", qo]]);
2516
+ function Ko(e) {
2106
2517
  let o;
2107
2518
  return {
2108
2519
  get name() {
2109
- return j;
2520
+ return L;
2110
2521
  },
2111
2522
  get version() {
2112
- return ro;
2523
+ return so;
2113
2524
  },
2114
2525
  get mapVersion() {
2115
- return so;
2526
+ return uo;
2116
2527
  },
2117
2528
  get config() {
2118
- return { ...re(), ...e };
2529
+ return { ...ue(), ...e };
2119
2530
  },
2120
- selectedMainModuleIndex: k(void 0),
2121
- selectedNestedModuleIndex: k(void 0),
2122
- async initialize(t, r) {
2531
+ selectedMainModuleIndex: A(void 0),
2532
+ selectedNestedModuleIndex: A(void 0),
2533
+ async initialize(i, d) {
2123
2534
  var s;
2124
- o = t;
2125
- const i = {
2126
- id: se,
2127
- component: mo,
2128
- slot: je.DETACHED,
2535
+ o = i;
2536
+ const n = {
2537
+ id: ae,
2538
+ component: po,
2539
+ slot: Ke.DETACHED,
2129
2540
  position: this.config.position,
2130
2541
  state: {
2542
+ headerIcon: "mdi-view-grid",
2131
2543
  headerTitle: this.config.windowTitle,
2132
2544
  infoUrlCallback: o.getHelpUrlCallback("/tools/moduleSelector.html")
2133
2545
  },
@@ -2137,14 +2549,14 @@ function Wo(e) {
2137
2549
  requireModuleSelection: this.config.requireModuleSelection
2138
2550
  }
2139
2551
  };
2140
- if (r) {
2141
- const a = Ie(r.smi), v = Ie(r.snmi), c = lo(r.w), { modules: C } = this.config;
2142
- if (a !== void 0 && a < (C == null ? void 0 : C.length)) {
2143
- this.selectedMainModuleIndex.value = a;
2144
- const b = C[a];
2145
- v !== void 0 && (b == null ? void 0 : b.type) === "group" && v < ((s = b == null ? void 0 : b.cards) == null ? void 0 : s.length) && (this.selectedNestedModuleIndex.value = v);
2552
+ if (d) {
2553
+ const u = Ce(d.smi), y = Ce(d.snmi), c = io(d.w), { modules: h } = this.config;
2554
+ if (u !== void 0 && u < (h == null ? void 0 : h.length)) {
2555
+ this.selectedMainModuleIndex.value = u;
2556
+ const S = h[u];
2557
+ y !== void 0 && (S == null ? void 0 : S.type) === "group" && y < ((s = S == null ? void 0 : S.cards) == null ? void 0 : s.length) && (this.selectedNestedModuleIndex.value = y);
2146
2558
  }
2147
- c || await Ae(
2559
+ c || await Oe(
2148
2560
  this.selectedMainModuleIndex.value,
2149
2561
  this.selectedNestedModuleIndex.value,
2150
2562
  o,
@@ -2152,35 +2564,35 @@ function Wo(e) {
2152
2564
  this.config.basisModule
2153
2565
  );
2154
2566
  }
2155
- const { action: l } = Le(
2567
+ const { action: r } = Je(
2156
2568
  {
2157
2569
  name: "moduleSelector",
2158
2570
  title: "moduleSelector.title",
2159
2571
  icon: "mdi-view-grid"
2160
2572
  },
2161
- i,
2573
+ n,
2162
2574
  o.windowManager,
2163
- j
2575
+ L
2164
2576
  );
2165
2577
  return o.navbarManager.add(
2166
2578
  {
2167
- id: l.name,
2168
- action: l
2579
+ id: r.name,
2580
+ action: r
2169
2581
  },
2170
- j,
2171
- ze.PROJECT
2172
- ), (r && r.w || !r && this.config.isActiveOnStart) && o.windowManager.add(i, j), Promise.resolve();
2582
+ L,
2583
+ Ze.PROJECT
2584
+ ), (d && d.w || !d && this.config.isActiveOnStart) && o.windowManager.add(n, L), Promise.resolve();
2173
2585
  },
2174
- getDefaultOptions: re,
2586
+ getDefaultOptions: ue,
2175
2587
  getState() {
2176
- var s, a;
2177
- const t = (s = this.selectedMainModuleIndex) == null ? void 0 : s.value, r = (a = this.selectedNestedModuleIndex) == null ? void 0 : a.value, i = o.windowManager.has(se), l = this.config.isActiveOnStart;
2178
- return t !== void 0 || r !== void 0 || i !== l ? { smi: t, snmi: r, w: i } : {};
2588
+ var s, u;
2589
+ const i = (s = this.selectedMainModuleIndex) == null ? void 0 : s.value, d = (u = this.selectedNestedModuleIndex) == null ? void 0 : u.value, n = o.windowManager.has(ae), r = this.config.isActiveOnStart;
2590
+ return i !== void 0 || d !== void 0 || n !== r ? { smi: i, snmi: d, w: n } : {};
2179
2591
  },
2180
2592
  getConfigEditors() {
2181
2593
  return [
2182
2594
  {
2183
- component: qo,
2595
+ component: Po,
2184
2596
  title: "moduleSelector.name",
2185
2597
  infoUrlCallback: o.getHelpUrlCallback(
2186
2598
  "/components/plugins/moduleSelectorConfig.html",
@@ -2190,8 +2602,8 @@ function Wo(e) {
2190
2602
  ];
2191
2603
  },
2192
2604
  toJSON() {
2193
- const t = {}, r = re();
2194
- return this.config.windowTitle !== r.windowTitle && (t.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== r.isActiveOnStart && (t.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== r.requireModuleSelection && (t.requireModuleSelection = this.config.requireModuleSelection), ce(this.config.position, r.position) || (t.position = this.config.position), ce(this.config.modules, r.modules) || (t.modules = this.config.modules), ce(this.config.basisModule, r.basisModule) || (t.basisModule = this.config.basisModule), e.serverUrl != null && (t.serverUrl = e.serverUrl), e.projectId != null && (t.projectId = e.projectId), e.appId != null && (t.appId = e.appId), e.token != null && (t.token = e.token), t;
2605
+ const i = {}, d = ue();
2606
+ return this.config.windowTitle !== d.windowTitle && (i.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== d.isActiveOnStart && (i.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== d.requireModuleSelection && (i.requireModuleSelection = this.config.requireModuleSelection), ve(this.config.position, d.position) || (i.position = this.config.position), ve(this.config.modules, d.modules) || (i.modules = this.config.modules), ve(this.config.basisModule, d.basisModule) || (i.basisModule = this.config.basisModule), e.serverUrl != null && (i.serverUrl = e.serverUrl), e.projectId != null && (i.projectId = e.projectId), e.appId != null && (i.appId = e.appId), e.token != null && (i.token = e.token), i;
2195
2607
  },
2196
2608
  i18n: {
2197
2609
  de: {
@@ -2215,6 +2627,7 @@ function Wo(e) {
2215
2627
  updatedBy: "Aktualisiert von"
2216
2628
  }
2217
2629
  },
2630
+ TooltipAddCloudModule: "Modul aus Projekt hinzufügen",
2218
2631
  TooltipAddModule: "Modul hinzufügen",
2219
2632
  TooltipEditModule: "Modul bearbeiten",
2220
2633
  TooltipEditGroup: "Modul-Gruppe bearbeiten",
@@ -2223,14 +2636,17 @@ function Wo(e) {
2223
2636
  editorError: "Bitte füllen Sie das Feld aus",
2224
2637
  breadcrumbs: { overview: "Übersicht", group: "Gruppe" },
2225
2638
  heading: "Themen- & Modulzuordnung",
2639
+ groupHeading: "Gruppeneinstellungen",
2226
2640
  baseModule: "Basismodul",
2227
2641
  baseModuleCheckbox: "Basismodul anzeigen",
2228
2642
  title: "Titel",
2229
- add: "Module hinzufügen",
2230
- addGroup: "Module Gruppe hinzufügen",
2231
- moduleName: "Module Name",
2643
+ add: "Modul hinzufügen",
2644
+ addGroup: "Gruppe hinzufügen",
2645
+ moduleName: "Modul Name",
2232
2646
  moduleIcon: "Icon Name",
2233
- moduleUrl: "Module URL",
2647
+ moduleUrl: "Modul URL",
2648
+ moduleDescription: "Modul Beschreibung",
2649
+ groupDescription: "Gruppen Beschreibung",
2234
2650
  groupName: "Gruppen Name",
2235
2651
  back: "Zurück",
2236
2652
  general: "Allgemeine Einstellungen",
@@ -2262,6 +2678,7 @@ function Wo(e) {
2262
2678
  updatedBy: "Updated by"
2263
2679
  }
2264
2680
  },
2681
+ TooltipAddCloudModule: "Add module from project",
2265
2682
  TooltipAddModule: "Add module",
2266
2683
  TooltipEditModule: "Edit module",
2267
2684
  TooltipEditGroup: "Edit module group",
@@ -2270,14 +2687,17 @@ function Wo(e) {
2270
2687
  editorError: "Please fill in the field",
2271
2688
  breadcrumbs: { overview: "Overview", group: "Group" },
2272
2689
  heading: "Topic & module assignment",
2690
+ groupHeading: "Group settings",
2273
2691
  baseModule: "Base module",
2274
2692
  baseModuleCheckbox: "Show base module",
2275
2693
  title: "Title",
2276
2694
  add: "Add module",
2277
- addGroup: "Add module Group",
2695
+ addGroup: "Add group",
2278
2696
  moduleName: "Module name",
2279
2697
  moduleIcon: "Icon name",
2280
2698
  moduleUrl: "Module URL",
2699
+ moduleDescription: "Module description",
2700
+ groupDescription: "Group description",
2281
2701
  groupName: "Group name",
2282
2702
  back: "Back",
2283
2703
  general: "General settings",
@@ -2294,5 +2714,5 @@ function Wo(e) {
2294
2714
  };
2295
2715
  }
2296
2716
  export {
2297
- Wo as default
2717
+ Ko as default
2298
2718
  };