@vcmap/module-selector 2.0.2 → 2.0.3

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,14 +10,14 @@ function loadCss(href) {
10
10
  elem.onerror = reject;
11
11
  document.head.appendChild(elem);
12
12
  });
13
- } await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtMjlhMjIwMmZde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnYtYnJlYWRjcnVtYnNbZGF0YS12LTA0YmU3OGExXXtwYWRkaW5nOjE2cHggMCA0cHh9Cg==');var Oe = Object.defineProperty;
14
- var Te = (e, o, t) => o in e ? Oe(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
15
- var W = (e, o, t) => Te(e, typeof o != "symbol" ? o + "" : o, t);
16
- import { VcsFormButton as he, VcsTextField as se, VcsLabel as be, VcsFormSection as Me, VcsCheckbox as $e, useProxiedComplexModel as Fe, useModelHasProperty as Re, VcsDataTable as De, VcsList as qe, AbstractConfigEditor as Pe, WindowSlot as Ge, createToggleAction as je, ButtonLocation as Le } from "../../../assets/ui.js";
17
- import { defineComponent as J, inject as Se, computed as H, resolveComponent as c, openBlock as I, createBlock as $, withCtx as n, createVNode as d, createTextVNode as S, toDisplayString as V, createCommentVNode as q, createElementBlock as ie, Fragment as de, renderList as me, normalizeClass as ye, ref as k, createElementVNode as pe, normalizeProps as ze, guardReactiveProps as We, reactive as He, watch as we, mergeProps as Ke } from "../../../assets/vue.js";
18
- import { VSheet as Je, VContainer as Z, VRow as Q, VCol as X, VCard as Ve, VIcon as _e, VCardTitle as Ze, VForm as ke, VDivider as Qe, VTooltip as Xe, VDialog as Ye, VBreadcrumbs as xe, VBreadcrumbsItem as eo } from "../../../assets/vuetify.js";
19
- import { VcsModule as oo } from "../../../assets/core.js";
20
- function Ee(e, o) {
13
+ } await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtMjlhMjIwMmZde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnYtYnJlYWRjcnVtYnNbZGF0YS12LTgyMzc3NDY4XXtwYWRkaW5nOjE2cHggMCA0cHh9Cg==');var Te = Object.defineProperty;
14
+ var Fe = (e, o, t) => o in e ? Te(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
15
+ var W = (e, o, t) => Fe(e, typeof o != "symbol" ? o + "" : o, t);
16
+ import { VcsFormButton as be, VcsTextField as ae, VcsLabel as Me, VcsFormSection as Se, VcsCheckbox as _e, useProxiedComplexModel as Re, useModelHasProperty as De, VcsDataTable as qe, VcsList as Pe, AbstractConfigEditor as Ge, WindowSlot as je, createToggleAction as Le, ButtonLocation as ze } from "../../../assets/ui.js";
17
+ import { defineComponent as J, inject as Ve, computed as H, resolveComponent as m, openBlock as I, createBlock as _, withCtx as n, createVNode as d, createTextVNode as V, toDisplayString as w, createCommentVNode as q, createElementBlock as ie, Fragment as de, renderList as pe, normalizeClass as we, ref as k, createElementVNode as fe, normalizeProps as We, guardReactiveProps as He, reactive as Ke, watch as Ee, toRaw as ue, mergeProps as Je } from "../../../assets/vue.js";
18
+ import { VSheet as Ze, VContainer as Z, VRow as Q, VCol as X, VCard as ye, VIcon as ke, VCardTitle as Qe, VForm as Ue, VDivider as Xe, VTooltip as Ye, VDialog as xe, VBreadcrumbs as eo, VBreadcrumbsItem as oo } from "../../../assets/vuetify.js";
19
+ import { VcsModule as to } from "../../../assets/core.js";
20
+ function Ie(e, o) {
21
21
  if (e != null) {
22
22
  const t = Number.parseInt(String(e), 10);
23
23
  if (t != null && !Number.isNaN(t))
@@ -25,13 +25,13 @@ function Ee(e, o) {
25
25
  }
26
26
  return o;
27
27
  }
28
- function to(e, o) {
28
+ function lo(e, o) {
29
29
  return e == null ? !!o : typeof e == "boolean" ? e : e === 1 ? !0 : e === 0 ? !1 : typeof e == "string" && (e.toLowerCase() === "true" || e.toLowerCase() === "1") ? !0 : typeof e == "string" && (e.toLowerCase() === "false" || e.toLowerCase() === "0") ? !1 : !!o;
30
30
  }
31
- function lo(e) {
31
+ function no(e) {
32
32
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
33
33
  }
34
- var no = function e(o, t) {
34
+ var io = function e(o, t) {
35
35
  if (o === t) return !0;
36
36
  if (o && t && typeof o == "object" && typeof t == "object") {
37
37
  if (o.constructor !== t.constructor) return !1;
@@ -49,15 +49,15 @@ var no = function e(o, t) {
49
49
  for (i = r; i-- !== 0; )
50
50
  if (!Object.prototype.hasOwnProperty.call(t, l[i])) return !1;
51
51
  for (i = r; i-- !== 0; ) {
52
- var a = l[i];
53
- if (!e(o[a], t[a])) return !1;
52
+ var s = l[i];
53
+ if (!e(o[s], t[s])) return !1;
54
54
  }
55
55
  return !0;
56
56
  }
57
57
  return o !== o && t !== t;
58
58
  };
59
- const ue = /* @__PURE__ */ lo(no), j = "@vcmap/module-selector", io = "2.0.2", ro = "^6.0";
60
- async function Ie(e, o) {
59
+ const ce = /* @__PURE__ */ no(io), j = "@vcmap/module-selector", ro = "2.0.3", so = "^6.0";
60
+ async function Ce(e, o) {
61
61
  const t = await fetch(e, {
62
62
  method: "GET"
63
63
  }).then((r) => {
@@ -66,7 +66,7 @@ async function Ie(e, o) {
66
66
  });
67
67
  if (t) {
68
68
  t._id = "moduleSelector_module_id";
69
- const r = new oo(t);
69
+ const r = new to(t);
70
70
  await o.addModule(r);
71
71
  }
72
72
  }
@@ -75,28 +75,28 @@ async function ao(e) {
75
75
  const o = "moduleSelector_module_id", t = (i = e.maps.activeMap) == null ? void 0 : i.name;
76
76
  e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(t || ((l = [...e.maps][0]) == null ? void 0 : l.name));
77
77
  }
78
- const ae = "moduleSelector_window_id";
79
- async function Ue(e, o, t, r, i) {
80
- var s;
78
+ const se = "moduleSelector_window_id";
79
+ async function Ae(e, o, t, r, i) {
80
+ var a;
81
81
  if (await ao(t), e === null && !i) {
82
- t.windowManager.remove(ae);
82
+ t.windowManager.remove(se);
83
83
  return;
84
84
  }
85
- const l = r[e], a = (l == null ? void 0 : l.type) === "group" ? (s = l.cards) == null ? void 0 : s[o] : null;
86
- a != null && a.moduleUrl ? await Ie(a.moduleUrl, t) : (l == null ? void 0 : l.type) === "url" && await Ie(l.moduleUrl, t), t.windowManager.remove(ae);
85
+ const l = r[e], s = (l == null ? void 0 : l.type) === "group" ? (a = l.cards) == null ? void 0 : a[o] : null;
86
+ s != null && s.moduleUrl ? await Ce(s.moduleUrl, t) : (l == null ? void 0 : l.type) === "url" && await Ce(l.moduleUrl, t), t.windowManager.remove(se);
87
87
  }
88
- const so = J({
88
+ const uo = J({
89
89
  name: "ModuleSelector",
90
- methods: { startApplication: Ue },
90
+ methods: { startApplication: Ae },
91
91
  components: {
92
- VSheet: Je,
92
+ VSheet: Ze,
93
93
  VContainer: Z,
94
94
  VRow: Q,
95
95
  VCol: X,
96
- VCard: Ve,
97
- VIcon: _e,
98
- VCardTitle: Ze,
99
- VcsFormButton: he
96
+ VCard: ye,
97
+ VIcon: ke,
98
+ VCardTitle: Qe,
99
+ VcsFormButton: be
100
100
  },
101
101
  props: {
102
102
  modules: {
@@ -115,27 +115,27 @@ const so = J({
115
115
  }
116
116
  },
117
117
  setup(e) {
118
- const o = Se("vcsApp"), t = o.plugins.getByKey(j), { modules: r } = e, i = H(() => {
119
- const u = e.modules[t.selectedMainModuleIndex.value];
120
- return (u == null ? void 0 : u.type) === "group" ? u.cards : [];
121
- }), l = (u) => {
122
- t.selectedMainModuleIndex.value === u ? t.selectedMainModuleIndex.value = null : t.selectedMainModuleIndex.value = u;
123
- }, a = (u) => {
124
- t.selectedNestedModuleIndex.value === u ? t.selectedNestedModuleIndex.value = null : t.selectedNestedModuleIndex.value = u;
125
- }, s = () => {
118
+ const o = Ve("vcsApp"), t = o.plugins.getByKey(j), { modules: r } = e, i = H(() => {
119
+ const c = e.modules[t.selectedMainModuleIndex.value];
120
+ return (c == null ? void 0 : c.type) === "group" ? c.cards : [];
121
+ }), l = (c) => {
122
+ t.selectedMainModuleIndex.value === c ? t.selectedMainModuleIndex.value = null : t.selectedMainModuleIndex.value = c;
123
+ }, s = (c) => {
124
+ t.selectedNestedModuleIndex.value === c ? t.selectedNestedModuleIndex.value = null : t.selectedNestedModuleIndex.value = c;
125
+ }, a = () => {
126
126
  t.selectedNestedModuleIndex.value = null, t.selectedMainModuleIndex.value = null;
127
- }, f = H(() => {
127
+ }, v = H(() => {
128
128
  if (!e.requireModuleSelection) return !1;
129
- const u = t.selectedMainModuleIndex.value, C = t.selectedNestedModuleIndex.value, b = r[u];
130
- return u == null || (b == null ? void 0 : b.type) === "group" && b.cards && C == null;
129
+ const c = t.selectedMainModuleIndex.value, C = t.selectedNestedModuleIndex.value, b = r[c];
130
+ return c == null || (b == null ? void 0 : b.type) === "group" && b.cards && C == null;
131
131
  });
132
132
  return {
133
133
  nestedCards: i,
134
134
  plugin: t,
135
135
  selectModule: l,
136
- selectNestedModule: a,
137
- showMainCards: s,
138
- isButtonDisabled: f,
136
+ selectNestedModule: s,
137
+ showMainCards: a,
138
+ isButtonDisabled: v,
139
139
  app: o
140
140
  };
141
141
  }
@@ -145,38 +145,38 @@ const so = J({
145
145
  t[r] = i;
146
146
  return t;
147
147
  };
148
- function uo(e, o, t, r, i, l) {
149
- const a = c("v-icon"), s = c("v-card-title"), f = c("v-card"), u = c("v-col"), C = c("v-row"), b = c("VcsFormButton"), g = c("v-container"), R = c("v-sheet");
150
- return I(), $(R, {
148
+ function co(e, o, t, r, i, l) {
149
+ const s = m("v-icon"), a = m("v-card-title"), v = m("v-card"), c = m("v-col"), C = m("v-row"), b = m("VcsFormButton"), h = m("v-container"), R = m("v-sheet");
150
+ return I(), _(R, {
151
151
  class: "module-selector",
152
152
  elevation: "1"
153
153
  }, {
154
154
  default: n(() => [
155
- d(g, null, {
155
+ d(h, null, {
156
156
  default: n(() => [
157
157
  d(C, {
158
158
  class: "justify-center align-center",
159
159
  "no-gutters": ""
160
160
  }, {
161
161
  default: n(() => [
162
- e.basisModule && !e.nestedCards.length ? (I(), $(u, {
162
+ e.basisModule && !e.nestedCards.length ? (I(), _(c, {
163
163
  key: 0,
164
164
  cols: "auto",
165
165
  class: "pa-2"
166
166
  }, {
167
167
  default: n(() => [
168
- d(f, {
168
+ d(v, {
169
169
  class: "pa-3 fixed-card selected-card",
170
170
  outlined: ""
171
171
  }, {
172
172
  default: n(() => [
173
- e.basisModule.icon ? (I(), $(a, {
173
+ e.basisModule.icon ? (I(), _(s, {
174
174
  key: 0,
175
175
  size: "50"
176
176
  }, {
177
177
  default: n(() => [
178
- S(
179
- V(e.basisModule.icon),
178
+ V(
179
+ w(e.basisModule.icon),
180
180
  1
181
181
  /* TEXT */
182
182
  )
@@ -184,10 +184,10 @@ function uo(e, o, t, r, i, l) {
184
184
  _: 1
185
185
  /* STABLE */
186
186
  })) : q("v-if", !0),
187
- d(s, { class: "text-center" }, {
187
+ d(a, { class: "text-center" }, {
188
188
  default: n(() => [
189
- S(
190
- V(e.$st(e.basisModule.title)),
189
+ V(
190
+ w(e.$st(e.basisModule.title)),
191
191
  1
192
192
  /* TEXT */
193
193
  )
@@ -207,26 +207,26 @@ function uo(e, o, t, r, i, l) {
207
207
  de,
208
208
  { key: 2 },
209
209
  [
210
- d(u, {
210
+ d(c, {
211
211
  cols: "auto",
212
212
  class: "pa-2"
213
213
  }, {
214
214
  default: n(() => [
215
- d(f, {
215
+ d(v, {
216
216
  class: "fixed-card hover-card",
217
217
  outlined: "",
218
- onClick: o[0] || (o[0] = (v) => e.showMainCards())
218
+ onClick: o[0] || (o[0] = (g) => e.showMainCards())
219
219
  }, {
220
220
  default: n(() => [
221
- d(a, { size: "50" }, {
221
+ d(s, { size: "50" }, {
222
222
  default: n(() => [
223
- S("mdi-arrow-left")
223
+ V("mdi-arrow-left")
224
224
  ]),
225
225
  _: 1
226
226
  /* STABLE */
227
227
  }),
228
- S(
229
- " " + V(e.$st("moduleSelector.cardBack")),
228
+ V(
229
+ " " + w(e.$st("moduleSelector.cardBack")),
230
230
  1
231
231
  /* TEXT */
232
232
  )
@@ -241,8 +241,8 @@ function uo(e, o, t, r, i, l) {
241
241
  (I(!0), ie(
242
242
  de,
243
243
  null,
244
- me(e.nestedCards, (v, y) => (I(), $(
245
- u,
244
+ pe(e.nestedCards, (g, y) => (I(), _(
245
+ c,
246
246
  {
247
247
  key: y,
248
248
  cols: "auto",
@@ -250,24 +250,24 @@ function uo(e, o, t, r, i, l) {
250
250
  },
251
251
  {
252
252
  default: n(() => [
253
- d(f, {
254
- class: ye(["fixed-card hover-card", {
253
+ d(v, {
254
+ class: we(["fixed-card hover-card", {
255
255
  "selected-card": e.plugin.selectedNestedModuleIndex.value === y
256
256
  }]),
257
257
  outlined: "",
258
258
  onClick: (U) => e.selectNestedModule(y)
259
259
  }, {
260
260
  default: n(() => [
261
- v.icon ? (I(), $(
262
- a,
261
+ g.icon ? (I(), _(
262
+ s,
263
263
  {
264
264
  key: 0,
265
265
  size: "50"
266
266
  },
267
267
  {
268
268
  default: n(() => [
269
- S(
270
- V(v.icon),
269
+ V(
270
+ w(g.icon),
271
271
  1
272
272
  /* TEXT */
273
273
  )
@@ -279,12 +279,12 @@ function uo(e, o, t, r, i, l) {
279
279
  /* DYNAMIC_SLOTS */
280
280
  )) : q("v-if", !0),
281
281
  d(
282
- s,
282
+ a,
283
283
  { class: "text-center" },
284
284
  {
285
285
  default: n(() => [
286
- S(
287
- V(e.$st(v.title)),
286
+ V(
287
+ w(e.$st(g.title)),
288
288
  1
289
289
  /* TEXT */
290
290
  )
@@ -315,8 +315,8 @@ function uo(e, o, t, r, i, l) {
315
315
  )) : (I(!0), ie(
316
316
  de,
317
317
  { key: 1 },
318
- me(e.modules, (v, y) => (I(), $(
319
- u,
318
+ pe(e.modules, (g, y) => (I(), _(
319
+ c,
320
320
  {
321
321
  cols: "auto",
322
322
  class: "pa-2",
@@ -324,24 +324,24 @@ function uo(e, o, t, r, i, l) {
324
324
  },
325
325
  {
326
326
  default: n(() => [
327
- d(f, {
328
- class: ye(["fixed-card hover-card", {
327
+ d(v, {
328
+ class: we(["fixed-card hover-card", {
329
329
  "selected-card": e.plugin.selectedMainModuleIndex.value === y
330
330
  }]),
331
331
  outlined: "",
332
332
  onClick: (U) => e.selectModule(y)
333
333
  }, {
334
334
  default: n(() => [
335
- v.icon ? (I(), $(
336
- a,
335
+ g.icon ? (I(), _(
336
+ s,
337
337
  {
338
338
  key: 0,
339
339
  size: "50"
340
340
  },
341
341
  {
342
342
  default: n(() => [
343
- S(
344
- V(v.icon),
343
+ V(
344
+ w(g.icon),
345
345
  1
346
346
  /* TEXT */
347
347
  )
@@ -353,12 +353,12 @@ function uo(e, o, t, r, i, l) {
353
353
  /* DYNAMIC_SLOTS */
354
354
  )) : q("v-if", !0),
355
355
  d(
356
- s,
356
+ a,
357
357
  { class: "text-center" },
358
358
  {
359
359
  default: n(() => [
360
- S(
361
- V(e.$st(v.title)),
360
+ V(
361
+ w(e.$st(g.title)),
362
362
  1
363
363
  /* TEXT */
364
364
  )
@@ -392,7 +392,7 @@ function uo(e, o, t, r, i, l) {
392
392
  d(b, {
393
393
  variant: "filled",
394
394
  class: "ma-5",
395
- onClick: o[1] || (o[1] = (v) => e.startApplication(
395
+ onClick: o[1] || (o[1] = (g) => e.startApplication(
396
396
  e.plugin.selectedMainModuleIndex.value,
397
397
  e.plugin.selectedNestedModuleIndex.value,
398
398
  e.app,
@@ -402,8 +402,8 @@ function uo(e, o, t, r, i, l) {
402
402
  disabled: e.isButtonDisabled
403
403
  }, {
404
404
  default: n(() => [
405
- S(
406
- V(e.$st("moduleSelector.startButton")),
405
+ V(
406
+ w(e.$st("moduleSelector.startButton")),
407
407
  1
408
408
  /* TEXT */
409
409
  )
@@ -424,7 +424,7 @@ function uo(e, o, t, r, i, l) {
424
424
  /* STABLE */
425
425
  });
426
426
  }
427
- const co = /* @__PURE__ */ Y(so, [["render", uo], ["__scopeId", "data-v-29a2202f"]]), re = () => ({
427
+ const mo = /* @__PURE__ */ Y(uo, [["render", co], ["__scopeId", "data-v-29a2202f"]]), re = () => ({
428
428
  windowTitle: "moduleSelector.title",
429
429
  isActiveOnStart: !0,
430
430
  requireModuleSelection: !1,
@@ -439,19 +439,19 @@ const co = /* @__PURE__ */ Y(so, [["render", uo], ["__scopeId", "data-v-29a2202f
439
439
  projectId: "",
440
440
  appId: "",
441
441
  token: ""
442
- }), mo = J({
442
+ }), po = J({
443
443
  name: "ModuleEditor",
444
444
  components: {
445
- VcsTextField: se,
446
- VcsLabel: be,
445
+ VcsTextField: ae,
446
+ VcsLabel: Me,
447
447
  VCol: X,
448
448
  VRow: Q,
449
- VForm: ke,
449
+ VForm: Ue,
450
450
  VContainer: Z,
451
- VcsFormButton: he,
452
- VDivider: Qe,
453
- VCard: Ve,
454
- VcsFormSection: Me
451
+ VcsFormButton: be,
452
+ VDivider: Xe,
453
+ VCard: ye,
454
+ VcsFormSection: Se
455
455
  },
456
456
  props: {
457
457
  modelValue: {
@@ -470,12 +470,12 @@ const co = /* @__PURE__ */ Y(so, [["render", uo], ["__scopeId", "data-v-29a2202f
470
470
  requiredRule: (l) => !!l || "moduleSelector.configEditor.editorError"
471
471
  };
472
472
  }
473
- }), po = { class: "d-flex gc-2 w-100 justify-end pa-2" };
474
- function fo(e, o, t, r, i, l) {
475
- const a = c("VcsLabel"), s = c("v-col"), f = c("VcsTextField"), u = c("v-row"), C = c("v-container"), b = c("v-form"), g = c("v-divider"), R = c("VcsFormButton"), v = c("VcsFormSection"), y = c("v-card");
476
- return I(), $(y, null, {
473
+ }), fo = { class: "d-flex gc-2 w-100 justify-end pa-2" };
474
+ function vo(e, o, t, r, i, l) {
475
+ const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container"), b = m("v-form"), h = m("v-divider"), R = m("VcsFormButton"), g = m("VcsFormSection"), y = m("v-card");
476
+ return I(), _(y, null, {
477
477
  default: n(() => [
478
- d(v, null, {
478
+ d(g, null, {
479
479
  default: n(() => [
480
480
  d(b, {
481
481
  modelValue: e.isFormValid,
@@ -485,17 +485,17 @@ function fo(e, o, t, r, i, l) {
485
485
  default: n(() => [
486
486
  d(C, { class: "px-2 pt-0 pb-2" }, {
487
487
  default: n(() => [
488
- d(u, { "no-gutters": "" }, {
488
+ d(c, { "no-gutters": "" }, {
489
489
  default: n(() => [
490
- d(s, { cols: "6" }, {
490
+ d(a, { cols: "6" }, {
491
491
  default: n(() => [
492
- d(a, {
492
+ d(s, {
493
493
  required: "",
494
494
  "html-for": "moduleName"
495
495
  }, {
496
496
  default: n(() => [
497
- S(
498
- V(e.$st("moduleSelector.configEditor.moduleName")),
497
+ V(
498
+ w(e.$st("moduleSelector.configEditor.moduleName")),
499
499
  1
500
500
  /* TEXT */
501
501
  )
@@ -507,9 +507,9 @@ function fo(e, o, t, r, i, l) {
507
507
  _: 1
508
508
  /* STABLE */
509
509
  }),
510
- d(s, { cols: "6" }, {
510
+ d(a, { cols: "6" }, {
511
511
  default: n(() => [
512
- d(f, {
512
+ d(v, {
513
513
  id: "moduleName",
514
514
  placeholder: "Module Name",
515
515
  modelValue: e.localModuleOptions.title,
@@ -524,17 +524,17 @@ function fo(e, o, t, r, i, l) {
524
524
  _: 1
525
525
  /* STABLE */
526
526
  }),
527
- d(u, { "no-gutters": "" }, {
527
+ d(c, { "no-gutters": "" }, {
528
528
  default: n(() => [
529
- d(s, { cols: "6" }, {
529
+ d(a, { cols: "6" }, {
530
530
  default: n(() => [
531
- d(a, {
531
+ d(s, {
532
532
  required: "",
533
533
  "html-for": "moduleIcon"
534
534
  }, {
535
535
  default: n(() => [
536
- S(
537
- V(e.$st("moduleSelector.configEditor.moduleIcon")),
536
+ V(
537
+ w(e.$st("moduleSelector.configEditor.moduleIcon")),
538
538
  1
539
539
  /* TEXT */
540
540
  )
@@ -546,9 +546,9 @@ function fo(e, o, t, r, i, l) {
546
546
  _: 1
547
547
  /* STABLE */
548
548
  }),
549
- d(s, { cols: "6" }, {
549
+ d(a, { cols: "6" }, {
550
550
  default: n(() => [
551
- d(f, {
551
+ d(v, {
552
552
  id: "moduleIcon",
553
553
  placeholder: "Icon Name",
554
554
  modelValue: e.localModuleOptions.icon,
@@ -563,17 +563,17 @@ function fo(e, o, t, r, i, l) {
563
563
  _: 1
564
564
  /* STABLE */
565
565
  }),
566
- d(u, { "no-gutters": "" }, {
566
+ d(c, { "no-gutters": "" }, {
567
567
  default: n(() => [
568
- d(s, { cols: "6" }, {
568
+ d(a, { cols: "6" }, {
569
569
  default: n(() => [
570
- d(a, {
570
+ d(s, {
571
571
  required: "",
572
572
  "html-for": "moduleUrl"
573
573
  }, {
574
574
  default: n(() => [
575
- S(
576
- V(e.$st("moduleSelector.configEditor.moduleUrl")),
575
+ V(
576
+ w(e.$st("moduleSelector.configEditor.moduleUrl")),
577
577
  1
578
578
  /* TEXT */
579
579
  )
@@ -585,9 +585,9 @@ function fo(e, o, t, r, i, l) {
585
585
  _: 1
586
586
  /* STABLE */
587
587
  }),
588
- d(s, { cols: "6" }, {
588
+ d(a, { cols: "6" }, {
589
589
  default: n(() => [
590
- d(f, {
590
+ d(v, {
591
591
  id: "moduleUrl",
592
592
  placeholder: "URL",
593
593
  modelValue: e.localModuleOptions.moduleUrl,
@@ -610,8 +610,8 @@ function fo(e, o, t, r, i, l) {
610
610
  _: 1
611
611
  /* STABLE */
612
612
  }, 8, ["modelValue"]),
613
- d(g),
614
- pe("div", po, [
613
+ d(h),
614
+ fe("div", fo, [
615
615
  d(R, {
616
616
  disabled: !e.isFormValid,
617
617
  onClick: o[4] || (o[4] = () => {
@@ -620,8 +620,8 @@ function fo(e, o, t, r, i, l) {
620
620
  variant: "filled"
621
621
  }, {
622
622
  default: n(() => [
623
- S(
624
- V(e.$st("components.apply")),
623
+ V(
624
+ w(e.$st("components.apply")),
625
625
  1
626
626
  /* TEXT */
627
627
  )
@@ -633,8 +633,8 @@ function fo(e, o, t, r, i, l) {
633
633
  onClick: o[5] || (o[5] = (U) => e.$emit("close"))
634
634
  }, {
635
635
  default: n(() => [
636
- S(
637
- V(e.$st("components.cancel")),
636
+ V(
637
+ w(e.$st("components.cancel")),
638
638
  1
639
639
  /* TEXT */
640
640
  )
@@ -652,14 +652,14 @@ function fo(e, o, t, r, i, l) {
652
652
  /* STABLE */
653
653
  });
654
654
  }
655
- const vo = /* @__PURE__ */ Y(mo, [["render", fo]]), go = J({
655
+ const go = /* @__PURE__ */ Y(po, [["render", vo]]), ho = J({
656
656
  name: "WindowPositionSettings",
657
657
  components: {
658
658
  VContainer: Z,
659
659
  VRow: Q,
660
660
  VCol: X,
661
- VcsCheckbox: $e,
662
- VcsTextField: se
661
+ VcsCheckbox: _e,
662
+ VcsTextField: ae
663
663
  },
664
664
  props: {
665
665
  modelValue: {
@@ -672,7 +672,7 @@ const vo = /* @__PURE__ */ Y(mo, [["render", fo]]), go = J({
672
672
  }
673
673
  },
674
674
  setup(e, { emit: o }) {
675
- const t = Fe(
675
+ const t = Re(
676
676
  e,
677
677
  "modelValue",
678
678
  o
@@ -681,13 +681,13 @@ const vo = /* @__PURE__ */ Y(mo, [["render", fo]]), go = J({
681
681
  inputs: H(() => e.positionKeys.reduce(
682
682
  (i, l) => (i[l] = {
683
683
  key: l,
684
- checkbox: Re(t, l, null),
684
+ checkbox: De(t, l, null),
685
685
  input: H({
686
686
  get() {
687
687
  return t.value[l];
688
688
  },
689
- set(a) {
690
- t.value[l] = a;
689
+ set(s) {
690
+ t.value[l] = s;
691
691
  }
692
692
  }),
693
693
  placeholder: "auto"
@@ -697,15 +697,15 @@ const vo = /* @__PURE__ */ Y(mo, [["render", fo]]), go = J({
697
697
  };
698
698
  }
699
699
  });
700
- function ho(e, o, t, r, i, l) {
701
- const a = c("VcsCheckbox"), s = c("v-col"), f = c("VcsTextField"), u = c("v-row"), C = c("v-container");
702
- return I(), $(C, { class: "py-0 px-1" }, {
700
+ function bo(e, o, t, r, i, l) {
701
+ const s = m("VcsCheckbox"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container");
702
+ return I(), _(C, { class: "py-0 px-1" }, {
703
703
  default: n(() => [
704
704
  (I(!0), ie(
705
705
  de,
706
706
  null,
707
- me(e.inputs, ({ key: b, checkbox: g, input: R, placeholder: v }) => (I(), $(
708
- u,
707
+ pe(e.inputs, ({ key: b, checkbox: h, input: R, placeholder: g }) => (I(), _(
708
+ c,
709
709
  {
710
710
  "no-gutters": "",
711
711
  key: b
@@ -713,14 +713,14 @@ function ho(e, o, t, r, i, l) {
713
713
  {
714
714
  default: n(() => [
715
715
  d(
716
- s,
716
+ a,
717
717
  null,
718
718
  {
719
719
  default: n(() => [
720
- d(a, {
720
+ d(s, {
721
721
  label: `appConfigurator.editors.featureInfo.window.position.${b}`,
722
- modelValue: g.value,
723
- "onUpdate:modelValue": (y) => g.value = y
722
+ modelValue: h.value,
723
+ "onUpdate:modelValue": (y) => h.value = y
724
724
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
725
725
  ]),
726
726
  _: 2
@@ -730,14 +730,14 @@ function ho(e, o, t, r, i, l) {
730
730
  /* DYNAMIC_SLOTS */
731
731
  ),
732
732
  d(
733
- s,
733
+ a,
734
734
  null,
735
735
  {
736
736
  default: n(() => [
737
- d(f, {
737
+ d(v, {
738
738
  clearable: "",
739
- disabled: !g.value,
740
- placeholder: v,
739
+ disabled: !h.value,
740
+ placeholder: g,
741
741
  modelValue: R.value,
742
742
  "onUpdate:modelValue": (y) => R.value = y,
743
743
  modelModifiers: { trim: !0 }
@@ -764,67 +764,67 @@ function ho(e, o, t, r, i, l) {
764
764
  /* STABLE */
765
765
  });
766
766
  }
767
- const bo = /* @__PURE__ */ Y(go, [["render", ho]]);
768
- let Ae = "";
769
- function Mo(e) {
770
- Ae = e;
771
- }
772
- let fe;
767
+ const Mo = /* @__PURE__ */ Y(ho, [["render", bo]]);
768
+ let Ne = "";
773
769
  function So(e) {
774
- fe = e;
770
+ Ne = e;
771
+ }
772
+ let ve;
773
+ function Vo(e) {
774
+ ve = e;
775
775
  }
776
- let Ce = {};
777
- function Vo() {
778
- return fe ? {
779
- authorization: `Bearer ${fe}`,
780
- ...Ce
781
- } : { ...Ce };
776
+ let $e = {};
777
+ function yo() {
778
+ return ve ? {
779
+ authorization: `Bearer ${ve}`,
780
+ ...$e
781
+ } : { ...$e };
782
782
  }
783
- class yo extends Error {
784
- constructor(t, r, i, l, a) {
783
+ class wo extends Error {
784
+ constructor(t, r, i, l, s) {
785
785
  super(`Failed to ${r} ${i}. Got status ${t} with reason: ${l}`);
786
786
  W(this, "url");
787
787
  W(this, "method");
788
788
  W(this, "status");
789
789
  W(this, "reason");
790
790
  W(this, "error");
791
- this.error = a, this.method = r, this.status = t, this.url = i, this.reason = l;
791
+ this.error = s, this.method = r, this.status = t, this.url = i, this.reason = l;
792
792
  }
793
793
  }
794
- function wo(e, o, t) {
794
+ function Eo(e, o, t) {
795
795
  let r = e;
796
- Object.keys(t).filter((l) => t[l] === "path").map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: a }) => {
797
- r = r.replace(`{${l}}`, a.toString());
796
+ Object.keys(t).filter((l) => t[l] === "path").map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
797
+ r = r.replace(`{${l}}`, s.toString());
798
798
  });
799
- const i = new URL(r, Ae);
800
- return Object.keys(t).filter((l) => t[l] === "query" && o[l]).map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: a }) => {
801
- Array.isArray(a) ? a.forEach((s) => {
802
- i.searchParams.append(l, s.toString());
803
- }) : i.searchParams.append(l, a.toString());
799
+ const i = new URL(r, Ne);
800
+ return Object.keys(t).filter((l) => t[l] === "query" && o[l]).map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
801
+ Array.isArray(s) ? s.forEach((a) => {
802
+ i.searchParams.append(l, a.toString());
803
+ }) : i.searchParams.append(l, s.toString());
804
804
  }), i.toString();
805
805
  }
806
- async function Eo(e, o, t, r = void 0, i = {}) {
806
+ async function Io(e, o, t, r = void 0, i = {}) {
807
807
  const l = await fetch(e, {
808
808
  method: o,
809
809
  body: r,
810
- headers: { ...i, ...Vo() },
810
+ headers: { ...i, ...yo() },
811
811
  redirect: "follow"
812
812
  });
813
813
  if (l.status === t)
814
814
  return l;
815
- let a = await l.text(), s;
815
+ let s = await l.text(), a;
816
816
  try {
817
- const f = JSON.parse(a);
818
- f.reason && ({ reason: a } = f), f.error && ({ error: s } = f);
817
+ const v = JSON.parse(s);
818
+ v.reason && ({ reason: s } = v), v.error && ({ error: a } = v);
819
819
  } catch {
820
820
  }
821
- throw new yo(l.status, o, e, a, s);
821
+ throw new wo(l.status, o, e, s, a);
822
822
  }
823
- async function Io(e, o, t, r = void 0, i = {}) {
824
- return (await Eo(e, o, t, r, i)).json();
823
+ async function Co(e, o, t, r = void 0, i = {}) {
824
+ return (await Io(e, o, t, r, i)).json();
825
825
  }
826
- async function Co(e) {
827
- const o = "api/v1/project/{projectId}/modules", t = "get", i = wo(o, e, {
826
+ async function $o(e) {
827
+ const o = "api/v1/project/{projectId}/modules", t = "get", i = Eo(o, e, {
828
828
  projectId: "path",
829
829
  limit: "query",
830
830
  page: "query",
@@ -832,33 +832,33 @@ async function Co(e) {
832
832
  orderBy: "query",
833
833
  name: "query"
834
834
  });
835
- return Io(i, t, 200, void 0, void 0);
835
+ return Co(i, t, 200, void 0, void 0);
836
836
  }
837
- const A = {
837
+ const N = {
838
838
  OFF: 1,
839
839
  ERROR: 2,
840
840
  WARN: 4,
841
841
  INFO: 8,
842
842
  DEBUG: 16
843
- }, P = {
843
+ }, G = {
844
844
  ERROR: 0,
845
845
  WARN: 0,
846
846
  INFO: 0,
847
847
  DEBUG: 0
848
848
  };
849
- P.ERROR = A.ERROR | A.WARN | A.INFO | A.DEBUG;
850
- P.WARN = A.WARN | A.INFO | A.DEBUG;
851
- P.INFO = A.INFO | A.DEBUG;
852
- P.DEBUG = A.DEBUG;
849
+ G.ERROR = N.ERROR | N.WARN | N.INFO | N.DEBUG;
850
+ G.WARN = N.WARN | N.INFO | N.DEBUG;
851
+ G.INFO = N.INFO | N.DEBUG;
852
+ G.DEBUG = N.DEBUG;
853
853
  const K = {
854
854
  useTimestamp: !1,
855
- logLevel: A.INFO
855
+ logLevel: N.INFO
856
856
  }, x = /* @__PURE__ */ new Map();
857
- x.set(A.ERROR, "error");
858
- x.set(A.WARN, "warn");
859
- x.set(A.INFO, "info");
860
- x.set(A.DEBUG, "log");
861
- class Ne {
857
+ x.set(N.ERROR, "error");
858
+ x.set(N.WARN, "warn");
859
+ x.set(N.INFO, "info");
860
+ x.set(N.DEBUG, "log");
861
+ class Oe {
862
862
  /**
863
863
  * @param {string=} className
864
864
  */
@@ -871,7 +871,7 @@ class Ne {
871
871
  * @param {...any} optArgs
872
872
  */
873
873
  error(o, ...t) {
874
- K.logLevel & P.ERROR && this._log(String(o), A.ERROR, t);
874
+ K.logLevel & G.ERROR && this._log(String(o), N.ERROR, t);
875
875
  }
876
876
  /**
877
877
  * Logs a warning message
@@ -879,7 +879,7 @@ class Ne {
879
879
  * @param {...any} optArgs
880
880
  */
881
881
  warning(o, ...t) {
882
- K.logLevel & P.WARN && this._log(String(o), A.WARN, t);
882
+ K.logLevel & G.WARN && this._log(String(o), N.WARN, t);
883
883
  }
884
884
  /**
885
885
  * Deprecate a function. deprecations are stored on the logger
@@ -900,7 +900,7 @@ class Ne {
900
900
  * @param {...any} optArgs
901
901
  */
902
902
  info(o, ...t) {
903
- K.logLevel & P.INFO && this._log(String(o), A.INFO, t);
903
+ K.logLevel & G.INFO && this._log(String(o), N.INFO, t);
904
904
  }
905
905
  /**
906
906
  * Logs a debug message
@@ -908,7 +908,7 @@ class Ne {
908
908
  * @param {...any} optArgs
909
909
  */
910
910
  debug(o, ...t) {
911
- K.logLevel & P.DEBUG && this._log(String(o), A.DEBUG, t);
911
+ K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
912
912
  }
913
913
  /**
914
914
  * Alias for debug
@@ -916,7 +916,7 @@ class Ne {
916
916
  * @param {...any} optArgs
917
917
  */
918
918
  log(o, ...t) {
919
- K.logLevel & P.DEBUG && this._log(String(o), A.DEBUG, t);
919
+ K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
920
920
  }
921
921
  /**
922
922
  * Logs a message
@@ -927,40 +927,40 @@ class Ne {
927
927
  */
928
928
  _log(o, t, r) {
929
929
  let i = o;
930
- this.className && (i = `[${this.className}] ${i}`), console[x.get(t)](i, ...r), t & A.ERROR && (console.group(), console.trace(), console.groupEnd());
930
+ this.className && (i = `[${this.className}] ${i}`), console[x.get(t)](i, ...r), t & N.ERROR && (console.group(), console.trace(), console.groupEnd());
931
931
  }
932
932
  }
933
- const ve = /* @__PURE__ */ new Map();
934
- let ce;
935
- function $o() {
936
- return ce || (ce = new Ne()), ce;
933
+ const ge = /* @__PURE__ */ new Map();
934
+ let me;
935
+ function _o() {
936
+ return me || (me = new Oe()), me;
937
937
  }
938
- function _o(e) {
939
- const o = new Ne(e);
940
- return ve.set(e, o), o;
938
+ function ko(e) {
939
+ const o = new Oe(e);
940
+ return ge.set(e, o), o;
941
941
  }
942
- function ge(e) {
943
- return e ? ve.has(e) ? ve.get(e) : _o(e) : $o();
942
+ function he(e) {
943
+ return e ? ge.has(e) ? ge.get(e) : ko(e) : _o();
944
944
  }
945
- function ko(e) {
945
+ function Uo(e) {
946
946
  try {
947
947
  if (e.serverUrl) {
948
948
  const o = new URL(
949
949
  e.serverUrl,
950
950
  window.location.href
951
951
  ).toString();
952
- Mo(o);
952
+ So(o);
953
953
  const t = e.token || localStorage.getItem("Meteor.loginToken");
954
- t && (So(t), ge(j).info("Publisher connection successful"));
954
+ t && (Vo(t), he(j).info("Publisher connection successful"));
955
955
  }
956
956
  } catch (o) {
957
- ge(j).error("Failed to connect to publisher", o);
957
+ he(j).error("Failed to connect to publisher", o);
958
958
  }
959
959
  }
960
- function Uo(e, o) {
960
+ function Ao(e, o) {
961
961
  return new Date(e).toLocaleString(o);
962
962
  }
963
- function Ao() {
963
+ function No() {
964
964
  return [
965
965
  {
966
966
  title: "moduleSelector.configEditor.moduleCloudPicker.headers.name",
@@ -995,20 +995,20 @@ function Ao() {
995
995
  }
996
996
  ];
997
997
  }
998
- const No = J({
998
+ const Oo = J({
999
999
  name: "CloudModuleSelector",
1000
1000
  components: {
1001
- VcsDataTable: De,
1002
- VcsFormButton: he,
1003
- VTooltip: Xe,
1004
- VIcon: _e,
1005
- VCard: Ve,
1006
- VcsLabel: be,
1007
- VcsTextField: se,
1008
- VcsFormSection: Me,
1001
+ VcsDataTable: qe,
1002
+ VcsFormButton: be,
1003
+ VTooltip: Ye,
1004
+ VIcon: ke,
1005
+ VCard: ye,
1006
+ VcsLabel: Me,
1007
+ VcsTextField: ae,
1008
+ VcsFormSection: Se,
1009
1009
  VRow: Q,
1010
1010
  VCol: X,
1011
- VForm: ke,
1011
+ VForm: Ue,
1012
1012
  VContainer: Z
1013
1013
  },
1014
1014
  props: {
@@ -1018,86 +1018,86 @@ const No = J({
1018
1018
  }
1019
1019
  },
1020
1020
  setup(e, { emit: o }) {
1021
- const t = Se("vcsApp"), r = t.plugins.getByKey(j), i = t.plugins.getByKey(
1021
+ const t = Ve("vcsApp"), r = t.plugins.getByKey(j), i = t.plugins.getByKey(
1022
1022
  "@vcmap/app-configurator"
1023
1023
  );
1024
- ko(i.config || r.config);
1025
- const l = k(!0), a = k([]), s = k(0), f = k(0), u = k([void 0]), C = Ao(), b = /* @__PURE__ */ new Map(), g = k(e.modelValue), R = H(() => g.value.id === ""), v = k(!1), y = () => {
1024
+ Uo(i.config || r.config);
1025
+ const l = k(!0), s = k([]), a = k(0), v = k(0), c = k([void 0]), C = No(), b = /* @__PURE__ */ new Map(), h = k(e.modelValue), R = H(() => h.value.id === ""), g = k(!1), y = () => {
1026
1026
  var D, L;
1027
- v.value = !!((D = g.value) != null && D.title) && !!((L = g.value) != null && L.icon);
1027
+ g.value = !!((D = h.value) != null && D.title) && !!((L = h.value) != null && L.icon);
1028
1028
  }, U = {
1029
1029
  standalone: "$vcsGlobeNature",
1030
1030
  extension: "$vcsShapes"
1031
1031
  };
1032
- function G(D) {
1033
- var _;
1034
- const { itemsPerPage: L, page: te, search: le, sortBy: ne, sortDesc: m } = D;
1035
- l.value = !0, (_ = i == null ? void 0 : i.config) != null && _.projectId && Co({
1032
+ function P(D) {
1033
+ var $;
1034
+ const { itemsPerPage: L, page: te, search: le, sortBy: ne, sortDesc: u } = D;
1035
+ l.value = !0, ($ = i == null ? void 0 : i.config) != null && $.projectId && $o({
1036
1036
  projectId: i.config.projectId,
1037
1037
  limit: L,
1038
1038
  page: te - 1,
1039
1039
  name: le,
1040
1040
  orderBy: ne,
1041
- sort: m != null && m[0] ? "desc" : "asc"
1042
- }).then((h) => {
1043
- a.value = h.items.map((w) => {
1041
+ sort: u != null && u[0] ? "desc" : "asc"
1042
+ }).then((p) => {
1043
+ s.value = p.items.map((M) => {
1044
1044
  var T, E;
1045
- const B = {
1046
- name: w.name,
1047
- description: w.description,
1048
- createdAt: w.createdAt,
1049
- updatedAt: w.updatedAt,
1050
- createdBy: (i == null ? void 0 : i.getUserName(w.createdBy)) || w.createdBy,
1051
- updatedBy: (i == null ? void 0 : i.getUserName(w.updatedBy)) || w.updatedBy,
1052
- _id: w._id
1045
+ const A = {
1046
+ name: M.name,
1047
+ description: M.description,
1048
+ createdAt: M.createdAt,
1049
+ updatedAt: M.updatedAt,
1050
+ createdBy: (i == null ? void 0 : i.getUserName(M.createdBy)) || M.createdBy,
1051
+ updatedBy: (i == null ? void 0 : i.getUserName(M.updatedBy)) || M.updatedBy,
1052
+ _id: M._id
1053
1053
  };
1054
- return (((T = w.maps) == null ? void 0 : T.length) ?? 0) > 0 && (((E = w.layers) == null ? void 0 : E.length) ?? 0) > 0 ? B.type = "standalone" : B.type = "extension", B.disabled = !!t.getModuleById(w._id), b.set(w._id, w), B;
1055
- }), s.value = h.totalCount, f.value = h.totalPages;
1056
- }).catch((h) => {
1057
- ge("CloudModuleSelector.vue").error(
1054
+ return (((T = M.maps) == null ? void 0 : T.length) ?? 0) > 0 && (((E = M.layers) == null ? void 0 : E.length) ?? 0) > 0 ? A.type = "standalone" : A.type = "extension", A.disabled = !!t.getModuleById(M._id), b.set(M._id, M), A;
1055
+ }), a.value = p.totalCount, v.value = p.totalPages;
1056
+ }).catch((p) => {
1057
+ he("CloudModuleSelector.vue").error(
1058
1058
  "Failed to load project modules.",
1059
- h
1059
+ p
1060
1060
  );
1061
1061
  }).finally(() => {
1062
1062
  l.value = !1;
1063
1063
  });
1064
1064
  }
1065
1065
  return {
1066
- selectedItem: g,
1066
+ selectedItem: h,
1067
1067
  isItemIdEmpty: R,
1068
1068
  loading: l,
1069
- items: a,
1070
- totalItems: s,
1071
- totalPages: f,
1069
+ items: s,
1070
+ totalItems: a,
1071
+ totalPages: v,
1072
1072
  headers: C,
1073
- selected: u,
1073
+ selected: c,
1074
1074
  typeIcon(D) {
1075
1075
  return U[D];
1076
1076
  },
1077
- formatDate: Uo,
1078
- getItems: G,
1077
+ formatDate: Ao,
1078
+ getItems: P,
1079
1079
  close: () => {
1080
1080
  o("close");
1081
1081
  },
1082
1082
  addSelected: () => {
1083
1083
  var D;
1084
- u.value.length > 0 && ((D = u.value[0]) == null ? void 0 : D._id) !== "" && (g.value.id = u.value[0]._id, g.value.title = u.value[0].name, g.value.icon = "", g.value.moduleUrl = `configs/${u.value[0]._id}.json`);
1084
+ c.value.length > 0 && ((D = c.value[0]) == null ? void 0 : D._id) !== "" && (h.value.id = c.value[0]._id, h.value.title = c.value[0].name, h.value.icon = "", h.value.moduleUrl = `configs/${c.value[0]._id}.json`);
1085
1085
  },
1086
- isFValid: v,
1086
+ isFValid: g,
1087
1087
  validateForm: y,
1088
1088
  removeSelected: () => {
1089
- g.value.id = "", g.value.title = "", g.value.icon = "", g.value.moduleUrl = "";
1089
+ h.value.id = "", h.value.title = "", h.value.icon = "", h.value.moduleUrl = "";
1090
1090
  },
1091
1091
  requiredRule: (D) => !!D || "moduleSelector.configEditor.editorError"
1092
1092
  };
1093
1093
  }
1094
1094
  }), Bo = { class: "d-flex px-2" };
1095
- function Oo(e, o, t, r, i, l) {
1096
- const a = c("v-icon"), s = c("v-tooltip"), f = c("VcsDataTable"), u = c("VcsLabel"), C = c("v-col"), b = c("VcsTextField"), g = c("v-row"), R = c("v-container"), v = c("v-form"), y = c("VcsFormSection"), U = c("VcsFormButton"), G = c("v-card");
1097
- return I(), $(G, null, {
1095
+ function To(e, o, t, r, i, l) {
1096
+ const s = m("v-icon"), a = m("v-tooltip"), v = m("VcsDataTable"), c = m("VcsLabel"), C = m("v-col"), b = m("VcsTextField"), h = m("v-row"), R = m("v-container"), g = m("v-form"), y = m("VcsFormSection"), U = m("VcsFormButton"), P = m("v-card");
1097
+ return I(), _(P, null, {
1098
1098
  default: n(() => [
1099
- pe("div", null, [
1100
- e.isItemIdEmpty ? (I(), $(f, {
1099
+ fe("div", null, [
1100
+ e.isItemIdEmpty ? (I(), _(v, {
1101
1101
  key: 0,
1102
1102
  "base-component": "VDataTableServer",
1103
1103
  loading: e.loading,
@@ -1111,17 +1111,17 @@ function Oo(e, o, t, r, i, l) {
1111
1111
  "show-select": "",
1112
1112
  "item-value": "_id",
1113
1113
  modelValue: e.selected,
1114
- "onUpdate:modelValue": o[0] || (o[0] = (N) => e.selected = N),
1114
+ "onUpdate:modelValue": o[0] || (o[0] = (O) => e.selected = O),
1115
1115
  "onUpdate:items": e.getItems
1116
1116
  }, {
1117
- "item.type": n(({ item: N }) => [
1117
+ "item.type": n(({ item: O }) => [
1118
1118
  d(
1119
- a,
1120
- ze(We({ ...e.$attrs })),
1119
+ s,
1120
+ We(He({ ...e.$attrs })),
1121
1121
  {
1122
1122
  default: n(() => [
1123
- S(
1124
- V(e.typeIcon(N.type)),
1123
+ V(
1124
+ w(e.typeIcon(O.type)),
1125
1125
  1
1126
1126
  /* TEXT */
1127
1127
  )
@@ -1133,15 +1133,15 @@ function Oo(e, o, t, r, i, l) {
1133
1133
  /* FULL_PROPS, DYNAMIC_SLOTS */
1134
1134
  ),
1135
1135
  d(
1136
- s,
1136
+ a,
1137
1137
  {
1138
1138
  activator: "parent",
1139
1139
  location: "right"
1140
1140
  },
1141
1141
  {
1142
1142
  default: n(() => [
1143
- S(
1144
- V(e.$t(`appConfigurator.dialogs.vcsModuleTable.${N.type}`)),
1143
+ V(
1144
+ w(e.$t(`appConfigurator.dialogs.vcsModuleTable.${O.type}`)),
1145
1145
  1
1146
1146
  /* TEXT */
1147
1147
  )
@@ -1153,46 +1153,46 @@ function Oo(e, o, t, r, i, l) {
1153
1153
  /* DYNAMIC_SLOTS */
1154
1154
  )
1155
1155
  ]),
1156
- "item.createdAt": n(({ item: N }) => [
1157
- S(
1158
- V(e.formatDate(N.createdAt, e.$i18n.locale)),
1156
+ "item.createdAt": n(({ item: O }) => [
1157
+ V(
1158
+ w(e.formatDate(O.createdAt, e.$i18n.locale)),
1159
1159
  1
1160
1160
  /* TEXT */
1161
1161
  )
1162
1162
  ]),
1163
- "item.updatedAt": n(({ item: N }) => [
1164
- S(
1165
- V(e.formatDate(N.updatedAt, e.$i18n.locale)),
1163
+ "item.updatedAt": n(({ item: O }) => [
1164
+ V(
1165
+ w(e.formatDate(O.updatedAt, e.$i18n.locale)),
1166
1166
  1
1167
1167
  /* TEXT */
1168
1168
  )
1169
1169
  ]),
1170
1170
  _: 1
1171
1171
  /* STABLE */
1172
- }, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "modelValue", "onUpdate:items"])) : (I(), $(y, { key: 1 }, {
1172
+ }, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "modelValue", "onUpdate:items"])) : (I(), _(y, { key: 1 }, {
1173
1173
  default: n(() => [
1174
- d(v, {
1174
+ d(g, {
1175
1175
  modelValue: e.isFValid,
1176
- "onUpdate:modelValue": o[3] || (o[3] = (N) => e.isFValid = N),
1176
+ "onUpdate:modelValue": o[3] || (o[3] = (O) => e.isFValid = O),
1177
1177
  ref: "form"
1178
1178
  }, {
1179
1179
  default: n(() => [
1180
1180
  d(R, { class: "px-2 pt-0 pb-2" }, {
1181
1181
  default: n(() => [
1182
- d(g, {
1182
+ d(h, {
1183
1183
  "no-gutters": "",
1184
1184
  class: "px-2"
1185
1185
  }, {
1186
1186
  default: n(() => [
1187
1187
  d(C, { cols: "2" }, {
1188
1188
  default: n(() => [
1189
- d(u, {
1189
+ d(c, {
1190
1190
  required: "",
1191
1191
  "html-for": "moduleName"
1192
1192
  }, {
1193
1193
  default: n(() => [
1194
- S(
1195
- V(e.$st("moduleSelector.configEditor.moduleName")),
1194
+ V(
1195
+ w(e.$st("moduleSelector.configEditor.moduleName")),
1196
1196
  1
1197
1197
  /* TEXT */
1198
1198
  )
@@ -1210,7 +1210,7 @@ function Oo(e, o, t, r, i, l) {
1210
1210
  id: "moduleName",
1211
1211
  placeholder: "Module Name",
1212
1212
  modelValue: e.selectedItem.title,
1213
- "onUpdate:modelValue": o[1] || (o[1] = (N) => e.selectedItem.title = N),
1213
+ "onUpdate:modelValue": o[1] || (o[1] = (O) => e.selectedItem.title = O),
1214
1214
  rules: [e.requiredRule]
1215
1215
  }, null, 8, ["modelValue", "rules"])
1216
1216
  ]),
@@ -1221,20 +1221,20 @@ function Oo(e, o, t, r, i, l) {
1221
1221
  _: 1
1222
1222
  /* STABLE */
1223
1223
  }),
1224
- d(g, {
1224
+ d(h, {
1225
1225
  "no-gutters": "",
1226
1226
  class: "px-2"
1227
1227
  }, {
1228
1228
  default: n(() => [
1229
1229
  d(C, { cols: "2" }, {
1230
1230
  default: n(() => [
1231
- d(u, {
1231
+ d(c, {
1232
1232
  required: "",
1233
1233
  "html-for": "moduleIcon"
1234
1234
  }, {
1235
1235
  default: n(() => [
1236
- S(
1237
- V(e.$st("moduleSelector.configEditor.moduleIcon")),
1236
+ V(
1237
+ w(e.$st("moduleSelector.configEditor.moduleIcon")),
1238
1238
  1
1239
1239
  /* TEXT */
1240
1240
  )
@@ -1252,7 +1252,7 @@ function Oo(e, o, t, r, i, l) {
1252
1252
  id: "moduleIcon",
1253
1253
  placeholder: "Icon Name",
1254
1254
  modelValue: e.selectedItem.icon,
1255
- "onUpdate:modelValue": o[2] || (o[2] = (N) => e.selectedItem.icon = N),
1255
+ "onUpdate:modelValue": o[2] || (o[2] = (O) => e.selectedItem.icon = O),
1256
1256
  rules: [e.requiredRule]
1257
1257
  }, null, 8, ["modelValue", "rules"])
1258
1258
  ]),
@@ -1275,8 +1275,8 @@ function Oo(e, o, t, r, i, l) {
1275
1275
  _: 1
1276
1276
  /* STABLE */
1277
1277
  })),
1278
- pe("div", Bo, [
1279
- e.isItemIdEmpty ? (I(), $(U, {
1278
+ fe("div", Bo, [
1279
+ e.isItemIdEmpty ? (I(), _(U, {
1280
1280
  key: 0,
1281
1281
  variant: "filled",
1282
1282
  disabled: e.selected[0] === void 0,
@@ -1286,8 +1286,8 @@ function Oo(e, o, t, r, i, l) {
1286
1286
  "tooltip-position": "bottom"
1287
1287
  }, {
1288
1288
  default: n(() => [
1289
- S(
1290
- V(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
1289
+ V(
1290
+ w(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
1291
1291
  1
1292
1292
  /* TEXT */
1293
1293
  )
@@ -1295,7 +1295,7 @@ function Oo(e, o, t, r, i, l) {
1295
1295
  _: 1
1296
1296
  /* STABLE */
1297
1297
  }, 8, ["disabled", "onClick"])) : q("v-if", !0),
1298
- e.isItemIdEmpty ? q("v-if", !0) : (I(), $(U, {
1298
+ e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
1299
1299
  key: 1,
1300
1300
  disabled: !e.isFValid,
1301
1301
  variant: "filled",
@@ -1305,8 +1305,8 @@ function Oo(e, o, t, r, i, l) {
1305
1305
  })
1306
1306
  }, {
1307
1307
  default: n(() => [
1308
- S(
1309
- V(e.$t("components.apply")),
1308
+ V(
1309
+ w(e.$t("components.apply")),
1310
1310
  1
1311
1311
  /* TEXT */
1312
1312
  )
@@ -1314,14 +1314,14 @@ function Oo(e, o, t, r, i, l) {
1314
1314
  _: 1
1315
1315
  /* STABLE */
1316
1316
  }, 8, ["disabled"])),
1317
- e.isItemIdEmpty ? q("v-if", !0) : (I(), $(U, {
1317
+ e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
1318
1318
  key: 2,
1319
1319
  onClick: e.removeSelected,
1320
1320
  class: "ma-2"
1321
1321
  }, {
1322
1322
  default: n(() => [
1323
- S(
1324
- V(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
1323
+ V(
1324
+ w(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
1325
1325
  1
1326
1326
  /* TEXT */
1327
1327
  )
@@ -1334,8 +1334,8 @@ function Oo(e, o, t, r, i, l) {
1334
1334
  onClick: e.close
1335
1335
  }, {
1336
1336
  default: n(() => [
1337
- S(
1338
- V(e.$t("components.cancel")),
1337
+ V(
1338
+ w(e.$t("components.cancel")),
1339
1339
  1
1340
1340
  /* TEXT */
1341
1341
  )
@@ -1350,24 +1350,24 @@ function Oo(e, o, t, r, i, l) {
1350
1350
  /* STABLE */
1351
1351
  });
1352
1352
  }
1353
- const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1353
+ const Fo = /* @__PURE__ */ Y(Oo, [["render", To]]), Ro = J({
1354
1354
  name: "ModuleSelectorConfigEditor",
1355
1355
  components: {
1356
- VcsCheckbox: $e,
1357
- VDialog: Ye,
1358
- VcsList: qe,
1359
- VcsFormSection: Me,
1356
+ VcsCheckbox: _e,
1357
+ VDialog: xe,
1358
+ VcsList: Pe,
1359
+ VcsFormSection: Se,
1360
1360
  VRow: Q,
1361
- VcsLabel: be,
1362
- AbstractConfigEditor: Pe,
1363
- VcsTextField: se,
1361
+ VcsLabel: Me,
1362
+ AbstractConfigEditor: Ge,
1363
+ VcsTextField: ae,
1364
1364
  VCol: X,
1365
1365
  VContainer: Z,
1366
- ModuleEditor: vo,
1367
- VBreadcrumbs: xe,
1368
- VBreadcrumbsItem: eo,
1369
- WindowPositionSettings: bo,
1370
- VcsModuleTable: To
1366
+ ModuleEditor: go,
1367
+ VBreadcrumbs: eo,
1368
+ VBreadcrumbsItem: oo,
1369
+ WindowPositionSettings: Mo,
1370
+ VcsModuleTable: Fo
1371
1371
  },
1372
1372
  props: {
1373
1373
  getConfig: {
@@ -1381,42 +1381,42 @@ const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1381
1381
  },
1382
1382
  setup(e) {
1383
1383
  var te, le, ne;
1384
- const o = Se("vcsApp"), t = k(0), r = k(void 0), i = k([]), l = k(void 0), a = k({ id: "", title: "", icon: "", moduleUrl: "" }), s = k({ id: "", title: "", icon: "", moduleUrl: "" }), f = k(!1), u = k(!1), C = k(!1), b = k(void 0);
1384
+ const o = Ve("vcsApp"), t = k(0), r = k(void 0), i = k([]), l = k(void 0), s = k({ id: "", title: "", icon: "", moduleUrl: "" }), a = k({ id: "", title: "", icon: "", moduleUrl: "" }), v = k(!1), c = k(!1), C = k(!1), b = k(void 0);
1385
1385
  r.value = {
1386
1386
  ...re(),
1387
1387
  ...e.getConfig()
1388
1388
  };
1389
- const g = k();
1390
- (te = r.value) != null && te.basisModule && (g.value = (le = r.value) == null ? void 0 : le.basisModule);
1389
+ const h = k();
1390
+ (te = r.value) != null && te.basisModule && (h.value = (le = r.value) == null ? void 0 : le.basisModule);
1391
1391
  const R = H({
1392
1392
  get() {
1393
- return !!g.value;
1393
+ return !!h.value;
1394
1394
  },
1395
- set(m) {
1396
- var _;
1397
- m ? g.value = ((_ = r.value) == null ? void 0 : _.basisModule) || { title: "" } : g.value = null;
1395
+ set(u) {
1396
+ var $;
1397
+ u ? h.value = (($ = r.value) == null ? void 0 : $.basisModule) || { title: "" } : h.value = null;
1398
1398
  }
1399
- }), v = He([]);
1400
- function y(m, _) {
1401
- var w, B, T;
1402
- const h = {
1403
- id: `${m.title || "undefined"}-${_}`,
1404
- name: m.title,
1405
- title: m.title,
1406
- icon: m.icon,
1407
- type: m.type,
1399
+ }), g = Ke([]);
1400
+ function y(u, $) {
1401
+ var M, A, T;
1402
+ const p = {
1403
+ id: `${u.title || "undefined"}-${$}`,
1404
+ name: u.title,
1405
+ title: u.title,
1406
+ icon: u.icon,
1407
+ type: u.type,
1408
1408
  actions: []
1409
1409
  };
1410
- return m.type === "url" && (h.moduleUrl = m.moduleUrl, (w = h.actions) == null || w.push({
1410
+ return u.type === "url" && (p.moduleUrl = u.moduleUrl, (M = p.actions) == null || M.push({
1411
1411
  name: "edit",
1412
1412
  title: "moduleSelector.configEditor.TooltipEditModule",
1413
1413
  icon: "$vcsEdit",
1414
1414
  callback() {
1415
1415
  if (l.value === void 0 && i.value.length > 0) {
1416
1416
  const E = i.value.find(
1417
- (F) => F.id === h.id
1417
+ (F) => F.id === p.id
1418
1418
  );
1419
- E && (a.value = {
1419
+ E && (s.value = {
1420
1420
  id: E.id,
1421
1421
  title: E.title,
1422
1422
  icon: E.icon,
@@ -1424,188 +1424,192 @@ const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1424
1424
  });
1425
1425
  } else {
1426
1426
  const E = l.value.cards.find(
1427
- (F) => F.id === h.id
1427
+ (F) => F.id === p.id
1428
1428
  );
1429
- E && (a.value = {
1429
+ E && (s.value = {
1430
1430
  id: E.id,
1431
1431
  title: E.title,
1432
1432
  icon: E.icon,
1433
1433
  moduleUrl: E.moduleUrl
1434
1434
  });
1435
1435
  }
1436
- u.value = !0;
1436
+ c.value = !0;
1437
1437
  }
1438
- })), m.type === "group" && ((B = h.actions) == null || B.push({
1438
+ })), u.type === "group" && ((A = p.actions) == null || A.push({
1439
1439
  name: "editGroup",
1440
1440
  title: "moduleSelector.configEditor.TooltipEditGroup",
1441
1441
  icon: "mdi-playlist-edit",
1442
1442
  callback() {
1443
1443
  if (i.value.length > 0) {
1444
1444
  const E = i.value.find(
1445
- (F) => F.id === h.id
1445
+ (F) => F.id === p.id
1446
1446
  );
1447
- E && (l.value = E, v.splice(2, 1), v.length > 1 && (v[1].icon = "$vcsPlus", v[1].title = "moduleSelector.configEditor.TooltipAddModule"));
1447
+ E && (l.value = E, g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule"));
1448
1448
  }
1449
1449
  }
1450
- }), m.cards && (h.cards = m.cards.map(y))), (T = h.actions) == null || T.push({
1450
+ }), u.cards && (p.cards = u.cards.map(y))), (T = p.actions) == null || T.push({
1451
1451
  name: "linkButton.editor.remove",
1452
1452
  title: "moduleSelector.configEditor.TooltipDeleteMG",
1453
1453
  icon: "$vcsTrashCan",
1454
1454
  callback() {
1455
- var E, F, M;
1455
+ var E, F, S;
1456
1456
  l.value ? l.value.cards = (F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.filter(
1457
- (O) => O.id !== h.id
1458
- ) : i.value = (M = i.value) == null ? void 0 : M.filter(
1459
- (O) => O.id !== h.id
1457
+ (B) => B.id !== p.id
1458
+ ) : i.value = (S = i.value) == null ? void 0 : S.filter(
1459
+ (B) => B.id !== p.id
1460
1460
  );
1461
1461
  }
1462
- }), h;
1462
+ }), p;
1463
1463
  }
1464
- v.push({
1464
+ g.push({
1465
1465
  name: "moduleSelector.configEditor.addFromCloud",
1466
1466
  icon: "$vcsImport",
1467
1467
  callback() {
1468
- s.value = {
1468
+ a.value = {
1469
1469
  id: "",
1470
1470
  title: "",
1471
1471
  icon: "",
1472
1472
  moduleUrl: ""
1473
- }, f.value = !0;
1473
+ }, v.value = !0;
1474
1474
  }
1475
1475
  });
1476
- function U(m) {
1477
- var _;
1478
- if (m.type === "url") {
1479
- const { actions: h, id: w, name: B, ...T } = m;
1476
+ function U(u) {
1477
+ var $;
1478
+ if (u.type === "url") {
1479
+ const { actions: p, id: M, name: A, ...T } = u;
1480
1480
  return {
1481
1481
  ...T,
1482
- moduleUrl: m.moduleUrl || ""
1482
+ moduleUrl: u.moduleUrl || ""
1483
1483
  };
1484
1484
  } else {
1485
- const h = ((_ = m.cards) == null ? void 0 : _.map((F) => {
1486
- const { actions: M, id: O, name: z, ...Be } = F;
1485
+ const p = (($ = u.cards) == null ? void 0 : $.map((F) => {
1486
+ const { actions: S, id: B, name: z, ...Be } = F;
1487
1487
  return {
1488
1488
  ...Be
1489
1489
  };
1490
- })) || [], { actions: w, id: B, name: T, ...E } = m;
1490
+ })) || [], { actions: M, id: A, name: T, ...E } = u;
1491
1491
  return {
1492
1492
  ...E,
1493
- ...h.length ? { cards: h } : {}
1493
+ ...p.length ? { cards: p } : {}
1494
1494
  };
1495
1495
  }
1496
1496
  }
1497
- const G = {
1497
+ const P = {
1498
1498
  name: "moduleSelector.configEditor.addGroup",
1499
1499
  callback() {
1500
- var h;
1501
- const m = {
1500
+ var p;
1501
+ const u = {
1502
1502
  type: "group",
1503
1503
  title: "",
1504
1504
  icon: "",
1505
1505
  cards: []
1506
1506
  };
1507
1507
  C.value = !0;
1508
- const _ = (h = i.value) == null ? void 0 : h.push(
1508
+ const $ = (p = i.value) == null ? void 0 : p.push(
1509
1509
  y(
1510
- m,
1510
+ u,
1511
1511
  i.value.length
1512
1512
  )
1513
1513
  );
1514
- l.value = i.value[_ - 1], v.splice(2, 1), v.length > 1 && (v[1].icon = "$vcsPlus", v[1].title = "moduleSelector.configEditor.TooltipAddModule");
1514
+ l.value = i.value[$ - 1], g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule");
1515
1515
  }
1516
1516
  };
1517
- function N(m) {
1518
- return m.map(U);
1517
+ function O(u) {
1518
+ return u.map(U);
1519
1519
  }
1520
- (ne = r.value) != null && ne.modules && (i.value = r.value.modules.map(y)), v.push(
1520
+ (ne = r.value) != null && ne.modules && (i.value = r.value.modules.map(y)), g.push(
1521
1521
  {
1522
1522
  name: "moduleSelector.configEditor.add",
1523
1523
  callback() {
1524
- a.value = {
1524
+ s.value = {
1525
1525
  id: "",
1526
1526
  title: "",
1527
1527
  icon: "",
1528
1528
  moduleUrl: ""
1529
- }, u.value = !0;
1529
+ }, c.value = !0;
1530
1530
  }
1531
1531
  },
1532
- G
1533
- ), we(r, (m) => {
1534
- m != null && m.modules ? b.value = m.modules.map(
1535
- (_, h) => y(_, h)
1532
+ P
1533
+ ), Ee(r, (u) => {
1534
+ u != null && u.modules ? b.value = u.modules.map(
1535
+ ($, p) => y($, p)
1536
1536
  ) : b.value = [];
1537
1537
  });
1538
1538
  const ee = () => {
1539
- e.setConfig({
1540
- ...r.value,
1541
- modules: N(i.value),
1542
- basisModule: g.value
1543
- });
1539
+ var M;
1540
+ const u = ue((M = r.value) == null ? void 0 : M.position), $ = Object.values(u).some(
1541
+ (A) => A !== void 0
1542
+ ), p = {
1543
+ ...ue(r.value),
1544
+ modules: O(i.value),
1545
+ basisModule: ue(h.value)
1546
+ };
1547
+ $ ? p.position = u : delete p.position, e.setConfig(p);
1544
1548
  }, oe = () => {
1545
- var m, _, h, w, B, T, E, F;
1549
+ var u, $, p, M, A, T, E, F;
1546
1550
  if (l.value === void 0) {
1547
- if (a.value)
1548
- if (((m = a.value) == null ? void 0 : m.id) !== "") {
1549
- const M = i.value.find(
1550
- (O) => {
1551
+ if (s.value)
1552
+ if (((u = s.value) == null ? void 0 : u.id) !== "") {
1553
+ const S = i.value.find(
1554
+ (B) => {
1551
1555
  var z;
1552
- return O.id === ((z = a.value) == null ? void 0 : z.id);
1556
+ return B.id === ((z = s.value) == null ? void 0 : z.id);
1553
1557
  }
1554
1558
  );
1555
- M && Object.assign(M, {
1556
- ...a.value
1559
+ S && Object.assign(S, {
1560
+ ...s.value
1557
1561
  });
1558
1562
  } else
1559
1563
  i.value.push(
1560
1564
  y(
1561
1565
  {
1562
- ...a.value,
1566
+ ...s.value,
1563
1567
  type: "url"
1564
1568
  },
1565
1569
  i.value.length
1566
1570
  )
1567
1571
  );
1568
- } else if (a.value && ((_ = a.value) == null ? void 0 : _.id) !== "") {
1569
- const M = l.value.cards.find(
1570
- (z) => z.id === a.value.id
1572
+ } else if (s.value && (($ = s.value) == null ? void 0 : $.id) !== "") {
1573
+ const S = l.value.cards.find(
1574
+ (z) => z.id === s.value.id
1571
1575
  );
1572
- M && Object.assign(M, {
1573
- ...a.value
1576
+ S && Object.assign(S, {
1577
+ ...s.value
1574
1578
  });
1575
- let O;
1576
- (h = l.value) != null && h.id || ((w = l.value) == null ? void 0 : w.id) !== "" ? O = l.value.id : O = `${l.value.title}-${i.value.length - 1}`, l.value = i.value.find(
1577
- (z) => z.id === O
1579
+ let B;
1580
+ (p = l.value) != null && p.id || ((M = l.value) == null ? void 0 : M.id) !== "" ? B = l.value.id : B = `${l.value.title}-${i.value.length - 1}`, l.value = i.value.find(
1581
+ (z) => z.id === B
1578
1582
  );
1579
1583
  } else {
1580
1584
  l.value.cards.push(
1581
1585
  y(
1582
1586
  {
1583
- ...a.value,
1587
+ ...s.value,
1584
1588
  type: "url"
1585
1589
  },
1586
1590
  l.value.cards.length
1587
1591
  )
1588
1592
  );
1589
- let M;
1590
- (B = l.value) != null && B.id || ((T = l.value) == null ? void 0 : T.id) !== "" ? M = l.value.id : M = `${(E = l.value) == null ? void 0 : E.title}-${i.value.length - 1}`, l.value = (F = i.value) == null ? void 0 : F.find(
1591
- (O) => O.id === M
1593
+ let S;
1594
+ (A = l.value) != null && A.id || ((T = l.value) == null ? void 0 : T.id) !== "" ? S = l.value.id : S = `${(E = l.value) == null ? void 0 : E.title}-${i.value.length - 1}`, l.value = (F = i.value) == null ? void 0 : F.find(
1595
+ (B) => B.id === S
1592
1596
  );
1593
1597
  }
1594
- a.value = {
1598
+ s.value = {
1595
1599
  id: "",
1596
1600
  title: "",
1597
1601
  icon: "",
1598
1602
  moduleUrl: ""
1599
- }, u.value = !1;
1600
- }, p = () => {
1601
- var m, _, h, w;
1603
+ }, c.value = !1;
1604
+ }, f = () => {
1605
+ var u, $, p, M;
1602
1606
  if (l.value === void 0)
1603
- s.value && i.value.push(
1607
+ a.value && i.value.push(
1604
1608
  y(
1605
1609
  {
1606
- title: s.value.title,
1607
- icon: s.value.icon,
1608
- moduleUrl: s.value.moduleUrl,
1610
+ title: a.value.title,
1611
+ icon: a.value.icon,
1612
+ moduleUrl: a.value.moduleUrl,
1609
1613
  type: "url"
1610
1614
  },
1611
1615
  i.value.length
@@ -1615,25 +1619,25 @@ const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1615
1619
  l.value.cards.push(
1616
1620
  y(
1617
1621
  {
1618
- ...s.value,
1622
+ ...a.value,
1619
1623
  type: "url"
1620
1624
  },
1621
1625
  l.value.cards.length
1622
1626
  )
1623
1627
  );
1624
- let B;
1625
- (m = l.value) != null && m.id || ((_ = l.value) == null ? void 0 : _.id) !== "" ? B = l.value.id : B = `${(h = l.value) == null ? void 0 : h.title}-${i.value.length - 1}`, l.value = (w = i.value) == null ? void 0 : w.find(
1626
- (T) => T.id === B
1628
+ let A;
1629
+ (u = l.value) != null && u.id || (($ = l.value) == null ? void 0 : $.id) !== "" ? A = l.value.id : A = `${(p = l.value) == null ? void 0 : p.title}-${i.value.length - 1}`, l.value = (M = i.value) == null ? void 0 : M.find(
1630
+ (T) => T.id === A
1627
1631
  );
1628
1632
  }
1629
- s.value = {
1633
+ a.value = {
1630
1634
  id: "",
1631
1635
  title: "",
1632
1636
  icon: "",
1633
1637
  moduleUrl: ""
1634
- }, f.value = !1;
1638
+ }, v.value = !1;
1635
1639
  }, D = () => {
1636
- l.value = void 0, v.length > 1 && (delete v[1].icon, delete v[1].title), v.push(G);
1640
+ l.value = void 0, g.length > 1 && (delete g[1].icon, delete g[1].title), g.push(P);
1637
1641
  }, L = k([
1638
1642
  {
1639
1643
  title: o.vueI18n.t(
@@ -1648,13 +1652,13 @@ const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1648
1652
  href: "#"
1649
1653
  }
1650
1654
  ]);
1651
- return we(l, (m) => {
1652
- m && m.title && (L.value[1].title = `${o.vueI18n.t("moduleSelector.configEditor.breadcrumbs.group")}: ${m.title}`, m.name = m.title);
1655
+ return Ee(l, (u) => {
1656
+ u && u.title && (L.value[1].title = `${o.vueI18n.t("moduleSelector.configEditor.breadcrumbs.group")}: ${u.title}`, u.name = u.title);
1653
1657
  }), {
1654
- editingItem: a,
1655
- selectCloudItem: s,
1656
- editingItemDialogVisible: u,
1657
- selectCloudItemDialogVisible: f,
1658
+ editingItem: s,
1659
+ selectCloudItem: a,
1660
+ editingItemDialogVisible: c,
1661
+ selectCloudItemDialogVisible: v,
1658
1662
  localConfig: r,
1659
1663
  listItemArray: i,
1660
1664
  breadcrumbItems: L,
@@ -1662,56 +1666,56 @@ const To = /* @__PURE__ */ Y(No, [["render", Oo]]), Fo = J({
1662
1666
  apply: ee,
1663
1667
  returnLevel: D,
1664
1668
  updateItem: oe,
1665
- updateCloudItem: p,
1669
+ updateCloudItem: f,
1666
1670
  level: t,
1667
1671
  listItems: b,
1668
- basisModule: g,
1672
+ basisModule: h,
1669
1673
  basisModuleExists: R,
1670
- headerActions: v,
1674
+ headerActions: g,
1671
1675
  move({
1672
- item: m,
1673
- targetIndex: _
1676
+ item: u,
1677
+ targetIndex: $
1674
1678
  }) {
1675
- var h, w, B, T, E, F;
1679
+ var p, M, A, T, E, F;
1676
1680
  if (i.value && l.value === void 0) {
1677
- let M = _;
1678
- M = M >= 0 ? M : 0, M = M < ((h = i.value) == null ? void 0 : h.length) ? M : i.value.length - 1;
1679
- const O = (w = i.value) == null ? void 0 : w.indexOf(m);
1680
- O !== M && ((B = i.value) == null || B.splice(O, 1), (T = i.value) == null || T.splice(M, 0, m));
1681
+ let S = $;
1682
+ S = S >= 0 ? S : 0, S = S < ((p = i.value) == null ? void 0 : p.length) ? S : i.value.length - 1;
1683
+ const B = (M = i.value) == null ? void 0 : M.indexOf(u);
1684
+ B !== S && ((A = i.value) == null || A.splice(B, 1), (T = i.value) == null || T.splice(S, 0, u));
1681
1685
  } else if ((((F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.length) ?? 0) > 1) {
1682
- let M = _;
1683
- M = M >= 0 ? M : 0, M = M < l.value.cards.length ? M : l.value.cards.length - 1;
1684
- const O = l.value.cards.indexOf(m);
1685
- O && O !== M && (l.value.cards.splice(O, 1), l.value.cards.splice(M, 0, m));
1686
+ let S = $;
1687
+ S = S >= 0 ? S : 0, S = S < l.value.cards.length ? S : l.value.cards.length - 1;
1688
+ const B = l.value.cards.indexOf(u);
1689
+ B && B !== S && (l.value.cards.splice(B, 1), l.value.cards.splice(S, 0, u));
1686
1690
  }
1687
1691
  }
1688
1692
  };
1689
1693
  }
1690
1694
  });
1691
- function Ro(e, o, t, r, i, l) {
1692
- const a = c("VcsLabel"), s = c("v-col"), f = c("VcsTextField"), u = c("v-row"), C = c("VcsCheckbox"), b = c("v-container"), g = c("VcsFormSection"), R = c("WindowPositionSettings"), v = c("v-breadcrumbs-item"), y = c("v-breadcrumbs"), U = c("VcsList"), G = c("ModuleEditor"), N = c("v-dialog"), ee = c("VcsModuleTable"), oe = c("AbstractConfigEditor");
1693
- return e.localConfig ? (I(), $(oe, Ke({
1695
+ function Do(e, o, t, r, i, l) {
1696
+ const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("VcsCheckbox"), b = m("v-container"), h = m("VcsFormSection"), R = m("v-breadcrumbs-item"), g = m("v-breadcrumbs"), y = m("VcsList"), U = m("ModuleEditor"), P = m("v-dialog"), O = m("VcsModuleTable"), ee = m("WindowPositionSettings"), oe = m("AbstractConfigEditor");
1697
+ return e.localConfig ? (I(), _(oe, Je({
1694
1698
  key: 0,
1695
1699
  onSubmit: e.apply
1696
1700
  }, { ...e.$attrs, ...e.$props }), {
1697
1701
  default: n(() => [
1698
- e.currentGroup === void 0 ? (I(), $(b, {
1702
+ e.currentGroup === void 0 ? (I(), _(b, {
1699
1703
  key: 0,
1700
1704
  class: "py-0 px-0"
1701
1705
  }, {
1702
1706
  default: n(() => [
1703
- d(g, { heading: "moduleSelector.configEditor.general" }, {
1707
+ d(h, { heading: "moduleSelector.configEditor.general" }, {
1704
1708
  default: n(() => [
1705
1709
  d(b, { class: "py-0 px-1" }, {
1706
1710
  default: n(() => [
1707
- d(u, { "no-gutters": "" }, {
1711
+ d(c, { "no-gutters": "" }, {
1708
1712
  default: n(() => [
1709
- d(s, { cols: "6" }, {
1713
+ d(a, { cols: "6" }, {
1710
1714
  default: n(() => [
1711
- d(a, { "html-for": "moduleselector-window-title" }, {
1715
+ d(s, { "html-for": "moduleselector-window-title" }, {
1712
1716
  default: n(() => [
1713
- S(
1714
- V(e.$st("moduleSelector.configEditor.windowTitle")),
1717
+ V(
1718
+ w(e.$st("moduleSelector.configEditor.windowTitle")),
1715
1719
  1
1716
1720
  /* TEXT */
1717
1721
  )
@@ -1723,13 +1727,13 @@ function Ro(e, o, t, r, i, l) {
1723
1727
  _: 1
1724
1728
  /* STABLE */
1725
1729
  }),
1726
- d(s, null, {
1730
+ d(a, null, {
1727
1731
  default: n(() => [
1728
- d(f, {
1732
+ d(v, {
1729
1733
  id: "moduleselector-window-title",
1730
1734
  placeholder: e.$st("moduleSelector.title"),
1731
1735
  modelValue: e.localConfig.windowTitle,
1732
- "onUpdate:modelValue": o[0] || (o[0] = (p) => e.localConfig.windowTitle = p)
1736
+ "onUpdate:modelValue": o[0] || (o[0] = (f) => e.localConfig.windowTitle = f)
1733
1737
  }, null, 8, ["placeholder", "modelValue"])
1734
1738
  ]),
1735
1739
  _: 1
@@ -1739,13 +1743,13 @@ function Ro(e, o, t, r, i, l) {
1739
1743
  _: 1
1740
1744
  /* STABLE */
1741
1745
  }),
1742
- d(u, { "no-gutters": "" }, {
1746
+ d(c, { "no-gutters": "" }, {
1743
1747
  default: n(() => [
1744
- d(s, null, {
1748
+ d(a, null, {
1745
1749
  default: n(() => [
1746
1750
  d(C, {
1747
1751
  modelValue: e.localConfig.isActiveOnStart,
1748
- "onUpdate:modelValue": o[1] || (o[1] = (p) => e.localConfig.isActiveOnStart = p),
1752
+ "onUpdate:modelValue": o[1] || (o[1] = (f) => e.localConfig.isActiveOnStart = f),
1749
1753
  label: "moduleSelector.configEditor.isActiveOnStart"
1750
1754
  }, null, 8, ["modelValue"])
1751
1755
  ]),
@@ -1756,13 +1760,13 @@ function Ro(e, o, t, r, i, l) {
1756
1760
  _: 1
1757
1761
  /* STABLE */
1758
1762
  }),
1759
- d(u, { "no-gutters": "" }, {
1763
+ d(c, { "no-gutters": "" }, {
1760
1764
  default: n(() => [
1761
- d(s, null, {
1765
+ d(a, null, {
1762
1766
  default: n(() => [
1763
1767
  d(C, {
1764
1768
  modelValue: e.localConfig.requireModuleSelection,
1765
- "onUpdate:modelValue": o[2] || (o[2] = (p) => e.localConfig.requireModuleSelection = p),
1769
+ "onUpdate:modelValue": o[2] || (o[2] = (f) => e.localConfig.requireModuleSelection = f),
1766
1770
  label: "moduleSelector.configEditor.requireModuleSelection"
1767
1771
  }, null, 8, ["modelValue"])
1768
1772
  ]),
@@ -1781,41 +1785,18 @@ function Ro(e, o, t, r, i, l) {
1781
1785
  _: 1
1782
1786
  /* STABLE */
1783
1787
  }),
1784
- d(g, {
1785
- heading: "moduleSelector.configEditor.windowPosition",
1786
- expandable: !0
1787
- }, {
1788
- default: n(() => [
1789
- d(R, {
1790
- modelValue: e.localConfig.position,
1791
- "onUpdate:modelValue": o[3] || (o[3] = (p) => e.localConfig.position = p),
1792
- "position-keys": [
1793
- "top",
1794
- "right",
1795
- "bottom",
1796
- "left",
1797
- "width",
1798
- "maxWidth",
1799
- "height",
1800
- "maxHeight"
1801
- ]
1802
- }, null, 8, ["modelValue"])
1803
- ]),
1804
- _: 1
1805
- /* STABLE */
1806
- }),
1807
- d(g, { heading: "moduleSelector.configEditor.baseModule" }, {
1788
+ d(h, { heading: "moduleSelector.configEditor.baseModule" }, {
1808
1789
  default: n(() => [
1809
1790
  d(b, { class: "py-0 px-1" }, {
1810
1791
  default: n(() => [
1811
- d(u, { "no-gutters": "" }, {
1792
+ d(c, { "no-gutters": "" }, {
1812
1793
  default: n(() => [
1813
- d(s, null, {
1794
+ d(a, null, {
1814
1795
  default: n(() => [
1815
1796
  d(C, {
1816
1797
  id: "BaseModuleCheckbox",
1817
1798
  modelValue: e.basisModuleExists,
1818
- "onUpdate:modelValue": o[4] || (o[4] = (p) => e.basisModuleExists = p),
1799
+ "onUpdate:modelValue": o[3] || (o[3] = (f) => e.basisModuleExists = f),
1819
1800
  label: "moduleSelector.configEditor.baseModuleCheckbox"
1820
1801
  }, null, 8, ["modelValue"])
1821
1802
  ]),
@@ -1826,20 +1807,20 @@ function Ro(e, o, t, r, i, l) {
1826
1807
  _: 1
1827
1808
  /* STABLE */
1828
1809
  }),
1829
- e.basisModuleExists ? (I(), $(u, {
1810
+ e.basisModuleExists ? (I(), _(c, {
1830
1811
  key: 0,
1831
1812
  "no-gutters": ""
1832
1813
  }, {
1833
1814
  default: n(() => [
1834
- d(s, { cols: "6" }, {
1815
+ d(a, { cols: "6" }, {
1835
1816
  default: n(() => [
1836
- d(a, {
1817
+ d(s, {
1837
1818
  required: "",
1838
1819
  "html-for": "basisModuleName"
1839
1820
  }, {
1840
1821
  default: n(() => [
1841
- S(
1842
- V(e.$st("moduleSelector.configEditor.title")),
1822
+ V(
1823
+ w(e.$st("moduleSelector.configEditor.title")),
1843
1824
  1
1844
1825
  /* TEXT */
1845
1826
  )
@@ -1851,16 +1832,16 @@ function Ro(e, o, t, r, i, l) {
1851
1832
  _: 1
1852
1833
  /* STABLE */
1853
1834
  }),
1854
- d(s, null, {
1835
+ d(a, null, {
1855
1836
  default: n(() => [
1856
- d(f, {
1837
+ d(v, {
1857
1838
  id: "basisModuleName",
1858
1839
  placeholder: "Base Module",
1859
1840
  rules: [
1860
1841
  e.basisModuleExists && (!e.basisModule.title || e.basisModule.title === "") ? () => "moduleSelector.configEditor.error" : () => !0
1861
1842
  ],
1862
1843
  modelValue: e.basisModule.title,
1863
- "onUpdate:modelValue": o[5] || (o[5] = (p) => e.basisModule.title = p)
1844
+ "onUpdate:modelValue": o[4] || (o[4] = (f) => e.basisModule.title = f)
1864
1845
  }, null, 8, ["rules", "modelValue"])
1865
1846
  ]),
1866
1847
  _: 1
@@ -1870,20 +1851,20 @@ function Ro(e, o, t, r, i, l) {
1870
1851
  _: 1
1871
1852
  /* STABLE */
1872
1853
  })) : q("v-if", !0),
1873
- e.basisModuleExists ? (I(), $(u, {
1854
+ e.basisModuleExists ? (I(), _(c, {
1874
1855
  key: 1,
1875
1856
  "no-gutters": ""
1876
1857
  }, {
1877
1858
  default: n(() => [
1878
- d(s, { cols: "6" }, {
1859
+ d(a, { cols: "6" }, {
1879
1860
  default: n(() => [
1880
- d(a, {
1861
+ d(s, {
1881
1862
  required: "",
1882
1863
  "html-for": "basisModuleIcon"
1883
1864
  }, {
1884
1865
  default: n(() => [
1885
- S(
1886
- V(e.$st("components.style.icon")),
1866
+ V(
1867
+ w(e.$st("components.style.icon")),
1887
1868
  1
1888
1869
  /* TEXT */
1889
1870
  )
@@ -1895,16 +1876,16 @@ function Ro(e, o, t, r, i, l) {
1895
1876
  _: 1
1896
1877
  /* STABLE */
1897
1878
  }),
1898
- d(s, null, {
1879
+ d(a, null, {
1899
1880
  default: n(() => [
1900
- d(f, {
1881
+ d(v, {
1901
1882
  id: "basisModuleIcon",
1902
1883
  placeholder: "mdi-home-city",
1903
1884
  rules: [
1904
1885
  e.basisModuleExists && (!e.basisModule.icon || e.basisModule.icon === "") ? () => "moduleSelector.configEditor.error" : () => !0
1905
1886
  ],
1906
1887
  modelValue: e.basisModule.icon,
1907
- "onUpdate:modelValue": o[6] || (o[6] = (p) => e.basisModule.icon = p)
1888
+ "onUpdate:modelValue": o[5] || (o[5] = (f) => e.basisModule.icon = f)
1908
1889
  }, null, 8, ["rules", "modelValue"])
1909
1890
  ]),
1910
1891
  _: 1
@@ -1925,25 +1906,25 @@ function Ro(e, o, t, r, i, l) {
1925
1906
  ]),
1926
1907
  _: 1
1927
1908
  /* STABLE */
1928
- })) : (I(), $(b, {
1909
+ })) : (I(), _(b, {
1929
1910
  key: 1,
1930
1911
  class: "py-0 px-1"
1931
1912
  }, {
1932
1913
  default: n(() => [
1933
- d(y, {
1914
+ d(g, {
1934
1915
  items: e.breadcrumbItems,
1935
1916
  divider: "/"
1936
1917
  }, {
1937
- item: n(({ item: p }) => [
1938
- (I(), $(v, {
1939
- key: p.title,
1940
- disabled: p.disabled,
1941
- href: p.href,
1942
- onClick: (D) => p.disabled ? null : e.returnLevel()
1918
+ item: n(({ item: f }) => [
1919
+ (I(), _(R, {
1920
+ key: f.title,
1921
+ disabled: f.disabled,
1922
+ href: f.href,
1923
+ onClick: (D) => f.disabled ? null : e.returnLevel()
1943
1924
  }, {
1944
1925
  default: n(() => [
1945
- S(
1946
- V(p.title),
1926
+ V(
1927
+ w(f.title),
1947
1928
  1
1948
1929
  /* TEXT */
1949
1930
  )
@@ -1955,17 +1936,17 @@ function Ro(e, o, t, r, i, l) {
1955
1936
  _: 1
1956
1937
  /* STABLE */
1957
1938
  }, 8, ["items"]),
1958
- d(u, { "no-gutters": "" }, {
1939
+ d(c, { "no-gutters": "" }, {
1959
1940
  default: n(() => [
1960
- d(s, { cols: "6" }, {
1941
+ d(a, { cols: "6" }, {
1961
1942
  default: n(() => [
1962
- d(a, {
1943
+ d(s, {
1963
1944
  required: "",
1964
1945
  "html-for": "groupModuleName"
1965
1946
  }, {
1966
1947
  default: n(() => [
1967
- S(
1968
- V(e.$st("moduleSelector.configEditor.groupName")),
1948
+ V(
1949
+ w(e.$st("moduleSelector.configEditor.groupName")),
1969
1950
  1
1970
1951
  /* TEXT */
1971
1952
  )
@@ -1977,14 +1958,14 @@ function Ro(e, o, t, r, i, l) {
1977
1958
  _: 1
1978
1959
  /* STABLE */
1979
1960
  }),
1980
- d(s, null, {
1961
+ d(a, null, {
1981
1962
  default: n(() => [
1982
- d(f, {
1963
+ d(v, {
1983
1964
  id: "groupModuleName",
1984
1965
  placeholder: "Module Name",
1985
1966
  modelValue: e.currentGroup.title,
1986
- "onUpdate:modelValue": o[7] || (o[7] = (p) => e.currentGroup.title = p),
1987
- rules: [(p) => !!p || "moduleSelector.configEditor.error"]
1967
+ "onUpdate:modelValue": o[6] || (o[6] = (f) => e.currentGroup.title = f),
1968
+ rules: [(f) => !!f || "moduleSelector.configEditor.error"]
1988
1969
  }, null, 8, ["modelValue", "rules"])
1989
1970
  ]),
1990
1971
  _: 1
@@ -1994,17 +1975,17 @@ function Ro(e, o, t, r, i, l) {
1994
1975
  _: 1
1995
1976
  /* STABLE */
1996
1977
  }),
1997
- d(u, { "no-gutters": "" }, {
1978
+ d(c, { "no-gutters": "" }, {
1998
1979
  default: n(() => [
1999
- d(s, { cols: "6" }, {
1980
+ d(a, { cols: "6" }, {
2000
1981
  default: n(() => [
2001
- d(a, {
1982
+ d(s, {
2002
1983
  required: "",
2003
1984
  "html-for": "groupModuleIcon"
2004
1985
  }, {
2005
1986
  default: n(() => [
2006
- S(
2007
- V(e.$st("moduleSelector.configEditor.moduleIcon")),
1987
+ V(
1988
+ w(e.$st("moduleSelector.configEditor.moduleIcon")),
2008
1989
  1
2009
1990
  /* TEXT */
2010
1991
  )
@@ -2016,15 +1997,15 @@ function Ro(e, o, t, r, i, l) {
2016
1997
  _: 1
2017
1998
  /* STABLE */
2018
1999
  }),
2019
- d(s, null, {
2000
+ d(a, null, {
2020
2001
  default: n(() => [
2021
- d(f, {
2002
+ d(v, {
2022
2003
  id: "groupModuleIcon",
2023
2004
  placeholder: "Module Icon",
2024
2005
  modelValue: e.currentGroup.icon,
2025
- "onUpdate:modelValue": o[8] || (o[8] = (p) => e.currentGroup.icon = p),
2006
+ "onUpdate:modelValue": o[7] || (o[7] = (f) => e.currentGroup.icon = f),
2026
2007
  rules: [
2027
- (p) => !!p || "moduleSelector.configEditor.editorError"
2008
+ (f) => !!f || "moduleSelector.configEditor.editorError"
2028
2009
  ]
2029
2010
  }, null, 8, ["modelValue", "rules"])
2030
2011
  ]),
@@ -2039,50 +2020,50 @@ function Ro(e, o, t, r, i, l) {
2039
2020
  _: 1
2040
2021
  /* STABLE */
2041
2022
  })),
2042
- d(g, {
2023
+ d(h, {
2043
2024
  heading: "moduleSelector.configEditor.heading",
2044
2025
  "start-open": !0,
2045
2026
  "header-actions": e.headerActions
2046
2027
  }, {
2047
2028
  default: n(() => [
2048
- e.currentGroup === void 0 ? (I(), $(U, {
2029
+ e.currentGroup === void 0 ? (I(), _(y, {
2049
2030
  key: 0,
2050
2031
  items: e.listItemArray,
2051
2032
  draggable: !0,
2052
2033
  onItemMoved: e.move
2053
- }, null, 8, ["items", "onItemMoved"])) : (I(), $(U, {
2034
+ }, null, 8, ["items", "onItemMoved"])) : (I(), _(y, {
2054
2035
  key: 1,
2055
2036
  items: e.currentGroup.cards,
2056
2037
  draggable: !0,
2057
2038
  onItemMoved: e.move
2058
2039
  }, null, 8, ["items", "onItemMoved"])),
2059
- d(N, {
2040
+ d(P, {
2060
2041
  modelValue: e.editingItemDialogVisible,
2061
- "onUpdate:modelValue": o[11] || (o[11] = (p) => e.editingItemDialogVisible = p),
2042
+ "onUpdate:modelValue": o[10] || (o[10] = (f) => e.editingItemDialogVisible = f),
2062
2043
  width: "400",
2063
2044
  persistent: !0
2064
2045
  }, {
2065
2046
  default: n(() => [
2066
- d(G, {
2047
+ d(U, {
2067
2048
  "model-value": e.editingItem,
2068
- onClose: o[9] || (o[9] = (p) => e.editingItemDialogVisible = !1),
2069
- onSubmit: o[10] || (o[10] = (p) => e.updateItem())
2049
+ onClose: o[8] || (o[8] = (f) => e.editingItemDialogVisible = !1),
2050
+ onSubmit: o[9] || (o[9] = (f) => e.updateItem())
2070
2051
  }, null, 8, ["model-value"])
2071
2052
  ]),
2072
2053
  _: 1
2073
2054
  /* STABLE */
2074
2055
  }, 8, ["modelValue"]),
2075
- d(N, {
2056
+ d(P, {
2076
2057
  modelValue: e.selectCloudItemDialogVisible,
2077
- "onUpdate:modelValue": o[14] || (o[14] = (p) => e.selectCloudItemDialogVisible = p),
2058
+ "onUpdate:modelValue": o[13] || (o[13] = (f) => e.selectCloudItemDialogVisible = f),
2078
2059
  width: "1000",
2079
2060
  persistent: !0
2080
2061
  }, {
2081
2062
  default: n(() => [
2082
- d(ee, {
2063
+ d(O, {
2083
2064
  "model-value": e.selectCloudItem,
2084
- onClose: o[12] || (o[12] = (p) => e.selectCloudItemDialogVisible = !1),
2085
- onSubmit: o[13] || (o[13] = (p) => e.updateCloudItem())
2065
+ onClose: o[11] || (o[11] = (f) => e.selectCloudItemDialogVisible = !1),
2066
+ onSubmit: o[12] || (o[12] = (f) => e.updateCloudItem())
2086
2067
  }, null, 8, ["model-value"])
2087
2068
  ]),
2088
2069
  _: 1
@@ -2091,24 +2072,47 @@ function Ro(e, o, t, r, i, l) {
2091
2072
  ]),
2092
2073
  _: 1
2093
2074
  /* STABLE */
2094
- }, 8, ["header-actions"])
2075
+ }, 8, ["header-actions"]),
2076
+ d(h, {
2077
+ heading: "moduleSelector.configEditor.windowPosition",
2078
+ expandable: !0
2079
+ }, {
2080
+ default: n(() => [
2081
+ d(ee, {
2082
+ modelValue: e.localConfig.position,
2083
+ "onUpdate:modelValue": o[14] || (o[14] = (f) => e.localConfig.position = f),
2084
+ "position-keys": [
2085
+ "top",
2086
+ "right",
2087
+ "bottom",
2088
+ "left",
2089
+ "width",
2090
+ "maxWidth",
2091
+ "height",
2092
+ "maxHeight"
2093
+ ]
2094
+ }, null, 8, ["modelValue"])
2095
+ ]),
2096
+ _: 1
2097
+ /* STABLE */
2098
+ })
2095
2099
  ]),
2096
2100
  _: 1
2097
2101
  /* STABLE */
2098
2102
  }, 16, ["onSubmit"])) : q("v-if", !0);
2099
2103
  }
2100
- const Do = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-04be78a1"]]);
2101
- function zo(e) {
2104
+ const qo = /* @__PURE__ */ Y(Ro, [["render", Do], ["__scopeId", "data-v-82377468"]]);
2105
+ function Wo(e) {
2102
2106
  let o;
2103
2107
  return {
2104
2108
  get name() {
2105
2109
  return j;
2106
2110
  },
2107
2111
  get version() {
2108
- return io;
2112
+ return ro;
2109
2113
  },
2110
2114
  get mapVersion() {
2111
- return ro;
2115
+ return so;
2112
2116
  },
2113
2117
  get config() {
2114
2118
  return { ...re(), ...e };
@@ -2116,12 +2120,12 @@ function zo(e) {
2116
2120
  selectedMainModuleIndex: k(void 0),
2117
2121
  selectedNestedModuleIndex: k(void 0),
2118
2122
  async initialize(t, r) {
2119
- var a;
2123
+ var s;
2120
2124
  o = t;
2121
2125
  const i = {
2122
- id: ae,
2123
- component: co,
2124
- slot: Ge.DETACHED,
2126
+ id: se,
2127
+ component: mo,
2128
+ slot: je.DETACHED,
2125
2129
  position: this.config.position,
2126
2130
  state: {
2127
2131
  headerTitle: this.config.windowTitle,
@@ -2134,21 +2138,21 @@ function zo(e) {
2134
2138
  }
2135
2139
  };
2136
2140
  if (r) {
2137
- const s = Ee(r.smi), f = Ee(r.snmi), u = to(r.w), { modules: C } = this.config;
2138
- if (s !== void 0 && s < (C == null ? void 0 : C.length)) {
2139
- this.selectedMainModuleIndex.value = s;
2140
- const b = C[s];
2141
- f !== void 0 && (b == null ? void 0 : b.type) === "group" && f < ((a = b == null ? void 0 : b.cards) == null ? void 0 : a.length) && (this.selectedNestedModuleIndex.value = f);
2141
+ const a = Ie(r.smi), v = Ie(r.snmi), c = lo(r.w), { modules: C } = this.config;
2142
+ if (a !== void 0 && a < (C == null ? void 0 : C.length)) {
2143
+ this.selectedMainModuleIndex.value = a;
2144
+ const b = C[a];
2145
+ v !== void 0 && (b == null ? void 0 : b.type) === "group" && v < ((s = b == null ? void 0 : b.cards) == null ? void 0 : s.length) && (this.selectedNestedModuleIndex.value = v);
2142
2146
  }
2143
- u || await Ue(
2147
+ c || await Ae(
2144
2148
  this.selectedMainModuleIndex.value,
2145
2149
  this.selectedNestedModuleIndex.value,
2146
2150
  o,
2147
- e.modules,
2148
- e.basisModule
2151
+ this.config.modules,
2152
+ this.config.basisModule
2149
2153
  );
2150
2154
  }
2151
- const { action: l } = je(
2155
+ const { action: l } = Le(
2152
2156
  {
2153
2157
  name: "moduleSelector",
2154
2158
  title: "moduleSelector.title",
@@ -2164,19 +2168,19 @@ function zo(e) {
2164
2168
  action: l
2165
2169
  },
2166
2170
  j,
2167
- Le.PROJECT
2168
- ), (r && r.w || !r && e.isActiveOnStart) && o.windowManager.add(i, j), Promise.resolve();
2171
+ ze.PROJECT
2172
+ ), (r && r.w || !r && this.config.isActiveOnStart) && o.windowManager.add(i, j), Promise.resolve();
2169
2173
  },
2170
2174
  getDefaultOptions: re,
2171
2175
  getState() {
2172
- var a, s;
2173
- const t = (a = this.selectedMainModuleIndex) == null ? void 0 : a.value, r = (s = this.selectedNestedModuleIndex) == null ? void 0 : s.value, i = o.windowManager.has(ae), l = this.config.isActiveOnStart;
2176
+ var s, a;
2177
+ const t = (s = this.selectedMainModuleIndex) == null ? void 0 : s.value, r = (a = this.selectedNestedModuleIndex) == null ? void 0 : a.value, i = o.windowManager.has(se), l = this.config.isActiveOnStart;
2174
2178
  return t !== void 0 || r !== void 0 || i !== l ? { smi: t, snmi: r, w: i } : {};
2175
2179
  },
2176
2180
  getConfigEditors() {
2177
2181
  return [
2178
2182
  {
2179
- component: Do,
2183
+ component: qo,
2180
2184
  title: "moduleSelector.name",
2181
2185
  infoUrlCallback: o.getHelpUrlCallback(
2182
2186
  "/components/plugins/moduleSelectorConfig.html",
@@ -2187,7 +2191,7 @@ function zo(e) {
2187
2191
  },
2188
2192
  toJSON() {
2189
2193
  const t = {}, r = re();
2190
- return this.config.windowTitle !== r.windowTitle && (t.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== r.isActiveOnStart && (t.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== r.requireModuleSelection && (t.requireModuleSelection = this.config.requireModuleSelection), ue(this.config.position, r.position) || (t.position = this.config.position), ue(this.config.modules, r.modules) || (t.modules = this.config.modules), ue(this.config.basisModule, r.basisModule) || (t.basisModule = this.config.basisModule), e.serverUrl != null && (t.serverUrl = e.serverUrl), e.projectId != null && (t.projectId = e.projectId), e.appId != null && (t.appId = e.appId), e.token != null && (t.token = e.token), t;
2194
+ return this.config.windowTitle !== r.windowTitle && (t.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== r.isActiveOnStart && (t.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== r.requireModuleSelection && (t.requireModuleSelection = this.config.requireModuleSelection), ce(this.config.position, r.position) || (t.position = this.config.position), ce(this.config.modules, r.modules) || (t.modules = this.config.modules), ce(this.config.basisModule, r.basisModule) || (t.basisModule = this.config.basisModule), e.serverUrl != null && (t.serverUrl = e.serverUrl), e.projectId != null && (t.projectId = e.projectId), e.appId != null && (t.appId = e.appId), e.token != null && (t.token = e.token), t;
2191
2195
  },
2192
2196
  i18n: {
2193
2197
  de: {
@@ -2255,7 +2259,7 @@ function zo(e) {
2255
2259
  createdAt: "Created at",
2256
2260
  updatedAt: "Updated at",
2257
2261
  createdBy: "Created by",
2258
- updatedBy: "Created by"
2262
+ updatedBy: "Updated by"
2259
2263
  }
2260
2264
  },
2261
2265
  TooltipAddModule: "Add module",
@@ -2290,5 +2294,5 @@ function zo(e) {
2290
2294
  };
2291
2295
  }
2292
2296
  export {
2293
- zo as default
2297
+ Wo as default
2294
2298
  };