@viur/shop-components 0.0.1-dev.54 → 0.0.1-dev.56

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
1
  var et = Object.defineProperty;
2
2
  var tt = (e, n, t) => n in e ? et(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
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 f, createElementBlock as h, normalizeClass as pe, createElementVNode as c, renderSlot as He, pushScopeId as M, popScopeId as z, Fragment as E, createCommentVNode as _, 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 mt } from "vue";
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 q, Fragment as E, createCommentVNode as _, toDisplayString as B, onMounted as R, ref as z, 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
5
  import { defineStore as ye } from "pinia";
6
- import { Request as ft } from "@viur/vue-utils";
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({
@@ -28,19 +28,19 @@ const pt = D({
28
28
  for (const [l, s] of n)
29
29
  t[l] = s;
30
30
  return t;
31
- }, Ge = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Ge(() => /* @__PURE__ */ c("sl-icon", {
31
+ }, Ge = (e) => (M("data-v-141aaf9b"), e = e(), q(), 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)), kt = [
35
35
  St
36
- ], _t = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */ Ge(() => /* @__PURE__ */ c("sl-icon", {
36
+ ], _t = { 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 = [
40
40
  Et
41
41
  ];
42
42
  function It(e, n, t, l, s, o) {
43
- return f(), h("div", {
43
+ return m(), h("div", {
44
44
  class: pe(["value-line", {
45
45
  "is-dragging": e.isDragging,
46
46
  "dragging-line-bottom": e.draggingLineBottom,
@@ -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
- c("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
  }, kt, 40, $t),
60
- c("div", _t, [
60
+ d("div", _t, [
61
61
  He(e.$slots, "default", {}, void 0, !0)
62
62
  ]),
63
- c("sl-button", {
63
+ d("sl-button", {
64
64
  variant: "danger",
65
65
  disabled: e.boneState.readonly,
66
66
  outline: "",
@@ -92,14 +92,14 @@ const Ct = /* @__PURE__ */ I(pt, [["render", It], ["__scopeId", "data-v-141aaf9b
92
92
  }
93
93
  }), jt = { class: "bone-name" }, Bt = { key: 0 }, Dt = { class: "bone" };
94
94
  function Vt(e, n, t, l, s, o) {
95
- return f(), h(E, null, [
96
- c("label", jt, [
95
+ return m(), h(E, null, [
96
+ d("label", jt, [
97
97
  He(e.$slots, "default", {}, void 0, !0),
98
98
  _("", !0)
99
99
  ]),
100
- e.state.debug ? (f(), h("div", Bt, [
101
- c("div", Dt, B(e.name), 1),
102
- c("pre", null, " " + B(e.boneState) + `
100
+ e.state.debug ? (m(), h("div", Bt, [
101
+ d("div", Dt, B(e.name), 1),
102
+ d("pre", null, " " + B(e.boneState) + `
103
103
  `, 1)
104
104
  ])) : _("", !0)
105
105
  ], 64);
@@ -130,12 +130,12 @@ const Nt = /* @__PURE__ */ I(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172
130
130
  }), Lt = ["disabled", "value"], Ut = ["disabled", "value"];
131
131
  function Tt(e, n, t, l, s, o) {
132
132
  var a, i;
133
- return e.boneState.bonestructure.type === "raw.json" ? (f(), h("sl-textarea", {
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,
136
136
  value: JSON.stringify(e.value),
137
137
  onInput: n[0] || (n[0] = (...r) => e.changeEvent && e.changeEvent(...r))
138
- }, null, 40, Lt)) : (f(), h("sl-textarea", {
138
+ }, null, 40, Lt)) : (m(), h("sl-textarea", {
139
139
  key: 1,
140
140
  disabled: (i = e.boneState) == null ? void 0 : i.readonly,
141
141
  value: e.value,
@@ -168,17 +168,17 @@ const ve = /* @__PURE__ */ I(Rt, [["render", Tt], ["__scopeId", "data-v-0ebe5f0b
168
168
  }
169
169
  }), Mt = ["value"];
170
170
  function Wt(e, n, t, l, s, o) {
171
- return f(), h("sl-input", {
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
177
  const Ce = /* @__PURE__ */ I(Pt, [["render", Wt], ["__scopeId", "data-v-b45a1311"]]);
178
- function zt(e) {
178
+ function qt(e) {
179
179
  return at() ? (st(e), !0) : !1;
180
180
  }
181
- function qt(e) {
181
+ function zt(e) {
182
182
  return typeof e == "function" ? e() : K(e);
183
183
  }
184
184
  const Ft = typeof window < "u" && typeof document < "u";
@@ -186,7 +186,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
186
186
  function ce(e, n, t = {}) {
187
187
  const {
188
188
  immediate: l = !0
189
- } = t, s = q(!1);
189
+ } = t, s = z(!1);
190
190
  let o = null;
191
191
  function a() {
192
192
  o && (clearTimeout(o), o = null);
@@ -194,12 +194,12 @@ function ce(e, n, t = {}) {
194
194
  function i() {
195
195
  s.value = !1, a();
196
196
  }
197
- function r(...d) {
197
+ function r(...c) {
198
198
  a(), s.value = !0, o = setTimeout(() => {
199
- s.value = !1, o = null, e(...d);
200
- }, qt(n));
199
+ s.value = !1, o = null, e(...c);
200
+ }, zt(n));
201
201
  }
202
- return l && (s.value = !0, Ft && r()), zt(i), {
202
+ return l && (s.value = !0, Ft && r()), qt(i), {
203
203
  isPending: nt(s),
204
204
  start: r,
205
205
  stop: i
@@ -221,9 +221,9 @@ class Kt {
221
221
  }
222
222
  static formatString(n, t) {
223
223
  function l(a) {
224
- let i = [], r = [], d = /\$\((.*?)\)/g;
224
+ let i = [], r = [], c = /\$\((.*?)\)/g;
225
225
  for (; r; ) {
226
- if (r = d.exec(a), !r) {
226
+ if (r = c.exec(a), !r) {
227
227
  r = !1;
228
228
  continue;
229
229
  }
@@ -236,9 +236,9 @@ class Kt {
236
236
  for (let a of t) {
237
237
  let i = n;
238
238
  for (let r of s) {
239
- let d = r.split("."), u = a;
240
- for (let m of d)
241
- u && u !== "-" && m in u && u[m] ? u = u[m] : u = "-";
239
+ let c = r.split("."), u = a;
240
+ for (let f of c)
241
+ u && u !== "-" && f in u && u[f] ? u = u[f] : u = "-";
242
242
  u = this.unescape(u), i = i.replace("$(" + r + ")", u);
243
243
  }
244
244
  o.push(i);
@@ -260,7 +260,7 @@ const Ht = D({
260
260
  setup(e, n) {
261
261
  const t = C("boneState"), l = w({
262
262
  value: S(() => e.value)
263
- }), s = q(null);
263
+ }), s = z(null);
264
264
  function o(a) {
265
265
  n.emit("change", e.name, a.target.value, e.lang, e.index);
266
266
  }
@@ -283,7 +283,7 @@ const Ht = D({
283
283
  }
284
284
  }), Gt = ["disabled", "value", "required"];
285
285
  function Zt(e, n, t, l, s, o) {
286
- return f(), h("sl-input", {
286
+ return m(), h("sl-input", {
287
287
  ref: "stringBone",
288
288
  disabled: e.boneState.readonly,
289
289
  value: e.Utils.unescape(e.value),
@@ -304,7 +304,7 @@ const Oe = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0
304
304
  components: {},
305
305
  emits: ["change"],
306
306
  setup(e, n) {
307
- const t = C("boneState"), l = w({}), s = q(null);
307
+ const t = C("boneState"), l = w({}), s = z(null);
308
308
  function o(a) {
309
309
  n.emit("change", e.name, a.target.value, e.lang, e.index);
310
310
  }
@@ -326,7 +326,7 @@ const Oe = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0
326
326
  }
327
327
  }), Qt = ["disabled", "value"];
328
328
  function Yt(e, n, t, l, s, o) {
329
- return f(), h("sl-input", {
329
+ return m(), h("sl-input", {
330
330
  ref: "emailBone",
331
331
  disabled: e.boneState.readonly,
332
332
  type: "email",
@@ -369,7 +369,7 @@ const je = /* @__PURE__ */ I(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024
369
369
  }
370
370
  }), xt = ["disabled", "type", "value"];
371
371
  function en(e, n, t, l, s, o) {
372
- return f(), h("sl-input", {
372
+ return m(), h("sl-input", {
373
373
  disabled: e.boneState.readonly,
374
374
  type: e.state.typeString,
375
375
  value: e.state.value,
@@ -419,7 +419,7 @@ const Be = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c
419
419
  }
420
420
  }), nn = ["disabled", "value", "multiple"], an = ["value"];
421
421
  function sn(e, n, t, l, s, o) {
422
- return f(), h("sl-select", {
422
+ return m(), h("sl-select", {
423
423
  disabled: e.boneState.readonly,
424
424
  value: e.state.value,
425
425
  hoist: "",
@@ -428,7 +428,7 @@ function sn(e, n, t, l, s, o) {
428
428
  clearable: "",
429
429
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
430
430
  }, [
431
- (f(!0), h(E, null, U(e.convertObjToList(), (a) => (f(), h("sl-option", {
431
+ (m(!0), h(E, null, U(e.convertObjToList(), (a) => (m(), h("sl-option", {
432
432
  key: a[0],
433
433
  value: a[0]
434
434
  }, B(a[1]), 9, an))), 128))
@@ -462,7 +462,7 @@ const De = /* @__PURE__ */ I(tn, [["render", sn], ["__scopeId", "data-v-5a38b97f
462
462
  }
463
463
  }), rn = ["disabled", "checked"];
464
464
  function on(e, n, t, l, s, o) {
465
- return f(), h("sl-switch", {
465
+ return m(), h("sl-switch", {
466
466
  disabled: e.boneState.readonly,
467
467
  checked: e.state.value,
468
468
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
@@ -486,7 +486,7 @@ const Ve = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8
486
486
  equal: !1,
487
487
  passwordInfo: [],
488
488
  requiredPasswordInfo: []
489
- }), s = q(null);
489
+ }), s = z(null);
490
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
  }
@@ -518,10 +518,10 @@ const Ve = /* @__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
- return f(), h(E, null, [
524
- Z(c("sl-input", {
523
+ return m(), h(E, null, [
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,
@@ -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
- c("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
541
  [se, e.state.value1]
542
542
  ]),
543
- e.boneState.readonly ? _("", !0) : Z((f(), h("sl-input", {
543
+ e.boneState.readonly ? _("", !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,16 +551,16 @@ 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
- c("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
559
  [se, e.state.value2]
560
560
  ]),
561
- c("ul", fn, [
562
- (f(!0), h(E, null, U(e.state.passwordInfo, (a, i) => (f(), h("li", { key: i }, B(a), 1))), 128)),
563
- (f(!0), h(E, null, U(e.state.requiredPasswordInfo, (a, i) => (f(), h("li", {
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
564
  key: i,
565
565
  class: "requiredInfo"
566
566
  }, B(a), 1))), 128))
@@ -583,19 +583,19 @@ const Ne = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
583
583
  structure: S(() => a(t.bonestructure.using)),
584
584
  globalRegistration: !1,
585
585
  formGroups: S(() => {
586
- var d, u;
586
+ var c, u;
587
587
  let i = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } };
588
- for (const [m, p] of Object.entries(l.structure)) {
589
- let v = "default", k = l.structure[m], g = (d = l.value) == null ? void 0 : d[m];
588
+ for (const [f, p] of Object.entries(l.structure)) {
589
+ let v = "default", k = l.structure[f], g = (c = l.value) == null ? void 0 : c[f];
590
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
- boneName: m,
591
+ boneName: f,
592
592
  boneStructure: k,
593
593
  boneValue: g
594
594
  }) : i[v] = {
595
595
  name: p.params.category,
596
596
  bones: [
597
597
  {
598
- boneName: m,
598
+ boneName: f,
599
599
  boneStructure: k,
600
600
  boneValue: g
601
601
  }
@@ -603,8 +603,8 @@ const Ne = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
603
603
  }, k.visible === !0 && (i[v].groupVisible = !0);
604
604
  }
605
605
  let r = {};
606
- return Object.keys(i).sort().forEach(function(m) {
607
- r[m] = i[m];
606
+ return Object.keys(i).sort().forEach(function(f) {
607
+ r[f] = i[f];
608
608
  }), r;
609
609
  })
610
610
  });
@@ -620,8 +620,8 @@ const Ne = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
620
620
  function a(i) {
621
621
  if (Array.isArray(i)) {
622
622
  let r = {};
623
- for (const d in i)
624
- r[i[d][0]] = i[d][1];
623
+ for (const c in i)
624
+ r[i[c][0]] = i[c][1];
625
625
  return r;
626
626
  } else
627
627
  return i;
@@ -645,28 +645,28 @@ const Ne = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
645
645
  }, pn = ["summary", "open"];
646
646
  function yn(e, n, t, l, s, o) {
647
647
  const a = ae("bone");
648
- return e.state.globalRegistration ? (f(), h("div", vn, [
649
- (f(!0), h(E, null, U(e.state.formGroups, (i, r) => Z((f(), h("sl-details", {
648
+ return e.state.globalRegistration ? (m(), h("div", vn, [
649
+ (m(!0), h(E, null, U(e.state.formGroups, (i, r) => Z((m(), h("sl-details", {
650
650
  key: r,
651
651
  summary: i.name,
652
652
  open: i.groupOpen
653
653
  }, [
654
- (f(!0), h(E, null, U(i.bones, (d) => Z((f(), T(a, {
655
- key: d.name,
656
- is: e.getBoneWidget(e.state.structure[d.boneName].type),
657
- name: d.boneName,
654
+ (m(!0), h(E, null, U(i.bones, (c) => Z((m(), T(a, {
655
+ key: c.name,
656
+ is: e.getBoneWidget(e.state.structure[c.boneName].type),
657
+ name: c.boneName,
658
658
  structure: e.state.structure,
659
659
  skel: e.state.value,
660
660
  errors: e.boneState.errors,
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
- [be, e.state.structure[d.boneName].visible]
664
+ [be, e.state.structure[c.boneName].visible]
665
665
  ])), 128))
666
666
  ], 8, pn)), [
667
667
  [be, i.groupVisible]
668
668
  ])), 128))
669
- ])) : (f(), h("sl-alert", bn, " In Order to use this Bone register the bone component globally in your main file "));
669
+ ])) : (m(), h("sl-alert", bn, " In Order to use this Bone register the bone component globally in your main file "));
670
670
  }
671
671
  const Ze = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca"]]), $n = D({
672
672
  inheritAttrs: !1,
@@ -701,7 +701,7 @@ const Ze = /* @__PURE__ */ I(hn, [["render", yn], ["__scopeId", "data-v-e6fcfbca
701
701
  });
702
702
  function Sn(e, n, t, l, s, o) {
703
703
  const a = ae("Wrapper_nested");
704
- return f(), T(a, {
704
+ return m(), T(a, {
705
705
  value: e.value,
706
706
  name: e.name,
707
707
  index: e.state.index,
@@ -734,7 +734,7 @@ const Re = /* @__PURE__ */ I($n, [["render", Sn], ["__scopeId", "data-v-84a761ce
734
734
  }
735
735
  }), _n = ["disabled", "value"];
736
736
  function wn(e, n, t, l, s, o) {
737
- return f(), h("sl-color-picker", {
737
+ return m(), h("sl-color-picker", {
738
738
  disabled: e.boneState.readonly,
739
739
  value: e.value,
740
740
  onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
@@ -759,7 +759,7 @@ const Le = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-534b9149
759
759
  if (t.bonestructure.precision > 1)
760
760
  return parseFloat(`0.${"0".repeat(t.bonestructure.precision - 1)}1`);
761
761
  })
762
- }), s = q(null);
762
+ }), s = z(null);
763
763
  function o(a) {
764
764
  n.emit("change", e.name, a.target.value, e.lang, e.index);
765
765
  }
@@ -781,8 +781,8 @@ const Le = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-534b9149
781
781
  }
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
- return f(), h(E, null, [
785
- c("sl-input", {
784
+ return m(), h(E, null, [
785
+ d("sl-input", {
786
786
  ref: "numericBone",
787
787
  type: "number",
788
788
  disabled: e.boneState.readonly,
@@ -793,10 +793,10 @@ 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
- c("ul", In, [
797
- e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (f(), h("li", Cn, B(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : _("", !0),
798
- e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (f(), h("li", On, B(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : _("", !0),
799
- e.state.precision ? (f(), h("li", jn, B(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : _("", !0)
796
+ d("ul", In, [
797
+ e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (m(), h("li", Cn, B(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : _("", !0),
798
+ e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (m(), h("li", On, B(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : _("", !0),
799
+ e.state.precision ? (m(), h("li", jn, B(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : _("", !0)
800
800
  ])
801
801
  ], 64);
802
802
  }
@@ -832,20 +832,20 @@ class O {
832
832
  if (t instanceof FormData)
833
833
  return t;
834
834
  const u = new FormData();
835
- for (const m in t)
836
- if (Array.isArray(t[m]))
837
- for (let p of t[m])
838
- u.append(m, p);
835
+ for (const f in t)
836
+ if (Array.isArray(t[f]))
837
+ for (let p of t[f])
838
+ u.append(f, p);
839
839
  else
840
- u.append(m, t[m]);
840
+ u.append(f, t[f]);
841
841
  return u;
842
842
  }
843
- let d = le.post(O.buildUrl(n), r(), null, a, o, i);
844
- return d.then(function(u) {
843
+ let c = le.post(O.buildUrl(n), r(), null, a, o, i);
844
+ return c.then(function(u) {
845
845
  l && l(u.data);
846
846
  }).catch(function(u) {
847
847
  s && s(u);
848
- }), d;
848
+ }), c;
849
849
  }
850
850
  static async getBatchSkeys(n = 30, t = N.VITE_DEFAULT_RENDERER || "json") {
851
851
  await O.get(`/${t}/skey`, {
@@ -863,12 +863,12 @@ class O {
863
863
  renderer: a = N.VITE_DEFAULT_RENDERER || "json",
864
864
  headers: i = null,
865
865
  mode: r = null,
866
- amount: d = 30
866
+ amount: c = 30
867
867
  } = {}) {
868
868
  let u = null;
869
- Y().state.sKeys.size === 0 && await O.getBatchSkeys(d);
870
- const m = [...Y().state.sKeys][0];
871
- return t instanceof FormData ? (t.append("skey", m), Y().state.sKeys.delete(m)) : (t || (t = {}), t.skey = m, Y().state.sKeys.delete(m)), u = O.post(n, {
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,
@@ -884,16 +884,16 @@ class O {
884
884
  clearCache: a = !1,
885
885
  abortController: i = null,
886
886
  headers: r = null,
887
- mode: d = null,
887
+ mode: c = null,
888
888
  // milli sec min Std Tage
889
889
  cacheTime: u = 1e3 * 60 * 60 * 24 * 1
890
890
  } = {}) {
891
- let m = le.get(O.buildUrl(n), t, a, r, i, d);
892
- return m.then(function(p) {
891
+ let f = le.get(O.buildUrl(n), t, a, r, i, c);
892
+ return f.then(function(p) {
893
893
  l && l(p.data);
894
894
  }).catch(function(p) {
895
895
  s && s(p);
896
- }), m;
896
+ }), f;
897
897
  }
898
898
  static list(n, {
899
899
  dataObj: t = null,
@@ -936,8 +936,8 @@ class O {
936
936
  abortController: i = null,
937
937
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
938
938
  } = {}) {
939
- let d = `/${r}/${n}/view/${t}`;
940
- return a && (d = `/${r}/${n}/view/${a}/${t}`), O.get(d, {
939
+ let c = `/${r}/${n}/view/${t}`;
940
+ return a && (c = `/${r}/${n}/view/${a}/${t}`), O.get(c, {
941
941
  dataObj: l,
942
942
  callback: s,
943
943
  failedCallback: o,
@@ -968,8 +968,8 @@ class O {
968
968
  abortController: i = null,
969
969
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
970
970
  } = {}) {
971
- let d = `/${r}/${n}/edit/${t}`;
972
- return a && (d = `/${r}/${n}/edit/${a}/${t}`), O.securePost(d, {
971
+ let c = `/${r}/${n}/edit/${t}`;
972
+ return a && (c = `/${r}/${n}/edit/${a}/${t}`), O.securePost(c, {
973
973
  dataObj: l,
974
974
  callback: s,
975
975
  failedCallback: o,
@@ -984,8 +984,8 @@ class O {
984
984
  abortController: i = null,
985
985
  renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
986
986
  } = {}) {
987
- let d = `/${r}/${n}/delete/${t}`;
988
- return a && (d = `/${r}/${n}/delete/${a}/${t}`), O.securePost(d, {
987
+ let c = `/${r}/${n}/delete/${t}`;
988
+ return a && (c = `/${r}/${n}/delete/${a}/${t}`), O.securePost(c, {
989
989
  dataObj: l,
990
990
  callback: s,
991
991
  failedCallback: o,
@@ -1011,13 +1011,13 @@ class O {
1011
1011
  method: "POST",
1012
1012
  mode: "no-cors"
1013
1013
  }).then(async (r) => {
1014
- const d = {
1014
+ const c = {
1015
1015
  key: i.values.uploadKey,
1016
1016
  skelType: "leaf"
1017
1017
  };
1018
- O.securePost("/vi/file/add", { dataObj: d }).then(async (u) => {
1019
- let m = await u.json();
1020
- m.action === "addSuccess" ? s(m.values) : o(m);
1018
+ O.securePost("/vi/file/add", { dataObj: c }).then(async (u) => {
1019
+ let f = await u.json();
1020
+ f.action === "addSuccess" ? s(f.values) : o(f);
1021
1021
  }).catch((u) => {
1022
1022
  o(u);
1023
1023
  });
@@ -1041,17 +1041,17 @@ class le {
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 i(r, d) {
1044
+ function i(r, c) {
1045
1045
  let u = new URL(r);
1046
- if (d && Object.keys(d).length > 0) {
1047
- const m = new URLSearchParams();
1048
- for (const [p, v] of Object.entries(d))
1046
+ if (c && Object.keys(c).length > 0) {
1047
+ const f = new URLSearchParams();
1048
+ for (const [p, v] of Object.entries(c))
1049
1049
  if (Array.isArray(v))
1050
1050
  for (const k of v)
1051
- m.append(p, k);
1051
+ f.append(p, k);
1052
1052
  else
1053
- m.append(p, v);
1054
- u.search = m.toString();
1053
+ f.append(p, v);
1054
+ u.search = f.toString();
1055
1055
  }
1056
1056
  return u.toString();
1057
1057
  }
@@ -1059,8 +1059,8 @@ class le {
1059
1059
  if (r.ok)
1060
1060
  return r;
1061
1061
  {
1062
- const d = `${r.status} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1063
- return Promise.reject(new ie(r.status, r.statusText, d, r));
1062
+ const c = `${r.status} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1063
+ return Promise.reject(new ie(r.status, r.statusText, c, r));
1064
1064
  }
1065
1065
  }).catch((r) => {
1066
1066
  if (r instanceof TypeError) {
@@ -1071,8 +1071,8 @@ class le {
1071
1071
  const u = `${r.code} ${r.name}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1072
1072
  return Promise.reject(new ie(r.code, r.name, u, { url: n }));
1073
1073
  }
1074
- const d = `${r.statusCode} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
1075
- return Promise.reject(new ie(r.statusCode, r.statusText, d, r.response));
1074
+ const c = `${r.statusCode} ${r.statusText}: ${r.headers ? r.headers.get("x-error-descr") : ""}`;
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) {
@@ -1097,16 +1097,16 @@ const Vn = D({
1097
1097
  selection: null
1098
1098
  });
1099
1099
  function o(r) {
1100
- let d = "";
1101
- return t.bonestructure.type === "relational.tree.leaf.file" ? d = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (d = "skelType=node&"), O.get(
1102
- `/${Dn.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${d}limit=99`
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&"), O.get(
1102
+ `/${Dn.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${c}limit=99`
1103
1103
  ).then(async (u) => {
1104
1104
  var p;
1105
- const m = await u.json();
1105
+ const f = await u.json();
1106
1106
  s.skellistdata = {};
1107
- for (let v of m.skellist)
1107
+ for (let v of f.skellist)
1108
1108
  s.skellistdata[v.key] = v;
1109
- return (p = m.skellist) == null ? void 0 : p.map((v) => ({ text: l(t.bonestructure.format, { dest: v }), value: v.key, data: v }));
1109
+ return (p = f.skellist) == null ? void 0 : p.map((v) => ({ text: l(t.bonestructure.format, { dest: v }), value: v.key, data: v }));
1110
1110
  });
1111
1111
  }
1112
1112
  function a(r) {
@@ -1115,8 +1115,8 @@ const Vn = D({
1115
1115
  function i(r) {
1116
1116
  var u;
1117
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
- let d = s.selection.rel[r.name];
1119
- r.lang ? (d === null && (d = {}), Object.keys(d).includes(r.lang) && r.index !== null ? d[r.lang][r.index] = r.value : d[r.lang] = r.value) : r.index !== null ? (d === null && (d = []), d[r.index] = r.value) : d = r.value, Object.keys(s.selection).includes("rel") && s.selection.rel ? s.selection.rel[r.name] = d : s.selection.rel = { [r.name]: d }, Object.keys(s.selection).includes("dest") && n.emit("change", e.name, s.selection, e.lang, e.index);
1118
+ let c = s.selection.rel[r.name];
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
  }
1121
1121
  return R(() => {
1122
1122
  s.selection = e.value, n.emit("change", e.name, e.value, e.lang, e.index);
@@ -1129,29 +1129,29 @@ const Vn = D({
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__ */ c("sl-icon", {
1132
+ }), Nn = (e) => (M("data-v-61dd72e0"), e = e(), q(), 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
1135
  }, null, -1)), Wn = [
1136
1136
  Mn
1137
1137
  ];
1138
- function zn(e, n, t, l, s, o) {
1138
+ function qn(e, n, t, l, s, o) {
1139
1139
  var i, r;
1140
1140
  const a = ae("Wrapper_nested");
1141
- return f(), h("div", Rn, [
1142
- c("div", Ln, [
1143
- e.state.selection ? (f(), h("sl-input", {
1141
+ return m(), h("div", Rn, [
1142
+ d("div", Ln, [
1143
+ e.state.selection ? (m(), h("sl-input", {
1144
1144
  key: 0,
1145
1145
  disabled: !0,
1146
1146
  value: e.value ? e.formatString(e.state.format, e.state.selection) : ""
1147
- }, null, 8, Un)) : (f(), h("sl-combobox", {
1147
+ }, null, 8, Un)) : (m(), h("sl-combobox", {
1148
1148
  key: 1,
1149
1149
  disabled: e.boneState.readonly,
1150
1150
  source: e.getList,
1151
1151
  hoist: "",
1152
- onSlItemSelect: n[0] || (n[0] = (...d) => e.changeEvent && e.changeEvent(...d))
1152
+ onSlItemSelect: n[0] || (n[0] = (...c) => e.changeEvent && e.changeEvent(...c))
1153
1153
  }, null, 40, Tn)),
1154
- !e.boneState.multiple && !e.boneState.isEmpty ? (f(), h("sl-button", {
1154
+ !e.boneState.multiple && !e.boneState.isEmpty ? (m(), h("sl-button", {
1155
1155
  key: 2,
1156
1156
  variant: "danger",
1157
1157
  outline: "",
@@ -1162,7 +1162,7 @@ function zn(e, n, t, l, s, o) {
1162
1162
  })
1163
1163
  }, Wn, 8, Pn)) : _("", !0)
1164
1164
  ]),
1165
- (i = e.boneState) != null && i.bonestructure.using ? (f(), 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 zn(e, n, t, l, s, o) {
1172
1172
  }, null, 8, ["value", "name", "index", "disabled", "onChange"])) : _("", !0)
1173
1173
  ]);
1174
1174
  }
1175
- const Te = /* @__PURE__ */ I(Vn, [["render", zn], ["__scopeId", "data-v-61dd72e0"]]), qn = D({
1175
+ const Te = /* @__PURE__ */ I(Vn, [["render", qn], ["__scopeId", "data-v-61dd72e0"]]), zn = D({
1176
1176
  inheritAttrs: !1,
1177
1177
  props: {
1178
1178
  name: String,
@@ -1199,9 +1199,9 @@ const Te = /* @__PURE__ */ I(Vn, [["render", zn], ["__scopeId", "data-v-61dd72e0
1199
1199
  }
1200
1200
  }), Fn = { class: "box" };
1201
1201
  function Kn(e, n, t, l, s, o) {
1202
- return f(), h("div", Fn, B(e.value), 1);
1202
+ return m(), h("div", Fn, B(e.value), 1);
1203
1203
  }
1204
- const Hn = /* @__PURE__ */ I(qn, [["render", Kn], ["__scopeId", "data-v-343aca69"]]);
1204
+ const Hn = /* @__PURE__ */ I(zn, [["render", Kn], ["__scopeId", "data-v-343aca69"]]);
1205
1205
  var Pe = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1206
1206
  const Gn = D({
1207
1207
  inheritAttrs: !1,
@@ -1214,7 +1214,7 @@ const Gn = D({
1214
1214
  components: {},
1215
1215
  emits: ["change"],
1216
1216
  setup(e, n) {
1217
- const t = C("boneState"), l = q(), s = w({
1217
+ const t = C("boneState"), l = z(), s = w({
1218
1218
  loading: !1,
1219
1219
  droparea: !1,
1220
1220
  previewopen: !1
@@ -1229,13 +1229,13 @@ const Gn = D({
1229
1229
  return O.downloadUrlFor(e.value, !1);
1230
1230
  }
1231
1231
  function i(u) {
1232
- const m = {
1232
+ const f = {
1233
1233
  fileName: u.name,
1234
1234
  mimeType: u.type || "application/octet-stream",
1235
1235
  size: u.size.toString()
1236
1236
  };
1237
1237
  return new Promise((p, v) => {
1238
- O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: m }).then(async (k) => {
1238
+ O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (k) => {
1239
1239
  let g = await k.json();
1240
1240
  fetch(g.values.uploadUrl, {
1241
1241
  body: u,
@@ -1263,16 +1263,16 @@ const Gn = D({
1263
1263
  }
1264
1264
  async function r(u) {
1265
1265
  s.loading = !0;
1266
- for (let m of u.target.files) {
1267
- let p = await i(m);
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 d(u) {
1272
+ async function c(u) {
1273
1273
  s.loading = !0, s.droparea = !1;
1274
- for (let m of u.dataTransfer.files) {
1275
- let p = await i(m);
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
  }
@@ -1285,20 +1285,20 @@ const Gn = D({
1285
1285
  createBackgroundImage: a,
1286
1286
  handleUpload: r,
1287
1287
  uploadinput: l,
1288
- handleDrop: d
1288
+ handleDrop: c
1289
1289
  };
1290
1290
  }
1291
- }), me = (e) => (M("data-v-91086308"), e = e(), z(), e), Zn = {
1291
+ }), fe = (e) => (M("data-v-91086308"), e = e(), q(), e), Zn = {
1292
1292
  key: 0,
1293
1293
  class: "loader"
1294
- }, Jn = /* @__PURE__ */ me(() => /* @__PURE__ */ c("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__ */ me(() => /* @__PURE__ */ c("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__ */ me(() => /* @__PURE__ */ c("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,72 +1309,72 @@ const Gn = D({
1309
1309
  }, da = {
1310
1310
  key: 0,
1311
1311
  name: "file-earmark"
1312
- }, ca = { key: 2 }, ma = ["title"], fa = /* @__PURE__ */ me(() => /* @__PURE__ */ c("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, i, r, d, u, m, p, v, k, g;
1317
- return f(), h("div", {
1316
+ var a, i, r, c, u, f, p, v, k, g;
1317
+ return m(), h("div", {
1318
1318
  class: "file-wrapper",
1319
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
1321
  onDrop: n[7] || (n[7] = ue((...b) => e.handleDrop && e.handleDrop(...b), ["prevent"]))
1322
1322
  }, [
1323
- e.state.loading ? (f(), h("div", Zn, Qn)) : _("", !0),
1324
- e.state.droparea ? (f(), h("div", Yn, " Dateien hier hinziehen ")) : _("", !0),
1325
- !e.boneState.readonly && (!e.value || e.state.loading) ? (f(), h("sl-button", {
1323
+ e.state.loading ? (m(), h("div", Zn, Qn)) : _("", !0),
1324
+ e.state.droparea ? (m(), h("div", Yn, " Dateien hier hinziehen ")) : _("", !0),
1325
+ !e.boneState.readonly && (!e.value || e.state.loading) ? (m(), h("sl-button", {
1326
1326
  key: 2,
1327
1327
  title: e.$t("bone.upload"),
1328
1328
  outline: "",
1329
1329
  class: "upload-btn",
1330
1330
  onClick: n[0] || (n[0] = (b) => e.uploadinput.click())
1331
1331
  }, ea, 8, Xn)) : _("", !0),
1332
- c("input", {
1332
+ d("input", {
1333
1333
  ref: "uploadinput",
1334
1334
  hidden: "",
1335
1335
  type: "file",
1336
1336
  multiple: e.boneState.multiple,
1337
1337
  onChange: n[1] || (n[1] = (...b) => e.handleUpload && e.handleUpload(...b))
1338
1338
  }, null, 40, ta),
1339
- e.value ? (f(), h("sl-button", {
1339
+ e.value ? (m(), h("sl-button", {
1340
1340
  key: 3,
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)) : _("", !0),
1344
- c("div", la, [
1345
- (i = (a = e.value) == null ? void 0 : a.dest) != null && i.mimetype.includes("image") ? (f(), 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
- c("img", {
1350
+ d("img", {
1351
1351
  class: "preview-img",
1352
1352
  src: e.createBackgroundImage(),
1353
1353
  alt: ""
1354
1354
  }, null, 8, ra),
1355
- c("sl-dialog", {
1356
- label: decodeURIComponent((d = (r = e.value) == null ? void 0 : r.dest) == null ? void 0 : d.name),
1355
+ d("sl-dialog", {
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
- c("img", {
1360
+ d("img", {
1361
1361
  src: e.createBackgroundImage(),
1362
1362
  alt: ""
1363
1363
  }, null, 8, ia)
1364
1364
  ], 8, oa)
1365
- ])) : (f(), h("div", ua, [
1366
- (m = (u = e.value) == null ? void 0 : u.dest) != null && m.name ? (f(), h("sl-icon", da)) : _("", !0)
1365
+ ])) : (m(), h("div", ua, [
1366
+ (f = (u = e.value) == null ? void 0 : u.dest) != null && f.name ? (m(), h("sl-icon", da)) : _("", !0)
1367
1367
  ])),
1368
- (v = (p = e.value) == null ? void 0 : p.dest) != null && v.name ? (f(), h("div", ca, B(decodeURIComponent((g = (k = e.value) == null ? void 0 : k.dest) == null ? void 0 : g.name)), 1)) : _("", !0)
1368
+ (v = (p = e.value) == null ? void 0 : p.dest) != null && v.name ? (m(), h("div", ca, B(decodeURIComponent((g = (k = e.value) == null ? void 0 : k.dest) == null ? void 0 : g.name)), 1)) : _("", !0)
1369
1369
  ]),
1370
- e.boneState.multiple ? _("", !0) : (f(), h("sl-button", {
1370
+ e.boneState.multiple ? _("", !0) : (m(), h("sl-button", {
1371
1371
  key: 4,
1372
1372
  variant: "danger",
1373
1373
  outline: "",
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
1380
  const Me = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308"]]), ba = D({
@@ -1423,23 +1423,23 @@ const Me = /* @__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 i, r, d, u;
1426
+ var i, r, c, u;
1427
1427
  const a = ae("ckeditor");
1428
- return e.state.editor ? (f(), h(E, { key: 0 }, [
1429
- (i = e.boneState.bonestructure) != null && i.valid_html || (r = e.boneState.bonestructure) != null && r.validHtml ? (f(), T(a, {
1428
+ return e.state.editor ? (m(), h(E, { key: 0 }, [
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
- "onUpdate:modelValue": n[0] || (n[0] = (m) => e.state.value = m),
1432
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => e.state.value = f),
1433
1433
  editor: e.state.editor,
1434
1434
  config: e.state.editorConfig,
1435
- disabled: (d = e.boneState) == null ? void 0 : d.readonly,
1435
+ disabled: (c = e.boneState) == null ? void 0 : c.readonly,
1436
1436
  onReady: e.onReady,
1437
1437
  onInput: e.changeEvent
1438
- }, null, 8, ["modelValue", "editor", "config", "disabled", "onReady", "onInput"])) : (f(), h("sl-textarea", {
1438
+ }, null, 8, ["modelValue", "editor", "config", "disabled", "onReady", "onInput"])) : (m(), h("sl-textarea", {
1439
1439
  key: 1,
1440
1440
  disabled: (u = e.boneState) == null ? void 0 : u.readonly,
1441
1441
  value: e.value,
1442
- onInput: n[1] || (n[1] = (...m) => e.changeEventTextarea && e.changeEventTextarea(...m))
1442
+ onInput: n[1] || (n[1] = (...f) => e.changeEventTextarea && e.changeEventTextarea(...f))
1443
1443
  }, null, 40, va))
1444
1444
  ], 64)) : _("", !0);
1445
1445
  }
@@ -1475,8 +1475,8 @@ const We = /* @__PURE__ */ I(ba, [["render", pa]]), ya = D({
1475
1475
  }
1476
1476
  }), $a = ["name", "min", "max", "disabled"], Sa = ["name", "min", "max", "disabled"];
1477
1477
  function ka(e, n, t, l, s, o) {
1478
- return f(), h(E, null, [
1479
- Z(c("sl-input", {
1478
+ return m(), h(E, null, [
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",
@@ -1491,7 +1491,7 @@ function ka(e, n, t, l, s, o) {
1491
1491
  }, null, 40, $a), [
1492
1492
  [se, e.state.valueLat]
1493
1493
  ]),
1494
- Z(c("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",
@@ -1508,7 +1508,7 @@ function ka(e, n, t, l, s, o) {
1508
1508
  ])
1509
1509
  ], 64);
1510
1510
  }
1511
- const ze = /* @__PURE__ */ I(ya, [["render", ka], ["__scopeId", "data-v-7bc31020"]]), _a = D({
1511
+ const qe = /* @__PURE__ */ I(ya, [["render", ka], ["__scopeId", "data-v-7bc31020"]]), _a = D({
1512
1512
  props: {
1513
1513
  name: String,
1514
1514
  value: Object,
@@ -1528,7 +1528,7 @@ const ze = /* @__PURE__ */ I(ya, [["render", ka], ["__scopeId", "data-v-7bc31020
1528
1528
  l.counter += 1;
1529
1529
  let r = 200;
1530
1530
  l.counter > 1 && (r = 500), l.debounce && clearTimeout(l.debounce), l.debounce = setTimeout(() => {
1531
- for (let d = l.counter; d--; )
1531
+ for (let c = l.counter; c--; )
1532
1532
  s(e.lang);
1533
1533
  l.counter = 0;
1534
1534
  }, r);
@@ -1549,18 +1549,18 @@ const ze = /* @__PURE__ */ I(ya, [["render", ka], ["__scopeId", "data-v-7bc31020
1549
1549
  removeMultipleEntries: o
1550
1550
  };
1551
1551
  }
1552
- }), Je = (e) => (M("data-v-63e75dee"), e = e(), z(), e), wa = { class: "actionbar" }, Ea = ["title"], Aa = /* @__PURE__ */ Je(() => /* @__PURE__ */ c("sl-icon", {
1552
+ }), Je = (e) => (M("data-v-63e75dee"), e = e(), q(), 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__ */ Je(() => /* @__PURE__ */ c("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));
1561
1561
  function ja(e, n, t, l, s, o) {
1562
- return f(), h("div", wa, [
1563
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1562
+ return m(), h("div", wa, [
1563
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1564
1564
  key: 0,
1565
1565
  variant: "danger",
1566
1566
  title: e.$t("bone.del"),
@@ -1568,7 +1568,7 @@ function ja(e, n, t, l, s, o) {
1568
1568
  class: "delete-btn",
1569
1569
  onClick: n[0] || (n[0] = (a) => e.handleRemove(e.lang))
1570
1570
  }, Ia, 8, Ea)) : _("", !0),
1571
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1571
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1572
1572
  key: 1,
1573
1573
  variant: "success",
1574
1574
  title: e.$t("bone.add"),
@@ -1578,7 +1578,7 @@ function ja(e, n, t, l, s, o) {
1578
1578
  }, [
1579
1579
  Oa,
1580
1580
  j(" " + B(e.$t("bone.add")) + " ", 1),
1581
- e.state.counter > 1 ? (f(), h(E, { key: 0 }, [
1581
+ e.state.counter > 1 ? (m(), h(E, { key: 0 }, [
1582
1582
  j("(" + B(e.state.counter) + ")", 1)
1583
1583
  ], 64)) : _("", !0)
1584
1584
  ], 8, Ca)) : _("", !0)
@@ -1603,13 +1603,13 @@ const Va = D({
1603
1603
  hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
1604
1604
  });
1605
1605
  function i(r) {
1606
- let d = "";
1607
- return t.bonestructure.type === "relational.tree.leaf.file" ? d = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (d = "skelType=node&"), O.get(
1608
- `/${Da.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${d}limit=99`
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&"), O.get(
1608
+ `/${Da.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${c}limit=99`
1609
1609
  ).then(async (u) => {
1610
1610
  var p;
1611
- const m = await u.json();
1612
- return a.skels = m.skellist.reduce((v, k) => (v[k.key] = k, v), {}), (p = m.skellist) == null ? void 0 : p.map((v) => ({ text: s(t.bonestructure.format, { dest: v }), value: v.key, data: v }));
1611
+ const f = await u.json();
1612
+ return a.skels = f.skellist.reduce((v, k) => (v[k.key] = k, 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
  }
1615
1615
  return R(() => {
@@ -1622,18 +1622,18 @@ const Va = D({
1622
1622
  getList: i
1623
1623
  };
1624
1624
  }
1625
- }), Qe = (e) => (M("data-v-eeea51c6"), e = e(), z(), e), Na = { class: "actionbar" }, Ra = ["title"], La = /* @__PURE__ */ Qe(() => /* @__PURE__ */ c("sl-icon", {
1625
+ }), Qe = (e) => (M("data-v-eeea51c6"), e = e(), q(), 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__ */ Qe(() => /* @__PURE__ */ c("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
1634
  function Wa(e, n, t, l, s, o) {
1635
- return f(), h("div", Na, [
1636
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1635
+ return m(), h("div", Na, [
1636
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1637
1637
  key: 0,
1638
1638
  variant: "danger",
1639
1639
  title: e.$t("bone.del"),
@@ -1641,7 +1641,7 @@ function Wa(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)) : _("", !0),
1644
- c("sl-combobox", {
1644
+ d("sl-combobox", {
1645
1645
  source: e.getList,
1646
1646
  hoist: "",
1647
1647
  onSlItemSelect: n[1] || (n[1] = (a) => {
@@ -1652,7 +1652,7 @@ function Wa(e, n, t, l, s, o) {
1652
1652
  });
1653
1653
  })
1654
1654
  }, null, 40, Ta),
1655
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1655
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1656
1656
  key: 1,
1657
1657
  variant: "success",
1658
1658
  title: e.$t("bone.add"),
@@ -1665,9 +1665,9 @@ function Wa(e, n, t, l, s, o) {
1665
1665
  ], 8, Pa)) : _("", !0)
1666
1666
  ]);
1667
1667
  }
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
- const qa = D({
1668
+ const qa = /* @__PURE__ */ I(Va, [["render", Wa], ["__scopeId", "data-v-eeea51c6"]]);
1669
+ var ze = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1670
+ const za = D({
1671
1671
  props: {
1672
1672
  name: String,
1673
1673
  value: Object,
@@ -1681,7 +1681,7 @@ const qa = D({
1681
1681
  setup(e, n) {
1682
1682
  const t = C("boneState"), l = C("addMultipleEntry");
1683
1683
  C("formatString");
1684
- const s = null, o = q(), a = w({
1684
+ const s = null, o = z(), a = w({
1685
1685
  skels: {},
1686
1686
  uploadinput: null,
1687
1687
  loading: !1,
@@ -1689,13 +1689,13 @@ const qa = D({
1689
1689
  hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
1690
1690
  });
1691
1691
  function i(u) {
1692
- const m = {
1692
+ const f = {
1693
1693
  fileName: u.name,
1694
1694
  mimeType: u.type || "application/octet-stream",
1695
1695
  size: u.size.toString()
1696
1696
  };
1697
1697
  return new Promise((p, v) => {
1698
- O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: m }).then(async (k) => {
1698
+ O.securePost(`/${ze.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (k) => {
1699
1699
  let g = await k.json();
1700
1700
  fetch(g.values.uploadUrl, {
1701
1701
  body: u,
@@ -1707,7 +1707,7 @@ const qa = D({
1707
1707
  node: void 0,
1708
1708
  skelType: "leaf"
1709
1709
  };
1710
- O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => {
1710
+ O.securePost(`/${ze.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(($) => {
@@ -1723,18 +1723,18 @@ const qa = D({
1723
1723
  }
1724
1724
  async function r(u) {
1725
1725
  a.loading = !0;
1726
- for (let m of u.target.files) {
1727
- let p = await i(m);
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 d(u) {
1734
+ async function c(u) {
1735
1735
  a.loading = !0, a.droparea = !1;
1736
- for (let m of u.dataTransfer.files) {
1737
- let p = await i(m);
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 });
@@ -1751,10 +1751,10 @@ const qa = D({
1751
1751
  uploadFile: i,
1752
1752
  uploadinput: o,
1753
1753
  handleUpload: r,
1754
- handleDrop: d
1754
+ handleDrop: c
1755
1755
  };
1756
1756
  }
1757
- }), $e = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), Fa = ["title"], Ka = /* @__PURE__ */ $e(() => /* @__PURE__ */ c("sl-icon", {
1757
+ }), $e = (e) => (M("data-v-9bac9f8a"), e = e(), q(), 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,23 +1762,23 @@ const qa = D({
1762
1762
  ], Ga = {
1763
1763
  key: 1,
1764
1764
  class: "droparea"
1765
- }, Za = ["multiple"], Ja = ["title"], Qa = /* @__PURE__ */ $e(() => /* @__PURE__ */ c("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__ */ $e(() => /* @__PURE__ */ c("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
- return f(), h("div", {
1775
+ return m(), h("div", {
1776
1776
  class: "actionbar",
1777
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
1779
  onDrop: n[6] || (n[6] = ue((...a) => e.handleDrop && e.handleDrop(...a), ["prevent"]))
1780
1780
  }, [
1781
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1781
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1782
1782
  key: 0,
1783
1783
  variant: "danger",
1784
1784
  title: e.$t("bone.del"),
@@ -1786,22 +1786,22 @@ function ts(e, n, t, l, s, o) {
1786
1786
  class: "delete-btn",
1787
1787
  onClick: n[0] || (n[0] = (a) => e.openSelector())
1788
1788
  }, Ha, 8, Fa)) : _("", !0),
1789
- e.state.droparea ? (f(), h("div", Ga, " Dateien hier hinziehen ")) : _("", !0),
1790
- c("input", {
1789
+ e.state.droparea ? (m(), h("div", Ga, " Dateien hier hinziehen ")) : _("", !0),
1790
+ d("input", {
1791
1791
  ref: "uploadinput",
1792
1792
  hidden: "",
1793
1793
  type: "file",
1794
1794
  multiple: e.boneState.multiple,
1795
1795
  onChange: n[1] || (n[1] = (...a) => e.handleUpload && e.handleUpload(...a))
1796
1796
  }, null, 40, Za),
1797
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1797
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1798
1798
  key: 2,
1799
1799
  outline: "",
1800
1800
  title: e.$t("bone.list"),
1801
1801
  class: "add-btn",
1802
1802
  onClick: n[2] || (n[2] = (a) => e.addMultipleEntry(e.lang))
1803
1803
  }, Ya, 8, Ja)) : _("", !0),
1804
- e.boneState.multiple && !e.readonly ? (f(), h("sl-button", {
1804
+ e.boneState.multiple && !e.readonly ? (m(), h("sl-button", {
1805
1805
  key: 3,
1806
1806
  variant: "success",
1807
1807
  outline: "",
@@ -1811,11 +1811,11 @@ function ts(e, n, t, l, s, o) {
1811
1811
  }, [
1812
1812
  xa,
1813
1813
  j(" " + B(e.$t("bone.upload")) + " ", 1),
1814
- e.state.loading ? (f(), h("sl-spinner", es)) : _("", !0)
1814
+ e.state.loading ? (m(), h("sl-spinner", es)) : _("", !0)
1815
1815
  ], 8, Xa)) : _("", !0)
1816
1816
  ], 32);
1817
1817
  }
1818
- const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a"]]), Se = ye("boneStore", () => {
1818
+ const ns = /* @__PURE__ */ I(za, [["render", ts], ["__scopeId", "data-v-9bac9f8a"]]), Se = ye("boneStore", () => {
1819
1819
  const e = w({
1820
1820
  additionalBones: H({}),
1821
1821
  defaultBones: H({
@@ -1834,11 +1834,11 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
1834
1834
  jsonBone: Hn,
1835
1835
  fileBone: Me,
1836
1836
  textBone: We,
1837
- spatialBone: ze
1837
+ spatialBone: qe
1838
1838
  }),
1839
1839
  actionbars: H({
1840
1840
  "relational.tree.leaf.file.file": ns,
1841
- "relational.": za
1841
+ "relational.": qa
1842
1842
  }),
1843
1843
  multibones: H(["select", "select."])
1844
1844
  });
@@ -1856,16 +1856,16 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
1856
1856
  return e.additionalBones[a];
1857
1857
  {
1858
1858
  let i = a.split("."), r = Object.entries(e.additionalBones).filter(
1859
- (d) => d[0].startsWith(i[0] + ".")
1859
+ (c) => c[0].startsWith(i[0] + ".")
1860
1860
  );
1861
1861
  if (r.length > 0) {
1862
- r.sort((d, u) => u.length - d.length);
1863
- for (let d of r)
1864
- if (a.startsWith(d[0]))
1865
- return e.additionalBones[d[0]];
1862
+ r.sort((c, u) => u.length - c.length);
1863
+ for (let c of r)
1864
+ if (a.startsWith(c[0]))
1865
+ return e.additionalBones[c[0]];
1866
1866
  }
1867
1867
  }
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;
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" ? qe : ve;
1869
1869
  }
1870
1870
  function s(a, i) {
1871
1871
  e.actionbars[a] = i;
@@ -1875,13 +1875,13 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
1875
1875
  return e.actionbars[a];
1876
1876
  {
1877
1877
  let i = a.split("."), r = Object.entries(e.actionbars).filter(
1878
- (d) => d[0].startsWith(i[0] + ".")
1878
+ (c) => c[0].startsWith(i[0] + ".")
1879
1879
  );
1880
1880
  if (r.length > 0) {
1881
- r.sort((d, u) => u.length - d.length);
1882
- for (let d of r)
1883
- if (a.startsWith(d[0]))
1884
- return e.actionbars[d[0]];
1881
+ r.sort((c, u) => u.length - c.length);
1882
+ for (let c of r)
1883
+ if (a.startsWith(c[0]))
1884
+ return e.actionbars[c[0]];
1885
1885
  }
1886
1886
  }
1887
1887
  return Ba;
@@ -2029,7 +2029,7 @@ D({
2029
2029
  let $ = null;
2030
2030
  t.dragStartIndex.index !== t.dropIndex.index && (b ? ($ = t.bonevalue[b].splice(t.dragStartIndex.index, 1)[0], t.bonevalue[b].splice(t.dropIndex.index, 0, $)) : ($ = t.bonevalue.splice(t.dragStartIndex.index, 1)[0], t.bonevalue.splice(t.dropIndex.index, 0, $)), console.dir(t.bonevalue[0]), n.emit("change", {
2031
2031
  name: e.name,
2032
- value: d(),
2032
+ value: c(),
2033
2033
  lang: b,
2034
2034
  index: g
2035
2035
  })), i("draggingLineBottom", "draggingLineTop", "isDragging", "dragStartIndex", "dropIndex");
@@ -2049,7 +2049,7 @@ D({
2049
2049
  if (b === void 0 || (y ? (t.bonevalue || (t.bonevalue = {}), Object.keys(t.bonevalue).includes(y) && $ !== null ? t.bonevalue[y][$] = b : t.bonevalue[y] = b) : $ !== null ? t.bonevalue[$] = b : A === !1 || (t.bonevalue = b), t.readonly)) return !1;
2050
2050
  let L = {
2051
2051
  name: g,
2052
- value: d(),
2052
+ value: c(),
2053
2053
  lang: y,
2054
2054
  index: $
2055
2055
  }, V = {
@@ -2060,7 +2060,7 @@ D({
2060
2060
  };
2061
2061
  A != null && (L.pwMatch = A, V.pwMatch = A), n.emit("change", L), n.emit("change-internal", V);
2062
2062
  }
2063
- function d() {
2063
+ function c() {
2064
2064
  function g(y, $ = null) {
2065
2065
  let A = [];
2066
2066
  if (Array.isArray(y))
@@ -2086,16 +2086,16 @@ D({
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
2088
  oe("addMultipleEntry", u);
2089
- function m(g, b = null) {
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", {
2092
2092
  name: e.name,
2093
- value: d(),
2093
+ value: c(),
2094
2094
  lang: b,
2095
2095
  index: g
2096
2096
  }), n.emit("change-internal", {
2097
2097
  name: e.name,
2098
- value: d(),
2098
+ value: c(),
2099
2099
  lang: b,
2100
2100
  index: g
2101
2101
  });
@@ -2104,11 +2104,11 @@ D({
2104
2104
  var b;
2105
2105
  g ? (b = t.bonevalue) == null || b[g].splice(0) : t.bonevalue.splice(0), n.emit("change", {
2106
2106
  name: e.name,
2107
- value: d(),
2107
+ value: c(),
2108
2108
  lang: g
2109
2109
  }), n.emit("change-internal", {
2110
2110
  name: e.name,
2111
- value: d(),
2111
+ value: c(),
2112
2112
  lang: g
2113
2113
  });
2114
2114
  }
@@ -2175,7 +2175,7 @@ D({
2175
2175
  state: t,
2176
2176
  updateValue: r,
2177
2177
  addMultipleEntry: u,
2178
- removeMultipleEntry: m,
2178
+ removeMultipleEntry: f,
2179
2179
  removeMultipleEntries: p,
2180
2180
  BoneHasMultipleHandling: ss,
2181
2181
  multipleBonePressEnter: v,
@@ -2227,17 +2227,17 @@ const ke = {
2227
2227
  }));
2228
2228
  }, Ke = ke.setup;
2229
2229
  ke.setup = Ke ? (e, n) => (Fe(), Ke(e, n)) : Fe;
2230
- const ls = (e) => (M("data-v-46c45785"), e = e(), z(), e), rs = {
2230
+ const ls = (e) => (M("data-v-46c45785"), e = e(), q(), e), rs = {
2231
2231
  key: 0,
2232
2232
  class: "loading"
2233
- }, os = /* @__PURE__ */ ls(() => /* @__PURE__ */ c("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 f(), T(ot, null, {
2235
+ return m(), T(ot, null, {
2236
2236
  default: it(() => [
2237
- t.active ? (f(), h("div", rs, [
2237
+ t.active ? (m(), h("div", rs, [
2238
2238
  os,
2239
- c("div", is, [
2240
- c("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
  ])) : _("", !0)
2243
2243
  ]),
@@ -2260,41 +2260,41 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2260
2260
  return await e.cart_list({ cart_key: u });
2261
2261
  }
2262
2262
  async function s() {
2263
- (await e.cart_list()).forEach((m) => {
2264
- m.is_root_node && (m.cart_type === "basket" ? n.basketRootNode = m : n.whishlistRootNodes.push(m));
2263
+ (await e.cart_list()).forEach((f) => {
2264
+ f.is_root_node && (f.cart_type === "basket" ? n.basketRootNode = f : n.whishlistRootNodes.push(f));
2265
2265
  });
2266
2266
  }
2267
- async function o(u, m) {
2267
+ async function o(u, f) {
2268
2268
  let p = await e.article_add({
2269
2269
  article_key: u,
2270
- parent_cart_key: m
2270
+ parent_cart_key: f
2271
2271
  });
2272
2272
  console.log("addToCart", p);
2273
2273
  }
2274
- async function a(u, m) {
2274
+ async function a(u, f) {
2275
2275
  let p = await e.article_view({
2276
2276
  article_key: u,
2277
- parent_cart_key: m
2277
+ parent_cart_key: f
2278
2278
  });
2279
2279
  console.log("getArticleView", p);
2280
2280
  }
2281
- async function i(u, m) {
2281
+ async function i(u, f) {
2282
2282
  let p = await e.article_remove({
2283
2283
  article_key: u,
2284
- parent_cart_key: m
2284
+ parent_cart_key: f
2285
2285
  });
2286
2286
  console.log("remove Resp", p);
2287
2287
  }
2288
- async function r(u, m, p) {
2288
+ async function r(u, f, p) {
2289
2289
  let v = await e.article_update({
2290
2290
  article_key: u,
2291
- parent_cart_key: m,
2291
+ parent_cart_key: f,
2292
2292
  quantity: p,
2293
2293
  quantity_mode: "replace"
2294
2294
  });
2295
2295
  console.log("update Resp", v);
2296
2296
  }
2297
- async function d() {
2297
+ async function c() {
2298
2298
  let u = await e.address_structure();
2299
2299
  n.structure.address = u.addSkel, console.log("adress add", n.structure.address);
2300
2300
  }
@@ -2305,37 +2305,37 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2305
2305
  removeItem: i,
2306
2306
  updateItem: r,
2307
2307
  init: t,
2308
- getAdressStructure: d,
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 }
2315
2315
  },
2316
2316
  setup(e) {
2317
- return w({}), (n, t) => (f(), h("pre", null, B(e.node.name), 1));
2317
+ return w({}), (n, t) => (m(), h("pre", null, B(e.node.name), 1));
2318
2318
  }
2319
- }, fe = (e) => (M("data-v-1150a917"), e = e(), z(), e), fs = {
2319
+ }, me = (e) => (M("data-v-be87ea38"), e = e(), q(), 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__ */ fe(() => /* @__PURE__ */ c("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__ */ c("sl-icon", {
2329
+ /* @__PURE__ */ d("sl-icon", {
2330
2330
  name: "heart",
2331
2331
  slot: "prefix"
2332
2332
  })
2333
- ], -1)), $s = /* @__PURE__ */ fe(() => /* @__PURE__ */ c("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
- ], ks = { class: "viur-shop-cart-leaf-quantity" }, _s = { class: "viur-shop-cart-leaf-unitprice" }, ws = /* @__PURE__ */ fe(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-leaf-label" }, "Stückpreis", -1)), Es = { class: "viur-shop-cart-leaf-price" }, As = /* @__PURE__ */ fe(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-leaf-label" }, "Gesamtpreis", -1)), Is = {
2338
+ ], ks = { class: "viur-shop-cart-leaf-quantity" }, _s = { 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,53 +2347,53 @@ 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, d, u, m) {
2352
+ function a(r, c, u, f) {
2353
2353
  l("updateItem", {
2354
2354
  item: r,
2355
- articleKey: d,
2355
+ articleKey: c,
2356
2356
  node: u,
2357
- quantity: m
2357
+ quantity: f
2358
2358
  });
2359
2359
  }
2360
- function i(r, d, u) {
2361
- l("removeItem", { item: r, articleKey: d, node: u });
2360
+ function i(r, c, u) {
2361
+ l("removeItem", { item: r, articleKey: c, node: u });
2362
2362
  }
2363
2363
  return x(() => {
2364
2364
  s.leaf = t.leaf;
2365
- }), (r, d) => (f(), h("sl-card", fs, [
2366
- c("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
- c("h4", hs, B(s.leaf.shop_name), 1),
2372
- c("h5", bs, B(s.leaf.shop_art_no_or_gtin), 1),
2373
- c("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
- c("div", ps, [
2377
+ d("div", ps, [
2378
2378
  ys,
2379
- c("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: d[0] || (d[0] = (u) => i(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
- c("div", ks, [
2389
- Z(c("sl-input", {
2388
+ d("div", ks, [
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": d[1] || (d[1] = (u) => s.leaf.quantity = u),
2396
- onInput: d[2] || (d[2] = (u) => 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,
@@ -2403,25 +2403,39 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2403
2403
  [se, s.leaf.quantity]
2404
2404
  ])
2405
2405
  ]),
2406
- c("div", _s, [
2406
+ d("div", _s, [
2407
2407
  ws,
2408
+ d("sl-format-number", {
2409
+ class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice",
2410
+ lang: "de",
2411
+ type: "currency",
2412
+ currency: "EUR",
2413
+ value: e.leaf.price.retail
2414
+ }, null, 8, Es),
2408
2415
  j(" " + B(e.leaf.price.retail), 1)
2409
2416
  ]),
2410
- c("div", Es, [
2411
- As,
2417
+ d("div", As, [
2418
+ Is,
2419
+ d("sl-format-number", {
2420
+ class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--price",
2421
+ lang: "de",
2422
+ type: "currency",
2423
+ currency: "EUR",
2424
+ value: e.leaf.price.retail * e.leaf.quantity
2425
+ }, null, 8, Cs),
2412
2426
  j(" " + B(e.leaf.price.retail * e.leaf.quantity), 1)
2413
2427
  ])
2414
2428
  ]));
2415
2429
  }
2416
- }, Cs = /* @__PURE__ */ I(Is, [["__scopeId", "data-v-1150a917"]]), Ye = (e) => (M("data-v-8dd1e557"), e = e(), z(), e), Os = { key: 0 }, js = /* @__PURE__ */ Ye(() => /* @__PURE__ */ c("p", null, "Möchten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), Bs = {
2430
+ }, js = /* @__PURE__ */ I(Os, [["__scopeId", "data-v-be87ea38"]]), Ye = (e) => (M("data-v-8dd1e557"), e = e(), q(), e), Bs = { key: 0 }, Ds = /* @__PURE__ */ Ye(() => /* @__PURE__ */ d("p", null, "Möchten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), Vs = {
2417
2431
  class: "footer-wrap",
2418
2432
  slot: "footer"
2419
- }, Ds = { class: "viur-shop-cart-node" }, Vs = /* @__PURE__ */ Ye(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-mobile-footer" }, [
2420
- /* @__PURE__ */ c("sl-button", {
2433
+ }, Ns = { class: "viur-shop-cart-node" }, Rs = /* @__PURE__ */ Ye(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-mobile-footer" }, [
2434
+ /* @__PURE__ */ d("sl-button", {
2421
2435
  variant: "primary",
2422
2436
  size: "medium"
2423
2437
  }, " Jetzt Bestellen ")
2424
- ], -1)), Ns = {
2438
+ ], -1)), Ls = {
2425
2439
  __name: "CartView",
2426
2440
  props: {
2427
2441
  mode: { type: String, default: "basket" },
@@ -2429,7 +2443,7 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2429
2443
  sidebar: { type: Boolean, default: !0 }
2430
2444
  },
2431
2445
  setup(e) {
2432
- const n = e, t = re(), l = q(null), s = w({
2446
+ const n = e, t = re(), l = z(null), s = w({
2433
2447
  itemsIsInit: S(() => !0),
2434
2448
  images: {},
2435
2449
  currentItem: {},
@@ -2443,55 +2457,55 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2443
2457
  s.currentItem.article.dest.key,
2444
2458
  s.currentNode.key,
2445
2459
  0
2446
- ), await d(), l.value.hide();
2460
+ ), await c(), l.value.hide();
2447
2461
  }
2448
- async function a(m) {
2449
- console.log("updateItem :", m), m.quantity === 0 ? (l.value.show(), s.currentItem = m.item, s.currentNode = m.node) : (await t.updateItem(m.articleKey, m.node.key, m.quantity), await t.init());
2462
+ async function a(f) {
2463
+ 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());
2450
2464
  }
2451
- function i(m) {
2452
- console.log("removeItem :", m), l.value.show(), s.currentItem = m.item, s.currentNode = m.node;
2465
+ function i(f) {
2466
+ console.log("removeItem :", f), l.value.show(), s.currentItem = f.item, s.currentNode = f.node;
2453
2467
  }
2454
2468
  async function r() {
2455
- s.leaves[s.currentNode.key].forEach((m) => {
2456
- m.key === s.currentItem.key && (m.quantity = 1);
2469
+ s.leaves[s.currentNode.key].forEach((f) => {
2470
+ f.key === s.currentItem.key && (f.quantity = 1);
2457
2471
  }), s.currentItem = {}, s.currentNode = {};
2458
2472
  }
2459
- async function d() {
2473
+ async function c() {
2460
2474
  s.nodes = [], s.leaves = {}, await t.init(), await u();
2461
2475
  }
2462
- async function u(m = n.cartKey) {
2463
- console.log("debug getChildren parentKey from comp: ", m);
2464
- const p = await t.getChildren(m);
2476
+ async function u(f = n.cartKey) {
2477
+ console.log("debug getChildren parentKey from comp: ", f);
2478
+ const p = await t.getChildren(f);
2465
2479
  console.log("getChildren children: ", p), p.forEach(async (v) => {
2466
- v.skel_type === "node" ? (s.nodes.push(v), await u(v.key)) : (Object.keys(s.leaves).includes(m) || (s.leaves[m] = []), s.leaves[m].push(v));
2480
+ 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));
2467
2481
  });
2468
2482
  }
2469
2483
  return x(async () => {
2470
2484
  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);
2471
- }), (m, p) => e.cartKey.length ? (f(), h(E, { key: 1 }, [
2472
- c("sl-dialog", {
2485
+ }), (f, p) => e.cartKey.length ? (m(), h(E, { key: 1 }, [
2486
+ d("sl-dialog", {
2473
2487
  ref_key: "confirm",
2474
2488
  ref: l,
2475
2489
  onSlHide: r
2476
2490
  }, [
2477
- js,
2478
- c("div", Bs, [
2479
- c("sl-button", {
2491
+ Ds,
2492
+ d("div", Vs, [
2493
+ d("sl-button", {
2480
2494
  variant: "danger",
2481
2495
  onClick: p[0] || (p[0] = (v) => l.value.hide()),
2482
2496
  size: "medium"
2483
2497
  }, " Abbrechen "),
2484
- c("sl-button", {
2498
+ d("sl-button", {
2485
2499
  variant: "success",
2486
2500
  onClick: o,
2487
2501
  size: "medium"
2488
2502
  }, " Aus Warenkorb entfernen ")
2489
2503
  ])
2490
2504
  ], 544),
2491
- (f(!0), h(E, null, U(s.nodes, (v) => (f(), h("div", Ds, [
2492
- Object.keys(s.leaves).includes(v.key) ? (f(), h(E, { key: 0 }, [
2493
- ut(ms, { node: v }, null, 8, ["node"]),
2494
- (f(!0), h(E, null, U(s.leaves[v.key], (k) => (f(), T(Cs, {
2505
+ (m(!0), h(E, null, U(s.nodes, (v) => (m(), h("div", Ns, [
2506
+ Object.keys(s.leaves).includes(v.key) ? (m(), h(E, { key: 0 }, [
2507
+ ut(fs, { node: v }, null, 8, ["node"]),
2508
+ (m(!0), h(E, null, U(s.leaves[v.key], (k) => (m(), T(js, {
2495
2509
  key: k.key,
2496
2510
  leaf: k,
2497
2511
  node: v,
@@ -2500,79 +2514,79 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2500
2514
  }, null, 8, ["leaf", "node"]))), 128))
2501
2515
  ], 64)) : _("", !0)
2502
2516
  ]))), 256)),
2503
- Vs
2504
- ], 64)) : (f(), h("sl-spinner", Os));
2517
+ Rs
2518
+ ], 64)) : (m(), h("sl-spinner", Bs));
2505
2519
  }
2506
- }, _e = /* @__PURE__ */ I(Ns, [["__scopeId", "data-v-8dd1e557"]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2520
+ }, _e = /* @__PURE__ */ I(Ls, [["__scopeId", "data-v-8dd1e557"]]), Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2507
2521
  __proto__: null,
2508
2522
  default: _e
2509
- }, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), z(), e), Ls = {
2523
+ }, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), q(), e), Ts = {
2510
2524
  key: 1,
2511
2525
  class: "list"
2512
- }, Us = /* @__PURE__ */ J(() => /* @__PURE__ */ c("h2", { class: "viur-shop-cart-headline headline" }, "Bestellung prüfen", -1)), Ts = /* @__PURE__ */ J(() => /* @__PURE__ */ c("br", null, null, -1)), Ps = /* @__PURE__ */ J(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-address-wrap" }, [
2513
- /* @__PURE__ */ c("div", { class: "viur-shop-cart-address" }, [
2514
- /* @__PURE__ */ c("div", { class: "viur-shop-cart-address-headline" }, [
2526
+ }, 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" }, [
2527
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address" }, [
2528
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address-headline" }, [
2515
2529
  /* @__PURE__ */ j(" Versandadresse "),
2516
- /* @__PURE__ */ c("sl-button", {
2530
+ /* @__PURE__ */ d("sl-button", {
2517
2531
  outline: "",
2518
2532
  size: "small"
2519
2533
  }, [
2520
- /* @__PURE__ */ c("sl-icon", {
2534
+ /* @__PURE__ */ d("sl-icon", {
2521
2535
  name: "pencil",
2522
2536
  slot: "prefix"
2523
2537
  })
2524
2538
  ])
2525
2539
  ]),
2526
2540
  /* @__PURE__ */ j(" Roland Brose"),
2527
- /* @__PURE__ */ c("br"),
2541
+ /* @__PURE__ */ d("br"),
2528
2542
  /* @__PURE__ */ j(" Speicherstraße 33"),
2529
- /* @__PURE__ */ c("br"),
2543
+ /* @__PURE__ */ d("br"),
2530
2544
  /* @__PURE__ */ j(" 44147 Dortmund, DE"),
2531
- /* @__PURE__ */ c("br"),
2532
- /* @__PURE__ */ c("br"),
2545
+ /* @__PURE__ */ d("br"),
2546
+ /* @__PURE__ */ d("br"),
2533
2547
  /* @__PURE__ */ j(" rb@mausbrand.de"),
2534
- /* @__PURE__ */ c("br"),
2548
+ /* @__PURE__ */ d("br"),
2535
2549
  /* @__PURE__ */ j(" 0231 21 34 68 90 ")
2536
2550
  ]),
2537
- /* @__PURE__ */ c("div", { class: "viur-shop-cart-address" }, [
2538
- /* @__PURE__ */ c("div", { class: "viur-shop-cart-address-headline" }, [
2551
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address" }, [
2552
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-address-headline" }, [
2539
2553
  /* @__PURE__ */ j(" Rechnungsadresse "),
2540
- /* @__PURE__ */ c("sl-button", {
2554
+ /* @__PURE__ */ d("sl-button", {
2541
2555
  outline: "",
2542
2556
  size: "small"
2543
2557
  }, [
2544
- /* @__PURE__ */ c("sl-icon", {
2558
+ /* @__PURE__ */ d("sl-icon", {
2545
2559
  name: "pencil",
2546
2560
  slot: "prefix"
2547
2561
  })
2548
2562
  ])
2549
2563
  ]),
2550
2564
  /* @__PURE__ */ j(" Roland Brose"),
2551
- /* @__PURE__ */ c("br"),
2565
+ /* @__PURE__ */ d("br"),
2552
2566
  /* @__PURE__ */ j(" Speicherstraße 33"),
2553
- /* @__PURE__ */ c("br"),
2567
+ /* @__PURE__ */ d("br"),
2554
2568
  /* @__PURE__ */ j(" 44147 Dortmund, DE"),
2555
- /* @__PURE__ */ c("br"),
2556
- /* @__PURE__ */ c("br"),
2569
+ /* @__PURE__ */ d("br"),
2570
+ /* @__PURE__ */ d("br"),
2557
2571
  /* @__PURE__ */ j(" rb@mausbrand.de"),
2558
- /* @__PURE__ */ c("br"),
2572
+ /* @__PURE__ */ d("br"),
2559
2573
  /* @__PURE__ */ j(" 0231 21 34 68 90 ")
2560
2574
  ])
2561
- ], -1)), Ms = /* @__PURE__ */ J(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-payment" }, [
2562
- /* @__PURE__ */ c("div", { class: "viur-shop-cart-payment-method" }, [
2563
- /* @__PURE__ */ c("span", null, "Zahlungsmethode:"),
2575
+ ], -1)), qs = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { class: "viur-shop-cart-payment" }, [
2576
+ /* @__PURE__ */ d("div", { class: "viur-shop-cart-payment-method" }, [
2577
+ /* @__PURE__ */ d("span", null, "Zahlungsmethode:"),
2564
2578
  /* @__PURE__ */ j(" Paypal ")
2565
2579
  ]),
2566
- /* @__PURE__ */ c("sl-button", {
2580
+ /* @__PURE__ */ d("sl-button", {
2567
2581
  outline: "",
2568
2582
  size: "small"
2569
2583
  }, [
2570
- /* @__PURE__ */ c("sl-icon", {
2584
+ /* @__PURE__ */ d("sl-icon", {
2571
2585
  name: "pencil",
2572
2586
  slot: "prefix"
2573
2587
  })
2574
2588
  ])
2575
- ], -1)), Ws = /* @__PURE__ */ J(() => /* @__PURE__ */ c("h2", { class: "viur-shop-cart-headline headline" }, "Warenkorb", -1)), zs = /* @__PURE__ */ J(() => /* @__PURE__ */ c("br", null, null, -1)), qs = /* @__PURE__ */ J(() => /* @__PURE__ */ c("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Jetzt Bestellen", -1)), Fs = /* @__PURE__ */ J(() => /* @__PURE__ */ c("br", null, null, -1)), Ks = { class: "viur-shop-cart-sidebar-btn-wrap" }, Hs = ["variant", "disabled"], Gs = {
2589
+ ], -1)), zs = /* @__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 = {
2576
2590
  __name: "ConfirmView",
2577
2591
  setup(e) {
2578
2592
  const n = re(), t = w({
@@ -2589,40 +2603,40 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2589
2603
  }
2590
2604
  return x(async () => {
2591
2605
  await n.init();
2592
- }), (s, o) => t.cartIsInit ? (f(), h("div", Ls, [
2593
- Us,
2594
- Ts,
2606
+ }), (s, o) => t.cartIsInit ? (m(), h("div", Ts, [
2595
2607
  Ps,
2596
2608
  Ms,
2597
2609
  Ws,
2610
+ qs,
2598
2611
  zs,
2599
- (f(), T(dt, { to: "#order_sidebar" }, [
2600
- qs,
2601
- Fs,
2602
- c("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32),
2603
- c("div", Ks, [
2604
- c("sl-button", {
2612
+ Fs,
2613
+ (m(), T(dt, { to: "#order_sidebar" }, [
2614
+ Ks,
2615
+ Hs,
2616
+ d("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32),
2617
+ d("div", Gs, [
2618
+ d("sl-button", {
2605
2619
  variant: t.showOrderButton ? "info" : "disabled",
2606
2620
  size: "small",
2607
2621
  disabled: !t.showOrderButton
2608
- }, " Zahlungspflichtig bestellen ", 8, Hs)
2622
+ }, " Zahlungspflichtig bestellen ", 8, Zs)
2609
2623
  ])
2610
2624
  ]))
2611
- ])) : (f(), T(cs, { key: 0 }));
2625
+ ])) : (m(), T(cs, { key: 0 }));
2612
2626
  }
2613
- }, we = /* @__PURE__ */ I(Gs, [["__scopeId", "data-v-b7b745be"]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2627
+ }, we = /* @__PURE__ */ I(Js, [["__scopeId", "data-v-b7b745be"]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2614
2628
  __proto__: null,
2615
2629
  default: we
2616
- }, Symbol.toStringTag, { value: "Module" })), Js = (e) => (M("data-v-0e63188d"), e = e(), z(), e), Qs = { class: "bind viur-shop-wrap" }, Ys = ["panel", "disabled"], Xs = { class: "viur-shop-order-step" }, xs = ["name", "library"], el = { class: "viur-shop-order-status-text" }, tl = {
2630
+ }, Symbol.toStringTag, { value: "Module" })), Ys = (e) => (M("data-v-0e63188d"), e = e(), q(), 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 = {
2617
2631
  key: 0,
2618
2632
  name: "chevron-right",
2619
2633
  class: "viur-shop-order-tab-check"
2620
- }, nl = ["name"], al = ["onClick"], sl = ["onClick"], ll = /* @__PURE__ */ Js(() => /* @__PURE__ */ c("div", { class: "viur-shop-sidebar-wrap" }, [
2621
- /* @__PURE__ */ c("div", {
2634
+ }, sl = ["name"], ll = ["onClick"], rl = ["onClick"], ol = /* @__PURE__ */ Ys(() => /* @__PURE__ */ d("div", { class: "viur-shop-sidebar-wrap" }, [
2635
+ /* @__PURE__ */ d("div", {
2622
2636
  class: "viur-shop-sidebar",
2623
2637
  id: "order_sidebar"
2624
2638
  })
2625
- ], -1)), rl = {
2639
+ ], -1)), il = {
2626
2640
  __name: "OrderView",
2627
2641
  props: {
2628
2642
  tabs: {
@@ -2635,12 +2649,12 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2635
2649
  const t = e, l = n, s = w({
2636
2650
  tabNames: S(() => a(t.tabs)),
2637
2651
  isFirstTab: (u) => u === 0
2638
- }), o = q(null);
2652
+ }), o = z(null);
2639
2653
  function a(u) {
2640
- let m = [], p = [];
2654
+ let f = [], p = [];
2641
2655
  for (const v in u)
2642
- u[v].position ? m.push([v, u[v].position]) : m.push([v, 0]);
2643
- return m.sort((v, k) => v[1] - k[1]), m.forEach((v) => {
2656
+ u[v].position ? f.push([v, u[v].position]) : f.push([v, 0]);
2657
+ return f.sort((v, k) => v[1] - k[1]), f.forEach((v) => {
2644
2658
  p.push(v[0]);
2645
2659
  }), p;
2646
2660
  }
@@ -2650,85 +2664,85 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
2650
2664
  function r(u) {
2651
2665
  o.value.show(u);
2652
2666
  }
2653
- function d(u) {
2667
+ function c(u) {
2654
2668
  o.value.show(u);
2655
2669
  }
2656
- return (u, m) => (f(), h("div", Qs, [
2657
- c("sl-tab-group", {
2670
+ return (u, f) => (m(), h("div", Xs, [
2671
+ d("sl-tab-group", {
2658
2672
  class: "viur-shop-order-tabgroup",
2659
2673
  noScrollControls: "",
2660
2674
  onSlTabShow: i,
2661
2675
  ref_key: "tabGroup",
2662
2676
  ref: o
2663
2677
  }, [
2664
- (f(!0), h(E, null, U(s.tabNames, (p, v) => (f(), h("sl-tab", {
2678
+ (m(!0), h(E, null, U(s.tabNames, (p, v) => (m(), h("sl-tab", {
2665
2679
  class: "viur-shop-order-tab",
2666
2680
  slot: "nav",
2667
2681
  panel: p,
2668
2682
  key: p,
2669
2683
  disabled: e.tabs[p].disabled
2670
2684
  }, [
2671
- c("div", Xs, [
2672
- c("sl-icon", {
2685
+ d("div", el, [
2686
+ d("sl-icon", {
2673
2687
  class: "viur-shop-order-step-icon",
2674
2688
  name: e.tabs[p].icon.name,
2675
2689
  library: e.tabs[p].icon.library
2676
- }, null, 8, xs),
2677
- c("div", el, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
2690
+ }, null, 8, tl),
2691
+ d("div", nl, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
2678
2692
  ]),
2679
- v < s.tabNames.length - 1 ? (f(), h("sl-icon", tl)) : _("", !0)
2680
- ], 8, Ys))), 128)),
2681
- (f(!0), h(E, null, U(s.tabNames, (p, v) => (f(), h("sl-tab-panel", {
2693
+ v < s.tabNames.length - 1 ? (m(), h("sl-icon", al)) : _("", !0)
2694
+ ], 8, xs))), 128)),
2695
+ (m(!0), h(E, null, U(s.tabNames, (p, v) => (m(), h("sl-tab-panel", {
2682
2696
  class: "viur-shop-order-tab-panel",
2683
2697
  name: p,
2684
2698
  key: p
2685
2699
  }, [
2686
- (f(), T(ct(e.tabs[p].component), mt({ ref_for: !0 }, e.tabs[p].props ? e.tabs[p].props : ""), null, 16)),
2687
- v !== s.tabNames.length - 1 ? (f(), h("div", {
2700
+ (m(), T(ct(e.tabs[p].component), ft({ ref_for: !0 }, e.tabs[p].props ? e.tabs[p].props : ""), null, 16)),
2701
+ v !== s.tabNames.length - 1 ? (m(), h("div", {
2688
2702
  key: 0,
2689
2703
  class: pe(["viur-shop-form-footer", { "flex-end": s.isFirstTab(v) }])
2690
2704
  }, [
2691
- Z(c("sl-button", {
2705
+ Z(d("sl-button", {
2692
2706
  type: "submit",
2693
2707
  onClick: (k) => r(s.tabNames[v - 1])
2694
- }, " Zurück ", 8, al), [
2708
+ }, " Zurück ", 8, ll), [
2695
2709
  [be, v !== 0]
2696
2710
  ]),
2697
- c("sl-button", {
2711
+ d("sl-button", {
2698
2712
  type: "submit",
2699
2713
  variant: "primary",
2700
- onClick: (k) => d(s.tabNames[v + 1])
2701
- }, " Weiter ", 8, sl)
2714
+ onClick: (k) => c(s.tabNames[v + 1])
2715
+ }, " Weiter ", 8, rl)
2702
2716
  ], 2)) : _("", !0)
2703
- ], 8, nl))), 128))
2717
+ ], 8, sl))), 128))
2704
2718
  ], 544),
2705
- ll
2719
+ ol
2706
2720
  ]));
2707
2721
  }
2708
- }, ol = /* @__PURE__ */ I(rl, [["__scopeId", "data-v-0e63188d"]]), il = {}, ge = (e) => (M("data-v-36ccc280"), e = e(), z(), e), ul = { class: "bind" }, dl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("h1", { class: "headline" }, "Vielen Dank für Ihre Bestellung", -1)), cl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("br", null, null, -1)), ml = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("p", { class: "paragraph" }, [
2709
- /* @__PURE__ */ c("strong", null, "Ihre Bestellnummer:"),
2722
+ }, ul = /* @__PURE__ */ I(il, [["__scopeId", "data-v-0e63188d"]]), dl = {}, ge = (e) => (M("data-v-36ccc280"), e = e(), q(), 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" }, [
2723
+ /* @__PURE__ */ d("strong", null, "Ihre Bestellnummer:"),
2710
2724
  /* @__PURE__ */ j(" 123345670 ")
2711
- ], -1)), fl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("p", { class: "paragraph" }, [
2725
+ ], -1)), hl = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("p", { class: "paragraph" }, [
2712
2726
  /* @__PURE__ */ j(" Wir haben Ihre Bestellung erhalten und werden diese schenllstmöglich bearbeiten."),
2713
- /* @__PURE__ */ c("br"),
2727
+ /* @__PURE__ */ d("br"),
2714
2728
  /* @__PURE__ */ j(" Sie erhalten in wenigen Minuten eine Bestätigung per E-Mail. "),
2715
- /* @__PURE__ */ c("div", { class: "btn-wrap" }, [
2716
- /* @__PURE__ */ c("sl-button", { size: "medium" }, " Zur Startseite "),
2717
- /* @__PURE__ */ c("sl-button", {
2729
+ /* @__PURE__ */ d("div", { class: "btn-wrap" }, [
2730
+ /* @__PURE__ */ d("sl-button", { size: "medium" }, " Zur Startseite "),
2731
+ /* @__PURE__ */ d("sl-button", {
2718
2732
  variant: "primary",
2719
2733
  size: "medium"
2720
2734
  }, " Weiter Einkaufen ")
2721
2735
  ])
2722
- ], -1)), gl = [
2723
- dl,
2724
- cl,
2736
+ ], -1)), bl = [
2737
+ fl,
2725
2738
  ml,
2726
- fl
2739
+ gl,
2740
+ hl
2727
2741
  ];
2728
- function hl(e, n) {
2729
- return f(), h("div", ul, gl);
2742
+ function vl(e, n) {
2743
+ return m(), h("div", cl, bl);
2730
2744
  }
2731
- const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280"]]), Ee = (e) => (M("data-v-b68a2bfa"), e = e(), z(), e), vl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), pl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), yl = { key: 0 }, $l = /* @__PURE__ */ Ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Sl = {
2745
+ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280"]]), Ee = (e) => (M("data-v-b68a2bfa"), e = e(), q(), 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 }, kl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), _l = {
2732
2746
  __name: "UserInformation",
2733
2747
  props: {
2734
2748
  mode: { type: String, default: "form" },
@@ -2751,14 +2765,14 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2751
2765
  a.target.checked && (t.isCustomAdress = !1), a.target.checked || (t.isCustomAdress = !0);
2752
2766
  }
2753
2767
  function s(a, i) {
2754
- for (const [r, d] of Object.entries(i.value[0]))
2755
- t.formValues[r] = d;
2768
+ for (const [r, c] of Object.entries(i.value[0]))
2769
+ t.formValues[r] = c;
2756
2770
  }
2757
2771
  function o(a) {
2758
2772
  let i = {};
2759
2773
  return Array.isArray(a) ? (a.forEach((r) => {
2760
- let d = r[0], u = r[1];
2761
- i[d] = u;
2774
+ let c = r[0], u = r[1];
2775
+ i[c] = u;
2762
2776
  }), console.log("output", i), i) : a;
2763
2777
  }
2764
2778
  return ne(t.formValues, (a) => {
@@ -2769,71 +2783,71 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2769
2783
  await n.getAdressStructure(), t.addSkel = o(n.state.structure.address);
2770
2784
  }), (a, i) => {
2771
2785
  const r = ae("bone");
2772
- return f(), h(E, null, [
2773
- c("div", null, [
2786
+ return m(), h(E, null, [
2787
+ d("div", null, [
2774
2788
  j(" test "),
2775
- vl,
2776
- (f(!0), h(E, null, U(t.addSkel, (d, u) => (f(), h(E, { key: u }, [
2789
+ yl,
2790
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2777
2791
  j(B(u) + " ", 1),
2778
- d.visible && d.params.group === "Customer Info" ? (f(), T(r, {
2792
+ c.visible && c.params.group === "Customer Info" ? (m(), T(r, {
2779
2793
  key: 0,
2780
- is: K(X)(d.type),
2794
+ is: K(X)(c.type),
2781
2795
  name: u,
2782
2796
  structure: o(t.addSkel),
2783
2797
  errors: t.errors[u] ? t.errors[u] : [],
2784
2798
  skel: t.formValues,
2785
- onChange: (m) => s(u, m),
2799
+ onChange: (f) => s(u, f),
2786
2800
  class: "viur-shop-form-grid-w-2"
2787
2801
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2788
2802
  ], 64))), 128))
2789
2803
  ]),
2790
- c("div", null, [
2791
- pl,
2792
- (f(!0), h(E, null, U(t.addSkel, (d, u) => (f(), h(E, { key: u }, [
2793
- d.visible && d.params.group === "Customer Address" ? (f(), T(r, {
2804
+ d("div", null, [
2805
+ $l,
2806
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2807
+ c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
2794
2808
  key: 0,
2795
- is: K(X)(d.type),
2809
+ is: K(X)(c.type),
2796
2810
  name: u,
2797
2811
  structure: o(t.addSkel),
2798
2812
  errors: t.errors[u] ? t.errors[u] : [],
2799
2813
  skel: t.formValues,
2800
- onChange: (m) => s(u, m)
2814
+ onChange: (f) => s(u, f)
2801
2815
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2802
2816
  ], 64))), 128))
2803
2817
  ]),
2804
- t.isCustomAdress ? (f(), h("div", yl, [
2805
- $l,
2806
- (f(!0), h(E, null, U(t.addSkel, (d, u) => (f(), h(E, { key: u }, [
2807
- d.visible && d.params.group === "Customer Address" ? (f(), T(r, {
2818
+ t.isCustomAdress ? (m(), h("div", Sl, [
2819
+ kl,
2820
+ (m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
2821
+ c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
2808
2822
  key: 0,
2809
- is: K(X)(d.type),
2823
+ is: K(X)(c.type),
2810
2824
  name: u,
2811
2825
  structure: o(t.addSkel),
2812
2826
  errors: t.errors[u] ? t.errors[u] : [],
2813
2827
  skel: t.formValues,
2814
- onChange: (m) => s(u, m)
2828
+ onChange: (f) => s(u, f)
2815
2829
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2816
2830
  ], 64))), 128))
2817
2831
  ])) : _("", !0),
2818
- c("sl-checkbox", {
2832
+ d("sl-checkbox", {
2819
2833
  onSlChange: l,
2820
2834
  checked: ""
2821
2835
  }, " Rechnungsadresse wie Lieferadresse ", 32)
2822
2836
  ], 64);
2823
2837
  };
2824
2838
  }
2825
- }, kl = /* @__PURE__ */ I(Sl, [["__scopeId", "data-v-b68a2bfa"]]), ee = (e) => (M("data-v-a4accf28"), e = e(), z(), e), _l = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), wl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), El = ["onSlChange", "onSlClear", "label"], Al = ["value"], Il = { key: 0 }, Cl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Ol = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("sl-icon", {
2839
+ }, wl = /* @__PURE__ */ I(_l, [["__scopeId", "data-v-b68a2bfa"]]), ee = (e) => (M("data-v-a4accf28"), e = e(), q(), 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", {
2826
2840
  name: "x-lg",
2827
2841
  slot: "prefix"
2828
- }, null, -1)), jl = [
2829
- Ol
2830
- ], Bl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("sl-icon", {
2842
+ }, null, -1)), Dl = [
2843
+ Bl
2844
+ ], Vl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
2831
2845
  name: "plus-lg",
2832
2846
  slot: "prefix"
2833
- }, null, -1)), Dl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("sl-icon", {
2847
+ }, null, -1)), Nl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
2834
2848
  slot: "icon",
2835
2849
  name: "exclamation-triangle"
2836
- }, null, -1)), Vl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("br", null, null, -1)), Nl = {
2850
+ }, null, -1)), Rl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("br", null, null, -1)), Ll = {
2837
2851
  __name: "UserInfoMulti",
2838
2852
  props: {
2839
2853
  mode: { type: String, default: "form" }
@@ -2858,7 +2872,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2858
2872
  errors: {},
2859
2873
  selectedItem: {},
2860
2874
  isInit: S(() => !!n.state.carts[n.state.basket])
2861
- }), l = q(null), s = q(null);
2875
+ }), l = z(null), s = z(null);
2862
2876
  function o(p) {
2863
2877
  p.target.checked && (t.isCustomAdress = !1), p.target.checked || (t.isCustomAdress = !0);
2864
2878
  }
@@ -2880,7 +2894,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2880
2894
  }
2881
2895
  t.shippingAdressAmount -= 1;
2882
2896
  }
2883
- function d(p, v) {
2897
+ function c(p, v) {
2884
2898
  if (console.log(p.target.value), !p.target.value.length) {
2885
2899
  u();
2886
2900
  return;
@@ -2890,7 +2904,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2890
2904
  function u(p, v) {
2891
2905
  console.log("clearing..."), delete t.selectedItem[v], t.isItemSelected = !1;
2892
2906
  }
2893
- function m(p) {
2907
+ function f(p) {
2894
2908
  let v = {};
2895
2909
  return Array.isArray(p) ? (p.forEach((k) => {
2896
2910
  let g = k[0], b = k[1];
@@ -2902,18 +2916,18 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2902
2916
  k === "" && delete t.formValues[v];
2903
2917
  });
2904
2918
  }), x(async () => {
2905
- await n.getAdressStructure(), t.addSkel = m(n.state.structure.address);
2919
+ await n.getAdressStructure(), t.addSkel = f(n.state.structure.address);
2906
2920
  }), (p, v) => {
2907
2921
  const k = ae("bone");
2908
- return f(), h(E, null, [
2909
- c("div", null, [
2910
- _l,
2911
- (f(!0), h(E, null, U(t.addSkel, (g, b) => (f(), h(E, { key: b }, [
2912
- g.visible && g.params.group === "Customer Info" ? (f(), T(k, {
2922
+ return m(), h(E, null, [
2923
+ d("div", null, [
2924
+ El,
2925
+ (m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
2926
+ g.visible && g.params.group === "Customer Info" ? (m(), T(k, {
2913
2927
  key: 0,
2914
2928
  is: K(X)(g.type),
2915
2929
  name: b,
2916
- structure: m(t.addSkel),
2930
+ structure: f(t.addSkel),
2917
2931
  errors: t.errors[b] ? t.errors[b] : [],
2918
2932
  skel: t.formValues,
2919
2933
  onChange: (y) => i(b, y),
@@ -2921,81 +2935,81 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
2921
2935
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2922
2936
  ], 64))), 128))
2923
2937
  ]),
2924
- wl,
2925
- (f(!0), h(E, null, U(t.shippingAdressAmount, (g) => (f(), h("div", { key: g }, [
2926
- c("sl-select", {
2938
+ Al,
2939
+ (m(!0), h(E, null, U(t.shippingAdressAmount, (g) => (m(), h("div", { key: g }, [
2940
+ d("sl-select", {
2927
2941
  clearable: "",
2928
2942
  ref_for: !0,
2929
2943
  ref_key: "itemSelection",
2930
2944
  ref: l,
2931
- onSlChange: (b) => d(b, g),
2945
+ onSlChange: (b) => c(b, g),
2932
2946
  onSlClear: (b) => u(b, g),
2933
2947
  label: t.selectedItem[g] ? K(n).state.carts[t.selectedItem[g]].info.name : "Warenkorb für Adresse wählen.",
2934
2948
  class: "grid-w-4"
2935
2949
  }, [
2936
- (f(!0), h(E, null, U(K(n).state.carts, (b, y) => (f(), h("sl-option", { value: y }, B(b.info.name), 9, Al))), 256))
2937
- ], 40, El),
2938
- (f(!0), h(E, null, U(t.addSkel, (b, y) => (f(), h(E, { key: y }, [
2939
- b.visible && b.params.group === "Customer Address" ? (f(), T(k, {
2950
+ (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))
2951
+ ], 40, Il),
2952
+ (m(!0), h(E, null, U(t.addSkel, (b, y) => (m(), h(E, { key: y }, [
2953
+ b.visible && b.params.group === "Customer Address" ? (m(), T(k, {
2940
2954
  key: 0,
2941
2955
  is: K(X)(b.type),
2942
2956
  name: y,
2943
- structure: m(t.addSkel),
2957
+ structure: f(t.addSkel),
2944
2958
  errors: t.errors[y] ? t.errors[y] : [],
2945
2959
  skel: t.formValues,
2946
2960
  onChange: ($) => i(y, $)
2947
2961
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2948
2962
  ], 64))), 128))
2949
2963
  ]))), 128)),
2950
- t.isCustomAdress ? (f(), h("div", Il, [
2951
- Cl,
2952
- (f(!0), h(E, null, U(t.addSkel, (g, b) => (f(), h(E, { key: b }, [
2953
- g.visible && g.params.group === "Customer Address" ? (f(), T(k, {
2964
+ t.isCustomAdress ? (m(), h("div", Ol, [
2965
+ jl,
2966
+ (m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
2967
+ g.visible && g.params.group === "Customer Address" ? (m(), T(k, {
2954
2968
  key: 0,
2955
2969
  is: K(X)(g.type),
2956
2970
  name: b,
2957
- structure: m(t.addSkel),
2971
+ structure: f(t.addSkel),
2958
2972
  errors: t.errors[b] ? t.errors[b] : [],
2959
2973
  skel: t.formValues,
2960
2974
  onChange: (y) => i(b, y)
2961
2975
  }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
2962
2976
  ], 64))), 128))
2963
2977
  ])) : _("", !0),
2964
- c("div", { class: "viur-shop-form-btn-wrap" }, [
2965
- c("sl-button", {
2978
+ d("div", { class: "viur-shop-form-btn-wrap" }, [
2979
+ d("sl-button", {
2966
2980
  size: "medium",
2967
2981
  onClick: r,
2968
2982
  title: "Lieferadresse entfernen"
2969
- }, jl),
2970
- c("sl-button", {
2983
+ }, Dl),
2984
+ d("sl-button", {
2971
2985
  size: "medium",
2972
2986
  variant: "primary",
2973
2987
  onClick: a
2974
2988
  }, [
2975
- Bl,
2989
+ Vl,
2976
2990
  j(" Lieferadresse hinzufügen ")
2977
2991
  ])
2978
2992
  ]),
2979
- c("sl-alert", {
2993
+ d("sl-alert", {
2980
2994
  variant: "warning",
2981
2995
  duration: "2000",
2982
2996
  ref_key: "shippingWarning",
2983
2997
  ref: s,
2984
2998
  closable: ""
2985
2999
  }, [
2986
- Dl,
2987
- c("strong", null, B(t.amountAlert.title), 1),
2988
- Vl,
3000
+ Nl,
3001
+ d("strong", null, B(t.amountAlert.title), 1),
3002
+ Rl,
2989
3003
  j(" " + B(t.amountAlert.msg), 1)
2990
3004
  ], 512),
2991
- c("sl-checkbox", {
3005
+ d("sl-checkbox", {
2992
3006
  onSlChange: o,
2993
3007
  checked: ""
2994
3008
  }, " Rechnungsadresse wie Lieferadresse ", 32)
2995
3009
  ], 64);
2996
3010
  };
2997
3011
  }
2998
- }, Rl = /* @__PURE__ */ I(Nl, [["__scopeId", "data-v-a4accf28"]]), Xe = {
3012
+ }, Ul = /* @__PURE__ */ I(Ll, [["__scopeId", "data-v-a4accf28"]]), Xe = {
2999
3013
  __name: "ExampleUsage",
3000
3014
  setup(e) {
3001
3015
  const n = re(), t = S(
@@ -3044,7 +3058,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
3044
3058
  // atHide: null,
3045
3059
  // },
3046
3060
  orderComplete: {
3047
- component: H(bl),
3061
+ component: H(pl),
3048
3062
  props: {},
3049
3063
  displayName: "Bestellung Abgeschlossen",
3050
3064
  icon: { name: "order-confirmed", library: "hsk" },
@@ -3054,7 +3068,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
3054
3068
  atHide: null
3055
3069
  },
3056
3070
  userInfo: {
3057
- component: H(kl),
3071
+ component: H(wl),
3058
3072
  props: {},
3059
3073
  displayName: "Daten Eingeben",
3060
3074
  icon: { name: "user", library: "hsk" },
@@ -3064,7 +3078,7 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
3064
3078
  atHide: null
3065
3079
  },
3066
3080
  userInfoMulti: {
3067
- component: H(Rl),
3081
+ component: H(Ul),
3068
3082
  props: {},
3069
3083
  displayName: "Daten Eingeben (Multi)",
3070
3084
  icon: { name: "user", library: "hsk" },
@@ -3080,76 +3094,76 @@ const bl = /* @__PURE__ */ I(il, [["render", hl], ["__scopeId", "data-v-36ccc280
3080
3094
  }
3081
3095
  return x(async () => {
3082
3096
  await n.init(), await n.getAdressStructure(), console.log("debug init exampleusage :", n.state.basketRootNode);
3083
- }), (o, a) => (f(), T(ol, {
3097
+ }), (o, a) => (m(), T(ul, {
3084
3098
  tabs: l.tabs,
3085
3099
  onTabChange: s
3086
3100
  }, null, 8, ["tabs"]));
3087
3101
  }
3088
- }, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3102
+ }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3089
3103
  __proto__: null,
3090
3104
  default: Xe
3091
- }, Symbol.toStringTag, { value: "Module" })), Ul = D({
3105
+ }, Symbol.toStringTag, { value: "Module" })), Pl = D({
3092
3106
  props: {},
3093
3107
  components: {},
3094
3108
  setup(e, n) {
3095
3109
  const t = ht();
3096
3110
  return { state: w({}), route: t };
3097
3111
  }
3098
- }), Tl = { class: "home" };
3099
- function Pl(e, n, t, l, s, o) {
3100
- return f(), h("div", Tl, "View " + B(e.route.path) + " is missing.", 1);
3112
+ }), Ml = { class: "home" };
3113
+ function Wl(e, n, t, l, s, o) {
3114
+ return m(), h("div", Ml, "View " + B(e.route.path) + " is missing.", 1);
3101
3115
  }
3102
- const Ml = /* @__PURE__ */ I(Ul, [["render", Pl]]), Wl = [
3116
+ const ql = /* @__PURE__ */ I(Pl, [["render", Wl]]), zl = [
3103
3117
  {
3104
3118
  path: "/:pathMatch(.*)*",
3105
3119
  name: "view_missing",
3106
- component: Ml
3120
+ component: ql
3107
3121
  },
3108
3122
  {
3109
3123
  path: "/shop/category/:identifier",
3110
3124
  name: "CategoryView",
3111
- component: () => import("./CategoryView-DLR9I242.mjs")
3125
+ component: () => import("./CategoryView-BDsw60Bb.mjs")
3112
3126
  },
3113
3127
  {
3114
3128
  path: "/shop/item/:item",
3115
3129
  name: "itemView",
3116
- component: () => import("./ItemView-DRYuO8SK.mjs")
3130
+ component: () => import("./ItemView-Dxwh9gVC.mjs")
3117
3131
  },
3118
3132
  {
3119
3133
  path: "/shop/cart/view",
3120
3134
  name: "CartView",
3121
- component: () => Promise.resolve().then(() => Rs)
3135
+ component: () => Promise.resolve().then(() => Us)
3122
3136
  },
3123
3137
  {
3124
3138
  path: "/shop/order/",
3125
3139
  name: "OrderView",
3126
- component: () => Promise.resolve().then(() => Ll)
3140
+ component: () => Promise.resolve().then(() => Tl)
3127
3141
  },
3128
3142
  {
3129
3143
  path: "/shop/order/confirm",
3130
3144
  name: "ConfirmView",
3131
- component: () => Promise.resolve().then(() => Zs)
3145
+ component: () => Promise.resolve().then(() => Qs)
3132
3146
  }
3133
3147
  ];
3134
- function Zl(e, n = !1) {
3148
+ function Ql(e, n = !1) {
3135
3149
  let t = [];
3136
- return n ? t = e : t = e.concat(Wl), bt({
3150
+ return n ? t = e : t = e.concat(zl), bt({
3137
3151
  // @ts-ignore
3138
3152
  history: vt("/"),
3139
3153
  routes: t
3140
3154
  });
3141
3155
  }
3142
- const Jl = {
3156
+ const Yl = {
3143
3157
  install(e) {
3144
3158
  e.component("CartView", _e), e.component("ExampleUsage", Xe), e.component("ConfirmView", we);
3145
3159
  }
3146
3160
  };
3147
3161
  export {
3148
3162
  _e as C,
3149
- Jl as V,
3163
+ Yl as V,
3150
3164
  I as _,
3151
3165
  Xe as a,
3152
3166
  we as b,
3153
- Zl as c,
3167
+ Ql as c,
3154
3168
  re as u
3155
3169
  };