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