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

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