@vcmap/module-selector 2.0.3 → 2.0.5

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