@viur/shop-components 0.0.1-dev.50 → 0.0.1-dev.52
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-DpxefLik.mjs → CategoryView-8DIBpBK_.mjs} +2 -2
- package/dist/{ItemCard-C9Qze_zT.mjs → ItemCard-Bu4kVYug.mjs} +1 -1
- package/dist/{ItemView-BsVTaCcL.mjs → ItemView-Dx5_6_bp.mjs} +2 -2
- package/dist/{main-DnyeXS74.mjs → main-1nSihvYu.mjs} +684 -728
- package/dist/main.css +1 -1
- package/dist/viur-shop-components.es.js +1 -1
- package/dist/viur-shop-components.umd.js +29 -29
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as D, inject 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 k, 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({
|
|
@@ -15,7 +15,7 @@ const pt = D({
|
|
|
15
15
|
components: {},
|
|
16
16
|
emits: ["change", "delete", "handleDragStart", "handleDragEnd", "handleDragOver", "handleDrop"],
|
|
17
17
|
setup(e, n) {
|
|
18
|
-
const t =
|
|
18
|
+
const t = C("boneState");
|
|
19
19
|
return {
|
|
20
20
|
state: w({
|
|
21
21
|
isDraggable: !1
|
|
@@ -28,12 +28,12 @@ const pt = D({
|
|
|
28
28
|
for (const [l, s] of n)
|
|
29
29
|
t[l] = s;
|
|
30
30
|
return t;
|
|
31
|
-
},
|
|
31
|
+
}, Ge = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Ge(() => /* @__PURE__ */ d("sl-icon", {
|
|
32
32
|
slot: "prefix",
|
|
33
33
|
name: "grip-vertical"
|
|
34
34
|
}, null, -1)), _t = [
|
|
35
35
|
St
|
|
36
|
-
], kt = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */
|
|
36
|
+
], kt = { 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
59
|
}, _t, 40, $t),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
d("div", kt, [
|
|
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: "",
|
|
@@ -82,7 +82,7 @@ const Ct = /* @__PURE__ */ I(pt, [["render", It], ["__scopeId", "data-v-141aaf9b
|
|
|
82
82
|
components: {},
|
|
83
83
|
emits: ["change", "handleClick"],
|
|
84
84
|
setup(e, n) {
|
|
85
|
-
const t =
|
|
85
|
+
const t = C("boneState");
|
|
86
86
|
return {
|
|
87
87
|
state: w({
|
|
88
88
|
debug: !1
|
|
@@ -93,13 +93,13 @@ const Ct = /* @__PURE__ */ I(pt, [["render", It], ["__scopeId", "data-v-141aaf9b
|
|
|
93
93
|
}), jt = { class: "bone-name" }, Bt = { key: 0 }, Dt = { class: "bone" };
|
|
94
94
|
function Vt(e, n, t, l, s, o) {
|
|
95
95
|
return m(), h(E, null, [
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
d("label", jt, [
|
|
97
|
+
He(e.$slots, "default", {}, void 0, !0),
|
|
98
98
|
k("", !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
|
])) : k("", !0)
|
|
105
105
|
], 64);
|
|
@@ -115,7 +115,7 @@ const Nt = /* @__PURE__ */ I(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172
|
|
|
115
115
|
components: {},
|
|
116
116
|
emits: ["change"],
|
|
117
117
|
setup(e, n) {
|
|
118
|
-
const t =
|
|
118
|
+
const t = C("boneState"), l = w({});
|
|
119
119
|
function s(o) {
|
|
120
120
|
n.emit("change", e.name, o.target.value, e.lang, e.index);
|
|
121
121
|
}
|
|
@@ -129,7 +129,7 @@ const Nt = /* @__PURE__ */ I(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172
|
|
|
129
129
|
}
|
|
130
130
|
}), Lt = ["disabled", "value"], Ut = ["disabled", "value"];
|
|
131
131
|
function Tt(e, n, t, l, s, o) {
|
|
132
|
-
var a,
|
|
132
|
+
var a, i;
|
|
133
133
|
return e.boneState.bonestructure.type === "raw.json" ? (m(), h("sl-textarea", {
|
|
134
134
|
key: 0,
|
|
135
135
|
disabled: (a = e.boneState) == null ? void 0 : a.readonly,
|
|
@@ -137,12 +137,12 @@ function Tt(e, n, t, l, s, o) {
|
|
|
137
137
|
onInput: n[0] || (n[0] = (...r) => e.changeEvent && e.changeEvent(...r))
|
|
138
138
|
}, null, 40, Lt)) : (m(), h("sl-textarea", {
|
|
139
139
|
key: 1,
|
|
140
|
-
disabled: (
|
|
140
|
+
disabled: (i = e.boneState) == null ? void 0 : i.readonly,
|
|
141
141
|
value: e.value,
|
|
142
142
|
onInput: n[1] || (n[1] = (...r) => e.changeEvent && e.changeEvent(...r))
|
|
143
143
|
}, null, 40, Ut));
|
|
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,31 +167,31 @@ 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
|
-
return typeof e == "function" ? e() :
|
|
182
|
+
return typeof e == "function" ? e() : K(e);
|
|
183
183
|
}
|
|
184
184
|
const Ft = typeof window < "u" && typeof document < "u";
|
|
185
185
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
186
|
-
function
|
|
186
|
+
function ce(e, n, t = {}) {
|
|
187
187
|
const {
|
|
188
188
|
immediate: l = !0
|
|
189
|
-
} = t, s =
|
|
189
|
+
} = t, s = q(!1);
|
|
190
190
|
let o = null;
|
|
191
191
|
function a() {
|
|
192
192
|
o && (clearTimeout(o), o = null);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function i() {
|
|
195
195
|
s.value = !1, a();
|
|
196
196
|
}
|
|
197
197
|
function r(...c) {
|
|
@@ -199,10 +199,10 @@ function me(e, n, t = {}) {
|
|
|
199
199
|
s.value = !1, o = null, e(...c);
|
|
200
200
|
}, qt(n));
|
|
201
201
|
}
|
|
202
|
-
return l && (s.value = !0, Ft && r()),
|
|
203
|
-
isPending:
|
|
202
|
+
return l && (s.value = !0, Ft && r()), zt(i), {
|
|
203
|
+
isPending: nt(s),
|
|
204
204
|
start: r,
|
|
205
|
-
stop:
|
|
205
|
+
stop: i
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
class Kt {
|
|
@@ -221,27 +221,27 @@ class Kt {
|
|
|
221
221
|
}
|
|
222
222
|
static formatString(n, t) {
|
|
223
223
|
function l(a) {
|
|
224
|
-
let
|
|
224
|
+
let i = [], r = [], c = /\$\((.*?)\)/g;
|
|
225
225
|
for (; r; ) {
|
|
226
226
|
if (r = c.exec(a), !r) {
|
|
227
227
|
r = !1;
|
|
228
228
|
continue;
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
i.push(r[1]);
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return i;
|
|
233
233
|
}
|
|
234
234
|
let s = l(n), o = [];
|
|
235
235
|
Array.isArray(t) || (t = [t]);
|
|
236
236
|
for (let a of t) {
|
|
237
|
-
let
|
|
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
|
-
o.push(
|
|
244
|
+
o.push(i);
|
|
245
245
|
}
|
|
246
246
|
return o.join(", ");
|
|
247
247
|
}
|
|
@@ -258,15 +258,15 @@ const Ht = D({
|
|
|
258
258
|
components: {},
|
|
259
259
|
emits: ["change"],
|
|
260
260
|
setup(e, n) {
|
|
261
|
-
const t =
|
|
261
|
+
const t = C("boneState"), l = w({
|
|
262
262
|
value: S(() => e.value)
|
|
263
|
-
}), s =
|
|
263
|
+
}), s = q(null);
|
|
264
264
|
function o(a) {
|
|
265
265
|
n.emit("change", e.name, a.target.value, e.lang, e.index);
|
|
266
266
|
}
|
|
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,
|
|
@@ -304,13 +304,13 @@ const je = /* @__PURE__ */ I(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0
|
|
|
304
304
|
components: {},
|
|
305
305
|
emits: ["change"],
|
|
306
306
|
setup(e, n) {
|
|
307
|
-
const t =
|
|
307
|
+
const t = C("boneState"), l = w({}), s = q(null);
|
|
308
308
|
function o(a) {
|
|
309
309
|
n.emit("change", e.name, a.target.value, e.lang, e.index);
|
|
310
310
|
}
|
|
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,
|
|
@@ -345,7 +345,7 @@ const Be = /* @__PURE__ */ I(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024
|
|
|
345
345
|
components: {},
|
|
346
346
|
emits: ["change"],
|
|
347
347
|
setup(e, n) {
|
|
348
|
-
const t =
|
|
348
|
+
const t = C("boneState"), l = w({
|
|
349
349
|
value: S(() => {
|
|
350
350
|
var a;
|
|
351
351
|
let o = e.value;
|
|
@@ -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,
|
|
@@ -387,12 +387,12 @@ const De = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c
|
|
|
387
387
|
components: {},
|
|
388
388
|
emits: ["change"],
|
|
389
389
|
setup(e, n) {
|
|
390
|
-
const t =
|
|
390
|
+
const t = C("boneState"), l = w({
|
|
391
391
|
value: S(() => {
|
|
392
392
|
let a = e.value;
|
|
393
|
-
return Array.isArray(e.value) ? (t.bonestructure.values instanceof Array ? a = a.filter((
|
|
394
|
-
(
|
|
395
|
-
), a.map((
|
|
393
|
+
return Array.isArray(e.value) ? (t.bonestructure.values instanceof Array ? a = a.filter((i) => t.bonestructure.values.map((r) => r[0].toString()).includes(i)) : a = a.filter(
|
|
394
|
+
(i) => Object.keys(t.bonestructure.values).map((r) => r.toString()).includes(i)
|
|
395
|
+
), a.map((i) => i.toString())) : e.value ? e.value.toString() : "";
|
|
396
396
|
})
|
|
397
397
|
});
|
|
398
398
|
function s() {
|
|
@@ -400,8 +400,8 @@ const De = /* @__PURE__ */ I(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c
|
|
|
400
400
|
return t.bonestructure.values;
|
|
401
401
|
{
|
|
402
402
|
let a = [];
|
|
403
|
-
for (const [
|
|
404
|
-
a.push([
|
|
403
|
+
for (const [i, r] of Object.entries(t.bonestructure.values))
|
|
404
|
+
a.push([i, r]);
|
|
405
405
|
return a;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
@@ -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,
|
|
@@ -445,7 +445,7 @@ const Ve = /* @__PURE__ */ I(tn, [["render", sn], ["__scopeId", "data-v-5a38b97f
|
|
|
445
445
|
components: {},
|
|
446
446
|
emits: ["change"],
|
|
447
447
|
setup(e, n) {
|
|
448
|
-
const t =
|
|
448
|
+
const t = C("boneState"), l = w({
|
|
449
449
|
value: S(() => ![!1, null, void 0, ""].includes(e.value))
|
|
450
450
|
});
|
|
451
451
|
function s(o) {
|
|
@@ -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,
|
|
@@ -480,36 +480,36 @@ const Ne = /* @__PURE__ */ I(ln, [["render", on], ["__scopeId", "data-v-363598c8
|
|
|
480
480
|
components: {},
|
|
481
481
|
emits: ["change"],
|
|
482
482
|
setup(e, n) {
|
|
483
|
-
const t =
|
|
483
|
+
const t = C("boneState"), l = w({
|
|
484
484
|
value1: "",
|
|
485
485
|
value2: null,
|
|
486
486
|
equal: !1,
|
|
487
487
|
passwordInfo: [],
|
|
488
488
|
requiredPasswordInfo: []
|
|
489
|
-
}), s =
|
|
490
|
-
function o(
|
|
489
|
+
}), s = q(null);
|
|
490
|
+
function o(i) {
|
|
491
491
|
l.value1 === l.value2 ? l.equal = !0 : l.equal = !1, a(l.value1), l.requiredPasswordInfo.length === 0 && l.passwordInfo.length - l.requiredPasswordInfo.length <= t.bonestructure.test_threshold ? n.emit("change", e.name, l.value1, e.lang, e.index, !0) : n.emit("change", e.name, l.value1, e.lang, e.index, !1);
|
|
492
492
|
}
|
|
493
493
|
R(() => {
|
|
494
494
|
n.emit("change", e.name, e.value, e.lang, e.index);
|
|
495
495
|
});
|
|
496
|
-
function a(
|
|
496
|
+
function a(i) {
|
|
497
497
|
l.passwordInfo = [], l.requiredPasswordInfo = [];
|
|
498
498
|
for (const r of t.bonestructure.tests)
|
|
499
|
-
new RegExp(r[0]).test(
|
|
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:
|
|
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
|
-
(
|
|
512
|
-
l.value1 =
|
|
511
|
+
(i, r) => {
|
|
512
|
+
l.value1 = i;
|
|
513
513
|
}
|
|
514
514
|
), {
|
|
515
515
|
state: l,
|
|
@@ -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
|
-
|
|
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 ? k("", !0) :
|
|
543
|
+
e.boneState.readonly ? k("", !0) : Z((m(), h("sl-input", {
|
|
544
544
|
key: 0,
|
|
545
545
|
"onUpdate:modelValue": n[4] || (n[4] = (a) => e.state.value2 = a),
|
|
546
546
|
class: "password-check",
|
|
@@ -551,23 +551,23 @@ 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
|
-
|
|
562
|
-
(m(!0), h(E, null, U(e.state.passwordInfo, (a,
|
|
563
|
-
(m(!0), h(E, null, U(e.state.requiredPasswordInfo, (a,
|
|
564
|
-
key:
|
|
561
|
+
d("ul", mn, [
|
|
562
|
+
(m(!0), h(E, null, U(e.state.passwordInfo, (a, i) => (m(), h("li", { key: i }, B(a), 1))), 128)),
|
|
563
|
+
(m(!0), h(E, null, U(e.state.requiredPasswordInfo, (a, i) => (m(), h("li", {
|
|
564
|
+
key: i,
|
|
565
565
|
class: "requiredInfo"
|
|
566
566
|
}, B(a), 1))), 128))
|
|
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,
|
|
@@ -578,20 +578,20 @@ const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
|
|
|
578
578
|
},
|
|
579
579
|
emits: ["change"],
|
|
580
580
|
setup(e, n) {
|
|
581
|
-
const t =
|
|
581
|
+
const t = C("boneState"), l = w({
|
|
582
582
|
value: S(() => e.value),
|
|
583
583
|
structure: S(() => a(t.bonestructure.using)),
|
|
584
584
|
globalRegistration: !1,
|
|
585
585
|
formGroups: S(() => {
|
|
586
|
-
var c,
|
|
587
|
-
let
|
|
586
|
+
var c, u;
|
|
587
|
+
let i = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } };
|
|
588
588
|
for (const [f, p] of Object.entries(l.structure)) {
|
|
589
589
|
let v = "default", _ = l.structure[f], g = (c = l.value) == null ? void 0 : c[f];
|
|
590
|
-
(
|
|
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
592
|
boneStructure: _,
|
|
593
593
|
boneValue: g
|
|
594
|
-
}) :
|
|
594
|
+
}) : i[v] = {
|
|
595
595
|
name: p.params.category,
|
|
596
596
|
bones: [
|
|
597
597
|
{
|
|
@@ -600,36 +600,36 @@ const Re = /* @__PURE__ */ I(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0
|
|
|
600
600
|
boneValue: g
|
|
601
601
|
}
|
|
602
602
|
]
|
|
603
|
-
}, _.visible === !0 && (
|
|
603
|
+
}, _.visible === !0 && (i[v].groupVisible = !0);
|
|
604
604
|
}
|
|
605
605
|
let r = {};
|
|
606
|
-
return Object.keys(
|
|
607
|
-
r[f] =
|
|
606
|
+
return Object.keys(i).sort().forEach(function(f) {
|
|
607
|
+
r[f] = i[f];
|
|
608
608
|
}), r;
|
|
609
609
|
})
|
|
610
610
|
});
|
|
611
|
-
function s(
|
|
612
|
-
n.emit("change",
|
|
611
|
+
function s(i) {
|
|
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
|
-
function o(
|
|
618
|
-
console.log(
|
|
617
|
+
function o(i) {
|
|
618
|
+
console.log(i);
|
|
619
619
|
}
|
|
620
|
-
function a(
|
|
621
|
-
if (Array.isArray(
|
|
620
|
+
function a(i) {
|
|
621
|
+
if (Array.isArray(i)) {
|
|
622
622
|
let r = {};
|
|
623
|
-
for (const c in
|
|
624
|
-
r[
|
|
623
|
+
for (const c in i)
|
|
624
|
+
r[i[c][0]] = i[c][1];
|
|
625
625
|
return r;
|
|
626
626
|
} else
|
|
627
|
-
return
|
|
627
|
+
return i;
|
|
628
628
|
}
|
|
629
629
|
return {
|
|
630
630
|
state: l,
|
|
631
631
|
boneState: t,
|
|
632
|
-
getBoneWidget:
|
|
632
|
+
getBoneWidget: X,
|
|
633
633
|
structureToDict: a,
|
|
634
634
|
changeEvent: s,
|
|
635
635
|
updateValue: o
|
|
@@ -644,14 +644,14 @@ 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
|
-
(m(!0), h(E, null, U(e.state.formGroups, (
|
|
649
|
+
(m(!0), h(E, null, U(e.state.formGroups, (i, r) => Z((m(), h("sl-details", {
|
|
650
650
|
key: r,
|
|
651
|
-
summary:
|
|
652
|
-
open:
|
|
651
|
+
summary: i.name,
|
|
652
|
+
open: i.groupOpen
|
|
653
653
|
}, [
|
|
654
|
-
(m(!0), h(E, null, U(
|
|
654
|
+
(m(!0), h(E, null, U(i.bones, (c) => Z((m(), T(a, {
|
|
655
655
|
key: c.name,
|
|
656
656
|
is: e.getBoneWidget(e.state.structure[c.boneName].type),
|
|
657
657
|
name: c.boneName,
|
|
@@ -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,17 +676,17 @@ 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
|
-
const t =
|
|
682
|
+
const t = C("boneState"), l = w({
|
|
683
683
|
value: {},
|
|
684
684
|
index: S(() => e.index),
|
|
685
685
|
lang: S(() => e.lang)
|
|
686
686
|
});
|
|
687
687
|
function s(o) {
|
|
688
|
-
var
|
|
689
|
-
(
|
|
688
|
+
var i;
|
|
689
|
+
(i = l.value) != null && i[o.name] || (l.value ? l.value[o.name] = null : l.value = { [o.name]: null });
|
|
690
690
|
let a = l.value[o.name];
|
|
691
691
|
o.lang ? (a === null && (a = {}), Object.keys(a).includes(o.lang) && o.index !== null ? a[o.lang][o.index] = o.value : a[o.lang] = o.value) : o.index !== null ? (a === null && (a = []), a[o.index] = o.value) : a = o.value, l.value[o.name] = a, n.emit("change", e.name, l.value, e.lang, e.index, !0);
|
|
692
692
|
}
|
|
@@ -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"]]), _n = D({
|
|
713
713
|
inheritAttrs: !1,
|
|
714
714
|
props: {
|
|
715
715
|
name: String,
|
|
@@ -720,7 +720,7 @@ const Le = /* @__PURE__ */ I($n, [["render", Sn], ["__scopeId", "data-v-84a761ce
|
|
|
720
720
|
components: {},
|
|
721
721
|
emits: ["change"],
|
|
722
722
|
setup(e, n) {
|
|
723
|
-
const t =
|
|
723
|
+
const t = C("boneState"), l = w({});
|
|
724
724
|
function s(o) {
|
|
725
725
|
n.emit("change", e.name, o.target.value, e.lang, e.index);
|
|
726
726
|
}
|
|
@@ -740,7 +740,7 @@ function wn(e, n, t, l, s, o) {
|
|
|
740
740
|
onSlChange: n[0] || (n[0] = (...a) => e.changeEvent && e.changeEvent(...a))
|
|
741
741
|
}, null, 40, kn);
|
|
742
742
|
}
|
|
743
|
-
const
|
|
743
|
+
const Le = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149"]]), En = D({
|
|
744
744
|
inheritAttrs: !1,
|
|
745
745
|
emits: { change: null },
|
|
746
746
|
props: {
|
|
@@ -752,20 +752,20 @@ const Ue = /* @__PURE__ */ I(_n, [["render", wn], ["__scopeId", "data-v-534b9149
|
|
|
752
752
|
},
|
|
753
753
|
components: {},
|
|
754
754
|
setup(e, n) {
|
|
755
|
-
const t =
|
|
755
|
+
const t = C("boneState"), l = w({
|
|
756
756
|
minAmount: S(() => t.bonestructure.minAmount),
|
|
757
757
|
maxAmount: S(() => t.bonestructure.maxAmount),
|
|
758
758
|
precision: S(() => {
|
|
759
759
|
if (t.bonestructure.precision > 1)
|
|
760
760
|
return parseFloat(`0.${"0".repeat(t.bonestructure.precision - 1)}1`);
|
|
761
761
|
})
|
|
762
|
-
}), s =
|
|
762
|
+
}), s = q(null);
|
|
763
763
|
function o(a) {
|
|
764
764
|
n.emit("change", e.name, a.target.value, e.lang, e.index);
|
|
765
765
|
}
|
|
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
|
-
|
|
796
|
+
d("ul", In, [
|
|
797
797
|
e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (m(), h("li", Cn, B(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : k("", !0),
|
|
798
798
|
e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (m(), h("li", On, B(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : k("", !0),
|
|
799
799
|
e.state.precision ? (m(), h("li", jn, B(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : k("", !0)
|
|
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
|
|
811
|
-
function
|
|
812
|
-
return
|
|
810
|
+
let he = null;
|
|
811
|
+
function Y() {
|
|
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,41 +818,41 @@ function X() {
|
|
|
818
818
|
state: e,
|
|
819
819
|
$reset: n
|
|
820
820
|
};
|
|
821
|
-
})),
|
|
821
|
+
})), he();
|
|
822
822
|
}
|
|
823
|
-
class
|
|
823
|
+
class O {
|
|
824
824
|
static resetState() {
|
|
825
|
-
|
|
825
|
+
Y().$reset(), Y().$dispose();
|
|
826
826
|
}
|
|
827
827
|
static buildUrl(n) {
|
|
828
828
|
return n && !(n.startsWith("http://") || n.startsWith("https://") || n.startsWith("//")) && (n = (N.VITE_API_URL ? N.VITE_API_URL : window.location.origin) + n), n;
|
|
829
829
|
}
|
|
830
|
-
static post(n, { dataObj: t = null, callback: l = null, failedCallback: s = null, abortController: o = null, headers: a = null, mode:
|
|
830
|
+
static post(n, { dataObj: t = null, callback: l = null, failedCallback: s = null, abortController: o = null, headers: a = null, mode: i = null } = {}) {
|
|
831
831
|
function r() {
|
|
832
832
|
if (t instanceof FormData)
|
|
833
833
|
return t;
|
|
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") {
|
|
851
|
-
await
|
|
851
|
+
await O.get(`/${t}/skey`, {
|
|
852
852
|
dataObj: { amount: n }
|
|
853
853
|
}).then(async (l) => {
|
|
854
854
|
let s = await l.json();
|
|
855
|
-
Array.isArray(s) || (s = [s]),
|
|
855
|
+
Array.isArray(s) || (s = [s]), Y().state.sKeys = new Set(s);
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
858
|
static async securePost(n, {
|
|
@@ -861,20 +861,20 @@ class j {
|
|
|
861
861
|
failedCallback: s = null,
|
|
862
862
|
abortController: o = null,
|
|
863
863
|
renderer: a = N.VITE_DEFAULT_RENDERER || "json",
|
|
864
|
-
headers:
|
|
864
|
+
headers: i = null,
|
|
865
865
|
mode: r = null,
|
|
866
866
|
amount: c = 30
|
|
867
867
|
} = {}) {
|
|
868
|
-
let
|
|
869
|
-
|
|
870
|
-
const f = [...
|
|
871
|
-
return t instanceof FormData ? (t.append("skey", f),
|
|
868
|
+
let u = null;
|
|
869
|
+
Y().state.sKeys.size === 0 && await O.getBatchSkeys(c);
|
|
870
|
+
const f = [...Y().state.sKeys][0];
|
|
871
|
+
return t instanceof FormData ? (t.append("skey", f), Y().state.sKeys.delete(f)) : (t || (t = {}), t.skey = f, Y().state.sKeys.delete(f)), u = O.post(n, {
|
|
872
872
|
dataObj: t,
|
|
873
873
|
callback: l,
|
|
874
874
|
abortController: o,
|
|
875
|
-
headers:
|
|
875
|
+
headers: i,
|
|
876
876
|
mode: r
|
|
877
|
-
}),
|
|
877
|
+
}), u;
|
|
878
878
|
}
|
|
879
879
|
static get(n, {
|
|
880
880
|
dataObj: t = null,
|
|
@@ -882,13 +882,13 @@ class j {
|
|
|
882
882
|
failedCallback: s = null,
|
|
883
883
|
cached: o = !1,
|
|
884
884
|
clearCache: a = !1,
|
|
885
|
-
abortController:
|
|
885
|
+
abortController: i = null,
|
|
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) {
|
|
@@ -901,10 +901,10 @@ class j {
|
|
|
901
901
|
failedCallback: s = null,
|
|
902
902
|
group: o = null,
|
|
903
903
|
abortController: a = null,
|
|
904
|
-
renderer:
|
|
904
|
+
renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
905
905
|
} = {}) {
|
|
906
|
-
let r = `/${
|
|
907
|
-
return o && (r += `/${o}`),
|
|
906
|
+
let r = `/${i}/${n}/list`;
|
|
907
|
+
return o && (r += `/${o}`), O.get(r, {
|
|
908
908
|
dataObj: t,
|
|
909
909
|
callback: l,
|
|
910
910
|
failedCallback: s,
|
|
@@ -917,11 +917,11 @@ class j {
|
|
|
917
917
|
failedCallback: s = null,
|
|
918
918
|
group: o = null,
|
|
919
919
|
abortController: a = null,
|
|
920
|
-
renderer:
|
|
920
|
+
renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
921
921
|
} = {}) {
|
|
922
922
|
n = n.replace(/\//g, ".");
|
|
923
|
-
let r = `/${
|
|
924
|
-
return o && (r += `/${o}`),
|
|
923
|
+
let r = `/${i}/getStructure/${n}`;
|
|
924
|
+
return o && (r += `/${o}`), O.get(r, {
|
|
925
925
|
dataObj: t,
|
|
926
926
|
callback: l,
|
|
927
927
|
failedCallback: s,
|
|
@@ -933,15 +933,15 @@ class j {
|
|
|
933
933
|
callback: s = null,
|
|
934
934
|
failedCallback: o = null,
|
|
935
935
|
group: a = null,
|
|
936
|
-
abortController:
|
|
936
|
+
abortController: i = null,
|
|
937
937
|
renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
938
938
|
} = {}) {
|
|
939
939
|
let c = `/${r}/${n}/view/${t}`;
|
|
940
|
-
return a && (c = `/${r}/${n}/view/${a}/${t}`),
|
|
940
|
+
return a && (c = `/${r}/${n}/view/${a}/${t}`), O.get(c, {
|
|
941
941
|
dataObj: l,
|
|
942
942
|
callback: s,
|
|
943
943
|
failedCallback: o,
|
|
944
|
-
abortController:
|
|
944
|
+
abortController: i
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
947
|
static add(n, {
|
|
@@ -950,10 +950,10 @@ class j {
|
|
|
950
950
|
failedCallback: s = null,
|
|
951
951
|
group: o = null,
|
|
952
952
|
abortController: a = null,
|
|
953
|
-
renderer:
|
|
953
|
+
renderer: i = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
954
954
|
} = {}) {
|
|
955
|
-
let r = `/${
|
|
956
|
-
return o && (r = `/${
|
|
955
|
+
let r = `/${i}/${n}/add`;
|
|
956
|
+
return o && (r = `/${i}/${n}/add/${o}`), O.securePost(r, {
|
|
957
957
|
dataObj: t,
|
|
958
958
|
callback: l,
|
|
959
959
|
failedCallback: s,
|
|
@@ -965,15 +965,15 @@ class j {
|
|
|
965
965
|
callback: s = null,
|
|
966
966
|
failedCallback: o = null,
|
|
967
967
|
group: a = null,
|
|
968
|
-
abortController:
|
|
968
|
+
abortController: i = null,
|
|
969
969
|
renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
970
970
|
} = {}) {
|
|
971
971
|
let c = `/${r}/${n}/edit/${t}`;
|
|
972
|
-
return a && (c = `/${r}/${n}/edit/${a}/${t}`),
|
|
972
|
+
return a && (c = `/${r}/${n}/edit/${a}/${t}`), O.securePost(c, {
|
|
973
973
|
dataObj: l,
|
|
974
974
|
callback: s,
|
|
975
975
|
failedCallback: o,
|
|
976
|
-
abortController:
|
|
976
|
+
abortController: i
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
static delete(n, t, {
|
|
@@ -981,20 +981,20 @@ class j {
|
|
|
981
981
|
callback: s = null,
|
|
982
982
|
failedCallback: o = null,
|
|
983
983
|
group: a = null,
|
|
984
|
-
abortController:
|
|
984
|
+
abortController: i = null,
|
|
985
985
|
renderer: r = (N == null ? void 0 : N.VITE_DEFAULT_RENDERER) || "json"
|
|
986
986
|
} = {}) {
|
|
987
987
|
let c = `/${r}/${n}/delete/${t}`;
|
|
988
|
-
return a && (c = `/${r}/${n}/delete/${a}/${t}`),
|
|
988
|
+
return a && (c = `/${r}/${n}/delete/${a}/${t}`), O.securePost(c, {
|
|
989
989
|
dataObj: l,
|
|
990
990
|
callback: s,
|
|
991
991
|
failedCallback: o,
|
|
992
|
-
abortController:
|
|
992
|
+
abortController: i,
|
|
993
993
|
amount: 1
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
static downloadUrlFor(n, t = !1) {
|
|
997
|
-
return n && "dest" in n ? t && "thumbnail" in n.dest ?
|
|
997
|
+
return n && "dest" in n ? t && "thumbnail" in n.dest ? O.buildUrl(n.dest.thumbnail) : "downloadUrl" in n.dest ? O.buildUrl(n.dest.downloadUrl) : O.buildUrl(null) : O.buildUrl(n);
|
|
998
998
|
}
|
|
999
999
|
static uploadFile(n, t = void 0) {
|
|
1000
1000
|
const l = {
|
|
@@ -1004,22 +1004,22 @@ class j {
|
|
|
1004
1004
|
node: t
|
|
1005
1005
|
};
|
|
1006
1006
|
return new Promise((s, o) => {
|
|
1007
|
-
|
|
1008
|
-
let
|
|
1009
|
-
fetch(
|
|
1007
|
+
O.securePost("/vi/file/getUploadURL", { dataObj: l }).then(async (a) => {
|
|
1008
|
+
let i = await a.json();
|
|
1009
|
+
fetch(i.values.uploadUrl, {
|
|
1010
1010
|
body: n,
|
|
1011
1011
|
method: "POST",
|
|
1012
1012
|
mode: "no-cors"
|
|
1013
1013
|
}).then(async (r) => {
|
|
1014
1014
|
const c = {
|
|
1015
|
-
key:
|
|
1015
|
+
key: i.values.uploadKey,
|
|
1016
1016
|
skelType: "leaf"
|
|
1017
1017
|
};
|
|
1018
|
-
|
|
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 j {
|
|
|
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 };
|
|
@@ -1041,8 +1041,8 @@ class re {
|
|
|
1041
1041
|
}, l && (a.headers = { ...a.headers, ...l }), t && (a.body = t), s && (a.signal = s.signal), o && (a.mode = o), a;
|
|
1042
1042
|
}
|
|
1043
1043
|
static get(n, t = null, l = null, s = null, o = null, a = null) {
|
|
1044
|
-
function
|
|
1045
|
-
let
|
|
1044
|
+
function i(r, c) {
|
|
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))
|
|
@@ -1051,32 +1051,32 @@ class re {
|
|
|
1051
1051
|
f.append(p, _);
|
|
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(
|
|
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,21 +1088,21 @@ 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
|
-
const t =
|
|
1094
|
+
const t = C("boneState"), l = C("formatString"), s = w({
|
|
1095
1095
|
format: S(() => t == null ? void 0 : t.bonestructure.format),
|
|
1096
1096
|
skellistdata: null,
|
|
1097
1097
|
selection: null
|
|
1098
1098
|
});
|
|
1099
1099
|
function o(r) {
|
|
1100
1100
|
let c = "";
|
|
1101
|
-
return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"),
|
|
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;
|
|
@@ -1112,9 +1112,9 @@ const Vn = D({
|
|
|
1112
1112
|
function a(r) {
|
|
1113
1113
|
s.selection = { dest: s.skellistdata[r.detail.item.value] }, n.emit("change", e.name, s.selection, e.lang, e.index);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var
|
|
1117
|
-
s.selection || (s.selection = {}), (
|
|
1115
|
+
function i(r) {
|
|
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
|
}
|
|
@@ -1125,21 +1125,21 @@ const Vn = D({
|
|
|
1125
1125
|
boneState: t,
|
|
1126
1126
|
formatString: l,
|
|
1127
1127
|
changeEvent: a,
|
|
1128
|
-
changeEventNested:
|
|
1128
|
+
changeEventNested: i,
|
|
1129
1129
|
getList: o
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
|
-
}), Nn = (e) => (M("data-v-61dd72e0"), e = e(), z(), e), Rn = { class: "record" }, Ln = { class: "single-entry" }, Un = ["value"], Tn = ["disabled", "source"], Pn = ["title"], Mn = /* @__PURE__ */ Nn(() => /* @__PURE__ */
|
|
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
|
|
1139
|
-
var
|
|
1140
|
-
const a =
|
|
1138
|
+
function zn(e, n, t, l, s, o) {
|
|
1139
|
+
var i, r;
|
|
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,9 +1160,9 @@ 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)) : k("", !0)
|
|
1164
1164
|
]),
|
|
1165
|
-
(
|
|
1165
|
+
(i = e.boneState) != null && i.bonestructure.using ? (m(), T(a, {
|
|
1166
1166
|
key: 0,
|
|
1167
1167
|
value: (r = e.value) == null ? void 0 : r.rel,
|
|
1168
1168
|
name: e.name,
|
|
@@ -1172,7 +1172,7 @@ function Wn(e, n, t, l, s, o) {
|
|
|
1172
1172
|
}, null, 8, ["value", "name", "index", "disabled", "onChange"])) : k("", !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,
|
|
@@ -1185,7 +1185,7 @@ const Pe = /* @__PURE__ */ I(Vn, [["render", Wn], ["__scopeId", "data-v-61dd72e0
|
|
|
1185
1185
|
components: {},
|
|
1186
1186
|
emits: ["change"],
|
|
1187
1187
|
setup(e, n) {
|
|
1188
|
-
const t =
|
|
1188
|
+
const t = C("boneState"), l = w({});
|
|
1189
1189
|
function s(o, a) {
|
|
1190
1190
|
n.emit("change", e.name, o, e.lang, e.index);
|
|
1191
1191
|
}
|
|
@@ -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: {
|
|
@@ -1214,7 +1214,7 @@ const Gn = D({
|
|
|
1214
1214
|
components: {},
|
|
1215
1215
|
emits: ["change"],
|
|
1216
1216
|
setup(e, n) {
|
|
1217
|
-
const t =
|
|
1217
|
+
const t = C("boneState"), l = q(), s = w({
|
|
1218
1218
|
loading: !1,
|
|
1219
1219
|
droparea: !1,
|
|
1220
1220
|
previewopen: !1
|
|
@@ -1223,22 +1223,22 @@ const Gn = D({
|
|
|
1223
1223
|
n.emit("change", e.name, e.value, e.lang, e.index);
|
|
1224
1224
|
});
|
|
1225
1225
|
function o() {
|
|
1226
|
-
console.log(
|
|
1226
|
+
console.log(O.downloadUrlFor(e.value)), window.open(O.downloadUrlFor(e.value));
|
|
1227
1227
|
}
|
|
1228
1228
|
function a() {
|
|
1229
|
-
return
|
|
1229
|
+
return O.downloadUrlFor(e.value, !1);
|
|
1230
1230
|
}
|
|
1231
|
-
function u
|
|
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
|
-
|
|
1238
|
+
O.securePost(`/${Pe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
|
|
1239
1239
|
let g = await _.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
|
-
|
|
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(($) => {
|
|
@@ -1261,18 +1261,18 @@ const Gn = D({
|
|
|
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
|
|
1267
|
-
let p = await
|
|
1266
|
+
for (let f of u.target.files) {
|
|
1267
|
+
let p = await i(f);
|
|
1268
1268
|
l.value.value = null, n.emit("change", e.name, { dest: p, rel: null }, e.lang, e.index);
|
|
1269
1269
|
}
|
|
1270
1270
|
s.loading = !1;
|
|
1271
1271
|
}
|
|
1272
|
-
async function c(
|
|
1272
|
+
async function c(u) {
|
|
1273
1273
|
s.loading = !0, s.droparea = !1;
|
|
1274
|
-
for (let f of
|
|
1275
|
-
let p = await
|
|
1274
|
+
for (let f of u.dataTransfer.files) {
|
|
1275
|
+
let p = await i(f);
|
|
1276
1276
|
l.value.value = null, n.emit("change", e.name, { dest: p, rel: null }, e.lang, e.index);
|
|
1277
1277
|
break;
|
|
1278
1278
|
}
|
|
@@ -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,16 +1309,16 @@ 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,
|
|
1316
|
+
var a, i, r, c, u, f, p, v, _, 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
1323
|
e.state.loading ? (m(), h("div", Zn, Qn)) : k("", !0),
|
|
1324
1324
|
e.state.droparea ? (m(), h("div", Yn, " Dateien hier hinziehen ")) : k("", !0),
|
|
@@ -1329,7 +1329,7 @@ function ha(e, n, t, l, s, o) {
|
|
|
1329
1329
|
class: "upload-btn",
|
|
1330
1330
|
onClick: n[0] || (n[0] = (b) => e.uploadinput.click())
|
|
1331
1331
|
}, ea, 8, Xn)) : k("", !0),
|
|
1332
|
-
|
|
1332
|
+
d("input", {
|
|
1333
1333
|
ref: "uploadinput",
|
|
1334
1334
|
hidden: "",
|
|
1335
1335
|
type: "file",
|
|
@@ -1341,29 +1341,29 @@ function ha(e, n, t, l, s, o) {
|
|
|
1341
1341
|
title: e.$t("bone.download"),
|
|
1342
1342
|
onClick: n[2] || (n[2] = (...b) => e.downloadFile && e.downloadFile(...b))
|
|
1343
1343
|
}, sa, 8, na)) : k("", !0),
|
|
1344
|
-
|
|
1345
|
-
(
|
|
1344
|
+
d("div", la, [
|
|
1345
|
+
(i = (a = e.value) == null ? void 0 : a.dest) != null && i.mimetype.includes("image") ? (m(), h("div", {
|
|
1346
1346
|
key: 0,
|
|
1347
1347
|
class: "preview has-preview",
|
|
1348
1348
|
onClick: n[3] || (n[3] = (b) => e.state.previewopen = !e.state.previewopen)
|
|
1349
1349
|
}, [
|
|
1350
|
-
|
|
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)) : k("", !0)
|
|
1367
1367
|
])),
|
|
1368
1368
|
(v = (p = e.value) == null ? void 0 : p.dest) != null && v.name ? (m(), h("div", ca, B(decodeURIComponent((g = (_ = e.value) == null ? void 0 : _.dest) == null ? void 0 : g.name)), 1)) : k("", !0)
|
|
1369
1369
|
]),
|
|
@@ -1374,10 +1374,10 @@ function ha(e, n, t, l, s, o) {
|
|
|
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,
|
|
@@ -1388,29 +1388,29 @@ const ze = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308
|
|
|
1388
1388
|
components: {},
|
|
1389
1389
|
emits: ["change"],
|
|
1390
1390
|
setup(e, n) {
|
|
1391
|
-
const t =
|
|
1391
|
+
const t = C("boneState"), l = w({
|
|
1392
1392
|
value: "",
|
|
1393
1393
|
editorConfig: {},
|
|
1394
1394
|
editor: S(() => ClassicEditor)
|
|
1395
1395
|
});
|
|
1396
|
-
function s(
|
|
1396
|
+
function s(i) {
|
|
1397
1397
|
n.emit("change", e.name, l.value, e.lang, e.index);
|
|
1398
1398
|
}
|
|
1399
|
-
function o(
|
|
1400
|
-
l.value =
|
|
1399
|
+
function o(i) {
|
|
1400
|
+
l.value = i.target.value, n.emit("change", e.name, l.value, e.lang, e.index);
|
|
1401
1401
|
}
|
|
1402
1402
|
R(() => {
|
|
1403
1403
|
e.value !== null && (l.value = e.value), n.emit("change", e.name, e.value, e.lang, e.index);
|
|
1404
1404
|
});
|
|
1405
|
-
function a(
|
|
1406
|
-
|
|
1407
|
-
r.setStyle("min-height", "250px",
|
|
1405
|
+
function a(i) {
|
|
1406
|
+
i.editing.view.change((r) => {
|
|
1407
|
+
r.setStyle("min-height", "250px", i.editing.view.document.getRoot());
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
return
|
|
1410
|
+
return ne(
|
|
1411
1411
|
() => e.value,
|
|
1412
|
-
(
|
|
1413
|
-
l.value =
|
|
1412
|
+
(i, r) => {
|
|
1413
|
+
l.value = i;
|
|
1414
1414
|
}
|
|
1415
1415
|
), {
|
|
1416
1416
|
state: l,
|
|
@@ -1423,10 +1423,10 @@ const ze = /* @__PURE__ */ I(Gn, [["render", ha], ["__scopeId", "data-v-91086308
|
|
|
1423
1423
|
}
|
|
1424
1424
|
}), va = ["disabled", "value"];
|
|
1425
1425
|
function pa(e, n, t, l, s, o) {
|
|
1426
|
-
var
|
|
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,
|
|
1431
1431
|
modelValue: e.state.value,
|
|
1432
1432
|
"onUpdate:modelValue": n[0] || (n[0] = (f) => e.state.value = f),
|
|
@@ -1437,7 +1437,7 @@ 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))
|
|
@@ -1454,7 +1454,7 @@ const We = /* @__PURE__ */ I(ba, [["render", pa]]), ya = D({
|
|
|
1454
1454
|
components: {},
|
|
1455
1455
|
emits: ["change"],
|
|
1456
1456
|
setup(e, n) {
|
|
1457
|
-
const t =
|
|
1457
|
+
const t = C("boneState"), l = w({
|
|
1458
1458
|
valueLat: null,
|
|
1459
1459
|
valueLng: null
|
|
1460
1460
|
});
|
|
@@ -1476,7 +1476,7 @@ const We = /* @__PURE__ */ I(ba, [["render", pa]]), ya = D({
|
|
|
1476
1476
|
}), $a = ["name", "min", "max", "disabled"], Sa = ["name", "min", "max", "disabled"];
|
|
1477
1477
|
function _a(e, n, t, l, s, o) {
|
|
1478
1478
|
return m(), h(E, null, [
|
|
1479
|
-
|
|
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
|
-
|
|
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", _a], ["__scopeId", "data-v-7bc31020"]]), ka = D({
|
|
1512
1512
|
props: {
|
|
1513
1513
|
name: String,
|
|
1514
1514
|
value: Object,
|
|
@@ -1520,10 +1520,10 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
|
|
|
1520
1520
|
components: {},
|
|
1521
1521
|
emits: ["change"],
|
|
1522
1522
|
setup(e, n) {
|
|
1523
|
-
const t =
|
|
1523
|
+
const t = C("boneState"), l = w({
|
|
1524
1524
|
counter: 0,
|
|
1525
1525
|
debounce: null
|
|
1526
|
-
}), s =
|
|
1526
|
+
}), s = C("addMultipleEntry"), o = C("removeMultipleEntries");
|
|
1527
1527
|
function a() {
|
|
1528
1528
|
l.counter += 1;
|
|
1529
1529
|
let r = 200;
|
|
@@ -1533,7 +1533,7 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
|
|
|
1533
1533
|
l.counter = 0;
|
|
1534
1534
|
}, r);
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function i() {
|
|
1537
1537
|
let r = 200;
|
|
1538
1538
|
l.debounce && clearTimeout(l.debounce), l.debounce = setTimeout(() => {
|
|
1539
1539
|
o(e.lang);
|
|
@@ -1545,16 +1545,16 @@ const qe = /* @__PURE__ */ I(ya, [["render", _a], ["__scopeId", "data-v-7bc31020
|
|
|
1545
1545
|
state: l,
|
|
1546
1546
|
boneState: t,
|
|
1547
1547
|
handleAdd: a,
|
|
1548
|
-
handleRemove:
|
|
1548
|
+
handleRemove: i,
|
|
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));
|
|
@@ -1577,9 +1577,9 @@ function ja(e, n, t, l, s, o) {
|
|
|
1577
1577
|
onClick: n[1] || (n[1] = (a) => e.handleAdd(e.lang))
|
|
1578
1578
|
}, [
|
|
1579
1579
|
Oa,
|
|
1580
|
-
|
|
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
1583
|
], 64)) : k("", !0)
|
|
1584
1584
|
], 8, Ca)) : k("", !0)
|
|
1585
1585
|
]);
|
|
@@ -1598,17 +1598,17 @@ const Va = D({
|
|
|
1598
1598
|
components: {},
|
|
1599
1599
|
emits: ["change"],
|
|
1600
1600
|
setup(e, n) {
|
|
1601
|
-
const t =
|
|
1601
|
+
const t = C("boneState"), l = C("addMultipleEntry"), s = C("formatString"), o = null, a = w({
|
|
1602
1602
|
skels: {},
|
|
1603
1603
|
hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
|
|
1604
1604
|
});
|
|
1605
|
-
function
|
|
1605
|
+
function i(r) {
|
|
1606
1606
|
let c = "";
|
|
1607
|
-
return t.bonestructure.type === "relational.tree.leaf.file" ? c = "skelType=leaf&" : t.bonestructure.type === "relational.tree.node.file" && (c = "skelType=node&"),
|
|
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
|
|
1611
|
+
const f = await u.json();
|
|
1612
1612
|
return a.skels = f.skellist.reduce((v, _) => (v[_.key] = _, 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
|
}
|
|
@@ -1619,19 +1619,19 @@ const Va = D({
|
|
|
1619
1619
|
boneState: t,
|
|
1620
1620
|
addMultipleEntry: l,
|
|
1621
1621
|
removeMultipleEntries: o,
|
|
1622
|
-
getList:
|
|
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,
|
|
@@ -1641,13 +1641,13 @@ function za(e, n, t, l, s, o) {
|
|
|
1641
1641
|
class: "delete-btn",
|
|
1642
1642
|
onClick: n[0] || (n[0] = (a) => e.openSelector())
|
|
1643
1643
|
}, Ua, 8, Ra)) : k("", !0),
|
|
1644
|
-
|
|
1644
|
+
d("sl-combobox", {
|
|
1645
1645
|
source: e.getList,
|
|
1646
1646
|
hoist: "",
|
|
1647
1647
|
onSlItemSelect: n[1] || (n[1] = (a) => {
|
|
1648
|
-
var
|
|
1648
|
+
var i;
|
|
1649
1649
|
return e.addMultipleEntry(e.lang, {
|
|
1650
|
-
dest: (
|
|
1650
|
+
dest: (i = e.state.skels) == null ? void 0 : i[a.detail.item.value],
|
|
1651
1651
|
rel: e.state.hasUsing ? void 0 : null
|
|
1652
1652
|
});
|
|
1653
1653
|
})
|
|
@@ -1661,12 +1661,12 @@ function za(e, n, t, l, s, o) {
|
|
|
1661
1661
|
onClick: n[2] || (n[2] = (a) => e.addMultipleEntry(e.lang))
|
|
1662
1662
|
}, [
|
|
1663
1663
|
Ma,
|
|
1664
|
-
|
|
1664
|
+
j(" " + B(e.$t("bone.list")), 1)
|
|
1665
1665
|
], 8, Pa)) : k("", !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,
|
|
@@ -1679,26 +1679,26 @@ const qa = D({
|
|
|
1679
1679
|
components: {},
|
|
1680
1680
|
emits: ["change"],
|
|
1681
1681
|
setup(e, n) {
|
|
1682
|
-
const t =
|
|
1683
|
-
|
|
1684
|
-
const s = null, o =
|
|
1682
|
+
const t = C("boneState"), l = C("addMultipleEntry");
|
|
1683
|
+
C("formatString");
|
|
1684
|
+
const s = null, o = q(), a = w({
|
|
1685
1685
|
skels: {},
|
|
1686
1686
|
uploadinput: null,
|
|
1687
1687
|
loading: !1,
|
|
1688
1688
|
droparea: !1,
|
|
1689
1689
|
hasUsing: S(() => t == null ? void 0 : t.bonestructure.using)
|
|
1690
1690
|
});
|
|
1691
|
-
function u
|
|
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
|
-
|
|
1698
|
+
O.securePost(`/${qe.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: f }).then(async (_) => {
|
|
1699
1699
|
let g = await _.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
|
-
|
|
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(($) => {
|
|
@@ -1721,20 +1721,20 @@ const qa = D({
|
|
|
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
|
|
1727
|
-
let p = await
|
|
1726
|
+
for (let f of u.target.files) {
|
|
1727
|
+
let p = await i(f);
|
|
1728
1728
|
o.value.value = null;
|
|
1729
1729
|
let v = null;
|
|
1730
1730
|
a.hasUsing && (v = void 0), l(e.lang, { dest: p, rel: v });
|
|
1731
1731
|
}
|
|
1732
1732
|
a.loading = !1;
|
|
1733
1733
|
}
|
|
1734
|
-
async function c(
|
|
1734
|
+
async function c(u) {
|
|
1735
1735
|
a.loading = !0, a.droparea = !1;
|
|
1736
|
-
for (let f of
|
|
1737
|
-
let p = await
|
|
1736
|
+
for (let f of u.dataTransfer.files) {
|
|
1737
|
+
let p = await i(f);
|
|
1738
1738
|
o.value.value = null;
|
|
1739
1739
|
let v = null;
|
|
1740
1740
|
a.hasUsing && (v = void 0), l(e.lang, { dest: p, rel: v });
|
|
@@ -1748,13 +1748,13 @@ const qa = D({
|
|
|
1748
1748
|
boneState: t,
|
|
1749
1749
|
addMultipleEntry: l,
|
|
1750
1750
|
removeMultipleEntries: s,
|
|
1751
|
-
uploadFile:
|
|
1751
|
+
uploadFile: i,
|
|
1752
1752
|
uploadinput: o,
|
|
1753
1753
|
handleUpload: r,
|
|
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,
|
|
@@ -1787,7 +1787,7 @@ function ts(e, n, t, l, s, o) {
|
|
|
1787
1787
|
onClick: n[0] || (n[0] = (a) => e.openSelector())
|
|
1788
1788
|
}, Ha, 8, Fa)) : k("", !0),
|
|
1789
1789
|
e.state.droparea ? (m(), h("div", Ga, " Dateien hier hinziehen ")) : k("", !0),
|
|
1790
|
-
|
|
1790
|
+
d("input", {
|
|
1791
1791
|
ref: "uploadinput",
|
|
1792
1792
|
hidden: "",
|
|
1793
1793
|
type: "file",
|
|
@@ -1810,44 +1810,44 @@ function ts(e, n, t, l, s, o) {
|
|
|
1810
1810
|
onClick: n[3] || (n[3] = (a) => e.uploadinput.click())
|
|
1811
1811
|
}, [
|
|
1812
1812
|
xa,
|
|
1813
|
-
|
|
1813
|
+
j(" " + B(e.$t("bone.upload")) + " ", 1),
|
|
1814
1814
|
e.state.loading ? (m(), h("sl-spinner", es)) : k("", !0)
|
|
1815
1815
|
], 8, Xa)) : k("", !0)
|
|
1816
1816
|
], 32);
|
|
1817
1817
|
}
|
|
1818
|
-
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
|
-
additionalBones:
|
|
1821
|
-
defaultBones:
|
|
1822
|
-
rawBone:
|
|
1823
|
-
keyBone:
|
|
1824
|
-
stringBone:
|
|
1825
|
-
emailBone:
|
|
1826
|
-
dateBone:
|
|
1827
|
-
booleanBone:
|
|
1828
|
-
selectBone:
|
|
1829
|
-
passwordBone:
|
|
1830
|
-
recordBone:
|
|
1831
|
-
numericBone:
|
|
1832
|
-
colorBone:
|
|
1833
|
-
relationalBone:
|
|
1820
|
+
additionalBones: H({}),
|
|
1821
|
+
defaultBones: H({
|
|
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
|
-
actionbars:
|
|
1839
|
+
actionbars: H({
|
|
1840
1840
|
"relational.tree.leaf.file.file": ns,
|
|
1841
|
-
"relational.":
|
|
1841
|
+
"relational.": za
|
|
1842
1842
|
}),
|
|
1843
|
-
multibones:
|
|
1843
|
+
multibones: H(["select", "select."])
|
|
1844
1844
|
});
|
|
1845
|
-
function n(a,
|
|
1846
|
-
e.additionalBones[a] =
|
|
1845
|
+
function n(a, i) {
|
|
1846
|
+
e.additionalBones[a] = i;
|
|
1847
1847
|
}
|
|
1848
1848
|
function t() {
|
|
1849
1849
|
let a = e.defaultBones;
|
|
1850
|
-
for (const [
|
|
1850
|
+
for (const [i, r] of Object.entries(e.additionalBones))
|
|
1851
1851
|
a.add(r);
|
|
1852
1852
|
return a;
|
|
1853
1853
|
}
|
|
@@ -1855,30 +1855,30 @@ const ns = /* @__PURE__ */ I(qa, [["render", ts], ["__scopeId", "data-v-9bac9f8a
|
|
|
1855
1855
|
if (Object.keys(e.additionalBones).includes(a))
|
|
1856
1856
|
return e.additionalBones[a];
|
|
1857
1857
|
{
|
|
1858
|
-
let
|
|
1859
|
-
(c) => c[0].startsWith(
|
|
1858
|
+
let i = a.split("."), r = Object.entries(e.additionalBones).filter(
|
|
1859
|
+
(c) => c[0].startsWith(i[0] + ".")
|
|
1860
1860
|
);
|
|
1861
1861
|
if (r.length > 0) {
|
|
1862
|
-
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
|
-
function s(a,
|
|
1871
|
-
e.actionbars[a] =
|
|
1870
|
+
function s(a, i) {
|
|
1871
|
+
e.actionbars[a] = i;
|
|
1872
1872
|
}
|
|
1873
1873
|
function o(a) {
|
|
1874
1874
|
if (Object.keys(e.actionbars).includes(a))
|
|
1875
1875
|
return e.actionbars[a];
|
|
1876
1876
|
{
|
|
1877
|
-
let
|
|
1878
|
-
(c) => c[0].startsWith(
|
|
1877
|
+
let i = a.split("."), r = Object.entries(e.actionbars).filter(
|
|
1878
|
+
(c) => c[0].startsWith(i[0] + ".")
|
|
1879
1879
|
);
|
|
1880
1880
|
if (r.length > 0) {
|
|
1881
|
-
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
|
-
function
|
|
1902
|
-
return
|
|
1901
|
+
function X(e) {
|
|
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,14 +2014,14 @@ 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
|
}
|
|
2021
2021
|
function s(g, b, y) {
|
|
2022
2022
|
y.preventDefault();
|
|
2023
2023
|
const $ = y.clientY - y.target.getBoundingClientRect().top, A = y.target.closest(".value-line");
|
|
2024
|
-
$ < A.offsetHeight / 2 ? (a(b, g, "draggingLineTop"),
|
|
2024
|
+
$ < A.offsetHeight / 2 ? (a(b, g, "draggingLineTop"), i("draggingLineBottom"), t.dropIndex.index = g) : (a(b, g, "draggingLineBottom"), i("draggingLineTop"), t.dropIndex.index = g + 1);
|
|
2025
2025
|
let L = b ? t.bonevalue[b] : t.bonevalue;
|
|
2026
2026
|
t.dropIndex.index > L.length - 1 && (t.dropIndex.index -= 1);
|
|
2027
2027
|
}
|
|
@@ -2032,12 +2032,12 @@ D({
|
|
|
2032
2032
|
value: c(),
|
|
2033
2033
|
lang: b,
|
|
2034
2034
|
index: g
|
|
2035
|
-
})),
|
|
2035
|
+
})), i("draggingLineBottom", "draggingLineTop", "isDragging", "dragStartIndex", "dropIndex");
|
|
2036
2036
|
}
|
|
2037
2037
|
function a(g, b, y) {
|
|
2038
2038
|
t[y].lang = g || null, t[y].index = b;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function i(...g) {
|
|
2041
2041
|
g.forEach((b) => {
|
|
2042
2042
|
t[b] = {
|
|
2043
2043
|
lang: null,
|
|
@@ -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,58 +2112,58 @@ 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
2119
|
function _(g, b) {
|
|
2120
2120
|
function y(V) {
|
|
2121
|
-
let
|
|
2122
|
-
for (;
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2121
|
+
let G = [], F = [], te = /\$\((.*?)\)/g;
|
|
2122
|
+
for (; F; ) {
|
|
2123
|
+
if (F = te.exec(V), !F) {
|
|
2124
|
+
F = !1;
|
|
2125
2125
|
continue;
|
|
2126
2126
|
}
|
|
2127
|
-
|
|
2127
|
+
G.push(F[1]);
|
|
2128
2128
|
}
|
|
2129
|
-
return
|
|
2129
|
+
return G;
|
|
2130
2130
|
}
|
|
2131
|
-
function $(V,
|
|
2132
|
-
let
|
|
2133
|
-
for (let
|
|
2134
|
-
if (
|
|
2135
|
-
if (Array.isArray(P[
|
|
2136
|
-
let
|
|
2137
|
-
for (let
|
|
2138
|
-
|
|
2139
|
-
P =
|
|
2131
|
+
function $(V, G) {
|
|
2132
|
+
let F = V.split("."), te = V.split("."), P = G;
|
|
2133
|
+
for (let Q of F)
|
|
2134
|
+
if (te.shift(), P && P !== "-" && Object.keys(P).includes(Q) && P[Q])
|
|
2135
|
+
if (Array.isArray(P[Q])) {
|
|
2136
|
+
let Ae = [];
|
|
2137
|
+
for (let xe of P[Q])
|
|
2138
|
+
Ae.push($(te.join("."), xe));
|
|
2139
|
+
P = Ae.join(", ");
|
|
2140
2140
|
} else
|
|
2141
|
-
P = P[
|
|
2142
|
-
else (!P || typeof P[
|
|
2141
|
+
P = P[Q];
|
|
2142
|
+
else (!P || typeof P[Q] == "object" && !P[Q]) && (P = "-");
|
|
2143
2143
|
return P;
|
|
2144
2144
|
}
|
|
2145
2145
|
let A = y(g), L = [];
|
|
2146
2146
|
Array.isArray(b) || (b = [b]);
|
|
2147
2147
|
for (let V of b) {
|
|
2148
|
-
let
|
|
2149
|
-
for (let
|
|
2150
|
-
let
|
|
2151
|
-
|
|
2148
|
+
let G = g;
|
|
2149
|
+
for (let F of A) {
|
|
2150
|
+
let te = $(F, V);
|
|
2151
|
+
G = G.replace("$(" + F + ")", te);
|
|
2152
2152
|
}
|
|
2153
|
-
L.push(
|
|
2153
|
+
L.push(G);
|
|
2154
2154
|
}
|
|
2155
2155
|
return L.join(", ");
|
|
2156
2156
|
}
|
|
2157
|
-
return
|
|
2157
|
+
return oe("formatString", _), x(() => {
|
|
2158
2158
|
var g;
|
|
2159
2159
|
e.value ? t.bonevalue = e.value : t.bonevalue = (g = e.skel) == null ? void 0 : g[e.name];
|
|
2160
|
-
}),
|
|
2160
|
+
}), 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,
|
|
@@ -2183,11 +2183,11 @@ D({
|
|
|
2183
2183
|
handleDragOver: s,
|
|
2184
2184
|
handleDrop: o,
|
|
2185
2185
|
setStateProperties: a,
|
|
2186
|
-
resetStateProperties:
|
|
2186
|
+
resetStateProperties: i
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
2189
2189
|
});
|
|
2190
|
-
const
|
|
2190
|
+
const _e = {
|
|
2191
2191
|
props: {
|
|
2192
2192
|
size: {
|
|
2193
2193
|
type: String,
|
|
@@ -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
|
-
|
|
2228
|
+
}, Ke = _e.setup;
|
|
2229
|
+
_e.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
|
])) : k("", !0)
|
|
2243
2243
|
]),
|
|
2244
2244
|
_: 1
|
|
2245
2245
|
});
|
|
2246
2246
|
}
|
|
2247
|
-
const cs = /* @__PURE__ */ I(
|
|
2247
|
+
const cs = /* @__PURE__ */ I(_e, [["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 u
|
|
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,20 +2295,20 @@ 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,
|
|
2303
2303
|
addToCart: o,
|
|
2304
2304
|
getArticleView: a,
|
|
2305
|
-
removeItem:
|
|
2305
|
+
removeItem: i,
|
|
2306
2306
|
updateItem: r,
|
|
2307
2307
|
init: t,
|
|
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-4b285730"), 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
|
-
], _s = { class: "viur-shop-cart-leaf-quantity" }, ks = { class: "viur-shop-cart-leaf-unitprice" }, ws = /* @__PURE__ */
|
|
2338
|
+
], _s = { class: "viur-shop-cart-leaf-quantity" }, ks = { 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,65 +2347,65 @@ 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
|
|
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
|
-
return
|
|
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
|
-
|
|
2388
|
+
d("div", _s, [
|
|
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", ks, [
|
|
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",
|
|
@@ -2413,9 +2413,9 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2413
2413
|
value: s.leaf.price.retail
|
|
2414
2414
|
}, null, 8, Es)
|
|
2415
2415
|
]),
|
|
2416
|
-
|
|
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",
|
|
@@ -2425,39 +2425,15 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2425
2425
|
])
|
|
2426
2426
|
]));
|
|
2427
2427
|
}
|
|
2428
|
-
}, js = /* @__PURE__ */ I(Os, [["__scopeId", "data-v-4b285730"]]),
|
|
2428
|
+
}, js = /* @__PURE__ */ I(Os, [["__scopeId", "data-v-4b285730"]]), 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__ */ K(() => /* @__PURE__ */ i("br", null, null, -1)), Ps = { class: "viur-shop-cart-sidebar-info-line" }, Ms = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Zwischensumme", -1)), zs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [
|
|
2435
|
-
/* @__PURE__ */ i("span", null, "Rabatt"),
|
|
2436
|
-
/* @__PURE__ */ C(" 0 € ")
|
|
2437
|
-
], -1)), Ws = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [
|
|
2438
|
-
/* @__PURE__ */ i("span", null, "Versandkosten"),
|
|
2439
|
-
/* @__PURE__ */ C(" 0 € ")
|
|
2440
|
-
], -1)), qs = { class: "viur-shop-cart-sidebar-info-line total" }, Fs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Gesamt:", -1)), Ks = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-btn-wrap" }, [
|
|
2441
|
-
/* @__PURE__ */ i("sl-button", {
|
|
2442
|
-
variant: "primary",
|
|
2443
|
-
size: "medium"
|
|
2444
|
-
}, " Jetzt Bestellen "),
|
|
2445
|
-
/* @__PURE__ */ i("sl-button", {
|
|
2446
|
-
size: "medium",
|
|
2447
|
-
variant: "info"
|
|
2448
|
-
}, [
|
|
2449
|
-
/* @__PURE__ */ i("sl-icon", {
|
|
2450
|
-
name: "paypal",
|
|
2451
|
-
slot: "prefix"
|
|
2452
|
-
}),
|
|
2453
|
-
/* @__PURE__ */ C(" Paypal ")
|
|
2454
|
-
])
|
|
2455
|
-
], -1)), Hs = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-mobile-footer" }, [
|
|
2456
|
-
/* @__PURE__ */ i("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", {
|
|
2457
2433
|
variant: "primary",
|
|
2458
2434
|
size: "medium"
|
|
2459
2435
|
}, " Jetzt Bestellen ")
|
|
2460
|
-
], -1)),
|
|
2436
|
+
], -1)), Ls = {
|
|
2461
2437
|
__name: "CartView",
|
|
2462
2438
|
props: {
|
|
2463
2439
|
mode: { type: String, default: "basket" },
|
|
@@ -2465,7 +2441,7 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2465
2441
|
sidebar: { type: Boolean, default: !0 }
|
|
2466
2442
|
},
|
|
2467
2443
|
setup(e) {
|
|
2468
|
-
const n = e, t =
|
|
2444
|
+
const n = e, t = re(), l = q(null), s = w({
|
|
2469
2445
|
itemsIsInit: S(() => !0),
|
|
2470
2446
|
images: {},
|
|
2471
2447
|
currentItem: {},
|
|
@@ -2484,7 +2460,7 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2484
2460
|
async function a(f) {
|
|
2485
2461
|
console.log("updateItem :", f), f.quantity === 0 ? (l.value.show(), s.currentItem = f.item, s.currentNode = f.node) : (await t.updateItem(f.articleKey, f.node.key, f.quantity), await t.init());
|
|
2486
2462
|
}
|
|
2487
|
-
function
|
|
2463
|
+
function i(f) {
|
|
2488
2464
|
console.log("removeItem :", f), l.value.show(), s.currentItem = f.item, s.currentNode = f.node;
|
|
2489
2465
|
}
|
|
2490
2466
|
async function r() {
|
|
@@ -2493,31 +2469,31 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2493
2469
|
}), s.currentItem = {}, s.currentNode = {};
|
|
2494
2470
|
}
|
|
2495
2471
|
async function c() {
|
|
2496
|
-
s.nodes = [], s.leaves = {}, await t.init(), await
|
|
2472
|
+
s.nodes = [], s.leaves = {}, await t.init(), await u();
|
|
2497
2473
|
}
|
|
2498
|
-
async function
|
|
2474
|
+
async function u(f = n.cartKey) {
|
|
2499
2475
|
console.log("debug getChildren parentKey from comp: ", f);
|
|
2500
2476
|
const p = await t.getChildren(f);
|
|
2501
2477
|
console.log("getChildren children: ", p), p.forEach(async (v) => {
|
|
2502
|
-
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));
|
|
2503
2479
|
});
|
|
2504
2480
|
}
|
|
2505
|
-
return
|
|
2506
|
-
await t.init(), await
|
|
2481
|
+
return x(async () => {
|
|
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);
|
|
2507
2483
|
}), (f, p) => e.cartKey.length ? (m(), h(E, { key: 1 }, [
|
|
2508
|
-
|
|
2484
|
+
d("sl-dialog", {
|
|
2509
2485
|
ref_key: "confirm",
|
|
2510
2486
|
ref: l,
|
|
2511
2487
|
onSlHide: r
|
|
2512
2488
|
}, [
|
|
2513
2489
|
Ds,
|
|
2514
|
-
|
|
2515
|
-
|
|
2490
|
+
d("div", Vs, [
|
|
2491
|
+
d("sl-button", {
|
|
2516
2492
|
variant: "danger",
|
|
2517
2493
|
onClick: p[0] || (p[0] = (v) => l.value.hide()),
|
|
2518
2494
|
size: "medium"
|
|
2519
2495
|
}, " Abbrechen "),
|
|
2520
|
-
|
|
2496
|
+
d("sl-button", {
|
|
2521
2497
|
variant: "success",
|
|
2522
2498
|
onClick: o,
|
|
2523
2499
|
size: "medium"
|
|
@@ -2526,112 +2502,92 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2526
2502
|
], 544),
|
|
2527
2503
|
(m(!0), h(E, null, U(s.nodes, (v) => (m(), h("div", Ns, [
|
|
2528
2504
|
Object.keys(s.leaves).includes(v.key) ? (m(), h(E, { key: 0 }, [
|
|
2529
|
-
|
|
2505
|
+
ut(fs, { node: v }, null, 8, ["node"]),
|
|
2530
2506
|
(m(!0), h(E, null, U(s.leaves[v.key], (_) => (m(), T(js, {
|
|
2531
2507
|
key: _.key,
|
|
2532
2508
|
leaf: _,
|
|
2533
2509
|
node: v,
|
|
2534
|
-
onRemoveItem:
|
|
2510
|
+
onRemoveItem: i,
|
|
2535
2511
|
onUpdateItem: a
|
|
2536
2512
|
}, null, 8, ["leaf", "node"]))), 128))
|
|
2537
2513
|
], 64)) : k("", !0)
|
|
2538
2514
|
]))), 256)),
|
|
2539
|
-
|
|
2540
|
-
key: 0,
|
|
2541
|
-
to: "#order_sidebar"
|
|
2542
|
-
}, [
|
|
2543
|
-
Rs,
|
|
2544
|
-
Ls,
|
|
2545
|
-
Us,
|
|
2546
|
-
Ts,
|
|
2547
|
-
i("div", Ps, [
|
|
2548
|
-
Ms,
|
|
2549
|
-
C(" " + B(e.mode === "basket" ? q(t).state.basketRootNode.total : q(t).state.whishlistRootNodes[e.cartKey].total) + " € ", 1)
|
|
2550
|
-
]),
|
|
2551
|
-
zs,
|
|
2552
|
-
Ws,
|
|
2553
|
-
i("div", qs, [
|
|
2554
|
-
Fs,
|
|
2555
|
-
C(" " + B(e.mode === "basket" ? q(t).state.basketRootNode.total : q(t).state.whishlistRootNodes[e.cartKey].total) + " € ", 1)
|
|
2556
|
-
]),
|
|
2557
|
-
Ks
|
|
2558
|
-
])) : k("", !0),
|
|
2559
|
-
Hs
|
|
2515
|
+
Rs
|
|
2560
2516
|
], 64)) : (m(), h("sl-spinner", Bs));
|
|
2561
2517
|
}
|
|
2562
|
-
},
|
|
2518
|
+
}, ke = /* @__PURE__ */ I(Ls, [["__scopeId", "data-v-8dd1e557"]]), Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2563
2519
|
__proto__: null,
|
|
2564
|
-
default:
|
|
2565
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2520
|
+
default: ke
|
|
2521
|
+
}, Symbol.toStringTag, { value: "Module" })), J = (e) => (M("data-v-b7b745be"), e = e(), z(), e), Ts = {
|
|
2566
2522
|
key: 1,
|
|
2567
2523
|
class: "list"
|
|
2568
|
-
},
|
|
2569
|
-
/* @__PURE__ */
|
|
2570
|
-
/* @__PURE__ */
|
|
2571
|
-
/* @__PURE__ */
|
|
2572
|
-
/* @__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" }, [
|
|
2527
|
+
/* @__PURE__ */ j(" Versandadresse "),
|
|
2528
|
+
/* @__PURE__ */ d("sl-button", {
|
|
2573
2529
|
outline: "",
|
|
2574
2530
|
size: "small"
|
|
2575
2531
|
}, [
|
|
2576
|
-
/* @__PURE__ */
|
|
2532
|
+
/* @__PURE__ */ d("sl-icon", {
|
|
2577
2533
|
name: "pencil",
|
|
2578
2534
|
slot: "prefix"
|
|
2579
2535
|
})
|
|
2580
2536
|
])
|
|
2581
2537
|
]),
|
|
2582
|
-
/* @__PURE__ */
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
/* @__PURE__ */
|
|
2585
|
-
/* @__PURE__ */
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
/* @__PURE__ */
|
|
2591
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ j(" Roland Brose"),
|
|
2539
|
+
/* @__PURE__ */ d("br"),
|
|
2540
|
+
/* @__PURE__ */ j(" Speicherstraße 33"),
|
|
2541
|
+
/* @__PURE__ */ d("br"),
|
|
2542
|
+
/* @__PURE__ */ j(" 44147 Dortmund, DE"),
|
|
2543
|
+
/* @__PURE__ */ d("br"),
|
|
2544
|
+
/* @__PURE__ */ d("br"),
|
|
2545
|
+
/* @__PURE__ */ j(" rb@mausbrand.de"),
|
|
2546
|
+
/* @__PURE__ */ d("br"),
|
|
2547
|
+
/* @__PURE__ */ j(" 0231 21 34 68 90 ")
|
|
2592
2548
|
]),
|
|
2593
|
-
/* @__PURE__ */
|
|
2594
|
-
/* @__PURE__ */
|
|
2595
|
-
/* @__PURE__ */
|
|
2596
|
-
/* @__PURE__ */
|
|
2549
|
+
/* @__PURE__ */ d("div", { class: "viur-shop-cart-address" }, [
|
|
2550
|
+
/* @__PURE__ */ d("div", { class: "viur-shop-cart-address-headline" }, [
|
|
2551
|
+
/* @__PURE__ */ j(" Rechnungsadresse "),
|
|
2552
|
+
/* @__PURE__ */ d("sl-button", {
|
|
2597
2553
|
outline: "",
|
|
2598
2554
|
size: "small"
|
|
2599
2555
|
}, [
|
|
2600
|
-
/* @__PURE__ */
|
|
2556
|
+
/* @__PURE__ */ d("sl-icon", {
|
|
2601
2557
|
name: "pencil",
|
|
2602
2558
|
slot: "prefix"
|
|
2603
2559
|
})
|
|
2604
2560
|
])
|
|
2605
2561
|
]),
|
|
2606
|
-
/* @__PURE__ */
|
|
2607
|
-
/* @__PURE__ */
|
|
2608
|
-
/* @__PURE__ */
|
|
2609
|
-
/* @__PURE__ */
|
|
2610
|
-
/* @__PURE__ */
|
|
2611
|
-
/* @__PURE__ */
|
|
2612
|
-
/* @__PURE__ */
|
|
2613
|
-
/* @__PURE__ */
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
/* @__PURE__ */
|
|
2562
|
+
/* @__PURE__ */ j(" Roland Brose"),
|
|
2563
|
+
/* @__PURE__ */ d("br"),
|
|
2564
|
+
/* @__PURE__ */ j(" Speicherstraße 33"),
|
|
2565
|
+
/* @__PURE__ */ d("br"),
|
|
2566
|
+
/* @__PURE__ */ j(" 44147 Dortmund, DE"),
|
|
2567
|
+
/* @__PURE__ */ d("br"),
|
|
2568
|
+
/* @__PURE__ */ d("br"),
|
|
2569
|
+
/* @__PURE__ */ j(" rb@mausbrand.de"),
|
|
2570
|
+
/* @__PURE__ */ d("br"),
|
|
2571
|
+
/* @__PURE__ */ j(" 0231 21 34 68 90 ")
|
|
2616
2572
|
])
|
|
2617
|
-
], -1)),
|
|
2618
|
-
/* @__PURE__ */
|
|
2619
|
-
/* @__PURE__ */
|
|
2620
|
-
/* @__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:"),
|
|
2576
|
+
/* @__PURE__ */ j(" Paypal ")
|
|
2621
2577
|
]),
|
|
2622
|
-
/* @__PURE__ */
|
|
2578
|
+
/* @__PURE__ */ d("sl-button", {
|
|
2623
2579
|
outline: "",
|
|
2624
2580
|
size: "small"
|
|
2625
2581
|
}, [
|
|
2626
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ d("sl-icon", {
|
|
2627
2583
|
name: "pencil",
|
|
2628
2584
|
slot: "prefix"
|
|
2629
2585
|
})
|
|
2630
2586
|
])
|
|
2631
|
-
], -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 = {
|
|
2632
2588
|
__name: "ConfirmView",
|
|
2633
2589
|
setup(e) {
|
|
2634
|
-
const n =
|
|
2590
|
+
const n = re(), t = w({
|
|
2635
2591
|
cartIsInit: S(() => !0),
|
|
2636
2592
|
itemsIsInit: S(() => {
|
|
2637
2593
|
var s;
|
|
@@ -2643,42 +2599,42 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2643
2599
|
function l(s) {
|
|
2644
2600
|
s.target.checked && (t.showOrderButton = !0), s.target.checked || (t.showOrderButton = !1);
|
|
2645
2601
|
}
|
|
2646
|
-
return
|
|
2602
|
+
return x(async () => {
|
|
2647
2603
|
await n.init();
|
|
2648
|
-
}), (s, o) => t.cartIsInit ? (m(), h("div",
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
(m(), T(
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2604
|
+
}), (s, o) => t.cartIsInit ? (m(), h("div", Ts, [
|
|
2605
|
+
Ps,
|
|
2606
|
+
Ms,
|
|
2607
|
+
Ws,
|
|
2608
|
+
zs,
|
|
2609
|
+
qs,
|
|
2610
|
+
Fs,
|
|
2611
|
+
(m(), T(dt, { to: "#order_sidebar" }, [
|
|
2612
|
+
Ks,
|
|
2613
|
+
Hs,
|
|
2614
|
+
d("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32),
|
|
2615
|
+
d("div", Gs, [
|
|
2616
|
+
d("sl-button", {
|
|
2661
2617
|
variant: t.showOrderButton ? "info" : "disabled",
|
|
2662
2618
|
size: "small",
|
|
2663
2619
|
disabled: !t.showOrderButton
|
|
2664
|
-
}, " Zahlungspflichtig bestellen ", 8,
|
|
2620
|
+
}, " Zahlungspflichtig bestellen ", 8, Zs)
|
|
2665
2621
|
])
|
|
2666
2622
|
]))
|
|
2667
2623
|
])) : (m(), T(cs, { key: 0 }));
|
|
2668
2624
|
}
|
|
2669
|
-
},
|
|
2625
|
+
}, we = /* @__PURE__ */ I(Js, [["__scopeId", "data-v-b7b745be"]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2670
2626
|
__proto__: null,
|
|
2671
|
-
default:
|
|
2672
|
-
}, 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 = {
|
|
2673
2629
|
key: 0,
|
|
2674
2630
|
name: "chevron-right",
|
|
2675
2631
|
class: "viur-shop-order-tab-check"
|
|
2676
|
-
},
|
|
2677
|
-
/* @__PURE__ */
|
|
2632
|
+
}, sl = ["name"], ll = ["onClick"], rl = ["onClick"], ol = /* @__PURE__ */ Ys(() => /* @__PURE__ */ d("div", { class: "viur-shop-sidebar-wrap" }, [
|
|
2633
|
+
/* @__PURE__ */ d("div", {
|
|
2678
2634
|
class: "viur-shop-sidebar",
|
|
2679
2635
|
id: "order_sidebar"
|
|
2680
2636
|
})
|
|
2681
|
-
], -1)),
|
|
2637
|
+
], -1)), il = {
|
|
2682
2638
|
__name: "OrderView",
|
|
2683
2639
|
props: {
|
|
2684
2640
|
tabs: {
|
|
@@ -2690,30 +2646,30 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2690
2646
|
setup(e, { emit: n }) {
|
|
2691
2647
|
const t = e, l = n, s = w({
|
|
2692
2648
|
tabNames: S(() => a(t.tabs)),
|
|
2693
|
-
isFirstTab: (
|
|
2694
|
-
}), o =
|
|
2695
|
-
function a(
|
|
2649
|
+
isFirstTab: (u) => u === 0
|
|
2650
|
+
}), o = q(null);
|
|
2651
|
+
function a(u) {
|
|
2696
2652
|
let f = [], p = [];
|
|
2697
|
-
for (const v in
|
|
2698
|
-
|
|
2653
|
+
for (const v in u)
|
|
2654
|
+
u[v].position ? f.push([v, u[v].position]) : f.push([v, 0]);
|
|
2699
2655
|
return f.sort((v, _) => v[1] - _[1]), f.forEach((v) => {
|
|
2700
2656
|
p.push(v[0]);
|
|
2701
2657
|
}), p;
|
|
2702
2658
|
}
|
|
2703
|
-
function u
|
|
2704
|
-
l("tabChange",
|
|
2659
|
+
function i(u) {
|
|
2660
|
+
l("tabChange", u);
|
|
2705
2661
|
}
|
|
2706
|
-
function r(
|
|
2707
|
-
o.value.show(
|
|
2662
|
+
function r(u) {
|
|
2663
|
+
o.value.show(u);
|
|
2708
2664
|
}
|
|
2709
|
-
function c(
|
|
2710
|
-
o.value.show(
|
|
2665
|
+
function c(u) {
|
|
2666
|
+
o.value.show(u);
|
|
2711
2667
|
}
|
|
2712
|
-
return (
|
|
2713
|
-
|
|
2668
|
+
return (u, f) => (m(), h("div", Xs, [
|
|
2669
|
+
d("sl-tab-group", {
|
|
2714
2670
|
class: "viur-shop-order-tabgroup",
|
|
2715
2671
|
noScrollControls: "",
|
|
2716
|
-
onSlTabShow:
|
|
2672
|
+
onSlTabShow: i,
|
|
2717
2673
|
ref_key: "tabGroup",
|
|
2718
2674
|
ref: o
|
|
2719
2675
|
}, [
|
|
@@ -2724,74 +2680,74 @@ const cs = /* @__PURE__ */ I(ke, [["render", ds], ["__scopeId", "data-v-46c45785
|
|
|
2724
2680
|
key: p,
|
|
2725
2681
|
disabled: e.tabs[p].disabled
|
|
2726
2682
|
}, [
|
|
2727
|
-
|
|
2728
|
-
|
|
2683
|
+
d("div", el, [
|
|
2684
|
+
d("sl-icon", {
|
|
2729
2685
|
class: "viur-shop-order-step-icon",
|
|
2730
2686
|
name: e.tabs[p].icon.name,
|
|
2731
2687
|
library: e.tabs[p].icon.library
|
|
2732
|
-
}, null, 8,
|
|
2733
|
-
|
|
2688
|
+
}, null, 8, tl),
|
|
2689
|
+
d("div", nl, B(v + 1) + ". " + B(e.tabs[p].displayName), 1)
|
|
2734
2690
|
]),
|
|
2735
|
-
v < s.tabNames.length - 1 ? (m(), h("sl-icon",
|
|
2736
|
-
], 8,
|
|
2691
|
+
v < s.tabNames.length - 1 ? (m(), h("sl-icon", al)) : k("", !0)
|
|
2692
|
+
], 8, xs))), 128)),
|
|
2737
2693
|
(m(!0), h(E, null, U(s.tabNames, (p, v) => (m(), h("sl-tab-panel", {
|
|
2738
2694
|
class: "viur-shop-order-tab-panel",
|
|
2739
2695
|
name: p,
|
|
2740
2696
|
key: p
|
|
2741
2697
|
}, [
|
|
2742
|
-
(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)),
|
|
2743
2699
|
v !== s.tabNames.length - 1 ? (m(), h("div", {
|
|
2744
2700
|
key: 0,
|
|
2745
|
-
class:
|
|
2701
|
+
class: pe(["viur-shop-form-footer", { "flex-end": s.isFirstTab(v) }])
|
|
2746
2702
|
}, [
|
|
2747
|
-
|
|
2703
|
+
Z(d("sl-button", {
|
|
2748
2704
|
type: "submit",
|
|
2749
2705
|
onClick: (_) => r(s.tabNames[v - 1])
|
|
2750
|
-
}, " Zurück ", 8,
|
|
2751
|
-
[
|
|
2706
|
+
}, " Zurück ", 8, ll), [
|
|
2707
|
+
[be, v !== 0]
|
|
2752
2708
|
]),
|
|
2753
|
-
|
|
2709
|
+
d("sl-button", {
|
|
2754
2710
|
type: "submit",
|
|
2755
2711
|
variant: "primary",
|
|
2756
2712
|
onClick: (_) => c(s.tabNames[v + 1])
|
|
2757
|
-
}, " Weiter ", 8,
|
|
2713
|
+
}, " Weiter ", 8, rl)
|
|
2758
2714
|
], 2)) : k("", !0)
|
|
2759
|
-
], 8,
|
|
2715
|
+
], 8, sl))), 128))
|
|
2760
2716
|
], 544),
|
|
2761
|
-
|
|
2717
|
+
ol
|
|
2762
2718
|
]));
|
|
2763
2719
|
}
|
|
2764
|
-
},
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
2767
|
-
], -1)),
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
/* @__PURE__ */
|
|
2773
|
-
/* @__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:"),
|
|
2722
|
+
/* @__PURE__ */ j(" 123345670 ")
|
|
2723
|
+
], -1)), hl = /* @__PURE__ */ ge(() => /* @__PURE__ */ d("p", { class: "paragraph" }, [
|
|
2724
|
+
/* @__PURE__ */ j(" Wir haben Ihre Bestellung erhalten und werden diese schenllstmöglich bearbeiten."),
|
|
2725
|
+
/* @__PURE__ */ d("br"),
|
|
2726
|
+
/* @__PURE__ */ j(" Sie erhalten in wenigen Minuten eine Bestätigung per E-Mail. "),
|
|
2727
|
+
/* @__PURE__ */ d("div", { class: "btn-wrap" }, [
|
|
2728
|
+
/* @__PURE__ */ d("sl-button", { size: "medium" }, " Zur Startseite "),
|
|
2729
|
+
/* @__PURE__ */ d("sl-button", {
|
|
2774
2730
|
variant: "primary",
|
|
2775
2731
|
size: "medium"
|
|
2776
2732
|
}, " Weiter Einkaufen ")
|
|
2777
2733
|
])
|
|
2778
|
-
], -1)),
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2734
|
+
], -1)), bl = [
|
|
2735
|
+
fl,
|
|
2736
|
+
ml,
|
|
2737
|
+
gl,
|
|
2738
|
+
hl
|
|
2783
2739
|
];
|
|
2784
|
-
function
|
|
2785
|
-
return m(), h("div",
|
|
2740
|
+
function vl(e, n) {
|
|
2741
|
+
return m(), h("div", cl, bl);
|
|
2786
2742
|
}
|
|
2787
|
-
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 }, _l = /* @__PURE__ */ Ee(() => /* @__PURE__ */ d("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), kl = {
|
|
2788
2744
|
__name: "UserInformation",
|
|
2789
2745
|
props: {
|
|
2790
2746
|
mode: { type: String, default: "form" },
|
|
2791
2747
|
conditions: { type: Function }
|
|
2792
2748
|
},
|
|
2793
2749
|
setup(e) {
|
|
2794
|
-
const n =
|
|
2750
|
+
const n = re(), t = w({
|
|
2795
2751
|
formValues: {},
|
|
2796
2752
|
requiredFieldsFilled: S(() => {
|
|
2797
2753
|
if (t.isCustomAdress)
|
|
@@ -2806,96 +2762,96 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
2806
2762
|
function l(a) {
|
|
2807
2763
|
a.target.checked && (t.isCustomAdress = !1), a.target.checked || (t.isCustomAdress = !0);
|
|
2808
2764
|
}
|
|
2809
|
-
function s(a,
|
|
2810
|
-
for (const [r, c] of Object.entries(
|
|
2765
|
+
function s(a, i) {
|
|
2766
|
+
for (const [r, c] of Object.entries(i.value[0]))
|
|
2811
2767
|
t.formValues[r] = c;
|
|
2812
2768
|
}
|
|
2813
2769
|
function o(a) {
|
|
2814
|
-
let
|
|
2770
|
+
let i = {};
|
|
2815
2771
|
return Array.isArray(a) ? (a.forEach((r) => {
|
|
2816
|
-
let c = r[0],
|
|
2817
|
-
|
|
2818
|
-
}), console.log("output",
|
|
2772
|
+
let c = r[0], u = r[1];
|
|
2773
|
+
i[c] = u;
|
|
2774
|
+
}), console.log("output", i), i) : a;
|
|
2819
2775
|
}
|
|
2820
|
-
return
|
|
2821
|
-
Object.entries(a).forEach(([
|
|
2822
|
-
r === "" && delete t.formValues[
|
|
2776
|
+
return ne(t.formValues, (a) => {
|
|
2777
|
+
Object.entries(a).forEach(([i, r]) => {
|
|
2778
|
+
r === "" && delete t.formValues[i];
|
|
2823
2779
|
});
|
|
2824
|
-
}),
|
|
2780
|
+
}), x(async () => {
|
|
2825
2781
|
await n.getAdressStructure(), t.addSkel = o(n.state.structure.address);
|
|
2826
|
-
}), (a,
|
|
2827
|
-
const r =
|
|
2782
|
+
}), (a, i) => {
|
|
2783
|
+
const r = ae("bone");
|
|
2828
2784
|
return m(), h(E, null, [
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
(m(!0), h(E, null, U(t.addSkel, (c,
|
|
2833
|
-
|
|
2785
|
+
d("div", null, [
|
|
2786
|
+
j(" test "),
|
|
2787
|
+
yl,
|
|
2788
|
+
(m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
|
|
2789
|
+
j(B(u) + " ", 1),
|
|
2834
2790
|
c.visible && c.params.group === "Customer Info" ? (m(), T(r, {
|
|
2835
2791
|
key: 0,
|
|
2836
|
-
is:
|
|
2837
|
-
name:
|
|
2792
|
+
is: K(X)(c.type),
|
|
2793
|
+
name: u,
|
|
2838
2794
|
structure: o(t.addSkel),
|
|
2839
|
-
errors: t.errors[
|
|
2795
|
+
errors: t.errors[u] ? t.errors[u] : [],
|
|
2840
2796
|
skel: t.formValues,
|
|
2841
|
-
onChange: (f) => s(
|
|
2797
|
+
onChange: (f) => s(u, f),
|
|
2842
2798
|
class: "viur-shop-form-grid-w-2"
|
|
2843
2799
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
2844
2800
|
], 64))), 128))
|
|
2845
2801
|
]),
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
(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 }, [
|
|
2849
2805
|
c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
|
|
2850
2806
|
key: 0,
|
|
2851
|
-
is:
|
|
2852
|
-
name:
|
|
2807
|
+
is: K(X)(c.type),
|
|
2808
|
+
name: u,
|
|
2853
2809
|
structure: o(t.addSkel),
|
|
2854
|
-
errors: t.errors[
|
|
2810
|
+
errors: t.errors[u] ? t.errors[u] : [],
|
|
2855
2811
|
skel: t.formValues,
|
|
2856
|
-
onChange: (f) => s(
|
|
2812
|
+
onChange: (f) => s(u, f)
|
|
2857
2813
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
2858
2814
|
], 64))), 128))
|
|
2859
2815
|
]),
|
|
2860
|
-
t.isCustomAdress ? (m(), h("div",
|
|
2861
|
-
|
|
2862
|
-
(m(!0), h(E, null, U(t.addSkel, (c,
|
|
2816
|
+
t.isCustomAdress ? (m(), h("div", Sl, [
|
|
2817
|
+
_l,
|
|
2818
|
+
(m(!0), h(E, null, U(t.addSkel, (c, u) => (m(), h(E, { key: u }, [
|
|
2863
2819
|
c.visible && c.params.group === "Customer Address" ? (m(), T(r, {
|
|
2864
2820
|
key: 0,
|
|
2865
|
-
is:
|
|
2866
|
-
name:
|
|
2821
|
+
is: K(X)(c.type),
|
|
2822
|
+
name: u,
|
|
2867
2823
|
structure: o(t.addSkel),
|
|
2868
|
-
errors: t.errors[
|
|
2824
|
+
errors: t.errors[u] ? t.errors[u] : [],
|
|
2869
2825
|
skel: t.formValues,
|
|
2870
|
-
onChange: (f) => s(
|
|
2826
|
+
onChange: (f) => s(u, f)
|
|
2871
2827
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
2872
2828
|
], 64))), 128))
|
|
2873
2829
|
])) : k("", !0),
|
|
2874
|
-
|
|
2830
|
+
d("sl-checkbox", {
|
|
2875
2831
|
onSlChange: l,
|
|
2876
2832
|
checked: ""
|
|
2877
2833
|
}, " Rechnungsadresse wie Lieferadresse ", 32)
|
|
2878
2834
|
], 64);
|
|
2879
2835
|
};
|
|
2880
2836
|
}
|
|
2881
|
-
},
|
|
2837
|
+
}, wl = /* @__PURE__ */ I(kl, [["__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", {
|
|
2882
2838
|
name: "x-lg",
|
|
2883
2839
|
slot: "prefix"
|
|
2884
|
-
}, null, -1)),
|
|
2885
|
-
|
|
2886
|
-
],
|
|
2840
|
+
}, null, -1)), Dl = [
|
|
2841
|
+
Bl
|
|
2842
|
+
], Vl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
|
|
2887
2843
|
name: "plus-lg",
|
|
2888
2844
|
slot: "prefix"
|
|
2889
|
-
}, null, -1)),
|
|
2845
|
+
}, null, -1)), Nl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("sl-icon", {
|
|
2890
2846
|
slot: "icon",
|
|
2891
2847
|
name: "exclamation-triangle"
|
|
2892
|
-
}, null, -1)),
|
|
2848
|
+
}, null, -1)), Rl = /* @__PURE__ */ ee(() => /* @__PURE__ */ d("br", null, null, -1)), Ll = {
|
|
2893
2849
|
__name: "UserInfoMulti",
|
|
2894
2850
|
props: {
|
|
2895
2851
|
mode: { type: String, default: "form" }
|
|
2896
2852
|
},
|
|
2897
2853
|
setup(e) {
|
|
2898
|
-
const n =
|
|
2854
|
+
const n = re(), t = w({
|
|
2899
2855
|
formValues: {},
|
|
2900
2856
|
requiredFieldsFilled: S(() => {
|
|
2901
2857
|
if (t.isCustomAdress)
|
|
@@ -2914,7 +2870,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
2914
2870
|
errors: {},
|
|
2915
2871
|
selectedItem: {},
|
|
2916
2872
|
isInit: S(() => !!n.state.carts[n.state.basket])
|
|
2917
|
-
}), l =
|
|
2873
|
+
}), l = q(null), s = q(null);
|
|
2918
2874
|
function o(p) {
|
|
2919
2875
|
p.target.checked && (t.isCustomAdress = !1), p.target.checked || (t.isCustomAdress = !0);
|
|
2920
2876
|
}
|
|
@@ -2925,7 +2881,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
2925
2881
|
}
|
|
2926
2882
|
t.shippingAdressAmount += 1;
|
|
2927
2883
|
}
|
|
2928
|
-
function
|
|
2884
|
+
function i(p, v) {
|
|
2929
2885
|
for (const [_, g] of Object.entries(v.value[0]))
|
|
2930
2886
|
t.formValues[_] = g;
|
|
2931
2887
|
}
|
|
@@ -2938,12 +2894,12 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
2938
2894
|
}
|
|
2939
2895
|
function c(p, v) {
|
|
2940
2896
|
if (console.log(p.target.value), !p.target.value.length) {
|
|
2941
|
-
|
|
2897
|
+
u();
|
|
2942
2898
|
return;
|
|
2943
2899
|
}
|
|
2944
2900
|
t.selectedItem[v] = p.target.value, t.isItemSelected = !0;
|
|
2945
2901
|
}
|
|
2946
|
-
function
|
|
2902
|
+
function u(p, v) {
|
|
2947
2903
|
console.log("clearing..."), delete t.selectedItem[v], t.isItemSelected = !1;
|
|
2948
2904
|
}
|
|
2949
2905
|
function f(p) {
|
|
@@ -2953,114 +2909,114 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
2953
2909
|
v[g] = b;
|
|
2954
2910
|
}), v) : p;
|
|
2955
2911
|
}
|
|
2956
|
-
return
|
|
2912
|
+
return ne(t.formValues, (p) => {
|
|
2957
2913
|
Object.entries(p).forEach(([v, _]) => {
|
|
2958
2914
|
_ === "" && delete t.formValues[v];
|
|
2959
2915
|
});
|
|
2960
|
-
}),
|
|
2916
|
+
}), x(async () => {
|
|
2961
2917
|
await n.getAdressStructure(), t.addSkel = f(n.state.structure.address);
|
|
2962
2918
|
}), (p, v) => {
|
|
2963
|
-
const _ =
|
|
2919
|
+
const _ = ae("bone");
|
|
2964
2920
|
return m(), h(E, null, [
|
|
2965
|
-
|
|
2966
|
-
|
|
2921
|
+
d("div", null, [
|
|
2922
|
+
El,
|
|
2967
2923
|
(m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
|
|
2968
2924
|
g.visible && g.params.group === "Customer Info" ? (m(), T(_, {
|
|
2969
2925
|
key: 0,
|
|
2970
|
-
is:
|
|
2926
|
+
is: K(X)(g.type),
|
|
2971
2927
|
name: b,
|
|
2972
2928
|
structure: f(t.addSkel),
|
|
2973
2929
|
errors: t.errors[b] ? t.errors[b] : [],
|
|
2974
2930
|
skel: t.formValues,
|
|
2975
|
-
onChange: (y) =>
|
|
2931
|
+
onChange: (y) => i(b, y),
|
|
2976
2932
|
class: "viur-shop-form-grid-w-2"
|
|
2977
2933
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
2978
2934
|
], 64))), 128))
|
|
2979
2935
|
]),
|
|
2980
|
-
|
|
2936
|
+
Al,
|
|
2981
2937
|
(m(!0), h(E, null, U(t.shippingAdressAmount, (g) => (m(), h("div", { key: g }, [
|
|
2982
|
-
|
|
2938
|
+
d("sl-select", {
|
|
2983
2939
|
clearable: "",
|
|
2984
2940
|
ref_for: !0,
|
|
2985
2941
|
ref_key: "itemSelection",
|
|
2986
2942
|
ref: l,
|
|
2987
2943
|
onSlChange: (b) => c(b, g),
|
|
2988
|
-
onSlClear: (b) =>
|
|
2989
|
-
label: t.selectedItem[g] ?
|
|
2944
|
+
onSlClear: (b) => u(b, g),
|
|
2945
|
+
label: t.selectedItem[g] ? K(n).state.carts[t.selectedItem[g]].info.name : "Warenkorb für Adresse wählen.",
|
|
2990
2946
|
class: "grid-w-4"
|
|
2991
2947
|
}, [
|
|
2992
|
-
(m(!0), h(E, null, U(
|
|
2993
|
-
], 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),
|
|
2994
2950
|
(m(!0), h(E, null, U(t.addSkel, (b, y) => (m(), h(E, { key: y }, [
|
|
2995
2951
|
b.visible && b.params.group === "Customer Address" ? (m(), T(_, {
|
|
2996
2952
|
key: 0,
|
|
2997
|
-
is:
|
|
2953
|
+
is: K(X)(b.type),
|
|
2998
2954
|
name: y,
|
|
2999
2955
|
structure: f(t.addSkel),
|
|
3000
2956
|
errors: t.errors[y] ? t.errors[y] : [],
|
|
3001
2957
|
skel: t.formValues,
|
|
3002
|
-
onChange: ($) =>
|
|
2958
|
+
onChange: ($) => i(y, $)
|
|
3003
2959
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
3004
2960
|
], 64))), 128))
|
|
3005
2961
|
]))), 128)),
|
|
3006
|
-
t.isCustomAdress ? (m(), h("div",
|
|
3007
|
-
|
|
2962
|
+
t.isCustomAdress ? (m(), h("div", Ol, [
|
|
2963
|
+
jl,
|
|
3008
2964
|
(m(!0), h(E, null, U(t.addSkel, (g, b) => (m(), h(E, { key: b }, [
|
|
3009
2965
|
g.visible && g.params.group === "Customer Address" ? (m(), T(_, {
|
|
3010
2966
|
key: 0,
|
|
3011
|
-
is:
|
|
2967
|
+
is: K(X)(g.type),
|
|
3012
2968
|
name: b,
|
|
3013
2969
|
structure: f(t.addSkel),
|
|
3014
2970
|
errors: t.errors[b] ? t.errors[b] : [],
|
|
3015
2971
|
skel: t.formValues,
|
|
3016
|
-
onChange: (y) =>
|
|
2972
|
+
onChange: (y) => i(b, y)
|
|
3017
2973
|
}, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : k("", !0)
|
|
3018
2974
|
], 64))), 128))
|
|
3019
2975
|
])) : k("", !0),
|
|
3020
|
-
|
|
3021
|
-
|
|
2976
|
+
d("div", { class: "viur-shop-form-btn-wrap" }, [
|
|
2977
|
+
d("sl-button", {
|
|
3022
2978
|
size: "medium",
|
|
3023
2979
|
onClick: r,
|
|
3024
2980
|
title: "Lieferadresse entfernen"
|
|
3025
|
-
},
|
|
3026
|
-
|
|
2981
|
+
}, Dl),
|
|
2982
|
+
d("sl-button", {
|
|
3027
2983
|
size: "medium",
|
|
3028
2984
|
variant: "primary",
|
|
3029
2985
|
onClick: a
|
|
3030
2986
|
}, [
|
|
3031
|
-
|
|
3032
|
-
|
|
2987
|
+
Vl,
|
|
2988
|
+
j(" Lieferadresse hinzufügen ")
|
|
3033
2989
|
])
|
|
3034
2990
|
]),
|
|
3035
|
-
|
|
2991
|
+
d("sl-alert", {
|
|
3036
2992
|
variant: "warning",
|
|
3037
2993
|
duration: "2000",
|
|
3038
2994
|
ref_key: "shippingWarning",
|
|
3039
2995
|
ref: s,
|
|
3040
2996
|
closable: ""
|
|
3041
2997
|
}, [
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
2998
|
+
Nl,
|
|
2999
|
+
d("strong", null, B(t.amountAlert.title), 1),
|
|
3000
|
+
Rl,
|
|
3001
|
+
j(" " + B(t.amountAlert.msg), 1)
|
|
3046
3002
|
], 512),
|
|
3047
|
-
|
|
3003
|
+
d("sl-checkbox", {
|
|
3048
3004
|
onSlChange: o,
|
|
3049
3005
|
checked: ""
|
|
3050
3006
|
}, " Rechnungsadresse wie Lieferadresse ", 32)
|
|
3051
3007
|
], 64);
|
|
3052
3008
|
};
|
|
3053
3009
|
}
|
|
3054
|
-
},
|
|
3010
|
+
}, Ul = /* @__PURE__ */ I(Ll, [["__scopeId", "data-v-a4accf28"]]), Xe = {
|
|
3055
3011
|
__name: "ExampleUsage",
|
|
3056
3012
|
setup(e) {
|
|
3057
|
-
const n =
|
|
3013
|
+
const n = re(), t = S(
|
|
3058
3014
|
() => n.state.basketRootNode.key ? n.state.basketRootNode.key : ""
|
|
3059
3015
|
), l = w({
|
|
3060
3016
|
rootNode: {},
|
|
3061
3017
|
tabs: {
|
|
3062
3018
|
cart: {
|
|
3063
|
-
component:
|
|
3019
|
+
component: H(ke),
|
|
3064
3020
|
props: {
|
|
3065
3021
|
sidebar: !0,
|
|
3066
3022
|
mode: "basket",
|
|
@@ -3075,7 +3031,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
3075
3031
|
atHide: null
|
|
3076
3032
|
},
|
|
3077
3033
|
confirm: {
|
|
3078
|
-
component:
|
|
3034
|
+
component: H(we),
|
|
3079
3035
|
props: {},
|
|
3080
3036
|
displayName: "Bestellung prüfen",
|
|
3081
3037
|
icon: { name: "order-check", library: "hsk" },
|
|
@@ -3100,7 +3056,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
3100
3056
|
// atHide: null,
|
|
3101
3057
|
// },
|
|
3102
3058
|
orderComplete: {
|
|
3103
|
-
component:
|
|
3059
|
+
component: H(pl),
|
|
3104
3060
|
props: {},
|
|
3105
3061
|
displayName: "Bestellung Abgeschlossen",
|
|
3106
3062
|
icon: { name: "order-confirmed", library: "hsk" },
|
|
@@ -3110,7 +3066,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
3110
3066
|
atHide: null
|
|
3111
3067
|
},
|
|
3112
3068
|
userInfo: {
|
|
3113
|
-
component:
|
|
3069
|
+
component: H(wl),
|
|
3114
3070
|
props: {},
|
|
3115
3071
|
displayName: "Daten Eingeben",
|
|
3116
3072
|
icon: { name: "user", library: "hsk" },
|
|
@@ -3120,7 +3076,7 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
3120
3076
|
atHide: null
|
|
3121
3077
|
},
|
|
3122
3078
|
userInfoMulti: {
|
|
3123
|
-
component:
|
|
3079
|
+
component: H(Ul),
|
|
3124
3080
|
props: {},
|
|
3125
3081
|
displayName: "Daten Eingeben (Multi)",
|
|
3126
3082
|
icon: { name: "user", library: "hsk" },
|
|
@@ -3134,78 +3090,78 @@ const Ol = /* @__PURE__ */ I(Sl, [["render", Cl], ["__scopeId", "data-v-36ccc280
|
|
|
3134
3090
|
function s(o) {
|
|
3135
3091
|
(o == null ? void 0 : o.detail.name) === "confirm" && (l.tabs.orderComplete.disabled = !1);
|
|
3136
3092
|
}
|
|
3137
|
-
return
|
|
3093
|
+
return x(async () => {
|
|
3138
3094
|
await n.init(), await n.getAdressStructure(), console.log("debug init exampleusage :", n.state.basketRootNode);
|
|
3139
|
-
}), (o, a) => (m(), T(
|
|
3095
|
+
}), (o, a) => (m(), T(ul, {
|
|
3140
3096
|
tabs: l.tabs,
|
|
3141
3097
|
onTabChange: s
|
|
3142
3098
|
}, null, 8, ["tabs"]));
|
|
3143
3099
|
}
|
|
3144
|
-
},
|
|
3100
|
+
}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3145
3101
|
__proto__: null,
|
|
3146
|
-
default:
|
|
3147
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3102
|
+
default: Xe
|
|
3103
|
+
}, Symbol.toStringTag, { value: "Module" })), Pl = D({
|
|
3148
3104
|
props: {},
|
|
3149
3105
|
components: {},
|
|
3150
3106
|
setup(e, n) {
|
|
3151
3107
|
const t = ht();
|
|
3152
3108
|
return { state: w({}), route: t };
|
|
3153
3109
|
}
|
|
3154
|
-
}),
|
|
3155
|
-
function
|
|
3156
|
-
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);
|
|
3157
3113
|
}
|
|
3158
|
-
const
|
|
3114
|
+
const zl = /* @__PURE__ */ I(Pl, [["render", Wl]]), ql = [
|
|
3159
3115
|
{
|
|
3160
3116
|
path: "/:pathMatch(.*)*",
|
|
3161
3117
|
name: "view_missing",
|
|
3162
|
-
component:
|
|
3118
|
+
component: zl
|
|
3163
3119
|
},
|
|
3164
3120
|
{
|
|
3165
3121
|
path: "/shop/category/:identifier",
|
|
3166
3122
|
name: "CategoryView",
|
|
3167
|
-
component: () => import("./CategoryView-
|
|
3123
|
+
component: () => import("./CategoryView-8DIBpBK_.mjs")
|
|
3168
3124
|
},
|
|
3169
3125
|
{
|
|
3170
3126
|
path: "/shop/item/:item",
|
|
3171
3127
|
name: "itemView",
|
|
3172
|
-
component: () => import("./ItemView-
|
|
3128
|
+
component: () => import("./ItemView-Dx5_6_bp.mjs")
|
|
3173
3129
|
},
|
|
3174
3130
|
{
|
|
3175
3131
|
path: "/shop/cart/view",
|
|
3176
3132
|
name: "CartView",
|
|
3177
|
-
component: () => Promise.resolve().then(() =>
|
|
3133
|
+
component: () => Promise.resolve().then(() => Us)
|
|
3178
3134
|
},
|
|
3179
3135
|
{
|
|
3180
3136
|
path: "/shop/order/",
|
|
3181
3137
|
name: "OrderView",
|
|
3182
|
-
component: () => Promise.resolve().then(() =>
|
|
3138
|
+
component: () => Promise.resolve().then(() => Tl)
|
|
3183
3139
|
},
|
|
3184
3140
|
{
|
|
3185
3141
|
path: "/shop/order/confirm",
|
|
3186
3142
|
name: "ConfirmView",
|
|
3187
|
-
component: () => Promise.resolve().then(() =>
|
|
3143
|
+
component: () => Promise.resolve().then(() => Qs)
|
|
3188
3144
|
}
|
|
3189
3145
|
];
|
|
3190
|
-
function
|
|
3146
|
+
function Ql(e, n = !1) {
|
|
3191
3147
|
let t = [];
|
|
3192
|
-
return n ? t = e : t = e.concat(
|
|
3148
|
+
return n ? t = e : t = e.concat(ql), bt({
|
|
3193
3149
|
// @ts-ignore
|
|
3194
3150
|
history: vt("/"),
|
|
3195
3151
|
routes: t
|
|
3196
3152
|
});
|
|
3197
3153
|
}
|
|
3198
|
-
const
|
|
3154
|
+
const Yl = {
|
|
3199
3155
|
install(e) {
|
|
3200
|
-
e.component("CartView",
|
|
3156
|
+
e.component("CartView", ke), e.component("ExampleUsage", Xe), e.component("ConfirmView", we);
|
|
3201
3157
|
}
|
|
3202
3158
|
};
|
|
3203
3159
|
export {
|
|
3204
|
-
|
|
3205
|
-
|
|
3160
|
+
ke as C,
|
|
3161
|
+
Yl as V,
|
|
3206
3162
|
I as _,
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3163
|
+
Xe as a,
|
|
3164
|
+
we as b,
|
|
3165
|
+
Ql as c,
|
|
3166
|
+
re as u
|
|
3211
3167
|
};
|