@viur/shop-components 0.0.1-dev.53 → 0.0.1-dev.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CategoryView-D40Pme0H.mjs → CategoryView-DLR9I242.mjs} +2 -2
- package/dist/{ItemCard-DKmHMm4I.mjs → ItemCard-BFSQY8Iy.mjs} +1 -1
- package/dist/{ItemView-Cd0jw_X3.mjs → ItemView-DRYuO8SK.mjs} +2 -2
- package/dist/{main-W6SHdPim.mjs → main-Q-Hz121l.mjs} +455 -467
- package/dist/main.css +1 -1
- package/dist/viur-shop-components.es.js +1 -1
- package/dist/viur-shop-components.umd.js +20 -20
- package/package.json +1 -1
|
@@ -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
|
|
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";
|
|
5
5
|
import { defineStore as ye } from "pinia";
|
|
6
|
-
import { Request as
|
|
6
|
+
import { Request as ft } 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__ */
|
|
31
|
+
}, Ge = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Ge(() => /* @__PURE__ */ c("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__ */
|
|
36
|
+
], _t = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */ Ge(() => /* @__PURE__ */ c("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
|
|
43
|
+
return f(), 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
|
-
|
|
55
|
+
c("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
|
-
|
|
60
|
+
c("div", _t, [
|
|
61
61
|
He(e.$slots, "default", {}, void 0, !0)
|
|
62
62
|
]),
|
|
63
|
-
|
|
63
|
+
c("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
|
|
96
|
-
|
|
95
|
+
return f(), h(E, null, [
|
|
96
|
+
c("label", jt, [
|
|
97
97
|
He(e.$slots, "default", {}, void 0, !0),
|
|
98
98
|
_("", !0)
|
|
99
99
|
]),
|
|
100
|
-
e.state.debug ? (
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
e.state.debug ? (f(), h("div", Bt, [
|
|
101
|
+
c("div", Dt, B(e.name), 1),
|
|
102
|
+
c("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" ? (
|
|
133
|
+
return e.boneState.bonestructure.type === "raw.json" ? (f(), 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)) : (
|
|
138
|
+
}, null, 40, Lt)) : (f(), 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
|
|
171
|
+
return f(), 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(...
|
|
197
|
+
function r(...d) {
|
|
198
198
|
a(), s.value = !0, o = setTimeout(() => {
|
|
199
|
-
s.value = !1, o = null, e(...
|
|
199
|
+
s.value = !1, o = null, e(...d);
|
|
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 = [],
|
|
224
|
+
let i = [], r = [], d = /\$\((.*?)\)/g;
|
|
225
225
|
for (; r; ) {
|
|
226
|
-
if (r =
|
|
226
|
+
if (r = d.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
|
|
240
|
-
for (let
|
|
241
|
-
u && u !== "-" &&
|
|
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 = "-";
|
|
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
|
|
286
|
+
return f(), 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
|
|
329
|
+
return f(), 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
|
|
372
|
+
return f(), 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
|
|
422
|
+
return f(), 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
|
-
(
|
|
431
|
+
(f(!0), h(E, null, U(e.convertObjToList(), (a) => (f(), 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
|
|
465
|
+
return f(), 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"],
|
|
521
|
+
}), dn = ["disabled"], cn = ["name"], mn = ["name"], fn = { class: "errors" };
|
|
522
522
|
function gn(e, n, t, l, s, o) {
|
|
523
|
-
return
|
|
524
|
-
Z(
|
|
523
|
+
return f(), h(E, null, [
|
|
524
|
+
Z(c("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
|
-
|
|
536
|
+
c("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((
|
|
543
|
+
e.boneState.readonly ? _("", !0) : Z((f(), 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
|
-
|
|
554
|
+
c("sl-icon", {
|
|
555
555
|
slot: "suffix",
|
|
556
556
|
name: e.state.equal && e.state.value1.length ? "check" : "x"
|
|
557
|
-
}, null, 8,
|
|
557
|
+
}, null, 8, mn)
|
|
558
558
|
], 544)), [
|
|
559
559
|
[se, e.state.value2]
|
|
560
560
|
]),
|
|
561
|
-
|
|
562
|
-
(
|
|
563
|
-
(
|
|
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", {
|
|
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
|
|
586
|
+
var d, u;
|
|
587
587
|
let i = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } };
|
|
588
|
-
for (const [
|
|
589
|
-
let v = "default", k = l.structure[
|
|
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];
|
|
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:
|
|
591
|
+
boneName: m,
|
|
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:
|
|
598
|
+
boneName: m,
|
|
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(
|
|
607
|
-
r[
|
|
606
|
+
return Object.keys(i).sort().forEach(function(m) {
|
|
607
|
+
r[m] = i[m];
|
|
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
|
|
624
|
-
r[i[
|
|
623
|
+
for (const d in i)
|
|
624
|
+
r[i[d][0]] = i[d][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 ? (
|
|
649
|
-
(
|
|
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", {
|
|
650
650
|
key: r,
|
|
651
651
|
summary: i.name,
|
|
652
652
|
open: i.groupOpen
|
|
653
653
|
}, [
|
|
654
|
-
(
|
|
655
|
-
key:
|
|
656
|
-
is: e.getBoneWidget(e.state.structure[
|
|
657
|
-
name:
|
|
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,
|
|
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[
|
|
664
|
+
[be, e.state.structure[d.boneName].visible]
|
|
665
665
|
])), 128))
|
|
666
666
|
], 8, pn)), [
|
|
667
667
|
[be, i.groupVisible]
|
|
668
668
|
])), 128))
|
|
669
|
-
])) : (
|
|
669
|
+
])) : (f(), 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
|
|
704
|
+
return f(), 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
|
|
737
|
+
return f(), 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
|
|
785
|
-
|
|
784
|
+
return f(), h(E, null, [
|
|
785
|
+
c("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
|
-
|
|
797
|
-
e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (
|
|
798
|
-
e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (
|
|
799
|
-
e.state.precision ? (
|
|
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)
|
|
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
|
|
836
|
-
if (Array.isArray(t[
|
|
837
|
-
for (let p of t[
|
|
838
|
-
u.append(
|
|
835
|
+
for (const m in t)
|
|
836
|
+
if (Array.isArray(t[m]))
|
|
837
|
+
for (let p of t[m])
|
|
838
|
+
u.append(m, p);
|
|
839
839
|
else
|
|
840
|
-
u.append(
|
|
840
|
+
u.append(m, t[m]);
|
|
841
841
|
return u;
|
|
842
842
|
}
|
|
843
|
-
let
|
|
844
|
-
return
|
|
843
|
+
let d = le.post(O.buildUrl(n), r(), null, a, o, i);
|
|
844
|
+
return d.then(function(u) {
|
|
845
845
|
l && l(u.data);
|
|
846
846
|
}).catch(function(u) {
|
|
847
847
|
s && s(u);
|
|
848
|
-
}),
|
|
848
|
+
}), d;
|
|
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:
|
|
866
|
+
amount: d = 30
|
|
867
867
|
} = {}) {
|
|
868
868
|
let u = null;
|
|
869
|
-
Y().state.sKeys.size === 0 && await O.getBatchSkeys(
|
|
870
|
-
const
|
|
871
|
-
return t instanceof FormData ? (t.append("skey",
|
|
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, {
|
|
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:
|
|
887
|
+
mode: d = null,
|
|
888
888
|
// milli sec min Std Tage
|
|
889
889
|
cacheTime: u = 1e3 * 60 * 60 * 24 * 1
|
|
890
890
|
} = {}) {
|
|
891
|
-
let
|
|
892
|
-
return
|
|
891
|
+
let m = le.get(O.buildUrl(n), t, a, r, i, d);
|
|
892
|
+
return m.then(function(p) {
|
|
893
893
|
l && l(p.data);
|
|
894
894
|
}).catch(function(p) {
|
|
895
895
|
s && s(p);
|
|
896
|
-
}),
|
|
896
|
+
}), m;
|
|
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
|
|
940
|
-
return a && (
|
|
939
|
+
let d = `/${r}/${n}/view/${t}`;
|
|
940
|
+
return a && (d = `/${r}/${n}/view/${a}/${t}`), O.get(d, {
|
|
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
|
|
972
|
-
return a && (
|
|
971
|
+
let d = `/${r}/${n}/edit/${t}`;
|
|
972
|
+
return a && (d = `/${r}/${n}/edit/${a}/${t}`), O.securePost(d, {
|
|
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
|
|
988
|
-
return a && (
|
|
987
|
+
let d = `/${r}/${n}/delete/${t}`;
|
|
988
|
+
return a && (d = `/${r}/${n}/delete/${a}/${t}`), O.securePost(d, {
|
|
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
|
|
1014
|
+
const d = {
|
|
1015
1015
|
key: i.values.uploadKey,
|
|
1016
1016
|
skelType: "leaf"
|
|
1017
1017
|
};
|
|
1018
|
-
O.securePost("/vi/file/add", { dataObj:
|
|
1019
|
-
let
|
|
1020
|
-
|
|
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);
|
|
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,
|
|
1044
|
+
function i(r, d) {
|
|
1045
1045
|
let u = new URL(r);
|
|
1046
|
-
if (
|
|
1047
|
-
const
|
|
1048
|
-
for (const [p, v] of Object.entries(
|
|
1046
|
+
if (d && Object.keys(d).length > 0) {
|
|
1047
|
+
const m = new URLSearchParams();
|
|
1048
|
+
for (const [p, v] of Object.entries(d))
|
|
1049
1049
|
if (Array.isArray(v))
|
|
1050
1050
|
for (const k of v)
|
|
1051
|
-
|
|
1051
|
+
m.append(p, k);
|
|
1052
1052
|
else
|
|
1053
|
-
|
|
1054
|
-
u.search =
|
|
1053
|
+
m.append(p, v);
|
|
1054
|
+
u.search = m.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
|
|
1063
|
-
return Promise.reject(new ie(r.status, r.statusText,
|
|
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));
|
|
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
|
|
1075
|
-
return Promise.reject(new ie(r.statusCode, r.statusText,
|
|
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));
|
|
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
|
|
1101
|
-
return t.bonestructure.type === "relational.tree.leaf.file" ?
|
|
1102
|
-
`/${Dn.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${
|
|
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`
|
|
1103
1103
|
).then(async (u) => {
|
|
1104
1104
|
var p;
|
|
1105
|
-
const
|
|
1105
|
+
const m = await u.json();
|
|
1106
1106
|
s.skellistdata = {};
|
|
1107
|
-
for (let v of
|
|
1107
|
+
for (let v of m.skellist)
|
|
1108
1108
|
s.skellistdata[v.key] = v;
|
|
1109
|
-
return (p =
|
|
1109
|
+
return (p = m.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
|
|
1119
|
-
r.lang ? (
|
|
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);
|
|
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__ */
|
|
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", {
|
|
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
|
|
1142
|
-
|
|
1143
|
-
e.state.selection ? (
|
|
1141
|
+
return f(), h("div", Rn, [
|
|
1142
|
+
c("div", Ln, [
|
|
1143
|
+
e.state.selection ? (f(), 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)) : (
|
|
1147
|
+
}, null, 8, Un)) : (f(), 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] = (...
|
|
1152
|
+
onSlItemSelect: n[0] || (n[0] = (...d) => e.changeEvent && e.changeEvent(...d))
|
|
1153
1153
|
}, null, 40, Tn)),
|
|
1154
|
-
!e.boneState.multiple && !e.boneState.isEmpty ? (
|
|
1154
|
+
!e.boneState.multiple && !e.boneState.isEmpty ? (f(), 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 ? (
|
|
1165
|
+
(i = e.boneState) != null && i.bonestructure.using ? (f(), 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
|
|
1202
|
+
return f(), 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
|
|
1232
|
+
const m = {
|
|
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:
|
|
1238
|
+
O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: m }).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
|
|
1267
|
-
let p = await i(
|
|
1266
|
+
for (let m of u.target.files) {
|
|
1267
|
+
let p = await i(m);
|
|
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
|
|
1272
|
+
async function d(u) {
|
|
1273
1273
|
s.loading = !0, s.droparea = !1;
|
|
1274
|
-
for (let
|
|
1275
|
-
let p = await i(
|
|
1274
|
+
for (let m of u.dataTransfer.files) {
|
|
1275
|
+
let p = await i(m);
|
|
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:
|
|
1288
|
+
handleDrop: d
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
}),
|
|
1291
|
+
}), me = (e) => (M("data-v-91086308"), e = e(), z(), e), Zn = {
|
|
1292
1292
|
key: 0,
|
|
1293
1293
|
class: "loader"
|
|
1294
|
-
}, Jn = /* @__PURE__ */
|
|
1294
|
+
}, Jn = /* @__PURE__ */ me(() => /* @__PURE__ */ c("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__ */
|
|
1299
|
+
}, Xn = ["title"], xn = /* @__PURE__ */ me(() => /* @__PURE__ */ c("sl-icon", { name: "upload" }, null, -1)), ea = [
|
|
1300
1300
|
xn
|
|
1301
|
-
], ta = ["multiple"], na = ["title"], aa = /* @__PURE__ */
|
|
1301
|
+
], ta = ["multiple"], na = ["title"], aa = /* @__PURE__ */ me(() => /* @__PURE__ */ c("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 },
|
|
1313
|
-
|
|
1312
|
+
}, ca = { key: 2 }, ma = ["title"], fa = /* @__PURE__ */ me(() => /* @__PURE__ */ c("sl-icon", { name: "x-lg" }, null, -1)), ga = [
|
|
1313
|
+
fa
|
|
1314
1314
|
];
|
|
1315
1315
|
function ha(e, n, t, l, s, o) {
|
|
1316
|
-
var a, i, r,
|
|
1317
|
-
return
|
|
1316
|
+
var a, i, r, d, u, m, p, v, k, g;
|
|
1317
|
+
return f(), 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 ? (
|
|
1324
|
-
e.state.droparea ? (
|
|
1325
|
-
!e.boneState.readonly && (!e.value || e.state.loading) ? (
|
|
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", {
|
|
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
|
-
|
|
1332
|
+
c("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 ? (
|
|
1339
|
+
e.value ? (f(), 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
|
-
|
|
1345
|
-
(i = (a = e.value) == null ? void 0 : a.dest) != null && i.mimetype.includes("image") ? (
|
|
1344
|
+
c("div", la, [
|
|
1345
|
+
(i = (a = e.value) == null ? void 0 : a.dest) != null && i.mimetype.includes("image") ? (f(), 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
|
-
|
|
1350
|
+
c("img", {
|
|
1351
1351
|
class: "preview-img",
|
|
1352
1352
|
src: e.createBackgroundImage(),
|
|
1353
1353
|
alt: ""
|
|
1354
1354
|
}, null, 8, ra),
|
|
1355
|
-
|
|
1356
|
-
label: decodeURIComponent((
|
|
1355
|
+
c("sl-dialog", {
|
|
1356
|
+
label: decodeURIComponent((d = (r = e.value) == null ? void 0 : r.dest) == null ? void 0 : d.name),
|
|
1357
1357
|
class: "preview-overlay",
|
|
1358
1358
|
open: e.state.previewopen
|
|
1359
1359
|
}, [
|
|
1360
|
-
|
|
1360
|
+
c("img", {
|
|
1361
1361
|
src: e.createBackgroundImage(),
|
|
1362
1362
|
alt: ""
|
|
1363
1363
|
}, null, 8, ia)
|
|
1364
1364
|
], 8, oa)
|
|
1365
|
-
])) : (
|
|
1366
|
-
(
|
|
1365
|
+
])) : (f(), h("div", ua, [
|
|
1366
|
+
(m = (u = e.value) == null ? void 0 : u.dest) != null && m.name ? (f(), h("sl-icon", da)) : _("", !0)
|
|
1367
1367
|
])),
|
|
1368
|
-
(v = (p = e.value) == null ? void 0 : p.dest) != null && v.name ? (
|
|
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)
|
|
1369
1369
|
]),
|
|
1370
|
-
e.boneState.multiple ? _("", !0) : (
|
|
1370
|
+
e.boneState.multiple ? _("", !0) : (f(), 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,
|
|
1377
|
+
}, ga, 8, ma))
|
|
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,
|
|
1426
|
+
var i, r, d, u;
|
|
1427
1427
|
const a = ae("ckeditor");
|
|
1428
|
-
return e.state.editor ? (
|
|
1429
|
-
(i = e.boneState.bonestructure) != null && i.valid_html || (r = e.boneState.bonestructure) != null && r.validHtml ? (
|
|
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, {
|
|
1430
1430
|
key: 0,
|
|
1431
1431
|
modelValue: e.state.value,
|
|
1432
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1432
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => e.state.value = m),
|
|
1433
1433
|
editor: e.state.editor,
|
|
1434
1434
|
config: e.state.editorConfig,
|
|
1435
|
-
disabled: (
|
|
1435
|
+
disabled: (d = e.boneState) == null ? void 0 : d.readonly,
|
|
1436
1436
|
onReady: e.onReady,
|
|
1437
1437
|
onInput: e.changeEvent
|
|
1438
|
-
}, null, 8, ["modelValue", "editor", "config", "disabled", "onReady", "onInput"])) : (
|
|
1438
|
+
}, null, 8, ["modelValue", "editor", "config", "disabled", "onReady", "onInput"])) : (f(), 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] = (...
|
|
1442
|
+
onInput: n[1] || (n[1] = (...m) => e.changeEventTextarea && e.changeEventTextarea(...m))
|
|
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
|
|
1479
|
-
Z(
|
|
1478
|
+
return f(), h(E, null, [
|
|
1479
|
+
Z(c("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(
|
|
1494
|
+
Z(c("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
|
|
1531
|
+
for (let d = l.counter; d--; )
|
|
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__ */
|
|
1552
|
+
}), Je = (e) => (M("data-v-63e75dee"), e = e(), z(), e), wa = { class: "actionbar" }, Ea = ["title"], Aa = /* @__PURE__ */ Je(() => /* @__PURE__ */ c("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__ */
|
|
1557
|
+
], Ca = ["title"], Oa = /* @__PURE__ */ Je(() => /* @__PURE__ */ c("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
|
|
1563
|
-
e.boneState.multiple && !e.readonly ? (
|
|
1562
|
+
return f(), h("div", wa, [
|
|
1563
|
+
e.boneState.multiple && !e.readonly ? (f(), 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 ? (
|
|
1571
|
+
e.boneState.multiple && !e.readonly ? (f(), 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 ? (
|
|
1581
|
+
e.state.counter > 1 ? (f(), 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
|
|
1607
|
-
return t.bonestructure.type === "relational.tree.leaf.file" ?
|
|
1608
|
-
`/${Da.VITE_DEFAULT_RENDERER || "vi"}/${t.bonestructure.module}/list?${
|
|
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`
|
|
1609
1609
|
).then(async (u) => {
|
|
1610
1610
|
var p;
|
|
1611
|
-
const
|
|
1612
|
-
return a.skels =
|
|
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 }));
|
|
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__ */
|
|
1625
|
+
}), Qe = (e) => (M("data-v-eeea51c6"), e = e(), z(), e), Na = { class: "actionbar" }, Ra = ["title"], La = /* @__PURE__ */ Qe(() => /* @__PURE__ */ c("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__ */
|
|
1630
|
+
], Ta = ["source"], Pa = ["title"], Ma = /* @__PURE__ */ Qe(() => /* @__PURE__ */ c("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
|
|
1636
|
-
e.boneState.multiple && !e.readonly ? (
|
|
1635
|
+
return f(), h("div", Na, [
|
|
1636
|
+
e.boneState.multiple && !e.readonly ? (f(), 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
|
-
|
|
1644
|
+
c("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 ? (
|
|
1655
|
+
e.boneState.multiple && !e.readonly ? (f(), 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
|
|
1692
|
+
const m = {
|
|
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:
|
|
1698
|
+
O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: m }).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
|
|
1727
|
-
let p = await i(
|
|
1726
|
+
for (let m of u.target.files) {
|
|
1727
|
+
let p = await i(m);
|
|
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
|
|
1734
|
+
async function d(u) {
|
|
1735
1735
|
a.loading = !0, a.droparea = !1;
|
|
1736
|
-
for (let
|
|
1737
|
-
let p = await i(
|
|
1736
|
+
for (let m of u.dataTransfer.files) {
|
|
1737
|
+
let p = await i(m);
|
|
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:
|
|
1754
|
+
handleDrop: d
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
|
-
}), $e = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), Fa = ["title"], Ka = /* @__PURE__ */ $e(() => /* @__PURE__ */
|
|
1757
|
+
}), $e = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), Fa = ["title"], Ka = /* @__PURE__ */ $e(() => /* @__PURE__ */ c("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__ */
|
|
1765
|
+
}, Za = ["multiple"], Ja = ["title"], Qa = /* @__PURE__ */ $e(() => /* @__PURE__ */ c("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__ */
|
|
1770
|
+
], Xa = ["title"], xa = /* @__PURE__ */ $e(() => /* @__PURE__ */ c("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
|
|
1775
|
+
return f(), 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 ? (
|
|
1781
|
+
e.boneState.multiple && !e.readonly ? (f(), 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 ? (
|
|
1790
|
-
|
|
1789
|
+
e.state.droparea ? (f(), h("div", Ga, " Dateien hier hinziehen ")) : _("", !0),
|
|
1790
|
+
c("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 ? (
|
|
1797
|
+
e.boneState.multiple && !e.readonly ? (f(), 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 ? (
|
|
1804
|
+
e.boneState.multiple && !e.readonly ? (f(), 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 ? (
|
|
1814
|
+
e.state.loading ? (f(), 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
|
-
(
|
|
1859
|
+
(d) => d[0].startsWith(i[0] + ".")
|
|
1860
1860
|
);
|
|
1861
1861
|
if (r.length > 0) {
|
|
1862
|
-
r.sort((
|
|
1863
|
-
for (let
|
|
1864
|
-
if (a.startsWith(
|
|
1865
|
-
return e.additionalBones[
|
|
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]];
|
|
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
|
-
(
|
|
1878
|
+
(d) => d[0].startsWith(i[0] + ".")
|
|
1879
1879
|
);
|
|
1880
1880
|
if (r.length > 0) {
|
|
1881
|
-
r.sort((
|
|
1882
|
-
for (let
|
|
1883
|
-
if (a.startsWith(
|
|
1884
|
-
return e.actionbars[
|
|
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]];
|
|
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:
|
|
2032
|
+
value: d(),
|
|
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:
|
|
2052
|
+
value: d(),
|
|
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
|
|
2063
|
+
function d() {
|
|
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
|
|
2089
|
+
function m(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:
|
|
2093
|
+
value: d(),
|
|
2094
2094
|
lang: b,
|
|
2095
2095
|
index: g
|
|
2096
2096
|
}), n.emit("change-internal", {
|
|
2097
2097
|
name: e.name,
|
|
2098
|
-
value:
|
|
2098
|
+
value: d(),
|
|
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:
|
|
2107
|
+
value: d(),
|
|
2108
2108
|
lang: g
|
|
2109
2109
|
}), n.emit("change-internal", {
|
|
2110
2110
|
name: e.name,
|
|
2111
|
-
value:
|
|
2111
|
+
value: d(),
|
|
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:
|
|
2178
|
+
removeMultipleEntry: m,
|
|
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__ */
|
|
2233
|
+
}, os = /* @__PURE__ */ ls(() => /* @__PURE__ */ c("sl-spinner", { class: "loader" }, null, -1)), is = { class: "logo" }, us = ["src"];
|
|
2234
2234
|
function ds(e, n, t, l, s, o) {
|
|
2235
|
-
return
|
|
2235
|
+
return f(), T(ot, null, {
|
|
2236
2236
|
default: it(() => [
|
|
2237
|
-
t.active ? (
|
|
2237
|
+
t.active ? (f(), h("div", rs, [
|
|
2238
2238
|
os,
|
|
2239
|
-
|
|
2240
|
-
|
|
2239
|
+
c("div", is, [
|
|
2240
|
+
c("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((
|
|
2264
|
-
|
|
2263
|
+
(await e.cart_list()).forEach((m) => {
|
|
2264
|
+
m.is_root_node && (m.cart_type === "basket" ? n.basketRootNode = m : n.whishlistRootNodes.push(m));
|
|
2265
2265
|
});
|
|
2266
2266
|
}
|
|
2267
|
-
async function o(u,
|
|
2267
|
+
async function o(u, m) {
|
|
2268
2268
|
let p = await e.article_add({
|
|
2269
2269
|
article_key: u,
|
|
2270
|
-
parent_cart_key:
|
|
2270
|
+
parent_cart_key: m
|
|
2271
2271
|
});
|
|
2272
2272
|
console.log("addToCart", p);
|
|
2273
2273
|
}
|
|
2274
|
-
async function a(u,
|
|
2274
|
+
async function a(u, m) {
|
|
2275
2275
|
let p = await e.article_view({
|
|
2276
2276
|
article_key: u,
|
|
2277
|
-
parent_cart_key:
|
|
2277
|
+
parent_cart_key: m
|
|
2278
2278
|
});
|
|
2279
2279
|
console.log("getArticleView", p);
|
|
2280
2280
|
}
|
|
2281
|
-
async function i(u,
|
|
2281
|
+
async function i(u, m) {
|
|
2282
2282
|
let p = await e.article_remove({
|
|
2283
2283
|
article_key: u,
|
|
2284
|
-
parent_cart_key:
|
|
2284
|
+
parent_cart_key: m
|
|
2285
2285
|
});
|
|
2286
2286
|
console.log("remove Resp", p);
|
|
2287
2287
|
}
|
|
2288
|
-
async function r(u,
|
|
2288
|
+
async function r(u, m, p) {
|
|
2289
2289
|
let v = await e.article_update({
|
|
2290
2290
|
article_key: u,
|
|
2291
|
-
parent_cart_key:
|
|
2291
|
+
parent_cart_key: m,
|
|
2292
2292
|
quantity: p,
|
|
2293
2293
|
quantity_mode: "replace"
|
|
2294
2294
|
});
|
|
2295
2295
|
console.log("update Resp", v);
|
|
2296
2296
|
}
|
|
2297
|
-
async function
|
|
2297
|
+
async function d() {
|
|
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:
|
|
2308
|
+
getAdressStructure: d,
|
|
2309
2309
|
getChildren: l
|
|
2310
2310
|
};
|
|
2311
|
-
}),
|
|
2311
|
+
}), ms = {
|
|
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) => (
|
|
2317
|
+
return w({}), (n, t) => (f(), h("pre", null, B(e.node.name), 1));
|
|
2318
2318
|
}
|
|
2319
|
-
},
|
|
2319
|
+
}, fe = (e) => (M("data-v-1150a917"), e = e(), z(), e), fs = {
|
|
2320
2320
|
horizontal: "",
|
|
2321
2321
|
class: "viur-shop-cart-leaf"
|
|
2322
|
-
}, gs = ["src"], hs = { class: "viur-shop-cart-leaf-headline headline" }, bs = { class: "viur-shop-cart-leaf-artno" }, vs = ["innerHTML"], ps = { class: "viur-shop-cart-leaf-actions" }, ys = /* @__PURE__ */
|
|
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", {
|
|
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__ */
|
|
2329
|
+
/* @__PURE__ */ c("sl-icon", {
|
|
2330
2330
|
name: "heart",
|
|
2331
2331
|
slot: "prefix"
|
|
2332
2332
|
})
|
|
2333
|
-
], -1)), $s = /* @__PURE__ */
|
|
2333
|
+
], -1)), $s = /* @__PURE__ */ fe(() => /* @__PURE__ */ c("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__ */
|
|
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 = {
|
|
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 ?
|
|
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";
|
|
2351
2351
|
}
|
|
2352
|
-
function a(r,
|
|
2352
|
+
function a(r, d, u, m) {
|
|
2353
2353
|
l("updateItem", {
|
|
2354
2354
|
item: r,
|
|
2355
|
-
articleKey:
|
|
2355
|
+
articleKey: d,
|
|
2356
2356
|
node: u,
|
|
2357
|
-
quantity:
|
|
2357
|
+
quantity: m
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
|
-
function i(r,
|
|
2361
|
-
l("removeItem", { item: r, articleKey:
|
|
2360
|
+
function i(r, d, u) {
|
|
2361
|
+
l("removeItem", { item: r, articleKey: d, node: u });
|
|
2362
2362
|
}
|
|
2363
2363
|
return x(() => {
|
|
2364
2364
|
s.leaf = t.leaf;
|
|
2365
|
-
}), (r,
|
|
2366
|
-
|
|
2365
|
+
}), (r, d) => (f(), h("sl-card", fs, [
|
|
2366
|
+
c("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
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
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", {
|
|
2374
2374
|
class: "viur-shop-cart-leaf-description",
|
|
2375
2375
|
innerHTML: s.leaf.shop_description
|
|
2376
2376
|
}, null, 8, vs),
|
|
2377
|
-
|
|
2377
|
+
c("div", ps, [
|
|
2378
2378
|
ys,
|
|
2379
|
-
|
|
2379
|
+
c("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:
|
|
2385
|
+
onClick: d[0] || (d[0] = (u) => i(s.leaf, s.leaf.article.dest.key, e.node))
|
|
2386
2386
|
}, Ss)
|
|
2387
2387
|
]),
|
|
2388
|
-
|
|
2389
|
-
Z(
|
|
2388
|
+
c("div", ks, [
|
|
2389
|
+
Z(c("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":
|
|
2396
|
-
onInput:
|
|
2395
|
+
"onUpdate:modelValue": d[1] || (d[1] = (u) => s.leaf.quantity = u),
|
|
2396
|
+
onInput: d[2] || (d[2] = (u) => a(
|
|
2397
2397
|
s.leaf,
|
|
2398
2398
|
s.leaf.article.dest.key,
|
|
2399
2399
|
e.node,
|
|
@@ -2403,37 +2403,25 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2403
2403
|
[se, s.leaf.quantity]
|
|
2404
2404
|
])
|
|
2405
2405
|
]),
|
|
2406
|
-
|
|
2406
|
+
c("div", _s, [
|
|
2407
2407
|
ws,
|
|
2408
|
-
|
|
2409
|
-
class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice",
|
|
2410
|
-
lang: "de",
|
|
2411
|
-
type: "currency",
|
|
2412
|
-
currency: "EUR",
|
|
2413
|
-
value: e.leaf.price.retail
|
|
2414
|
-
}, null, 8, Es)
|
|
2408
|
+
j(" " + B(e.leaf.price.retail), 1)
|
|
2415
2409
|
]),
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
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)
|
|
2410
|
+
c("div", Es, [
|
|
2411
|
+
As,
|
|
2412
|
+
j(" " + B(e.leaf.price.retail * e.leaf.quantity), 1)
|
|
2425
2413
|
])
|
|
2426
2414
|
]));
|
|
2427
2415
|
}
|
|
2428
|
-
},
|
|
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 = {
|
|
2429
2417
|
class: "footer-wrap",
|
|
2430
2418
|
slot: "footer"
|
|
2431
|
-
},
|
|
2432
|
-
/* @__PURE__ */
|
|
2419
|
+
}, Ds = { class: "viur-shop-cart-node" }, Vs = /* @__PURE__ */ Ye(() => /* @__PURE__ */ c("div", { class: "viur-shop-cart-mobile-footer" }, [
|
|
2420
|
+
/* @__PURE__ */ c("sl-button", {
|
|
2433
2421
|
variant: "primary",
|
|
2434
2422
|
size: "medium"
|
|
2435
2423
|
}, " Jetzt Bestellen ")
|
|
2436
|
-
], -1)),
|
|
2424
|
+
], -1)), Ns = {
|
|
2437
2425
|
__name: "CartView",
|
|
2438
2426
|
props: {
|
|
2439
2427
|
mode: { type: String, default: "basket" },
|
|
@@ -2455,55 +2443,55 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2455
2443
|
s.currentItem.article.dest.key,
|
|
2456
2444
|
s.currentNode.key,
|
|
2457
2445
|
0
|
|
2458
|
-
), await
|
|
2446
|
+
), await d(), l.value.hide();
|
|
2459
2447
|
}
|
|
2460
|
-
async function a(
|
|
2461
|
-
console.log("updateItem :",
|
|
2448
|
+
async function a(m) {
|
|
2449
|
+
console.log("updateItem :", m), m.quantity === 0 ? (l.value.show(), s.currentItem = m.item, s.currentNode = m.node) : (await t.updateItem(m.articleKey, m.node.key, m.quantity), await t.init());
|
|
2462
2450
|
}
|
|
2463
|
-
function i(
|
|
2464
|
-
console.log("removeItem :",
|
|
2451
|
+
function i(m) {
|
|
2452
|
+
console.log("removeItem :", m), l.value.show(), s.currentItem = m.item, s.currentNode = m.node;
|
|
2465
2453
|
}
|
|
2466
2454
|
async function r() {
|
|
2467
|
-
s.leaves[s.currentNode.key].forEach((
|
|
2468
|
-
|
|
2455
|
+
s.leaves[s.currentNode.key].forEach((m) => {
|
|
2456
|
+
m.key === s.currentItem.key && (m.quantity = 1);
|
|
2469
2457
|
}), s.currentItem = {}, s.currentNode = {};
|
|
2470
2458
|
}
|
|
2471
|
-
async function
|
|
2459
|
+
async function d() {
|
|
2472
2460
|
s.nodes = [], s.leaves = {}, await t.init(), await u();
|
|
2473
2461
|
}
|
|
2474
|
-
async function u(
|
|
2475
|
-
console.log("debug getChildren parentKey from comp: ",
|
|
2476
|
-
const p = await t.getChildren(
|
|
2462
|
+
async function u(m = n.cartKey) {
|
|
2463
|
+
console.log("debug getChildren parentKey from comp: ", m);
|
|
2464
|
+
const p = await t.getChildren(m);
|
|
2477
2465
|
console.log("getChildren children: ", p), p.forEach(async (v) => {
|
|
2478
|
-
v.skel_type === "node" ? (s.nodes.push(v), await u(v.key)) : (Object.keys(s.leaves).includes(
|
|
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));
|
|
2479
2467
|
});
|
|
2480
2468
|
}
|
|
2481
2469
|
return x(async () => {
|
|
2482
2470
|
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);
|
|
2483
|
-
}), (
|
|
2484
|
-
|
|
2471
|
+
}), (m, p) => e.cartKey.length ? (f(), h(E, { key: 1 }, [
|
|
2472
|
+
c("sl-dialog", {
|
|
2485
2473
|
ref_key: "confirm",
|
|
2486
2474
|
ref: l,
|
|
2487
2475
|
onSlHide: r
|
|
2488
2476
|
}, [
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2477
|
+
js,
|
|
2478
|
+
c("div", Bs, [
|
|
2479
|
+
c("sl-button", {
|
|
2492
2480
|
variant: "danger",
|
|
2493
2481
|
onClick: p[0] || (p[0] = (v) => l.value.hide()),
|
|
2494
2482
|
size: "medium"
|
|
2495
2483
|
}, " Abbrechen "),
|
|
2496
|
-
|
|
2484
|
+
c("sl-button", {
|
|
2497
2485
|
variant: "success",
|
|
2498
2486
|
onClick: o,
|
|
2499
2487
|
size: "medium"
|
|
2500
2488
|
}, " Aus Warenkorb entfernen ")
|
|
2501
2489
|
])
|
|
2502
2490
|
], 544),
|
|
2503
|
-
(
|
|
2504
|
-
Object.keys(s.leaves).includes(v.key) ? (
|
|
2505
|
-
ut(
|
|
2506
|
-
(
|
|
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, {
|
|
2507
2495
|
key: k.key,
|
|
2508
2496
|
leaf: k,
|
|
2509
2497
|
node: v,
|
|
@@ -2512,79 +2500,79 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2512
2500
|
}, null, 8, ["leaf", "node"]))), 128))
|
|
2513
2501
|
], 64)) : _("", !0)
|
|
2514
2502
|
]))), 256)),
|
|
2515
|
-
|
|
2516
|
-
], 64)) : (
|
|
2503
|
+
Vs
|
|
2504
|
+
], 64)) : (f(), h("sl-spinner", Os));
|
|
2517
2505
|
}
|
|
2518
|
-
}, _e = /* @__PURE__ */ I(
|
|
2506
|
+
}, _e = /* @__PURE__ */ I(Ns, [["__scopeId", "data-v-8dd1e557"]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2519
2507
|
__proto__: null,
|
|
2520
2508
|
default: _e
|
|
2521
|
-
}, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), z(), e),
|
|
2509
|
+
}, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), z(), e), Ls = {
|
|
2522
2510
|
key: 1,
|
|
2523
2511
|
class: "list"
|
|
2524
|
-
},
|
|
2525
|
-
/* @__PURE__ */
|
|
2526
|
-
/* @__PURE__ */
|
|
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" }, [
|
|
2527
2515
|
/* @__PURE__ */ j(" Versandadresse "),
|
|
2528
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ c("sl-button", {
|
|
2529
2517
|
outline: "",
|
|
2530
2518
|
size: "small"
|
|
2531
2519
|
}, [
|
|
2532
|
-
/* @__PURE__ */
|
|
2520
|
+
/* @__PURE__ */ c("sl-icon", {
|
|
2533
2521
|
name: "pencil",
|
|
2534
2522
|
slot: "prefix"
|
|
2535
2523
|
})
|
|
2536
2524
|
])
|
|
2537
2525
|
]),
|
|
2538
2526
|
/* @__PURE__ */ j(" Roland Brose"),
|
|
2539
|
-
/* @__PURE__ */
|
|
2527
|
+
/* @__PURE__ */ c("br"),
|
|
2540
2528
|
/* @__PURE__ */ j(" Speicherstraße 33"),
|
|
2541
|
-
/* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ c("br"),
|
|
2542
2530
|
/* @__PURE__ */ j(" 44147 Dortmund, DE"),
|
|
2543
|
-
/* @__PURE__ */
|
|
2544
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ c("br"),
|
|
2532
|
+
/* @__PURE__ */ c("br"),
|
|
2545
2533
|
/* @__PURE__ */ j(" rb@mausbrand.de"),
|
|
2546
|
-
/* @__PURE__ */
|
|
2534
|
+
/* @__PURE__ */ c("br"),
|
|
2547
2535
|
/* @__PURE__ */ j(" 0231 21 34 68 90 ")
|
|
2548
2536
|
]),
|
|
2549
|
-
/* @__PURE__ */
|
|
2550
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ c("div", { class: "viur-shop-cart-address" }, [
|
|
2538
|
+
/* @__PURE__ */ c("div", { class: "viur-shop-cart-address-headline" }, [
|
|
2551
2539
|
/* @__PURE__ */ j(" Rechnungsadresse "),
|
|
2552
|
-
/* @__PURE__ */
|
|
2540
|
+
/* @__PURE__ */ c("sl-button", {
|
|
2553
2541
|
outline: "",
|
|
2554
2542
|
size: "small"
|
|
2555
2543
|
}, [
|
|
2556
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ c("sl-icon", {
|
|
2557
2545
|
name: "pencil",
|
|
2558
2546
|
slot: "prefix"
|
|
2559
2547
|
})
|
|
2560
2548
|
])
|
|
2561
2549
|
]),
|
|
2562
2550
|
/* @__PURE__ */ j(" Roland Brose"),
|
|
2563
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ c("br"),
|
|
2564
2552
|
/* @__PURE__ */ j(" Speicherstraße 33"),
|
|
2565
|
-
/* @__PURE__ */
|
|
2553
|
+
/* @__PURE__ */ c("br"),
|
|
2566
2554
|
/* @__PURE__ */ j(" 44147 Dortmund, DE"),
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ c("br"),
|
|
2556
|
+
/* @__PURE__ */ c("br"),
|
|
2569
2557
|
/* @__PURE__ */ j(" rb@mausbrand.de"),
|
|
2570
|
-
/* @__PURE__ */
|
|
2558
|
+
/* @__PURE__ */ c("br"),
|
|
2571
2559
|
/* @__PURE__ */ j(" 0231 21 34 68 90 ")
|
|
2572
2560
|
])
|
|
2573
|
-
], -1)),
|
|
2574
|
-
/* @__PURE__ */
|
|
2575
|
-
/* @__PURE__ */
|
|
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:"),
|
|
2576
2564
|
/* @__PURE__ */ j(" Paypal ")
|
|
2577
2565
|
]),
|
|
2578
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ c("sl-button", {
|
|
2579
2567
|
outline: "",
|
|
2580
2568
|
size: "small"
|
|
2581
2569
|
}, [
|
|
2582
|
-
/* @__PURE__ */
|
|
2570
|
+
/* @__PURE__ */ c("sl-icon", {
|
|
2583
2571
|
name: "pencil",
|
|
2584
2572
|
slot: "prefix"
|
|
2585
2573
|
})
|
|
2586
2574
|
])
|
|
2587
|
-
], -1)),
|
|
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 = {
|
|
2588
2576
|
__name: "ConfirmView",
|
|
2589
2577
|
setup(e) {
|
|
2590
2578
|
const n = re(), t = w({
|
|
@@ -2601,40 +2589,40 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2601
2589
|
}
|
|
2602
2590
|
return x(async () => {
|
|
2603
2591
|
await n.init();
|
|
2604
|
-
}), (s, o) => t.cartIsInit ? (
|
|
2592
|
+
}), (s, o) => t.cartIsInit ? (f(), h("div", Ls, [
|
|
2593
|
+
Us,
|
|
2594
|
+
Ts,
|
|
2605
2595
|
Ps,
|
|
2606
2596
|
Ms,
|
|
2607
2597
|
Ws,
|
|
2608
2598
|
zs,
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
d("div", Gs, [
|
|
2616
|
-
d("sl-button", {
|
|
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", {
|
|
2617
2605
|
variant: t.showOrderButton ? "info" : "disabled",
|
|
2618
2606
|
size: "small",
|
|
2619
2607
|
disabled: !t.showOrderButton
|
|
2620
|
-
}, " Zahlungspflichtig bestellen ", 8,
|
|
2608
|
+
}, " Zahlungspflichtig bestellen ", 8, Hs)
|
|
2621
2609
|
])
|
|
2622
2610
|
]))
|
|
2623
|
-
])) : (
|
|
2611
|
+
])) : (f(), T(cs, { key: 0 }));
|
|
2624
2612
|
}
|
|
2625
|
-
}, we = /* @__PURE__ */ I(
|
|
2613
|
+
}, we = /* @__PURE__ */ I(Gs, [["__scopeId", "data-v-b7b745be"]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2626
2614
|
__proto__: null,
|
|
2627
2615
|
default: we
|
|
2628
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
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 = {
|
|
2629
2617
|
key: 0,
|
|
2630
2618
|
name: "chevron-right",
|
|
2631
2619
|
class: "viur-shop-order-tab-check"
|
|
2632
|
-
},
|
|
2633
|
-
/* @__PURE__ */
|
|
2620
|
+
}, nl = ["name"], al = ["onClick"], sl = ["onClick"], ll = /* @__PURE__ */ Js(() => /* @__PURE__ */ c("div", { class: "viur-shop-sidebar-wrap" }, [
|
|
2621
|
+
/* @__PURE__ */ c("div", {
|
|
2634
2622
|
class: "viur-shop-sidebar",
|
|
2635
2623
|
id: "order_sidebar"
|
|
2636
2624
|
})
|
|
2637
|
-
], -1)),
|
|
2625
|
+
], -1)), rl = {
|
|
2638
2626
|
__name: "OrderView",
|
|
2639
2627
|
props: {
|
|
2640
2628
|
tabs: {
|
|
@@ -2649,10 +2637,10 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2649
2637
|
isFirstTab: (u) => u === 0
|
|
2650
2638
|
}), o = q(null);
|
|
2651
2639
|
function a(u) {
|
|
2652
|
-
let
|
|
2640
|
+
let m = [], p = [];
|
|
2653
2641
|
for (const v in u)
|
|
2654
|
-
u[v].position ?
|
|
2655
|
-
return
|
|
2642
|
+
u[v].position ? m.push([v, u[v].position]) : m.push([v, 0]);
|
|
2643
|
+
return m.sort((v, k) => v[1] - k[1]), m.forEach((v) => {
|
|
2656
2644
|
p.push(v[0]);
|
|
2657
2645
|
}), p;
|
|
2658
2646
|
}
|
|
@@ -2662,85 +2650,85 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2662
2650
|
function r(u) {
|
|
2663
2651
|
o.value.show(u);
|
|
2664
2652
|
}
|
|
2665
|
-
function
|
|
2653
|
+
function d(u) {
|
|
2666
2654
|
o.value.show(u);
|
|
2667
2655
|
}
|
|
2668
|
-
return (u,
|
|
2669
|
-
|
|
2656
|
+
return (u, m) => (f(), h("div", Qs, [
|
|
2657
|
+
c("sl-tab-group", {
|
|
2670
2658
|
class: "viur-shop-order-tabgroup",
|
|
2671
2659
|
noScrollControls: "",
|
|
2672
2660
|
onSlTabShow: i,
|
|
2673
2661
|
ref_key: "tabGroup",
|
|
2674
2662
|
ref: o
|
|
2675
2663
|
}, [
|
|
2676
|
-
(
|
|
2664
|
+
(f(!0), h(E, null, U(s.tabNames, (p, v) => (f(), h("sl-tab", {
|
|
2677
2665
|
class: "viur-shop-order-tab",
|
|
2678
2666
|
slot: "nav",
|
|
2679
2667
|
panel: p,
|
|
2680
2668
|
key: p,
|
|
2681
2669
|
disabled: e.tabs[p].disabled
|
|
2682
2670
|
}, [
|
|
2683
|
-
|
|
2684
|
-
|
|
2671
|
+
c("div", Xs, [
|
|
2672
|
+
c("sl-icon", {
|
|
2685
2673
|
class: "viur-shop-order-step-icon",
|
|
2686
2674
|
name: e.tabs[p].icon.name,
|
|
2687
2675
|
library: e.tabs[p].icon.library
|
|
2688
|
-
}, null, 8,
|
|
2689
|
-
|
|
2676
|
+
}, null, 8, xs),
|
|
2677
|
+
c("div", el, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
|
|
2690
2678
|
]),
|
|
2691
|
-
v < s.tabNames.length - 1 ? (
|
|
2692
|
-
], 8,
|
|
2693
|
-
(
|
|
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", {
|
|
2694
2682
|
class: "viur-shop-order-tab-panel",
|
|
2695
2683
|
name: p,
|
|
2696
2684
|
key: p
|
|
2697
2685
|
}, [
|
|
2698
|
-
(
|
|
2699
|
-
v !== s.tabNames.length - 1 ? (
|
|
2686
|
+
(f(), T(ct(e.tabs[p].component), mt({ ref_for: !0 }, e.tabs[p].props ? e.tabs[p].props : ""), null, 16)),
|
|
2687
|
+
v !== s.tabNames.length - 1 ? (f(), h("div", {
|
|
2700
2688
|
key: 0,
|
|
2701
2689
|
class: pe(["viur-shop-form-footer", { "flex-end": s.isFirstTab(v) }])
|
|
2702
2690
|
}, [
|
|
2703
|
-
Z(
|
|
2691
|
+
Z(c("sl-button", {
|
|
2704
2692
|
type: "submit",
|
|
2705
2693
|
onClick: (k) => r(s.tabNames[v - 1])
|
|
2706
|
-
}, " Zurück ", 8,
|
|
2694
|
+
}, " Zurück ", 8, al), [
|
|
2707
2695
|
[be, v !== 0]
|
|
2708
2696
|
]),
|
|
2709
|
-
|
|
2697
|
+
c("sl-button", {
|
|
2710
2698
|
type: "submit",
|
|
2711
2699
|
variant: "primary",
|
|
2712
|
-
onClick: (k) =>
|
|
2713
|
-
}, " Weiter ", 8,
|
|
2700
|
+
onClick: (k) => d(s.tabNames[v + 1])
|
|
2701
|
+
}, " Weiter ", 8, sl)
|
|
2714
2702
|
], 2)) : _("", !0)
|
|
2715
|
-
], 8,
|
|
2703
|
+
], 8, nl))), 128))
|
|
2716
2704
|
], 544),
|
|
2717
|
-
|
|
2705
|
+
ll
|
|
2718
2706
|
]));
|
|
2719
2707
|
}
|
|
2720
|
-
},
|
|
2721
|
-
/* @__PURE__ */
|
|
2708
|
+
}, ol = /* @__PURE__ */ I(rl, [["__scopeId", "data-v-0e63188d"]]), il = {}, ge = (e) => (M("data-v-36ccc280"), e = e(), z(), e), ul = { class: "bind" }, dl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("h1", { class: "headline" }, "Vielen Dank für Ihre Bestellung", -1)), cl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("br", null, null, -1)), ml = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("p", { class: "paragraph" }, [
|
|
2709
|
+
/* @__PURE__ */ c("strong", null, "Ihre Bestellnummer:"),
|
|
2722
2710
|
/* @__PURE__ */ j(" 123345670 ")
|
|
2723
|
-
], -1)),
|
|
2711
|
+
], -1)), fl = /* @__PURE__ */ ge(() => /* @__PURE__ */ c("p", { class: "paragraph" }, [
|
|
2724
2712
|
/* @__PURE__ */ j(" Wir haben Ihre Bestellung erhalten und werden diese schenllstmöglich bearbeiten."),
|
|
2725
|
-
/* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ c("br"),
|
|
2726
2714
|
/* @__PURE__ */ j(" Sie erhalten in wenigen Minuten eine Bestätigung per E-Mail. "),
|
|
2727
|
-
/* @__PURE__ */
|
|
2728
|
-
/* @__PURE__ */
|
|
2729
|
-
/* @__PURE__ */
|
|
2715
|
+
/* @__PURE__ */ c("div", { class: "btn-wrap" }, [
|
|
2716
|
+
/* @__PURE__ */ c("sl-button", { size: "medium" }, " Zur Startseite "),
|
|
2717
|
+
/* @__PURE__ */ c("sl-button", {
|
|
2730
2718
|
variant: "primary",
|
|
2731
2719
|
size: "medium"
|
|
2732
2720
|
}, " Weiter Einkaufen ")
|
|
2733
2721
|
])
|
|
2734
|
-
], -1)),
|
|
2735
|
-
|
|
2722
|
+
], -1)), gl = [
|
|
2723
|
+
dl,
|
|
2724
|
+
cl,
|
|
2736
2725
|
ml,
|
|
2737
|
-
|
|
2738
|
-
hl
|
|
2726
|
+
fl
|
|
2739
2727
|
];
|
|
2740
|
-
function
|
|
2741
|
-
return
|
|
2728
|
+
function hl(e, n) {
|
|
2729
|
+
return f(), h("div", ul, gl);
|
|
2742
2730
|
}
|
|
2743
|
-
const
|
|
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 = {
|
|
2744
2732
|
__name: "UserInformation",
|
|
2745
2733
|
props: {
|
|
2746
2734
|
mode: { type: String, default: "form" },
|
|
@@ -2763,14 +2751,14 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2763
2751
|
a.target.checked && (t.isCustomAdress = !1), a.target.checked || (t.isCustomAdress = !0);
|
|
2764
2752
|
}
|
|
2765
2753
|
function s(a, i) {
|
|
2766
|
-
for (const [r,
|
|
2767
|
-
t.formValues[r] =
|
|
2754
|
+
for (const [r, d] of Object.entries(i.value[0]))
|
|
2755
|
+
t.formValues[r] = d;
|
|
2768
2756
|
}
|
|
2769
2757
|
function o(a) {
|
|
2770
2758
|
let i = {};
|
|
2771
2759
|
return Array.isArray(a) ? (a.forEach((r) => {
|
|
2772
|
-
let
|
|
2773
|
-
i[
|
|
2760
|
+
let d = r[0], u = r[1];
|
|
2761
|
+
i[d] = u;
|
|
2774
2762
|
}), console.log("output", i), i) : a;
|
|
2775
2763
|
}
|
|
2776
2764
|
return ne(t.formValues, (a) => {
|
|
@@ -2781,71 +2769,71 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2781
2769
|
await n.getAdressStructure(), t.addSkel = o(n.state.structure.address);
|
|
2782
2770
|
}), (a, i) => {
|
|
2783
2771
|
const r = ae("bone");
|
|
2784
|
-
return
|
|
2785
|
-
|
|
2772
|
+
return f(), h(E, null, [
|
|
2773
|
+
c("div", null, [
|
|
2786
2774
|
j(" test "),
|
|
2787
|
-
|
|
2788
|
-
(
|
|
2775
|
+
vl,
|
|
2776
|
+
(f(!0), h(E, null, U(t.addSkel, (d, u) => (f(), h(E, { key: u }, [
|
|
2789
2777
|
j(B(u) + " ", 1),
|
|
2790
|
-
|
|
2778
|
+
d.visible && d.params.group === "Customer Info" ? (f(), T(r, {
|
|
2791
2779
|
key: 0,
|
|
2792
|
-
is: K(X)(
|
|
2780
|
+
is: K(X)(d.type),
|
|
2793
2781
|
name: u,
|
|
2794
2782
|
structure: o(t.addSkel),
|
|
2795
2783
|
errors: t.errors[u] ? t.errors[u] : [],
|
|
2796
2784
|
skel: t.formValues,
|
|
2797
|
-
onChange: (
|
|
2785
|
+
onChange: (m) => s(u, m),
|
|
2798
2786
|
class: "viur-shop-form-grid-w-2"
|
|
2799
2787
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2800
2788
|
], 64))), 128))
|
|
2801
2789
|
]),
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
(
|
|
2805
|
-
|
|
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, {
|
|
2806
2794
|
key: 0,
|
|
2807
|
-
is: K(X)(
|
|
2795
|
+
is: K(X)(d.type),
|
|
2808
2796
|
name: u,
|
|
2809
2797
|
structure: o(t.addSkel),
|
|
2810
2798
|
errors: t.errors[u] ? t.errors[u] : [],
|
|
2811
2799
|
skel: t.formValues,
|
|
2812
|
-
onChange: (
|
|
2800
|
+
onChange: (m) => s(u, m)
|
|
2813
2801
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2814
2802
|
], 64))), 128))
|
|
2815
2803
|
]),
|
|
2816
|
-
t.isCustomAdress ? (
|
|
2817
|
-
|
|
2818
|
-
(
|
|
2819
|
-
|
|
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, {
|
|
2820
2808
|
key: 0,
|
|
2821
|
-
is: K(X)(
|
|
2809
|
+
is: K(X)(d.type),
|
|
2822
2810
|
name: u,
|
|
2823
2811
|
structure: o(t.addSkel),
|
|
2824
2812
|
errors: t.errors[u] ? t.errors[u] : [],
|
|
2825
2813
|
skel: t.formValues,
|
|
2826
|
-
onChange: (
|
|
2814
|
+
onChange: (m) => s(u, m)
|
|
2827
2815
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2828
2816
|
], 64))), 128))
|
|
2829
2817
|
])) : _("", !0),
|
|
2830
|
-
|
|
2818
|
+
c("sl-checkbox", {
|
|
2831
2819
|
onSlChange: l,
|
|
2832
2820
|
checked: ""
|
|
2833
2821
|
}, " Rechnungsadresse wie Lieferadresse ", 32)
|
|
2834
2822
|
], 64);
|
|
2835
2823
|
};
|
|
2836
2824
|
}
|
|
2837
|
-
},
|
|
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", {
|
|
2838
2826
|
name: "x-lg",
|
|
2839
2827
|
slot: "prefix"
|
|
2840
|
-
}, null, -1)),
|
|
2841
|
-
|
|
2842
|
-
],
|
|
2828
|
+
}, null, -1)), jl = [
|
|
2829
|
+
Ol
|
|
2830
|
+
], Bl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("sl-icon", {
|
|
2843
2831
|
name: "plus-lg",
|
|
2844
2832
|
slot: "prefix"
|
|
2845
|
-
}, null, -1)),
|
|
2833
|
+
}, null, -1)), Dl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("sl-icon", {
|
|
2846
2834
|
slot: "icon",
|
|
2847
2835
|
name: "exclamation-triangle"
|
|
2848
|
-
}, null, -1)),
|
|
2836
|
+
}, null, -1)), Vl = /* @__PURE__ */ ee(() => /* @__PURE__ */ c("br", null, null, -1)), Nl = {
|
|
2849
2837
|
__name: "UserInfoMulti",
|
|
2850
2838
|
props: {
|
|
2851
2839
|
mode: { type: String, default: "form" }
|
|
@@ -2892,7 +2880,7 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2892
2880
|
}
|
|
2893
2881
|
t.shippingAdressAmount -= 1;
|
|
2894
2882
|
}
|
|
2895
|
-
function
|
|
2883
|
+
function d(p, v) {
|
|
2896
2884
|
if (console.log(p.target.value), !p.target.value.length) {
|
|
2897
2885
|
u();
|
|
2898
2886
|
return;
|
|
@@ -2902,7 +2890,7 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2902
2890
|
function u(p, v) {
|
|
2903
2891
|
console.log("clearing..."), delete t.selectedItem[v], t.isItemSelected = !1;
|
|
2904
2892
|
}
|
|
2905
|
-
function
|
|
2893
|
+
function m(p) {
|
|
2906
2894
|
let v = {};
|
|
2907
2895
|
return Array.isArray(p) ? (p.forEach((k) => {
|
|
2908
2896
|
let g = k[0], b = k[1];
|
|
@@ -2914,18 +2902,18 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2914
2902
|
k === "" && delete t.formValues[v];
|
|
2915
2903
|
});
|
|
2916
2904
|
}), x(async () => {
|
|
2917
|
-
await n.getAdressStructure(), t.addSkel =
|
|
2905
|
+
await n.getAdressStructure(), t.addSkel = m(n.state.structure.address);
|
|
2918
2906
|
}), (p, v) => {
|
|
2919
2907
|
const k = ae("bone");
|
|
2920
|
-
return
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
(
|
|
2924
|
-
g.visible && g.params.group === "Customer Info" ? (
|
|
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, {
|
|
2925
2913
|
key: 0,
|
|
2926
2914
|
is: K(X)(g.type),
|
|
2927
2915
|
name: b,
|
|
2928
|
-
structure:
|
|
2916
|
+
structure: m(t.addSkel),
|
|
2929
2917
|
errors: t.errors[b] ? t.errors[b] : [],
|
|
2930
2918
|
skel: t.formValues,
|
|
2931
2919
|
onChange: (y) => i(b, y),
|
|
@@ -2933,81 +2921,81 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
2933
2921
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2934
2922
|
], 64))), 128))
|
|
2935
2923
|
]),
|
|
2936
|
-
|
|
2937
|
-
(
|
|
2938
|
-
|
|
2924
|
+
wl,
|
|
2925
|
+
(f(!0), h(E, null, U(t.shippingAdressAmount, (g) => (f(), h("div", { key: g }, [
|
|
2926
|
+
c("sl-select", {
|
|
2939
2927
|
clearable: "",
|
|
2940
2928
|
ref_for: !0,
|
|
2941
2929
|
ref_key: "itemSelection",
|
|
2942
2930
|
ref: l,
|
|
2943
|
-
onSlChange: (b) =>
|
|
2931
|
+
onSlChange: (b) => d(b, g),
|
|
2944
2932
|
onSlClear: (b) => u(b, g),
|
|
2945
2933
|
label: t.selectedItem[g] ? K(n).state.carts[t.selectedItem[g]].info.name : "Warenkorb für Adresse wählen.",
|
|
2946
2934
|
class: "grid-w-4"
|
|
2947
2935
|
}, [
|
|
2948
|
-
(
|
|
2949
|
-
], 40,
|
|
2950
|
-
(
|
|
2951
|
-
b.visible && b.params.group === "Customer Address" ? (
|
|
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, {
|
|
2952
2940
|
key: 0,
|
|
2953
2941
|
is: K(X)(b.type),
|
|
2954
2942
|
name: y,
|
|
2955
|
-
structure:
|
|
2943
|
+
structure: m(t.addSkel),
|
|
2956
2944
|
errors: t.errors[y] ? t.errors[y] : [],
|
|
2957
2945
|
skel: t.formValues,
|
|
2958
2946
|
onChange: ($) => i(y, $)
|
|
2959
2947
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2960
2948
|
], 64))), 128))
|
|
2961
2949
|
]))), 128)),
|
|
2962
|
-
t.isCustomAdress ? (
|
|
2963
|
-
|
|
2964
|
-
(
|
|
2965
|
-
g.visible && g.params.group === "Customer Address" ? (
|
|
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, {
|
|
2966
2954
|
key: 0,
|
|
2967
2955
|
is: K(X)(g.type),
|
|
2968
2956
|
name: b,
|
|
2969
|
-
structure:
|
|
2957
|
+
structure: m(t.addSkel),
|
|
2970
2958
|
errors: t.errors[b] ? t.errors[b] : [],
|
|
2971
2959
|
skel: t.formValues,
|
|
2972
2960
|
onChange: (y) => i(b, y)
|
|
2973
2961
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : _("", !0)
|
|
2974
2962
|
], 64))), 128))
|
|
2975
2963
|
])) : _("", !0),
|
|
2976
|
-
|
|
2977
|
-
|
|
2964
|
+
c("div", { class: "viur-shop-form-btn-wrap" }, [
|
|
2965
|
+
c("sl-button", {
|
|
2978
2966
|
size: "medium",
|
|
2979
2967
|
onClick: r,
|
|
2980
2968
|
title: "Lieferadresse entfernen"
|
|
2981
|
-
},
|
|
2982
|
-
|
|
2969
|
+
}, jl),
|
|
2970
|
+
c("sl-button", {
|
|
2983
2971
|
size: "medium",
|
|
2984
2972
|
variant: "primary",
|
|
2985
2973
|
onClick: a
|
|
2986
2974
|
}, [
|
|
2987
|
-
|
|
2975
|
+
Bl,
|
|
2988
2976
|
j(" Lieferadresse hinzufügen ")
|
|
2989
2977
|
])
|
|
2990
2978
|
]),
|
|
2991
|
-
|
|
2979
|
+
c("sl-alert", {
|
|
2992
2980
|
variant: "warning",
|
|
2993
2981
|
duration: "2000",
|
|
2994
2982
|
ref_key: "shippingWarning",
|
|
2995
2983
|
ref: s,
|
|
2996
2984
|
closable: ""
|
|
2997
2985
|
}, [
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
2986
|
+
Dl,
|
|
2987
|
+
c("strong", null, B(t.amountAlert.title), 1),
|
|
2988
|
+
Vl,
|
|
3001
2989
|
j(" " + B(t.amountAlert.msg), 1)
|
|
3002
2990
|
], 512),
|
|
3003
|
-
|
|
2991
|
+
c("sl-checkbox", {
|
|
3004
2992
|
onSlChange: o,
|
|
3005
2993
|
checked: ""
|
|
3006
2994
|
}, " Rechnungsadresse wie Lieferadresse ", 32)
|
|
3007
2995
|
], 64);
|
|
3008
2996
|
};
|
|
3009
2997
|
}
|
|
3010
|
-
},
|
|
2998
|
+
}, Rl = /* @__PURE__ */ I(Nl, [["__scopeId", "data-v-a4accf28"]]), Xe = {
|
|
3011
2999
|
__name: "ExampleUsage",
|
|
3012
3000
|
setup(e) {
|
|
3013
3001
|
const n = re(), t = S(
|
|
@@ -3056,7 +3044,7 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
3056
3044
|
// atHide: null,
|
|
3057
3045
|
// },
|
|
3058
3046
|
orderComplete: {
|
|
3059
|
-
component: H(
|
|
3047
|
+
component: H(bl),
|
|
3060
3048
|
props: {},
|
|
3061
3049
|
displayName: "Bestellung Abgeschlossen",
|
|
3062
3050
|
icon: { name: "order-confirmed", library: "hsk" },
|
|
@@ -3066,7 +3054,7 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
3066
3054
|
atHide: null
|
|
3067
3055
|
},
|
|
3068
3056
|
userInfo: {
|
|
3069
|
-
component: H(
|
|
3057
|
+
component: H(kl),
|
|
3070
3058
|
props: {},
|
|
3071
3059
|
displayName: "Daten Eingeben",
|
|
3072
3060
|
icon: { name: "user", library: "hsk" },
|
|
@@ -3076,7 +3064,7 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
3076
3064
|
atHide: null
|
|
3077
3065
|
},
|
|
3078
3066
|
userInfoMulti: {
|
|
3079
|
-
component: H(
|
|
3067
|
+
component: H(Rl),
|
|
3080
3068
|
props: {},
|
|
3081
3069
|
displayName: "Daten Eingeben (Multi)",
|
|
3082
3070
|
icon: { name: "user", library: "hsk" },
|
|
@@ -3092,76 +3080,76 @@ const pl = /* @__PURE__ */ I(dl, [["render", vl], ["__scopeId", "data-v-36ccc280
|
|
|
3092
3080
|
}
|
|
3093
3081
|
return x(async () => {
|
|
3094
3082
|
await n.init(), await n.getAdressStructure(), console.log("debug init exampleusage :", n.state.basketRootNode);
|
|
3095
|
-
}), (o, a) => (
|
|
3083
|
+
}), (o, a) => (f(), T(ol, {
|
|
3096
3084
|
tabs: l.tabs,
|
|
3097
3085
|
onTabChange: s
|
|
3098
3086
|
}, null, 8, ["tabs"]));
|
|
3099
3087
|
}
|
|
3100
|
-
},
|
|
3088
|
+
}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3101
3089
|
__proto__: null,
|
|
3102
3090
|
default: Xe
|
|
3103
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3091
|
+
}, Symbol.toStringTag, { value: "Module" })), Ul = D({
|
|
3104
3092
|
props: {},
|
|
3105
3093
|
components: {},
|
|
3106
3094
|
setup(e, n) {
|
|
3107
3095
|
const t = ht();
|
|
3108
3096
|
return { state: w({}), route: t };
|
|
3109
3097
|
}
|
|
3110
|
-
}),
|
|
3111
|
-
function
|
|
3112
|
-
return
|
|
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);
|
|
3113
3101
|
}
|
|
3114
|
-
const
|
|
3102
|
+
const Ml = /* @__PURE__ */ I(Ul, [["render", Pl]]), Wl = [
|
|
3115
3103
|
{
|
|
3116
3104
|
path: "/:pathMatch(.*)*",
|
|
3117
3105
|
name: "view_missing",
|
|
3118
|
-
component:
|
|
3106
|
+
component: Ml
|
|
3119
3107
|
},
|
|
3120
3108
|
{
|
|
3121
3109
|
path: "/shop/category/:identifier",
|
|
3122
3110
|
name: "CategoryView",
|
|
3123
|
-
component: () => import("./CategoryView-
|
|
3111
|
+
component: () => import("./CategoryView-DLR9I242.mjs")
|
|
3124
3112
|
},
|
|
3125
3113
|
{
|
|
3126
3114
|
path: "/shop/item/:item",
|
|
3127
3115
|
name: "itemView",
|
|
3128
|
-
component: () => import("./ItemView-
|
|
3116
|
+
component: () => import("./ItemView-DRYuO8SK.mjs")
|
|
3129
3117
|
},
|
|
3130
3118
|
{
|
|
3131
3119
|
path: "/shop/cart/view",
|
|
3132
3120
|
name: "CartView",
|
|
3133
|
-
component: () => Promise.resolve().then(() =>
|
|
3121
|
+
component: () => Promise.resolve().then(() => Rs)
|
|
3134
3122
|
},
|
|
3135
3123
|
{
|
|
3136
3124
|
path: "/shop/order/",
|
|
3137
3125
|
name: "OrderView",
|
|
3138
|
-
component: () => Promise.resolve().then(() =>
|
|
3126
|
+
component: () => Promise.resolve().then(() => Ll)
|
|
3139
3127
|
},
|
|
3140
3128
|
{
|
|
3141
3129
|
path: "/shop/order/confirm",
|
|
3142
3130
|
name: "ConfirmView",
|
|
3143
|
-
component: () => Promise.resolve().then(() =>
|
|
3131
|
+
component: () => Promise.resolve().then(() => Zs)
|
|
3144
3132
|
}
|
|
3145
3133
|
];
|
|
3146
|
-
function
|
|
3134
|
+
function Zl(e, n = !1) {
|
|
3147
3135
|
let t = [];
|
|
3148
|
-
return n ? t = e : t = e.concat(
|
|
3136
|
+
return n ? t = e : t = e.concat(Wl), bt({
|
|
3149
3137
|
// @ts-ignore
|
|
3150
3138
|
history: vt("/"),
|
|
3151
3139
|
routes: t
|
|
3152
3140
|
});
|
|
3153
3141
|
}
|
|
3154
|
-
const
|
|
3142
|
+
const Jl = {
|
|
3155
3143
|
install(e) {
|
|
3156
3144
|
e.component("CartView", _e), e.component("ExampleUsage", Xe), e.component("ConfirmView", we);
|
|
3157
3145
|
}
|
|
3158
3146
|
};
|
|
3159
3147
|
export {
|
|
3160
3148
|
_e as C,
|
|
3161
|
-
|
|
3149
|
+
Jl as V,
|
|
3162
3150
|
I as _,
|
|
3163
3151
|
Xe as a,
|
|
3164
3152
|
we as b,
|
|
3165
|
-
|
|
3153
|
+
Zl as c,
|
|
3166
3154
|
re as u
|
|
3167
3155
|
};
|