@vcmap/module-selector 3.0.0 → 4.0.0

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