@viur/shop-components 0.0.1-dev.50 → 0.0.1-dev.52

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.
@@ -1,9 +1,9 @@
1
- var tt = Object.defineProperty;
2
- var nt = (e, n, t) => n in e ? tt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var Ce = (e, n, t) => nt(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { defineComponent as D, inject as O, reactive as w, openBlock as m, createElementBlock as h, normalizeClass as ye, createElementVNode as i, renderSlot as Ge, pushScopeId as M, popScopeId as z, Fragment as E, createCommentVNode as k, toDisplayString as B, onMounted as R, ref as F, readonly as at, getCurrentScope as st, onScopeDispose as lt, unref as q, computed as S, watchEffect as ce, renderList as U, watch as ae, withDirectives as J, vModelText as le, getCurrentInstance as rt, resolveComponent as se, createBlock as T, vShow as ve, withModifiers as de, createTextVNode as C, shallowRef as G, provide as ie, onBeforeMount as ee, useCssVars as ot, Transition as it, withCtx as ut, createVNode as dt, Teleport as Ze, resolveDynamicComponent as ct, mergeProps as mt } from "vue";
5
- import { defineStore as $e } from "pinia";
6
- import { Request as ft } from "@viur/vue-utils";
1
+ var et = Object.defineProperty;
2
+ var tt = (e, n, t) => n in e ? et(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var Ie = (e, n, t) => tt(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { defineComponent as D, inject as C, reactive as w, openBlock as m, createElementBlock as h, normalizeClass as pe, createElementVNode as d, renderSlot as He, pushScopeId as M, popScopeId as z, Fragment as E, createCommentVNode as k, toDisplayString as B, onMounted as R, ref as q, readonly as nt, getCurrentScope as at, onScopeDispose as st, unref as K, computed as S, watchEffect as de, renderList as U, watch as ne, withDirectives as Z, vModelText as se, getCurrentInstance as lt, resolveComponent as ae, createBlock as T, vShow as be, withModifiers as ue, createTextVNode as j, shallowRef as H, provide as oe, onBeforeMount as x, useCssVars as rt, Transition as ot, withCtx as it, createVNode as ut, Teleport as dt, resolveDynamicComponent as ct, mergeProps as ft } from "vue";
5
+ import { defineStore as ye } from "pinia";
6
+ import { Request as mt } from "@viur/vue-utils";
7
7
  import { ViURShopClient as gt } from "@viur/viur-shop-client";
8
8
  import { useRoute as ht, createRouter as bt, createWebHashHistory as vt } from "vue-router";
9
9
  const pt = D({
@@ -15,7 +15,7 @@ const pt = D({
15
15
  components: {},
16
16
  emits: ["change", "delete", "handleDragStart", "handleDragEnd", "handleDragOver", "handleDrop"],
17
17
  setup(e, n) {
18
- const t = O("boneState");
18
+ const t = C("boneState");
19
19
  return {
20
20
  state: w({
21
21
  isDraggable: !1
@@ -28,12 +28,12 @@ const pt = D({
28
28
  for (const [l, s] of n)
29
29
  t[l] = s;
30
30
  return t;
31
- }, Je = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Je(() => /* @__PURE__ */ i("sl-icon", {
31
+ }, Ge = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Ge(() => /* @__PURE__ */ d("sl-icon", {
32
32
  slot: "prefix",
33
33
  name: "grip-vertical"
34
34
  }, null, -1)), _t = [
35
35
  St
36
- ], kt = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */ Je(() => /* @__PURE__ */ i("sl-icon", {
36
+ ], kt = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */ Ge(() => /* @__PURE__ */ d("sl-icon", {
37
37
  slot: "prefix",
38
38
  name: "x-lg"
39
39
  }, null, -1)), At = [
@@ -41,7 +41,7 @@ const pt = D({
41
41
  ];
42
42
  function It(e, n, t, l, s, o) {
43
43
  return m(), h("div", {
44
- class: ye(["value-line", {
44
+ class: pe(["value-line", {
45
45
  "is-dragging": e.isDragging,
46
46
  "dragging-line-bottom": e.draggingLineBottom,
47
47
  "dragging-line-top": e.draggingLineTop
@@ -52,15 +52,15 @@ function It(e, n, t, l, s, o) {
52
52
  onDragstart: n[4] || (n[4] = (a) => e.$emit("handleDragStart", a)),
53
53
  onDragend: n[5] || (n[5] = (a) => e.$emit("handleDragEnd"))
54
54
  }, [
55
- i("sl-button", {
55
+ d("sl-button", {
56
56
  disabled: e.boneState.readonly,
57
57
  class: "drag-button",
58
58
  onMousedown: n[0] || (n[0] = (a) => e.state.isDraggable = !0)
59
59
  }, _t, 40, $t),
60
- i("div", kt, [
61
- Ge(e.$slots, "default", {}, void 0, !0)
60
+ d("div", kt, [
61
+ He(e.$slots, "default", {}, void 0, !0)
62
62
  ]),
63
- i("sl-button", {
63
+ d("sl-button", {
64
64
  variant: "danger",
65
65
  disabled: e.boneState.readonly,
66
66
  outline: "",
@@ -82,7 +82,7 @@ const Ct = /* @__PURE__ */ I(pt, [["render", It], ["__scopeId", "data-v-141aaf9b
82
82
  components: {},
83
83
  emits: ["change", "handleClick"],
84
84
  setup(e, n) {
85
- const t = O("boneState");
85
+ const t = C("boneState");
86
86
  return {
87
87
  state: w({
88
88
  debug: !1
@@ -93,13 +93,13 @@ const Ct = /* @__PURE__ */ I(pt, [["render", It], ["__scopeId", "data-v-141aaf9b
93
93
  }), jt = { class: "bone-name" }, Bt = { key: 0 }, Dt = { class: "bone" };
94
94
  function Vt(e, n, t, l, s, o) {
95
95
  return m(), h(E, null, [
96
- i("label", jt, [
97
- Ge(e.$slots, "default", {}, void 0, !0),
96
+ d("label", jt, [
97
+ He(e.$slots, "default", {}, void 0, !0),
98
98
  k("", !0)
99
99
  ]),
100
100
  e.state.debug ? (m(), h("div", Bt, [
101
- i("div", Dt, B(e.name), 1),
102
- i("pre", null, " " + B(e.boneState) + `
101
+ d("div", Dt, B(e.name), 1),
102
+ d("pre", null, " " + B(e.boneState) + `
103
103
  `, 1)
104
104
  ])) : k("", !0)
105
105
  ], 64);
@@ -115,7 +115,7 @@ const Nt = /* @__PURE__ */ I(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172
115
115
  components: {},
116
116
  emits: ["change"],
117
117
  setup(e, n) {
118
- const t = O("boneState"), l = w({});
118
+ const t = C("boneState"), l = w({});
119
119
  function s(o) {
120
120
  n.emit("change", e.name, o.target.value, e.lang, e.index);
121
121
  }
@@ -129,7 +129,7 @@ const Nt = /* @__PURE__ */ I(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172
129
129
  }
130
130
  }), Lt = ["disabled", "value"], Ut = ["disabled", "value"];
131
131
  function Tt(e, n, t, l, s, o) {
132
- var a, u;
132
+ var a, i;
133
133
  return e.boneState.bonestructure.type === "raw.json" ? (m(), h("sl-textarea", {
134
134
  key: 0,
135
135
  disabled: (a = e.boneState) == null ? void 0 : a.readonly,
@@ -137,12 +137,12 @@ function Tt(e, n, t, l, s, o) {
137
137
  onInput: n[0] || (n[0] = (...r) => e.changeEvent && e.changeEvent(...r))
138
138
  }, null, 40, Lt)) : (m(), h("sl-textarea", {
139
139
  key: 1,
140
- disabled: (u = e.boneState) == null ? void 0 : u.readonly,
140
+ disabled: (i = e.boneState) == null ? void 0 : i.readonly,
141
141
  value: e.value,
142
142
  onInput: n[1] || (n[1] = (...r) => e.changeEvent && e.changeEvent(...r))
143
143
  }, null, 40, Ut));
144
144
  }
145
- const pe = /* @__PURE__ */ I(Rt, [["render", Tt], ["__scopeId", "data-v-0ebe5f0b"]]), Pt = D({
145
+ const ve = /* @__PURE__ */ I(Rt, [["render", Tt], ["__scopeId", "data-v-0ebe5f0b"]]), Pt = D({
146
146
  inheritAttrs: !1,
147
147
  props: {
148
148
  name: String,
@@ -167,31 +167,31 @@ const pe = /* @__PURE__ */ I(Rt, [["render", Tt], ["__scopeId", "data-v-0ebe5f0b
167
167
  };
168
168
  }
169
169
  }), Mt = ["value"];
170
- function zt(e, n, t, l, s, o) {
170
+ function Wt(e, n, t, l, s, o) {
171
171
  return m(), h("sl-input", {
172
172
  disabled: "",
173
173
  value: e.value,
174
174
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
175
175
  }, null, 40, Mt);
176
176
  }
177
- const Oe = /* @__PURE__ */ I(Pt, [["render", zt], ["__scopeId", "data-v-b45a1311"]]);
178
- function Wt(e) {
179
- return st() ? (lt(e), !0) : !1;
177
+ const Ce = /* @__PURE__ */ I(Pt, [["render", Wt], ["__scopeId", "data-v-b45a1311"]]);
178
+ function zt(e) {
179
+ return at() ? (st(e), !0) : !1;
180
180
  }
181
181
  function qt(e) {
182
- return typeof e == "function" ? e() : q(e);
182
+ return typeof e == "function" ? e() : K(e);
183
183
  }
184
184
  const Ft = typeof window < "u" && typeof document < "u";
185
185
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
186
- function me(e, n, t = {}) {
186
+ function ce(e, n, t = {}) {
187
187
  const {
188
188
  immediate: l = !0
189
- } = t, s = F(!1);
189
+ } = t, s = q(!1);
190
190
  let o = null;
191
191
  function a() {
192
192
  o && (clearTimeout(o), o = null);
193
193
  }
194
- function u() {
194
+ function i() {
195
195
  s.value = !1, a();
196
196
  }
197
197
  function r(...c) {
@@ -199,10 +199,10 @@ function me(e, n, t = {}) {
199
199
  s.value = !1, o = null, e(...c);
200
200
  }, qt(n));
201
201
  }
202
- return l && (s.value = !0, Ft && r()), Wt(u), {
203
- isPending: at(s),
202
+ return l && (s.value = !0, Ft && r()), zt(i), {
203
+ isPending: nt(s),
204
204
  start: r,
205
- stop: u
205
+ stop: i
206
206
  };
207
207
  }
208
208
  class Kt {
@@ -221,27 +221,27 @@ class Kt {
221
221
  }
222
222
  static formatString(n, t) {
223
223
  function l(a) {
224
- let u = [], r = [], c = /\$\((.*?)\)/g;
224
+ let i = [], r = [], c = /\$\((.*?)\)/g;
225
225
  for (; r; ) {
226
226
  if (r = c.exec(a), !r) {
227
227
  r = !1;
228
228
  continue;
229
229
  }
230
- u.push(r[1]);
230
+ i.push(r[1]);
231
231
  }
232
- return u;
232
+ return i;
233
233
  }
234
234
  let s = l(n), o = [];
235
235
  Array.isArray(t) || (t = [t]);
236
236
  for (let a of t) {
237
- let u = n;
237
+ let i = n;
238
238
  for (let r of s) {
239
- let c = r.split("."), d = a;
239
+ let c = r.split("."), u = a;
240
240
  for (let f of c)
241
- d && d !== "-" && f in d && d[f] ? d = d[f] : d = "-";
242
- d = this.unescape(d), u = u.replace("$(" + r + ")", d);
241
+ u && u !== "-" && f in u && u[f] ? u = u[f] : u = "-";
242
+ u = this.unescape(u), i = i.replace("$(" + r + ")", u);
243
243
  }
244
- o.push(u);
244
+ o.push(i);
245
245
  }
246
246
  return o.join(", ");
247
247
  }
@@ -258,15 +258,15 @@ const Ht = D({
258
258
  components: {},
259
259
  emits: ["change"],
260
260
  setup(e, n) {
261
- const t = O("boneState"), l = w({
261
+ const t = C("boneState"), l = w({
262
262
  value: S(() => e.value)
263
- }), s = F(null);
263
+ }), s = q(null);
264
264
  function o(a) {
265
265
  n.emit("change", e.name, a.target.value, e.lang, e.index);
266
266
  }
267
- return ce(() => {
267
+ return de(() => {
268
268
  if (e.autofocus && s.value && s.value !== null && s !== null) {
269
- const { start: a } = me(() => {
269
+ const { start: a } = ce(() => {
270
270
  s.value.focus();
271
271
  }, 600);
272
272
  a();
@@ -292,7 +292,7 @@ function Zt(e, n, t, l, s, o) {
292
292
  onKeyup: n[1] || (n[1] = (...a) => e.changeEvent && e.changeEvent(...a))
293
293
  }, null, 40, Gt);
294
294
  }
295
- const je = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0"]]), Jt = D({
295
+ const Oe = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0"]]), Jt = D({
296
296
  inheritAttrs: !1,
297
297
  props: {
298
298
  name: String,
@@ -304,13 +304,13 @@ const je = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0
304
304
  components: {},
305
305
  emits: ["change"],
306
306
  setup(e, n) {
307
- const t = O("boneState"), l = w({}), s = F(null);
307
+ const t = C("boneState"), l = w({}), s = q(null);
308
308
  function o(a) {
309
309
  n.emit("change", e.name, a.target.value, e.lang, e.index);
310
310
  }
311
- return ce(() => {
311
+ return de(() => {
312
312
  if (e.autofocus && s.value && s.value !== null && s !== null) {
313
- const { start: a } = me(() => {
313
+ const { start: a } = ce(() => {
314
314
  s.value.focus();
315
315
  }, 600);
316
316
  a();
@@ -334,7 +334,7 @@ function Yt(e, n, t, l, s, o) {
334
334
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
335
335
  }, null, 40, Qt);
336
336
  }
337
- const Be = /* @__PURE__ */ I(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024"]]), Xt = D({
337
+ const je = /* @__PURE__ */ I(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024"]]), Xt = D({
338
338
  inheritAttrs: !1,
339
339
  props: {
340
340
  name: String,
@@ -345,7 +345,7 @@ const Be = /* @__PURE__ */ I(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024
345
345
  components: {},
346
346
  emits: ["change"],
347
347
  setup(e, n) {
348
- const t = O("boneState"), l = w({
348
+ const t = C("boneState"), l = w({
349
349
  value: S(() => {
350
350
  var a;
351
351
  let o = e.value;
@@ -376,7 +376,7 @@ function en(e, n, t, l, s, o) {
376
376
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
377
377
  }, null, 40, xt);
378
378
  }
379
- const De = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c"]]), tn = D({
379
+ const Be = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c"]]), tn = D({
380
380
  inheritAttrs: !1,
381
381
  props: {
382
382
  name: String,
@@ -387,12 +387,12 @@ const De = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c
387
387
  components: {},
388
388
  emits: ["change"],
389
389
  setup(e, n) {
390
- const t = O("boneState"), l = w({
390
+ const t = C("boneState"), l = w({
391
391
  value: S(() => {
392
392
  let a = e.value;
393
- return Array.isArray(e.value) ? (t.bonestructure.values instanceof Array ? a = a.filter((u) => t.bonestructure.values.map((r) => r[0].toString()).includes(u)) : a = a.filter(
394
- (u) => Object.keys(t.bonestructure.values).map((r) => r.toString()).includes(u)
395
- ), a.map((u) => u.toString())) : e.value ? e.value.toString() : "";
393
+ return Array.isArray(e.value) ? (t.bonestructure.values instanceof Array ? a = a.filter((i) => t.bonestructure.values.map((r) => r[0].toString()).includes(i)) : a = a.filter(
394
+ (i) => Object.keys(t.bonestructure.values).map((r) => r.toString()).includes(i)
395
+ ), a.map((i) => i.toString())) : e.value ? e.value.toString() : "";
396
396
  })
397
397
  });
398
398
  function s() {
@@ -400,8 +400,8 @@ const De = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c
400
400
  return t.bonestructure.values;
401
401
  {
402
402
  let a = [];
403
- for (const [u, r] of Object.entries(t.bonestructure.values))
404
- a.push([u, r]);
403
+ for (const [i, r] of Object.entries(t.bonestructure.values))
404
+ a.push([i, r]);
405
405
  return a;
406
406
  }
407
407
  }
@@ -434,7 +434,7 @@ function sn(e, n, t, l, s, o) {
434
434
  }, B(a[1]), 9, an))), 128))
435
435
  ], 40, nn);
436
436
  }
437
- const Ve = /* @__PURE__ */ I(tn, [["render", sn], ["__scopeId", "data-v-5a38b97f"]]), ln = D({
437
+ const De = /* @__PURE__ */ I(tn, [["render", sn], ["__scopeId", "data-v-5a38b97f"]]), ln = D({
438
438
  inheritAttrs: !1,
439
439
  props: {
440
440
  name: String,
@@ -445,7 +445,7 @@ const Ve = /* @__PURE__ */ I(tn, [["render", sn], ["__scopeId", "data-v-5a38b97f
445
445
  components: {},
446
446
  emits: ["change"],
447
447
  setup(e, n) {
448
- const t = O("boneState"), l = w({
448
+ const t = C("boneState"), l = w({
449
449
  value: S(() => ![!1, null, void 0, ""].includes(e.value))
450
450
  });
451
451
  function s(o) {
@@ -468,7 +468,7 @@ function on(e, n, t, l, s, o) {
468
468
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
469
469
  }, null, 40, rn);
470
470
  }
471
- const Ne = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8"]]), un = D({
471
+ const Ve = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8"]]), un = D({
472
472
  inheritAttrs: !1,
473
473
  props: {
474
474
  name: String,
@@ -480,36 +480,36 @@ const Ne = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8
480
480
  components: {},
481
481
  emits: ["change"],
482
482
  setup(e, n) {
483
- const t = O("boneState"), l = w({
483
+ const t = C("boneState"), l = w({
484
484
  value1: "",
485
485
  value2: null,
486
486
  equal: !1,
487
487
  passwordInfo: [],
488
488
  requiredPasswordInfo: []
489
- }), s = F(null);
490
- function o(u) {
489
+ }), s = q(null);
490
+ function o(i) {
491
491
  l.value1 === l.value2 ? l.equal = !0 : l.equal = !1, a(l.value1), l.requiredPasswordInfo.length === 0 && l.passwordInfo.length - l.requiredPasswordInfo.length <= t.bonestructure.test_threshold ? n.emit("change", e.name, l.value1, e.lang, e.index, !0) : n.emit("change", e.name, l.value1, e.lang, e.index, !1);
492
492
  }
493
493
  R(() => {
494
494
  n.emit("change", e.name, e.value, e.lang, e.index);
495
495
  });
496
- function a(u) {
496
+ function a(i) {
497
497
  l.passwordInfo = [], l.requiredPasswordInfo = [];
498
498
  for (const r of t.bonestructure.tests)
499
- new RegExp(r[0]).test(u) || (r[2] ? l.requiredPasswordInfo.push(r[1]) : l.passwordInfo.push(r[1]));
499
+ new RegExp(r[0]).test(i) || (r[2] ? l.requiredPasswordInfo.push(r[1]) : l.passwordInfo.push(r[1]));
500
500
  l.equal || l.requiredPasswordInfo.push("Die eingegebenen Passwörter stimmen nicht überein."), l.value1 || l.requiredPasswordInfo.push("Das eingegebene Passwort ist leer.");
501
501
  }
502
- return ce(() => {
502
+ return de(() => {
503
503
  if (e.autofocus && s.value && s.value !== null && s !== null) {
504
- const { start: u } = me(() => {
504
+ const { start: i } = ce(() => {
505
505
  s.value.focus();
506
506
  }, 600);
507
- u();
507
+ i();
508
508
  }
509
- }), ae(
509
+ }), ne(
510
510
  () => e.value,
511
- (u, r) => {
512
- l.value1 = u;
511
+ (i, r) => {
512
+ l.value1 = i;
513
513
  }
514
514
  ), {
515
515
  state: l,
@@ -518,14 +518,14 @@ const Ne = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8
518
518
  passwordBone: s
519
519
  };
520
520
  }
521
- }), dn = ["disabled"], cn = ["name"], mn = ["name"], fn = { class: "errors" };
521
+ }), dn = ["disabled"], cn = ["name"], fn = ["name"], mn = { class: "errors" };
522
522
  function gn(e, n, t, l, s, o) {
523
523
  return m(), h(E, null, [
524
- J(i("sl-input", {
524
+ Z(d("sl-input", {
525
525
  ref: "passwordBone",
526
526
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.state.value1 = a),
527
527
  disabled: e.boneState.readonly,
528
- class: ye({ "has-check": !e.boneState.readonly }),
528
+ class: pe({ "has-check": !e.boneState.readonly }),
529
529
  type: "password",
530
530
  clearable: "",
531
531
  "password-toggle": "true",
@@ -533,14 +533,14 @@ function gn(e, n, t, l, s, o) {
533
533
  onSlClear: n[2] || (n[2] = (a) => e.state.value1 = ""),
534
534
  onKeyup: n[3] || (n[3] = (...a) => e.changeEvent && e.changeEvent(...a))
535
535
  }, [
536
- i("sl-icon", {
536
+ d("sl-icon", {
537
537
  slot: "suffix",
538
538
  name: e.state.equal && e.state.value1.length ? "check" : "x"
539
539
  }, null, 8, cn)
540
540
  ], 42, dn), [
541
- [le, e.state.value1]
541
+ [se, e.state.value1]
542
542
  ]),
543
- e.boneState.readonly ? k("", !0) : J((m(), h("sl-input", {
543
+ e.boneState.readonly ? k("", !0) : Z((m(), h("sl-input", {
544
544
  key: 0,
545
545
  "onUpdate:modelValue": n[4] || (n[4] = (a) => e.state.value2 = a),
546
546
  class: "password-check",
@@ -551,23 +551,23 @@ function gn(e, n, t, l, s, o) {
551
551
  onSlClear: n[6] || (n[6] = (a) => e.state.value2 = ""),
552
552
  onKeyup: n[7] || (n[7] = (...a) => e.changeEvent && e.changeEvent(...a))
553
553
  }, [
554
- i("sl-icon", {
554
+ d("sl-icon", {
555
555
  slot: "suffix",
556
556
  name: e.state.equal && e.state.value1.length ? "check" : "x"
557
- }, null, 8, mn)
557
+ }, null, 8, fn)
558
558
  ], 544)), [
559
- [le, e.state.value2]
559
+ [se, e.state.value2]
560
560
  ]),
561
- i("ul", fn, [
562
- (m(!0), h(E, null, U(e.state.passwordInfo, (a, u) => (m(), h("li", { key: u }, B(a), 1))), 128)),
563
- (m(!0), h(E, null, U(e.state.requiredPasswordInfo, (a, u) => (m(), h("li", {
564
- key: u,
561
+ d("ul", mn, [
562
+ (m(!0), h(E, null, U(e.state.passwordInfo, (a, i) => (m(), h("li", { key: i }, B(a), 1))), 128)),
563
+ (m(!0), h(E, null, U(e.state.requiredPasswordInfo, (a, i) => (m(), h("li", {
564
+ key: i,
565
565
  class: "requiredInfo"
566
566
  }, B(a), 1))), 128))
567
567
  ])
568
568
  ], 64);
569
569
  }
570
- const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0"]]), hn = D({
570
+ const Ne = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0"]]), hn = D({
571
571
  props: {
572
572
  name: String,
573
573
  value: null,
@@ -578,20 +578,20 @@ const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
578
578
  },
579
579
  emits: ["change"],
580
580
  setup(e, n) {
581
- const t = O("boneState"), l = w({
581
+ const t = C("boneState"), l = w({
582
582
  value: S(() => e.value),
583
583
  structure: S(() => a(t.bonestructure.using)),
584
584
  globalRegistration: !1,
585
585
  formGroups: S(() => {
586
- var c, d;
587
- let u = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } };
586
+ var c, u;
587
+ let i = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } };
588
588
  for (const [f, p] of Object.entries(l.structure)) {
589
589
  let v = "default", _ = l.structure[f], g = (c = l.value) == null ? void 0 : c[f];
590
- (d = p == null ? void 0 : p.params) != null && d.category && (v = p.params.category.toLowerCase()), Object.keys(u).includes(v) ? u[v].bones.push({
590
+ (u = p == null ? void 0 : p.params) != null && u.category && (v = p.params.category.toLowerCase()), Object.keys(i).includes(v) ? i[v].bones.push({
591
591
  boneName: f,
592
592
  boneStructure: _,
593
593
  boneValue: g
594
- }) : u[v] = {
594
+ }) : i[v] = {
595
595
  name: p.params.category,
596
596
  bones: [
597
597
  {
@@ -600,36 +600,36 @@ const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
600
600
  boneValue: g
601
601
  }
602
602
  ]
603
- }, _.visible === !0 && (u[v].groupVisible = !0);
603
+ }, _.visible === !0 && (i[v].groupVisible = !0);
604
604
  }
605
605
  let r = {};
606
- return Object.keys(u).sort().forEach(function(f) {
607
- r[f] = u[f];
606
+ return Object.keys(i).sort().forEach(function(f) {
607
+ r[f] = i[f];
608
608
  }), r;
609
609
  })
610
610
  });
611
- function s(u) {
612
- n.emit("change", u);
611
+ function s(i) {
612
+ n.emit("change", i);
613
613
  }
614
614
  R(() => {
615
- rt().appContext.components.Bone ? l.globalRegistration = !0 : l.globalRegistration = !1, n.emit("change", e.name, e.value, e.lang, e.index);
615
+ lt().appContext.components.Bone ? l.globalRegistration = !0 : l.globalRegistration = !1, n.emit("change", e.name, e.value, e.lang, e.index);
616
616
  });
617
- function o(u) {
618
- console.log(u);
617
+ function o(i) {
618
+ console.log(i);
619
619
  }
620
- function a(u) {
621
- if (Array.isArray(u)) {
620
+ function a(i) {
621
+ if (Array.isArray(i)) {
622
622
  let r = {};
623
- for (const c in u)
624
- r[u[c][0]] = u[c][1];
623
+ for (const c in i)
624
+ r[i[c][0]] = i[c][1];
625
625
  return r;
626
626
  } else
627
- return u;
627
+ return i;
628
628
  }
629
629
  return {
630
630
  state: l,
631
631
  boneState: t,
632
- getBoneWidget: x,
632
+ getBoneWidget: X,
633
633
  structureToDict: a,
634
634
  changeEvent: s,
635
635
  updateValue: o
@@ -644,14 +644,14 @@ const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
644
644
  class: "form"
645
645
  }, pn = ["summary", "open"];
646
646
  function yn(e, n, t, l, s, o) {
647
- const a = se("bone");
647
+ const a = ae("bone");
648
648
  return e.state.globalRegistration ? (m(), h("div", vn, [
649
- (m(!0), h(E, null, U(e.state.formGroups, (u, r) => J((m(), h("sl-details", {
649
+ (m(!0), h(E, null, U(e.state.formGroups, (i, r) => Z((m(), h("sl-details", {
650
650
  key: r,
651
- summary: u.name,
652
- open: u.groupOpen
651
+ summary: i.name,
652
+ open: i.groupOpen
653
653
  }, [
654
- (m(!0), h(E, null, U(u.bones, (c) => J((m(), T(a, {
654
+ (m(!0), h(E, null, U(i.bones, (c) => Z((m(), T(a, {
655
655
  key: c.name,
656
656
  is: e.getBoneWidget(e.state.structure[c.boneName].type),
657
657
  name: c.boneName,
@@ -661,14 +661,14 @@ function yn(e, n, t, l, s, o) {
661
661
  readonly: e.boneState.bonestructure.readonly ? !0 : void 0,
662
662
  onChangeInternal: e.changeEvent
663
663
  }, null, 8, ["is", "name", "structure", "skel", "errors", "readonly", "onChangeInternal"])), [
664
- [ve, e.state.structure[c.boneName].visible]
664
+ [be, e.state.structure[c.boneName].visible]
665
665
  ])), 128))
666
666
  ], 8, pn)), [
667
- [ve, u.groupVisible]
667
+ [be, i.groupVisible]
668
668
  ])), 128))
669
669
  ])) : (m(), h("sl-alert", bn, " In Order to use this Bone register the bone component globally in your main file "));
670
670
  }
671
- const Qe = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca"]]), $n = D({
671
+ const Ze = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca"]]), $n = D({
672
672
  inheritAttrs: !1,
673
673
  props: {
674
674
  name: String,
@@ -676,17 +676,17 @@ const Qe = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca
676
676
  index: Number,
677
677
  lang: String
678
678
  },
679
- components: { Wrapper_nested: Qe },
679
+ components: { Wrapper_nested: Ze },
680
680
  emits: ["change"],
681
681
  setup(e, n) {
682
- const t = O("boneState"), l = w({
682
+ const t = C("boneState"), l = w({
683
683
  value: {},
684
684
  index: S(() => e.index),
685
685
  lang: S(() => e.lang)
686
686
  });
687
687
  function s(o) {
688
- var u;
689
- (u = l.value) != null && u[o.name] || (l.value ? l.value[o.name] = null : l.value = { [o.name]: null });
688
+ var i;
689
+ (i = l.value) != null && i[o.name] || (l.value ? l.value[o.name] = null : l.value = { [o.name]: null });
690
690
  let a = l.value[o.name];
691
691
  o.lang ? (a === null && (a = {}), Object.keys(a).includes(o.lang) && o.index !== null ? a[o.lang][o.index] = o.value : a[o.lang] = o.value) : o.index !== null ? (a === null && (a = []), a[o.index] = o.value) : a = o.value, l.value[o.name] = a, n.emit("change", e.name, l.value, e.lang, e.index, !0);
692
692
  }
@@ -700,7 +700,7 @@ const Qe = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca
700
700
  }
701
701
  });
702
702
  function Sn(e, n, t, l, s, o) {
703
- const a = se("Wrapper_nested");
703
+ const a = ae("Wrapper_nested");
704
704
  return m(), T(a, {
705
705
  value: e.value,
706
706
  name: e.name,
@@ -709,7 +709,7 @@ function Sn(e, n, t, l, s, o) {
709
709
  onChange: e.changeEvent
710
710
  }, null, 8, ["value", "name", "index", "disabled", "onChange"]);
711
711
  }
712
- const Le = /* @__PURE__ */ I($n, [["render", Sn], ["__scopeId", "data-v-84a761ce"]]), _n = D({
712
+ const Re = /* @__PURE__ */ I($n, [["render", Sn], ["__scopeId", "data-v-84a761ce"]]), _n = D({
713
713
  inheritAttrs: !1,
714
714
  props: {
715
715
  name: String,
@@ -720,7 +720,7 @@ const Le = /* @__PURE__ */ I($n, [["render", Sn], ["__scopeId", "data-v-84a761ce
720
720
  components: {},
721
721
  emits: ["change"],
722
722
  setup(e, n) {
723
- const t = O("boneState"), l = w({});
723
+ const t = C("boneState"), l = w({});
724
724
  function s(o) {
725
725
  n.emit("change", e.name, o.target.value, e.lang, e.index);
726
726
  }
@@ -740,7 +740,7 @@ function wn(e, n, t, l, s, o) {
740
740
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
741
741
  }, null, 40, kn);
742
742
  }
743
- const Ue = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149"]]), En = D({
743
+ const Le = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149"]]), En = D({
744
744
  inheritAttrs: !1,
745
745
  emits: { change: null },
746
746
  props: {
@@ -752,20 +752,20 @@ const Ue = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149
752
752
  },
753
753
  components: {},
754
754
  setup(e, n) {
755
- const t = O("boneState"), l = w({
755
+ const t = C("boneState"), l = w({
756
756
  minAmount: S(() => t.bonestructure.minAmount),
757
757
  maxAmount: S(() => t.bonestructure.maxAmount),
758
758
  precision: S(() => {
759
759
  if (t.bonestructure.precision > 1)
760
760
  return parseFloat(`0.${"0".repeat(t.bonestructure.precision - 1)}1`);
761
761
  })
762
- }), s = F(null);
762
+ }), s = q(null);
763
763
  function o(a) {
764
764
  n.emit("change", e.name, a.target.value, e.lang, e.index);
765
765
  }
766
- return ce(() => {
766
+ return de(() => {
767
767
  if (e.autofocus && s.value && s.value !== null && s !== null) {
768
- const { start: a } = me(() => {
768
+ const { start: a } = ce(() => {
769
769
  s.value.focus();
770
770
  }, 600);
771
771
  a();
@@ -782,7 +782,7 @@ const Ue = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149
782
782
  }), An = ["disabled", "value", "min", "max", "step"], In = { class: "info" }, Cn = { key: 0 }, On = { key: 1 }, jn = { key: 2 };
783
783
  function Bn(e, n, t, l, s, o) {
784
784
  return m(), h(E, null, [
785
- i("sl-input", {
785
+ d("sl-input", {
786
786
  ref: "numericBone",
787
787
  type: "number",
788
788
  disabled: e.boneState.readonly,
@@ -793,23 +793,23 @@ function Bn(e, n, t, l, s, o) {
793
793
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a)),
794
794
  onKeyup: n[1] || (n[1] = (...a) => e.changeEvent && e.changeEvent(...a))
795
795
  }, null, 40, An),
796
- i("ul", In, [
796
+ d("ul", In, [
797
797
  e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (m(), h("li", Cn, B(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : k("", !0),
798
798
  e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (m(), h("li", On, B(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : k("", !0),
799
799
  e.state.precision ? (m(), h("li", jn, B(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : k("", !0)
800
800
  ])
801
801
  ], 64);
802
802
  }
803
- const Te = /* @__PURE__ */ I(En, [["render", Bn], ["__scopeId", "data-v-03d5b399"]]);
803
+ const Ue = /* @__PURE__ */ I(En, [["render", Bn], ["__scopeId", "data-v-03d5b399"]]);
804
804
  var N = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
805
- class ue extends Error {
805
+ class ie extends Error {
806
806
  constructor(n, t, l, s) {
807
807
  super(l || t), arguments.length >= 4 && s && Object.assign(this, s), this.statusText = t, this.statusCode = n, this.response = s;
808
808
  }
809
809
  }
810
- let be = null;
811
- function X() {
812
- return be || (be = $e("requestStore", () => {
810
+ let he = null;
811
+ function Y() {
812
+ return he || (he = ye("requestStore", () => {
813
813
  const e = w({ sKeys: /* @__PURE__ */ new Set() });
814
814
  function n() {
815
815
  e.sKeys = /* @__PURE__ */ new Set();
@@ -818,41 +818,41 @@ function X() {
818
818
  state: e,
819
819
  $reset: n
820
820
  };
821
- })), be();
821
+ })), he();
822
822
  }
823
- class j {
823
+ class O {
824
824
  static resetState() {
825
- X().$reset(), X().$dispose();
825
+ Y().$reset(), Y().$dispose();
826
826
  }
827
827
  static buildUrl(n) {
828
828
  return n && !(n.startsWith("http://") || n.startsWith("https://") || n.startsWith("//")) && (n = (N.VITE_API_URL ? N.VITE_API_URL : window.location.origin) + n), n;
829
829
  }
830
- static post(n, { dataObj: t = null, callback: l = null, failedCallback: s = null, abortController: o = null, headers: a = null, mode: u = null } = {}) {
830
+ static post(n, { dataObj: t = null, callback: l = null, failedCallback: s = null, abortController: o = null, headers: a = null, mode: i = null } = {}) {
831
831
  function r() {
832
832
  if (t instanceof FormData)
833
833
  return t;
834
- const d = new FormData();
834
+ const u = new FormData();
835
835
  for (const f in t)
836
836
  if (Array.isArray(t[f]))
837
837
  for (let p of t[f])
838
- d.append(f, p);
838
+ u.append(f, p);
839
839
  else
840
- d.append(f, t[f]);
841
- return d;
842
- }
843
- let c = re.post(j.buildUrl(n), r(), null, a, o, u);
844
- return c.then(function(d) {
845
- l && l(d.data);
846
- }).catch(function(d) {
847
- s && s(d);
840
+ u.append(f, t[f]);
841
+ return u;
842
+ }
843
+ let c = le.post(O.buildUrl(n), r(), null, a, o, i);
844
+ return c.then(function(u) {
845
+ l && l(u.data);
846
+ }).catch(function(u) {
847
+ s && s(u);
848
848
  }), c;
849
849
  }
850
850
  static async getBatchSkeys(n = 30, t = N.VITE_DEFAULT_RENDERER || "json") {
851
- await j.get(`/${t}/skey`, {
851
+ await O.get(`/${t}/skey`, {
852
852
  dataObj: { amount: n }
853
853
  }).then(async (l) => {
854
854
  let s = await l.json();
855
- Array.isArray(s) || (s = [s]), X().state.sKeys = new Set(s);
855
+ Array.isArray(s) || (s = [s]), Y().state.sKeys = new Set(s);
856
856
  });
857
857
  }
858
858
  static async securePost(n, {
@@ -861,20 +861,20 @@ class j {
861
861
  failedCallback: s = null,
862
862
  abortController: o = null,
863
863
  renderer: a = N.VITE_DEFAULT_RENDERER || "json",
864
- headers: u = null,
864
+ headers: i = null,
865
865
  mode: r = null,
866
866
  amount: c = 30
867
867
  } = {}) {
868
- let d = null;
869
- X().state.sKeys.size === 0 && await j.getBatchSkeys(c);
870
- const f = [...X().state.sKeys][0];
871
- return t instanceof FormData ? (t.append("skey", f), X().state.sKeys.delete(f)) : (t || (t = {}), t.skey = f, X().state.sKeys.delete(f)), d = j.post(n, {
868
+ let u = null;
869
+ Y().state.sKeys.size === 0 && await O.getBatchSkeys(c);
870
+ const f = [...Y().state.sKeys][0];
871
+ return t instanceof FormData ? (t.append("skey", f), Y().state.sKeys.delete(f)) : (t || (t = {}), t.skey = f, Y().state.sKeys.delete(f)), u = O.post(n, {
872
872
  dataObj: t,
873
873
  callback: l,
874
874
  abortController: o,
875
- headers: u,
875
+ headers: i,
876
876
  mode: r
877
- }), d;
877
+ }), u;
878
878
  }
879
879
  static get(n, {
880
880
  dataObj: t = null,
@@ -882,13 +882,13 @@ class j {
882
882
  failedCallback: s = null,
883
883
  cached: o = !1,
884
884
  clearCache: a = !1,
885
- abortController: u = null,
885
+ abortController: i = null,
886
886
  headers: r = null,
887
887
  mode: c = null,
888
888
  // milli sec min Std Tage
889
- cacheTime: d = 1e3 * 60 * 60 * 24 * 1
889
+ cacheTime: u = 1e3 * 60 * 60 * 24 * 1
890
890
  } = {}) {
891
- let f = re.get(j.buildUrl(n), t, a, r, u, c);
891
+ let f = le.get(O.buildUrl(n), t, a, r, i, c);
892
892
  return f.then(function(p) {
893
893
  l && l(p.data);
894
894
  }).catch(function(p) {
@@ -901,10 +901,10 @@ class j {
901
901
  failedCallback: s = null,
902
902
  group: o = null,
903
903
  abortController: a = null,
904
- renderer: u = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
904
+ renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
905
905
  } = {}) {
906
- let r = `/${u}/${n}/list`;
907
- return o && (r += `/${o}`), j.get(r, {
906
+ let r = `/${i}/${n}/list`;
907
+ return o && (r += `/${o}`), O.get(r, {
908
908
  dataObj: t,
909
909
  callback: l,
910
910
  failedCallback: s,
@@ -917,11 +917,11 @@ class j {
917
917
  failedCallback: s = null,
918
918
  group: o = null,
919
919
  abortController: a = null,
920
- renderer: u = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
920
+ renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
921
921
  } = {}) {
922
922
  n = n.replace(/\//g, ".");
923
- let r = `/${u}/getStructure/${n}`;
924
- return o && (r += `/${o}`), j.get(r, {
923
+ let r = `/${i}/getStructure/${n}`;
924
+ return o && (r += `/${o}`), O.get(r, {
925
925
  dataObj: t,
926
926
  callback: l,
927
927
  failedCallback: s,
@@ -933,15 +933,15 @@ class j {
933
933
  callback: s = null,
934
934
  failedCallback: o = null,
935
935
  group: a = null,
936
- abortController: u = null,
936
+ abortController: i = null,
937
937
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
938
938
  } = {}) {
939
939
  let c = `/${r}/${n}/view/${t}`;
940
- return a && (c = `/${r}/${n}/view/${a}/${t}`), j.get(c, {
940
+ return a && (c = `/${r}/${n}/view/${a}/${t}`), O.get(c, {
941
941
  dataObj: l,
942
942
  callback: s,
943
943
  failedCallback: o,
944
- abortController: u
944
+ abortController: i
945
945
  });
946
946
  }
947
947
  static add(n, {
@@ -950,10 +950,10 @@ class j {
950
950
  failedCallback: s = null,
951
951
  group: o = null,
952
952
  abortController: a = null,
953
- renderer: u = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
953
+ renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
954
954
  } = {}) {
955
- let r = `/${u}/${n}/add`;
956
- return o && (r = `/${u}/${n}/add/${o}`), j.securePost(r, {
955
+ let r = `/${i}/${n}/add`;
956
+ return o && (r = `/${i}/${n}/add/${o}`), O.securePost(r, {
957
957
  dataObj: t,
958
958
  callback: l,
959
959
  failedCallback: s,
@@ -965,15 +965,15 @@ class j {
965
965
  callback: s = null,
966
966
  failedCallback: o = null,
967
967
  group: a = null,
968
- abortController: u = null,
968
+ abortController: i = null,
969
969
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
970
970
  } = {}) {
971
971
  let c = `/${r}/${n}/edit/${t}`;
972
- return a && (c = `/${r}/${n}/edit/${a}/${t}`), j.securePost(c, {
972
+ return a && (c = `/${r}/${n}/edit/${a}/${t}`), O.securePost(c, {
973
973
  dataObj: l,
974
974
  callback: s,
975
975
  failedCallback: o,
976
- abortController: u
976
+ abortController: i
977
977
  });
978
978
  }
979
979
  static delete(n, t, {
@@ -981,20 +981,20 @@ class j {
981
981
  callback: s = null,
982
982
  failedCallback: o = null,
983
983
  group: a = null,
984
- abortController: u = null,
984
+ abortController: i = null,
985
985
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
986
986
  } = {}) {
987
987
  let c = `/${r}/${n}/delete/${t}`;
988
- return a && (c = `/${r}/${n}/delete/${a}/${t}`), j.securePost(c, {
988
+ return a && (c = `/${r}/${n}/delete/${a}/${t}`), O.securePost(c, {
989
989
  dataObj: l,
990
990
  callback: s,
991
991
  failedCallback: o,
992
- abortController: u,
992
+ abortController: i,
993
993
  amount: 1
994
994
  });
995
995
  }
996
996
  static downloadUrlFor(n, t = !1) {
997
- return n && "dest" in n ? t && "thumbnail" in n.dest ? j.buildUrl(n.dest.thumbnail) : "downloadUrl" in n.dest ? j.buildUrl(n.dest.downloadUrl) : j.buildUrl(null) : j.buildUrl(n);
997
+ return n && "dest" in n ? t && "thumbnail" in n.dest ? O.buildUrl(n.dest.thumbnail) : "downloadUrl" in n.dest ? O.buildUrl(n.dest.downloadUrl) : O.buildUrl(null) : O.buildUrl(n);
998
998
  }
999
999
  static uploadFile(n, t = void 0) {
1000
1000
  const l = {
@@ -1004,22 +1004,22 @@ class j {
1004
1004
  node: t
1005
1005
  };
1006
1006
  return new Promise((s, o) => {
1007
- j.securePost("/vi/file/getUploadURL", { dataObj: l }).then(async (a) => {
1008
- let u = await a.json();
1009
- fetch(u.values.uploadUrl, {
1007
+ O.securePost("/vi/file/getUploadURL", { dataObj: l }).then(async (a) => {
1008
+ let i = await a.json();
1009
+ fetch(i.values.uploadUrl, {
1010
1010
  body: n,
1011
1011
  method: "POST",
1012
1012
  mode: "no-cors"
1013
1013
  }).then(async (r) => {
1014
1014
  const c = {
1015
- key: u.values.uploadKey,
1015
+ key: i.values.uploadKey,
1016
1016
  skelType: "leaf"
1017
1017
  };
1018
- j.securePost("/vi/file/add", { dataObj: c }).then(async (d) => {
1019
- let f = await d.json();
1018
+ O.securePost("/vi/file/add", { dataObj: c }).then(async (u) => {
1019
+ let f = await u.json();
1020
1020
  f.action === "addSuccess" ? s(f.values) : o(f);
1021
- }).catch((d) => {
1022
- o(d);
1021
+ }).catch((u) => {
1022
+ o(u);
1023
1023
  });
1024
1024
  }).catch((r) => {
1025
1025
  o(r);
@@ -1030,9 +1030,9 @@ class j {
1030
1030
  });
1031
1031
  }
1032
1032
  }
1033
- class re {
1033
+ class le {
1034
1034
  constructor() {
1035
- Ce(this, "withCredentials", !0);
1035
+ Ie(this, "withCredentials", !0);
1036
1036
  }
1037
1037
  static buildOptions(n, t = null, l = null, s = null, o = null) {
1038
1038
  let a = { method: n };
@@ -1041,8 +1041,8 @@ class re {
1041
1041
  }, l && (a.headers = { ...a.headers, ...l }), t && (a.body = t), s && (a.signal = s.signal), o && (a.mode = o), a;
1042
1042
  }
1043
1043
  static get(n, t = null, l = null, s = null, o = null, a = null) {
1044
- function u(r, c) {
1045
- let d = new URL(r);
1044
+ function i(r, c) {
1045
+ let u = new URL(r);
1046
1046
  if (c && Object.keys(c).length > 0) {
1047
1047
  const f = new URLSearchParams();
1048
1048
  for (const [p, v] of Object.entries(c))
@@ -1051,32 +1051,32 @@ class re {
1051
1051
  f.append(p, _);
1052
1052
  else
1053
1053
  f.append(p, v);
1054
- d.search = f.toString();
1054
+ u.search = f.toString();
1055
1055
  }
1056
- return d.toString();
1056
+ return u.toString();
1057
1057
  }
1058
- return fetch(u(n, t), re.buildOptions("GET", null, s, o, a)).then(async (r) => {
1058
+ return fetch(i(n, t), le.buildOptions("GET", null, s, o, a)).then(async (r) => {
1059
1059
  if (r.ok)
1060
1060
  return r;
1061
1061
  {
1062
1062
  const c = `${r.status} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1063
- return Promise.reject(new ue(r.status, r.statusText, c, r));
1063
+ return Promise.reject(new ie(r.status, r.statusText, c, r));
1064
1064
  }
1065
1065
  }).catch((r) => {
1066
1066
  if (r instanceof TypeError) {
1067
- const d = `503 ${r.message}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1068
- return Promise.reject(new ue(503, r.message, d, r));
1067
+ const u = `503 ${r.message}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1068
+ return Promise.reject(new ie(503, r.message, u, r));
1069
1069
  }
1070
1070
  if (r instanceof DOMException && r.name == "AbortError") {
1071
- const d = `${r.code} ${r.name}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1072
- return Promise.reject(new ue(r.code, r.name, d, { url: n }));
1071
+ const u = `${r.code} ${r.name}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1072
+ return Promise.reject(new ie(r.code, r.name, u, { url: n }));
1073
1073
  }
1074
1074
  const c = `${r.statusCode} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1075
- return Promise.reject(new ue(r.statusCode, r.statusText, c, r.response));
1075
+ return Promise.reject(new ie(r.statusCode, r.statusText, c, r.response));
1076
1076
  });
1077
1077
  }
1078
1078
  static post(n, t = null, l = null, s = null, o = null, a = null) {
1079
- return fetch(n, re.buildOptions("POST", t, s, o, a));
1079
+ return fetch(n, le.buildOptions("POST", t, s, o, a));
1080
1080
  }
1081
1081
  }
1082
1082
  var Dn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
@@ -1088,21 +1088,21 @@ const Vn = D({
1088
1088
  index: Number,
1089
1089
  lang: String
1090
1090
  },
1091
- components: { Wrapper_nested: Qe },
1091
+ components: { Wrapper_nested: Ze },
1092
1092
  emits: ["change"],
1093
1093
  setup(e, n) {
1094
- const t = O("boneState"), l = O("formatString"), s = w({
1094
+ const t = C("boneState"), l = C("formatString"), s = w({
1095
1095
  format: S(() => t == null ? void 0 : t.bonestructure.format),
1096
1096
  skellistdata: null,
1097
1097
  selection: null
1098
1098
  });
1099
1099
  function o(r) {
1100
1100
  let c = "";
1101
- return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"), j.get(
1101
+ return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"), O.get(
1102
1102
  `/${Dn.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${c}limit=99`
1103
- ).then(async (d) => {
1103
+ ).then(async (u) => {
1104
1104
  var p;
1105
- const f = await d.json();
1105
+ const f = await u.json();
1106
1106
  s.skellistdata = {};
1107
1107
  for (let v of f.skellist)
1108
1108
  s.skellistdata[v.key] = v;
@@ -1112,9 +1112,9 @@ const Vn = D({
1112
1112
  function a(r) {
1113
1113
  s.selection = { dest: s.skellistdata[r.detail.item.value] }, n.emit("change", e.name, s.selection, e.lang, e.index);
1114
1114
  }
1115
- function u(r) {
1116
- var d;
1117
- s.selection || (s.selection = {}), (d = s.selection.rel) != null && d[r.name] || (s.selection.rel ? s.selection.rel[r.name] = null : s.selection.rel = { [r.name]: null });
1115
+ function i(r) {
1116
+ var u;
1117
+ s.selection || (s.selection = {}), (u = s.selection.rel) != null && u[r.name] || (s.selection.rel ? s.selection.rel[r.name] = null : s.selection.rel = { [r.name]: null });
1118
1118
  let c = s.selection.rel[r.name];
1119
1119
  r.lang ? (c === null && (c = {}), Object.keys(c).includes(r.lang) && r.index !== null ? c[r.lang][r.index] = r.value : c[r.lang] = r.value) : r.index !== null ? (c === null && (c = []), c[r.index] = r.value) : c = r.value, Object.keys(s.selection).includes("rel") && s.selection.rel ? s.selection.rel[r.name] = c : s.selection.rel = { [r.name]: c }, Object.keys(s.selection).includes("dest") && n.emit("change", e.name, s.selection, e.lang, e.index);
1120
1120
  }
@@ -1125,21 +1125,21 @@ const Vn = D({
1125
1125
  boneState: t,
1126
1126
  formatString: l,
1127
1127
  changeEvent: a,
1128
- changeEventNested: u,
1128
+ changeEventNested: i,
1129
1129
  getList: o
1130
1130
  };
1131
1131
  }
1132
- }), Nn = (e) => (M("data-v-61dd72e0"), e = e(), z(), e), Rn = { class: "record" }, Ln = { class: "single-entry" }, Un = ["value"], Tn = ["disabled", "source"], Pn = ["title"], Mn = /* @__PURE__ */ Nn(() => /* @__PURE__ */ i("sl-icon", {
1132
+ }), Nn = (e) => (M("data-v-61dd72e0"), e = e(), z(), e), Rn = { class: "record" }, Ln = { class: "single-entry" }, Un = ["value"], Tn = ["disabled", "source"], Pn = ["title"], Mn = /* @__PURE__ */ Nn(() => /* @__PURE__ */ d("sl-icon", {
1133
1133
  slot: "prefix",
1134
1134
  name: "x-lg"
1135
- }, null, -1)), zn = [
1135
+ }, null, -1)), Wn = [
1136
1136
  Mn
1137
1137
  ];
1138
- function Wn(e, n, t, l, s, o) {
1139
- var u, r;
1140
- const a = se("Wrapper_nested");
1138
+ function zn(e, n, t, l, s, o) {
1139
+ var i, r;
1140
+ const a = ae("Wrapper_nested");
1141
1141
  return m(), h("div", Rn, [
1142
- i("div", Ln, [
1142
+ d("div", Ln, [
1143
1143
  e.state.selection ? (m(), h("sl-input", {
1144
1144
  key: 0,
1145
1145
  disabled: !0,
@@ -1160,9 +1160,9 @@ function Wn(e, n, t, l, s, o) {
1160
1160
  onClick: n[1] || (n[1] = () => {
1161
1161
  e.$emit("change", e.name, "", e.lang, e.index), e.state.selection = null;
1162
1162
  })
1163
- }, zn, 8, Pn)) : k("", !0)
1163
+ }, Wn, 8, Pn)) : k("", !0)
1164
1164
  ]),
1165
- (u = e.boneState) != null && u.bonestructure.using ? (m(), T(a, {
1165
+ (i = e.boneState) != null && i.bonestructure.using ? (m(), T(a, {
1166
1166
  key: 0,
1167
1167
  value: (r = e.value) == null ? void 0 : r.rel,
1168
1168
  name: e.name,
@@ -1172,7 +1172,7 @@ function Wn(e, n, t, l, s, o) {
1172
1172
  }, null, 8, ["value", "name", "index", "disabled", "onChange"])) : k("", !0)
1173
1173
  ]);
1174
1174
  }
1175
- const Pe = /* @__PURE__ */ I(Vn, [["render", Wn], ["__scopeId", "data-v-61dd72e0"]]), qn = D({
1175
+ const Te = /* @__PURE__ */ I(Vn, [["render", zn], ["__scopeId", "data-v-61dd72e0"]]), qn = D({
1176
1176
  inheritAttrs: !1,
1177
1177
  props: {
1178
1178
  name: String,
@@ -1185,7 +1185,7 @@ const Pe = /* @__PURE__ */ I(Vn, [["render", Wn], ["__scopeId", "data-v-61dd72e0
1185
1185
  components: {},
1186
1186
  emits: ["change"],
1187
1187
  setup(e, n) {
1188
- const t = O("boneState"), l = w({});
1188
+ const t = C("boneState"), l = w({});
1189
1189
  function s(o, a) {
1190
1190
  n.emit("change", e.name, o, e.lang, e.index);
1191
1191
  }
@@ -1202,7 +1202,7 @@ function Kn(e, n, t, l, s, o) {
1202
1202
  return m(), h("div", Fn, B(e.value), 1);
1203
1203
  }
1204
1204
  const Hn = /* @__PURE__ */ I(qn, [["render", Kn], ["__scopeId", "data-v-343aca69"]]);
1205
- var Me = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1205
+ var Pe = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1206
1206
  const Gn = D({
1207
1207
  inheritAttrs: !1,
1208
1208
  props: {
@@ -1214,7 +1214,7 @@ const Gn = D({
1214
1214
  components: {},
1215
1215
  emits: ["change"],
1216
1216
  setup(e, n) {
1217
- const t = O("boneState"), l = F(), s = w({
1217
+ const t = C("boneState"), l = q(), s = w({
1218
1218
  loading: !1,
1219
1219
  droparea: !1,
1220
1220
  previewopen: !1
@@ -1223,22 +1223,22 @@ const Gn = D({
1223
1223
  n.emit("change", e.name, e.value, e.lang, e.index);
1224
1224
  });
1225
1225
  function o() {
1226
- console.log(j.downloadUrlFor(e.value)), window.open(j.downloadUrlFor(e.value));
1226
+ console.log(O.downloadUrlFor(e.value)), window.open(O.downloadUrlFor(e.value));
1227
1227
  }
1228
1228
  function a() {
1229
- return j.downloadUrlFor(e.value, !1);
1229
+ return O.downloadUrlFor(e.value, !1);
1230
1230
  }
1231
- function u(d) {
1231
+ function i(u) {
1232
1232
  const f = {
1233
- fileName: d.name,
1234
- mimeType: d.type || "application/octet-stream",
1235
- size: d.size.toString()
1233
+ fileName: u.name,
1234
+ mimeType: u.type || "application/octet-stream",
1235
+ size: u.size.toString()
1236
1236
  };
1237
1237
  return new Promise((p, v) => {
1238
- j.securePost(`/${Me.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
1238
+ O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
1239
1239
  let g = await _.json();
1240
1240
  fetch(g.values.uploadUrl, {
1241
- body: d,
1241
+ body: u,
1242
1242
  method: "POST",
1243
1243
  mode: "no-cors"
1244
1244
  }).then(async (b) => {
@@ -1247,7 +1247,7 @@ const Gn = D({
1247
1247
  node: void 0,
1248
1248
  skelType: "leaf"
1249
1249
  };
1250
- j.securePost(`/${Me.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => {
1250
+ O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => {
1251
1251
  let A = await $.json();
1252
1252
  A.action === "addSuccess" ? p(A.values) : v(A);
1253
1253
  }).catch(($) => {
@@ -1261,18 +1261,18 @@ const Gn = D({
1261
1261
  });
1262
1262
  });
1263
1263
  }
1264
- async function r(d) {
1264
+ async function r(u) {
1265
1265
  s.loading = !0;
1266
- for (let f of d.target.files) {
1267
- let p = await u(f);
1266
+ for (let f of u.target.files) {
1267
+ let p = await i(f);
1268
1268
  l.value.value = null, n.emit("change", e.name, { dest: p, rel: null }, e.lang, e.index);
1269
1269
  }
1270
1270
  s.loading = !1;
1271
1271
  }
1272
- async function c(d) {
1272
+ async function c(u) {
1273
1273
  s.loading = !0, s.droparea = !1;
1274
- for (let f of d.dataTransfer.files) {
1275
- let p = await u(f);
1274
+ for (let f of u.dataTransfer.files) {
1275
+ let p = await i(f);
1276
1276
  l.value.value = null, n.emit("change", e.name, { dest: p, rel: null }, e.lang, e.index);
1277
1277
  break;
1278
1278
  }
@@ -1291,14 +1291,14 @@ const Gn = D({
1291
1291
  }), fe = (e) => (M("data-v-91086308"), e = e(), z(), e), Zn = {
1292
1292
  key: 0,
1293
1293
  class: "loader"
1294
- }, Jn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-spinner", { slot: "suffix" }, null, -1)), Qn = [
1294
+ }, Jn = /* @__PURE__ */ fe(() => /* @__PURE__ */ d("sl-spinner", { slot: "suffix" }, null, -1)), Qn = [
1295
1295
  Jn
1296
1296
  ], Yn = {
1297
1297
  key: 1,
1298
1298
  class: "droparea"
1299
- }, Xn = ["title"], xn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), ea = [
1299
+ }, Xn = ["title"], xn = /* @__PURE__ */ fe(() => /* @__PURE__ */ d("sl-icon", { name: "upload" }, null, -1)), ea = [
1300
1300
  xn
1301
- ], ta = ["multiple"], na = ["title"], aa = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", {
1301
+ ], ta = ["multiple"], na = ["title"], aa = /* @__PURE__ */ fe(() => /* @__PURE__ */ d("sl-icon", {
1302
1302
  slot: "prefix",
1303
1303
  name: "download"
1304
1304
  }, null, -1)), sa = [
@@ -1309,16 +1309,16 @@ const Gn = D({
1309
1309
  }, da = {
1310
1310
  key: 0,
1311
1311
  name: "file-earmark"
1312
- }, ca = { key: 2 }, ma = ["title"], fa = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "x-lg" }, null, -1)), ga = [
1313
- fa
1312
+ }, ca = { key: 2 }, fa = ["title"], ma = /* @__PURE__ */ fe(() => /* @__PURE__ */ d("sl-icon", { name: "x-lg" }, null, -1)), ga = [
1313
+ ma
1314
1314
  ];
1315
1315
  function ha(e, n, t, l, s, o) {
1316
- var a, u, r, c, d, f, p, v, _, g;
1316
+ var a, i, r, c, u, f, p, v, _, g;
1317
1317
  return m(), h("div", {
1318
1318
  class: "file-wrapper",
1319
- onDragover: n[5] || (n[5] = de((b) => e.state.droparea = !0, ["prevent"])),
1319
+ onDragover: n[5] || (n[5] = ue((b) => e.state.droparea = !0, ["prevent"])),
1320
1320
  onDragleave: n[6] || (n[6] = (b) => e.state.droparea = !1),
1321
- onDrop: n[7] || (n[7] = de((...b) => e.handleDrop && e.handleDrop(...b), ["prevent"]))
1321
+ onDrop: n[7] || (n[7] = ue((...b) => e.handleDrop && e.handleDrop(...b), ["prevent"]))
1322
1322
  }, [
1323
1323
  e.state.loading ? (m(), h("div", Zn, Qn)) : k("", !0),
1324
1324
  e.state.droparea ? (m(), h("div", Yn, " Dateien hier hinziehen ")) : k("", !0),
@@ -1329,7 +1329,7 @@ function ha(e, n, t, l, s, o) {
1329
1329
  class: "upload-btn",
1330
1330
  onClick: n[0] || (n[0] = (b) => e.uploadinput.click())
1331
1331
  }, ea, 8, Xn)) : k("", !0),
1332
- i("input", {
1332
+ d("input", {
1333
1333
  ref: "uploadinput",
1334
1334
  hidden: "",
1335
1335
  type: "file",
@@ -1341,29 +1341,29 @@ function ha(e, n, t, l, s, o) {
1341
1341
  title: e.$t("bone.download"),
1342
1342
  onClick: n[2] || (n[2] = (...b) => e.downloadFile && e.downloadFile(...b))
1343
1343
  }, sa, 8, na)) : k("", !0),
1344
- i("div", la, [
1345
- (u = (a = e.value) == null ? void 0 : a.dest) != null && u.mimetype.includes("image") ? (m(), h("div", {
1344
+ d("div", la, [
1345
+ (i = (a = e.value) == null ? void 0 : a.dest) != null && i.mimetype.includes("image") ? (m(), h("div", {
1346
1346
  key: 0,
1347
1347
  class: "preview has-preview",
1348
1348
  onClick: n[3] || (n[3] = (b) => e.state.previewopen = !e.state.previewopen)
1349
1349
  }, [
1350
- i("img", {
1350
+ d("img", {
1351
1351
  class: "preview-img",
1352
1352
  src: e.createBackgroundImage(),
1353
1353
  alt: ""
1354
1354
  }, null, 8, ra),
1355
- i("sl-dialog", {
1355
+ d("sl-dialog", {
1356
1356
  label: decodeURIComponent((c = (r = e.value) == null ? void 0 : r.dest) == null ? void 0 : c.name),
1357
1357
  class: "preview-overlay",
1358
1358
  open: e.state.previewopen
1359
1359
  }, [
1360
- i("img", {
1360
+ d("img", {
1361
1361
  src: e.createBackgroundImage(),
1362
1362
  alt: ""
1363
1363
  }, null, 8, ia)
1364
1364
  ], 8, oa)
1365
1365
  ])) : (m(), h("div", ua, [
1366
- (f = (d = e.value) == null ? void 0 : d.dest) != null && f.name ? (m(), h("sl-icon", da)) : k("", !0)
1366
+ (f = (u = e.value) == null ? void 0 : u.dest) != null && f.name ? (m(), h("sl-icon", da)) : k("", !0)
1367
1367
  ])),
1368
1368
  (v = (p = e.value) == null ? void 0 : p.dest) != null && v.name ? (m(), h("div", ca, B(decodeURIComponent((g = (_ = e.value) == null ? void 0 : _.dest) == null ? void 0 : g.name)), 1)) : k("", !0)
1369
1369
  ]),
@@ -1374,10 +1374,10 @@ function ha(e, n, t, l, s, o) {
1374
1374
  title: e.$t("bone.del"),
1375
1375
  class: "delete-btn",
1376
1376
  onClick: n[4] || (n[4] = (b) => e.$emit("change", e.name, "", e.lang, e.index))
1377
- }, ga, 8, ma))
1377
+ }, ga, 8, fa))
1378
1378
  ], 32);
1379
1379
  }
1380
- const ze = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308"]]), ba = D({
1380
+ const Me = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308"]]), ba = D({
1381
1381
  inheritAttrs: !1,
1382
1382
  props: {
1383
1383
  name: String,
@@ -1388,29 +1388,29 @@ const ze = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308
1388
1388
  components: {},
1389
1389
  emits: ["change"],
1390
1390
  setup(e, n) {
1391
- const t = O("boneState"), l = w({
1391
+ const t = C("boneState"), l = w({
1392
1392
  value: "",
1393
1393
  editorConfig: {},
1394
1394
  editor: S(() => ClassicEditor)
1395
1395
  });
1396
- function s(u) {
1396
+ function s(i) {
1397
1397
  n.emit("change", e.name, l.value, e.lang, e.index);
1398
1398
  }
1399
- function o(u) {
1400
- l.value = u.target.value, n.emit("change", e.name, l.value, e.lang, e.index);
1399
+ function o(i) {
1400
+ l.value = i.target.value, n.emit("change", e.name, l.value, e.lang, e.index);
1401
1401
  }
1402
1402
  R(() => {
1403
1403
  e.value !== null && (l.value = e.value), n.emit("change", e.name, e.value, e.lang, e.index);
1404
1404
  });
1405
- function a(u) {
1406
- u.editing.view.change((r) => {
1407
- r.setStyle("min-height", "250px", u.editing.view.document.getRoot());
1405
+ function a(i) {
1406
+ i.editing.view.change((r) => {
1407
+ r.setStyle("min-height", "250px", i.editing.view.document.getRoot());
1408
1408
  });
1409
1409
  }
1410
- return ae(
1410
+ return ne(
1411
1411
  () => e.value,
1412
- (u, r) => {
1413
- l.value = u;
1412
+ (i, r) => {
1413
+ l.value = i;
1414
1414
  }
1415
1415
  ), {
1416
1416
  state: l,
@@ -1423,10 +1423,10 @@ const ze = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308
1423
1423
  }
1424
1424
  }), va = ["disabled", "value"];
1425
1425
  function pa(e, n, t, l, s, o) {
1426
- var u, r, c, d;
1427
- const a = se("ckeditor");
1426
+ var i, r, c, u;
1427
+ const a = ae("ckeditor");
1428
1428
  return e.state.editor ? (m(), h(E, { key: 0 }, [
1429
- (u = e.boneState.bonestructure) != null && u.valid_html || (r = e.boneState.bonestructure) != null && r.validHtml ? (m(), T(a, {
1429
+ (i = e.boneState.bonestructure) != null && i.valid_html || (r = e.boneState.bonestructure) != null && r.validHtml ? (m(), T(a, {
1430
1430
  key: 0,
1431
1431
  modelValue: e.state.value,
1432
1432
  "onUpdate:modelValue": n[0] || (n[0] = (f) => e.state.value = f),
@@ -1437,7 +1437,7 @@ function pa(e, n, t, l, s, o) {
1437
1437
  onInput: e.changeEvent
1438
1438
  }, null, 8, ["modelValue", "editor", "config", "disabled", "onReady", "onInput"])) : (m(), h("sl-textarea", {
1439
1439
  key: 1,
1440
- disabled: (d = e.boneState) == null ? void 0 : d.readonly,
1440
+ disabled: (u = e.boneState) == null ? void 0 : u.readonly,
1441
1441
  value: e.value,
1442
1442
  onInput: n[1] || (n[1] = (...f) => e.changeEventTextarea && e.changeEventTextarea(...f))
1443
1443
  }, null, 40, va))
@@ -1454,7 +1454,7 @@ const We = /* @__PURE__ */ I(ba, [["render", pa]]), ya = D({
1454
1454
  components: {},
1455
1455
  emits: ["change"],
1456
1456
  setup(e, n) {
1457
- const t = O("boneState"), l = w({
1457
+ const t = C("boneState"), l = w({
1458
1458
  valueLat: null,
1459
1459
  valueLng: null
1460
1460
  });
@@ -1476,7 +1476,7 @@ const We = /* @__PURE__ */ I(ba, [["render", pa]]), ya = D({
1476
1476
  }), $a = ["name", "min", "max", "disabled"], Sa = ["name", "min", "max", "disabled"];
1477
1477
  function _a(e, n, t, l, s, o) {
1478
1478
  return m(), h(E, null, [
1479
- J(i("sl-input", {
1479
+ Z(d("sl-input", {
1480
1480
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.state.valueLat = a),
1481
1481
  index: "lat",
1482
1482
  type: "number",
@@ -1489,9 +1489,9 @@ function _a(e, n, t, l, s, o) {
1489
1489
  onSlChange: n[1] || (n[1] = (...a) => e.changeEvent && e.changeEvent(...a)),
1490
1490
  placeholder: "Lat"
1491
1491
  }, null, 40, $a), [
1492
- [le, e.state.valueLat]
1492
+ [se, e.state.valueLat]
1493
1493
  ]),
1494
- J(i("sl-input", {
1494
+ Z(d("sl-input", {
1495
1495
  "onUpdate:modelValue": n[2] || (n[2] = (a) => e.state.valueLng = a),
1496
1496
  index: "lng",
1497
1497
  type: "number",
@@ -1504,11 +1504,11 @@ function _a(e, n, t, l, s, o) {
1504
1504
  onSlChange: n[3] || (n[3] = (...a) => e.changeEvent && e.changeEvent(...a)),
1505
1505
  placeholder: "Long"
1506
1506
  }, null, 40, Sa), [
1507
- [le, e.state.valueLng]
1507
+ [se, e.state.valueLng]
1508
1508
  ])
1509
1509
  ], 64);
1510
1510
  }
1511
- const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020"]]), ka = D({
1511
+ const ze = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020"]]), ka = D({
1512
1512
  props: {
1513
1513
  name: String,
1514
1514
  value: Object,
@@ -1520,10 +1520,10 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
1520
1520
  components: {},
1521
1521
  emits: ["change"],
1522
1522
  setup(e, n) {
1523
- const t = O("boneState"), l = w({
1523
+ const t = C("boneState"), l = w({
1524
1524
  counter: 0,
1525
1525
  debounce: null
1526
- }), s = O("addMultipleEntry"), o = O("removeMultipleEntries");
1526
+ }), s = C("addMultipleEntry"), o = C("removeMultipleEntries");
1527
1527
  function a() {
1528
1528
  l.counter += 1;
1529
1529
  let r = 200;
@@ -1533,7 +1533,7 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
1533
1533
  l.counter = 0;
1534
1534
  }, r);
1535
1535
  }
1536
- function u() {
1536
+ function i() {
1537
1537
  let r = 200;
1538
1538
  l.debounce && clearTimeout(l.debounce), l.debounce = setTimeout(() => {
1539
1539
  o(e.lang);
@@ -1545,16 +1545,16 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
1545
1545
  state: l,
1546
1546
  boneState: t,
1547
1547
  handleAdd: a,
1548
- handleRemove: u,
1548
+ handleRemove: i,
1549
1549
  removeMultipleEntries: o
1550
1550
  };
1551
1551
  }
1552
- }), Ye = (e) => (M("data-v-63e75dee"), e = e(), z(), e), wa = { class: "actionbar" }, Ea = ["title"], Aa = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", {
1552
+ }), Je = (e) => (M("data-v-63e75dee"), e = e(), z(), e), wa = { class: "actionbar" }, Ea = ["title"], Aa = /* @__PURE__ */ Je(() => /* @__PURE__ */ d("sl-icon", {
1553
1553
  slot: "prefix",
1554
1554
  name: "x-lg"
1555
1555
  }, null, -1)), Ia = [
1556
1556
  Aa
1557
- ], Ca = ["title"], Oa = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", {
1557
+ ], Ca = ["title"], Oa = /* @__PURE__ */ Je(() => /* @__PURE__ */ d("sl-icon", {
1558
1558
  slot: "prefix",
1559
1559
  name: "plus-lg"
1560
1560
  }, null, -1));
@@ -1577,9 +1577,9 @@ function ja(e, n, t, l, s, o) {
1577
1577
  onClick: n[1] || (n[1] = (a) => e.handleAdd(e.lang))
1578
1578
  }, [
1579
1579
  Oa,
1580
- C(" " + B(e.$t("bone.add")) + " ", 1),
1580
+ j(" " + B(e.$t("bone.add")) + " ", 1),
1581
1581
  e.state.counter > 1 ? (m(), h(E, { key: 0 }, [
1582
- C("(" + B(e.state.counter) + ")", 1)
1582
+ j("(" + B(e.state.counter) + ")", 1)
1583
1583
  ], 64)) : k("", !0)
1584
1584
  ], 8, Ca)) : k("", !0)
1585
1585
  ]);
@@ -1598,17 +1598,17 @@ const Va = D({
1598
1598
  components: {},
1599
1599
  emits: ["change"],
1600
1600
  setup(e, n) {
1601
- const t = O("boneState"), l = O("addMultipleEntry"), s = O("formatString"), o = null, a = w({
1601
+ const t = C("boneState"), l = C("addMultipleEntry"), s = C("formatString"), o = null, a = w({
1602
1602
  skels: {},
1603
1603
  hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
1604
1604
  });
1605
- function u(r) {
1605
+ function i(r) {
1606
1606
  let c = "";
1607
- return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"), j.get(
1607
+ return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"), O.get(
1608
1608
  `/${Da.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${c}limit=99`
1609
- ).then(async (d) => {
1609
+ ).then(async (u) => {
1610
1610
  var p;
1611
- const f = await d.json();
1611
+ const f = await u.json();
1612
1612
  return a.skels = f.skellist.reduce((v, _) => (v[_.key] = _, v), {}), (p = f.skellist) == null ? void 0 : p.map((v) => ({ text: s(t.bonestructure.format, { dest: v }), value: v.key, data: v }));
1613
1613
  });
1614
1614
  }
@@ -1619,19 +1619,19 @@ const Va = D({
1619
1619
  boneState: t,
1620
1620
  addMultipleEntry: l,
1621
1621
  removeMultipleEntries: o,
1622
- getList: u
1622
+ getList: i
1623
1623
  };
1624
1624
  }
1625
- }), Xe = (e) => (M("data-v-eeea51c6"), e = e(), z(), e), Na = { class: "actionbar" }, Ra = ["title"], La = /* @__PURE__ */ Xe(() => /* @__PURE__ */ i("sl-icon", {
1625
+ }), Qe = (e) => (M("data-v-eeea51c6"), e = e(), z(), e), Na = { class: "actionbar" }, Ra = ["title"], La = /* @__PURE__ */ Qe(() => /* @__PURE__ */ d("sl-icon", {
1626
1626
  slot: "prefix",
1627
1627
  name: "x-lg"
1628
1628
  }, null, -1)), Ua = [
1629
1629
  La
1630
- ], Ta = ["source"], Pa = ["title"], Ma = /* @__PURE__ */ Xe(() => /* @__PURE__ */ i("sl-icon", {
1630
+ ], Ta = ["source"], Pa = ["title"], Ma = /* @__PURE__ */ Qe(() => /* @__PURE__ */ d("sl-icon", {
1631
1631
  slot: "prefix",
1632
1632
  name: "plus-lg"
1633
1633
  }, null, -1));
1634
- function za(e, n, t, l, s, o) {
1634
+ function Wa(e, n, t, l, s, o) {
1635
1635
  return m(), h("div", Na, [
1636
1636
  e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1637
1637
  key: 0,
@@ -1641,13 +1641,13 @@ function za(e, n, t, l, s, o) {
1641
1641
  class: "delete-btn",
1642
1642
  onClick: n[0] || (n[0] = (a) => e.openSelector())
1643
1643
  }, Ua, 8, Ra)) : k("", !0),
1644
- i("sl-combobox", {
1644
+ d("sl-combobox", {
1645
1645
  source: e.getList,
1646
1646
  hoist: "",
1647
1647
  onSlItemSelect: n[1] || (n[1] = (a) => {
1648
- var u;
1648
+ var i;
1649
1649
  return e.addMultipleEntry(e.lang, {
1650
- dest: (u = e.state.skels) == null ? void 0 : u[a.detail.item.value],
1650
+ dest: (i = e.state.skels) == null ? void 0 : i[a.detail.item.value],
1651
1651
  rel: e.state.hasUsing ? void 0 : null
1652
1652
  });
1653
1653
  })
@@ -1661,12 +1661,12 @@ function za(e, n, t, l, s, o) {
1661
1661
  onClick: n[2] || (n[2] = (a) => e.addMultipleEntry(e.lang))
1662
1662
  }, [
1663
1663
  Ma,
1664
- C(" " + B(e.$t("bone.list")), 1)
1664
+ j(" " + B(e.$t("bone.list")), 1)
1665
1665
  ], 8, Pa)) : k("", !0)
1666
1666
  ]);
1667
1667
  }
1668
- const Wa = /* @__PURE__ */ I(Va, [["render", za], ["__scopeId", "data-v-eeea51c6"]]);
1669
- var Fe = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1668
+ const za = /* @__PURE__ */ I(Va, [["render", Wa], ["__scopeId", "data-v-eeea51c6"]]);
1669
+ var qe = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1670
1670
  const qa = D({
1671
1671
  props: {
1672
1672
  name: String,
@@ -1679,26 +1679,26 @@ const qa = D({
1679
1679
  components: {},
1680
1680
  emits: ["change"],
1681
1681
  setup(e, n) {
1682
- const t = O("boneState"), l = O("addMultipleEntry");
1683
- O("formatString");
1684
- const s = null, o = F(), a = w({
1682
+ const t = C("boneState"), l = C("addMultipleEntry");
1683
+ C("formatString");
1684
+ const s = null, o = q(), a = w({
1685
1685
  skels: {},
1686
1686
  uploadinput: null,
1687
1687
  loading: !1,
1688
1688
  droparea: !1,
1689
1689
  hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
1690
1690
  });
1691
- function u(d) {
1691
+ function i(u) {
1692
1692
  const f = {
1693
- fileName: d.name,
1694
- mimeType: d.type || "application/octet-stream",
1695
- size: d.size.toString()
1693
+ fileName: u.name,
1694
+ mimeType: u.type || "application/octet-stream",
1695
+ size: u.size.toString()
1696
1696
  };
1697
1697
  return new Promise((p, v) => {
1698
- j.securePost(`/${Fe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
1698
+ O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
1699
1699
  let g = await _.json();
1700
1700
  fetch(g.values.uploadUrl, {
1701
- body: d,
1701
+ body: u,
1702
1702
  method: "POST",
1703
1703
  mode: "no-cors"
1704
1704
  }).then(async (b) => {
@@ -1707,7 +1707,7 @@ const qa = D({
1707
1707
  node: void 0,
1708
1708
  skelType: "leaf"
1709
1709
  };
1710
- j.securePost(`/${Fe.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => {
1710
+ O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => {
1711
1711
  let A = await $.json();
1712
1712
  A.action === "addSuccess" ? p(A.values) : v(A);
1713
1713
  }).catch(($) => {
@@ -1721,20 +1721,20 @@ const qa = D({
1721
1721
  });
1722
1722
  });
1723
1723
  }
1724
- async function r(d) {
1724
+ async function r(u) {
1725
1725
  a.loading = !0;
1726
- for (let f of d.target.files) {
1727
- let p = await u(f);
1726
+ for (let f of u.target.files) {
1727
+ let p = await i(f);
1728
1728
  o.value.value = null;
1729
1729
  let v = null;
1730
1730
  a.hasUsing && (v = void 0), l(e.lang, { dest: p, rel: v });
1731
1731
  }
1732
1732
  a.loading = !1;
1733
1733
  }
1734
- async function c(d) {
1734
+ async function c(u) {
1735
1735
  a.loading = !0, a.droparea = !1;
1736
- for (let f of d.dataTransfer.files) {
1737
- let p = await u(f);
1736
+ for (let f of u.dataTransfer.files) {
1737
+ let p = await i(f);
1738
1738
  o.value.value = null;
1739
1739
  let v = null;
1740
1740
  a.hasUsing && (v = void 0), l(e.lang, { dest: p, rel: v });
@@ -1748,13 +1748,13 @@ const qa = D({
1748
1748
  boneState: t,
1749
1749
  addMultipleEntry: l,
1750
1750
  removeMultipleEntries: s,
1751
- uploadFile: u,
1751
+ uploadFile: i,
1752
1752
  uploadinput: o,
1753
1753
  handleUpload: r,
1754
1754
  handleDrop: c
1755
1755
  };
1756
1756
  }
1757
- }), Se = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), Fa = ["title"], Ka = /* @__PURE__ */ Se(() => /* @__PURE__ */ i("sl-icon", {
1757
+ }), $e = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), Fa = ["title"], Ka = /* @__PURE__ */ $e(() => /* @__PURE__ */ d("sl-icon", {
1758
1758
  slot: "prefix",
1759
1759
  name: "x-lg"
1760
1760
  }, null, -1)), Ha = [
@@ -1762,21 +1762,21 @@ const qa = D({
1762
1762
  ], Ga = {
1763
1763
  key: 1,
1764
1764
  class: "droparea"
1765
- }, Za = ["multiple"], Ja = ["title"], Qa = /* @__PURE__ */ Se(() => /* @__PURE__ */ i("sl-icon", {
1765
+ }, Za = ["multiple"], Ja = ["title"], Qa = /* @__PURE__ */ $e(() => /* @__PURE__ */ d("sl-icon", {
1766
1766
  slot: "prefix",
1767
1767
  name: "plus-lg"
1768
1768
  }, null, -1)), Ya = [
1769
1769
  Qa
1770
- ], Xa = ["title"], xa = /* @__PURE__ */ Se(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), es = {
1770
+ ], Xa = ["title"], xa = /* @__PURE__ */ $e(() => /* @__PURE__ */ d("sl-icon", { name: "upload" }, null, -1)), es = {
1771
1771
  key: 0,
1772
1772
  slot: "suffix"
1773
1773
  };
1774
1774
  function ts(e, n, t, l, s, o) {
1775
1775
  return m(), h("div", {
1776
1776
  class: "actionbar",
1777
- onDragover: n[4] || (n[4] = de((a) => e.state.droparea = !0, ["prevent"])),
1777
+ onDragover: n[4] || (n[4] = ue((a) => e.state.droparea = !0, ["prevent"])),
1778
1778
  onDragleave: n[5] || (n[5] = (a) => e.state.droparea = !1),
1779
- onDrop: n[6] || (n[6] = de((...a) => e.handleDrop && e.handleDrop(...a), ["prevent"]))
1779
+ onDrop: n[6] || (n[6] = ue((...a) => e.handleDrop && e.handleDrop(...a), ["prevent"]))
1780
1780
  }, [
1781
1781
  e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1782
1782
  key: 0,
@@ -1787,7 +1787,7 @@ function ts(e, n, t, l, s, o) {
1787
1787
  onClick: n[0] || (n[0] = (a) => e.openSelector())
1788
1788
  }, Ha, 8, Fa)) : k("", !0),
1789
1789
  e.state.droparea ? (m(), h("div", Ga, " Dateien hier hinziehen ")) : k("", !0),
1790
- i("input", {
1790
+ d("input", {
1791
1791
  ref: "uploadinput",
1792
1792
  hidden: "",
1793
1793
  type: "file",
@@ -1810,44 +1810,44 @@ function ts(e, n, t, l, s, o) {
1810
1810
  onClick: n[3] || (n[3] = (a) => e.uploadinput.click())
1811
1811
  }, [
1812
1812
  xa,
1813
- C(" " + B(e.$t("bone.upload")) + " ", 1),
1813
+ j(" " + B(e.$t("bone.upload")) + " ", 1),
1814
1814
  e.state.loading ? (m(), h("sl-spinner", es)) : k("", !0)
1815
1815
  ], 8, Xa)) : k("", !0)
1816
1816
  ], 32);
1817
1817
  }
1818
- const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a"]]), _e = $e("boneStore", () => {
1818
+ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a"]]), Se = ye("boneStore", () => {
1819
1819
  const e = w({
1820
- additionalBones: G({}),
1821
- defaultBones: G({
1822
- rawBone: pe,
1823
- keyBone: Oe,
1824
- stringBone: je,
1825
- emailBone: Be,
1826
- dateBone: De,
1827
- booleanBone: Ne,
1828
- selectBone: Ve,
1829
- passwordBone: Re,
1830
- recordBone: Le,
1831
- numericBone: Te,
1832
- colorBone: Ue,
1833
- relationalBone: Pe,
1820
+ additionalBones: H({}),
1821
+ defaultBones: H({
1822
+ rawBone: ve,
1823
+ keyBone: Ce,
1824
+ stringBone: Oe,
1825
+ emailBone: je,
1826
+ dateBone: Be,
1827
+ booleanBone: Ve,
1828
+ selectBone: De,
1829
+ passwordBone: Ne,
1830
+ recordBone: Re,
1831
+ numericBone: Ue,
1832
+ colorBone: Le,
1833
+ relationalBone: Te,
1834
1834
  jsonBone: Hn,
1835
- fileBone: ze,
1835
+ fileBone: Me,
1836
1836
  textBone: We,
1837
- spatialBone: qe
1837
+ spatialBone: ze
1838
1838
  }),
1839
- actionbars: G({
1839
+ actionbars: H({
1840
1840
  "relational.tree.leaf.file.file": ns,
1841
- "relational.": Wa
1841
+ "relational.": za
1842
1842
  }),
1843
- multibones: G(["select", "select."])
1843
+ multibones: H(["select", "select."])
1844
1844
  });
1845
- function n(a, u) {
1846
- e.additionalBones[a] = u;
1845
+ function n(a, i) {
1846
+ e.additionalBones[a] = i;
1847
1847
  }
1848
1848
  function t() {
1849
1849
  let a = e.defaultBones;
1850
- for (const [u, r] of Object.entries(e.additionalBones))
1850
+ for (const [i, r] of Object.entries(e.additionalBones))
1851
1851
  a.add(r);
1852
1852
  return a;
1853
1853
  }
@@ -1855,30 +1855,30 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
1855
1855
  if (Object.keys(e.additionalBones).includes(a))
1856
1856
  return e.additionalBones[a];
1857
1857
  {
1858
- let u = a.split("."), r = Object.entries(e.additionalBones).filter(
1859
- (c) => c[0].startsWith(u[0] + ".")
1858
+ let i = a.split("."), r = Object.entries(e.additionalBones).filter(
1859
+ (c) => c[0].startsWith(i[0] + ".")
1860
1860
  );
1861
1861
  if (r.length > 0) {
1862
- r.sort((c, d) => d.length - c.length);
1862
+ r.sort((c, u) => u.length - c.length);
1863
1863
  for (let c of r)
1864
1864
  if (a.startsWith(c[0]))
1865
1865
  return e.additionalBones[c[0]];
1866
1866
  }
1867
1867
  }
1868
- return a === "date" ? De : a === "key" ? Oe : a === "str.email" ? Be : a === "str" || a.startsWith("str.") ? je : a === "select" || a.startsWith("select.") ? Ve : a === "bool" ? Ne : a === "password" ? Re : a === "record" ? Le : a === "numeric" || a.startsWith("numeric.") ? Te : a === "relational.tree.leaf.file.file" ? ze : a === "relational" || a.startsWith("relational.") ? Pe : a === "color" ? Ue : a === "text" ? We : a === "spatial" ? qe : pe;
1868
+ return a === "date" ? Be : a === "key" ? Ce : a === "str.email" ? je : a === "str" || a.startsWith("str.") ? Oe : a === "select" || a.startsWith("select.") ? De : a === "bool" ? Ve : a === "password" ? Ne : a === "record" ? Re : a === "numeric" || a.startsWith("numeric.") ? Ue : a === "relational.tree.leaf.file.file" ? Me : a === "relational" || a.startsWith("relational.") ? Te : a === "color" ? Le : a === "text" ? We : a === "spatial" ? ze : ve;
1869
1869
  }
1870
- function s(a, u) {
1871
- e.actionbars[a] = u;
1870
+ function s(a, i) {
1871
+ e.actionbars[a] = i;
1872
1872
  }
1873
1873
  function o(a) {
1874
1874
  if (Object.keys(e.actionbars).includes(a))
1875
1875
  return e.actionbars[a];
1876
1876
  {
1877
- let u = a.split("."), r = Object.entries(e.actionbars).filter(
1878
- (c) => c[0].startsWith(u[0] + ".")
1877
+ let i = a.split("."), r = Object.entries(e.actionbars).filter(
1878
+ (c) => c[0].startsWith(i[0] + ".")
1879
1879
  );
1880
1880
  if (r.length > 0) {
1881
- r.sort((c, d) => d.length - c.length);
1881
+ r.sort((c, u) => u.length - c.length);
1882
1882
  for (let c of r)
1883
1883
  if (a.startsWith(c[0]))
1884
1884
  return e.actionbars[c[0]];
@@ -1896,13 +1896,13 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
1896
1896
  };
1897
1897
  });
1898
1898
  function as(e) {
1899
- return _e().getBoneActionbar(e);
1899
+ return Se().getBoneActionbar(e);
1900
1900
  }
1901
- function x(e) {
1902
- return _e().getBoneWidget(e);
1901
+ function X(e) {
1902
+ return Se().getBoneWidget(e);
1903
1903
  }
1904
1904
  function ss(e) {
1905
- const n = _e();
1905
+ const n = Se();
1906
1906
  if (n.state.multibones.includes(e))
1907
1907
  return !0;
1908
1908
  {
@@ -1928,7 +1928,7 @@ D({
1928
1928
  props: {
1929
1929
  is: {
1930
1930
  type: Object,
1931
- default: pe
1931
+ default: ve
1932
1932
  },
1933
1933
  name: {
1934
1934
  type: String,
@@ -2014,14 +2014,14 @@ D({
2014
2014
  return g;
2015
2015
  })
2016
2016
  });
2017
- ie("boneState", t);
2017
+ oe("boneState", t);
2018
2018
  function l(g, b, y) {
2019
2019
  a(b, g, "isDragging"), a(b, g, "dragStartIndex");
2020
2020
  }
2021
2021
  function s(g, b, y) {
2022
2022
  y.preventDefault();
2023
2023
  const $ = y.clientY - y.target.getBoundingClientRect().top, A = y.target.closest(".value-line");
2024
- $ < A.offsetHeight / 2 ? (a(b, g, "draggingLineTop"), u("draggingLineBottom"), t.dropIndex.index = g) : (a(b, g, "draggingLineBottom"), u("draggingLineTop"), t.dropIndex.index = g + 1);
2024
+ $ < A.offsetHeight / 2 ? (a(b, g, "draggingLineTop"), i("draggingLineBottom"), t.dropIndex.index = g) : (a(b, g, "draggingLineBottom"), i("draggingLineTop"), t.dropIndex.index = g + 1);
2025
2025
  let L = b ? t.bonevalue[b] : t.bonevalue;
2026
2026
  t.dropIndex.index > L.length - 1 && (t.dropIndex.index -= 1);
2027
2027
  }
@@ -2032,12 +2032,12 @@ D({
2032
2032
  value: c(),
2033
2033
  lang: b,
2034
2034
  index: g
2035
- })), u("draggingLineBottom", "draggingLineTop", "isDragging", "dragStartIndex", "dropIndex");
2035
+ })), i("draggingLineBottom", "draggingLineTop", "isDragging", "dragStartIndex", "dropIndex");
2036
2036
  }
2037
2037
  function a(g, b, y) {
2038
2038
  t[y].lang = g || null, t[y].index = b;
2039
2039
  }
2040
- function u(...g) {
2040
+ function i(...g) {
2041
2041
  g.forEach((b) => {
2042
2042
  t[b] = {
2043
2043
  lang: null,
@@ -2082,10 +2082,10 @@ D({
2082
2082
  let b = g(t.bonevalue, e.name);
2083
2083
  return b = b.flat(10), b;
2084
2084
  }
2085
- function d(g = null, b = "") {
2085
+ function u(g = null, b = "") {
2086
2086
  g ? Object.keys(t.bonevalue).includes(g) ? t.bonevalue[g].push(b) : t.bonevalue[g] = [b] : t.bonevalue ? t.bonevalue.push(b) : t.bonevalue = [b];
2087
2087
  }
2088
- ie("addMultipleEntry", d);
2088
+ oe("addMultipleEntry", u);
2089
2089
  function f(g, b = null) {
2090
2090
  var y;
2091
2091
  b ? (y = t.bonevalue) == null || y[b].splice(g, 1) : t.bonevalue.splice(g, 1), n.emit("change", {
@@ -2112,58 +2112,58 @@ D({
2112
2112
  lang: g
2113
2113
  });
2114
2114
  }
2115
- ie("removeMultipleEntries", p);
2115
+ oe("removeMultipleEntries", p);
2116
2116
  function v(g = null, b = "") {
2117
- d(g, b);
2117
+ u(g, b);
2118
2118
  }
2119
2119
  function _(g, b) {
2120
2120
  function y(V) {
2121
- let Z = [], H = [], ne = /\$\((.*?)\)/g;
2122
- for (; H; ) {
2123
- if (H = ne.exec(V), !H) {
2124
- H = !1;
2121
+ let G = [], F = [], te = /\$\((.*?)\)/g;
2122
+ for (; F; ) {
2123
+ if (F = te.exec(V), !F) {
2124
+ F = !1;
2125
2125
  continue;
2126
2126
  }
2127
- Z.push(H[1]);
2127
+ G.push(F[1]);
2128
2128
  }
2129
- return Z;
2129
+ return G;
2130
2130
  }
2131
- function $(V, Z) {
2132
- let H = V.split("."), ne = V.split("."), P = Z;
2133
- for (let Y of H)
2134
- if (ne.shift(), P && P !== "-" && Object.keys(P).includes(Y) && P[Y])
2135
- if (Array.isArray(P[Y])) {
2136
- let Ie = [];
2137
- for (let et of P[Y])
2138
- Ie.push($(ne.join("."), et));
2139
- P = Ie.join(", ");
2131
+ function $(V, G) {
2132
+ let F = V.split("."), te = V.split("."), P = G;
2133
+ for (let Q of F)
2134
+ if (te.shift(), P && P !== "-" && Object.keys(P).includes(Q) && P[Q])
2135
+ if (Array.isArray(P[Q])) {
2136
+ let Ae = [];
2137
+ for (let xe of P[Q])
2138
+ Ae.push($(te.join("."), xe));
2139
+ P = Ae.join(", ");
2140
2140
  } else
2141
- P = P[Y];
2142
- else (!P || typeof P[Y] == "object" && !P[Y]) && (P = "-");
2141
+ P = P[Q];
2142
+ else (!P || typeof P[Q] == "object" && !P[Q]) && (P = "-");
2143
2143
  return P;
2144
2144
  }
2145
2145
  let A = y(g), L = [];
2146
2146
  Array.isArray(b) || (b = [b]);
2147
2147
  for (let V of b) {
2148
- let Z = g;
2149
- for (let H of A) {
2150
- let ne = $(H, V);
2151
- Z = Z.replace("$(" + H + ")", ne);
2148
+ let G = g;
2149
+ for (let F of A) {
2150
+ let te = $(F, V);
2151
+ G = G.replace("$(" + F + ")", te);
2152
2152
  }
2153
- L.push(Z);
2153
+ L.push(G);
2154
2154
  }
2155
2155
  return L.join(", ");
2156
2156
  }
2157
- return ie("formatString", _), ee(() => {
2157
+ return oe("formatString", _), x(() => {
2158
2158
  var g;
2159
2159
  e.value ? t.bonevalue = e.value : t.bonevalue = (g = e.skel) == null ? void 0 : g[e.name];
2160
- }), ae(
2160
+ }), ne(
2161
2161
  () => e.skel,
2162
2162
  (g, b) => {
2163
2163
  var y;
2164
2164
  t.bonevalue = (y = e.skel) == null ? void 0 : y[e.name];
2165
2165
  }
2166
- ), ae(
2166
+ ), ne(
2167
2167
  () => {
2168
2168
  var g;
2169
2169
  return (g = e.errors) == null ? void 0 : g[e.name];
@@ -2174,7 +2174,7 @@ D({
2174
2174
  ), {
2175
2175
  state: t,
2176
2176
  updateValue: r,
2177
- addMultipleEntry: d,
2177
+ addMultipleEntry: u,
2178
2178
  removeMultipleEntry: f,
2179
2179
  removeMultipleEntries: p,
2180
2180
  BoneHasMultipleHandling: ss,
@@ -2183,11 +2183,11 @@ D({
2183
2183
  handleDragOver: s,
2184
2184
  handleDrop: o,
2185
2185
  setStateProperties: a,
2186
- resetStateProperties: u
2186
+ resetStateProperties: i
2187
2187
  };
2188
2188
  }
2189
2189
  });
2190
- const ke = {
2190
+ const _e = {
2191
2191
  props: {
2192
2192
  size: {
2193
2193
  type: String,
@@ -2216,8 +2216,8 @@ const ke = {
2216
2216
  });
2217
2217
  return { state: t };
2218
2218
  }
2219
- }, Ke = () => {
2220
- ot((e) => ({
2219
+ }, Fe = () => {
2220
+ rt((e) => ({
2221
2221
  "93747d92": e.state.outerSize,
2222
2222
  "284424e5": e.state.shadow,
2223
2223
  "6485ca5e": e.state.logoSize,
@@ -2225,26 +2225,26 @@ const ke = {
2225
2225
  d5b3feca: e.color,
2226
2226
  "2050b700": e.state.trackWidth
2227
2227
  }));
2228
- }, He = ke.setup;
2229
- ke.setup = He ? (e, n) => (Ke(), He(e, n)) : Ke;
2228
+ }, Ke = _e.setup;
2229
+ _e.setup = Ke ? (e, n) => (Fe(), Ke(e, n)) : Fe;
2230
2230
  const ls = (e) => (M("data-v-46c45785"), e = e(), z(), e), rs = {
2231
2231
  key: 0,
2232
2232
  class: "loading"
2233
- }, os = /* @__PURE__ */ ls(() => /* @__PURE__ */ i("sl-spinner", { class: "loader" }, null, -1)), is = { class: "logo" }, us = ["src"];
2233
+ }, os = /* @__PURE__ */ ls(() => /* @__PURE__ */ d("sl-spinner", { class: "loader" }, null, -1)), is = { class: "logo" }, us = ["src"];
2234
2234
  function ds(e, n, t, l, s, o) {
2235
- return m(), T(it, null, {
2236
- default: ut(() => [
2235
+ return m(), T(ot, null, {
2236
+ default: it(() => [
2237
2237
  t.active ? (m(), h("div", rs, [
2238
2238
  os,
2239
- i("div", is, [
2240
- i("sl-icon", { src: t.logo }, null, 8, us)
2239
+ d("div", is, [
2240
+ d("sl-icon", { src: t.logo }, null, 8, us)
2241
2241
  ])
2242
2242
  ])) : k("", !0)
2243
2243
  ]),
2244
2244
  _: 1
2245
2245
  });
2246
2246
  }
2247
- const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785"]]), oe = $e("cartstore", () => {
2247
+ const cs = /* @__PURE__ */ I(_e, [["render", ds], ["__scopeId", "data-v-46c45785"]]), re = ye("cartstore", () => {
2248
2248
  const e = new gt({
2249
2249
  host_url: window.location.origin === "http://localhost:8081" ? "http://localhost:8080" : window.location.origin
2250
2250
  }), n = w({
@@ -2256,38 +2256,38 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2256
2256
  async function t() {
2257
2257
  await s();
2258
2258
  }
2259
- async function l(d) {
2260
- return await e.cart_list({ cart_key: d });
2259
+ async function l(u) {
2260
+ return await e.cart_list({ cart_key: u });
2261
2261
  }
2262
2262
  async function s() {
2263
2263
  (await e.cart_list()).forEach((f) => {
2264
2264
  f.is_root_node && (f.cart_type === "basket" ? n.basketRootNode = f : n.whishlistRootNodes.push(f));
2265
2265
  });
2266
2266
  }
2267
- async function o(d, f) {
2267
+ async function o(u, f) {
2268
2268
  let p = await e.article_add({
2269
- article_key: d,
2269
+ article_key: u,
2270
2270
  parent_cart_key: f
2271
2271
  });
2272
2272
  console.log("addToCart", p);
2273
2273
  }
2274
- async function a(d, f) {
2274
+ async function a(u, f) {
2275
2275
  let p = await e.article_view({
2276
- article_key: d,
2276
+ article_key: u,
2277
2277
  parent_cart_key: f
2278
2278
  });
2279
2279
  console.log("getArticleView", p);
2280
2280
  }
2281
- async function u(d, f) {
2281
+ async function i(u, f) {
2282
2282
  let p = await e.article_remove({
2283
- article_key: d,
2283
+ article_key: u,
2284
2284
  parent_cart_key: f
2285
2285
  });
2286
2286
  console.log("remove Resp", p);
2287
2287
  }
2288
- async function r(d, f, p) {
2288
+ async function r(u, f, p) {
2289
2289
  let v = await e.article_update({
2290
- article_key: d,
2290
+ article_key: u,
2291
2291
  parent_cart_key: f,
2292
2292
  quantity: p,
2293
2293
  quantity_mode: "replace"
@@ -2295,20 +2295,20 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2295
2295
  console.log("update Resp", v);
2296
2296
  }
2297
2297
  async function c() {
2298
- let d = await e.address_structure();
2299
- n.structure.address = d.addSkel, console.log("adress add", n.structure.address);
2298
+ let u = await e.address_structure();
2299
+ n.structure.address = u.addSkel, console.log("adress add", n.structure.address);
2300
2300
  }
2301
2301
  return {
2302
2302
  state: n,
2303
2303
  addToCart: o,
2304
2304
  getArticleView: a,
2305
- removeItem: u,
2305
+ removeItem: i,
2306
2306
  updateItem: r,
2307
2307
  init: t,
2308
2308
  getAdressStructure: c,
2309
2309
  getChildren: l
2310
2310
  };
2311
- }), ms = {
2311
+ }), fs = {
2312
2312
  __name: "CartNode",
2313
2313
  props: {
2314
2314
  node: { type: Object, required: !0 }
@@ -2316,26 +2316,26 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2316
2316
  setup(e) {
2317
2317
  return w({}), (n, t) => (m(), h("pre", null, B(e.node.name), 1));
2318
2318
  }
2319
- }, ge = (e) => (M("data-v-4b285730"), e = e(), z(), e), fs = {
2319
+ }, me = (e) => (M("data-v-4b285730"), e = e(), z(), e), ms = {
2320
2320
  horizontal: "",
2321
2321
  class: "viur-shop-cart-leaf"
2322
- }, gs = ["src"], hs = { class: "viur-shop-cart-leaf-headline headline" }, bs = { class: "viur-shop-cart-leaf-artno" }, vs = ["innerHTML"], ps = { class: "viur-shop-cart-leaf-actions" }, ys = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-button", {
2322
+ }, gs = ["src"], hs = { class: "viur-shop-cart-leaf-headline headline" }, bs = { class: "viur-shop-cart-leaf-artno" }, vs = ["innerHTML"], ps = { class: "viur-shop-cart-leaf-actions" }, ys = /* @__PURE__ */ me(() => /* @__PURE__ */ d("sl-button", {
2323
2323
  size: "small",
2324
2324
  outline: "",
2325
2325
  class: "viur-shop-cart-leaf-add-to-favourites-btn",
2326
2326
  variant: "primary",
2327
2327
  title: "Add to favourites"
2328
2328
  }, [
2329
- /* @__PURE__ */ i("sl-icon", {
2329
+ /* @__PURE__ */ d("sl-icon", {
2330
2330
  name: "heart",
2331
2331
  slot: "prefix"
2332
2332
  })
2333
- ], -1)), $s = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-icon", {
2333
+ ], -1)), $s = /* @__PURE__ */ me(() => /* @__PURE__ */ d("sl-icon", {
2334
2334
  name: "trash",
2335
2335
  slot: "prefix"
2336
2336
  }, null, -1)), Ss = [
2337
2337
  $s
2338
- ], _s = { class: "viur-shop-cart-leaf-quantity" }, ks = { class: "viur-shop-cart-leaf-unitprice" }, ws = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "Stückpreis", -1)), Es = ["value"], As = { class: "viur-shop-cart-leaf-price" }, Is = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "Gesamtpreis", -1)), Cs = ["value"], Os = {
2338
+ ], _s = { class: "viur-shop-cart-leaf-quantity" }, ks = { class: "viur-shop-cart-leaf-unitprice" }, ws = /* @__PURE__ */ me(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-leaf-label" }, "Stückpreis", -1)), Es = ["value"], As = { class: "viur-shop-cart-leaf-price" }, Is = /* @__PURE__ */ me(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-leaf-label" }, "Gesamtpreis", -1)), Cs = ["value"], Os = {
2339
2339
  __name: "CartLeaf",
2340
2340
  props: {
2341
2341
  leaf: { type: Object, required: !0 },
@@ -2347,65 +2347,65 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2347
2347
  leaf: {}
2348
2348
  });
2349
2349
  function o(r) {
2350
- return r !== void 0 ? ft.downloadUrlFor(r) : "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";
2350
+ return r !== void 0 ? mt.downloadUrlFor(r) : "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";
2351
2351
  }
2352
- function a(r, c, d, f) {
2352
+ function a(r, c, u, f) {
2353
2353
  l("updateItem", {
2354
2354
  item: r,
2355
2355
  articleKey: c,
2356
- node: d,
2356
+ node: u,
2357
2357
  quantity: f
2358
2358
  });
2359
2359
  }
2360
- function u(r, c, d) {
2361
- l("removeItem", { item: r, articleKey: c, node: d });
2360
+ function i(r, c, u) {
2361
+ l("removeItem", { item: r, articleKey: c, node: u });
2362
2362
  }
2363
- return ee(() => {
2363
+ return x(() => {
2364
2364
  s.leaf = t.leaf;
2365
- }), (r, c) => (m(), h("sl-card", fs, [
2366
- i("img", {
2365
+ }), (r, c) => (m(), h("sl-card", ms, [
2366
+ d("img", {
2367
2367
  class: "viur-shop-cart-leaf-image",
2368
2368
  slot: "image",
2369
2369
  src: o(s.leaf.shop_image ? s.leaf.shop_image : void 0)
2370
2370
  }, null, 8, gs),
2371
- i("h4", hs, B(s.leaf.shop_name), 1),
2372
- i("h5", bs, B(s.leaf.shop_art_no_or_gtin), 1),
2373
- i("div", {
2371
+ d("h4", hs, B(s.leaf.shop_name), 1),
2372
+ d("h5", bs, B(s.leaf.shop_art_no_or_gtin), 1),
2373
+ d("div", {
2374
2374
  class: "viur-shop-cart-leaf-description",
2375
2375
  innerHTML: s.leaf.shop_description
2376
2376
  }, null, 8, vs),
2377
- i("div", ps, [
2377
+ d("div", ps, [
2378
2378
  ys,
2379
- i("sl-button", {
2379
+ d("sl-button", {
2380
2380
  size: "small",
2381
2381
  outline: "",
2382
2382
  class: "viur-shop-cart-leaf-delete-btn",
2383
2383
  variant: "primary",
2384
2384
  title: "Remove from cart",
2385
- onClick: c[0] || (c[0] = (d) => u(s.leaf, s.leaf.article.dest.key, e.node))
2385
+ onClick: c[0] || (c[0] = (u) => i(s.leaf, s.leaf.article.dest.key, e.node))
2386
2386
  }, Ss)
2387
2387
  ]),
2388
- i("div", _s, [
2389
- J(i("sl-input", {
2388
+ d("div", _s, [
2389
+ Z(d("sl-input", {
2390
2390
  class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--quantity",
2391
2391
  type: "number",
2392
2392
  label: "Anzahl",
2393
2393
  placeholder: "Number",
2394
2394
  min: "0",
2395
- "onUpdate:modelValue": c[1] || (c[1] = (d) => s.leaf.quantity = d),
2396
- onInput: c[2] || (c[2] = (d) => a(
2395
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => s.leaf.quantity = u),
2396
+ onInput: c[2] || (c[2] = (u) => a(
2397
2397
  s.leaf,
2398
2398
  s.leaf.article.dest.key,
2399
2399
  e.node,
2400
2400
  s.leaf.quantity
2401
2401
  ))
2402
2402
  }, null, 544), [
2403
- [le, s.leaf.quantity]
2403
+ [se, s.leaf.quantity]
2404
2404
  ])
2405
2405
  ]),
2406
- i("div", ks, [
2406
+ d("div", ks, [
2407
2407
  ws,
2408
- i("sl-format-number", {
2408
+ d("sl-format-number", {
2409
2409
  class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice",
2410
2410
  lang: "de",
2411
2411
  type: "currency",
@@ -2413,9 +2413,9 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2413
2413
  value: s.leaf.price.retail
2414
2414
  }, null, 8, Es)
2415
2415
  ]),
2416
- i("div", As, [
2416
+ d("div", As, [
2417
2417
  Is,
2418
- i("sl-format-number", {
2418
+ d("sl-format-number", {
2419
2419
  class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--price",
2420
2420
  lang: "de",
2421
2421
  type: "currency",
@@ -2425,39 +2425,15 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2425
2425
  ])
2426
2426
  ]));
2427
2427
  }
2428
- }, js = /* @__PURE__ */ I(Os, [["__scopeId", "data-v-4b285730"]]), K = (e) => (M("data-v-2ad9f71a"), e = e(), z(), e), Bs = { key: 0 }, Ds = /* @__PURE__ */ K(() => /* @__PURE__ */ i("p", null, "Möchten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), Vs = {
2428
+ }, js = /* @__PURE__ */ I(Os, [["__scopeId", "data-v-4b285730"]]), Ye = (e) => (M("data-v-8dd1e557"), e = e(), z(), e), Bs = { key: 0 }, Ds = /* @__PURE__ */ Ye(() => /* @__PURE__ */ d("p", null, "Möchten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), Vs = {
2429
2429
  class: "footer-wrap",
2430
2430
  slot: "footer"
2431
- }, Ns = { class: "viur-shop-cart-node" }, Rs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Zusammenfassung", -1)), Ls = /* @__PURE__ */ K(() => /* @__PURE__ */ i("br", null, null, -1)), Us = /* @__PURE__ */ K(() => /* @__PURE__ */ i("sl-input", {
2432
- label: "Rabattcode eingeben",
2433
- class: "viur-shop-cart-sidebar-coupon-input"
2434
- }, null, -1)), Ts = /* @__PURE__ */ K(() => /* @__PURE__ */ i("br", null, null, -1)), Ps = { class: "viur-shop-cart-sidebar-info-line" }, Ms = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Zwischensumme", -1)), zs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [
2435
- /* @__PURE__ */ i("span", null, "Rabatt"),
2436
- /* @__PURE__ */ C(" 0 € ")
2437
- ], -1)), Ws = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [
2438
- /* @__PURE__ */ i("span", null, "Versandkosten"),
2439
- /* @__PURE__ */ C(" 0 € ")
2440
- ], -1)), qs = { class: "viur-shop-cart-sidebar-info-line total" }, Fs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Gesamt:", -1)), Ks = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-btn-wrap" }, [
2441
- /* @__PURE__ */ i("sl-button", {
2442
- variant: "primary",
2443
- size: "medium"
2444
- }, " Jetzt Bestellen "),
2445
- /* @__PURE__ */ i("sl-button", {
2446
- size: "medium",
2447
- variant: "info"
2448
- }, [
2449
- /* @__PURE__ */ i("sl-icon", {
2450
- name: "paypal",
2451
- slot: "prefix"
2452
- }),
2453
- /* @__PURE__ */ C(" Paypal ")
2454
- ])
2455
- ], -1)), Hs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-mobile-footer" }, [
2456
- /* @__PURE__ */ i("sl-button", {
2431
+ }, Ns = { class: "viur-shop-cart-node" }, Rs = /* @__PURE__ */ Ye(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-mobile-footer" }, [
2432
+ /* @__PURE__ */ d("sl-button", {
2457
2433
  variant: "primary",
2458
2434
  size: "medium"
2459
2435
  }, " Jetzt Bestellen ")
2460
- ], -1)), Gs = {
2436
+ ], -1)), Ls = {
2461
2437
  __name: "CartView",
2462
2438
  props: {
2463
2439
  mode: { type: String, default: "basket" },
@@ -2465,7 +2441,7 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2465
2441
  sidebar: { type: Boolean, default: !0 }
2466
2442
  },
2467
2443
  setup(e) {
2468
- const n = e, t = oe(), l = F(null), s = w({
2444
+ const n = e, t = re(), l = q(null), s = w({
2469
2445
  itemsIsInit: S(() => !0),
2470
2446
  images: {},
2471
2447
  currentItem: {},
@@ -2484,7 +2460,7 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2484
2460
  async function a(f) {
2485
2461
  console.log("updateItem :", f), f.quantity === 0 ? (l.value.show(), s.currentItem = f.item, s.currentNode = f.node) : (await t.updateItem(f.articleKey, f.node.key, f.quantity), await t.init());
2486
2462
  }
2487
- function u(f) {
2463
+ function i(f) {
2488
2464
  console.log("removeItem :", f), l.value.show(), s.currentItem = f.item, s.currentNode = f.node;
2489
2465
  }
2490
2466
  async function r() {
@@ -2493,31 +2469,31 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2493
2469
  }), s.currentItem = {}, s.currentNode = {};
2494
2470
  }
2495
2471
  async function c() {
2496
- s.nodes = [], s.leaves = {}, await t.init(), await d();
2472
+ s.nodes = [], s.leaves = {}, await t.init(), await u();
2497
2473
  }
2498
- async function d(f = n.cartKey) {
2474
+ async function u(f = n.cartKey) {
2499
2475
  console.log("debug getChildren parentKey from comp: ", f);
2500
2476
  const p = await t.getChildren(f);
2501
2477
  console.log("getChildren children: ", p), p.forEach(async (v) => {
2502
- v.skel_type === "node" ? (s.nodes.push(v), await d(v.key)) : (Object.keys(s.leaves).includes(f) || (s.leaves[f] = []), s.leaves[f].push(v));
2478
+ v.skel_type === "node" ? (s.nodes.push(v), await u(v.key)) : (Object.keys(s.leaves).includes(f) || (s.leaves[f] = []), s.leaves[f].push(v));
2503
2479
  });
2504
2480
  }
2505
- return ee(async () => {
2506
- await t.init(), await d(), n.mode === "basket" && s.nodes.push(t.state.basketRootNode), console.log("state.nodes test", s.nodes), console.log("state.leaves", s.leaves);
2481
+ return x(async () => {
2482
+ await t.init(), await u(), n.mode === "basket" && s.nodes.push(t.state.basketRootNode), console.log("state.nodes test", s.nodes), console.log("state.leaves", s.leaves);
2507
2483
  }), (f, p) => e.cartKey.length ? (m(), h(E, { key: 1 }, [
2508
- i("sl-dialog", {
2484
+ d("sl-dialog", {
2509
2485
  ref_key: "confirm",
2510
2486
  ref: l,
2511
2487
  onSlHide: r
2512
2488
  }, [
2513
2489
  Ds,
2514
- i("div", Vs, [
2515
- i("sl-button", {
2490
+ d("div", Vs, [
2491
+ d("sl-button", {
2516
2492
  variant: "danger",
2517
2493
  onClick: p[0] || (p[0] = (v) => l.value.hide()),
2518
2494
  size: "medium"
2519
2495
  }, " Abbrechen "),
2520
- i("sl-button", {
2496
+ d("sl-button", {
2521
2497
  variant: "success",
2522
2498
  onClick: o,
2523
2499
  size: "medium"
@@ -2526,112 +2502,92 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2526
2502
  ], 544),
2527
2503
  (m(!0), h(E, null, U(s.nodes, (v) => (m(), h("div", Ns, [
2528
2504
  Object.keys(s.leaves).includes(v.key) ? (m(), h(E, { key: 0 }, [
2529
- dt(ms, { node: v }, null, 8, ["node"]),
2505
+ ut(fs, { node: v }, null, 8, ["node"]),
2530
2506
  (m(!0), h(E, null, U(s.leaves[v.key], (_) => (m(), T(js, {
2531
2507
  key: _.key,
2532
2508
  leaf: _,
2533
2509
  node: v,
2534
- onRemoveItem: u,
2510
+ onRemoveItem: i,
2535
2511
  onUpdateItem: a
2536
2512
  }, null, 8, ["leaf", "node"]))), 128))
2537
2513
  ], 64)) : k("", !0)
2538
2514
  ]))), 256)),
2539
- e.sidebar ? (m(), T(Ze, {
2540
- key: 0,
2541
- to: "#order_sidebar"
2542
- }, [
2543
- Rs,
2544
- Ls,
2545
- Us,
2546
- Ts,
2547
- i("div", Ps, [
2548
- Ms,
2549
- C(" " + B(e.mode === "basket" ? q(t).state.basketRootNode.total : q(t).state.whishlistRootNodes[e.cartKey].total) + " € ", 1)
2550
- ]),
2551
- zs,
2552
- Ws,
2553
- i("div", qs, [
2554
- Fs,
2555
- C(" " + B(e.mode === "basket" ? q(t).state.basketRootNode.total : q(t).state.whishlistRootNodes[e.cartKey].total) + " € ", 1)
2556
- ]),
2557
- Ks
2558
- ])) : k("", !0),
2559
- Hs
2515
+ Rs
2560
2516
  ], 64)) : (m(), h("sl-spinner", Bs));
2561
2517
  }
2562
- }, we = /* @__PURE__ */ I(Gs, [["__scopeId", "data-v-2ad9f71a"]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2518
+ }, ke = /* @__PURE__ */ I(Ls, [["__scopeId", "data-v-8dd1e557"]]), Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2563
2519
  __proto__: null,
2564
- default: we
2565
- }, Symbol.toStringTag, { value: "Module" })), Q = (e) => (M("data-v-b7b745be"), e = e(), z(), e), Js = {
2520
+ default: ke
2521
+ }, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), z(), e), Ts = {
2566
2522
  key: 1,
2567
2523
  class: "list"
2568
- }, Qs = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Bestellung prüfen", -1)), Ys = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("br", null, null, -1)), Xs = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-wrap" }, [
2569
- /* @__PURE__ */ i("div", { class: "viur-shop-cart-address" }, [
2570
- /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-headline" }, [
2571
- /* @__PURE__ */ C(" Versandadresse "),
2572
- /* @__PURE__ */ i("sl-button", {
2524
+ }, Ps = /* @__PURE__ */ J(() => /* @__PURE__ */ d("h2", { class: "viur-shop-cart-headline headline" }, "Bestellung prüfen", -1)), Ms = /* @__PURE__ */ J(() => /* @__PURE__ */ d("br", null, null, -1)), Ws = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-address-wrap" }, [
2525
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address" }, [
2526
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address-headline" }, [
2527
+ /* @__PURE__ */ j(" Versandadresse "),
2528
+ /* @__PURE__ */ d("sl-button", {
2573
2529
  outline: "",
2574
2530
  size: "small"
2575
2531
  }, [
2576
- /* @__PURE__ */ i("sl-icon", {
2532
+ /* @__PURE__ */ d("sl-icon", {
2577
2533
  name: "pencil",
2578
2534
  slot: "prefix"
2579
2535
  })
2580
2536
  ])
2581
2537
  ]),
2582
- /* @__PURE__ */ C(" Roland Brose"),
2583
- /* @__PURE__ */ i("br"),
2584
- /* @__PURE__ */ C(" Speicherstraße 33"),
2585
- /* @__PURE__ */ i("br"),
2586
- /* @__PURE__ */ C(" 44147 Dortmund, DE"),
2587
- /* @__PURE__ */ i("br"),
2588
- /* @__PURE__ */ i("br"),
2589
- /* @__PURE__ */ C(" rb@mausbrand.de"),
2590
- /* @__PURE__ */ i("br"),
2591
- /* @__PURE__ */ C(" 0231 21 34 68 90 ")
2538
+ /* @__PURE__ */ j(" Roland Brose"),
2539
+ /* @__PURE__ */ d("br"),
2540
+ /* @__PURE__ */ j(" Speicherstraße 33"),
2541
+ /* @__PURE__ */ d("br"),
2542
+ /* @__PURE__ */ j(" 44147 Dortmund, DE"),
2543
+ /* @__PURE__ */ d("br"),
2544
+ /* @__PURE__ */ d("br"),
2545
+ /* @__PURE__ */ j(" rb@mausbrand.de"),
2546
+ /* @__PURE__ */ d("br"),
2547
+ /* @__PURE__ */ j(" 0231 21 34 68 90 ")
2592
2548
  ]),
2593
- /* @__PURE__ */ i("div", { class: "viur-shop-cart-address" }, [
2594
- /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-headline" }, [
2595
- /* @__PURE__ */ C(" Rechnungsadresse "),
2596
- /* @__PURE__ */ i("sl-button", {
2549
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address" }, [
2550
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address-headline" }, [
2551
+ /* @__PURE__ */ j(" Rechnungsadresse "),
2552
+ /* @__PURE__ */ d("sl-button", {
2597
2553
  outline: "",
2598
2554
  size: "small"
2599
2555
  }, [
2600
- /* @__PURE__ */ i("sl-icon", {
2556
+ /* @__PURE__ */ d("sl-icon", {
2601
2557
  name: "pencil",
2602
2558
  slot: "prefix"
2603
2559
  })
2604
2560
  ])
2605
2561
  ]),
2606
- /* @__PURE__ */ C(" Roland Brose"),
2607
- /* @__PURE__ */ i("br"),
2608
- /* @__PURE__ */ C(" Speicherstraße 33"),
2609
- /* @__PURE__ */ i("br"),
2610
- /* @__PURE__ */ C(" 44147 Dortmund, DE"),
2611
- /* @__PURE__ */ i("br"),
2612
- /* @__PURE__ */ i("br"),
2613
- /* @__PURE__ */ C(" rb@mausbrand.de"),
2614
- /* @__PURE__ */ i("br"),
2615
- /* @__PURE__ */ C(" 0231 21 34 68 90 ")
2562
+ /* @__PURE__ */ j(" Roland Brose"),
2563
+ /* @__PURE__ */ d("br"),
2564
+ /* @__PURE__ */ j(" Speicherstraße 33"),
2565
+ /* @__PURE__ */ d("br"),
2566
+ /* @__PURE__ */ j(" 44147 Dortmund, DE"),
2567
+ /* @__PURE__ */ d("br"),
2568
+ /* @__PURE__ */ d("br"),
2569
+ /* @__PURE__ */ j(" rb@mausbrand.de"),
2570
+ /* @__PURE__ */ d("br"),
2571
+ /* @__PURE__ */ j(" 0231 21 34 68 90 ")
2616
2572
  ])
2617
- ], -1)), xs = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-payment" }, [
2618
- /* @__PURE__ */ i("div", { class: "viur-shop-cart-payment-method" }, [
2619
- /* @__PURE__ */ i("span", null, "Zahlungsmethode:"),
2620
- /* @__PURE__ */ C(" Paypal ")
2573
+ ], -1)), zs = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-payment" }, [
2574
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-payment-method" }, [
2575
+ /* @__PURE__ */ d("span", null, "Zahlungsmethode:"),
2576
+ /* @__PURE__ */ j(" Paypal ")
2621
2577
  ]),
2622
- /* @__PURE__ */ i("sl-button", {
2578
+ /* @__PURE__ */ d("sl-button", {
2623
2579
  outline: "",
2624
2580
  size: "small"
2625
2581
  }, [
2626
- /* @__PURE__ */ i("sl-icon", {
2582
+ /* @__PURE__ */ d("sl-icon", {
2627
2583
  name: "pencil",
2628
2584
  slot: "prefix"
2629
2585
  })
2630
2586
  ])
2631
- ], -1)), el = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Warenkorb", -1)), tl = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("br", null, null, -1)), nl = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Jetzt Bestellen", -1)), al = /* @__PURE__ */ Q(() => /* @__PURE__ */ i("br", null, null, -1)), sl = { class: "viur-shop-cart-sidebar-btn-wrap" }, ll = ["variant", "disabled"], rl = {
2587
+ ], -1)), qs = /* @__PURE__ */ J(() => /* @__PURE__ */ d("h2", { class: "viur-shop-cart-headline headline" }, "Warenkorb", -1)), Fs = /* @__PURE__ */ J(() => /* @__PURE__ */ d("br", null, null, -1)), Ks = /* @__PURE__ */ J(() => /* @__PURE__ */ d("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Jetzt Bestellen", -1)), Hs = /* @__PURE__ */ J(() => /* @__PURE__ */ d("br", null, null, -1)), Gs = { class: "viur-shop-cart-sidebar-btn-wrap" }, Zs = ["variant", "disabled"], Js = {
2632
2588
  __name: "ConfirmView",
2633
2589
  setup(e) {
2634
- const n = oe(), t = w({
2590
+ const n = re(), t = w({
2635
2591
  cartIsInit: S(() => !0),
2636
2592
  itemsIsInit: S(() => {
2637
2593
  var s;
@@ -2643,42 +2599,42 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2643
2599
  function l(s) {
2644
2600
  s.target.checked && (t.showOrderButton = !0), s.target.checked || (t.showOrderButton = !1);
2645
2601
  }
2646
- return ee(async () => {
2602
+ return x(async () => {
2647
2603
  await n.init();
2648
- }), (s, o) => t.cartIsInit ? (m(), h("div", Js, [
2649
- Qs,
2650
- Ys,
2651
- Xs,
2652
- xs,
2653
- el,
2654
- tl,
2655
- (m(), T(Ze, { to: "#order_sidebar" }, [
2656
- nl,
2657
- al,
2658
- i("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32),
2659
- i("div", sl, [
2660
- i("sl-button", {
2604
+ }), (s, o) => t.cartIsInit ? (m(), h("div", Ts, [
2605
+ Ps,
2606
+ Ms,
2607
+ Ws,
2608
+ zs,
2609
+ qs,
2610
+ Fs,
2611
+ (m(), T(dt, { to: "#order_sidebar" }, [
2612
+ Ks,
2613
+ Hs,
2614
+ d("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32),
2615
+ d("div", Gs, [
2616
+ d("sl-button", {
2661
2617
  variant: t.showOrderButton ? "info" : "disabled",
2662
2618
  size: "small",
2663
2619
  disabled: !t.showOrderButton
2664
- }, " Zahlungspflichtig bestellen ", 8, ll)
2620
+ }, " Zahlungspflichtig bestellen ", 8, Zs)
2665
2621
  ])
2666
2622
  ]))
2667
2623
  ])) : (m(), T(cs, { key: 0 }));
2668
2624
  }
2669
- }, Ee = /* @__PURE__ */ I(rl, [["__scopeId", "data-v-b7b745be"]]), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2625
+ }, we = /* @__PURE__ */ I(Js, [["__scopeId", "data-v-b7b745be"]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2670
2626
  __proto__: null,
2671
- default: Ee
2672
- }, Symbol.toStringTag, { value: "Module" })), il = (e) => (M("data-v-0e63188d"), e = e(), z(), e), ul = { class: "bind viur-shop-wrap" }, dl = ["panel", "disabled"], cl = { class: "viur-shop-order-step" }, ml = ["name", "library"], fl = { class: "viur-shop-order-status-text" }, gl = {
2627
+ default: we
2628
+ }, Symbol.toStringTag, { value: "Module" })), Ys = (e) => (M("data-v-0e63188d"), e = e(), z(), e), Xs = { class: "bind viur-shop-wrap" }, xs = ["panel", "disabled"], el = { class: "viur-shop-order-step" }, tl = ["name", "library"], nl = { class: "viur-shop-order-status-text" }, al = {
2673
2629
  key: 0,
2674
2630
  name: "chevron-right",
2675
2631
  class: "viur-shop-order-tab-check"
2676
- }, hl = ["name"], bl = ["onClick"], vl = ["onClick"], pl = /* @__PURE__ */ il(() => /* @__PURE__ */ i("div", { class: "viur-shop-sidebar-wrap" }, [
2677
- /* @__PURE__ */ i("div", {
2632
+ }, sl = ["name"], ll = ["onClick"], rl = ["onClick"], ol = /* @__PURE__ */ Ys(() => /* @__PURE__ */ d("div", { class: "viur-shop-sidebar-wrap" }, [
2633
+ /* @__PURE__ */ d("div", {
2678
2634
  class: "viur-shop-sidebar",
2679
2635
  id: "order_sidebar"
2680
2636
  })
2681
- ], -1)), yl = {
2637
+ ], -1)), il = {
2682
2638
  __name: "OrderView",
2683
2639
  props: {
2684
2640
  tabs: {
@@ -2690,30 +2646,30 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2690
2646
  setup(e, { emit: n }) {
2691
2647
  const t = e, l = n, s = w({
2692
2648
  tabNames: S(() => a(t.tabs)),
2693
- isFirstTab: (d) => d === 0
2694
- }), o = F(null);
2695
- function a(d) {
2649
+ isFirstTab: (u) => u === 0
2650
+ }), o = q(null);
2651
+ function a(u) {
2696
2652
  let f = [], p = [];
2697
- for (const v in d)
2698
- d[v].position ? f.push([v, d[v].position]) : f.push([v, 0]);
2653
+ for (const v in u)
2654
+ u[v].position ? f.push([v, u[v].position]) : f.push([v, 0]);
2699
2655
  return f.sort((v, _) => v[1] - _[1]), f.forEach((v) => {
2700
2656
  p.push(v[0]);
2701
2657
  }), p;
2702
2658
  }
2703
- function u(d) {
2704
- l("tabChange", d);
2659
+ function i(u) {
2660
+ l("tabChange", u);
2705
2661
  }
2706
- function r(d) {
2707
- o.value.show(d);
2662
+ function r(u) {
2663
+ o.value.show(u);
2708
2664
  }
2709
- function c(d) {
2710
- o.value.show(d);
2665
+ function c(u) {
2666
+ o.value.show(u);
2711
2667
  }
2712
- return (d, f) => (m(), h("div", ul, [
2713
- i("sl-tab-group", {
2668
+ return (u, f) => (m(), h("div", Xs, [
2669
+ d("sl-tab-group", {
2714
2670
  class: "viur-shop-order-tabgroup",
2715
2671
  noScrollControls: "",
2716
- onSlTabShow: u,
2672
+ onSlTabShow: i,
2717
2673
  ref_key: "tabGroup",
2718
2674
  ref: o
2719
2675
  }, [
@@ -2724,74 +2680,74 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2724
2680
  key: p,
2725
2681
  disabled: e.tabs[p].disabled
2726
2682
  }, [
2727
- i("div", cl, [
2728
- i("sl-icon", {
2683
+ d("div", el, [
2684
+ d("sl-icon", {
2729
2685
  class: "viur-shop-order-step-icon",
2730
2686
  name: e.tabs[p].icon.name,
2731
2687
  library: e.tabs[p].icon.library
2732
- }, null, 8, ml),
2733
- i("div", fl, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
2688
+ }, null, 8, tl),
2689
+ d("div", nl, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
2734
2690
  ]),
2735
- v < s.tabNames.length - 1 ? (m(), h("sl-icon", gl)) : k("", !0)
2736
- ], 8, dl))), 128)),
2691
+ v < s.tabNames.length - 1 ? (m(), h("sl-icon", al)) : k("", !0)
2692
+ ], 8, xs))), 128)),
2737
2693
  (m(!0), h(E, null, U(s.tabNames, (p, v) => (m(), h("sl-tab-panel", {
2738
2694
  class: "viur-shop-order-tab-panel",
2739
2695
  name: p,
2740
2696
  key: p
2741
2697
  }, [
2742
- (m(), T(ct(e.tabs[p].component), mt({ ref_for: !0 }, e.tabs[p].props ? e.tabs[p].props : ""), null, 16)),
2698
+ (m(), T(ct(e.tabs[p].component), ft({ ref_for: !0 }, e.tabs[p].props ? e.tabs[p].props : ""), null, 16)),
2743
2699
  v !== s.tabNames.length - 1 ? (m(), h("div", {
2744
2700
  key: 0,
2745
- class: ye(["viur-shop-form-footer", { "flex-end": s.isFirstTab(v) }])
2701
+ class: pe(["viur-shop-form-footer", { "flex-end": s.isFirstTab(v) }])
2746
2702
  }, [
2747
- J(i("sl-button", {
2703
+ Z(d("sl-button", {
2748
2704
  type: "submit",
2749
2705
  onClick: (_) => r(s.tabNames[v - 1])
2750
- }, " Zurück ", 8, bl), [
2751
- [ve, v !== 0]
2706
+ }, " Zurück ", 8, ll), [
2707
+ [be, v !== 0]
2752
2708
  ]),
2753
- i("sl-button", {
2709
+ d("sl-button", {
2754
2710
  type: "submit",
2755
2711
  variant: "primary",
2756
2712
  onClick: (_) => c(s.tabNames[v + 1])
2757
- }, " Weiter ", 8, vl)
2713
+ }, " Weiter ", 8, rl)
2758
2714
  ], 2)) : k("", !0)
2759
- ], 8, hl))), 128))
2715
+ ], 8, sl))), 128))
2760
2716
  ], 544),
2761
- pl
2717
+ ol
2762
2718
  ]));
2763
2719
  }
2764
- }, $l = /* @__PURE__ */ I(yl, [["__scopeId", "data-v-0e63188d"]]), Sl = {}, he = (e) => (M("data-v-36ccc280"), e = e(), z(), e), _l = { class: "bind" }, kl = /* @__PURE__ */ he(() => /* @__PURE__ */ i("h1", { class: "headline" }, "Vielen Dank für Ihre Bestellung", -1)), wl = /* @__PURE__ */ he(() => /* @__PURE__ */ i("br", null, null, -1)), El = /* @__PURE__ */ he(() => /* @__PURE__ */ i("p", { class: "paragraph" }, [
2765
- /* @__PURE__ */ i("strong", null, "Ihre Bestellnummer:"),
2766
- /* @__PURE__ */ C(" 123345670 ")
2767
- ], -1)), Al = /* @__PURE__ */ he(() => /* @__PURE__ */ i("p", { class: "paragraph" }, [
2768
- /* @__PURE__ */ C(" Wir haben Ihre Bestellung erhalten und werden diese schenllstmöglich bearbeiten."),
2769
- /* @__PURE__ */ i("br"),
2770
- /* @__PURE__ */ C(" Sie erhalten in wenigen Minuten eine Bestätigung per E-Mail. "),
2771
- /* @__PURE__ */ i("div", { class: "btn-wrap" }, [
2772
- /* @__PURE__ */ i("sl-button", { size: "medium" }, " Zur Startseite "),
2773
- /* @__PURE__ */ i("sl-button", {
2720
+ }, ul = /* @__PURE__ */ I(il, [["__scopeId", "data-v-0e63188d"]]), dl = {}, ge = (e) => (M("data-v-36ccc280"), e = e(), z(), e), cl = { class: "bind" }, fl = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("h1", { class: "headline" }, "Vielen Dank für Ihre Bestellung", -1)), ml = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("br", null, null, -1)), gl = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("p", { class: "paragraph" }, [
2721
+ /* @__PURE__ */ d("strong", null, "Ihre Bestellnummer:"),
2722
+ /* @__PURE__ */ j(" 123345670 ")
2723
+ ], -1)), hl = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("p", { class: "paragraph" }, [
2724
+ /* @__PURE__ */ j(" Wir haben Ihre Bestellung erhalten und werden diese schenllstmöglich bearbeiten."),
2725
+ /* @__PURE__ */ d("br"),
2726
+ /* @__PURE__ */ j(" Sie erhalten in wenigen Minuten eine Bestätigung per E-Mail. "),
2727
+ /* @__PURE__ */ d("div", { class: "btn-wrap" }, [
2728
+ /* @__PURE__ */ d("sl-button", { size: "medium" }, " Zur Startseite "),
2729
+ /* @__PURE__ */ d("sl-button", {
2774
2730
  variant: "primary",
2775
2731
  size: "medium"
2776
2732
  }, " Weiter Einkaufen ")
2777
2733
  ])
2778
- ], -1)), Il = [
2779
- kl,
2780
- wl,
2781
- El,
2782
- Al
2734
+ ], -1)), bl = [
2735
+ fl,
2736
+ ml,
2737
+ gl,
2738
+ hl
2783
2739
  ];
2784
- function Cl(e, n) {
2785
- return m(), h("div", _l, Il);
2740
+ function vl(e, n) {
2741
+ return m(), h("div", cl, bl);
2786
2742
  }
2787
- const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280"]]), Ae = (e) => (M("data-v-b68a2bfa"), e = e(), z(), e), jl = /* @__PURE__ */ Ae(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Bl = /* @__PURE__ */ Ae(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Dl = { key: 0 }, Vl = /* @__PURE__ */ Ae(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Nl = {
2743
+ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280"]]), Ee = (e) => (M("data-v-b68a2bfa"), e = e(), z(), e), yl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), $l = /* @__PURE__ */ Ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Sl = { key: 0 }, _l = /* @__PURE__ */ Ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), kl = {
2788
2744
  __name: "UserInformation",
2789
2745
  props: {
2790
2746
  mode: { type: String, default: "form" },
2791
2747
  conditions: { type: Function }
2792
2748
  },
2793
2749
  setup(e) {
2794
- const n = oe(), t = w({
2750
+ const n = re(), t = w({
2795
2751
  formValues: {},
2796
2752
  requiredFieldsFilled: S(() => {
2797
2753
  if (t.isCustomAdress)
@@ -2806,96 +2762,96 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
2806
2762
  function l(a) {
2807
2763
  a.target.checked && (t.isCustomAdress = !1), a.target.checked || (t.isCustomAdress = !0);
2808
2764
  }
2809
- function s(a, u) {
2810
- for (const [r, c] of Object.entries(u.value[0]))
2765
+ function s(a, i) {
2766
+ for (const [r, c] of Object.entries(i.value[0]))
2811
2767
  t.formValues[r] = c;
2812
2768
  }
2813
2769
  function o(a) {
2814
- let u = {};
2770
+ let i = {};
2815
2771
  return Array.isArray(a) ? (a.forEach((r) => {
2816
- let c = r[0], d = r[1];
2817
- u[c] = d;
2818
- }), console.log("output", u), u) : a;
2772
+ let c = r[0], u = r[1];
2773
+ i[c] = u;
2774
+ }), console.log("output", i), i) : a;
2819
2775
  }
2820
- return ae(t.formValues, (a) => {
2821
- Object.entries(a).forEach(([u, r]) => {
2822
- r === "" && delete t.formValues[u];
2776
+ return ne(t.formValues, (a) => {
2777
+ Object.entries(a).forEach(([i, r]) => {
2778
+ r === "" && delete t.formValues[i];
2823
2779
  });
2824
- }), ee(async () => {
2780
+ }), x(async () => {
2825
2781
  await n.getAdressStructure(), t.addSkel = o(n.state.structure.address);
2826
- }), (a, u) => {
2827
- const r = se("bone");
2782
+ }), (a, i) => {
2783
+ const r = ae("bone");
2828
2784
  return m(), h(E, null, [
2829
- i("div", null, [
2830
- C(" test "),
2831
- jl,
2832
- (m(!0), h(E, null, U(t.addSkel, (c, d) => (m(), h(E, { key: d }, [
2833
- C(B(d) + " ", 1),
2785
+ d("div", null, [
2786
+ j(" test "),
2787
+ yl,
2788
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2789
+ j(B(u) + " ", 1),
2834
2790
  c.visible && c.params.group === "Customer Info" ? (m(), T(r, {
2835
2791
  key: 0,
2836
- is: q(x)(c.type),
2837
- name: d,
2792
+ is: K(X)(c.type),
2793
+ name: u,
2838
2794
  structure: o(t.addSkel),
2839
- errors: t.errors[d] ? t.errors[d] : [],
2795
+ errors: t.errors[u] ? t.errors[u] : [],
2840
2796
  skel: t.formValues,
2841
- onChange: (f) => s(d, f),
2797
+ onChange: (f) => s(u, f),
2842
2798
  class: "viur-shop-form-grid-w-2"
2843
2799
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
2844
2800
  ], 64))), 128))
2845
2801
  ]),
2846
- i("div", null, [
2847
- Bl,
2848
- (m(!0), h(E, null, U(t.addSkel, (c, d) => (m(), h(E, { key: d }, [
2802
+ d("div", null, [
2803
+ $l,
2804
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2849
2805
  c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
2850
2806
  key: 0,
2851
- is: q(x)(c.type),
2852
- name: d,
2807
+ is: K(X)(c.type),
2808
+ name: u,
2853
2809
  structure: o(t.addSkel),
2854
- errors: t.errors[d] ? t.errors[d] : [],
2810
+ errors: t.errors[u] ? t.errors[u] : [],
2855
2811
  skel: t.formValues,
2856
- onChange: (f) => s(d, f)
2812
+ onChange: (f) => s(u, f)
2857
2813
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
2858
2814
  ], 64))), 128))
2859
2815
  ]),
2860
- t.isCustomAdress ? (m(), h("div", Dl, [
2861
- Vl,
2862
- (m(!0), h(E, null, U(t.addSkel, (c, d) => (m(), h(E, { key: d }, [
2816
+ t.isCustomAdress ? (m(), h("div", Sl, [
2817
+ _l,
2818
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2863
2819
  c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
2864
2820
  key: 0,
2865
- is: q(x)(c.type),
2866
- name: d,
2821
+ is: K(X)(c.type),
2822
+ name: u,
2867
2823
  structure: o(t.addSkel),
2868
- errors: t.errors[d] ? t.errors[d] : [],
2824
+ errors: t.errors[u] ? t.errors[u] : [],
2869
2825
  skel: t.formValues,
2870
- onChange: (f) => s(d, f)
2826
+ onChange: (f) => s(u, f)
2871
2827
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
2872
2828
  ], 64))), 128))
2873
2829
  ])) : k("", !0),
2874
- i("sl-checkbox", {
2830
+ d("sl-checkbox", {
2875
2831
  onSlChange: l,
2876
2832
  checked: ""
2877
2833
  }, " Rechnungsadresse wie Lieferadresse ", 32)
2878
2834
  ], 64);
2879
2835
  };
2880
2836
  }
2881
- }, Rl = /* @__PURE__ */ I(Nl, [["__scopeId", "data-v-b68a2bfa"]]), te = (e) => (M("data-v-a4accf28"), e = e(), z(), e), Ll = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Ul = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Tl = ["onSlChange", "onSlClear", "label"], Pl = ["value"], Ml = { key: 0 }, zl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Wl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", {
2837
+ }, wl = /* @__PURE__ */ I(kl, [["__scopeId", "data-v-b68a2bfa"]]), ee = (e) => (M("data-v-a4accf28"), e = e(), z(), e), El = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Al = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Il = ["onSlChange", "onSlClear", "label"], Cl = ["value"], Ol = { key: 0 }, jl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Bl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
2882
2838
  name: "x-lg",
2883
2839
  slot: "prefix"
2884
- }, null, -1)), ql = [
2885
- Wl
2886
- ], Fl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", {
2840
+ }, null, -1)), Dl = [
2841
+ Bl
2842
+ ], Vl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
2887
2843
  name: "plus-lg",
2888
2844
  slot: "prefix"
2889
- }, null, -1)), Kl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", {
2845
+ }, null, -1)), Nl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
2890
2846
  slot: "icon",
2891
2847
  name: "exclamation-triangle"
2892
- }, null, -1)), Hl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("br", null, null, -1)), Gl = {
2848
+ }, null, -1)), Rl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("br", null, null, -1)), Ll = {
2893
2849
  __name: "UserInfoMulti",
2894
2850
  props: {
2895
2851
  mode: { type: String, default: "form" }
2896
2852
  },
2897
2853
  setup(e) {
2898
- const n = oe(), t = w({
2854
+ const n = re(), t = w({
2899
2855
  formValues: {},
2900
2856
  requiredFieldsFilled: S(() => {
2901
2857
  if (t.isCustomAdress)
@@ -2914,7 +2870,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
2914
2870
  errors: {},
2915
2871
  selectedItem: {},
2916
2872
  isInit: S(() => !!n.state.carts[n.state.basket])
2917
- }), l = F(null), s = F(null);
2873
+ }), l = q(null), s = q(null);
2918
2874
  function o(p) {
2919
2875
  p.target.checked && (t.isCustomAdress = !1), p.target.checked || (t.isCustomAdress = !0);
2920
2876
  }
@@ -2925,7 +2881,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
2925
2881
  }
2926
2882
  t.shippingAdressAmount += 1;
2927
2883
  }
2928
- function u(p, v) {
2884
+ function i(p, v) {
2929
2885
  for (const [_, g] of Object.entries(v.value[0]))
2930
2886
  t.formValues[_] = g;
2931
2887
  }
@@ -2938,12 +2894,12 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
2938
2894
  }
2939
2895
  function c(p, v) {
2940
2896
  if (console.log(p.target.value), !p.target.value.length) {
2941
- d();
2897
+ u();
2942
2898
  return;
2943
2899
  }
2944
2900
  t.selectedItem[v] = p.target.value, t.isItemSelected = !0;
2945
2901
  }
2946
- function d(p, v) {
2902
+ function u(p, v) {
2947
2903
  console.log("clearing..."), delete t.selectedItem[v], t.isItemSelected = !1;
2948
2904
  }
2949
2905
  function f(p) {
@@ -2953,114 +2909,114 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
2953
2909
  v[g] = b;
2954
2910
  }), v) : p;
2955
2911
  }
2956
- return ae(t.formValues, (p) => {
2912
+ return ne(t.formValues, (p) => {
2957
2913
  Object.entries(p).forEach(([v, _]) => {
2958
2914
  _ === "" && delete t.formValues[v];
2959
2915
  });
2960
- }), ee(async () => {
2916
+ }), x(async () => {
2961
2917
  await n.getAdressStructure(), t.addSkel = f(n.state.structure.address);
2962
2918
  }), (p, v) => {
2963
- const _ = se("bone");
2919
+ const _ = ae("bone");
2964
2920
  return m(), h(E, null, [
2965
- i("div", null, [
2966
- Ll,
2921
+ d("div", null, [
2922
+ El,
2967
2923
  (m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
2968
2924
  g.visible && g.params.group === "Customer Info" ? (m(), T(_, {
2969
2925
  key: 0,
2970
- is: q(x)(g.type),
2926
+ is: K(X)(g.type),
2971
2927
  name: b,
2972
2928
  structure: f(t.addSkel),
2973
2929
  errors: t.errors[b] ? t.errors[b] : [],
2974
2930
  skel: t.formValues,
2975
- onChange: (y) => u(b, y),
2931
+ onChange: (y) => i(b, y),
2976
2932
  class: "viur-shop-form-grid-w-2"
2977
2933
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
2978
2934
  ], 64))), 128))
2979
2935
  ]),
2980
- Ul,
2936
+ Al,
2981
2937
  (m(!0), h(E, null, U(t.shippingAdressAmount, (g) => (m(), h("div", { key: g }, [
2982
- i("sl-select", {
2938
+ d("sl-select", {
2983
2939
  clearable: "",
2984
2940
  ref_for: !0,
2985
2941
  ref_key: "itemSelection",
2986
2942
  ref: l,
2987
2943
  onSlChange: (b) => c(b, g),
2988
- onSlClear: (b) => d(b, g),
2989
- label: t.selectedItem[g] ? q(n).state.carts[t.selectedItem[g]].info.name : "Warenkorb für Adresse wählen.",
2944
+ onSlClear: (b) => u(b, g),
2945
+ label: t.selectedItem[g] ? K(n).state.carts[t.selectedItem[g]].info.name : "Warenkorb für Adresse wählen.",
2990
2946
  class: "grid-w-4"
2991
2947
  }, [
2992
- (m(!0), h(E, null, U(q(n).state.carts, (b, y) => (m(), h("sl-option", { value: y }, B(b.info.name), 9, Pl))), 256))
2993
- ], 40, Tl),
2948
+ (m(!0), h(E, null, U(K(n).state.carts, (b, y) => (m(), h("sl-option", { value: y }, B(b.info.name), 9, Cl))), 256))
2949
+ ], 40, Il),
2994
2950
  (m(!0), h(E, null, U(t.addSkel, (b, y) => (m(), h(E, { key: y }, [
2995
2951
  b.visible && b.params.group === "Customer Address" ? (m(), T(_, {
2996
2952
  key: 0,
2997
- is: q(x)(b.type),
2953
+ is: K(X)(b.type),
2998
2954
  name: y,
2999
2955
  structure: f(t.addSkel),
3000
2956
  errors: t.errors[y] ? t.errors[y] : [],
3001
2957
  skel: t.formValues,
3002
- onChange: ($) => u(y, $)
2958
+ onChange: ($) => i(y, $)
3003
2959
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
3004
2960
  ], 64))), 128))
3005
2961
  ]))), 128)),
3006
- t.isCustomAdress ? (m(), h("div", Ml, [
3007
- zl,
2962
+ t.isCustomAdress ? (m(), h("div", Ol, [
2963
+ jl,
3008
2964
  (m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
3009
2965
  g.visible && g.params.group === "Customer Address" ? (m(), T(_, {
3010
2966
  key: 0,
3011
- is: q(x)(g.type),
2967
+ is: K(X)(g.type),
3012
2968
  name: b,
3013
2969
  structure: f(t.addSkel),
3014
2970
  errors: t.errors[b] ? t.errors[b] : [],
3015
2971
  skel: t.formValues,
3016
- onChange: (y) => u(b, y)
2972
+ onChange: (y) => i(b, y)
3017
2973
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
3018
2974
  ], 64))), 128))
3019
2975
  ])) : k("", !0),
3020
- i("div", { class: "viur-shop-form-btn-wrap" }, [
3021
- i("sl-button", {
2976
+ d("div", { class: "viur-shop-form-btn-wrap" }, [
2977
+ d("sl-button", {
3022
2978
  size: "medium",
3023
2979
  onClick: r,
3024
2980
  title: "Lieferadresse entfernen"
3025
- }, ql),
3026
- i("sl-button", {
2981
+ }, Dl),
2982
+ d("sl-button", {
3027
2983
  size: "medium",
3028
2984
  variant: "primary",
3029
2985
  onClick: a
3030
2986
  }, [
3031
- Fl,
3032
- C(" Lieferadresse hinzufügen ")
2987
+ Vl,
2988
+ j(" Lieferadresse hinzufügen ")
3033
2989
  ])
3034
2990
  ]),
3035
- i("sl-alert", {
2991
+ d("sl-alert", {
3036
2992
  variant: "warning",
3037
2993
  duration: "2000",
3038
2994
  ref_key: "shippingWarning",
3039
2995
  ref: s,
3040
2996
  closable: ""
3041
2997
  }, [
3042
- Kl,
3043
- i("strong", null, B(t.amountAlert.title), 1),
3044
- Hl,
3045
- C(" " + B(t.amountAlert.msg), 1)
2998
+ Nl,
2999
+ d("strong", null, B(t.amountAlert.title), 1),
3000
+ Rl,
3001
+ j(" " + B(t.amountAlert.msg), 1)
3046
3002
  ], 512),
3047
- i("sl-checkbox", {
3003
+ d("sl-checkbox", {
3048
3004
  onSlChange: o,
3049
3005
  checked: ""
3050
3006
  }, " Rechnungsadresse wie Lieferadresse ", 32)
3051
3007
  ], 64);
3052
3008
  };
3053
3009
  }
3054
- }, Zl = /* @__PURE__ */ I(Gl, [["__scopeId", "data-v-a4accf28"]]), xe = {
3010
+ }, Ul = /* @__PURE__ */ I(Ll, [["__scopeId", "data-v-a4accf28"]]), Xe = {
3055
3011
  __name: "ExampleUsage",
3056
3012
  setup(e) {
3057
- const n = oe(), t = S(
3013
+ const n = re(), t = S(
3058
3014
  () => n.state.basketRootNode.key ? n.state.basketRootNode.key : ""
3059
3015
  ), l = w({
3060
3016
  rootNode: {},
3061
3017
  tabs: {
3062
3018
  cart: {
3063
- component: G(we),
3019
+ component: H(ke),
3064
3020
  props: {
3065
3021
  sidebar: !0,
3066
3022
  mode: "basket",
@@ -3075,7 +3031,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
3075
3031
  atHide: null
3076
3032
  },
3077
3033
  confirm: {
3078
- component: G(Ee),
3034
+ component: H(we),
3079
3035
  props: {},
3080
3036
  displayName: "Bestellung prüfen",
3081
3037
  icon: { name: "order-check", library: "hsk" },
@@ -3100,7 +3056,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
3100
3056
  // atHide: null,
3101
3057
  // },
3102
3058
  orderComplete: {
3103
- component: G(Ol),
3059
+ component: H(pl),
3104
3060
  props: {},
3105
3061
  displayName: "Bestellung Abgeschlossen",
3106
3062
  icon: { name: "order-confirmed", library: "hsk" },
@@ -3110,7 +3066,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
3110
3066
  atHide: null
3111
3067
  },
3112
3068
  userInfo: {
3113
- component: G(Rl),
3069
+ component: H(wl),
3114
3070
  props: {},
3115
3071
  displayName: "Daten Eingeben",
3116
3072
  icon: { name: "user", library: "hsk" },
@@ -3120,7 +3076,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
3120
3076
  atHide: null
3121
3077
  },
3122
3078
  userInfoMulti: {
3123
- component: G(Zl),
3079
+ component: H(Ul),
3124
3080
  props: {},
3125
3081
  displayName: "Daten Eingeben (Multi)",
3126
3082
  icon: { name: "user", library: "hsk" },
@@ -3134,78 +3090,78 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
3134
3090
  function s(o) {
3135
3091
  (o == null ? void 0 : o.detail.name) === "confirm" && (l.tabs.orderComplete.disabled = !1);
3136
3092
  }
3137
- return ee(async () => {
3093
+ return x(async () => {
3138
3094
  await n.init(), await n.getAdressStructure(), console.log("debug init exampleusage :", n.state.basketRootNode);
3139
- }), (o, a) => (m(), T($l, {
3095
+ }), (o, a) => (m(), T(ul, {
3140
3096
  tabs: l.tabs,
3141
3097
  onTabChange: s
3142
3098
  }, null, 8, ["tabs"]));
3143
3099
  }
3144
- }, Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3100
+ }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3145
3101
  __proto__: null,
3146
- default: xe
3147
- }, Symbol.toStringTag, { value: "Module" })), Ql = D({
3102
+ default: Xe
3103
+ }, Symbol.toStringTag, { value: "Module" })), Pl = D({
3148
3104
  props: {},
3149
3105
  components: {},
3150
3106
  setup(e, n) {
3151
3107
  const t = ht();
3152
3108
  return { state: w({}), route: t };
3153
3109
  }
3154
- }), Yl = { class: "home" };
3155
- function Xl(e, n, t, l, s, o) {
3156
- return m(), h("div", Yl, "View " + B(e.route.path) + " is missing.", 1);
3110
+ }), Ml = { class: "home" };
3111
+ function Wl(e, n, t, l, s, o) {
3112
+ return m(), h("div", Ml, "View " + B(e.route.path) + " is missing.", 1);
3157
3113
  }
3158
- const xl = /* @__PURE__ */ I(Ql, [["render", Xl]]), er = [
3114
+ const zl = /* @__PURE__ */ I(Pl, [["render", Wl]]), ql = [
3159
3115
  {
3160
3116
  path: "/:pathMatch(.*)*",
3161
3117
  name: "view_missing",
3162
- component: xl
3118
+ component: zl
3163
3119
  },
3164
3120
  {
3165
3121
  path: "/shop/category/:identifier",
3166
3122
  name: "CategoryView",
3167
- component: () => import("./CategoryView-DpxefLik.mjs")
3123
+ component: () => import("./CategoryView-8DIBpBK_.mjs")
3168
3124
  },
3169
3125
  {
3170
3126
  path: "/shop/item/:item",
3171
3127
  name: "itemView",
3172
- component: () => import("./ItemView-BsVTaCcL.mjs")
3128
+ component: () => import("./ItemView-Dx5_6_bp.mjs")
3173
3129
  },
3174
3130
  {
3175
3131
  path: "/shop/cart/view",
3176
3132
  name: "CartView",
3177
- component: () => Promise.resolve().then(() => Zs)
3133
+ component: () => Promise.resolve().then(() => Us)
3178
3134
  },
3179
3135
  {
3180
3136
  path: "/shop/order/",
3181
3137
  name: "OrderView",
3182
- component: () => Promise.resolve().then(() => Jl)
3138
+ component: () => Promise.resolve().then(() => Tl)
3183
3139
  },
3184
3140
  {
3185
3141
  path: "/shop/order/confirm",
3186
3142
  name: "ConfirmView",
3187
- component: () => Promise.resolve().then(() => ol)
3143
+ component: () => Promise.resolve().then(() => Qs)
3188
3144
  }
3189
3145
  ];
3190
- function or(e, n = !1) {
3146
+ function Ql(e, n = !1) {
3191
3147
  let t = [];
3192
- return n ? t = e : t = e.concat(er), bt({
3148
+ return n ? t = e : t = e.concat(ql), bt({
3193
3149
  // @ts-ignore
3194
3150
  history: vt("/"),
3195
3151
  routes: t
3196
3152
  });
3197
3153
  }
3198
- const ir = {
3154
+ const Yl = {
3199
3155
  install(e) {
3200
- e.component("CartView", we), e.component("ExampleUsage", xe), e.component("ConfirmView", Ee);
3156
+ e.component("CartView", ke), e.component("ExampleUsage", Xe), e.component("ConfirmView", we);
3201
3157
  }
3202
3158
  };
3203
3159
  export {
3204
- we as C,
3205
- ir as V,
3160
+ ke as C,
3161
+ Yl as V,
3206
3162
  I as _,
3207
- xe as a,
3208
- Ee as b,
3209
- or as c,
3210
- oe as u
3163
+ Xe as a,
3164
+ we as b,
3165
+ Ql as c,
3166
+ re as u
3211
3167
  };