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

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