From 8ffef95e9829546b8db0d24c240ccd2ba92abdf2 Mon Sep 17 00:00:00 2001 From: Arne Gudermann Date: Thu, 5 Sep 2024 14:57:51 +0200 Subject: [PATCH] Add prepaymente and change structure --- ...177fd889.mjs => CategoryView.569ff8b2.mjs} | 4 +- ...ard.fbbf3add.mjs => ItemCard.5c8fd110.mjs} | 2 +- ...iew.27ff9ff2.mjs => ItemView.473a581c.mjs} | 4 +- .../{main.e8180cb9.mjs => main.90ff73ac.mjs} | 1444 +++++++++-------- source/dist/style.css | 2 +- source/dist/viur-shop-components.es.js | 2 +- source/dist/viur-shop-components.umd.js | 50 +- source/src/components/cart/CartView.vue | 14 +- .../{cart => order/process}/ConfirmView.vue | 154 +- .../components/order/process/ExampleUsage.vue | 2 +- .../order/process/SelectPaymentProvider.vue | 52 +- source/src/main.js | 2 +- source/src/router/index.js | 2 +- source/src/stores/cart.js | 34 +- 14 files changed, 913 insertions(+), 855 deletions(-) rename source/dist/{CategoryView.177fd889.mjs => CategoryView.569ff8b2.mjs} (95%) rename source/dist/{ItemCard.fbbf3add.mjs => ItemCard.5c8fd110.mjs} (97%) rename source/dist/{ItemView.27ff9ff2.mjs => ItemView.473a581c.mjs} (99%) rename source/dist/{main.e8180cb9.mjs => main.90ff73ac.mjs} (70%) rename source/src/components/{cart => order/process}/ConfirmView.vue (63%) diff --git a/source/dist/CategoryView.177fd889.mjs b/source/dist/CategoryView.569ff8b2.mjs similarity index 95% rename from source/dist/CategoryView.177fd889.mjs rename to source/dist/CategoryView.569ff8b2.mjs index d147e49..d128ddc 100644 --- a/source/dist/CategoryView.177fd889.mjs +++ b/source/dist/CategoryView.569ff8b2.mjs @@ -1,8 +1,8 @@ import { reactive as p, computed as m, onMounted as f, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as g, renderSlot as _, createTextVNode as h, createCommentVNode as k, Fragment as y, renderList as v, createBlock as w, pushScopeId as I, popScopeId as S } from "vue"; -import { _ as C, u as b } from "./main.e8180cb9.mjs"; +import { _ as C, u as b } from "./main.90ff73ac.mjs"; import { useRoute as x } from "vue-router"; import "@viur/vue-utils"; -import { I as L } from "./ItemCard.fbbf3add.mjs"; +import { I as L } from "./ItemCard.5c8fd110.mjs"; import "pinia"; import "@viur/ckeditor5-build-classic"; import "@viur/viur-shop-client"; diff --git a/source/dist/ItemCard.fbbf3add.mjs b/source/dist/ItemCard.5c8fd110.mjs similarity index 97% rename from source/dist/ItemCard.fbbf3add.mjs rename to source/dist/ItemCard.5c8fd110.mjs index c9644e4..ef04633 100644 --- a/source/dist/ItemCard.fbbf3add.mjs +++ b/source/dist/ItemCard.5c8fd110.mjs @@ -1,6 +1,6 @@ import { openBlock as l, createElementBlock as n, createElementVNode as e, toDisplayString as r, withModifiers as m, unref as d, createTextVNode as p, pushScopeId as u, popScopeId as h } from "vue"; import { Request as _ } from "@viur/vue-utils"; -import { _ as f, u as v } from "./main.e8180cb9.mjs"; +import { _ as f, u as v } from "./main.90ff73ac.mjs"; const i = (t) => (u("data-v-dc32dd0b"), t = t(), h(), t), b = { class: "viur-shop-item-card-card" }, g = ["src", "alt"], k = { class: "viur-shop-item-card-headline" }, x = /* @__PURE__ */ i(() => /* @__PURE__ */ e("h4", { class: "viur-shop-item-card-subline" }, "B 21 x H 6,5 x T 19 cm", -1)), I = { class: "viur-shop-item-card-price" }, y = { class: "viur-shop-item-card-footer", slot: "footer" diff --git a/source/dist/ItemView.27ff9ff2.mjs b/source/dist/ItemView.473a581c.mjs similarity index 99% rename from source/dist/ItemView.27ff9ff2.mjs rename to source/dist/ItemView.473a581c.mjs index 908d354..28b0009 100644 --- a/source/dist/ItemView.27ff9ff2.mjs +++ b/source/dist/ItemView.473a581c.mjs @@ -1,8 +1,8 @@ import { reactive as se, onBeforeMount as ie, openBlock as re, createElementBlock as oe, Fragment as ne, createElementVNode as g, toDisplayString as dt, withModifiers as ae, createTextVNode as Ht, createVNode as le, pushScopeId as ce, popScopeId as he } from "vue"; import { Request as ut } from "@viur/vue-utils"; import { useRoute as de } from "vue-router"; -import { I as ue } from "./ItemCard.fbbf3add.mjs"; -import { _ as pe } from "./main.e8180cb9.mjs"; +import { I as ue } from "./ItemCard.5c8fd110.mjs"; +import { _ as pe } from "./main.90ff73ac.mjs"; import "pinia"; import "@viur/ckeditor5-build-classic"; import "@viur/viur-shop-client"; diff --git a/source/dist/main.e8180cb9.mjs b/source/dist/main.90ff73ac.mjs similarity index 70% rename from source/dist/main.e8180cb9.mjs rename to source/dist/main.90ff73ac.mjs index 1d23982..edfa7d4 100644 --- a/source/dist/main.e8180cb9.mjs +++ b/source/dist/main.90ff73ac.mjs @@ -1,13 +1,13 @@ -var tt = Object.defineProperty; -var nt = (e, n, t) => n in e ? tt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t; -var Ce = (e, n, t) => (nt(e, typeof n != "symbol" ? n + "" : n, t), t); -import { defineComponent as D, inject as B, reactive as w, openBlock as m, createElementBlock as f, normalizeClass as G, createElementVNode as i, renderSlot as He, pushScopeId as M, popScopeId as z, Fragment as E, createCommentVNode as S, toDisplayString as I, onMounted as R, ref as q, readonly as st, getCurrentScope as at, onScopeDispose as lt, unref as L, computed as k, watchEffect as ce, renderList as U, watch as se, withDirectives as J, vModelText as oe, getCurrentInstance as ot, resolveComponent as ae, createBlock as P, vShow as be, withModifiers as de, createTextVNode as O, shallowRef as H, provide as ie, onBeforeMount as Q, useCssVars as rt, Transition as it, withCtx as ut, createVNode as Ie, Teleport as Ge, resolveDynamicComponent as dt, mergeProps as ct } from "vue"; -import { defineStore as _e, createPinia as mt } from "pinia"; +var nt = Object.defineProperty; +var st = (e, n, t) => n in e ? nt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t; +var Ce = (e, n, t) => (st(e, typeof n != "symbol" ? n + "" : n, t), t); +import { defineComponent as D, inject as B, reactive as w, openBlock as m, createElementBlock as f, normalizeClass as H, createElementVNode as i, renderSlot as He, pushScopeId as T, popScopeId as M, Fragment as E, createCommentVNode as $, toDisplayString as A, onMounted as N, ref as z, readonly as at, getCurrentScope as lt, onScopeDispose as ot, unref as R, computed as k, watchEffect as ce, renderList as L, watch as ae, withDirectives as J, vModelText as oe, getCurrentInstance as rt, resolveComponent as le, createBlock as U, vShow as be, withModifiers as de, createTextVNode as O, shallowRef as K, provide as ie, onBeforeMount as Q, useCssVars as it, Transition as ut, withCtx as dt, createVNode as Ie, Teleport as Ge, resolveDynamicComponent as ct, mergeProps as mt } from "vue"; +import { defineStore as _e, createPinia as ft } from "pinia"; import Oe from "@viur/ckeditor5-build-classic"; -import { Request as ft } from "@viur/vue-utils"; -import { ViURShopClient as gt } from "@viur/viur-shop-client"; -import { useRoute as pt, createRouter as ht, createWebHashHistory as bt } from "vue-router"; -const vt = D({ +import { Request as gt } from "@viur/vue-utils"; +import { ViURShopClient as ht } from "@viur/viur-shop-client"; +import { useRoute as pt, createRouter as bt, createWebHashHistory as vt } from "vue-router"; +const _t = D({ props: { isDragging: Boolean, draggingLineBottom: Boolean, @@ -30,20 +30,20 @@ const C = (e, n) => { for (const [l, a] of n) t[l] = a; return t; -}, Ze = (e) => (M("data-v-141aaf9b"), e = e(), z(), e), _t = ["draggable"], yt = ["disabled"], $t = /* @__PURE__ */ Ze(() => /* @__PURE__ */ i("sl-icon", { +}, Ze = (e) => (T("data-v-141aaf9b"), e = e(), M(), e), yt = ["draggable"], $t = ["disabled"], St = /* @__PURE__ */ Ze(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "grip-vertical" -}, null, -1)), St = [ - $t -], kt = { class: "value" }, wt = ["disabled", "title"], Et = /* @__PURE__ */ Ze(() => /* @__PURE__ */ i("sl-icon", { +}, null, -1)), kt = [ + St +], wt = { class: "value" }, Et = ["disabled", "title"], At = /* @__PURE__ */ Ze(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "x-lg" -}, null, -1)), At = [ - Et +}, null, -1)), Ct = [ + At ]; -function Ct(e, n, t, l, a, r) { +function It(e, n, t, l, a, r) { return m(), f("div", { - class: G(["value-line", { + class: H(["value-line", { "is-dragging": e.isDragging, "dragging-line-bottom": e.draggingLineBottom, "dragging-line-top": e.draggingLineTop @@ -58,8 +58,8 @@ function Ct(e, n, t, l, a, r) { disabled: e.boneState.readonly, class: "drag-button", onMousedown: n[0] || (n[0] = (s) => e.state.isDraggable = !0) - }, St, 40, yt), - i("div", kt, [ + }, kt, 40, $t), + i("div", wt, [ He(e.$slots, "default", {}, void 0, !0) ]), i("sl-button", { @@ -69,10 +69,10 @@ function Ct(e, n, t, l, a, r) { title: e.$t("bone.del"), class: "delete-btn", onClick: n[1] || (n[1] = (s) => e.$emit("delete")) - }, At, 8, wt) - ], 42, _t); + }, Ct, 8, Et) + ], 42, yt); } -const It = /* @__PURE__ */ C(vt, [["render", Ct], ["__scopeId", "data-v-141aaf9b"]]), Ot = D({ +const Ot = /* @__PURE__ */ C(_t, [["render", It], ["__scopeId", "data-v-141aaf9b"]]), Bt = D({ props: { name: String, value: Object, @@ -93,21 +93,21 @@ const It = /* @__PURE__ */ C(vt, [["render", Ct], ["__scopeId", "data-v-141aaf9b }; } }); -const Bt = { class: "bone-name" }, jt = { key: 0 }, Dt = { class: "bone" }; -function Vt(e, n, t, l, a, r) { +const jt = { class: "bone-name" }, Dt = { key: 0 }, Vt = { class: "bone" }; +function Rt(e, n, t, l, a, r) { return m(), f(E, null, [ - i("label", Bt, [ + i("label", jt, [ He(e.$slots, "default", {}, void 0, !0), - S("", !0) + $("", !0) ]), - e.state.debug ? (m(), f("div", jt, [ - i("div", Dt, I(e.name), 1), - i("pre", null, " " + I(e.boneState) + ` + e.state.debug ? (m(), f("div", Dt, [ + i("div", Vt, A(e.name), 1), + i("pre", null, " " + A(e.boneState) + ` `, 1) - ])) : S("", !0) + ])) : $("", !0) ], 64); } -const Rt = /* @__PURE__ */ C(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172"]]), Nt = D({ +const Nt = /* @__PURE__ */ C(Bt, [["render", Rt], ["__scopeId", "data-v-b7149172"]]), Pt = D({ inheritAttrs: !1, props: { name: String, @@ -122,7 +122,7 @@ const Rt = /* @__PURE__ */ C(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172 function a(r) { n.emit("change", e.name, r.target.value, e.lang, e.index); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -132,7 +132,7 @@ const Rt = /* @__PURE__ */ C(Ot, [["render", Vt], ["__scopeId", "data-v-b7149172 } }); const Lt = ["disabled", "value"], Ut = ["disabled", "value"]; -function Pt(e, n, t, l, a, r) { +function Tt(e, n, t, l, a, r) { var s, u; return e.boneState.bonestructure.type === "raw.json" ? (m(), f("sl-textarea", { key: 0, @@ -146,7 +146,7 @@ function Pt(e, n, t, l, a, r) { onInput: n[1] || (n[1] = (...o) => e.changeEvent && e.changeEvent(...o)) }, null, 40, Ut)); } -const ve = /* @__PURE__ */ C(Nt, [["render", Pt], ["__scopeId", "data-v-0ebe5f0b"]]), Tt = D({ +const ve = /* @__PURE__ */ C(Pt, [["render", Tt], ["__scopeId", "data-v-0ebe5f0b"]]), Mt = D({ inheritAttrs: !1, props: { name: String, @@ -163,7 +163,7 @@ const ve = /* @__PURE__ */ C(Nt, [["render", Pt], ["__scopeId", "data-v-0ebe5f0b function l(a) { n.emit("change", e.name, a.target.value, e.lang, e.index); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: t, @@ -171,27 +171,27 @@ const ve = /* @__PURE__ */ C(Nt, [["render", Pt], ["__scopeId", "data-v-0ebe5f0b }; } }); -const Mt = ["value"]; -function Wt(e, n, t, l, a, r) { +const Wt = ["value"]; +function qt(e, n, t, l, a, r) { return m(), f("sl-input", { disabled: "", value: e.value, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, Mt); + }, null, 40, Wt); } -const Be = /* @__PURE__ */ C(Tt, [["render", Wt], ["__scopeId", "data-v-b45a1311"]]); +const Be = /* @__PURE__ */ C(Mt, [["render", qt], ["__scopeId", "data-v-b45a1311"]]); function zt(e) { - return at() ? (lt(e), !0) : !1; + return lt() ? (ot(e), !0) : !1; } -function qt(e) { - return typeof e == "function" ? e() : L(e); +function Ft(e) { + return typeof e == "function" ? e() : R(e); } -const Ft = typeof window < "u" && typeof document < "u"; +const Kt = typeof window < "u" && typeof document < "u"; typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; function me(e, n, t = {}) { const { immediate: l = !0 - } = t, a = q(!1); + } = t, a = z(!1); let r = null; function s() { r && (clearTimeout(r), r = null); @@ -202,15 +202,15 @@ function me(e, n, t = {}) { function o(...c) { s(), a.value = !0, r = setTimeout(() => { a.value = !1, r = null, e(...c); - }, qt(n)); + }, Ft(n)); } - return l && (a.value = !0, Ft && o()), zt(u), { - isPending: st(a), + return l && (a.value = !0, Kt && o()), zt(u), { + isPending: at(a), start: o, stop: u }; } -class Kt { +class Ht { static objectEmpty(n) { return Object.keys(n).length === 0 && n.constructor === Object; } @@ -251,7 +251,7 @@ class Kt { return r.join(", "); } } -const Ht = D({ +const Gt = D({ inheritAttrs: !1, props: { name: String, @@ -265,7 +265,7 @@ const Ht = D({ setup(e, n) { const t = B("boneState"), l = w({ value: k(() => e.value) - }), a = q(null); + }), a = z(null); function r(s) { n.emit("change", e.name, s.target.value, e.lang, e.index); } @@ -276,19 +276,19 @@ const Ht = D({ }, 600); s(); } - }), R(() => { + }), N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, - Utils: Kt, + Utils: Ht, boneState: t, changeEvent: r, stringBone: a }; } }); -const Gt = ["disabled", "value", "required"]; -function Zt(e, n, t, l, a, r) { +const Zt = ["disabled", "value", "required"]; +function Jt(e, n, t, l, a, r) { return m(), f("sl-input", { ref: "stringBone", disabled: e.boneState.readonly, @@ -296,9 +296,9 @@ function Zt(e, n, t, l, a, r) { required: e.boneState.bonestructure.required, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)), onKeyup: n[1] || (n[1] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, Gt); + }, null, 40, Zt); } -const je = /* @__PURE__ */ C(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0"]]), Jt = D({ +const je = /* @__PURE__ */ C(Gt, [["render", Jt], ["__scopeId", "data-v-1ccbacc0"]]), Qt = D({ inheritAttrs: !1, props: { name: String, @@ -310,7 +310,7 @@ const je = /* @__PURE__ */ C(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0 components: {}, emits: ["change"], setup(e, n) { - const t = B("boneState"), l = w({}), a = q(null); + const t = B("boneState"), l = w({}), a = z(null); function r(s) { n.emit("change", e.name, s.target.value, e.lang, e.index); } @@ -321,7 +321,7 @@ const je = /* @__PURE__ */ C(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0 }, 600); s(); } - }), R(() => { + }), N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -331,17 +331,17 @@ const je = /* @__PURE__ */ C(Ht, [["render", Zt], ["__scopeId", "data-v-1ccbacc0 }; } }); -const Qt = ["disabled", "value"]; -function Yt(e, n, t, l, a, r) { +const Yt = ["disabled", "value"]; +function Xt(e, n, t, l, a, r) { return m(), f("sl-input", { ref: "emailBone", disabled: e.boneState.readonly, type: "email", value: e.value, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, Qt); + }, null, 40, Yt); } -const De = /* @__PURE__ */ C(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024"]]), Xt = D({ +const De = /* @__PURE__ */ C(Qt, [["render", Xt], ["__scopeId", "data-v-4328e024"]]), xt = D({ inheritAttrs: !1, props: { name: String, @@ -366,7 +366,7 @@ const De = /* @__PURE__ */ C(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024 function a(r) { n.emit("change", e.name, r.target.value, e.lang, e.index); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -375,16 +375,16 @@ const De = /* @__PURE__ */ C(Jt, [["render", Yt], ["__scopeId", "data-v-4328e024 }; } }); -const xt = ["disabled", "type", "value"]; -function en(e, n, t, l, a, r) { +const en = ["disabled", "type", "value"]; +function tn(e, n, t, l, a, r) { return m(), f("sl-input", { disabled: e.boneState.readonly, type: e.state.typeString, value: e.state.value, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, xt); + }, null, 40, en); } -const Ve = /* @__PURE__ */ C(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c"]]), tn = D({ +const Ve = /* @__PURE__ */ C(xt, [["render", tn], ["__scopeId", "data-v-f1b8af8c"]]), nn = D({ inheritAttrs: !1, props: { name: String, @@ -416,7 +416,7 @@ const Ve = /* @__PURE__ */ C(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c function r(s) { n.emit("change", e.name, s.target.value, e.lang, e.index), W; } - return R(() => { + return N(() => { n.emit("change", e.name, l.value, e.lang, e.index); }), { state: l, @@ -426,8 +426,8 @@ const Ve = /* @__PURE__ */ C(Xt, [["render", en], ["__scopeId", "data-v-f1b8af8c }; } }); -const nn = ["disabled", "value", "multiple"], sn = ["value"]; -function an(e, n, t, l, a, r) { +const sn = ["disabled", "value", "multiple"], an = ["value"]; +function ln(e, n, t, l, a, r) { return m(), f("sl-select", { disabled: e.boneState.readonly, value: e.state.value, @@ -437,13 +437,13 @@ function an(e, n, t, l, a, r) { clearable: "", onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) }, [ - (m(!0), f(E, null, U(e.convertObjToList(), (s) => (m(), f("sl-option", { + (m(!0), f(E, null, L(e.convertObjToList(), (s) => (m(), f("sl-option", { key: s[0], value: s[0] - }, I(s[1]), 9, sn))), 128)) - ], 40, nn); + }, A(s[1]), 9, an))), 128)) + ], 40, sn); } -const Re = /* @__PURE__ */ C(tn, [["render", an], ["__scopeId", "data-v-5a38b97f"]]), ln = D({ +const Re = /* @__PURE__ */ C(nn, [["render", ln], ["__scopeId", "data-v-5a38b97f"]]), on = D({ inheritAttrs: !1, props: { name: String, @@ -460,7 +460,7 @@ const Re = /* @__PURE__ */ C(tn, [["render", an], ["__scopeId", "data-v-5a38b97f function a(r) { n.emit("change", e.name, r.target.checked, e.lang, e.index); } - return R(() => { + return N(() => { let r = e.value; r || (r = !1), n.emit("change", e.name, r, e.lang, e.index); }), { @@ -470,15 +470,15 @@ const Re = /* @__PURE__ */ C(tn, [["render", an], ["__scopeId", "data-v-5a38b97f }; } }); -const on = ["disabled", "checked"]; -function rn(e, n, t, l, a, r) { +const rn = ["disabled", "checked"]; +function un(e, n, t, l, a, r) { return m(), f("sl-switch", { disabled: e.boneState.readonly, checked: e.state.value, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, on); + }, null, 40, rn); } -const Ne = /* @__PURE__ */ C(ln, [["render", rn], ["__scopeId", "data-v-363598c8"]]), un = D({ +const Ne = /* @__PURE__ */ C(on, [["render", un], ["__scopeId", "data-v-363598c8"]]), dn = D({ inheritAttrs: !1, props: { name: String, @@ -496,11 +496,11 @@ const Ne = /* @__PURE__ */ C(ln, [["render", rn], ["__scopeId", "data-v-363598c8 equal: !1, passwordInfo: [], requiredPasswordInfo: [] - }), a = q(null); + }), a = z(null); function r(u) { l.value1 === l.value2 ? l.equal = !0 : l.equal = !1, s(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); } - R(() => { + N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }); function s(u) { @@ -516,7 +516,7 @@ const Ne = /* @__PURE__ */ C(ln, [["render", rn], ["__scopeId", "data-v-363598c8 }, 600); u(); } - }), se( + }), ae( () => e.value, (u, o) => { l.value1 = u; @@ -529,14 +529,14 @@ const Ne = /* @__PURE__ */ C(ln, [["render", rn], ["__scopeId", "data-v-363598c8 }; } }); -const dn = ["disabled"], cn = ["name"], mn = ["name"], fn = { class: "errors" }; -function gn(e, n, t, l, a, r) { +const cn = ["disabled"], mn = ["name"], fn = ["name"], gn = { class: "errors" }; +function hn(e, n, t, l, a, r) { return m(), f(E, null, [ J(i("sl-input", { ref: "passwordBone", "onUpdate:modelValue": n[0] || (n[0] = (s) => e.state.value1 = s), disabled: e.boneState.readonly, - class: G({ "has-check": !e.boneState.readonly }), + class: H({ "has-check": !e.boneState.readonly }), type: "password", clearable: "", "password-toggle": "true", @@ -547,11 +547,11 @@ function gn(e, n, t, l, a, r) { i("sl-icon", { slot: "suffix", name: e.state.equal && e.state.value1.length ? "check" : "x" - }, null, 8, cn) - ], 42, dn), [ + }, null, 8, mn) + ], 42, cn), [ [oe, e.state.value1] ]), - e.boneState.readonly ? S("", !0) : J((m(), f("sl-input", { + e.boneState.readonly ? $("", !0) : J((m(), f("sl-input", { key: 0, "onUpdate:modelValue": n[4] || (n[4] = (s) => e.state.value2 = s), class: "password-check", @@ -565,20 +565,20 @@ function gn(e, n, t, l, a, r) { i("sl-icon", { slot: "suffix", name: e.state.equal && e.state.value1.length ? "check" : "x" - }, null, 8, mn) + }, null, 8, fn) ], 544)), [ [oe, e.state.value2] ]), - i("ul", fn, [ - (m(!0), f(E, null, U(e.state.passwordInfo, (s, u) => (m(), f("li", { key: u }, I(s), 1))), 128)), - (m(!0), f(E, null, U(e.state.requiredPasswordInfo, (s, u) => (m(), f("li", { + i("ul", gn, [ + (m(!0), f(E, null, L(e.state.passwordInfo, (s, u) => (m(), f("li", { key: u }, A(s), 1))), 128)), + (m(!0), f(E, null, L(e.state.requiredPasswordInfo, (s, u) => (m(), f("li", { key: u, class: "requiredInfo" - }, I(s), 1))), 128)) + }, A(s), 1))), 128)) ]) ], 64); } -const Le = /* @__PURE__ */ C(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0"]]), pn = D({ +const Pe = /* @__PURE__ */ C(dn, [["render", hn], ["__scopeId", "data-v-0ccf18c0"]]), pn = D({ props: { name: String, value: null, @@ -597,21 +597,21 @@ const Le = /* @__PURE__ */ C(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0 var c, d; let u = { default: { name: "Allgemein", bones: [], groupVisible: !1, groupOpen: !0 } }; for (const [g, v] of Object.entries(l.structure)) { - let h = "default", _ = l.structure[g], p = (c = l.value) == null ? void 0 : c[g]; - (d = v == null ? void 0 : v.params) != null && d.category && (h = v.params.category.toLowerCase()), Object.keys(u).includes(h) ? u[h].bones.push({ + let p = "default", _ = l.structure[g], h = (c = l.value) == null ? void 0 : c[g]; + (d = v == null ? void 0 : v.params) != null && d.category && (p = v.params.category.toLowerCase()), Object.keys(u).includes(p) ? u[p].bones.push({ boneName: g, boneStructure: _, - boneValue: p - }) : u[h] = { + boneValue: h + }) : u[p] = { name: v.params.category, bones: [ { boneName: g, boneStructure: _, - boneValue: p + boneValue: h } ] - }, _.visible === !0 && (u[h].groupVisible = !0); + }, _.visible === !0 && (u[p].groupVisible = !0); } let o = {}; return Object.keys(u).sort().forEach(function(g) { @@ -622,8 +622,8 @@ const Le = /* @__PURE__ */ C(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0 function a(u) { n.emit("change", u); } - R(() => { - ot().appContext.components.Bone ? l.globalRegistration = !0 : l.globalRegistration = !1, n.emit("change", e.name, e.value, e.lang, e.index); + N(() => { + rt().appContext.components.Bone ? l.globalRegistration = !0 : l.globalRegistration = !1, n.emit("change", e.name, e.value, e.lang, e.index); }); function r(u) { console.log(u); @@ -647,23 +647,23 @@ const Le = /* @__PURE__ */ C(un, [["render", gn], ["__scopeId", "data-v-0ccf18c0 }; } }); -const hn = { +const bn = { key: 0, open: "", variant: "danger" -}, bn = { +}, vn = { key: 1, class: "form" -}, vn = ["summary", "open"]; -function _n(e, n, t, l, a, r) { - const s = ae("bone"); - return e.state.globalRegistration ? (m(), f("div", bn, [ - (m(!0), f(E, null, U(e.state.formGroups, (u, o) => J((m(), f("sl-details", { +}, _n = ["summary", "open"]; +function yn(e, n, t, l, a, r) { + const s = le("bone"); + return e.state.globalRegistration ? (m(), f("div", vn, [ + (m(!0), f(E, null, L(e.state.formGroups, (u, o) => J((m(), f("sl-details", { key: o, summary: u.name, open: u.groupOpen }, [ - (m(!0), f(E, null, U(u.bones, (c) => J((m(), P(s, { + (m(!0), f(E, null, L(u.bones, (c) => J((m(), U(s, { key: c.name, is: e.getBoneWidget(e.state.structure[c.boneName].type), name: c.boneName, @@ -675,12 +675,12 @@ function _n(e, n, t, l, a, r) { }, null, 8, ["is", "name", "structure", "skel", "errors", "readonly", "onChangeInternal"])), [ [be, e.state.structure[c.boneName].visible] ])), 128)) - ], 8, vn)), [ + ], 8, _n)), [ [be, u.groupVisible] ])), 128)) - ])) : (m(), f("sl-alert", hn, " In Order to use this Bone register the bone component globally in your main file ")); + ])) : (m(), f("sl-alert", bn, " In Order to use this Bone register the bone component globally in your main file ")); } -const Je = /* @__PURE__ */ C(pn, [["render", _n], ["__scopeId", "data-v-e6fcfbca"]]), yn = D({ +const Je = /* @__PURE__ */ C(pn, [["render", yn], ["__scopeId", "data-v-e6fcfbca"]]), $n = D({ inheritAttrs: !1, props: { name: String, @@ -702,7 +702,7 @@ const Je = /* @__PURE__ */ C(pn, [["render", _n], ["__scopeId", "data-v-e6fcfbca let s = l.value[r.name]; r.lang ? (s === null && (s = {}), Object.keys(s).includes(r.lang) && r.index !== null ? s[r.lang][r.index] = r.value : s[r.lang] = r.value) : r.index !== null ? (s === null && (s = []), s[r.index] = r.value) : s = r.value, l.value[r.name] = s, n.emit("change", e.name, l.value, e.lang, e.index, !0); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -711,9 +711,9 @@ const Je = /* @__PURE__ */ C(pn, [["render", _n], ["__scopeId", "data-v-e6fcfbca }; } }); -function $n(e, n, t, l, a, r) { - const s = ae("Wrapper_nested"); - return m(), P(s, { +function Sn(e, n, t, l, a, r) { + const s = le("Wrapper_nested"); + return m(), U(s, { value: e.value, name: e.name, index: e.state.index, @@ -721,7 +721,7 @@ function $n(e, n, t, l, a, r) { onChange: e.changeEvent }, null, 8, ["value", "name", "index", "disabled", "onChange"]); } -const Ue = /* @__PURE__ */ C(yn, [["render", $n], ["__scopeId", "data-v-84a761ce"]]), Sn = D({ +const Le = /* @__PURE__ */ C($n, [["render", Sn], ["__scopeId", "data-v-84a761ce"]]), kn = D({ inheritAttrs: !1, props: { name: String, @@ -736,7 +736,7 @@ const Ue = /* @__PURE__ */ C(yn, [["render", $n], ["__scopeId", "data-v-84a761ce function a(r) { n.emit("change", e.name, r.target.value, e.lang, e.index); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -745,15 +745,15 @@ const Ue = /* @__PURE__ */ C(yn, [["render", $n], ["__scopeId", "data-v-84a761ce }; } }); -const kn = ["disabled", "value"]; -function wn(e, n, t, l, a, r) { +const wn = ["disabled", "value"]; +function En(e, n, t, l, a, r) { return m(), f("sl-color-picker", { disabled: e.boneState.readonly, value: e.value, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, kn); + }, null, 40, wn); } -const Pe = /* @__PURE__ */ C(Sn, [["render", wn], ["__scopeId", "data-v-534b9149"]]), En = D({ +const Ue = /* @__PURE__ */ C(kn, [["render", En], ["__scopeId", "data-v-534b9149"]]), An = D({ inheritAttrs: !1, emits: { change: null }, props: { @@ -772,7 +772,7 @@ const Pe = /* @__PURE__ */ C(Sn, [["render", wn], ["__scopeId", "data-v-534b9149 if (t.bonestructure.precision > 1) return parseFloat(`0.${"0".repeat(t.bonestructure.precision - 1)}1`); }) - }), a = q(null); + }), a = z(null); function r(s) { n.emit("change", e.name, s.target.value, e.lang, e.index); } @@ -783,7 +783,7 @@ const Pe = /* @__PURE__ */ C(Sn, [["render", wn], ["__scopeId", "data-v-534b9149 }, 600); s(); } - }), R(() => { + }), N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -793,8 +793,8 @@ const Pe = /* @__PURE__ */ C(Sn, [["render", wn], ["__scopeId", "data-v-534b9149 }; } }); -const An = ["disabled", "value", "min", "max", "step"], Cn = { class: "info" }, In = { key: 0 }, On = { key: 1 }, Bn = { key: 2 }; -function jn(e, n, t, l, a, r) { +const Cn = ["disabled", "value", "min", "max", "step"], In = { class: "info" }, On = { key: 0 }, Bn = { key: 1 }, jn = { key: 2 }; +function Dn(e, n, t, l, a, r) { return m(), f(E, null, [ i("sl-input", { ref: "numericBone", @@ -806,23 +806,23 @@ function jn(e, n, t, l, a, r) { step: e.state.precision, onSlChange: n[0] || (n[0] = (...s) => e.changeEvent && e.changeEvent(...s)), onKeyup: n[1] || (n[1] = (...s) => e.changeEvent && e.changeEvent(...s)) - }, null, 40, An), - i("ul", Cn, [ - e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (m(), f("li", In, I(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : S("", !0), - e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (m(), f("li", On, I(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : S("", !0), - e.state.precision ? (m(), f("li", Bn, I(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : S("", !0) + }, null, 40, Cn), + i("ul", In, [ + e.state.minAmount !== -9223372036854776e3 && e.state.minAmount ? (m(), f("li", On, A(e.$t("bones.numeric.min", { val: e.state.minAmount })), 1)) : $("", !0), + e.state.maxAmount !== 9223372036854776e3 && e.state.maxAmount ? (m(), f("li", Bn, A(e.$t("bones.numeric.max", { val: e.state.maxAmount })), 1)) : $("", !0), + e.state.precision ? (m(), f("li", jn, A(e.$t("bones.numeric.precision", { val: e.boneState.bonestructure.precision })), 1)) : $("", !0) ]) ], 64); } -const Te = /* @__PURE__ */ C(En, [["render", jn], ["__scopeId", "data-v-03d5b399"]]); +const Te = /* @__PURE__ */ C(An, [["render", Dn], ["__scopeId", "data-v-03d5b399"]]); class ue extends Error { constructor(n, t, l, a) { super(l || t), arguments.length >= 4 && a && Object.assign(this, a), this.statusText = t, this.statusCode = n, this.response = a; } } -let he = null; +let pe = null; function X() { - return he || (he = _e("requestStore", () => { + return pe || (pe = _e("requestStore", () => { const e = w({ sKeys: /* @__PURE__ */ new Set() }); function n() { e.sKeys = /* @__PURE__ */ new Set(); @@ -831,7 +831,7 @@ function X() { state: e, $reset: n }; - })), he(); + })), pe(); } class j { static resetState() { @@ -1057,12 +1057,12 @@ class re { let d = new URL(o); if (c && Object.keys(c).length > 0) { const g = new URLSearchParams(); - for (const [v, h] of Object.entries(c)) - if (Array.isArray(h)) - for (const _ of h) + for (const [v, p] of Object.entries(c)) + if (Array.isArray(p)) + for (const _ of p) g.append(v, _); else - g.append(v, h); + g.append(v, p); d.search = g.toString(); } return d.toString(); @@ -1091,7 +1091,7 @@ class re { return fetch(n, re.buildOptions("POST", t, a, r, s)); } } -const Dn = D({ +const Vn = D({ inheritAttrs: !1, props: { name: String, @@ -1115,9 +1115,9 @@ const Dn = D({ var v; const g = await d.json(); a.skellistdata = {}; - for (let h of g.skellist) - a.skellistdata[h.key] = h; - return (v = g.skellist) == null ? void 0 : v.map((h) => ({ text: l(t.bonestructure.format, { dest: h }), value: h.key, data: h })); + for (let p of g.skellist) + a.skellistdata[p.key] = p; + return (v = g.skellist) == null ? void 0 : v.map((p) => ({ text: l(t.bonestructure.format, { dest: p }), value: p.key, data: p })); }); } function s(o) { @@ -1129,7 +1129,7 @@ const Dn = D({ let c = a.selection.rel[o.name]; o.lang ? (c === null && (c = {}), Object.keys(c).includes(o.lang) && o.index !== null ? c[o.lang][o.index] = o.value : c[o.lang] = o.value) : o.index !== null ? (c === null && (c = []), c[o.index] = o.value) : c = o.value, Object.keys(a.selection).includes("rel") && a.selection.rel ? a.selection.rel[o.name] = c : a.selection.rel = { [o.name]: c }, Object.keys(a.selection).includes("dest") && n.emit("change", e.name, a.selection, e.lang, e.index); } - return R(() => { + return N(() => { a.selection = e.value, n.emit("change", e.name, e.value, e.lang, e.index); }), { state: a, @@ -1141,17 +1141,17 @@ const Dn = D({ }; } }); -const Vn = (e) => (M("data-v-61dd72e0"), e = e(), z(), e), Rn = { class: "record" }, Nn = { class: "single-entry" }, Ln = ["value"], Un = ["disabled", "source"], Pn = ["title"], Tn = /* @__PURE__ */ Vn(() => /* @__PURE__ */ i("sl-icon", { +const Rn = (e) => (T("data-v-61dd72e0"), e = e(), M(), e), Nn = { class: "record" }, Pn = { class: "single-entry" }, Ln = ["value"], Un = ["disabled", "source"], Tn = ["title"], Mn = /* @__PURE__ */ Rn(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "x-lg" -}, null, -1)), Mn = [ - Tn +}, null, -1)), Wn = [ + Mn ]; -function Wn(e, n, t, l, a, r) { +function qn(e, n, t, l, a, r) { var u, o; - const s = ae("Wrapper_nested"); - return m(), f("div", Rn, [ - i("div", Nn, [ + const s = le("Wrapper_nested"); + return m(), f("div", Nn, [ + i("div", Pn, [ e.state.selection ? (m(), f("sl-input", { key: 0, disabled: !0, @@ -1172,19 +1172,19 @@ function Wn(e, n, t, l, a, r) { onClick: n[1] || (n[1] = () => { e.$emit("change", e.name, "", e.lang, e.index), e.state.selection = null; }) - }, Mn, 8, Pn)) : S("", !0) + }, Wn, 8, Tn)) : $("", !0) ]), - (u = e.boneState) != null && u.bonestructure.using ? (m(), P(s, { + (u = e.boneState) != null && u.bonestructure.using ? (m(), U(s, { key: 0, value: (o = e.value) == null ? void 0 : o.rel, name: e.name, index: e.index, disabled: e.boneState.bonestructure.readonly, onChange: e.changeEventNested - }, null, 8, ["value", "name", "index", "disabled", "onChange"])) : S("", !0) + }, null, 8, ["value", "name", "index", "disabled", "onChange"])) : $("", !0) ]); } -const Me = /* @__PURE__ */ C(Dn, [["render", Wn], ["__scopeId", "data-v-61dd72e0"]]), zn = D({ +const Me = /* @__PURE__ */ C(Vn, [["render", qn], ["__scopeId", "data-v-61dd72e0"]]), zn = D({ inheritAttrs: !1, props: { name: String, @@ -1201,7 +1201,7 @@ const Me = /* @__PURE__ */ C(Dn, [["render", Wn], ["__scopeId", "data-v-61dd72e0 function a(r, s) { n.emit("change", e.name, r, e.lang, e.index); } - return R(() => { + return N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }), { state: l, @@ -1210,11 +1210,11 @@ const Me = /* @__PURE__ */ C(Dn, [["render", Wn], ["__scopeId", "data-v-61dd72e0 }; } }); -const qn = { class: "box" }; -function Fn(e, n, t, l, a, r) { - return m(), f("div", qn, I(e.value), 1); +const Fn = { class: "box" }; +function Kn(e, n, t, l, a, r) { + return m(), f("div", Fn, A(e.value), 1); } -const Kn = /* @__PURE__ */ C(zn, [["render", Fn], ["__scopeId", "data-v-343aca69"]]), Hn = D({ +const Hn = /* @__PURE__ */ C(zn, [["render", Kn], ["__scopeId", "data-v-343aca69"]]), Gn = D({ inheritAttrs: !1, props: { name: String, @@ -1225,12 +1225,12 @@ const Kn = /* @__PURE__ */ C(zn, [["render", Fn], ["__scopeId", "data-v-343aca69 components: {}, emits: ["change"], setup(e, n) { - const t = B("boneState"), l = q(), a = w({ + const t = B("boneState"), l = z(), a = w({ loading: !1, droparea: !1, previewopen: !1 }); - R(() => { + N(() => { n.emit("change", e.name, e.value, e.lang, e.index); }); function r() { @@ -1245,30 +1245,30 @@ const Kn = /* @__PURE__ */ C(zn, [["render", Fn], ["__scopeId", "data-v-343aca69 mimeType: d.type || "application/octet-stream", size: d.size.toString() }; - return new Promise((v, h) => { + return new Promise((v, p) => { j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: g }).then(async (_) => { - let p = await _.json(); - fetch(p.values.uploadUrl, { + let h = await _.json(); + fetch(h.values.uploadUrl, { body: d, method: "POST", mode: "no-cors" }).then(async (b) => { const y = { - key: p.values.uploadKey, + key: h.values.uploadKey, node: void 0, skelType: "leaf" }; - j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => { - let A = await $.json(); - A.action === "addSuccess" ? v(A.values) : h(A); - }).catch(($) => { - h($); + j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async (S) => { + let I = await S.json(); + I.action === "addSuccess" ? v(I.values) : p(I); + }).catch((S) => { + p(S); }); }).catch((b) => { - h(b); + p(b); }); }).catch((_) => { - h(_); + p(_); }); }); } @@ -1300,60 +1300,60 @@ const Kn = /* @__PURE__ */ C(zn, [["render", Fn], ["__scopeId", "data-v-343aca69 }; } }); -const fe = (e) => (M("data-v-91086308"), e = e(), z(), e), Gn = { +const fe = (e) => (T("data-v-91086308"), e = e(), M(), e), Zn = { key: 0, class: "loader" -}, Zn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-spinner", { slot: "suffix" }, null, -1)), Jn = [ - Zn -], Qn = { +}, Jn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-spinner", { slot: "suffix" }, null, -1)), Qn = [ + Jn +], Yn = { key: 1, class: "droparea" -}, Yn = ["title"], Xn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), xn = [ - Xn -], es = ["multiple"], ts = ["title"], ns = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { +}, Xn = ["title"], xn = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), es = [ + xn +], ts = ["multiple"], ns = ["title"], ss = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "download" -}, null, -1)), ss = [ - ns -], as = { class: "box" }, ls = ["src"], os = ["label", "open"], rs = ["src"], is = { +}, null, -1)), as = [ + ss +], ls = { class: "box" }, os = ["src"], rs = ["label", "open"], is = ["src"], us = { key: 1, class: "preview" -}, us = { +}, ds = { key: 0, name: "file-earmark" -}, ds = { key: 2 }, cs = ["title"], ms = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "x-lg" }, null, -1)), fs = [ - ms +}, cs = { key: 2 }, ms = ["title"], fs = /* @__PURE__ */ fe(() => /* @__PURE__ */ i("sl-icon", { name: "x-lg" }, null, -1)), gs = [ + fs ]; -function gs(e, n, t, l, a, r) { - var s, u, o, c, d, g, v, h, _, p; +function hs(e, n, t, l, a, r) { + var s, u, o, c, d, g, v, p, _, h; return m(), f("div", { class: "file-wrapper", onDragover: n[5] || (n[5] = de((b) => e.state.droparea = !0, ["prevent"])), onDragleave: n[6] || (n[6] = (b) => e.state.droparea = !1), onDrop: n[7] || (n[7] = de((...b) => e.handleDrop && e.handleDrop(...b), ["prevent"])) }, [ - e.state.loading ? (m(), f("div", Gn, Jn)) : S("", !0), - e.state.droparea ? (m(), f("div", Qn, " Dateien hier hinziehen ")) : S("", !0), + e.state.loading ? (m(), f("div", Zn, Qn)) : $("", !0), + e.state.droparea ? (m(), f("div", Yn, " Dateien hier hinziehen ")) : $("", !0), !e.boneState.readonly && (!e.value || e.state.loading) ? (m(), f("sl-button", { key: 2, title: e.$t("bone.upload"), outline: "", class: "upload-btn", onClick: n[0] || (n[0] = (b) => e.uploadinput.click()) - }, xn, 8, Yn)) : S("", !0), + }, es, 8, Xn)) : $("", !0), i("input", { ref: "uploadinput", hidden: "", type: "file", multiple: e.boneState.multiple, onChange: n[1] || (n[1] = (...b) => e.handleUpload && e.handleUpload(...b)) - }, null, 40, es), + }, null, 40, ts), e.value ? (m(), f("sl-button", { key: 3, title: e.$t("bone.download"), onClick: n[2] || (n[2] = (...b) => e.downloadFile && e.downloadFile(...b)) - }, ss, 8, ts)) : S("", !0), - i("div", as, [ + }, as, 8, ns)) : $("", !0), + i("div", ls, [ (u = (s = e.value) == null ? void 0 : s.dest) != null && u.mimetype.includes("image") ? (m(), f("div", { key: 0, class: "preview has-preview", @@ -1363,7 +1363,7 @@ function gs(e, n, t, l, a, r) { class: "preview-img", src: e.createBackgroundImage(), alt: "" - }, null, 8, ls), + }, null, 8, os), i("sl-dialog", { label: decodeURIComponent((c = (o = e.value) == null ? void 0 : o.dest) == null ? void 0 : c.name), class: "preview-overlay", @@ -1372,24 +1372,24 @@ function gs(e, n, t, l, a, r) { i("img", { src: e.createBackgroundImage(), alt: "" - }, null, 8, rs) - ], 8, os) - ])) : (m(), f("div", is, [ - (g = (d = e.value) == null ? void 0 : d.dest) != null && g.name ? (m(), f("sl-icon", us)) : S("", !0) + }, null, 8, is) + ], 8, rs) + ])) : (m(), f("div", us, [ + (g = (d = e.value) == null ? void 0 : d.dest) != null && g.name ? (m(), f("sl-icon", ds)) : $("", !0) ])), - (h = (v = e.value) == null ? void 0 : v.dest) != null && h.name ? (m(), f("div", ds, I(decodeURIComponent((p = (_ = e.value) == null ? void 0 : _.dest) == null ? void 0 : p.name)), 1)) : S("", !0) + (p = (v = e.value) == null ? void 0 : v.dest) != null && p.name ? (m(), f("div", cs, A(decodeURIComponent((h = (_ = e.value) == null ? void 0 : _.dest) == null ? void 0 : h.name)), 1)) : $("", !0) ]), - e.boneState.multiple ? S("", !0) : (m(), f("sl-button", { + e.boneState.multiple ? $("", !0) : (m(), f("sl-button", { key: 4, variant: "danger", outline: "", title: e.$t("bone.del"), class: "delete-btn", onClick: n[4] || (n[4] = (b) => e.$emit("change", e.name, "", e.lang, e.index)) - }, fs, 8, cs)) + }, gs, 8, ms)) ], 32); } -const We = /* @__PURE__ */ C(Hn, [["render", gs], ["__scopeId", "data-v-91086308"]]), ps = D({ +const We = /* @__PURE__ */ C(Gn, [["render", hs], ["__scopeId", "data-v-91086308"]]), ps = D({ inheritAttrs: !1, props: { name: String, @@ -1411,7 +1411,7 @@ const We = /* @__PURE__ */ C(Hn, [["render", gs], ["__scopeId", "data-v-91086308 function r(u) { l.value = u.target.value, n.emit("change", e.name, l.value, e.lang, e.index); } - R(() => { + N(() => { e.value !== null && (l.value = e.value), n.emit("change", e.name, e.value, e.lang, e.index); }); function s(u) { @@ -1419,7 +1419,7 @@ const We = /* @__PURE__ */ C(Hn, [["render", gs], ["__scopeId", "data-v-91086308 o.setStyle("min-height", "250px", u.editing.view.document.getRoot()); }); } - return se( + return ae( () => e.value, (u, o) => { l.value = u; @@ -1434,12 +1434,12 @@ const We = /* @__PURE__ */ C(Hn, [["render", gs], ["__scopeId", "data-v-91086308 }; } }); -const hs = ["disabled", "value"]; -function bs(e, n, t, l, a, r) { +const bs = ["disabled", "value"]; +function vs(e, n, t, l, a, r) { var u, o, c, d; - const s = ae("ckeditor"); + const s = le("ckeditor"); return e.state.editor ? (m(), f(E, { key: 0 }, [ - ((u = e.boneState.bonestructure) == null ? void 0 : u.valid_html) || ((o = e.boneState.bonestructure) == null ? void 0 : o.validHtml) ? (m(), P(s, { + ((u = e.boneState.bonestructure) == null ? void 0 : u.valid_html) || ((o = e.boneState.bonestructure) == null ? void 0 : o.validHtml) ? (m(), U(s, { key: 0, modelValue: e.state.value, "onUpdate:modelValue": n[0] || (n[0] = (g) => e.state.value = g), @@ -1453,10 +1453,10 @@ function bs(e, n, t, l, a, r) { disabled: (d = e.boneState) == null ? void 0 : d.readonly, value: e.value, onInput: n[1] || (n[1] = (...g) => e.changeEventTextarea && e.changeEventTextarea(...g)) - }, null, 40, hs)) - ], 64)) : S("", !0); + }, null, 40, bs)) + ], 64)) : $("", !0); } -const ze = /* @__PURE__ */ C(ps, [["render", bs]]), vs = D({ +const qe = /* @__PURE__ */ C(ps, [["render", vs]]), _s = D({ inheritAttrs: !1, props: { name: String, @@ -1474,7 +1474,7 @@ const ze = /* @__PURE__ */ C(ps, [["render", bs]]), vs = D({ function a() { n.emit("change", e.name, [l.valueLat, l.valueLng], e.lang, e.index); } - return R(() => { + return N(() => { try { l.valueLat = e.value[0], l.valueLng = e.value[1]; } catch { @@ -1487,8 +1487,8 @@ const ze = /* @__PURE__ */ C(ps, [["render", bs]]), vs = D({ }; } }); -const _s = ["name", "min", "max", "disabled"], ys = ["name", "min", "max", "disabled"]; -function $s(e, n, t, l, a, r) { +const ys = ["name", "min", "max", "disabled"], $s = ["name", "min", "max", "disabled"]; +function Ss(e, n, t, l, a, r) { return m(), f(E, null, [ J(i("sl-input", { "onUpdate:modelValue": n[0] || (n[0] = (s) => e.state.valueLat = s), @@ -1502,7 +1502,7 @@ function $s(e, n, t, l, a, r) { step: "0.000001", onSlChange: n[1] || (n[1] = (...s) => e.changeEvent && e.changeEvent(...s)), placeholder: "Lat" - }, null, 40, _s), [ + }, null, 40, ys), [ [oe, e.state.valueLat] ]), J(i("sl-input", { @@ -1517,12 +1517,12 @@ function $s(e, n, t, l, a, r) { step: "0.000001", onSlChange: n[3] || (n[3] = (...s) => e.changeEvent && e.changeEvent(...s)), placeholder: "Long" - }, null, 40, ys), [ + }, null, 40, $s), [ [oe, e.state.valueLng] ]) ], 64); } -const qe = /* @__PURE__ */ C(vs, [["render", $s], ["__scopeId", "data-v-7bc31020"]]), Ss = D({ +const ze = /* @__PURE__ */ C(_s, [["render", Ss], ["__scopeId", "data-v-7bc31020"]]), ks = D({ props: { name: String, value: Object, @@ -1553,7 +1553,7 @@ const qe = /* @__PURE__ */ C(vs, [["render", $s], ["__scopeId", "data-v-7bc31020 r(e.lang); }, o); } - return R(() => { + return N(() => { (!e.value || e.value.length === 0) && n.emit("change", e.name, [], e.lang); }), { state: l, @@ -1564,17 +1564,17 @@ const qe = /* @__PURE__ */ C(vs, [["render", $s], ["__scopeId", "data-v-7bc31020 }; } }); -const Qe = (e) => (M("data-v-63e75dee"), e = e(), z(), e), ks = { class: "actionbar" }, ws = ["title"], Es = /* @__PURE__ */ Qe(() => /* @__PURE__ */ i("sl-icon", { +const Qe = (e) => (T("data-v-63e75dee"), e = e(), M(), e), ws = { class: "actionbar" }, Es = ["title"], As = /* @__PURE__ */ Qe(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "x-lg" -}, null, -1)), As = [ - Es -], Cs = ["title"], Is = /* @__PURE__ */ Qe(() => /* @__PURE__ */ i("sl-icon", { +}, null, -1)), Cs = [ + As +], Is = ["title"], Os = /* @__PURE__ */ Qe(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "plus-lg" }, null, -1)); -function Os(e, n, t, l, a, r) { - return m(), f("div", ks, [ +function Bs(e, n, t, l, a, r) { + return m(), f("div", ws, [ e.boneState.multiple && !e.readonly ? (m(), f("sl-button", { key: 0, variant: "danger", @@ -1582,7 +1582,7 @@ function Os(e, n, t, l, a, r) { outline: "", class: "delete-btn", onClick: n[0] || (n[0] = (s) => e.handleRemove(e.lang)) - }, As, 8, ws)) : S("", !0), + }, Cs, 8, Es)) : $("", !0), e.boneState.multiple && !e.readonly ? (m(), f("sl-button", { key: 1, variant: "success", @@ -1591,15 +1591,15 @@ function Os(e, n, t, l, a, r) { class: "add-btn", onClick: n[1] || (n[1] = (s) => e.handleAdd(e.lang)) }, [ - Is, - O(" " + I(e.$t("bone.add")) + " ", 1), + Os, + O(" " + A(e.$t("bone.add")) + " ", 1), e.state.counter > 1 ? (m(), f(E, { key: 0 }, [ - O("(" + I(e.state.counter) + ")", 1) - ], 64)) : S("", !0) - ], 8, Cs)) : S("", !0) + O("(" + A(e.state.counter) + ")", 1) + ], 64)) : $("", !0) + ], 8, Is)) : $("", !0) ]); } -const Bs = /* @__PURE__ */ C(Ss, [["render", Os], ["__scopeId", "data-v-63e75dee"]]), js = D({ +const js = /* @__PURE__ */ C(ks, [["render", Bs], ["__scopeId", "data-v-63e75dee"]]), Ds = D({ props: { name: String, value: Object, @@ -1622,10 +1622,10 @@ const Bs = /* @__PURE__ */ C(Ss, [["render", Os], ["__scopeId", "data-v-63e75dee ).then(async (d) => { var v; const g = await d.json(); - return s.skels = g.skellist.reduce((h, _) => (h[_.key] = _, h), {}), (v = g.skellist) == null ? void 0 : v.map((h) => ({ text: a(t.bonestructure.format, { dest: h }), value: h.key, data: h })); + return s.skels = g.skellist.reduce((p, _) => (p[_.key] = _, p), {}), (v = g.skellist) == null ? void 0 : v.map((p) => ({ text: a(t.bonestructure.format, { dest: p }), value: p.key, data: p })); }); } - return R(() => { + return N(() => { (!e.value || e.value.length === 0) && n.emit("change", e.name, [], e.lang); }), { state: s, @@ -1636,17 +1636,17 @@ const Bs = /* @__PURE__ */ C(Ss, [["render", Os], ["__scopeId", "data-v-63e75dee }; } }); -const Ye = (e) => (M("data-v-eeea51c6"), e = e(), z(), e), Ds = { class: "actionbar" }, Vs = ["title"], Rs = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", { +const Ye = (e) => (T("data-v-eeea51c6"), e = e(), M(), e), Vs = { class: "actionbar" }, Rs = ["title"], Ns = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "x-lg" -}, null, -1)), Ns = [ - Rs -], Ls = ["source"], Us = ["title"], Ps = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", { +}, null, -1)), Ps = [ + Ns +], Ls = ["source"], Us = ["title"], Ts = /* @__PURE__ */ Ye(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "plus-lg" }, null, -1)); -function Ts(e, n, t, l, a, r) { - return m(), f("div", Ds, [ +function Ms(e, n, t, l, a, r) { + return m(), f("div", Vs, [ e.boneState.multiple && !e.readonly ? (m(), f("sl-button", { key: 0, variant: "danger", @@ -1654,7 +1654,7 @@ function Ts(e, n, t, l, a, r) { outline: "", class: "delete-btn", onClick: n[0] || (n[0] = (s) => e.openSelector()) - }, Ns, 8, Vs)) : S("", !0), + }, Ps, 8, Rs)) : $("", !0), i("sl-combobox", { source: e.getList, hoist: "", @@ -1674,12 +1674,12 @@ function Ts(e, n, t, l, a, r) { class: "add-btn", onClick: n[2] || (n[2] = (s) => e.addMultipleEntry(e.lang)) }, [ - Ps, - O(" " + I(e.$t("bone.list")), 1) - ], 8, Us)) : S("", !0) + Ts, + O(" " + A(e.$t("bone.list")), 1) + ], 8, Us)) : $("", !0) ]); } -const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6"]]), Ws = D({ +const Ws = /* @__PURE__ */ C(Ds, [["render", Ms], ["__scopeId", "data-v-eeea51c6"]]), qs = D({ props: { name: String, value: Object, @@ -1693,7 +1693,7 @@ const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6 setup(e, n) { const t = B("boneState"), l = B("addMultipleEntry"); B("formatString"); - const a = null, r = q(), s = w({ + const a = null, r = z(), s = w({ skels: {}, uploadinput: null, loading: !1, @@ -1706,30 +1706,30 @@ const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6 mimeType: d.type || "application/octet-stream", size: d.size.toString() }; - return new Promise((v, h) => { + return new Promise((v, p) => { j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/getUploadURL`, { dataObj: g }).then(async (_) => { - let p = await _.json(); - fetch(p.values.uploadUrl, { + let h = await _.json(); + fetch(h.values.uploadUrl, { body: d, method: "POST", mode: "no-cors" }).then(async (b) => { const y = { - key: p.values.uploadKey, + key: h.values.uploadKey, node: void 0, skelType: "leaf" }; - j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async ($) => { - let A = await $.json(); - A.action === "addSuccess" ? v(A.values) : h(A); - }).catch(($) => { - h($); + j.securePost(`/${{ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 }.VITE_DEFAULT_RENDERER || "vi"}/file/add`, { dataObj: y }).then(async (S) => { + let I = await S.json(); + I.action === "addSuccess" ? v(I.values) : p(I); + }).catch((S) => { + p(S); }); }).catch((b) => { - h(b); + p(b); }); }).catch((_) => { - h(_); + p(_); }); }); } @@ -1738,8 +1738,8 @@ const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6 for (let g of d.target.files) { let v = await u(g); r.value.value = null; - let h = null; - s.hasUsing && (h = void 0), l(e.lang, { dest: v, rel: h }); + let p = null; + s.hasUsing && (p = void 0), l(e.lang, { dest: v, rel: p }); } s.loading = !1; } @@ -1748,12 +1748,12 @@ const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6 for (let g of d.dataTransfer.files) { let v = await u(g); r.value.value = null; - let h = null; - s.hasUsing && (h = void 0), l(e.lang, { dest: v, rel: h }); + let p = null; + s.hasUsing && (p = void 0), l(e.lang, { dest: v, rel: p }); } s.loading = !1; } - return R(() => { + return N(() => { (!e.value || e.value.length === 0) && n.emit("change", e.name, [], e.lang); }), { state: s, @@ -1767,24 +1767,24 @@ const Ms = /* @__PURE__ */ C(js, [["render", Ts], ["__scopeId", "data-v-eeea51c6 }; } }); -const ye = (e) => (M("data-v-9bac9f8a"), e = e(), z(), e), zs = ["title"], qs = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { +const ye = (e) => (T("data-v-9bac9f8a"), e = e(), M(), e), zs = ["title"], Fs = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "x-lg" -}, null, -1)), Fs = [ - qs -], Ks = { +}, null, -1)), Ks = [ + Fs +], Hs = { key: 1, class: "droparea" -}, Hs = ["multiple"], Gs = ["title"], Zs = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { +}, Gs = ["multiple"], Zs = ["title"], Js = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { slot: "prefix", name: "plus-lg" -}, null, -1)), Js = [ - Zs -], Qs = ["title"], Ys = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), Xs = { +}, null, -1)), Qs = [ + Js +], Ys = ["title"], Xs = /* @__PURE__ */ ye(() => /* @__PURE__ */ i("sl-icon", { name: "upload" }, null, -1)), xs = { key: 0, slot: "suffix" }; -function xs(e, n, t, l, a, r) { +function ea(e, n, t, l, a, r) { return m(), f("div", { class: "actionbar", onDragover: n[4] || (n[4] = de((s) => e.state.droparea = !0, ["prevent"])), @@ -1798,22 +1798,22 @@ function xs(e, n, t, l, a, r) { outline: "", class: "delete-btn", onClick: n[0] || (n[0] = (s) => e.openSelector()) - }, Fs, 8, zs)) : S("", !0), - e.state.droparea ? (m(), f("div", Ks, " Dateien hier hinziehen ")) : S("", !0), + }, Ks, 8, zs)) : $("", !0), + e.state.droparea ? (m(), f("div", Hs, " Dateien hier hinziehen ")) : $("", !0), i("input", { ref: "uploadinput", hidden: "", type: "file", multiple: e.boneState.multiple, onChange: n[1] || (n[1] = (...s) => e.handleUpload && e.handleUpload(...s)) - }, null, 40, Hs), + }, null, 40, Gs), e.boneState.multiple && !e.readonly ? (m(), f("sl-button", { key: 2, outline: "", title: e.$t("bone.list"), class: "add-btn", onClick: n[2] || (n[2] = (s) => e.addMultipleEntry(e.lang)) - }, Js, 8, Gs)) : S("", !0), + }, Qs, 8, Zs)) : $("", !0), e.boneState.multiple && !e.readonly ? (m(), f("sl-button", { key: 3, variant: "success", @@ -1822,16 +1822,16 @@ function xs(e, n, t, l, a, r) { class: "upload-btn", onClick: n[3] || (n[3] = (s) => e.uploadinput.click()) }, [ - Ys, - O(" " + I(e.$t("bone.upload")) + " ", 1), - e.state.loading ? (m(), f("sl-spinner", Xs)) : S("", !0) - ], 8, Qs)) : S("", !0) + Xs, + O(" " + A(e.$t("bone.upload")) + " ", 1), + e.state.loading ? (m(), f("sl-spinner", xs)) : $("", !0) + ], 8, Ys)) : $("", !0) ], 32); } -const ea = /* @__PURE__ */ C(Ws, [["render", xs], ["__scopeId", "data-v-9bac9f8a"]]), $e = _e("boneStore", () => { +const ta = /* @__PURE__ */ C(qs, [["render", ea], ["__scopeId", "data-v-9bac9f8a"]]), $e = _e("boneStore", () => { const e = w({ - additionalBones: H({}), - defaultBones: H({ + additionalBones: K({}), + defaultBones: K({ rawBone: ve, keyBone: Be, stringBone: je, @@ -1839,21 +1839,21 @@ const ea = /* @__PURE__ */ C(Ws, [["render", xs], ["__scopeId", "data-v-9bac9f8a dateBone: Ve, booleanBone: Ne, selectBone: Re, - passwordBone: Le, - recordBone: Ue, + passwordBone: Pe, + recordBone: Le, numericBone: Te, - colorBone: Pe, + colorBone: Ue, relationalBone: Me, - jsonBone: Kn, + jsonBone: Hn, fileBone: We, - textBone: ze, - spatialBone: qe + textBone: qe, + spatialBone: ze }), - actionbars: H({ - "relational.tree.leaf.file.file": ea, - "relational.": Ms + actionbars: K({ + "relational.tree.leaf.file.file": ta, + "relational.": Ws }), - multibones: H(["select", "select."]) + multibones: K(["select", "select."]) }); function n(s, u) { e.additionalBones[s] = u; @@ -1878,7 +1878,7 @@ const ea = /* @__PURE__ */ C(Ws, [["render", xs], ["__scopeId", "data-v-9bac9f8a return e.additionalBones[c[0]]; } } - return s === "date" ? Ve : s === "key" ? Be : s === "str.email" ? De : s === "str" || s.startsWith("str.") ? je : s === "select" || s.startsWith("select.") ? Re : s === "bool" ? Ne : s === "password" ? Le : s === "record" ? Ue : s === "numeric" || s.startsWith("numeric.") ? Te : s === "relational.tree.leaf.file.file" ? We : s === "relational" || s.startsWith("relational.") ? Me : s === "color" ? Pe : s === "text" ? ze : s === "spatial" ? qe : ve; + return s === "date" ? Ve : s === "key" ? Be : s === "str.email" ? De : s === "str" || s.startsWith("str.") ? je : s === "select" || s.startsWith("select.") ? Re : s === "bool" ? Ne : s === "password" ? Pe : s === "record" ? Le : s === "numeric" || s.startsWith("numeric.") ? Te : s === "relational.tree.leaf.file.file" ? We : s === "relational" || s.startsWith("relational.") ? Me : s === "color" ? Ue : s === "text" ? qe : s === "spatial" ? ze : ve; } function a(s, u) { e.actionbars[s] = u; @@ -1897,7 +1897,7 @@ const ea = /* @__PURE__ */ C(Ws, [["render", xs], ["__scopeId", "data-v-9bac9f8a return e.actionbars[c[0]]; } } - return Bs; + return js; } return { state: e, @@ -1908,13 +1908,13 @@ const ea = /* @__PURE__ */ C(Ws, [["render", xs], ["__scopeId", "data-v-9bac9f8a getBoneActionbar: r }; }); -function ta(e) { +function na(e) { return $e().getBoneActionbar(e); } function x(e) { return $e().getBoneWidget(e); } -function na(e) { +function sa(e) { const n = $e(); if (n.state.multibones.includes(e)) return !0; @@ -1935,8 +1935,8 @@ D({ inheritAttrs: !1, emits: ["change", "change-internal", "handleClick"], components: { - wrapperMultiple: It, - BoneLabel: Rt + wrapperMultiple: Ot, + BoneLabel: Nt }, props: { is: { @@ -1968,8 +1968,8 @@ D({ setup(e, n) { const t = w({ bonestructure: k(() => { - var p; - return (p = e.structure) == null ? void 0 : p[e.name]; + var h; + return (h = e.structure) == null ? void 0 : h[e.name]; }), bonevalue: null, dragStartIndex: { @@ -1993,8 +1993,8 @@ D({ index: Number }, multilanguage: k(() => { - var p; - return ((p = t.languages) == null ? void 0 : p.length) && t.languages.length > 0; + var h; + return ((h = t.languages) == null ? void 0 : h.length) && t.languages.length > 0; }), languages: k(() => e.languages ? e.languages : t.bonestructure && Object.keys(t.bonestructure).includes("languages") ? t.bonestructure.languages : []), readonly: k(() => e.readonly ? e.readonly : t.bonestructure && Object.keys(t.bonestructure).includes("readonly") ? t.bonestructure.readonly : !1), @@ -2003,138 +2003,138 @@ D({ multiple: k(() => e.multiple ? e.multiple : t.bonestructure && Object.keys(t.bonestructure).includes("multiple") ? t.bonestructure.multiple : !1), params: k(() => e.params ? e.params : t.bonestructure && Object.keys(t.bonestructure).includes("params") ? t.bonestructure.params : {}), actionbar: k(() => { - var p; - return ta((p = t.bonestructure) == null ? void 0 : p.type); + var h; + return na((h = t.bonestructure) == null ? void 0 : h.type); }), isEmpty: k(() => { - function p(b) { - for (const [y, $] of Object.entries(b)) - if ($ !== null) { - if (Array.isArray($) && $.length > 0) + function h(b) { + for (const [y, S] of Object.entries(b)) + if (S !== null) { + if (Array.isArray(S) && S.length > 0) return !1; - if (!Array.isArray($)) + if (!Array.isArray(S)) return !1; } return !0; } - return t.readonly ? !1 : !t.bonevalue || Array.isArray(t.bonevalue) && t.bonevalue.length === 0 ? !0 : t.bonevalue === Object(t.bonevalue) && !Array.isArray(t.bonevalue) ? p(t.bonevalue) : !1; + return t.readonly ? !1 : !t.bonevalue || Array.isArray(t.bonevalue) && t.bonevalue.length === 0 ? !0 : t.bonevalue === Object(t.bonevalue) && !Array.isArray(t.bonevalue) ? h(t.bonevalue) : !1; }), errors: [], errorMessages: k(() => { - let p = []; + let h = []; for (let b of e.errors) - b.fieldPath[0] === e.name && (b.severity > 2 || t.required && (b.severity === 2 || b.severity === 0)) && p.push(b.errorMessage); - return p; + b.fieldPath[0] === e.name && (b.severity > 2 || t.required && (b.severity === 2 || b.severity === 0)) && h.push(b.errorMessage); + return h; }) }); ie("boneState", t); - function l(p, b, y) { - s(b, p, "isDragging"), s(b, p, "dragStartIndex"); + function l(h, b, y) { + s(b, h, "isDragging"), s(b, h, "dragStartIndex"); } - function a(p, b, y) { + function a(h, b, y) { y.preventDefault(); - const $ = y.clientY - y.target.getBoundingClientRect().top, A = y.target.closest(".value-line"); - $ < A.offsetHeight / 2 ? (s(b, p, "draggingLineTop"), u("draggingLineBottom"), t.dropIndex.index = p) : (s(b, p, "draggingLineBottom"), u("draggingLineTop"), t.dropIndex.index = p + 1); - let N = b ? t.bonevalue[b] : t.bonevalue; - t.dropIndex.index > N.length - 1 && (t.dropIndex.index -= 1); - } - function r(p, b, y) { - let $ = null; - t.dragStartIndex.index !== t.dropIndex.index && (b ? ($ = t.bonevalue[b].splice(t.dragStartIndex.index, 1)[0], t.bonevalue[b].splice(t.dropIndex.index, 0, $)) : ($ = t.bonevalue.splice(t.dragStartIndex.index, 1)[0], t.bonevalue.splice(t.dropIndex.index, 0, $)), console.dir(t.bonevalue[0]), n.emit("change", { + const S = y.clientY - y.target.getBoundingClientRect().top, I = y.target.closest(".value-line"); + S < I.offsetHeight / 2 ? (s(b, h, "draggingLineTop"), u("draggingLineBottom"), t.dropIndex.index = h) : (s(b, h, "draggingLineBottom"), u("draggingLineTop"), t.dropIndex.index = h + 1); + let P = b ? t.bonevalue[b] : t.bonevalue; + t.dropIndex.index > P.length - 1 && (t.dropIndex.index -= 1); + } + function r(h, b, y) { + let S = null; + t.dragStartIndex.index !== t.dropIndex.index && (b ? (S = t.bonevalue[b].splice(t.dragStartIndex.index, 1)[0], t.bonevalue[b].splice(t.dropIndex.index, 0, S)) : (S = t.bonevalue.splice(t.dragStartIndex.index, 1)[0], t.bonevalue.splice(t.dropIndex.index, 0, S)), console.dir(t.bonevalue[0]), n.emit("change", { name: e.name, value: c(), lang: b, - index: p + index: h })), u("draggingLineBottom", "draggingLineTop", "isDragging", "dragStartIndex", "dropIndex"); } - function s(p, b, y) { - t[y].lang = p || null, t[y].index = b; + function s(h, b, y) { + t[y].lang = h || null, t[y].index = b; } - function u(...p) { - p.forEach((b) => { + function u(...h) { + h.forEach((b) => { t[b] = { lang: null, index: Number }; }); } - function o(p, b, y = null, $ = null, A) { - if (b === void 0 || (y ? (t.bonevalue || (t.bonevalue = {}), Object.keys(t.bonevalue).includes(y) && $ !== null ? t.bonevalue[y][$] = b : t.bonevalue[y] = b) : $ !== null ? t.bonevalue[$] = b : A === !1 || (t.bonevalue = b), t.readonly)) + function o(h, b, y = null, S = null, I) { + if (b === void 0 || (y ? (t.bonevalue || (t.bonevalue = {}), Object.keys(t.bonevalue).includes(y) && S !== null ? t.bonevalue[y][S] = b : t.bonevalue[y] = b) : S !== null ? t.bonevalue[S] = b : I === !1 || (t.bonevalue = b), t.readonly)) return !1; - let N = { - name: p, + let P = { + name: h, value: c(), lang: y, - index: $ + index: S }, V = { - name: p, + name: h, value: b, lang: y, - index: $ + index: S }; - A != null && (N.pwMatch = A, V.pwMatch = A), n.emit("change", N), n.emit("change-internal", V); + I != null && (P.pwMatch = I, V.pwMatch = I), n.emit("change", P), n.emit("change-internal", V); } function c() { - function p(y, $ = null) { - let A = []; + function h(y, S = null) { + let I = []; if (Array.isArray(y)) if (t.bonestructure.type == "spatial" && y.length === 2 && !Array.isArray(y[0])) - A.push({ [$ + ".lat"]: y[0] }), A.push({ [$ + ".lng"]: y[1] }); - else if (Object.values(y).filter((N) => N === Object(N)).length > 0) - for (const [N, V] of y.entries()) - V.rel !== null ? A.push(p(V, $ + "." + N)) : A.push(p(V, $)); + I.push({ [S + ".lat"]: y[0] }), I.push({ [S + ".lng"]: y[1] }); + else if (Object.values(y).filter((P) => P === Object(P)).length > 0) + for (const [P, V] of y.entries()) + V.rel !== null ? I.push(h(V, S + "." + P)) : I.push(h(V, S)); else - for (const [N, V] of y.entries()) - A.push(p(V, $)); + for (const [P, V] of y.entries()) + I.push(h(V, S)); else if (y === Object(y)) - for (const [N, V] of Object.entries(y)) - $ ? $.endsWith(".dest") || $.endsWith(".rel") ? $.endsWith(".dest") && N === "key" ? (/\.[0-9]*\.dest$/.test($) ? A.push(p(V, $.replace(/\.[0-9]*\.dest/, ""))) : A.push(p(V, $.replace(/\.dest/, ""))), A.push(p(V, $.replace(/\.dest/, "") + "." + N))) : $.endsWith(".rel") && A.push(p(V, $.replace(/\.rel/, "") + "." + N)) : A.push(p(V, $ + "." + N)) : A.push(p(V, N)); + for (const [P, V] of Object.entries(y)) + S ? S.endsWith(".dest") || S.endsWith(".rel") ? S.endsWith(".dest") && P === "key" ? (/\.[0-9]*\.dest$/.test(S) ? I.push(h(V, S.replace(/\.[0-9]*\.dest/, ""))) : I.push(h(V, S.replace(/\.dest/, ""))), I.push(h(V, S.replace(/\.dest/, "") + "." + P))) : S.endsWith(".rel") && I.push(h(V, S.replace(/\.rel/, "") + "." + P)) : I.push(h(V, S + "." + P)) : I.push(h(V, P)); else - y == null && (y = ""), $ !== null && A.push({ [$]: y }); - return A; + y == null && (y = ""), S !== null && I.push({ [S]: y }); + return I; } - let b = p(t.bonevalue, e.name); + let b = h(t.bonevalue, e.name); return b = b.flat(10), b; } - function d(p = null, b = "") { - p ? Object.keys(t.bonevalue).includes(p) ? t.bonevalue[p].push(b) : t.bonevalue[p] = [b] : t.bonevalue ? t.bonevalue.push(b) : t.bonevalue = [b]; + function d(h = null, b = "") { + h ? Object.keys(t.bonevalue).includes(h) ? t.bonevalue[h].push(b) : t.bonevalue[h] = [b] : t.bonevalue ? t.bonevalue.push(b) : t.bonevalue = [b]; } ie("addMultipleEntry", d); - function g(p, b = null) { + function g(h, b = null) { var y; - b ? (y = t.bonevalue) == null || y[b].splice(p, 1) : t.bonevalue.splice(p, 1), n.emit("change", { + b ? (y = t.bonevalue) == null || y[b].splice(h, 1) : t.bonevalue.splice(h, 1), n.emit("change", { name: e.name, value: c(), lang: b, - index: p + index: h }), n.emit("change-internal", { name: e.name, value: c(), lang: b, - index: p + index: h }); } - function v(p = null) { + function v(h = null) { var b; - p ? (b = t.bonevalue) == null || b[p].splice(0) : t.bonevalue.splice(0), n.emit("change", { + h ? (b = t.bonevalue) == null || b[h].splice(0) : t.bonevalue.splice(0), n.emit("change", { name: e.name, value: c(), - lang: p + lang: h }), n.emit("change-internal", { name: e.name, value: c(), - lang: p + lang: h }); } ie("removeMultipleEntries", v); - function h(p = null, b = "") { - d(p, b); + function p(h = null, b = "") { + d(h, b); } - function _(p, b) { + function _(h, b) { function y(V) { - let Z = [], F = [], ne = /\$\((.*?)\)/g; + let Z = [], F = [], se = /\$\((.*?)\)/g; for (; F; ) { - if (F = ne.exec(V), !F) { + if (F = se.exec(V), !F) { F = !1; continue; } @@ -2142,48 +2142,48 @@ D({ } return Z; } - function $(V, Z) { - let F = V.split("."), ne = V.split("."), T = Z; + function S(V, Z) { + let F = V.split("."), se = V.split("."), q = Z; for (let Y of F) - if (ne.shift(), T && T !== "-" && Object.keys(T).includes(Y) && T[Y]) - if (Array.isArray(T[Y])) { + if (se.shift(), q && q !== "-" && Object.keys(q).includes(Y) && q[Y]) + if (Array.isArray(q[Y])) { let Ae = []; - for (let et of T[Y]) - Ae.push($(ne.join("."), et)); - T = Ae.join(", "); + for (let tt of q[Y]) + Ae.push(S(se.join("."), tt)); + q = Ae.join(", "); } else - T = T[Y]; + q = q[Y]; else - (!T || typeof T[Y] == "object" && !T[Y]) && (T = "-"); - return T; + (!q || typeof q[Y] == "object" && !q[Y]) && (q = "-"); + return q; } - let A = y(p), N = []; + let I = y(h), P = []; Array.isArray(b) || (b = [b]); for (let V of b) { - let Z = p; - for (let F of A) { - let ne = $(F, V); - Z = Z.replace("$(" + F + ")", ne); + let Z = h; + for (let F of I) { + let se = S(F, V); + Z = Z.replace("$(" + F + ")", se); } - N.push(Z); + P.push(Z); } - return N.join(", "); + return P.join(", "); } return ie("formatString", _), Q(() => { - var p; - e.value ? t.bonevalue = e.value : t.bonevalue = (p = e.skel) == null ? void 0 : p[e.name]; - }), se( + var h; + e.value ? t.bonevalue = e.value : t.bonevalue = (h = e.skel) == null ? void 0 : h[e.name]; + }), ae( () => e.skel, - (p, b) => { + (h, b) => { var y; t.bonevalue = (y = e.skel) == null ? void 0 : y[e.name]; } - ), se( + ), ae( () => { - var p; - return (p = e.errors) == null ? void 0 : p[e.name]; + var h; + return (h = e.errors) == null ? void 0 : h[e.name]; }, - (p, b) => { + (h, b) => { t.errors = e.errors; } ), { @@ -2192,8 +2192,8 @@ D({ addMultipleEntry: d, removeMultipleEntry: g, removeMultipleEntries: v, - BoneHasMultipleHandling: na, - multipleBonePressEnter: h, + BoneHasMultipleHandling: sa, + multipleBonePressEnter: p, handleDragStart: l, handleDragOver: a, handleDrop: r, @@ -2232,7 +2232,7 @@ const Se = { return { state: t }; } }, Fe = () => { - rt((e) => ({ + it((e) => ({ "93747d92": e.state.outerSize, "284424e5": e.state.shadow, "6485ca5e": e.state.logoSize, @@ -2242,25 +2242,25 @@ const Se = { })); }, Ke = Se.setup; Se.setup = Ke ? (e, n) => (Fe(), Ke(e, n)) : Fe; -const sa = (e) => (M("data-v-46c45785"), e = e(), z(), e), aa = { +const aa = (e) => (T("data-v-46c45785"), e = e(), M(), e), la = { key: 0, class: "loading" -}, la = /* @__PURE__ */ sa(() => /* @__PURE__ */ i("sl-spinner", { class: "loader" }, null, -1)), oa = { class: "logo" }, ra = ["src"]; -function ia(e, n, t, l, a, r) { - return m(), P(it, null, { - default: ut(() => [ - t.active ? (m(), f("div", aa, [ - la, - i("div", oa, [ - i("sl-icon", { src: t.logo }, null, 8, ra) +}, oa = /* @__PURE__ */ aa(() => /* @__PURE__ */ i("sl-spinner", { class: "loader" }, null, -1)), ra = { class: "logo" }, ia = ["src"]; +function ua(e, n, t, l, a, r) { + return m(), U(ut, null, { + default: dt(() => [ + t.active ? (m(), f("div", la, [ + oa, + i("div", ra, [ + i("sl-icon", { src: t.logo }, null, 8, ia) ]) - ])) : S("", !0) + ])) : $("", !0) ]), _: 1 }); } -const ua = /* @__PURE__ */ C(Se, [["render", ia], ["__scopeId", "data-v-46c45785"]]), ee = _e("cartstore", () => { - const e = new gt({ +const da = /* @__PURE__ */ C(Se, [["render", ua], ["__scopeId", "data-v-46c45785"]]), ee = _e("cartstore", () => { + const e = new ht({ host_url: window.location.origin === "http://localhost:8081" ? "http://localhost:8080" : window.location.origin }), n = w({ basketRootNode: {}, @@ -2269,64 +2269,65 @@ const ua = /* @__PURE__ */ C(Se, [["render", ia], ["__scopeId", "data-v-46c45785 structure: { address: {}, cart: {} }, paymentProviders: {}, billingAddress: {}, - shippingAddress: {} + shippingAddress: {}, + selectedPaymentProvider: {} }); async function t() { await a(); } - async function l(h) { - return await e.cart_list({ cart_key: h }); + async function l(p) { + return await e.cart_list({ cart_key: p }); } async function a() { (await e.cart_list()).forEach((_) => { _.is_root_node && (_.cart_type === "basket" ? n.basketRootNode = _ : n.whishlistRootNodes.push(_)); }); } - async function r(h, _) { - let p = await e.article_add({ - article_key: h, + async function r(p, _) { + let h = await e.article_add({ + article_key: p, parent_cart_key: _ }); - console.log("addToCart", p); + console.log("addToCart", h); } - async function s(h, _) { - let p = await e.article_view({ - article_key: h, + async function s(p, _) { + let h = await e.article_view({ + article_key: p, parent_cart_key: _ }); - console.log("getArticleView", p); + console.log("getArticleView", h); } - async function u(h, _) { - let p = await e.article_remove({ - article_key: h, + async function u(p, _) { + let h = await e.article_remove({ + article_key: p, parent_cart_key: _ }); - console.log("remove Resp", p); + console.log("remove Resp", h); } - async function o(h, _, p) { + async function o(p, _, h) { let b = await e.article_update({ - article_key: h, + article_key: p, parent_cart_key: _, - quantity: p, + quantity: h, quantity_mode: "replace" }); console.log("update Resp", b); } async function c() { - const h = await e.address_structure(); - n.structure.address = h.addSkel; + const p = await e.address_structure(); + n.structure.address = p.addSkel; } async function d() { - const h = await e.address_list(); - for (const _ of h) + const p = await e.address_list(); + for (const _ of p) _.address_type === "billing" && (n.billingAddress = _), _.address_type === "shipping" && (n.shippingAddress = _); } - async function g(h) { - await e.discount_add({ code: h }); + async function g(p) { + await e.discount_add({ code: p }); } async function v() { - const h = await e.payment_providers_list(); - console.log(h), n.paymentProviders = h; + const p = await e.payment_providers_list(); + n.paymentProviders = p, n.selectedPaymentProvider = p[Object.keys(p)[0]]; } return { state: n, @@ -2341,19 +2342,19 @@ const ua = /* @__PURE__ */ C(Se, [["render", ia], ["__scopeId", "data-v-46c45785 payment_providers_list: v, getAddress: d }; -}), da = { +}), ca = { __name: "CartNode", props: { node: { type: Object, required: !0 } }, setup(e) { - return w({}), (n, t) => (m(), f("pre", null, I(e.node.name), 1)); + return w({}), (n, t) => (m(), f("pre", null, A(e.node.name), 1)); } }; -const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { +const ge = (e) => (T("data-v-d313b580"), e = e(), M(), e), ma = { horizontal: "", class: "viur-shop-cart-leaf" -}, ma = ["src"], fa = { class: "viur-shop-cart-leaf-headline headline" }, ga = { class: "viur-shop-cart-leaf-artno" }, pa = ["innerHTML"], ha = { class: "viur-shop-cart-leaf-quantity" }, ba = { class: "viur-shop-cart-leaf-unitprice" }, va = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "St\xFCckpreis", -1)), _a = ["value"], ya = { class: "viur-shop-cart-leaf-actions" }, $a = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-button", { +}, fa = ["src"], ga = { class: "viur-shop-cart-leaf-headline headline" }, ha = { class: "viur-shop-cart-leaf-artno" }, pa = ["innerHTML"], ba = { class: "viur-shop-cart-leaf-quantity" }, va = { class: "viur-shop-cart-leaf-unitprice" }, _a = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "St\xFCckpreis", -1)), ya = ["value"], $a = { class: "viur-shop-cart-leaf-actions" }, Sa = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-button", { size: "small", outline: "", class: "viur-shop-cart-leaf-add-to-favourites-btn", @@ -2364,12 +2365,12 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { name: "heart", slot: "prefix" }) -], -1)), Sa = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-icon", { +], -1)), ka = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("sl-icon", { name: "trash", slot: "prefix" -}, null, -1)), ka = [ - Sa -], wa = { class: "viur-shop-cart-leaf-price" }, Ea = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "Gesamtpreis", -1)), Aa = ["value"], Ca = { +}, null, -1)), wa = [ + ka +], Ea = { class: "viur-shop-cart-leaf-price" }, Aa = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-leaf-label" }, "Gesamtpreis", -1)), Ca = ["value"], Ia = { __name: "CartLeaf", props: { leaf: { type: Object, required: !0 }, @@ -2381,7 +2382,7 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { leaf: {} }); function r(o) { - return o !== void 0 ? ft.downloadUrlFor(o) : "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80"; + return o !== void 0 ? gt.downloadUrlFor(o) : "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80"; } function s(o, c, d, g) { l("updateItem", { @@ -2396,19 +2397,19 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { } return Q(() => { a.leaf = t.leaf; - }), (o, c) => (m(), f("sl-card", ca, [ + }), (o, c) => (m(), f("sl-card", ma, [ i("img", { class: "viur-shop-cart-leaf-image", slot: "image", src: r(a.leaf.shop_image ? a.leaf.shop_image : void 0) - }, null, 8, ma), - i("h4", fa, I(a.leaf.shop_name), 1), - i("h5", ga, I(a.leaf.shop_art_no_or_gtin), 1), + }, null, 8, fa), + i("h4", ga, A(a.leaf.shop_name), 1), + i("h5", ha, A(a.leaf.shop_art_no_or_gtin), 1), i("div", { class: "viur-shop-cart-leaf-description", innerHTML: a.leaf.shop_description }, null, 8, pa), - i("div", ha, [ + i("div", ba, [ J(i("sl-input", { class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--quantity", type: "number", @@ -2426,18 +2427,18 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { [oe, a.leaf.quantity] ]) ]), - i("div", ba, [ - va, + i("div", va, [ + _a, i("sl-format-number", { class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice", lang: "de", type: "currency", currency: "EUR", value: e.leaf.price.retail - }, null, 8, _a) + }, null, 8, ya) ]), - i("div", ya, [ - $a, + i("div", $a, [ + Sa, i("sl-button", { size: "small", outline: "", @@ -2445,27 +2446,27 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { variant: "primary", title: "Remove from cart", onClick: c[2] || (c[2] = (d) => u(a.leaf, a.leaf.article.dest.key, e.node)) - }, ka) + }, wa) ]), - i("div", wa, [ - Ea, + i("div", Ea, [ + Aa, i("sl-format-number", { class: "viur-shop-cart-leaf-value viur-shop-cart-leaf-value--price", lang: "de", type: "currency", currency: "EUR", value: e.leaf.price.retail * e.leaf.quantity - }, null, 8, Aa) + }, null, 8, Ca) ]) ])); } -}, Ia = /* @__PURE__ */ C(Ca, [["__scopeId", "data-v-d313b580"]]), Oa = /* @__PURE__ */ i("sl-icon", { +}, Oa = /* @__PURE__ */ C(Ia, [["__scopeId", "data-v-d313b580"]]), Ba = /* @__PURE__ */ i("sl-icon", { slot: "icon", name: "info-circle" -}, null, -1), Ba = { key: 0 }, ja = { key: 0 }, Da = { key: 1 }, Va = { +}, null, -1), ja = { key: 0 }, Da = { key: 0 }, Va = { key: 1 }, Ra = { __name: "Discount", setup(e) { - const n = ee(), t = q(null), l = q(null), a = w({ + const n = ee(), t = z(null), l = z(null), a = w({ errorMessage: "" }); function r() { @@ -2489,57 +2490,43 @@ const ge = (e) => (M("data-v-d313b580"), e = e(), z(), e), ca = { ref_key: "errorMessageContainer", ref: l }, [ - Oa, - O(" " + I(a.errorMessage), 1) + Ba, + O(" " + A(a.errorMessage), 1) ], 512) ]), i("div", null, [ - L(n).state.basketRootNode.discount ? (m(), f("div", Ba, [ - L(n).state.basketRootNode.discount.dest.discount_type === "absolute" ? (m(), f("span", ja, " Sie haben einen Rabattcode im Wert von " + I(L(n).state.basketRootNode.discount.dest.absolute) + " \u20AC eingegeben ", 1)) : S("", !0), - L(n).state.basketRootNode.discount.dest.discount_type === "percentage" ? (m(), f("span", Da, " Sie haben einen Rabattcode im Wert von " + I(L(n).state.basketRootNode.discount.dest.percentage) + " % eingegeben ", 1)) : S("", !0) - ])) : S("", !0) + R(n).state.basketRootNode.discount ? (m(), f("div", ja, [ + R(n).state.basketRootNode.discount.dest.discount_type === "absolute" ? (m(), f("span", Da, " Sie haben einen Rabattcode im Wert von " + A(R(n).state.basketRootNode.discount.dest.absolute) + " \u20AC eingegeben ", 1)) : $("", !0), + R(n).state.basketRootNode.discount.dest.discount_type === "percentage" ? (m(), f("span", Va, " Sie haben einen Rabattcode im Wert von " + A(R(n).state.basketRootNode.discount.dest.percentage) + " % eingegeben ", 1)) : $("", !0) + ])) : $("", !0) ]) ], 64)); } }; -const K = (e) => (M("data-v-84507113"), e = e(), z(), e), Ra = { key: 0 }, Na = /* @__PURE__ */ K(() => /* @__PURE__ */ i("p", null, "M\xF6chten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), La = { +const G = (e) => (T("data-v-b5419f82"), e = e(), M(), e), Na = { key: 0 }, Pa = /* @__PURE__ */ G(() => /* @__PURE__ */ i("p", null, "M\xF6chten Sie den Artikel wirklich aus dem Warenkorb entfernen?", -1)), La = { class: "footer-wrap", slot: "footer" -}, Ua = { class: "viur-shop-cart-node" }, Pa = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { id: "order_sidebar" }, null, -1)), Ta = /* @__PURE__ */ K(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, " Zusammenfassung ", -1)), Ma = /* @__PURE__ */ K(() => /* @__PURE__ */ i("br", null, null, -1)), Wa = { class: "viur-shop-cart-sidebar-info-line" }, za = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Zwischensumme", -1)), qa = { class: "viur-shop-cart-sidebar-info-line" }, Fa = /* @__PURE__ */ K(() => /* @__PURE__ */ i("span", null, "Rabatt", -1)), Ka = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [ +}, Ua = { class: "viur-shop-cart-node" }, Ta = /* @__PURE__ */ G(() => /* @__PURE__ */ i("div", { id: "order_sidebar" }, null, -1)), Ma = /* @__PURE__ */ G(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, " Zusammenfassung ", -1)), Wa = /* @__PURE__ */ G(() => /* @__PURE__ */ i("br", null, null, -1)), qa = { class: "viur-shop-cart-sidebar-info-line" }, za = /* @__PURE__ */ G(() => /* @__PURE__ */ i("span", null, "Zwischensumme", -1)), Fa = { class: "viur-shop-cart-sidebar-info-line" }, Ka = /* @__PURE__ */ G(() => /* @__PURE__ */ i("span", null, "Rabatt", -1)), Ha = /* @__PURE__ */ G(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line" }, [ /* @__PURE__ */ i("span", null, "Versandkosten"), /* @__PURE__ */ O(" 0 \u20AC ") -], -1)), Ha = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-info-line total" }, [ - /* @__PURE__ */ i("span", null, "Gesamt:"), - /* @__PURE__ */ O(" \u20AC ") -], -1)), Ga = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-sidebar-btn-wrap" }, [ - /* @__PURE__ */ i("sl-button", { - variant: "primary", - size: "medium" - }, " Jetzt Bestellen "), - /* @__PURE__ */ i("sl-button", { - size: "medium", - variant: "info" - }, [ - /* @__PURE__ */ i("sl-icon", { - name: "paypal", - slot: "prefix" - }), - /* @__PURE__ */ O(" Paypal ") - ]) -], -1)), Za = /* @__PURE__ */ K(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-mobile-footer" }, [ - /* @__PURE__ */ i("sl-button", { - variant: "primary", - size: "medium" - }, " Jetzt Bestellen") -], -1)), Ja = { +], -1)), Ga = { class: "viur-shop-cart-sidebar-info-line total" }, Za = /* @__PURE__ */ G(() => /* @__PURE__ */ i("span", null, "Gesamt:", -1)), Ja = { + key: 0, + class: "viur-shop-cart-sidebar-btn-wrap" +}, Qa = /* @__PURE__ */ G(() => /* @__PURE__ */ i("sl-button", { + variant: "primary", + size: "medium" +}, " Jetzt Bestellen ", -1)), Ya = [ + Qa +], Xa = { __name: "CartView", props: { mode: { type: String, default: "basket" }, cartKey: { type: String, required: !0 }, - sidebar: { type: Boolean, default: !0 } + sidebar: { type: Boolean, default: !0 }, + inOrderView: { type: Boolean, default: !1 } }, setup(e) { - const n = e, t = ee(), l = q(null), a = w({ + const n = e, t = ee(), l = z(null), a = w({ itemsIsInit: k(() => !0), images: {}, currentItem: {}, @@ -2572,8 +2559,8 @@ const K = (e) => (M("data-v-84507113"), e = e(), z(), e), Ra = { key: 0 }, Na = async function d(g = n.cartKey) { console.log("debug getChildren parentKey from comp: ", g); const v = await t.getChildren(g); - console.log("getChildren children: ", v), v.forEach(async (h) => { - h.skel_type === "node" ? (a.nodes.push(h), await d(h.key)) : (Object.keys(a.leaves).includes(g) || (a.leaves[g] = []), a.leaves[g].push(h)); + console.log("getChildren children: ", v), v.forEach(async (p) => { + p.skel_type === "node" ? (a.nodes.push(p), await d(p.key)) : (Object.keys(a.leaves).includes(g) || (a.leaves[g] = []), a.leaves[g].push(p)); }); } return Q(async () => { @@ -2584,11 +2571,11 @@ const K = (e) => (M("data-v-84507113"), e = e(), z(), e), Ra = { key: 0 }, Na = ref: l, onSlHide: o }, [ - Na, + Pa, i("div", La, [ i("sl-button", { variant: "danger", - onClick: v[0] || (v[0] = (h) => l.value.hide()), + onClick: v[0] || (v[0] = (p) => l.value.hide()), size: "medium" }, " Abbrechen "), i("sl-button", { @@ -2598,51 +2585,53 @@ const K = (e) => (M("data-v-84507113"), e = e(), z(), e), Ra = { key: 0 }, Na = }, " Aus Warenkorb entfernen ") ]) ], 544), - (m(!0), f(E, null, U(a.nodes, (h) => (m(), f("div", Ua, [ - Object.keys(a.leaves).includes(h.key) ? (m(), f(E, { key: 0 }, [ - Ie(da, { node: h }, null, 8, ["node"]), - (m(!0), f(E, null, U(a.leaves[h.key], (_) => (m(), P(Ia, { + (m(!0), f(E, null, L(a.nodes, (p) => (m(), f("div", Ua, [ + Object.keys(a.leaves).includes(p.key) ? (m(), f(E, { key: 0 }, [ + Ie(ca, { node: p }, null, 8, ["node"]), + (m(!0), f(E, null, L(a.leaves[p.key], (_) => (m(), U(Oa, { key: _.key, leaf: _, - node: h, + node: p, onRemoveItem: u, onUpdateItem: s }, null, 8, ["leaf", "node"]))), 128)) - ], 64)) : S("", !0) + ], 64)) : $("", !0) ]))), 256)), - Pa, - e.sidebar ? (m(), P(Ge, { + Ta, + e.sidebar ? (m(), U(Ge, { key: 0, to: "#order_sidebar" }, [ e.sidebar ? (m(), f(E, { key: 0 }, [ - Ta, Ma, - i("div", Wa, [ + Wa, + i("div", qa, [ za, - O(" " + I(e.mode === "basket" ? L(t).state.basketRootNode.total : L(t).state.whishlistRootNodes[e.cartKey].total) + " \u20AC ", 1) + O(" " + A(e.mode === "basket" ? R(t).state.basketRootNode.total : R(t).state.whishlistRootNodes[e.cartKey].total) + " \u20AC ", 1) ]), - i("div", qa, [ - Fa, - O(" " + I(L(t).state.basketRootNode.total - L(t).state.basketRootNode.total_discount_price) + " \u20AC ", 1) + i("div", Fa, [ + Ka, + O(" " + A(R(t).state.basketRootNode.total - R(t).state.basketRootNode.total_discount_price) + " \u20AC ", 1) ]), - Ka, Ha, - Ga - ], 64)) : S("", !0) - ])) : S("", !0), - Ie(Va), - Za - ], 64)) : (m(), f("sl-spinner", Ra)); - } -}, ke = /* @__PURE__ */ C(Ja, [["__scopeId", "data-v-84507113"]]), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + i("div", Ga, [ + Za, + O(" " + A(R(t).state.basketRootNode.total) + " \u20AC ", 1) + ]), + n.inOrderView ? $("", !0) : (m(), f("div", Ja, Ya)) + ], 64)) : $("", !0) + ])) : $("", !0), + Ie(Ra) + ], 64)) : (m(), f("sl-spinner", Na)); + } +}, ke = /* @__PURE__ */ C(Xa, [["__scopeId", "data-v-b5419f82"]]), xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ke }, Symbol.toStringTag, { value: "Module" })); -const le = (e) => (M("data-v-4082d346"), e = e(), z(), e), Ya = { +const te = (e) => (T("data-v-b3e35258"), e = e(), M(), e), el = { key: 1, class: "list" -}, Xa = /* @__PURE__ */ le(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Bestellung pr\xFCfen", -1)), xa = /* @__PURE__ */ le(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-wrap" }, [ +}, tl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Bestellung pr\xFCfen", -1)), nl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-wrap" }, [ /* @__PURE__ */ i("div", { class: "viur-shop-cart-address" }, [ /* @__PURE__ */ i("div", { class: "viur-shop-cart-address-headline" }, [ /* @__PURE__ */ O(" Versandadresse "), @@ -2691,21 +2680,15 @@ const le = (e) => (M("data-v-4082d346"), e = e(), z(), e), Ya = { /* @__PURE__ */ i("br"), /* @__PURE__ */ O(" 0231 21 34 68 90 ") ]) -], -1)), el = /* @__PURE__ */ le(() => /* @__PURE__ */ i("div", { class: "viur-shop-cart-payment" }, [ - /* @__PURE__ */ i("div", { class: "viur-shop-cart-payment-method" }, [ - /* @__PURE__ */ i("span", null, "Zahlungsmethode:"), - /* @__PURE__ */ O(" Paypal ") - ]), - /* @__PURE__ */ i("sl-button", { - outline: "", - size: "small" - }, [ - /* @__PURE__ */ i("sl-icon", { - name: "pencil", - slot: "prefix" - }) - ]) -], -1)), tl = /* @__PURE__ */ le(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Warenkorb", -1)), nl = /* @__PURE__ */ le(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Jetzt Bestellen", -1)), sl = /* @__PURE__ */ le(() => /* @__PURE__ */ i("br", null, null, -1)), al = { class: "viur-shop-cart-sidebar-btn-wrap" }, ll = ["variant", "disabled"], ol = { +], -1)), sl = { class: "viur-shop-cart-payment" }, al = { class: "viur-shop-cart-payment-method" }, ll = /* @__PURE__ */ te(() => /* @__PURE__ */ i("span", null, "Zahlungsmethode:", -1)), ol = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-button", { + outline: "", + size: "small" +}, [ + /* @__PURE__ */ i("sl-icon", { + name: "pencil", + slot: "prefix" + }) +], -1)), rl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-headline headline" }, "Warenkorb", -1)), il = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-cart-sidebar-headline headline" }, "Jetzt Bestellen", -1)), ul = /* @__PURE__ */ te(() => /* @__PURE__ */ i("br", null, null, -1)), dl = { class: "viur-shop-cart-sidebar-btn-wrap" }, cl = ["variant", "disabled"], ml = { __name: "ConfirmView", setup(e) { const n = ee(), t = w({ @@ -2714,47 +2697,58 @@ const le = (e) => (M("data-v-4082d346"), e = e(), z(), e), Ya = { var a; return !!((a = n.state) != null && a.carts[n.state.basket].items); }), + selectedPaymentProvider: k(() => { + var a; + return (a = n.state) == null ? void 0 : a.selectedPaymentProvider.title; + }), images: {}, showOrderButton: !1 }); + console.log("se", t.selectedPaymentProvider); function l(a) { a.target.checked && (t.showOrderButton = !0), a.target.checked || (t.showOrderButton = !1); } return Q(async () => { await n.init(); - }), (a, r) => t.cartIsInit ? (m(), f("div", Ya, [ - Xa, - xa, - el, + }), (a, r) => t.cartIsInit ? (m(), f("div", el, [ tl, - (m(), P(Ge, { to: "#order_sidebar" }, [ - nl, - sl, - i("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32), + nl, + i("div", sl, [ i("div", al, [ + ll, + O(" " + A(t.selectedPaymentProvider), 1) + ]), + ol + ]), + rl, + (m(), U(Ge, { to: "#order_sidebar" }, [ + il, + ul, + i("sl-checkbox", { onSlChange: l }, " Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ", 32), + i("div", dl, [ i("sl-button", { variant: t.showOrderButton ? "info" : "disabled", size: "small", disabled: !t.showOrderButton - }, " Zahlungspflichtig bestellen ", 8, ll) + }, " Zahlungspflichtig bestellen ", 8, cl) ]) ])) - ])) : (m(), P(ua, { key: 0 })); + ])) : (m(), U(da, { key: 0 })); } -}, we = /* @__PURE__ */ C(ol, [["__scopeId", "data-v-4082d346"]]), rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, we = /* @__PURE__ */ C(ml, [["__scopeId", "data-v-b3e35258"]]), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: we }, Symbol.toStringTag, { value: "Module" })); -const il = (e) => (M("data-v-50f31583"), e = e(), z(), e), ul = { class: "bind viur-shop-wrap" }, dl = ["panel", "disabled"], cl = { class: "viur-shop-order-step" }, ml = ["name", "library"], fl = { class: "viur-shop-order-status-text" }, gl = { class: "viur-shop-order-status-span" }, pl = { +const gl = (e) => (T("data-v-50f31583"), e = e(), M(), e), hl = { class: "bind viur-shop-wrap" }, pl = ["panel", "disabled"], bl = { class: "viur-shop-order-step" }, vl = ["name", "library"], _l = { class: "viur-shop-order-status-text" }, yl = { class: "viur-shop-order-status-span" }, $l = { key: 0, name: "chevron-right", class: "viur-shop-order-tab-check" -}, hl = ["name"], bl = ["onClick"], vl = ["onClick"], _l = /* @__PURE__ */ il(() => /* @__PURE__ */ i("div", { class: "viur-shop-sidebar-wrap" }, [ +}, Sl = ["name"], kl = ["onClick"], wl = ["onClick"], El = /* @__PURE__ */ gl(() => /* @__PURE__ */ i("div", { class: "viur-shop-sidebar-wrap" }, [ /* @__PURE__ */ i("div", { class: "viur-shop-sidebar", id: "order_sidebar" }) -], -1)), yl = { +], -1)), Al = { __name: "OrderView", props: { tabs: { @@ -2767,13 +2761,13 @@ const il = (e) => (M("data-v-50f31583"), e = e(), z(), e), ul = { class: "bind v const t = e, l = n, a = w({ tabNames: k(() => s(t.tabs)), isFirstTab: (d) => d === 0 - }), r = q(null); + }), r = z(null); function s(d) { let g = [], v = []; - for (const h in d) - d[h].position ? g.push([h, d[h].position]) : g.push([h, 0]); - return g.sort((h, _) => h[1] - _[1]), g.forEach((h) => { - v.push(h[0]); + for (const p in d) + d[p].position ? g.push([p, d[p].position]) : g.push([p, 0]); + return g.sort((p, _) => p[1] - _[1]), g.forEach((p) => { + v.push(p[0]); }), v; } function u(d) { @@ -2785,7 +2779,7 @@ const il = (e) => (M("data-v-50f31583"), e = e(), z(), e), ul = { class: "bind v function c(d) { r.value.show(d); } - return (d, g) => (m(), f("div", ul, [ + return (d, g) => (m(), f("div", hl, [ i("sl-tab-group", { class: "viur-shop-order-tabgroup", noScrollControls: "", @@ -2793,7 +2787,7 @@ const il = (e) => (M("data-v-50f31583"), e = e(), z(), e), ul = { class: "bind v ref_key: "tabGroup", ref: r }, [ - (m(!0), f(E, null, U(a.tabNames, (v, h) => { + (m(!0), f(E, null, L(a.tabNames, (v, p) => { var _; return m(), f("sl-tab", { class: "viur-shop-order-tab", @@ -2802,53 +2796,53 @@ const il = (e) => (M("data-v-50f31583"), e = e(), z(), e), ul = { class: "bind v key: v, disabled: e.tabs[v].disabled }, [ - i("div", cl, [ + i("div", bl, [ (_ = e.tabs[v].icon) != null && _.name ? (m(), f("sl-icon", { key: 0, class: "viur-shop-order-step-icon", name: e.tabs[v].icon.name, library: e.tabs[v].icon.library - }, null, 8, ml)) : S("", !0), - i("div", fl, [ - O(I(h + 1) + ". ", 1), - i("span", gl, I(e.tabs[v].displayName), 1) + }, null, 8, vl)) : $("", !0), + i("div", _l, [ + O(A(p + 1) + ". ", 1), + i("span", yl, A(e.tabs[v].displayName), 1) ]) ]), - h < a.tabNames.length - 1 ? (m(), f("sl-icon", pl)) : S("", !0) - ], 8, dl); + p < a.tabNames.length - 1 ? (m(), f("sl-icon", $l)) : $("", !0) + ], 8, pl); }), 128)), - (m(!0), f(E, null, U(a.tabNames, (v, h) => (m(), f("sl-tab-panel", { + (m(!0), f(E, null, L(a.tabNames, (v, p) => (m(), f("sl-tab-panel", { class: "viur-shop-order-tab-panel", name: v, key: v }, [ - (m(), P(dt(e.tabs[v].component), ct({ ref_for: !0 }, e.tabs[v].props ? e.tabs[v].props : ""), null, 16)), - h !== a.tabNames.length - 1 ? (m(), f("div", { + (m(), U(ct(e.tabs[v].component), mt({ ref_for: !0 }, e.tabs[v].props ? e.tabs[v].props : ""), null, 16)), + p !== a.tabNames.length - 1 ? (m(), f("div", { key: 0, - class: G(["viur-shop-form-footer", { "flex-end": a.isFirstTab(h) }]) + class: H(["viur-shop-form-footer", { "flex-end": a.isFirstTab(p) }]) }, [ J(i("sl-button", { type: "submit", - onClick: (_) => o(a.tabNames[h - 1]) - }, " Zur\xFCck ", 8, bl), [ - [be, h !== 0] + onClick: (_) => o(a.tabNames[p - 1]) + }, " Zur\xFCck ", 8, kl), [ + [be, p !== 0] ]), i("sl-button", { type: "submit", variant: "primary", - onClick: (_) => c(a.tabNames[h + 1]) - }, " Weiter ", 8, vl) - ], 2)) : S("", !0) - ], 8, hl))), 128)) + onClick: (_) => c(a.tabNames[p + 1]) + }, " Weiter ", 8, wl) + ], 2)) : $("", !0) + ], 8, Sl))), 128)) ], 544), - _l + El ])); } -}, Xe = /* @__PURE__ */ C(yl, [["__scopeId", "data-v-50f31583"]]); -const pe = (e) => (M("data-v-688e20e0"), e = e(), z(), e), $l = { class: "bind" }, Sl = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("h1", { class: "viur-shop-success-headline headline" }, "Vielen Dank f\xFCr Ihre Bestellung", -1)), kl = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("p", { class: "paragraph" }, [ +}, Xe = /* @__PURE__ */ C(Al, [["__scopeId", "data-v-50f31583"]]); +const he = (e) => (T("data-v-688e20e0"), e = e(), M(), e), Cl = { class: "bind" }, Il = /* @__PURE__ */ he(() => /* @__PURE__ */ i("h1", { class: "viur-shop-success-headline headline" }, "Vielen Dank f\xFCr Ihre Bestellung", -1)), Ol = /* @__PURE__ */ he(() => /* @__PURE__ */ i("p", { class: "paragraph" }, [ /* @__PURE__ */ i("strong", null, "Ihre Bestellnummer:"), /* @__PURE__ */ O(" 123345670 ") -], -1)), wl = { class: "paragraph" }, El = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("br", null, null, -1)), Al = { class: "btn-wrap" }, Cl = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("sl-button", { size: "medium" }, " Zur Startseite ", -1)), Il = { +], -1)), Bl = { class: "paragraph" }, jl = /* @__PURE__ */ he(() => /* @__PURE__ */ i("br", null, null, -1)), Dl = { class: "btn-wrap" }, Vl = /* @__PURE__ */ he(() => /* @__PURE__ */ i("sl-button", { size: "medium" }, " Zur Startseite ", -1)), Rl = { __name: "OrderComplete", props: { redirectUrl: { @@ -2859,15 +2853,15 @@ const pe = (e) => (M("data-v-688e20e0"), e = e(), z(), e), $l = { class: "bind" setup(e) { function n() { } - return (t, l) => (m(), f("div", $l, [ - Sl, - kl, - i("p", wl, [ + return (t, l) => (m(), f("div", Cl, [ + Il, + Ol, + i("p", Bl, [ O(" Wir haben Ihre Bestellung erhalten und werden diese schenllstm\xF6glich bearbeiten."), - El, + jl, O(" Sie erhalten in wenigen Minuten eine Best\xE4tigung per E-Mail. "), - i("div", Al, [ - Cl, + i("div", Dl, [ + Vl, i("sl-button", { variant: "primary", onClick: l[0] || (l[0] = (a) => void 0), @@ -2877,8 +2871,8 @@ const pe = (e) => (M("data-v-688e20e0"), e = e(), z(), e), $l = { class: "bind" ]) ])); } -}, Ol = /* @__PURE__ */ C(Il, [["__scopeId", "data-v-688e20e0"]]); -const Ee = (e) => (M("data-v-4d14c6fe"), e = e(), z(), e), Bl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), jl = { class: "viur-shop-form-wrap" }, Dl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Vl = { class: "viur-shop-form-wrap" }, Rl = { key: 0 }, Nl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Ll = { class: "viur-shop-form-wrap" }, Ul = { +}, Nl = /* @__PURE__ */ C(Rl, [["__scopeId", "data-v-688e20e0"]]); +const Ee = (e) => (T("data-v-4d14c6fe"), e = e(), M(), e), Pl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Ll = { class: "viur-shop-form-wrap" }, Ul = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Tl = { class: "viur-shop-form-wrap" }, Ml = { key: 0 }, Wl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), ql = { class: "viur-shop-form-wrap" }, zl = { __name: "UserInformation", props: { mode: { type: String, default: "form" }, @@ -2911,79 +2905,79 @@ const Ee = (e) => (M("data-v-4d14c6fe"), e = e(), z(), e), Bl = /* @__PURE__ */ u[c] = d; }), console.log("output", u), u) : s; } - return se(t.formValues, (s) => { + return ae(t.formValues, (s) => { Object.entries(s).forEach(([u, o]) => { o === "" && delete t.formValues[u]; }); }), Q(async () => { await n.getAddressStructure(), await n.getAddress(), t.addSkel = r(n.state.structure.address), t.formValues = n.state.shippingAddress; }), (s, u) => { - const o = ae("bone"); + const o = le("bone"); return m(), f(E, null, [ i("div", null, [ - Bl, - i("div", jl, [ - (m(!0), f(E, null, U(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ + Pl, + i("div", Ll, [ + (m(!0), f(E, null, L(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ c.visible && c.params.group === "Customer Info" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + d) + class: H("viur-shop-form-bone-" + d) }, [ - c.visible && c.params.group === "Customer Info" ? (m(), P(o, { + c.visible && c.params.group === "Customer Info" ? (m(), U(o, { key: 0, - is: L(x)(c.type), + is: R(x)(c.type), name: d, structure: r(t.addSkel), errors: t.errors[d] ? t.errors[d] : [], skel: t.formValues, onChange: (g) => a(d, g), class: "viur-shop-form-grid-w-2" - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]) ]), i("div", null, [ - Dl, - i("div", Vl, [ - (m(!0), f(E, null, U(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ + Ul, + i("div", Tl, [ + (m(!0), f(E, null, L(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ c.visible && c.params.group === "Customer Address" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + d) + class: H("viur-shop-form-bone-" + d) }, [ - c.visible && c.params.group === "Customer Address" ? (m(), P(o, { + c.visible && c.params.group === "Customer Address" ? (m(), U(o, { key: 0, - is: L(x)(c.type), + is: R(x)(c.type), name: d, structure: r(t.addSkel), errors: t.errors[d] ? t.errors[d] : [], skel: t.formValues, onChange: (g) => a(d, g) - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]) ]), - t.isCustomAdress ? (m(), f("div", Rl, [ - Nl, - i("div", Ll, [ - (m(!0), f(E, null, U(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ + t.isCustomAdress ? (m(), f("div", Ml, [ + Wl, + i("div", ql, [ + (m(!0), f(E, null, L(t.addSkel, (c, d) => (m(), f(E, { key: d }, [ c.visible && c.params.group === "Customer Address" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + d) + class: H("viur-shop-form-bone-" + d) }, [ - c.visible && c.params.group === "Customer Address" ? (m(), P(o, { + c.visible && c.params.group === "Customer Address" ? (m(), U(o, { key: 0, - is: L(x)(c.type), + is: R(x)(c.type), name: d, structure: r(t.addSkel), errors: t.errors[d] ? t.errors[d] : [], skel: t.formValues, onChange: (g) => a(d, g) - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]) - ])) : S("", !0), + ])) : $("", !0), i("sl-checkbox", { onSlChange: l, checked: "", @@ -2992,19 +2986,19 @@ const Ee = (e) => (M("data-v-4d14c6fe"), e = e(), z(), e), Bl = /* @__PURE__ */ ], 64); }; } -}, Pl = /* @__PURE__ */ C(Ul, [["__scopeId", "data-v-4d14c6fe"]]); -const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Ml = { class: "viur-shop-form-wrap" }, Wl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), zl = ["onSlChange", "onSlClear", "label"], ql = ["value"], Fl = { key: 0 }, Kl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Hl = { class: "viur-shop-form-wrap" }, Gl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", { +}, Fl = /* @__PURE__ */ C(zl, [["__scopeId", "data-v-4d14c6fe"]]); +const ne = (e) => (T("data-v-c4232b7a"), e = e(), M(), e), Kl = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), Hl = { class: "viur-shop-form-wrap" }, Gl = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), Zl = ["onSlChange", "onSlClear", "label"], Jl = ["value"], Ql = { key: 0 }, Yl = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), Xl = { class: "viur-shop-form-wrap" }, xl = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("sl-icon", { name: "x-lg", slot: "prefix" -}, null, -1)), Zl = [ - Gl -], Jl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", { +}, null, -1)), eo = [ + xl +], to = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("sl-icon", { name: "plus-lg", slot: "prefix" -}, null, -1)), Ql = /* @__PURE__ */ te(() => /* @__PURE__ */ i("sl-icon", { +}, null, -1)), no = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("sl-icon", { slot: "icon", name: "exclamation-triangle" -}, null, -1)), Yl = /* @__PURE__ */ te(() => /* @__PURE__ */ i("br", null, null, -1)), Xl = { +}, null, -1)), so = /* @__PURE__ */ ne(() => /* @__PURE__ */ i("br", null, null, -1)), ao = { __name: "UserInfoMulti", props: { mode: { type: String, default: "form" } @@ -3029,7 +3023,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ errors: {}, selectedItem: {}, isInit: k(() => !!n.state.carts[n.state.basket]) - }), l = q(null), a = q(null); + }), l = z(null), a = z(null); function r(v) { v.target.checked && (t.isCustomAdress = !1), v.target.checked || (t.isCustomAdress = !0); } @@ -3040,9 +3034,9 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ } t.shippingAdressAmount += 1; } - function u(v, h) { - for (const [_, p] of Object.entries(h.value[0])) - t.formValues[_] = p; + function u(v, p) { + for (const [_, h] of Object.entries(p.value[0])) + t.formValues[_] = h; } function o() { if (t.shippingAdressAmount === 1) { @@ -3051,120 +3045,120 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ } t.shippingAdressAmount -= 1; } - function c(v, h) { + function c(v, p) { if (console.log(v.target.value), !v.target.value.length) { d(); return; } - t.selectedItem[h] = v.target.value, t.isItemSelected = !0; + t.selectedItem[p] = v.target.value, t.isItemSelected = !0; } - function d(v, h) { - console.log("clearing..."), delete t.selectedItem[h], t.isItemSelected = !1; + function d(v, p) { + console.log("clearing..."), delete t.selectedItem[p], t.isItemSelected = !1; } function g(v) { - let h = {}; + let p = {}; return Array.isArray(v) ? (v.forEach((_) => { - let p = _[0], b = _[1]; - h[p] = b; - }), h) : v; + let h = _[0], b = _[1]; + p[h] = b; + }), p) : v; } - return se(t.formValues, (v) => { - Object.entries(v).forEach(([h, _]) => { - _ === "" && delete t.formValues[h]; + return ae(t.formValues, (v) => { + Object.entries(v).forEach(([p, _]) => { + _ === "" && delete t.formValues[p]; }); }), Q(async () => { await n.getAddressStructure(), t.addSkel = g(n.state.structure.address); - }), (v, h) => { - const _ = ae("bone"); + }), (v, p) => { + const _ = le("bone"); return m(), f(E, null, [ i("div", null, [ - Tl, - i("div", Ml, [ - (m(!0), f(E, null, U(t.addSkel, (p, b) => (m(), f(E, { key: b }, [ - p.visible && p.params.group === "Customer Info" ? (m(), f("div", { + Kl, + i("div", Hl, [ + (m(!0), f(E, null, L(t.addSkel, (h, b) => (m(), f(E, { key: b }, [ + h.visible && h.params.group === "Customer Info" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + b) + class: H("viur-shop-form-bone-" + b) }, [ - p.visible && p.params.group === "Customer Info" ? (m(), P(_, { + h.visible && h.params.group === "Customer Info" ? (m(), U(_, { key: 0, - is: L(x)(p.type), + is: R(x)(h.type), name: b, structure: g(t.addSkel), errors: t.errors[b] ? t.errors[b] : [], skel: t.formValues, onChange: (y) => u(b, y) - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]) ]), - Wl, - (m(!0), f(E, null, U(t.shippingAdressAmount, (p) => (m(), f("div", { + Gl, + (m(!0), f(E, null, L(t.shippingAdressAmount, (h) => (m(), f("div", { class: "viur-shop-form-wrap", - key: p + key: h }, [ i("sl-select", { clearable: "", ref_for: !0, ref_key: "itemSelection", ref: l, - onSlChange: (b) => c(b, p), - onSlClear: (b) => d(b, p), - label: t.selectedItem[p] ? L(n).state.carts[t.selectedItem[p]].info.name : "Warenkorb f\xFCr Adresse w\xE4hlen.", + onSlChange: (b) => c(b, h), + onSlClear: (b) => d(b, h), + label: t.selectedItem[h] ? R(n).state.carts[t.selectedItem[h]].info.name : "Warenkorb f\xFCr Adresse w\xE4hlen.", class: "viur-shop-form-cart-select" }, [ - (m(!0), f(E, null, U(L(n).state.carts, (b, y) => (m(), f("sl-option", { value: y }, I(b.info.name), 9, ql))), 256)) - ], 40, zl), - (m(!0), f(E, null, U(t.addSkel, (b, y) => (m(), f(E, { key: y }, [ + (m(!0), f(E, null, L(R(n).state.carts, (b, y) => (m(), f("sl-option", { value: y }, A(b.info.name), 9, Jl))), 256)) + ], 40, Zl), + (m(!0), f(E, null, L(t.addSkel, (b, y) => (m(), f(E, { key: y }, [ b.visible && b.params.group === "Customer Address" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + y) + class: H("viur-shop-form-bone-" + y) }, [ - b.visible && b.params.group === "Customer Address" ? (m(), P(_, { + b.visible && b.params.group === "Customer Address" ? (m(), U(_, { key: 0, - is: L(x)(b.type), + is: R(x)(b.type), name: y, structure: g(t.addSkel), errors: t.errors[y] ? t.errors[y] : [], skel: t.formValues, - onChange: ($) => u(y, $) - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + onChange: (S) => u(y, S) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]))), 128)), - t.isCustomAdress ? (m(), f("div", Fl, [ - Kl, - i("div", Hl, [ - (m(!0), f(E, null, U(t.addSkel, (p, b) => (m(), f(E, { key: b }, [ - p.visible && p.params.group === "Customer Address" ? (m(), f("div", { + t.isCustomAdress ? (m(), f("div", Ql, [ + Yl, + i("div", Xl, [ + (m(!0), f(E, null, L(t.addSkel, (h, b) => (m(), f(E, { key: b }, [ + h.visible && h.params.group === "Customer Address" ? (m(), f("div", { key: 0, - class: G("viur-shop-form-bone-" + b) + class: H("viur-shop-form-bone-" + b) }, [ - p.visible && p.params.group === "Customer Address" ? (m(), P(_, { + h.visible && h.params.group === "Customer Address" ? (m(), U(_, { key: 0, - is: L(x)(p.type), + is: R(x)(h.type), name: b, structure: g(t.addSkel), errors: t.errors[b] ? t.errors[b] : [], skel: t.formValues, onChange: (y) => u(b, y) - }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : S("", !0) - ], 2)) : S("", !0) + }, null, 8, ["is", "name", "structure", "errors", "skel", "onChange"])) : $("", !0) + ], 2)) : $("", !0) ], 64))), 128)) ]) - ])) : S("", !0), + ])) : $("", !0), i("div", { class: "viur-shop-form-btn-wrap" }, [ i("sl-button", { size: "medium", onClick: o, title: "Lieferadresse entfernen" - }, Zl), + }, eo), i("sl-button", { size: "medium", variant: "primary", onClick: s }, [ - Jl, + to, O(" Lieferadresse hinzuf\xFCgen ") ]) ]), @@ -3175,10 +3169,10 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ ref: a, closable: "" }, [ - Ql, - i("strong", null, I(t.amountAlert.title), 1), - Yl, - O(" " + I(t.amountAlert.msg), 1) + no, + i("strong", null, A(t.amountAlert.title), 1), + so, + O(" " + A(t.amountAlert.msg), 1) ], 512), i("sl-checkbox", { onSlChange: r, @@ -3188,7 +3182,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ ], 64); }; } -}, xl = /* @__PURE__ */ C(Xl, [["__scopeId", "data-v-c4232b7a"]]), xe = { +}, lo = /* @__PURE__ */ C(ao, [["__scopeId", "data-v-c4232b7a"]]), xe = { __name: "ExampleUsage", setup(e) { const n = ee(), t = k( @@ -3197,7 +3191,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ rootNode: {}, tabs: { cart: { - component: H(ke), + component: K(ke), props: { sidebar: !0, mode: "basket", @@ -3211,7 +3205,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ atHide: null }, confirm: { - component: H(we), + component: K(we), props: {}, displayName: "Bestellung pr\xFCfen", icon: { name: "clipboard-check" }, @@ -3221,7 +3215,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ atHide: null }, orderComplete: { - component: H(Ol), + component: K(Nl), props: {}, displayName: "Bestellung Abgeschlossen", icon: { name: "bag-check" }, @@ -3231,7 +3225,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ atHide: null }, userInfo: { - component: H(Pl), + component: K(Fl), props: {}, displayName: "Daten Eingeben", icon: { name: "card-list" }, @@ -3241,7 +3235,7 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ atHide: null }, userInfoMulti: { - component: H(xl), + component: K(lo), props: {}, displayName: "Daten Eingeben (Multi)", icon: { name: "card-list" }, @@ -3257,89 +3251,111 @@ const te = (e) => (M("data-v-c4232b7a"), e = e(), z(), e), Tl = /* @__PURE__ */ } return Q(async () => { await n.init(), await n.getAddressStructure(), console.log("debug init exampleusage :", n.state.basketRootNode); - }), (r, s) => (m(), P(Xe, { + }), (r, s) => (m(), U(Xe, { tabs: l.tabs, onTabChange: a }, null, 8, ["tabs"])); } -}, eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: xe -}, Symbol.toStringTag, { value: "Module" })), po = { +}, Symbol.toStringTag, { value: "Module" })); +const et = (e) => (T("data-v-d67cb5c9"), e = e(), M(), e), ro = ["id", "selected"], io = /* @__PURE__ */ et(() => /* @__PURE__ */ i("img", { + slot: "image", + src: "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80", + alt: "A kitten sits patiently between a terracotta pot and decorative grasses." +}, null, -1)), uo = { slot: "footer" }, co = /* @__PURE__ */ et(() => /* @__PURE__ */ i("br", null, null, -1)), mo = { __name: "SelectPaymentProvider", setup(e) { const n = ee(); + function t(l) { + l.target.selected ? (console.log("a", n.state.selectedPaymentProvider), console.log("b", n.state.paymentProviders), n.state.selectedPaymentProvider = n.state.paymentProviders[l.target.id.replace("povider__", "")], console.log(n.state.selectedPaymentProvider), document.querySelectorAll("sl-card").forEach((a) => { + a !== l.target && (a.selected = !1); + })) : l.target.selected = !0, console.log("provider changed", l); + } return Q(async () => { - await n.payment_providers_list(), console.log(n.state.paymentProviders); - }), (t, l) => (m(!0), f(E, null, U(L(n).state.paymentProviders, (a, r) => (m(), f("div", null, [ - i("sl-card", null, I(r) + " " + I(a), 1) + await n.payment_providers_list(); + }), (l, a) => (m(!0), f(E, null, L(R(n).state.paymentProviders, (r, s, u) => (m(), f("div", null, [ + i("sl-card", { + selectable: "", + id: "povider__" + s, + onSlChange: t, + selected: u === 0 + }, [ + io, + i("div", uo, [ + O(A(r.title) + " ", 1), + co, + O(" " + A(r.descr), 1) + ]) + ], 40, ro) ]))), 256)); } -}, to = D({ +}, Ao = /* @__PURE__ */ C(mo, [["__scopeId", "data-v-d67cb5c9"]]), fo = D({ props: {}, components: {}, setup(e, n) { const t = pt(); return { state: w({}), route: t }; } -}), no = { class: "home" }; -function so(e, n, t, l, a, r) { - return m(), f("div", no, "View " + I(e.route.path) + " is missing.", 1); +}), go = { class: "home" }; +function ho(e, n, t, l, a, r) { + return m(), f("div", go, "View " + A(e.route.path) + " is missing.", 1); } -const ao = /* @__PURE__ */ C(to, [["render", so]]), lo = [ +const po = /* @__PURE__ */ C(fo, [["render", ho]]), bo = [ { path: "/:pathMatch(.*)*", name: "view_missing", - component: ao + component: po }, { path: "/shop/category/:identifier", name: "CategoryView", - component: () => import("./CategoryView.177fd889.mjs") + component: () => import("./CategoryView.569ff8b2.mjs") }, { path: "/shop/item/:item", name: "itemView", - component: () => import("./ItemView.27ff9ff2.mjs") + component: () => import("./ItemView.473a581c.mjs") }, { path: "/shop/cart/view", name: "CartView", - component: () => Promise.resolve().then(() => Qa) + component: () => Promise.resolve().then(() => xa) }, { path: "/shop/order/", name: "OrderView", - component: () => Promise.resolve().then(() => eo) + component: () => Promise.resolve().then(() => oo) }, { path: "/shop/order/confirm", name: "ConfirmView", - component: () => Promise.resolve().then(() => rl) + component: () => Promise.resolve().then(() => fl) } ]; -function ho(e, n = !1) { +function Co(e, n = !1) { let t = []; - return n ? t = e : t = e.concat(lo), ht({ - history: bt("/"), + return n ? t = e : t = e.concat(bo), bt({ + history: vt("/"), routes: t }); } -const oo = mt(), bo = { +const vo = ft(), Io = { install(e) { - e.component("CartView", ke), e.component("ExampleUsage", xe), e.component("ConfirmView", we), e.component("OrderView", Xe), e.use(oo); + e.component("CartView", ke), e.component("ExampleUsage", xe), e.component("ConfirmView", we), e.component("OrderView", Xe), e.use(vo); } }; export { ke as C, - Ol as O, - Pl as U, - bo as V, + Nl as O, + Ao as S, + Fl as U, + Io as V, C as _, xe as a, we as b, Xe as c, - po as d, - ho as e, + Co as d, ee as u }; diff --git a/source/dist/style.css b/source/dist/style.css index 1682a1c..c84b80e 100644 --- a/source/dist/style.css +++ b/source/dist/style.css @@ -1 +1 @@ -.is-dragging[data-v-141aaf9b]{opacity:.4}.dragging-line-bottom[data-v-141aaf9b]{margin-bottom:calc(-1 * var(--sl-spacing-x-small));border-bottom:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.dragging-line-top[data-v-141aaf9b]{margin-top:calc(-1 * var(--sl-spacing-x-small));border-top:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.value-line[data-v-141aaf9b]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small)}.value[data-v-141aaf9b]{width:100%}.value[data-v-141aaf9b] sl-input::part(base){border-bottom-left-radius:var(--sl-border-radius-medium);border-top-left-radius:var(--sl-border-radius-medium)}.value[data-v-141aaf9b] .bone-wrapper sl-input::part(base){border-bottom-left-radius:0;border-top-left-radius:0}.delete-btn[data-v-141aaf9b]::part(base){aspect-ratio:1}.drag-button[data-v-141aaf9b]::part(base){aspect-ratio:1}@media (max-width: 39.95em){.no-mobile[data-v-141aaf9b]{display:none}}@media print{.no-print[data-v-141aaf9b]{display:none}}.bone-name[data-v-b7149172]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:start;align-self:flex-start;font-size:var(--sl-input-font-size-medium);min-height:var(--sl-input-height-medium);padding:.4em .7em;color:var(--sl-color-neutral-900);background-color:var(--sl-color-neutral-200);border:none;border-top-left-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:var(--sl-input-border-radius-medium);word-break:break-word}.debug[data-v-b7149172]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;padding-left:.4em}.debug sl-icon[data-v-b7149172]{background-color:var(--sl-color-danger-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}@media (max-width: 900px){.bone-name[data-v-b7149172]{border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-b7149172]{display:none}}@media print{.no-print[data-v-b7149172]{display:none}}sl-input[data-v-0ebe5f0b]{width:100%}sl-input[data-v-0ebe5f0b]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ebe5f0b]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-0ebe5f0b]{display:none}}@media print{.no-print[data-v-0ebe5f0b]{display:none}}sl-input[data-v-b45a1311]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-b45a1311]{display:none}}@media print{.no-print[data-v-b45a1311]{display:none}}sl-input[data-v-1ccbacc0]{width:100%}sl-input[data-v-1ccbacc0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-1ccbacc0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-1ccbacc0]{display:none}}@media print{.no-print[data-v-1ccbacc0]{display:none}}sl-input[data-v-4328e024]{width:100%}sl-input[data-v-4328e024]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-4328e024]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-4328e024]{display:none}}@media print{.no-print[data-v-4328e024]{display:none}}sl-input[data-v-f1b8af8c]{width:100%}sl-input[data-v-f1b8af8c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-f1b8af8c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-f1b8af8c]{display:none}}@media print{.no-print[data-v-f1b8af8c]{display:none}}sl-select[data-v-5a38b97f]{width:100%}sl-select[data-v-5a38b97f]::part(combobox){border-top-left-radius:0;border-bottom-left-radius:0}sl-option[data-v-5a38b97f]::part(base){-webkit-transition:background-color ease .3s;transition:background-color ease .3s}sl-option[data-v-5a38b97f]:hover::part(base){background-color:var(--sl-color-gray-200)}sl-option[data-v-5a38b97f]:focus-visible::part(base){background-color:var(--sl-color-gray-200)}@media (max-width: 900px){sl-select[data-v-5a38b97f]::part(combobox){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-5a38b97f]{display:none}}@media print{.no-print[data-v-5a38b97f]{display:none}}sl-switch[data-v-363598c8]{border:1px solid var(--sl-color-neutral-300);padding:.4em .1em .4em .4em;border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-right-radius:var(--sl-input-border-radius-medium);--height: calc(var(--sl-input-height-medium) - 1em);--width: calc(1.7 * (var(--sl-input-height-medium) - .8em));--thumb-size: calc(var(--sl-input-height-medium) - 1em)}@media (max-width: 900px){sl-switch[data-v-363598c8]{border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-363598c8]{display:none}}@media print{.no-print[data-v-363598c8]{display:none}}sl-input[data-v-0ccf18c0]{width:100%}sl-input[data-v-0ccf18c0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.has-check[data-v-0ccf18c0]::part(base){border-bottom-right-radius:0}.password-check[data-v-0ccf18c0]{margin-top:var(--sl-spacing-x-small)}.password-check[data-v-0ccf18c0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}.pw-legend[data-v-0ccf18c0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:0rem;font-size:.75rem;padding:.25em}span[data-v-0ccf18c0]{margin:0;padding:0;font-style:italic}.errors[data-v-0ccf18c0]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.requiredInfo[data-v-0ccf18c0]{color:var(--sl-color-danger-500)}@media (max-width: 900px){sl-input[data-v-0ccf18c0]::part(base){border-top-right-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-0ccf18c0]{display:none}}@media print{.no-print[data-v-0ccf18c0]{display:none}}.form[data-v-e6fcfbca]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-e6fcfbca]{display:none}}@media print{.no-print[data-v-e6fcfbca]{display:none}}sl-input[data-v-84a761ce]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-84a761ce]{display:none}}@media print{.no-print[data-v-84a761ce]{display:none}}sl-color-picker[data-v-534b9149]::part(trigger){border-radius:0}@media (max-width: 39.95em){.no-mobile[data-v-534b9149]{display:none}}@media print{.no-print[data-v-534b9149]{display:none}}sl-input[data-v-03d5b399]{width:100%}sl-input[data-v-03d5b399]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.info[data-v-03d5b399]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}@media (max-width: 900px){sl-input[data-v-03d5b399]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-03d5b399]{display:none}}@media print{.no-print[data-v-03d5b399]{display:none}}.single-entry[data-v-61dd72e0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small)}.single-entry[data-v-61dd72e0] sl-combobox::part(input__base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]{width:100%}sl-input[data-v-61dd72e0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]::part(base){background-color:var(--sl-color-neutral-0)}sl-combobox[data-v-61dd72e0]{width:100%}sl-combobox[data-v-61dd72e0]::part(input){border-top-left-radius:0;border-bottom-left-radius:0}sl-combobox[data-v-61dd72e0]::part(input) sl-combobox::part(input)::part(base){border:1px solid red}@media (max-width: 39.95em){.no-mobile[data-v-61dd72e0]{display:none}}@media print{.no-print[data-v-61dd72e0]{display:none}}.box[data-v-343aca69]{width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;min-height:40px}@media (max-width: 39.95em){.no-mobile[data-v-343aca69]{display:none}}@media print{.no-print[data-v-343aca69]{display:none}}.box[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 var(--sl-spacing-small) 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;height:var(--sl-input-height-medium);background-color:transparent}.preview[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:var(--sl-input-height-medium);width:var(--sl-input-height-medium);aspect-ratio:1;border-right:1px solid var(--sl-color-gray-500);margin-right:var(--sl-spacing-small);background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.87)),to(rgba(255,255,255,.87))),-webkit-gradient(linear,left top,right top,color-stop(50%,black),color-stop(50%,white)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,black),color-stop(50%,white));background-image:linear-gradient(to right,rgba(255,255,255,.87),rgba(255,255,255,.87)),linear-gradient(to right,black 50%,white 50%),linear-gradient(to bottom,black 50%,white 50%);background-blend-mode:normal,difference,normal;background-size:.65em .65em}.preview.has-preview[data-v-91086308]{cursor:pointer}.preview sl-icon[data-v-91086308]{font-size:1.1em;color:var(--sl-color-gray-400)}.preview .preview-img[data-v-91086308]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.file-wrapper[data-v-91086308]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small);position:relative}.droparea[data-v-91086308]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.delete-btn[data-v-91086308]::part(base){aspect-ratio:1}.upload-btn[data-v-91086308]::part(base){aspect-ratio:1}.loader[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#ffffffb3}.preview-overlay[data-v-91086308]::part(panel){width:auto;max-width:1200px}.preview-overlay[data-v-91086308]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.87)),to(rgba(255,255,255,.87))),-webkit-gradient(linear,left top,right top,color-stop(50%,black),color-stop(50%,white)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,black),color-stop(50%,white));background-image:linear-gradient(to right,rgba(255,255,255,.87),rgba(255,255,255,.87)),linear-gradient(to right,black 50%,white 50%),linear-gradient(to bottom,black 50%,white 50%);background-blend-mode:normal,difference,normal;background-size:1.2em 1.2em;padding:0}.preview-overlay img[data-v-91086308]{width:auto;height:auto}@media (max-width: 39.95em){.no-mobile[data-v-91086308]{display:none}}@media print{.no-print[data-v-91086308]{display:none}}.bone-inner-wrap .ck-editor{--ck-border-radius: 0px;--ck-font-size-base: 14px;--ck-custom-background: var(--sl-color-neutral-200);--ck-custom-foreground: var(--sl-color-neutral-900);--ck-custom-border: var(--sl-color-neutral-100);--ck-custom-white: var(--sl-color-neutral-50);--ck-color-base-foreground: var(--ck-custom-background);--ck-color-base-background: var(--ck-custom-background);--ck-color-base-border: var(--sl-color-neutral-300);--ck-color-focus-border: var(--sl-color-neutral-700);--ck-color-text: var(--sl-color-neutral-900);--ck-color-shadow-drop: hsla(0, 0%, 0%, .2);--ck-color-shadow-inner: hsla(0, 0%, 0%, .1);--ck-color-button-default-background: var(--ck-custom-background);--ck-color-button-default-hover-background: var(--sl-color-neutral-50);--ck-color-button-default-active-background: var(--sl-color-neutral-50);--ck-color-button-default-active-shadow: hsl(270, 2%, 23%);--ck-color-button-default-disabled-background: var(--ck-custom-background);--ck-color-button-on-hover-background: var(--sl-color-neutral-50);--ck-color-button-on-active-background: hsl(255, 4%, 14%);--ck-color-button-on-active-shadow: hsl(240, 3%, 19%);--ck-color-button-on-disabled-background: var(--ck-custom-foreground);--ck-color-button-on-color: var(--sl-color-primary-500);--ck-color-button-on-background: var(--sl-color-neutral-100);--ck-focus-ring: 1px solid var(--sl-color-primary-500);--ck-focus-outer-shadow: none;--ck-powered-by-text-color: var(--ck-custom-foreground);--ck-powered-by-background: var(--ck-custom-background);--ck-color-button-action-background: var(--sl-color-primary-600);--ck-color-button-action-hover-background: var(--sl-color-primary-500);--ck-color-button-action-active-background: var(--sl-color-primary-500);--ck-color-button-action-active-shadow: var(--sl-color-primary-500);--ck-color-button-action-disabled-background: var(--sl-color-primary-600);--ck-color-button-action-text: var(--ck-custom-white);--ck-color-dropdown-panel-background: var(--ck-custom-background);--ck-color-dropdown-panel-border: var(--sl-color-neutral-400);--ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);--ck-color-split-button-hover-border: var(--ck-custom-foreground);--ck-color-labeled-field-label-background: var(--ck-custom-background);--ck-color-list-background: var(--ck-custom-background);--ck-color-list-button-hover-background: var(--sl-color-neutral-50);--ck-color-list-button-on-background: var(--sl-color-primary-500);--ck-color-list-button-on-background-focus: var(--sl-color-primary-500);--ck-color-list-button-on-text: var(--ck-color-base-background);--ck-color-panel-background: var(--ck-custom-background);--ck-color-panel-border: var(--ck-custom-border);--ck-color-toolbar-background: var(--ck-custom-background);--ck-color-toolbar-border: var(--ck-custom-border);--ck-color-tooltip-background: hsl(252, 7%, 14%);--ck-color-tooltip-text: hsl(0, 0%, 93%);--ck-color-image-caption-background: var(--ck-custom-background);--ck-color-image-caption-text: var(--ck-custom-foreground);--ck-color-link-default: var(--sl-color-primary-500);width:100%!important}.bone-inner-wrap .ck-editor .ck-content{background:transparent!important;border:1px solid var(--vi-border-color)!important;width:100%;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-editor .ck-content.ck-focused,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area textarea,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area td{border:1px solid var(--sl-color-neutral-600)!important}.bone-inner-wrap .ck-editor .ck-toolbar{height:var(--sl-input-height-medium);border-color:var(--vi-border-color);background-color:var(--vi-background-color)}.bone-inner-wrap .ck-editor .ck-button{border-color:none;background-color:var(--vi-background-color);cursor:pointer}.bone-inner-wrap .ck-editor .ck-button:hover{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button:focus-visible{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button.ck-on{background-color:var(--vi-background-color)!important;border:1px solid var(--sl-color-primary-500)!important;color:var(--sl-color-primary-500)!important}.bone-inner-wrap .ck-editor .ck-source-editing-area{width:100%}.bone-inner-wrap .ck-editor .ck-source-editing-area textarea{background-color:transparent;color:var(--ck-custom-foreground);border:1px solid var(--vi-border-color)!important;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-content .table{margin:.9em 0}.ck-body-wrapper .ck-link-form{width:500px!important;max-width:37vw!important;min-width:180px!important}.ck-body-wrapper .ck-link-form .ck-labeled-field-view,.ck-body-wrapper .ck-link-form .ck-input{width:100%}sl-textarea::part(base){-webkit-box-shadow:none!important;box-shadow:none!important;background-color:transparent}sl-textarea::part(textarea){background-color:transparent;border:1px solid var(--vi-border-color);border-radius:var(--sl-border-radius-medium);border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 39.95em){.no-mobile{display:none}}@media print{.no-print{display:none}}sl-input[data-v-7bc31020]{width:100%}sl-input[data-v-7bc31020]:first-child{margin-bottom:10px}sl-input[data-v-7bc31020]:first-child::part(base){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-right-radius:var(--sl-border-radius-medium)}sl-input[data-v-7bc31020]::part(base){border-top-left-radius:0;border-top-right-radius:0}@media (max-width: 900px){sl-input[data-v-7bc31020]:first-child::part(base){border-top-right-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-7bc31020]{display:none}}@media print{.no-print[data-v-7bc31020]{display:none}}.actionbar[data-v-63e75dee]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.add-btn[data-v-63e75dee]{margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-63e75dee]{display:none}}@media print{.no-print[data-v-63e75dee]{display:none}}.actionbar[data-v-eeea51c6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}sl-combobox[data-v-eeea51c6]{width:100%}.delete-btn[data-v-eeea51c6]{margin-right:var(--sl-spacing-x-small)}.add-btn[data-v-eeea51c6]{margin-left:var(--sl-spacing-x-small)}@media (max-width: 39.95em){.no-mobile[data-v-eeea51c6]{display:none}}@media print{.no-print[data-v-eeea51c6]{display:none}}.actionbar[data-v-9bac9f8a]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:nowrap;flex-wrap:nowrap}sl-combobox[data-v-9bac9f8a]{width:100%}.droparea[data-v-9bac9f8a]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.add-btn[data-v-9bac9f8a]{margin-left:var(--sl-spacing-x-small)}.upload-btn[data-v-9bac9f8a]{margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-9bac9f8a]{display:none}}@media print{.no-print[data-v-9bac9f8a]{display:none}}.dragging-top[data-v-dee63f3c]{border-top:2px solid var(--sl-color-neutral-400)}.dragging-bottom[data-v-dee63f3c]{border-bottom:2px solid var(--sl-color-neutral-400)}.bone-wrapper[data-v-dee63f3c]{display:grid;grid-template-columns:235px 1fr;grid-gap:var(--sl-spacing-small);margin-bottom:20px}.bone-wrapper.bone-wrapper-record[data-v-dee63f3c],.bone-wrapper.has-subbones[data-v-dee63f3c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-gap:0}.bone-wrapper.bone-wrapper-record[data-v-dee63f3c]>.bone-name,.bone-wrapper.has-subbones[data-v-dee63f3c]>.bone-name{border-bottom-left-radius:0;border-top-right-radius:var(--sl-border-radius-medium);min-width:235px}.bone-wrapper.bone-wrapper-record>.bone-inner-wrap[data-v-dee63f3c],.bone-wrapper.has-subbones>.bone-inner-wrap[data-v-dee63f3c]{padding-top:var(--sl-spacing-small);border-top:2px solid var(--sl-color-neutral-200);margin-bottom:5px}.bone-wrapper.bone-wrapper-record .multiple-bone[data-v-dee63f3c],.bone-wrapper.has-subbones .multiple-bone[data-v-dee63f3c]{border-bottom:1px solid var(--sl-color-neutral-200);padding-bottom:var(--sl-spacing-2x-small);margin-bottom:var(--sl-spacing-small)}sl-tab-panel[data-v-dee63f3c]::part(base){padding:0}.lang-tab[data-v-dee63f3c]{--track-width: 0;--indicator-color: var(--vi-background-color);--track-color: var(--vi-border-color)}.lang-tab[data-v-dee63f3c]::part(body){padding-bottom:var(--sl-spacing-x-small);overflow-x:hidden}.lang-tab[data-v-dee63f3c]::part(tabs){border-top:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]{margin-top:-1px}.lang-tab sl-tab[aria-selected=true][data-v-dee63f3c]{z-index:1}.lang-tab sl-tab[aria-selected=true][data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color);border-top:1px solid var(--vi-background-color)!important;border-bottom:2px solid var(--sl-color-primary-500)!important}.lang-tab sl-tab[data-v-dee63f3c]::part(base){background-color:var(--sl-color-neutral-200);border:1px solid var(--sl-color-neutral-400);border-top:1px solid var(--vi-border-color);border-radius:0;padding:var(--sl-spacing-x-small);-webkit-transition:all ease .3s;transition:all ease .3s}.lang-tab sl-tab[data-v-dee63f3c]:hover::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]:focus-visible::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]:first-child::part(base){border-bottom-left-radius:5px}.lang-tab sl-tab[data-v-dee63f3c]:nth-last-child(2)::part(base){border-bottom-right-radius:5px}.lang-tab sl-tab[data-v-dee63f3c]:not(:first-child)::part(base){margin-left:-1px}.multiple-placeholder[data-v-dee63f3c]:not(.readonly){margin-bottom:var(--sl-spacing-x-small)}.multiple-placeholder sl-input[data-v-dee63f3c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0;opacity:.7}.multiple-bone[data-v-dee63f3c],.multiple-bone .bone-wrapper[data-v-dee63f3c]{margin-bottom:var(--sl-spacing-x-small)}.multiple-bone:first-child .dragging-line-top[data-v-dee63f3c] .value-line{margin-top:0}.bone-inner-wrap[data-v-dee63f3c]{min-width:1px}.bone-inner-wrap sl-alert[data-v-dee63f3c]{margin-top:var(--sl-spacing-x-small);background-color:transparent}.bone-inner-wrap sl-alert[data-v-dee63f3c]::part(message){padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.bone-inner-wrap sl-alert[data-v-dee63f3c]::part(icon){padding-left:var(--sl-spacing-small)}.label-info[data-v-dee63f3c]::part(base){-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:.5em;background-color:var(--sl-color-info-50);border:none}.label-info[data-v-dee63f3c]::part(message){padding:var(--sl-spacing-small)}.label-info[data-v-dee63f3c]::part(icon){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:var(--sl-color-neutral-0);width:1em;height:1em;margin-left:-.5em;padding-left:0}.tooltip[data-v-dee63f3c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;padding-left:.4em}.tooltip sl-icon[data-v-dee63f3c]{background-color:var(--sl-color-info-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}sl-tooltip[data-v-dee63f3c]::part(body){background-color:var(--sl-color-info-500)}sl-tooltip[data-v-dee63f3c]::part(base__arrow){background-color:var(--sl-color-info-500)}.required[data-v-dee63f3c]{color:var(--sl-color-primary-500);font-weight:700}[data-v-dee63f3c] sl-combobox::part(input__base){border:1px solid var(--vi-border-color);-webkit-box-shadow:none!important;box-shadow:none!important}[data-v-dee63f3c] sl-combobox::part(input__prefix){display:none!important}[data-v-dee63f3c] sl-combobox::part(input__suffix){display:none!important}@media (max-width: 900px){.bone-wrapper[data-v-dee63f3c]{grid-template-columns:1fr}.multiple-placeholder sl-input[data-v-dee63f3c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-dee63f3c]{display:none}}@media print{.no-print[data-v-dee63f3c]{display:none}}.logo[data-v-46c45785]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:var(--93747d92);width:var(--93747d92);overflow:hidden;border-radius:50%;background-color:var(--sl-color-neutral-0);-webkit-box-shadow:var(--284424e5);box-shadow:var(--284424e5)}.logo sl-icon[data-v-46c45785]{height:var(--6485ca5e);width:var(--6485ca5e);aspect-ratio:1;color:var(--vi-background-color);-webkit-animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate;animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate}@-webkit-keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}@keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}.loader[data-v-46c45785]{font-size:var(--5d833915);--indicator-color: var(--d5b3feca);--track-color: var(--sl-color-neutral-0);--track-width: var(--2050b700);z-index:1}.loading[data-v-46c45785]{position:absolute;width:100%;height:100%;display:inline-grid;justify-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.v-enter-active[data-v-46c45785],.v-leave-active[data-v-46c45785]{-webkit-transition:opacity .5s ease;transition:opacity .5s ease}.v-enter-from[data-v-46c45785],.v-leave-to[data-v-46c45785]{opacity:0}@media (max-width: 39.95em){.no-mobile[data-v-46c45785]{display:none}}@media print{.no-print[data-v-46c45785]{display:none}}.viur-shop-cart-leaf[data-v-d313b580]{--shop-leaf-label-color: var(--ignt-color-primary);--shop-leaf-label-font-weight: 600;--shop-leaf-label-font-size: 1em;--shop-leaf-price-font-size: 1em;--shop-leaf-headline-font-size: 1.3em;margin-bottom:var(--ignt-spacing-x-large)}.viur-shop-cart-leaf[data-v-d313b580]::part(base){display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.viur-shop-cart-leaf[data-v-d313b580]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-leaf[data-v-d313b580]::part(image){aspect-ratio:1}.viur-shop-cart-leaf[data-v-d313b580]::part(body){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:var(--sl-spacing-medium);gap:var(--sl-spacing-medium);padding:var(--sl-spacing-large);height:100%}.viur-shop-cart-leaf[data-v-d313b580]::part(group){padding:0}.viur-shop-cart-leaf-image[data-v-d313b580]{aspect-ratio:1}.viur-shop-cart-leaf-headline[data-v-d313b580]{grid-column:1 / span 4;-webkit-box-ordinal-group:-1;-ms-flex-order:-2;order:-2;margin:0;font-size:var(--shop-leaf-headline-font-size)}.viur-shop-cart-leaf-artno[data-v-d313b580]{grid-column:1 / span 5;margin:0}.viur-shop-cart-leaf-actions[data-v-d313b580]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;gap:var(--sl-spacing-x-small)}.viur-shop-cart-leaf-description[data-v-d313b580]{grid-column:1 / span 5;margin-bottom:var(--ignt-spacing-small);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.viur-shop-cart-leaf-description[data-v-d313b580] *{margin:0}.viur-shop-cart-leaf-price[data-v-d313b580]{-ms-flex-item-align:end;align-self:flex-end;text-align:right;font-size:var(--shop-leaf-price-font-size)}.viur-shop-cart-leaf-quantity[data-v-d313b580],.viur-shop-cart-leaf-unitprice[data-v-d313b580]{-ms-flex-item-align:end;align-self:flex-end}.viur-shop-cart-leaf-label[data-v-d313b580],.viur-shop-cart-leaf-value--quantity[data-v-d313b580]::part(form-control-label){color:var(--shop-leaf-label-color);font-weight:var(--shop-leaf-label-font-weight);font-size:var(--shop-leaf-label-font-size);margin-bottom:var(--ignt-spacing-x-small)}@media (min-width: 600px){.viur-shop-cart-leaf-actions[data-v-d313b580]{grid-column:5 / span 1;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;-webkit-box-align:end;-ms-flex-align:end;align-items:end}}@media (max-width: 39.95em){.no-mobile[data-v-d313b580]{display:none}}@media (max-width: 600px){.viur-shop-cart-leaf[data-v-d313b580]::part(body){grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sl-spacing-medium);padding:var(--sl-spacing-large);height:100%}.viur-shop-cart-leaf[data-v-d313b580]::part(image){border-radius:var(--border-radius);-ms-flex-item-align:baseline;align-self:baseline}.viur-shop-cart-leaf-headline[data-v-d313b580],.viur-shop-cart-leaf-artno[data-v-d313b580]{grid-column:1 / span 2}.viur-shop-cart-leaf-description[data-v-d313b580]{grid-column:span 2}.viur-shop-cart-leaf-unitprice[data-v-d313b580]{text-align:right}}@media (max-width: 500px){.viur-shop-cart-leaf-description[data-v-d313b580]{display:none}}@media print{.no-print[data-v-d313b580]{display:none}}.viur-shop-cart-wrap[data-v-84507113]{display:grid;grid-template-columns:subgrid}.viur-shop-cart-sidebar-btn-wrap[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap sl-button[data-v-84507113]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-84507113]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}.viur-shop-cart-controlbar[data-v-84507113]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.viur-shop-cart-controlbar sl-input[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-controlbar sl-input[data-v-84507113]::part(base){margin-bottom:0}.viur-shop-cart-sidebar-headline[data-v-84507113]{margin:0 0 var(--sl-spacing-large) 0}.viur-shop-cart-button-list[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:10px}.viur-shop-cart-button-list.left[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:10px}.search[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-left:10px}.article-combobox[data-v-84507113]{float:left;width:75ch}.viur-shop-cart-card-img[data-v-84507113]{aspect-ratio:1}.viur-shop-cart-selection[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-node[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cart-wrap[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%}.soma-input[data-v-84507113]{display:grid;grid-template-columns:120px 1fr;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.soma-label[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.soma-label sl-icon[data-v-84507113]{margin-left:5px;background-color:@highlightColor;color:#fff;aspect-ratio:1;border-radius:50%;padding:.3em;font-size:.6em;cursor:pointer}sl-tooltip[data-v-84507113]::part(body){line-height:1.2;font-weight:400;padding:10px}.cart-tab sl-tab[data-v-84507113]{width:25%}.cart-tab sl-tab[data-v-84507113]::part(base){width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.cart-tab sl-tab[aria-selected=true][data-v-84507113]::part(base){color:var(--ignt-color-primary)!important}.cart-status-text[data-v-84507113]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:normal;white-space:initial}.search-box[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;margin-bottom:30px}.search-box sl-button[data-v-84507113]::part(base){height:100%}.article-combobox[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-bottom:10px}.article-combobox[data-v-84507113]::part(base){margin-bottom:0}.comission-box[data-v-84507113]{margin-right:10px}.comission-box[data-v-84507113]::part(base){margin-bottom:0}.search-amt[data-v-84507113]{margin-right:10px}.search-amt[data-v-84507113]::part(base){margin-bottom:0;width:80px}.viur-shop-cart-headline[data-v-84507113]::part(base){background-color:transparent;-webkit-transition:all ease .3s;transition:all ease .3s;border-bottom:1px solid transparent;height:auto}.viur-shop-cart-headline[data-v-84507113] .input--focused{border-bottom:1px solid var(--sl-color-primary-500)!important}.viur-shop-cart-headline[data-v-84507113]::part(input){color:var(--sl-color-primary-500);font-weight:300;text-transform:uppercase;font-size:1.85em;padding:.1em 0;height:auto}.viur-shop-cart-headline[data-v-84507113]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-headline[data-v-84507113]:hover::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-headline[data-v-84507113]:focus-visible::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-descr[data-v-84507113]{margin-top:10px}.viur-shop-cart-descr[data-v-84507113]::part(base){background-color:transparent;-webkit-transition:all ease .3s;transition:all ease .3s;border-bottom:1px solid transparent;margin-bottom:0}.viur-shop-cart-descr[data-v-84507113]::part(input){padding:.1em 0;height:auto;color:var(--ignt-color-text)}.viur-shop-cart-descr[data-v-84507113]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-descr[data-v-84507113]:hover::part(base){border-bottom:1px solid var(--ignt-color-text)}.viur-shop-cart-descr[data-v-84507113]:focus-visible::part(base){border-bottom:1px solid var(--ignt-color-text)}sl-menu-item[data-v-84507113]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-84507113]::part(checked-icon){display:none}sl-menu-item[data-v-84507113]::part(prefix){margin-right:10px}sl-menu-item[data-v-84507113]::part(suffix){margin-right:-1.5em}.primary-icon[data-v-84507113]{color:var(--ignt-color-primary)}.delete-icon[data-v-84507113]{color:@warnColor}.dots[data-v-84507113]{color:var(--ignt-color-primary);width:1.5em;height:100%;font-size:1em;padding:.4em}.viur-shop-cart-sidebar-info-line[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line.total[data-v-84507113]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-sidebar-info-line span[data-v-84507113]{margin-right:auto}.viur-shop-cart-card[data-v-84507113]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-84507113]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-84507113]::part(image){-ms-flex-preferred-size:25%;flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-84507113]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-84507113]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-84507113]{display:grid;grid-template-columns:1fr auto auto;grid-gap:var(--sl-spacing-large);gap:var(--sl-spacing-large);-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-card-body-info[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-84507113]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-84507113]{width:5em}.viur-shop-cart-card-price-wrap[data-v-84507113]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.viur-shop-cart-card-price-wrap .viur-shop-cart-card-small-print[data-v-84507113]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-84507113]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-84507113]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-mobile-footer[data-v-84507113]{display:none}@media (max-width: 74.95em){.search-box[data-v-84507113]{-ms-flex-wrap:wrap;flex-wrap:wrap}.article-combobox[data-v-84507113]{margin-bottom:0}.comission-box[data-v-84507113]{-webkit-box-flex:1;-ms-flex:1;flex:1}}@media (max-width: 39.95em){.no-mobile[data-v-84507113]{display:none}}@media print{.no-print[data-v-84507113]{display:none}}.viur-shop-cart-sidebar-btn-wrap[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap sl-button[data-v-4082d346]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-4082d346]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}sl-tooltip[data-v-4082d346]::part(body){line-height:1.2;font-weight:400;padding:10px}sl-menu-item[data-v-4082d346]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-4082d346]::part(checked-icon){display:none}sl-menu-item[data-v-4082d346]::part(prefix){margin-right:10px}sl-menu-item[data-v-4082d346]::part(suffix){margin-right:-1.5em}.viur-shop-cart-sidebar-info-line[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line span[data-v-4082d346]{margin-right:auto}.viur-shop-cart-sidebar-info-line.total[data-v-4082d346]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card[data-v-4082d346]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-mini-card[data-v-4082d346]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-mini-card[data-v-4082d346]::part(image){-ms-flex-preferred-size:25%;flex-basis:25%;max-width:90px}.viur-shop-cart-mini-card[data-v-4082d346]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-mini-card[data-v-4082d346]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card-body-row[data-v-4082d346]{display:grid;grid-template-columns:1fr auto auto;grid-gap:var(--sl-spacing-large);gap:var(--sl-spacing-large);-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-mini-card-body-info[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.viur-shop-cart-mini-card-info-wrap[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--sl-spacing-medium)}.viur-shop-cart-mini-card-info[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.viur-shop-cart-mini-card-info span[data-v-4082d346]{margin-right:var(--sl-spacing-x-small);font-weight:600}.viur-shop-cart-address-wrap[data-v-4082d346]{display:grid;grid-template-columns:1fr 1fr;grid-gap:var(--sl-spacing-x-large);gap:var(--sl-spacing-x-large);margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-address-headline[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:600}.viur-shop-cart-payment[data-v-4082d346]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-payment span[data-v-4082d346]{font-weight:600}.viur-shop-cart-headline[data-v-4082d346]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-4082d346]{display:none}}@media print{.no-print[data-v-4082d346]{display:none}}[data-v-50f31583]{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-wrap[data-v-50f31583]{--shop-sidebar-background: var(--sl-color-neutral-100);--shop-sidebar-columns: 4;--shop-main-columns: 8;--shop-tab-color: var(--sl-color-neutral-400);--shop-tab-color-active: var(--ignt-color-primary);--shop-form-headline-size: 1.5em;--shop-success-headline-size: var(--shop-form-headline-size);display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.viur-shop-sidebar-wrap[data-v-50f31583]{grid-column:span var(--shop-sidebar-columns)}.viur-shop-sidebar[data-v-50f31583]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:var(--shop-sidebar-background);padding:var(--sl-spacing-medium);overflow:hidden;border-radius:var(--sl-border-radius-medium)}.viur-shop-order-tabgroup[data-v-50f31583]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-column:auto / span var(--shop-main-columns)}.viur-shop-order-tab[data-v-50f31583]{width:25%;position:relative}.viur-shop-order-tab[data-v-50f31583]::part(base){color:var(--shop-tab-color);display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.viur-shop-order-tab[aria-selected=true][data-v-50f31583]{--shop-tab-color: var(--shop-tab-color--active) }.viur-shop-order-step[data-v-50f31583]{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.viur-shop-order-step[data-v-50f31583]:has(sl-icon){-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.viur-shop-order-step sl-icon[data-v-50f31583]{font-size:2.5em;margin-bottom:15px}.viur-shop-order-tab-check[data-v-50f31583]{position:absolute;right:-.5em}.viur-shop-order-status-text[data-v-50f31583]{font-size:.8em;color:inherit;text-align:center;white-space:normal;white-space:initial}[data-v-50f31583] .viur-shop-form-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:var(--sl-spacing-large)}.flex-end[data-v-50f31583]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}@media (min-width: 1024px){.viur-shop-sidebar[data-v-50f31583]{position:sticky;top:0;margin-left:var(--sl-spacing-2x-large)}}@media (max-width: 1024px){.viur-shop-sidebar-wrap[data-v-50f31583],.viur-shop-order-tabgroup[data-v-50f31583]{grid-column:auto / span 12}}@media (max-width: 900px){.viur-shop-order-tab[data-v-50f31583]::part(base){height:100%;padding:var(--sl-spacing-small) var(--sl-spacing-medium)}.viur-shop-order-step[data-v-50f31583]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.viur-shop-order-step sl-icon[data-v-50f31583]{display:none}.viur-shop-order-tab-check[data-v-50f31583]{font-size:.7em;right:-.35em;top:calc(50% - .35em)}}@media (max-width: 39.95em){.no-mobile[data-v-50f31583]{display:none}}@media (max-width: 600px){.viur-shop-order-tabgroup[data-v-50f31583]::part(active-tab-indicator){display:none}.viur-shop-order-tab[aria-selected=true][data-v-50f31583]{width:100%}.viur-shop-order-tab:not([aria-selected="true"]) .viur-shop-order-status-span[data-v-50f31583]{display:none}}@media print{.no-print[data-v-50f31583]{display:none}}.viur-shop-item-card-card[data-v-dc32dd0b]{width:100%}.viur-shop-item-card-card[data-v-dc32dd0b]::part(header){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b]::part(body){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b]::part(footer){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card:hover .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card:hover .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card:hover .viur-shop-item-card-image[data-v-dc32dd0b]{-webkit-transform:scale(1.02);transform:scale(1.02)}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-image[data-v-dc32dd0b]{-webkit-transform:scale(1.02);transform:scale(1.02)}.viur-shop-item-card-footer[data-v-dc32dd0b]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{-webkit-transition:all ease .3s;transition:all ease .3s;margin-right:var(--sl-spacing-medium);opacity:0}.viur-shop-item-card-add-to-favourites-btn[data-v-dc32dd0b]{margin-left:auto}.viur-shop-item-card-image[data-v-dc32dd0b]{aspect-ratio:1;-o-object-fit:cover;object-fit:cover;-webkit-transition:all ease .3s;transition:all ease .3s}.viur-shop-item-card-headline[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small);-webkit-transition:all ease .3s;transition:all ease .3s}.viur-shop-item-card-subline[data-v-dc32dd0b]{color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small)}.viur-shop-item-card-price[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-dc32dd0b]{display:none}}@media print{.no-print[data-v-dc32dd0b]{display:none}}.viur-shop-category-view-list[data-v-532e5cf3]{display:grid;width:100%;grid-gap:var(--sl-spacing-medium);grid-template-columns:repeat(4,1fr)}.viur-shop-loading-wrap[data-v-532e5cf3]{position:absolute;top:0;bottom:0;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.viur-shop-loading-wrap sl-spinner[data-v-532e5cf3]{font-size:3.5em;--track-width: 4px}@media (max-width: 39.95em){.no-mobile[data-v-532e5cf3]{display:none}}@media print{.no-print[data-v-532e5cf3]{display:none}}.btn-wrap[data-v-688e20e0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}.viur-shop-success-headline[data-v-688e20e0]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-success-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-688e20e0]{display:none}}@media print{.no-print[data-v-688e20e0]{display:none}}[data-v-4d14c6fe] .bone-name{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-form-bill-check[data-v-4d14c6fe]{margin:var(--sl-spacing-medium) 0}.viur-shop-form-headline[data-v-4d14c6fe]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-4d14c6fe]{display:none}}@media print{.no-print[data-v-4d14c6fe]{display:none}}[data-v-c4232b7a] .bone-name{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-form-btn-wrap[data-v-c4232b7a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-medium)}.viur-shop-form-cart-select[data-v-c4232b7a],.viur-shop-form-bill-check[data-v-c4232b7a]{margin:var(--sl-spacing-medium) 0}.viur-shop-form-headline[data-v-c4232b7a]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-c4232b7a]{display:none}}@media print{.no-print[data-v-c4232b7a]{display:none}}.wrap[data-v-720fb199]{display:grid;grid-template-columns:45% minmax(0,1fr)}.viur-shop-item-view-info-wrap[data-v-720fb199]{padding:var(--sl-spacing-x-large)}.viur-shop-item-view-image-wrap[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}sl-carousel[data-v-720fb199]{aspect-ratio:1;background-color:var(--sl-color-neutral-200)}sl-carousel[data-v-720fb199]::part(base){display:-webkit-box;display:-ms-flexbox;display:flex;gap:0}sl-carousel[data-v-720fb199]::part(scroll-container){border-radius:0}sl-carousel[data-v-720fb199]::part(navigation-button){position:absolute;background-color:color-mix(in hsl,var(--sl-color-neutral-0) 85%,transparent);color:var(--app-primary-color);border-radius:0;-webkit-transition:all ease.3s;transition:all ease.3s;opacity:0}sl-carousel[data-v-720fb199]::part(navigation-button--previous){left:0}sl-carousel[data-v-720fb199]::part(navigation-button--next){right:0}sl-carousel[data-v-720fb199]:hover::part(navigation-button){opacity:1}sl-carousel[data-v-720fb199]:focus-visible::part(navigation-button){opacity:1}.viur-shop-item-view-thumbnails[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;margin-top:vaR(--sl-spacing-medium)}.viur-shop-item-view-thumbnails-scroller[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-small);overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;scroll-padding:var(--sl-spacing-small)}.viur-shop-item-view-thumbnails-scroller[data-v-720fb199]::-webkit-scrollbar{display:none}.viur-shop-item-view-thumbnails-image[data-v-720fb199]{width:64px;height:64px;-o-object-fit:cover;object-fit:cover;opacity:.3;will-change:opacity;-webkit-transition:.25s opacity;transition:.25s opacity;cursor:pointer}.viur-shop-item-view-thumbnails-image.active[data-v-720fb199]{opacity:1}.viur-shop-item-view-headline[data-v-720fb199],.viur-shop-item-view-subline[data-v-720fb199]{margin-bottom:var(--sl-spacing-small)}.viur-shop-item-view-price[data-v-720fb199]{font-size:1.4em;margin-bottom:var(--sl-spacing-small)}.viur-shop-item-view-paragraph[data-v-720fb199]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-item-view-btn-wrap[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.viur-shop-item-view-btn-wrap sl-button[data-v-720fb199]{margin-bottom:var(--sl-spacing-x-small)}.viur-shop-item-view-item-grid[data-v-720fb199]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:var(--sl-spacing-medium)}@media (max-width: 39.95em){.no-mobile[data-v-720fb199]{display:none}}@media print{.no-print[data-v-720fb199]{display:none}} +.is-dragging[data-v-141aaf9b]{opacity:.4}.dragging-line-bottom[data-v-141aaf9b]{margin-bottom:calc(-1 * var(--sl-spacing-x-small));border-bottom:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.dragging-line-top[data-v-141aaf9b]{margin-top:calc(-1 * var(--sl-spacing-x-small));border-top:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.value-line[data-v-141aaf9b]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small)}.value[data-v-141aaf9b]{width:100%}.value[data-v-141aaf9b] sl-input::part(base){border-bottom-left-radius:var(--sl-border-radius-medium);border-top-left-radius:var(--sl-border-radius-medium)}.value[data-v-141aaf9b] .bone-wrapper sl-input::part(base){border-bottom-left-radius:0;border-top-left-radius:0}.delete-btn[data-v-141aaf9b]::part(base){aspect-ratio:1}.drag-button[data-v-141aaf9b]::part(base){aspect-ratio:1}@media (max-width: 39.95em){.no-mobile[data-v-141aaf9b]{display:none}}@media print{.no-print[data-v-141aaf9b]{display:none}}.bone-name[data-v-b7149172]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:start;align-self:flex-start;font-size:var(--sl-input-font-size-medium);min-height:var(--sl-input-height-medium);padding:.4em .7em;color:var(--sl-color-neutral-900);background-color:var(--sl-color-neutral-200);border:none;border-top-left-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:var(--sl-input-border-radius-medium);word-break:break-word}.debug[data-v-b7149172]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;padding-left:.4em}.debug sl-icon[data-v-b7149172]{background-color:var(--sl-color-danger-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}@media (max-width: 900px){.bone-name[data-v-b7149172]{border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-b7149172]{display:none}}@media print{.no-print[data-v-b7149172]{display:none}}sl-input[data-v-0ebe5f0b]{width:100%}sl-input[data-v-0ebe5f0b]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ebe5f0b]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-0ebe5f0b]{display:none}}@media print{.no-print[data-v-0ebe5f0b]{display:none}}sl-input[data-v-b45a1311]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-b45a1311]{display:none}}@media print{.no-print[data-v-b45a1311]{display:none}}sl-input[data-v-1ccbacc0]{width:100%}sl-input[data-v-1ccbacc0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-1ccbacc0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-1ccbacc0]{display:none}}@media print{.no-print[data-v-1ccbacc0]{display:none}}sl-input[data-v-4328e024]{width:100%}sl-input[data-v-4328e024]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-4328e024]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-4328e024]{display:none}}@media print{.no-print[data-v-4328e024]{display:none}}sl-input[data-v-f1b8af8c]{width:100%}sl-input[data-v-f1b8af8c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-f1b8af8c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-f1b8af8c]{display:none}}@media print{.no-print[data-v-f1b8af8c]{display:none}}sl-select[data-v-5a38b97f]{width:100%}sl-select[data-v-5a38b97f]::part(combobox){border-top-left-radius:0;border-bottom-left-radius:0}sl-option[data-v-5a38b97f]::part(base){-webkit-transition:background-color ease .3s;transition:background-color ease .3s}sl-option[data-v-5a38b97f]:hover::part(base){background-color:var(--sl-color-gray-200)}sl-option[data-v-5a38b97f]:focus-visible::part(base){background-color:var(--sl-color-gray-200)}@media (max-width: 900px){sl-select[data-v-5a38b97f]::part(combobox){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-5a38b97f]{display:none}}@media print{.no-print[data-v-5a38b97f]{display:none}}sl-switch[data-v-363598c8]{border:1px solid var(--sl-color-neutral-300);padding:.4em .1em .4em .4em;border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-right-radius:var(--sl-input-border-radius-medium);--height: calc(var(--sl-input-height-medium) - 1em);--width: calc(1.7 * (var(--sl-input-height-medium) - .8em));--thumb-size: calc(var(--sl-input-height-medium) - 1em)}@media (max-width: 900px){sl-switch[data-v-363598c8]{border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-363598c8]{display:none}}@media print{.no-print[data-v-363598c8]{display:none}}sl-input[data-v-0ccf18c0]{width:100%}sl-input[data-v-0ccf18c0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.has-check[data-v-0ccf18c0]::part(base){border-bottom-right-radius:0}.password-check[data-v-0ccf18c0]{margin-top:var(--sl-spacing-x-small)}.password-check[data-v-0ccf18c0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}.pw-legend[data-v-0ccf18c0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:0rem;font-size:.75rem;padding:.25em}span[data-v-0ccf18c0]{margin:0;padding:0;font-style:italic}.errors[data-v-0ccf18c0]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.requiredInfo[data-v-0ccf18c0]{color:var(--sl-color-danger-500)}@media (max-width: 900px){sl-input[data-v-0ccf18c0]::part(base){border-top-right-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-0ccf18c0]{display:none}}@media print{.no-print[data-v-0ccf18c0]{display:none}}.form[data-v-e6fcfbca]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-e6fcfbca]{display:none}}@media print{.no-print[data-v-e6fcfbca]{display:none}}sl-input[data-v-84a761ce]{width:100%}@media (max-width: 39.95em){.no-mobile[data-v-84a761ce]{display:none}}@media print{.no-print[data-v-84a761ce]{display:none}}sl-color-picker[data-v-534b9149]::part(trigger){border-radius:0}@media (max-width: 39.95em){.no-mobile[data-v-534b9149]{display:none}}@media print{.no-print[data-v-534b9149]{display:none}}sl-input[data-v-03d5b399]{width:100%}sl-input[data-v-03d5b399]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.info[data-v-03d5b399]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}@media (max-width: 900px){sl-input[data-v-03d5b399]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-03d5b399]{display:none}}@media print{.no-print[data-v-03d5b399]{display:none}}.single-entry[data-v-61dd72e0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small)}.single-entry[data-v-61dd72e0] sl-combobox::part(input__base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]{width:100%}sl-input[data-v-61dd72e0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]::part(base){background-color:var(--sl-color-neutral-0)}sl-combobox[data-v-61dd72e0]{width:100%}sl-combobox[data-v-61dd72e0]::part(input){border-top-left-radius:0;border-bottom-left-radius:0}sl-combobox[data-v-61dd72e0]::part(input) sl-combobox::part(input)::part(base){border:1px solid red}@media (max-width: 39.95em){.no-mobile[data-v-61dd72e0]{display:none}}@media print{.no-print[data-v-61dd72e0]{display:none}}.box[data-v-343aca69]{width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;min-height:40px}@media (max-width: 39.95em){.no-mobile[data-v-343aca69]{display:none}}@media print{.no-print[data-v-343aca69]{display:none}}.box[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 var(--sl-spacing-small) 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;height:var(--sl-input-height-medium);background-color:transparent}.preview[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:var(--sl-input-height-medium);width:var(--sl-input-height-medium);aspect-ratio:1;border-right:1px solid var(--sl-color-gray-500);margin-right:var(--sl-spacing-small);background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.87)),to(rgba(255,255,255,.87))),-webkit-gradient(linear,left top,right top,color-stop(50%,black),color-stop(50%,white)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,black),color-stop(50%,white));background-image:linear-gradient(to right,rgba(255,255,255,.87),rgba(255,255,255,.87)),linear-gradient(to right,black 50%,white 50%),linear-gradient(to bottom,black 50%,white 50%);background-blend-mode:normal,difference,normal;background-size:.65em .65em}.preview.has-preview[data-v-91086308]{cursor:pointer}.preview sl-icon[data-v-91086308]{font-size:1.1em;color:var(--sl-color-gray-400)}.preview .preview-img[data-v-91086308]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.file-wrapper[data-v-91086308]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-x-small);position:relative}.droparea[data-v-91086308]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.delete-btn[data-v-91086308]::part(base){aspect-ratio:1}.upload-btn[data-v-91086308]::part(base){aspect-ratio:1}.loader[data-v-91086308]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#ffffffb3}.preview-overlay[data-v-91086308]::part(panel){width:auto;max-width:1200px}.preview-overlay[data-v-91086308]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.87)),to(rgba(255,255,255,.87))),-webkit-gradient(linear,left top,right top,color-stop(50%,black),color-stop(50%,white)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,black),color-stop(50%,white));background-image:linear-gradient(to right,rgba(255,255,255,.87),rgba(255,255,255,.87)),linear-gradient(to right,black 50%,white 50%),linear-gradient(to bottom,black 50%,white 50%);background-blend-mode:normal,difference,normal;background-size:1.2em 1.2em;padding:0}.preview-overlay img[data-v-91086308]{width:auto;height:auto}@media (max-width: 39.95em){.no-mobile[data-v-91086308]{display:none}}@media print{.no-print[data-v-91086308]{display:none}}.bone-inner-wrap .ck-editor{--ck-border-radius: 0px;--ck-font-size-base: 14px;--ck-custom-background: var(--sl-color-neutral-200);--ck-custom-foreground: var(--sl-color-neutral-900);--ck-custom-border: var(--sl-color-neutral-100);--ck-custom-white: var(--sl-color-neutral-50);--ck-color-base-foreground: var(--ck-custom-background);--ck-color-base-background: var(--ck-custom-background);--ck-color-base-border: var(--sl-color-neutral-300);--ck-color-focus-border: var(--sl-color-neutral-700);--ck-color-text: var(--sl-color-neutral-900);--ck-color-shadow-drop: hsla(0, 0%, 0%, .2);--ck-color-shadow-inner: hsla(0, 0%, 0%, .1);--ck-color-button-default-background: var(--ck-custom-background);--ck-color-button-default-hover-background: var(--sl-color-neutral-50);--ck-color-button-default-active-background: var(--sl-color-neutral-50);--ck-color-button-default-active-shadow: hsl(270, 2%, 23%);--ck-color-button-default-disabled-background: var(--ck-custom-background);--ck-color-button-on-hover-background: var(--sl-color-neutral-50);--ck-color-button-on-active-background: hsl(255, 4%, 14%);--ck-color-button-on-active-shadow: hsl(240, 3%, 19%);--ck-color-button-on-disabled-background: var(--ck-custom-foreground);--ck-color-button-on-color: var(--sl-color-primary-500);--ck-color-button-on-background: var(--sl-color-neutral-100);--ck-focus-ring: 1px solid var(--sl-color-primary-500);--ck-focus-outer-shadow: none;--ck-powered-by-text-color: var(--ck-custom-foreground);--ck-powered-by-background: var(--ck-custom-background);--ck-color-button-action-background: var(--sl-color-primary-600);--ck-color-button-action-hover-background: var(--sl-color-primary-500);--ck-color-button-action-active-background: var(--sl-color-primary-500);--ck-color-button-action-active-shadow: var(--sl-color-primary-500);--ck-color-button-action-disabled-background: var(--sl-color-primary-600);--ck-color-button-action-text: var(--ck-custom-white);--ck-color-dropdown-panel-background: var(--ck-custom-background);--ck-color-dropdown-panel-border: var(--sl-color-neutral-400);--ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);--ck-color-split-button-hover-border: var(--ck-custom-foreground);--ck-color-labeled-field-label-background: var(--ck-custom-background);--ck-color-list-background: var(--ck-custom-background);--ck-color-list-button-hover-background: var(--sl-color-neutral-50);--ck-color-list-button-on-background: var(--sl-color-primary-500);--ck-color-list-button-on-background-focus: var(--sl-color-primary-500);--ck-color-list-button-on-text: var(--ck-color-base-background);--ck-color-panel-background: var(--ck-custom-background);--ck-color-panel-border: var(--ck-custom-border);--ck-color-toolbar-background: var(--ck-custom-background);--ck-color-toolbar-border: var(--ck-custom-border);--ck-color-tooltip-background: hsl(252, 7%, 14%);--ck-color-tooltip-text: hsl(0, 0%, 93%);--ck-color-image-caption-background: var(--ck-custom-background);--ck-color-image-caption-text: var(--ck-custom-foreground);--ck-color-link-default: var(--sl-color-primary-500);width:100%!important}.bone-inner-wrap .ck-editor .ck-content{background:transparent!important;border:1px solid var(--vi-border-color)!important;width:100%;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-editor .ck-content.ck-focused,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area textarea,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area td{border:1px solid var(--sl-color-neutral-600)!important}.bone-inner-wrap .ck-editor .ck-toolbar{height:var(--sl-input-height-medium);border-color:var(--vi-border-color);background-color:var(--vi-background-color)}.bone-inner-wrap .ck-editor .ck-button{border-color:none;background-color:var(--vi-background-color);cursor:pointer}.bone-inner-wrap .ck-editor .ck-button:hover{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button:focus-visible{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button.ck-on{background-color:var(--vi-background-color)!important;border:1px solid var(--sl-color-primary-500)!important;color:var(--sl-color-primary-500)!important}.bone-inner-wrap .ck-editor .ck-source-editing-area{width:100%}.bone-inner-wrap .ck-editor .ck-source-editing-area textarea{background-color:transparent;color:var(--ck-custom-foreground);border:1px solid var(--vi-border-color)!important;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-content .table{margin:.9em 0}.ck-body-wrapper .ck-link-form{width:500px!important;max-width:37vw!important;min-width:180px!important}.ck-body-wrapper .ck-link-form .ck-labeled-field-view,.ck-body-wrapper .ck-link-form .ck-input{width:100%}sl-textarea::part(base){-webkit-box-shadow:none!important;box-shadow:none!important;background-color:transparent}sl-textarea::part(textarea){background-color:transparent;border:1px solid var(--vi-border-color);border-radius:var(--sl-border-radius-medium);border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 39.95em){.no-mobile{display:none}}@media print{.no-print{display:none}}sl-input[data-v-7bc31020]{width:100%}sl-input[data-v-7bc31020]:first-child{margin-bottom:10px}sl-input[data-v-7bc31020]:first-child::part(base){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-right-radius:var(--sl-border-radius-medium)}sl-input[data-v-7bc31020]::part(base){border-top-left-radius:0;border-top-right-radius:0}@media (max-width: 900px){sl-input[data-v-7bc31020]:first-child::part(base){border-top-right-radius:0}}@media (max-width: 39.95em){.no-mobile[data-v-7bc31020]{display:none}}@media print{.no-print[data-v-7bc31020]{display:none}}.actionbar[data-v-63e75dee]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.add-btn[data-v-63e75dee]{margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-63e75dee]{display:none}}@media print{.no-print[data-v-63e75dee]{display:none}}.actionbar[data-v-eeea51c6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}sl-combobox[data-v-eeea51c6]{width:100%}.delete-btn[data-v-eeea51c6]{margin-right:var(--sl-spacing-x-small)}.add-btn[data-v-eeea51c6]{margin-left:var(--sl-spacing-x-small)}@media (max-width: 39.95em){.no-mobile[data-v-eeea51c6]{display:none}}@media print{.no-print[data-v-eeea51c6]{display:none}}.actionbar[data-v-9bac9f8a]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:nowrap;flex-wrap:nowrap}sl-combobox[data-v-9bac9f8a]{width:100%}.droparea[data-v-9bac9f8a]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.add-btn[data-v-9bac9f8a]{margin-left:var(--sl-spacing-x-small)}.upload-btn[data-v-9bac9f8a]{margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-9bac9f8a]{display:none}}@media print{.no-print[data-v-9bac9f8a]{display:none}}.dragging-top[data-v-dee63f3c]{border-top:2px solid var(--sl-color-neutral-400)}.dragging-bottom[data-v-dee63f3c]{border-bottom:2px solid var(--sl-color-neutral-400)}.bone-wrapper[data-v-dee63f3c]{display:grid;grid-template-columns:235px 1fr;grid-gap:var(--sl-spacing-small);margin-bottom:20px}.bone-wrapper.bone-wrapper-record[data-v-dee63f3c],.bone-wrapper.has-subbones[data-v-dee63f3c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-gap:0}.bone-wrapper.bone-wrapper-record[data-v-dee63f3c]>.bone-name,.bone-wrapper.has-subbones[data-v-dee63f3c]>.bone-name{border-bottom-left-radius:0;border-top-right-radius:var(--sl-border-radius-medium);min-width:235px}.bone-wrapper.bone-wrapper-record>.bone-inner-wrap[data-v-dee63f3c],.bone-wrapper.has-subbones>.bone-inner-wrap[data-v-dee63f3c]{padding-top:var(--sl-spacing-small);border-top:2px solid var(--sl-color-neutral-200);margin-bottom:5px}.bone-wrapper.bone-wrapper-record .multiple-bone[data-v-dee63f3c],.bone-wrapper.has-subbones .multiple-bone[data-v-dee63f3c]{border-bottom:1px solid var(--sl-color-neutral-200);padding-bottom:var(--sl-spacing-2x-small);margin-bottom:var(--sl-spacing-small)}sl-tab-panel[data-v-dee63f3c]::part(base){padding:0}.lang-tab[data-v-dee63f3c]{--track-width: 0;--indicator-color: var(--vi-background-color);--track-color: var(--vi-border-color)}.lang-tab[data-v-dee63f3c]::part(body){padding-bottom:var(--sl-spacing-x-small);overflow-x:hidden}.lang-tab[data-v-dee63f3c]::part(tabs){border-top:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]{margin-top:-1px}.lang-tab sl-tab[aria-selected=true][data-v-dee63f3c]{z-index:1}.lang-tab sl-tab[aria-selected=true][data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color);border-top:1px solid var(--vi-background-color)!important;border-bottom:2px solid var(--sl-color-primary-500)!important}.lang-tab sl-tab[data-v-dee63f3c]::part(base){background-color:var(--sl-color-neutral-200);border:1px solid var(--sl-color-neutral-400);border-top:1px solid var(--vi-border-color);border-radius:0;padding:var(--sl-spacing-x-small);-webkit-transition:all ease .3s;transition:all ease .3s}.lang-tab sl-tab[data-v-dee63f3c]:hover::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]:focus-visible::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab sl-tab[data-v-dee63f3c]:first-child::part(base){border-bottom-left-radius:5px}.lang-tab sl-tab[data-v-dee63f3c]:nth-last-child(2)::part(base){border-bottom-right-radius:5px}.lang-tab sl-tab[data-v-dee63f3c]:not(:first-child)::part(base){margin-left:-1px}.multiple-placeholder[data-v-dee63f3c]:not(.readonly){margin-bottom:var(--sl-spacing-x-small)}.multiple-placeholder sl-input[data-v-dee63f3c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0;opacity:.7}.multiple-bone[data-v-dee63f3c],.multiple-bone .bone-wrapper[data-v-dee63f3c]{margin-bottom:var(--sl-spacing-x-small)}.multiple-bone:first-child .dragging-line-top[data-v-dee63f3c] .value-line{margin-top:0}.bone-inner-wrap[data-v-dee63f3c]{min-width:1px}.bone-inner-wrap sl-alert[data-v-dee63f3c]{margin-top:var(--sl-spacing-x-small);background-color:transparent}.bone-inner-wrap sl-alert[data-v-dee63f3c]::part(message){padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.bone-inner-wrap sl-alert[data-v-dee63f3c]::part(icon){padding-left:var(--sl-spacing-small)}.label-info[data-v-dee63f3c]::part(base){-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:.5em;background-color:var(--sl-color-info-50);border:none}.label-info[data-v-dee63f3c]::part(message){padding:var(--sl-spacing-small)}.label-info[data-v-dee63f3c]::part(icon){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:var(--sl-color-neutral-0);width:1em;height:1em;margin-left:-.5em;padding-left:0}.tooltip[data-v-dee63f3c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;padding-left:.4em}.tooltip sl-icon[data-v-dee63f3c]{background-color:var(--sl-color-info-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}sl-tooltip[data-v-dee63f3c]::part(body){background-color:var(--sl-color-info-500)}sl-tooltip[data-v-dee63f3c]::part(base__arrow){background-color:var(--sl-color-info-500)}.required[data-v-dee63f3c]{color:var(--sl-color-primary-500);font-weight:700}[data-v-dee63f3c] sl-combobox::part(input__base){border:1px solid var(--vi-border-color);-webkit-box-shadow:none!important;box-shadow:none!important}[data-v-dee63f3c] sl-combobox::part(input__prefix){display:none!important}[data-v-dee63f3c] sl-combobox::part(input__suffix){display:none!important}@media (max-width: 900px){.bone-wrapper[data-v-dee63f3c]{grid-template-columns:1fr}.multiple-placeholder sl-input[data-v-dee63f3c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}@media (max-width: 39.95em){.no-mobile[data-v-dee63f3c]{display:none}}@media print{.no-print[data-v-dee63f3c]{display:none}}.logo[data-v-46c45785]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:var(--93747d92);width:var(--93747d92);overflow:hidden;border-radius:50%;background-color:var(--sl-color-neutral-0);-webkit-box-shadow:var(--284424e5);box-shadow:var(--284424e5)}.logo sl-icon[data-v-46c45785]{height:var(--6485ca5e);width:var(--6485ca5e);aspect-ratio:1;color:var(--vi-background-color);-webkit-animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate;animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate}@-webkit-keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}@keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}.loader[data-v-46c45785]{font-size:var(--5d833915);--indicator-color: var(--d5b3feca);--track-color: var(--sl-color-neutral-0);--track-width: var(--2050b700);z-index:1}.loading[data-v-46c45785]{position:absolute;width:100%;height:100%;display:inline-grid;justify-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.v-enter-active[data-v-46c45785],.v-leave-active[data-v-46c45785]{-webkit-transition:opacity .5s ease;transition:opacity .5s ease}.v-enter-from[data-v-46c45785],.v-leave-to[data-v-46c45785]{opacity:0}@media (max-width: 39.95em){.no-mobile[data-v-46c45785]{display:none}}@media print{.no-print[data-v-46c45785]{display:none}}.viur-shop-cart-leaf[data-v-d313b580]{--shop-leaf-label-color: var(--ignt-color-primary);--shop-leaf-label-font-weight: 600;--shop-leaf-label-font-size: 1em;--shop-leaf-price-font-size: 1em;--shop-leaf-headline-font-size: 1.3em;margin-bottom:var(--ignt-spacing-x-large)}.viur-shop-cart-leaf[data-v-d313b580]::part(base){display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.viur-shop-cart-leaf[data-v-d313b580]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-leaf[data-v-d313b580]::part(image){aspect-ratio:1}.viur-shop-cart-leaf[data-v-d313b580]::part(body){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:var(--sl-spacing-medium);gap:var(--sl-spacing-medium);padding:var(--sl-spacing-large);height:100%}.viur-shop-cart-leaf[data-v-d313b580]::part(group){padding:0}.viur-shop-cart-leaf-image[data-v-d313b580]{aspect-ratio:1}.viur-shop-cart-leaf-headline[data-v-d313b580]{grid-column:1 / span 4;-webkit-box-ordinal-group:-1;-ms-flex-order:-2;order:-2;margin:0;font-size:var(--shop-leaf-headline-font-size)}.viur-shop-cart-leaf-artno[data-v-d313b580]{grid-column:1 / span 5;margin:0}.viur-shop-cart-leaf-actions[data-v-d313b580]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;gap:var(--sl-spacing-x-small)}.viur-shop-cart-leaf-description[data-v-d313b580]{grid-column:1 / span 5;margin-bottom:var(--ignt-spacing-small);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.viur-shop-cart-leaf-description[data-v-d313b580] *{margin:0}.viur-shop-cart-leaf-price[data-v-d313b580]{-ms-flex-item-align:end;align-self:flex-end;text-align:right;font-size:var(--shop-leaf-price-font-size)}.viur-shop-cart-leaf-quantity[data-v-d313b580],.viur-shop-cart-leaf-unitprice[data-v-d313b580]{-ms-flex-item-align:end;align-self:flex-end}.viur-shop-cart-leaf-label[data-v-d313b580],.viur-shop-cart-leaf-value--quantity[data-v-d313b580]::part(form-control-label){color:var(--shop-leaf-label-color);font-weight:var(--shop-leaf-label-font-weight);font-size:var(--shop-leaf-label-font-size);margin-bottom:var(--ignt-spacing-x-small)}@media (min-width: 600px){.viur-shop-cart-leaf-actions[data-v-d313b580]{grid-column:5 / span 1;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;-webkit-box-align:end;-ms-flex-align:end;align-items:end}}@media (max-width: 39.95em){.no-mobile[data-v-d313b580]{display:none}}@media (max-width: 600px){.viur-shop-cart-leaf[data-v-d313b580]::part(body){grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sl-spacing-medium);padding:var(--sl-spacing-large);height:100%}.viur-shop-cart-leaf[data-v-d313b580]::part(image){border-radius:var(--border-radius);-ms-flex-item-align:baseline;align-self:baseline}.viur-shop-cart-leaf-headline[data-v-d313b580],.viur-shop-cart-leaf-artno[data-v-d313b580]{grid-column:1 / span 2}.viur-shop-cart-leaf-description[data-v-d313b580]{grid-column:span 2}.viur-shop-cart-leaf-unitprice[data-v-d313b580]{text-align:right}}@media (max-width: 500px){.viur-shop-cart-leaf-description[data-v-d313b580]{display:none}}@media print{.no-print[data-v-d313b580]{display:none}}.viur-shop-cart-wrap[data-v-b5419f82]{display:grid;grid-template-columns:subgrid}.viur-shop-cart-sidebar-btn-wrap[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap sl-button[data-v-b5419f82]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-b5419f82]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}.viur-shop-cart-controlbar[data-v-b5419f82]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.viur-shop-cart-controlbar sl-input[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-controlbar sl-input[data-v-b5419f82]::part(base){margin-bottom:0}.viur-shop-cart-sidebar-headline[data-v-b5419f82]{margin:0 0 var(--sl-spacing-large) 0}.viur-shop-cart-button-list[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:10px}.viur-shop-cart-button-list.left[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:10px}.search[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-left:10px}.article-combobox[data-v-b5419f82]{float:left;width:75ch}.viur-shop-cart-card-img[data-v-b5419f82]{aspect-ratio:1}.viur-shop-cart-selection[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-node[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cart-wrap[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%}.soma-input[data-v-b5419f82]{display:grid;grid-template-columns:120px 1fr;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.soma-label[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.soma-label sl-icon[data-v-b5419f82]{margin-left:5px;background-color:@highlightColor;color:#fff;aspect-ratio:1;border-radius:50%;padding:.3em;font-size:.6em;cursor:pointer}sl-tooltip[data-v-b5419f82]::part(body){line-height:1.2;font-weight:400;padding:10px}.cart-tab sl-tab[data-v-b5419f82]{width:25%}.cart-tab sl-tab[data-v-b5419f82]::part(base){width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.cart-tab sl-tab[aria-selected=true][data-v-b5419f82]::part(base){color:var(--ignt-color-primary)!important}.cart-status-text[data-v-b5419f82]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:normal;white-space:initial}.search-box[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;margin-bottom:30px}.search-box sl-button[data-v-b5419f82]::part(base){height:100%}.article-combobox[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-bottom:10px}.article-combobox[data-v-b5419f82]::part(base){margin-bottom:0}.comission-box[data-v-b5419f82]{margin-right:10px}.comission-box[data-v-b5419f82]::part(base){margin-bottom:0}.search-amt[data-v-b5419f82]{margin-right:10px}.search-amt[data-v-b5419f82]::part(base){margin-bottom:0;width:80px}.viur-shop-cart-headline[data-v-b5419f82]::part(base){background-color:transparent;-webkit-transition:all ease .3s;transition:all ease .3s;border-bottom:1px solid transparent;height:auto}.viur-shop-cart-headline[data-v-b5419f82] .input--focused{border-bottom:1px solid var(--sl-color-primary-500)!important}.viur-shop-cart-headline[data-v-b5419f82]::part(input){color:var(--sl-color-primary-500);font-weight:300;text-transform:uppercase;font-size:1.85em;padding:.1em 0;height:auto}.viur-shop-cart-headline[data-v-b5419f82]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-headline[data-v-b5419f82]:hover::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-headline[data-v-b5419f82]:focus-visible::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-descr[data-v-b5419f82]{margin-top:10px}.viur-shop-cart-descr[data-v-b5419f82]::part(base){background-color:transparent;-webkit-transition:all ease .3s;transition:all ease .3s;border-bottom:1px solid transparent;margin-bottom:0}.viur-shop-cart-descr[data-v-b5419f82]::part(input){padding:.1em 0;height:auto;color:var(--ignt-color-text)}.viur-shop-cart-descr[data-v-b5419f82]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-descr[data-v-b5419f82]:hover::part(base){border-bottom:1px solid var(--ignt-color-text)}.viur-shop-cart-descr[data-v-b5419f82]:focus-visible::part(base){border-bottom:1px solid var(--ignt-color-text)}sl-menu-item[data-v-b5419f82]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-b5419f82]::part(checked-icon){display:none}sl-menu-item[data-v-b5419f82]::part(prefix){margin-right:10px}sl-menu-item[data-v-b5419f82]::part(suffix){margin-right:-1.5em}.primary-icon[data-v-b5419f82]{color:var(--ignt-color-primary)}.delete-icon[data-v-b5419f82]{color:@warnColor}.dots[data-v-b5419f82]{color:var(--ignt-color-primary);width:1.5em;height:100%;font-size:1em;padding:.4em}.viur-shop-cart-sidebar-info-line[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line.total[data-v-b5419f82]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-sidebar-info-line span[data-v-b5419f82]{margin-right:auto}.viur-shop-cart-card[data-v-b5419f82]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-b5419f82]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-b5419f82]::part(image){-ms-flex-preferred-size:25%;flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-b5419f82]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-b5419f82]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-b5419f82]{display:grid;grid-template-columns:1fr auto auto;grid-gap:var(--sl-spacing-large);gap:var(--sl-spacing-large);-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-card-body-info[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-b5419f82]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-b5419f82]{width:5em}.viur-shop-cart-card-price-wrap[data-v-b5419f82]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.viur-shop-cart-card-price-wrap .viur-shop-cart-card-small-print[data-v-b5419f82]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-b5419f82]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-b5419f82]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-mobile-footer[data-v-b5419f82]{display:none}@media (max-width: 74.95em){.search-box[data-v-b5419f82]{-ms-flex-wrap:wrap;flex-wrap:wrap}.article-combobox[data-v-b5419f82]{margin-bottom:0}.comission-box[data-v-b5419f82]{-webkit-box-flex:1;-ms-flex:1;flex:1}}@media (max-width: 39.95em){.no-mobile[data-v-b5419f82]{display:none}}@media print{.no-print[data-v-b5419f82]{display:none}}.viur-shop-cart-sidebar-btn-wrap[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap sl-button[data-v-b3e35258]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-b3e35258]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}sl-tooltip[data-v-b3e35258]::part(body){line-height:1.2;font-weight:400;padding:10px}sl-menu-item[data-v-b3e35258]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-b3e35258]::part(checked-icon){display:none}sl-menu-item[data-v-b3e35258]::part(prefix){margin-right:10px}sl-menu-item[data-v-b3e35258]::part(suffix){margin-right:-1.5em}.viur-shop-cart-sidebar-info-line[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line span[data-v-b3e35258]{margin-right:auto}.viur-shop-cart-sidebar-info-line.total[data-v-b3e35258]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card[data-v-b3e35258]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-mini-card[data-v-b3e35258]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b3e35258]::part(image){-ms-flex-preferred-size:25%;flex-basis:25%;max-width:90px}.viur-shop-cart-mini-card[data-v-b3e35258]::part(body){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b3e35258]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card-body-row[data-v-b3e35258]{display:grid;grid-template-columns:1fr auto auto;grid-gap:var(--sl-spacing-large);gap:var(--sl-spacing-large);-webkit-box-flex:1;-ms-flex:1;flex:1}.viur-shop-cart-mini-card-body-info[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.viur-shop-cart-mini-card-info-wrap[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--sl-spacing-medium)}.viur-shop-cart-mini-card-info[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.viur-shop-cart-mini-card-info span[data-v-b3e35258]{margin-right:var(--sl-spacing-x-small);font-weight:600}.viur-shop-cart-address-wrap[data-v-b3e35258]{display:grid;grid-template-columns:1fr 1fr;grid-gap:var(--sl-spacing-x-large);gap:var(--sl-spacing-x-large);margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-address-headline[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:600}.viur-shop-cart-payment[data-v-b3e35258]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-payment span[data-v-b3e35258]{font-weight:600}.viur-shop-cart-headline[data-v-b3e35258]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-b3e35258]{display:none}}@media print{.no-print[data-v-b3e35258]{display:none}}[data-v-50f31583]{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-wrap[data-v-50f31583]{--shop-sidebar-background: var(--sl-color-neutral-100);--shop-sidebar-columns: 4;--shop-main-columns: 8;--shop-tab-color: var(--sl-color-neutral-400);--shop-tab-color-active: var(--ignt-color-primary);--shop-form-headline-size: 1.5em;--shop-success-headline-size: var(--shop-form-headline-size);display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.viur-shop-sidebar-wrap[data-v-50f31583]{grid-column:span var(--shop-sidebar-columns)}.viur-shop-sidebar[data-v-50f31583]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:var(--shop-sidebar-background);padding:var(--sl-spacing-medium);overflow:hidden;border-radius:var(--sl-border-radius-medium)}.viur-shop-order-tabgroup[data-v-50f31583]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-column:auto / span var(--shop-main-columns)}.viur-shop-order-tab[data-v-50f31583]{width:25%;position:relative}.viur-shop-order-tab[data-v-50f31583]::part(base){color:var(--shop-tab-color);display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.viur-shop-order-tab[aria-selected=true][data-v-50f31583]{--shop-tab-color: var(--shop-tab-color--active) }.viur-shop-order-step[data-v-50f31583]{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.viur-shop-order-step[data-v-50f31583]:has(sl-icon){-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.viur-shop-order-step sl-icon[data-v-50f31583]{font-size:2.5em;margin-bottom:15px}.viur-shop-order-tab-check[data-v-50f31583]{position:absolute;right:-.5em}.viur-shop-order-status-text[data-v-50f31583]{font-size:.8em;color:inherit;text-align:center;white-space:normal;white-space:initial}[data-v-50f31583] .viur-shop-form-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:var(--sl-spacing-large)}.flex-end[data-v-50f31583]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}@media (min-width: 1024px){.viur-shop-sidebar[data-v-50f31583]{position:sticky;top:0;margin-left:var(--sl-spacing-2x-large)}}@media (max-width: 1024px){.viur-shop-sidebar-wrap[data-v-50f31583],.viur-shop-order-tabgroup[data-v-50f31583]{grid-column:auto / span 12}}@media (max-width: 900px){.viur-shop-order-tab[data-v-50f31583]::part(base){height:100%;padding:var(--sl-spacing-small) var(--sl-spacing-medium)}.viur-shop-order-step[data-v-50f31583]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.viur-shop-order-step sl-icon[data-v-50f31583]{display:none}.viur-shop-order-tab-check[data-v-50f31583]{font-size:.7em;right:-.35em;top:calc(50% - .35em)}}@media (max-width: 39.95em){.no-mobile[data-v-50f31583]{display:none}}@media (max-width: 600px){.viur-shop-order-tabgroup[data-v-50f31583]::part(active-tab-indicator){display:none}.viur-shop-order-tab[aria-selected=true][data-v-50f31583]{width:100%}.viur-shop-order-tab:not([aria-selected="true"]) .viur-shop-order-status-span[data-v-50f31583]{display:none}}@media print{.no-print[data-v-50f31583]{display:none}}.viur-shop-item-card-card[data-v-dc32dd0b]{width:100%}.viur-shop-item-card-card[data-v-dc32dd0b]::part(header){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b]::part(body){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b]::part(footer){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card:hover .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card:hover .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card:hover .viur-shop-item-card-image[data-v-dc32dd0b]{-webkit-transform:scale(1.02);transform:scale(1.02)}.viur-shop-item-card-card:focus-visible .viur-shop-item-card-image[data-v-dc32dd0b]{-webkit-transform:scale(1.02);transform:scale(1.02)}.viur-shop-item-card-footer[data-v-dc32dd0b]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{-webkit-transition:all ease .3s;transition:all ease .3s;margin-right:var(--sl-spacing-medium);opacity:0}.viur-shop-item-card-add-to-favourites-btn[data-v-dc32dd0b]{margin-left:auto}.viur-shop-item-card-image[data-v-dc32dd0b]{aspect-ratio:1;-o-object-fit:cover;object-fit:cover;-webkit-transition:all ease .3s;transition:all ease .3s}.viur-shop-item-card-headline[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small);-webkit-transition:all ease .3s;transition:all ease .3s}.viur-shop-item-card-subline[data-v-dc32dd0b]{color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small)}.viur-shop-item-card-price[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-left:auto}@media (max-width: 39.95em){.no-mobile[data-v-dc32dd0b]{display:none}}@media print{.no-print[data-v-dc32dd0b]{display:none}}.viur-shop-category-view-list[data-v-532e5cf3]{display:grid;width:100%;grid-gap:var(--sl-spacing-medium);grid-template-columns:repeat(4,1fr)}.viur-shop-loading-wrap[data-v-532e5cf3]{position:absolute;top:0;bottom:0;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.viur-shop-loading-wrap sl-spinner[data-v-532e5cf3]{font-size:3.5em;--track-width: 4px}@media (max-width: 39.95em){.no-mobile[data-v-532e5cf3]{display:none}}@media print{.no-print[data-v-532e5cf3]{display:none}}.btn-wrap[data-v-688e20e0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}.viur-shop-success-headline[data-v-688e20e0]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-success-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-688e20e0]{display:none}}@media print{.no-print[data-v-688e20e0]{display:none}}[data-v-4d14c6fe] .bone-name{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-form-bill-check[data-v-4d14c6fe]{margin:var(--sl-spacing-medium) 0}.viur-shop-form-headline[data-v-4d14c6fe]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-4d14c6fe]{display:none}}@media print{.no-print[data-v-4d14c6fe]{display:none}}[data-v-c4232b7a] .bone-name{-webkit-box-sizing:border-box;box-sizing:border-box}.viur-shop-form-btn-wrap[data-v-c4232b7a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-medium)}.viur-shop-form-cart-select[data-v-c4232b7a],.viur-shop-form-bill-check[data-v-c4232b7a]{margin:var(--sl-spacing-medium) 0}.viur-shop-form-headline[data-v-c4232b7a]{margin:0 0 var(--sl-spacing-x-large) 0;font-size:var(--shop-form-headline-size)}@media (max-width: 39.95em){.no-mobile[data-v-c4232b7a]{display:none}}@media print{.no-print[data-v-c4232b7a]{display:none}}sl-card[selected][data-v-d67cb5c9]::part(base){border:5px solid #39b200}@media (max-width: 39.95em){.no-mobile[data-v-d67cb5c9]{display:none}}@media print{.no-print[data-v-d67cb5c9]{display:none}}.wrap[data-v-720fb199]{display:grid;grid-template-columns:45% minmax(0,1fr)}.viur-shop-item-view-info-wrap[data-v-720fb199]{padding:var(--sl-spacing-x-large)}.viur-shop-item-view-image-wrap[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}sl-carousel[data-v-720fb199]{aspect-ratio:1;background-color:var(--sl-color-neutral-200)}sl-carousel[data-v-720fb199]::part(base){display:-webkit-box;display:-ms-flexbox;display:flex;gap:0}sl-carousel[data-v-720fb199]::part(scroll-container){border-radius:0}sl-carousel[data-v-720fb199]::part(navigation-button){position:absolute;background-color:color-mix(in hsl,var(--sl-color-neutral-0) 85%,transparent);color:var(--app-primary-color);border-radius:0;-webkit-transition:all ease.3s;transition:all ease.3s;opacity:0}sl-carousel[data-v-720fb199]::part(navigation-button--previous){left:0}sl-carousel[data-v-720fb199]::part(navigation-button--next){right:0}sl-carousel[data-v-720fb199]:hover::part(navigation-button){opacity:1}sl-carousel[data-v-720fb199]:focus-visible::part(navigation-button){opacity:1}.viur-shop-item-view-thumbnails[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;margin-top:vaR(--sl-spacing-medium)}.viur-shop-item-view-thumbnails-scroller[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--sl-spacing-small);overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;scroll-padding:var(--sl-spacing-small)}.viur-shop-item-view-thumbnails-scroller[data-v-720fb199]::-webkit-scrollbar{display:none}.viur-shop-item-view-thumbnails-image[data-v-720fb199]{width:64px;height:64px;-o-object-fit:cover;object-fit:cover;opacity:.3;will-change:opacity;-webkit-transition:.25s opacity;transition:.25s opacity;cursor:pointer}.viur-shop-item-view-thumbnails-image.active[data-v-720fb199]{opacity:1}.viur-shop-item-view-headline[data-v-720fb199],.viur-shop-item-view-subline[data-v-720fb199]{margin-bottom:var(--sl-spacing-small)}.viur-shop-item-view-price[data-v-720fb199]{font-size:1.4em;margin-bottom:var(--sl-spacing-small)}.viur-shop-item-view-paragraph[data-v-720fb199]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-item-view-btn-wrap[data-v-720fb199]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.viur-shop-item-view-btn-wrap sl-button[data-v-720fb199]{margin-bottom:var(--sl-spacing-x-small)}.viur-shop-item-view-item-grid[data-v-720fb199]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:var(--sl-spacing-medium)}@media (max-width: 39.95em){.no-mobile[data-v-720fb199]{display:none}}@media print{.no-print[data-v-720fb199]{display:none}} diff --git a/source/dist/viur-shop-components.es.js b/source/dist/viur-shop-components.es.js index a3d538e..d1200d2 100644 --- a/source/dist/viur-shop-components.es.js +++ b/source/dist/viur-shop-components.es.js @@ -1,4 +1,4 @@ -import { C as p, b as n, a as d, O as C, c, d as f, U as l, e as u, V, u as w } from "./main.e8180cb9.mjs"; +import { C as p, b as n, a as d, O as C, c, S as f, U as l, d as u, V, u as w } from "./main.90ff73ac.mjs"; import "vue"; import "pinia"; import "@viur/ckeditor5-build-classic"; diff --git a/source/dist/viur-shop-components.umd.js b/source/dist/viur-shop-components.umd.js index 7a2e88e..0905b47 100644 --- a/source/dist/viur-shop-components.umd.js +++ b/source/dist/viur-shop-components.umd.js @@ -1,23 +1,23 @@ -var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,configurable:!0,writable:!0,value:I}):S[t]=I;var hn=(S,t,I)=>(gl(S,typeof t!="symbol"?t+"":t,I),I);(function(S,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@viur/vue-utils"),require("pinia"),require("@viur/ckeditor5-build-classic"),require("@viur/viur-shop-client")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@viur/vue-utils","pinia","@viur/ckeditor5-build-classic","@viur/viur-shop-client"],t):(S=typeof globalThis<"u"?globalThis:S||self,t(S.ViurShopComponents={},S.Vue,S.VueRouter,S.ViurVueUtils,S.Pinia,S.ViurCkeditor,S.ViurShopClient))})(this,function(S,t,I,pe,fe,pn,fn){var rn,an,ln,cn,dn,un;"use strict";const Xe=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(pn),gn=t.defineComponent({props:{isDragging:Boolean,draggingLineBottom:Boolean,draggingLineTop:Boolean},components:{},emits:["change","delete","handleDragStart","handleDragEnd","handleDragOver","handleDrop"],setup(e,n){const o=t.inject("boneState");return{state:t.reactive({isDraggable:!1}),boneState:o}}}),_l="",$=(e,n)=>{const o=e.__vccOpts||e;for(const[r,s]of n)o[r]=s;return o},et=e=>(t.pushScopeId("data-v-141aaf9b"),e=e(),t.popScopeId(),e),bn=["draggable"],_n=["disabled"],yn=[et(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"grip-vertical"},null,-1))],$n={class:"value"},En=["disabled","title"],kn=[et(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function Sn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["value-line",{"is-dragging":e.isDragging,"dragging-line-bottom":e.draggingLineBottom,"dragging-line-top":e.draggingLineTop}]),draggable:e.state.isDraggable,onDragover:n[2]||(n[2]=a=>e.$emit("handleDragOver",a)),onDrop:n[3]||(n[3]=a=>e.$emit("handleDrop",a)),onDragstart:n[4]||(n[4]=a=>e.$emit("handleDragStart",a)),onDragend:n[5]||(n[5]=a=>e.$emit("handleDragEnd"))},[t.createElementVNode("sl-button",{disabled:e.boneState.readonly,class:"drag-button",onMousedown:n[0]||(n[0]=a=>e.state.isDraggable=!0)},yn,40,_n),t.createElementVNode("div",$n,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),t.createElementVNode("sl-button",{variant:"danger",disabled:e.boneState.readonly,outline:"",title:e.$t("bone.del"),class:"delete-btn",onClick:n[1]||(n[1]=a=>e.$emit("delete"))},kn,8,En)],42,bn)}const wn=$(gn,[["render",Sn],["__scopeId","data-v-141aaf9b"]]),vn=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change","handleClick"],setup(e,n){const o=t.inject("boneState");return{state:t.reactive({debug:!1}),boneState:o}}}),El="",Bn={class:"bone-name"},Cn={key:0},Nn={class:"bone"};function Vn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("label",Bn,[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createCommentVNode("",!0)]),e.state.debug?(t.openBlock(),t.createElementBlock("div",Cn,[t.createElementVNode("div",Nn,t.toDisplayString(e.name),1),t.createElementVNode("pre",null," "+t.toDisplayString(e.boneState)+` - `,1)])):t.createCommentVNode("",!0)],64)}const An=$(vn,[["render",Vn],["__scopeId","data-v-b7149172"]]),In=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),kl="",On=["disabled","value"],Dn=["disabled","value"];function Ln(e,n,o,r,s,i){var a,c;return e.boneState.bonestructure.type==="raw.json"?(t.openBlock(),t.createElementBlock("sl-textarea",{key:0,disabled:(a=e.boneState)==null?void 0:a.readonly,value:JSON.stringify(e.value),onInput:n[0]||(n[0]=(...l)=>e.changeEvent&&e.changeEvent(...l))},null,40,On)):(t.openBlock(),t.createElementBlock("sl-textarea",{key:1,disabled:(c=e.boneState)==null?void 0:c.readonly,value:e.value,onInput:n[1]||(n[1]=(...l)=>e.changeEvent&&e.changeEvent(...l))},null,40,Dn))}const Ae=$(In,[["render",Ln],["__scopeId","data-v-0ebe5f0b"]]),Pn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.reactive({});function r(s){n.emit("change",e.name,s.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:o,changeEvent:r}}}),Sl="",jn=["value"];function Tn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{disabled:"",value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,jn)}const tt=$(Pn,[["render",Tn],["__scopeId","data-v-b45a1311"]]);function Mn(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Rn(e){return typeof e=="function"?e():t.unref(e)}const xn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function ge(e,n,o={}){const{immediate:r=!0}=o,s=t.ref(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function c(){s.value=!1,a()}function l(...d){a(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...d)},Rn(n))}return r&&(s.value=!0,xn&&l()),Mn(c),{isPending:t.readonly(s),start:l,stop:c}}class Un{static objectEmpty(n){return Object.keys(n).length===0&&n.constructor===Object}static getDescr(n,o){try{return n.values.filter(r=>r[0]===o)[0][1]}catch{return"-"}}static unescape(n){return n||(n=""),String(n).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/(/g,"(").replace(/)/g,")").replace(/=/g,"=").replace(/'/g,"'").replace(/(/g,"(").replace(/)/g,")").replace(/=/g,"=")}static formatString(n,o){function r(a){let c=[],l=[],d=/\$\((.*?)\)/g;for(;l;){if(l=d.exec(a),!l){l=!1;continue}c.push(l[1])}return c}let s=r(n),i=[];Array.isArray(o)||(o=[o]);for(let a of o){let c=n;for(let l of s){let d=l.split("."),u=a;for(let m of d)u&&u!=="-"&&m in u&&u[m]?u=u[m]:u="-";u=this.unescape(u),c=c.replace("$("+l+")",u)}i.push(c)}return i.join(", ")}}const zn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>e.value)}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,Utils:Un,boneState:o,changeEvent:i,stringBone:s}}}),wl="",Fn=["disabled","value","required"];function qn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{ref:"stringBone",disabled:e.boneState.readonly,value:e.Utils.unescape(e.value),required:e.boneState.bonestructure.required,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onKeyup:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Fn)}const nt=$(zn,[["render",qn],["__scopeId","data-v-1ccbacc0"]]),Hn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,emailBone:s}}}),vl="",Wn=["disabled","value"];function Kn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{ref:"emailBone",disabled:e.boneState.readonly,type:"email",value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Wn)}const ot=$(Hn,[["render",Kn],["__scopeId","data-v-4328e024"]]),Zn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>{var a;let i=e.value;return o.bonestructure.time?i=(a=e.value)==null?void 0:a.split("+")[0]:e.value&&(i=new Date(e.value).toISOString().substr(0,10)),i}),typeString:t.computed(()=>{let i="datetime-local";return o.bonestructure.time||(i="date"),i})});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Bl="",Gn=["disabled","type","value"];function Jn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{disabled:e.boneState.readonly,type:e.state.typeString,value:e.state.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Gn)}const st=$(Zn,[["render",Jn],["__scopeId","data-v-f1b8af8c"]]),Yn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:null,index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>{let a=e.value;return Array.isArray(e.value)?(o.bonestructure.values instanceof Array?a=a.filter(c=>o.bonestructure.values.map(l=>l[0].toString()).includes(c)):a=a.filter(c=>Object.keys(o.bonestructure.values).map(l=>l.toString()).includes(c)),a.map(c=>c.toString())):e.value?e.value.toString():""})});function s(){if(Array.isArray(o.bonestructure.values))return o.bonestructure.values;{let a=[];for(const[c,l]of Object.entries(o.bonestructure.values))a.push([c,l]);return a}}function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index),W}return t.onMounted(()=>{n.emit("change",e.name,r.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,convertObjToList:s}}}),Cl="",Qn=["disabled","value","multiple"],Xn=["value"];function eo(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-select",{disabled:e.boneState.readonly,value:e.state.value,hoist:"",multiple:e.boneState.bonestructure.multiple,"max-options-visible":"0",clearable:"",onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.convertObjToList(),a=>(t.openBlock(),t.createElementBlock("sl-option",{key:a[0],value:a[0]},t.toDisplayString(a[1]),9,Xn))),128))],40,Qn)}const rt=$(Yn,[["render",eo],["__scopeId","data-v-5a38b97f"]]),to=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>![!1,null,void 0,""].includes(e.value))});function s(i){n.emit("change",e.name,i.target.checked,e.lang,e.index)}return t.onMounted(()=>{let i=e.value;i||(i=!1),n.emit("change",e.name,i,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Nl="",no=["disabled","checked"];function oo(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-switch",{disabled:e.boneState.readonly,checked:e.state.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,no)}const at=$(to,[["render",oo],["__scopeId","data-v-363598c8"]]),so=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value1:"",value2:null,equal:!1,passwordInfo:[],requiredPasswordInfo:[]}),s=t.ref(null);function i(c){r.value1===r.value2?r.equal=!0:r.equal=!1,a(r.value1),r.requiredPasswordInfo.length===0&&r.passwordInfo.length-r.requiredPasswordInfo.length<=o.bonestructure.test_threshold?n.emit("change",e.name,r.value1,e.lang,e.index,!0):n.emit("change",e.name,r.value1,e.lang,e.index,!1)}t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)});function a(c){r.passwordInfo=[],r.requiredPasswordInfo=[];for(const l of o.bonestructure.tests)new RegExp(l[0]).test(c)||(l[2]?r.requiredPasswordInfo.push(l[1]):r.passwordInfo.push(l[1]));r.equal||r.requiredPasswordInfo.push("Die eingegebenen Passw\xF6rter stimmen nicht \xFCberein."),r.value1||r.requiredPasswordInfo.push("Das eingegebene Passwort ist leer.")}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:c}=ge(()=>{s.value.focus()},600);c()}}),t.watch(()=>e.value,(c,l)=>{r.value1=c}),{state:r,boneState:o,changeEvent:i,passwordBone:s}}}),Vl="",ro=["disabled"],ao=["name"],io=["name"],lo={class:"errors"};function co(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.withDirectives(t.createElementVNode("sl-input",{ref:"passwordBone","onUpdate:modelValue":n[0]||(n[0]=a=>e.state.value1=a),disabled:e.boneState.readonly,class:t.normalizeClass({"has-check":!e.boneState.readonly}),type:"password",clearable:"","password-toggle":"true",onSlChange:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onSlClear:n[2]||(n[2]=a=>e.state.value1=""),onKeyup:n[3]||(n[3]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[t.createElementVNode("sl-icon",{slot:"suffix",name:e.state.equal&&e.state.value1.length?"check":"x"},null,8,ao)],42,ro),[[t.vModelText,e.state.value1]]),e.boneState.readonly?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("sl-input",{key:0,"onUpdate:modelValue":n[4]||(n[4]=a=>e.state.value2=a),class:"password-check",type:"password",clearable:"","password-toggle":"true",onSlChange:n[5]||(n[5]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onSlClear:n[6]||(n[6]=a=>e.state.value2=""),onKeyup:n[7]||(n[7]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[t.createElementVNode("sl-icon",{slot:"suffix",name:e.state.equal&&e.state.value1.length?"check":"x"},null,8,io)],544)),[[t.vModelText,e.state.value2]]),t.createElementVNode("ul",lo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.passwordInfo,(a,c)=>(t.openBlock(),t.createElementBlock("li",{key:c},t.toDisplayString(a),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.requiredPasswordInfo,(a,c)=>(t.openBlock(),t.createElementBlock("li",{key:c,class:"requiredInfo"},t.toDisplayString(a),1))),128))])],64)}const it=$(so,[["render",co],["__scopeId","data-v-0ccf18c0"]]),uo=t.defineComponent({props:{name:String,value:null,index:Number,lang:String,readonly:Boolean,params:Object},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>e.value),structure:t.computed(()=>a(o.bonestructure.using)),globalRegistration:!1,formGroups:t.computed(()=>{var d,u;let c={default:{name:"Allgemein",bones:[],groupVisible:!1,groupOpen:!0}};for(const[m,g]of Object.entries(r.structure)){let h="default",b=r.structure[m],p=(d=r.value)==null?void 0:d[m];(u=g==null?void 0:g.params)!=null&&u.category&&(h=g.params.category.toLowerCase()),Object.keys(c).includes(h)?c[h].bones.push({boneName:m,boneStructure:b,boneValue:p}):c[h]={name:g.params.category,bones:[{boneName:m,boneStructure:b,boneValue:p}]},b.visible===!0&&(c[h].groupVisible=!0)}let l={};return Object.keys(c).sort().forEach(function(m){l[m]=c[m]}),l})});function s(c){n.emit("change",c)}t.onMounted(()=>{t.getCurrentInstance().appContext.components.Bone?r.globalRegistration=!0:r.globalRegistration=!1,n.emit("change",e.name,e.value,e.lang,e.index)});function i(c){console.log(c)}function a(c){if(Array.isArray(c)){let l={};for(const d in c)l[c[d][0]]=c[d][1];return l}else return c}return{state:r,boneState:o,getBoneWidget:U,structureToDict:a,changeEvent:s,updateValue:i}}}),Al="",mo={key:0,open:"",variant:"danger"},ho={key:1,class:"form"},po=["summary","open"];function fo(e,n,o,r,s,i){const a=t.resolveComponent("bone");return e.state.globalRegistration?(t.openBlock(),t.createElementBlock("div",ho,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.formGroups,(c,l)=>t.withDirectives((t.openBlock(),t.createElementBlock("sl-details",{key:l,summary:c.name,open:c.groupOpen},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.bones,d=>t.withDirectives((t.openBlock(),t.createBlock(a,{key:d.name,is:e.getBoneWidget(e.state.structure[d.boneName].type),name:d.boneName,structure:e.state.structure,skel:e.state.value,errors:e.boneState.errors,readonly:e.boneState.bonestructure.readonly?!0:void 0,onChangeInternal:e.changeEvent},null,8,["is","name","structure","skel","errors","readonly","onChangeInternal"])),[[t.vShow,e.state.structure[d.boneName].visible]])),128))],8,po)),[[t.vShow,c.groupVisible]])),128))])):(t.openBlock(),t.createElementBlock("sl-alert",mo," In Order to use this Bone register the bone component globally in your main file "))}const lt=$(uo,[["render",fo],["__scopeId","data-v-e6fcfbca"]]),go=t.defineComponent({inheritAttrs:!1,props:{name:String,value:null,index:Number,lang:String},components:{Wrapper_nested:lt},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:{},index:t.computed(()=>e.index),lang:t.computed(()=>e.lang)});function s(i){var c;(c=r.value)!=null&&c[i.name]||(r.value?r.value[i.name]=null:r.value={[i.name]:null});let a=r.value[i.name];i.lang?(a===null&&(a={}),Object.keys(a).includes(i.lang)&&i.index!==null?a[i.lang][i.index]=i.value:a[i.lang]=i.value):i.index!==null?(a===null&&(a=[]),a[i.index]=i.value):a=i.value,r.value[i.name]=a,n.emit("change",e.name,r.value,e.lang,e.index,!0)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Il="";function bo(e,n,o,r,s,i){const a=t.resolveComponent("Wrapper_nested");return t.openBlock(),t.createBlock(a,{value:e.value,name:e.name,index:e.state.index,disabled:e.boneState.bonestructure.readonly,onChange:e.changeEvent},null,8,["value","name","index","disabled","onChange"])}const ct=$(go,[["render",bo],["__scopeId","data-v-84a761ce"]]),_o=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Ol="",yo=["disabled","value"];function $o(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-color-picker",{disabled:e.boneState.readonly,value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,yo)}const dt=$(_o,[["render",$o],["__scopeId","data-v-534b9149"]]),Eo=t.defineComponent({inheritAttrs:!1,emits:{change:null},props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},setup(e,n){const o=t.inject("boneState"),r=t.reactive({minAmount:t.computed(()=>o.bonestructure.minAmount),maxAmount:t.computed(()=>o.bonestructure.maxAmount),precision:t.computed(()=>{if(o.bonestructure.precision>1)return parseFloat(`0.${"0".repeat(o.bonestructure.precision-1)}1`)})}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,numericBone:s}}}),Dl="",ko=["disabled","value","min","max","step"],So={class:"info"},wo={key:0},vo={key:1},Bo={key:2};function Co(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("sl-input",{ref:"numericBone",type:"number",disabled:e.boneState.readonly,value:e.value,min:e.state.minAmount,max:e.state.maxAmount,step:e.state.precision,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onKeyup:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,ko),t.createElementVNode("ul",So,[e.state.minAmount!==-9223372036854776e3&&e.state.minAmount?(t.openBlock(),t.createElementBlock("li",wo,t.toDisplayString(e.$t("bones.numeric.min",{val:e.state.minAmount})),1)):t.createCommentVNode("",!0),e.state.maxAmount!==9223372036854776e3&&e.state.maxAmount?(t.openBlock(),t.createElementBlock("li",vo,t.toDisplayString(e.$t("bones.numeric.max",{val:e.state.maxAmount})),1)):t.createCommentVNode("",!0),e.state.precision?(t.openBlock(),t.createElementBlock("li",Bo,t.toDisplayString(e.$t("bones.numeric.precision",{val:e.boneState.bonestructure.precision})),1)):t.createCommentVNode("",!0)])],64)}const ut=$(Eo,[["render",Co],["__scopeId","data-v-03d5b399"]]);class be extends Error{constructor(n,o,r,s){super(r||o),arguments.length>=4&&s&&Object.assign(this,s),this.statusText=o,this.statusCode=n,this.response=s}}let Ie=null;function x(){return Ie||(Ie=fe.defineStore("requestStore",()=>{const e=t.reactive({sKeys:new Set});function n(){e.sKeys=new Set}return{state:e,$reset:n}})),Ie()}class w{static resetState(){x().$reset(),x().$dispose()}static buildUrl(n){return n&&!(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//"))&&(n=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL?{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL:window.location.origin)+n),n}static post(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,abortController:i=null,headers:a=null,mode:c=null}={}){function l(){if(o instanceof FormData)return o;const u=new FormData;for(const m in o)if(Array.isArray(o[m]))for(let g of o[m])u.append(m,g);else u.append(m,o[m]);return u}let d=se.post(w.buildUrl(n),l(),null,a,i,c);return d.then(function(u){r&&r(u.data)}).catch(function(u){s&&s(u)}),d}static async getBatchSkeys(n=30,o={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"json"){await w.get(`/${o}/skey`,{dataObj:{amount:n}}).then(async r=>{let s=await r.json();Array.isArray(s)||(s=[s]),x().state.sKeys=new Set(s)})}static async securePost(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,abortController:i=null,renderer:a={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"json",headers:c=null,mode:l=null,amount:d=30}={}){let u=null;x().state.sKeys.size===0&&await w.getBatchSkeys(d);const m=[...x().state.sKeys][0];return o instanceof FormData?(o.append("skey",m),x().state.sKeys.delete(m)):(o||(o={}),o.skey=m,x().state.sKeys.delete(m)),u=w.post(n,{dataObj:o,callback:r,abortController:i,headers:c,mode:l}),u}static get(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,cached:i=!1,clearCache:a=!1,abortController:c=null,headers:l=null,mode:d=null,cacheTime:u=1e3*60*60*24*1}={}){let m=se.get(w.buildUrl(n),o,a,l,c,d);return m.then(function(g){r&&r(g.data)}).catch(function(g){s&&s(g)}),m}static list(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){let l=`/${c}/${n}/list`;return i&&(l+=`/${i}`),w.get(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static getStructure(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){n=n.replace(/\//g,".");let l=`/${c}/getStructure/${n}`;return i&&(l+=`/${i}`),w.get(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static view(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/view/${o}`;return a&&(d=`/${l}/${n}/view/${a}/${o}`),w.get(d,{dataObj:r,callback:s,failedCallback:i,abortController:c})}static add(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){let l=`/${c}/${n}/add`;return i&&(l=`/${c}/${n}/add/${i}`),w.securePost(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static edit(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/edit/${o}`;return a&&(d=`/${l}/${n}/edit/${a}/${o}`),w.securePost(d,{dataObj:r,callback:s,failedCallback:i,abortController:c})}static delete(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/delete/${o}`;return a&&(d=`/${l}/${n}/delete/${a}/${o}`),w.securePost(d,{dataObj:r,callback:s,failedCallback:i,abortController:c,amount:1})}static downloadUrlFor(n,o=!1){return n&&"dest"in n?o&&"thumbnail"in n.dest?w.buildUrl(n.dest.thumbnail):"downloadUrl"in n.dest?w.buildUrl(n.dest.downloadUrl):w.buildUrl(null):w.buildUrl(n)}static uploadFile(n,o=void 0){const r={fileName:n.name,mimeType:n.type||"application/octet-stream",size:n.size.toString(),node:o};return new Promise((s,i)=>{w.securePost("/vi/file/getUploadURL",{dataObj:r}).then(async a=>{let c=await a.json();fetch(c.values.uploadUrl,{body:n,method:"POST",mode:"no-cors"}).then(async l=>{const d={key:c.values.uploadKey,skelType:"leaf"};w.securePost("/vi/file/add",{dataObj:d}).then(async u=>{let m=await u.json();m.action==="addSuccess"?s(m.values):i(m)}).catch(u=>{i(u)})}).catch(l=>{i(l)})}).catch(a=>{i(a)})})}}class se{constructor(){hn(this,"withCredentials",!0)}static buildOptions(n,o=null,r=null,s=null,i=null){let a={method:n};return a.credentials="include",a.headers={Accept:"application/json, text/plain, */*"},r&&(a.headers={...a.headers,...r}),o&&(a.body=o),s&&(a.signal=s.signal),i&&(a.mode=i),a}static get(n,o=null,r=null,s=null,i=null,a=null){function c(l,d){let u=new URL(l);if(d&&Object.keys(d).length>0){const m=new URLSearchParams;for(const[g,h]of Object.entries(d))if(Array.isArray(h))for(const b of h)m.append(g,b);else m.append(g,h);u.search=m.toString()}return u.toString()}return fetch(c(n,o),se.buildOptions("GET",null,s,i,a)).then(async l=>{if(l.ok)return l;{const d=`${l.status} ${l.statusText}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.status,l.statusText,d,l))}}).catch(l=>{if(l instanceof TypeError){const u=`503 ${l.message}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(503,l.message,u,l))}if(l instanceof DOMException&&l.name=="AbortError"){const u=`${l.code} ${l.name}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.code,l.name,u,{url:n}))}const d=`${l.statusCode} ${l.statusText}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.statusCode,l.statusText,d,l.response))})}static post(n,o=null,r=null,s=null,i=null,a=null){return fetch(n,se.buildOptions("POST",o,s,i,a))}}const No=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{Wrapper_nested:lt},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("formatString"),s=t.reactive({format:t.computed(()=>o==null?void 0:o.bonestructure.format),skellistdata:null,selection:null});function i(l){let d="";return o.bonestructure.type==="relational.tree.leaf.file"?d="skelType=leaf&":o.bonestructure.type==="relational.tree.node.file"&&(d="skelType=node&"),w.get(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/${o.bonestructure.module}/list?${d}limit=99`).then(async u=>{var g;const m=await u.json();s.skellistdata={};for(let h of m.skellist)s.skellistdata[h.key]=h;return(g=m.skellist)==null?void 0:g.map(h=>({text:r(o.bonestructure.format,{dest:h}),value:h.key,data:h}))})}function a(l){s.selection={dest:s.skellistdata[l.detail.item.value]},n.emit("change",e.name,s.selection,e.lang,e.index)}function c(l){var u;s.selection||(s.selection={}),(u=s.selection.rel)!=null&&u[l.name]||(s.selection.rel?s.selection.rel[l.name]=null:s.selection.rel={[l.name]:null});let d=s.selection.rel[l.name];l.lang?(d===null&&(d={}),Object.keys(d).includes(l.lang)&&l.index!==null?d[l.lang][l.index]=l.value:d[l.lang]=l.value):l.index!==null?(d===null&&(d=[]),d[l.index]=l.value):d=l.value,Object.keys(s.selection).includes("rel")&&s.selection.rel?s.selection.rel[l.name]=d:s.selection.rel={[l.name]:d},Object.keys(s.selection).includes("dest")&&n.emit("change",e.name,s.selection,e.lang,e.index)}return t.onMounted(()=>{s.selection=e.value,n.emit("change",e.name,e.value,e.lang,e.index)}),{state:s,boneState:o,formatString:r,changeEvent:a,changeEventNested:c,getList:i}}}),Ll="",Vo=e=>(t.pushScopeId("data-v-61dd72e0"),e=e(),t.popScopeId(),e),Ao={class:"record"},Io={class:"single-entry"},Oo=["value"],Do=["disabled","source"],Lo=["title"],Po=[Vo(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function jo(e,n,o,r,s,i){var c,l;const a=t.resolveComponent("Wrapper_nested");return t.openBlock(),t.createElementBlock("div",Ao,[t.createElementVNode("div",Io,[e.state.selection?(t.openBlock(),t.createElementBlock("sl-input",{key:0,disabled:!0,value:e.value?e.formatString(e.state.format,e.state.selection):""},null,8,Oo)):(t.openBlock(),t.createElementBlock("sl-combobox",{key:1,disabled:e.boneState.readonly,source:e.getList,hoist:"",onSlItemSelect:n[0]||(n[0]=(...d)=>e.changeEvent&&e.changeEvent(...d))},null,40,Do)),!e.boneState.multiple&&!e.boneState.isEmpty?(t.openBlock(),t.createElementBlock("sl-button",{key:2,variant:"danger",outline:"",title:e.$t("bone.del"),class:"delete-btn square-btn",onClick:n[1]||(n[1]=()=>{e.$emit("change",e.name,"",e.lang,e.index),e.state.selection=null})},Po,8,Lo)):t.createCommentVNode("",!0)]),(c=e.boneState)!=null&&c.bonestructure.using?(t.openBlock(),t.createBlock(a,{key:0,value:(l=e.value)==null?void 0:l.rel,name:e.name,index:e.index,disabled:e.boneState.bonestructure.readonly,onChange:e.changeEventNested},null,8,["value","name","index","disabled","onChange"])):t.createCommentVNode("",!0)])}const mt=$(No,[["render",jo],["__scopeId","data-v-61dd72e0"]]),To=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i,a){n.emit("change",e.name,i,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),jl="",Mo={class:"box"};function Ro(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",Mo,t.toDisplayString(e.value),1)}const xo=$(To,[["render",Ro],["__scopeId","data-v-343aca69"]]),Uo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.ref(),s=t.reactive({loading:!1,droparea:!1,previewopen:!1});t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)});function i(){console.log(w.downloadUrlFor(e.value)),window.open(w.downloadUrlFor(e.value))}function a(){return w.downloadUrlFor(e.value,!1)}function c(u){const m={fileName:u.name,mimeType:u.type||"application/octet-stream",size:u.size.toString()};return new Promise((g,h)=>{w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:m}).then(async b=>{let p=await b.json();fetch(p.values.uploadUrl,{body:u,method:"POST",mode:"no-cors"}).then(async f=>{const _={key:p.values.uploadKey,node:void 0,skelType:"leaf"};w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:_}).then(async y=>{let E=await y.json();E.action==="addSuccess"?g(E.values):h(E)}).catch(y=>{h(y)})}).catch(f=>{h(f)})}).catch(b=>{h(b)})})}async function l(u){s.loading=!0;for(let m of u.target.files){let g=await c(m);r.value.value=null,n.emit("change",e.name,{dest:g,rel:null},e.lang,e.index)}s.loading=!1}async function d(u){s.loading=!0,s.droparea=!1;for(let m of u.dataTransfer.files){let g=await c(m);r.value.value=null,n.emit("change",e.name,{dest:g,rel:null},e.lang,e.index);break}s.loading=!1}return{state:s,boneState:o,downloadFile:i,createBackgroundImage:a,handleUpload:l,uploadinput:r,handleDrop:d}}}),Tl="",_e=e=>(t.pushScopeId("data-v-91086308"),e=e(),t.popScopeId(),e),zo={key:0,class:"loader"},Fo=[_e(()=>t.createElementVNode("sl-spinner",{slot:"suffix"},null,-1))],qo={key:1,class:"droparea"},Ho=["title"],Wo=[_e(()=>t.createElementVNode("sl-icon",{name:"upload"},null,-1))],Ko=["multiple"],Zo=["title"],Go=[_e(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"download"},null,-1))],Jo={class:"box"},Yo=["src"],Qo=["label","open"],Xo=["src"],es={key:1,class:"preview"},ts={key:0,name:"file-earmark"},ns={key:2},os=["title"],ss=[_e(()=>t.createElementVNode("sl-icon",{name:"x-lg"},null,-1))];function rs(e,n,o,r,s,i){var a,c,l,d,u,m,g,h,b,p;return t.openBlock(),t.createElementBlock("div",{class:"file-wrapper",onDragover:n[5]||(n[5]=t.withModifiers(f=>e.state.droparea=!0,["prevent"])),onDragleave:n[6]||(n[6]=f=>e.state.droparea=!1),onDrop:n[7]||(n[7]=t.withModifiers((...f)=>e.handleDrop&&e.handleDrop(...f),["prevent"]))},[e.state.loading?(t.openBlock(),t.createElementBlock("div",zo,Fo)):t.createCommentVNode("",!0),e.state.droparea?(t.openBlock(),t.createElementBlock("div",qo," Dateien hier hinziehen ")):t.createCommentVNode("",!0),!e.boneState.readonly&&(!e.value||e.state.loading)?(t.openBlock(),t.createElementBlock("sl-button",{key:2,title:e.$t("bone.upload"),outline:"",class:"upload-btn",onClick:n[0]||(n[0]=f=>e.uploadinput.click())},Wo,8,Ho)):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:e.boneState.multiple,onChange:n[1]||(n[1]=(...f)=>e.handleUpload&&e.handleUpload(...f))},null,40,Ko),e.value?(t.openBlock(),t.createElementBlock("sl-button",{key:3,title:e.$t("bone.download"),onClick:n[2]||(n[2]=(...f)=>e.downloadFile&&e.downloadFile(...f))},Go,8,Zo)):t.createCommentVNode("",!0),t.createElementVNode("div",Jo,[(c=(a=e.value)==null?void 0:a.dest)!=null&&c.mimetype.includes("image")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"preview has-preview",onClick:n[3]||(n[3]=f=>e.state.previewopen=!e.state.previewopen)},[t.createElementVNode("img",{class:"preview-img",src:e.createBackgroundImage(),alt:""},null,8,Yo),t.createElementVNode("sl-dialog",{label:decodeURIComponent((d=(l=e.value)==null?void 0:l.dest)==null?void 0:d.name),class:"preview-overlay",open:e.state.previewopen},[t.createElementVNode("img",{src:e.createBackgroundImage(),alt:""},null,8,Xo)],8,Qo)])):(t.openBlock(),t.createElementBlock("div",es,[(m=(u=e.value)==null?void 0:u.dest)!=null&&m.name?(t.openBlock(),t.createElementBlock("sl-icon",ts)):t.createCommentVNode("",!0)])),(h=(g=e.value)==null?void 0:g.dest)!=null&&h.name?(t.openBlock(),t.createElementBlock("div",ns,t.toDisplayString(decodeURIComponent((p=(b=e.value)==null?void 0:b.dest)==null?void 0:p.name)),1)):t.createCommentVNode("",!0)]),e.boneState.multiple?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("sl-button",{key:4,variant:"danger",outline:"",title:e.$t("bone.del"),class:"delete-btn",onClick:n[4]||(n[4]=f=>e.$emit("change",e.name,"",e.lang,e.index))},ss,8,os))],32)}const ht=$(Uo,[["render",rs],["__scopeId","data-v-91086308"]]),as=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:"",editorConfig:{},editor:t.computed(()=>Xe.default)});function s(c){n.emit("change",e.name,r.value,e.lang,e.index)}function i(c){r.value=c.target.value,n.emit("change",e.name,r.value,e.lang,e.index)}t.onMounted(()=>{e.value!==null&&(r.value=e.value),n.emit("change",e.name,e.value,e.lang,e.index)});function a(c){c.editing.view.change(l=>{l.setStyle("min-height","250px",c.editing.view.document.getRoot())})}return t.watch(()=>e.value,(c,l)=>{r.value=c}),{state:r,ClassicEditor:Xe.default,boneState:o,changeEvent:s,onReady:a,changeEventTextarea:i}}}),zl="",is=["disabled","value"];function ls(e,n,o,r,s,i){var c,l,d,u;const a=t.resolveComponent("ckeditor");return e.state.editor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[((c=e.boneState.bonestructure)==null?void 0:c.valid_html)||((l=e.boneState.bonestructure)==null?void 0:l.validHtml)?(t.openBlock(),t.createBlock(a,{key:0,modelValue:e.state.value,"onUpdate:modelValue":n[0]||(n[0]=m=>e.state.value=m),editor:e.state.editor,config:e.state.editorConfig,disabled:(d=e.boneState)==null?void 0:d.readonly,onReady:e.onReady,onInput:e.changeEvent},null,8,["modelValue","editor","config","disabled","onReady","onInput"])):(t.openBlock(),t.createElementBlock("sl-textarea",{key:1,disabled:(u=e.boneState)==null?void 0:u.readonly,value:e.value,onInput:n[1]||(n[1]=(...m)=>e.changeEventTextarea&&e.changeEventTextarea(...m))},null,40,is))],64)):t.createCommentVNode("",!0)}const pt=$(as,[["render",ls]]),cs=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({valueLat:null,valueLng:null});function s(){n.emit("change",e.name,[r.valueLat,r.valueLng],e.lang,e.index)}return t.onMounted(()=>{try{r.valueLat=e.value[0],r.valueLng=e.value[1]}catch{}n.emit("change",e.name,[r.valueLat,r.valueLng],e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Fl="",ds=["name","min","max","disabled"],us=["name","min","max","disabled"];function ms(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.withDirectives(t.createElementVNode("sl-input",{"onUpdate:modelValue":n[0]||(n[0]=a=>e.state.valueLat=a),index:"lat",type:"number",name:e.name,min:e.boneState.bonestructure.boundslat[0],max:e.boneState.bonestructure.boundslat[1],disabled:e.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a)),placeholder:"Lat"},null,40,ds),[[t.vModelText,e.state.valueLat]]),t.withDirectives(t.createElementVNode("sl-input",{"onUpdate:modelValue":n[2]||(n[2]=a=>e.state.valueLng=a),index:"lng",type:"number",name:e.name,min:e.boneState.bonestructure.boundslat[0],max:e.boneState.bonestructure.boundslat[1],disabled:e.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:n[3]||(n[3]=(...a)=>e.changeEvent&&e.changeEvent(...a)),placeholder:"Long"},null,40,us),[[t.vModelText,e.state.valueLng]])],64)}const ft=$(cs,[["render",ms],["__scopeId","data-v-7bc31020"]]),hs=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({counter:0,debounce:null}),s=t.inject("addMultipleEntry"),i=t.inject("removeMultipleEntries");function a(){r.counter+=1;let l=200;r.counter>1&&(l=500),r.debounce&&clearTimeout(r.debounce),r.debounce=setTimeout(()=>{for(let d=r.counter;d--;)s(e.lang);r.counter=0},l)}function c(){let l=200;r.debounce&&clearTimeout(r.debounce),r.debounce=setTimeout(()=>{i(e.lang)},l)}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:r,boneState:o,handleAdd:a,handleRemove:c,removeMultipleEntries:i}}}),ql="",gt=e=>(t.pushScopeId("data-v-63e75dee"),e=e(),t.popScopeId(),e),ps={class:"actionbar"},fs=["title"],gs=[gt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],bs=["title"],_s=gt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function ys(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",ps,[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.handleRemove(e.lang))},gs,8,fs)):t.createCommentVNode("",!0),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:1,variant:"success",title:e.$t("bone.add"),outline:"",class:"add-btn",onClick:n[1]||(n[1]=a=>e.handleAdd(e.lang))},[_s,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.add"))+" ",1),e.state.counter>1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("("+t.toDisplayString(e.state.counter)+")",1)],64)):t.createCommentVNode("",!0)],8,bs)):t.createCommentVNode("",!0)])}const $s=$(hs,[["render",ys],["__scopeId","data-v-63e75dee"]]),Es=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("addMultipleEntry"),s=t.inject("formatString"),i=null,a=t.reactive({skels:{},hasUsing:t.computed(()=>o==null?void 0:o.bonestructure.using)});function c(l){let d="";return o.bonestructure.type==="relational.tree.leaf.file"?d="skelType=leaf&":o.bonestructure.type==="relational.tree.node.file"&&(d="skelType=node&"),w.get(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/${o.bonestructure.module}/list?${d}limit=99`).then(async u=>{var g;const m=await u.json();return a.skels=m.skellist.reduce((h,b)=>(h[b.key]=b,h),{}),(g=m.skellist)==null?void 0:g.map(h=>({text:s(o.bonestructure.format,{dest:h}),value:h.key,data:h}))})}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:a,boneState:o,addMultipleEntry:r,removeMultipleEntries:i,getList:c}}}),Wl="",bt=e=>(t.pushScopeId("data-v-eeea51c6"),e=e(),t.popScopeId(),e),ks={class:"actionbar"},Ss=["title"],ws=[bt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],vs=["source"],Bs=["title"],Cs=bt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function Ns(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",ks,[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.openSelector())},ws,8,Ss)):t.createCommentVNode("",!0),t.createElementVNode("sl-combobox",{source:e.getList,hoist:"",onSlItemSelect:n[1]||(n[1]=a=>{var c;return e.addMultipleEntry(e.lang,{dest:(c=e.state.skels)==null?void 0:c[a.detail.item.value],rel:e.state.hasUsing?void 0:null})})},null,40,vs),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:1,variant:"success",title:e.$t("bone.add"),outline:"",class:"add-btn",onClick:n[2]||(n[2]=a=>e.addMultipleEntry(e.lang))},[Cs,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.list")),1)],8,Bs)):t.createCommentVNode("",!0)])}const Vs=$(Es,[["render",Ns],["__scopeId","data-v-eeea51c6"]]),As=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("addMultipleEntry");t.inject("formatString");const s=null,i=t.ref(),a=t.reactive({skels:{},uploadinput:null,loading:!1,droparea:!1,hasUsing:t.computed(()=>o==null?void 0:o.bonestructure.using)});function c(u){const m={fileName:u.name,mimeType:u.type||"application/octet-stream",size:u.size.toString()};return new Promise((g,h)=>{w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:m}).then(async b=>{let p=await b.json();fetch(p.values.uploadUrl,{body:u,method:"POST",mode:"no-cors"}).then(async f=>{const _={key:p.values.uploadKey,node:void 0,skelType:"leaf"};w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:_}).then(async y=>{let E=await y.json();E.action==="addSuccess"?g(E.values):h(E)}).catch(y=>{h(y)})}).catch(f=>{h(f)})}).catch(b=>{h(b)})})}async function l(u){a.loading=!0;for(let m of u.target.files){let g=await c(m);i.value.value=null;let h=null;a.hasUsing&&(h=void 0),r(e.lang,{dest:g,rel:h})}a.loading=!1}async function d(u){a.loading=!0,a.droparea=!1;for(let m of u.dataTransfer.files){let g=await c(m);i.value.value=null;let h=null;a.hasUsing&&(h=void 0),r(e.lang,{dest:g,rel:h})}a.loading=!1}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:a,boneState:o,addMultipleEntry:r,removeMultipleEntries:s,uploadFile:c,uploadinput:i,handleUpload:l,handleDrop:d}}}),Zl="",Oe=e=>(t.pushScopeId("data-v-9bac9f8a"),e=e(),t.popScopeId(),e),Is=["title"],Os=[Oe(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],Ds={key:1,class:"droparea"},Ls=["multiple"],Ps=["title"],js=[Oe(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1))],Ts=["title"],Ms=Oe(()=>t.createElementVNode("sl-icon",{name:"upload"},null,-1)),Rs={key:0,slot:"suffix"};function xs(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",{class:"actionbar",onDragover:n[4]||(n[4]=t.withModifiers(a=>e.state.droparea=!0,["prevent"])),onDragleave:n[5]||(n[5]=a=>e.state.droparea=!1),onDrop:n[6]||(n[6]=t.withModifiers((...a)=>e.handleDrop&&e.handleDrop(...a),["prevent"]))},[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.openSelector())},Os,8,Is)):t.createCommentVNode("",!0),e.state.droparea?(t.openBlock(),t.createElementBlock("div",Ds," Dateien hier hinziehen ")):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:e.boneState.multiple,onChange:n[1]||(n[1]=(...a)=>e.handleUpload&&e.handleUpload(...a))},null,40,Ls),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:2,outline:"",title:e.$t("bone.list"),class:"add-btn",onClick:n[2]||(n[2]=a=>e.addMultipleEntry(e.lang))},js,8,Ps)):t.createCommentVNode("",!0),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:3,variant:"success",outline:"",title:e.$t("bone.upload"),class:"upload-btn",onClick:n[3]||(n[3]=a=>e.uploadinput.click())},[Ms,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.upload"))+" ",1),e.state.loading?(t.openBlock(),t.createElementBlock("sl-spinner",Rs)):t.createCommentVNode("",!0)],8,Ts)):t.createCommentVNode("",!0)],32)}const Us=$(As,[["render",xs],["__scopeId","data-v-9bac9f8a"]]),De=fe.defineStore("boneStore",()=>{const e=t.reactive({additionalBones:t.shallowRef({}),defaultBones:t.shallowRef({rawBone:Ae,keyBone:tt,stringBone:nt,emailBone:ot,dateBone:st,booleanBone:at,selectBone:rt,passwordBone:it,recordBone:ct,numericBone:ut,colorBone:dt,relationalBone:mt,jsonBone:xo,fileBone:ht,textBone:pt,spatialBone:ft}),actionbars:t.shallowRef({"relational.tree.leaf.file.file":Us,"relational.":Vs}),multibones:t.shallowRef(["select","select."])});function n(a,c){e.additionalBones[a]=c}function o(){let a=e.defaultBones;for(const[c,l]of Object.entries(e.additionalBones))a.add(l);return a}function r(a){if(Object.keys(e.additionalBones).includes(a))return e.additionalBones[a];{let c=a.split("."),l=Object.entries(e.additionalBones).filter(d=>d[0].startsWith(c[0]+"."));if(l.length>0){l.sort((d,u)=>u.length-d.length);for(let d of l)if(a.startsWith(d[0]))return e.additionalBones[d[0]]}}return a==="date"?st:a==="key"?tt:a==="str.email"?ot:a==="str"||a.startsWith("str.")?nt:a==="select"||a.startsWith("select.")?rt:a==="bool"?at:a==="password"?it:a==="record"?ct:a==="numeric"||a.startsWith("numeric.")?ut:a==="relational.tree.leaf.file.file"?ht:a==="relational"||a.startsWith("relational.")?mt:a==="color"?dt:a==="text"?pt:a==="spatial"?ft:Ae}function s(a,c){e.actionbars[a]=c}function i(a){if(Object.keys(e.actionbars).includes(a))return e.actionbars[a];{let c=a.split("."),l=Object.entries(e.actionbars).filter(d=>d[0].startsWith(c[0]+"."));if(l.length>0){l.sort((d,u)=>u.length-d.length);for(let d of l)if(a.startsWith(d[0]))return e.actionbars[d[0]]}}return $s}return{state:e,addBoneWidget:n,getBoneWidget:r,importWidgets:o,addBoneActionbar:s,getBoneActionbar:i}});function zs(e){return De().getBoneActionbar(e)}function U(e){return De().getBoneWidget(e)}function Fs(e){const n=De();if(n.state.multibones.includes(e))return!0;{let o=e.split("."),r=Object.entries(n.state.multibones).filter(s=>s[1].startsWith(o[0]+"."));if(r.length>0){r.sort((s,i)=>i.length-s.length);for(let s of r)if(e.startsWith(s[1]))return!0}}return!1}t.defineComponent({inheritAttrs:!1,emits:["change","change-internal","handleClick"],components:{wrapperMultiple:wn,BoneLabel:An},props:{is:{type:Object,default:Ae},name:{type:String,required:!0},languages:Array,multiple:Boolean,readonly:Boolean,required:Boolean,params:Object,value:[Object,String,Number,Boolean,Array],structure:{type:Object,required:!0},skel:{type:null,required:!0},errors:Object,showLabelInfo:{type:Boolean,required:!1,default:!1},autofocus:{type:Boolean,required:!1,default:!1}},setup(e,n){const o=t.reactive({bonestructure:t.computed(()=>{var p;return(p=e.structure)==null?void 0:p[e.name]}),bonevalue:null,dragStartIndex:{lang:null,index:Number},dropIndex:{lang:null,index:Number},draggingLineBottom:{lang:String,index:Number},draggingLineTop:{lang:String,index:Number},isDragging:{lang:String,index:Number},multilanguage:t.computed(()=>{var p;return((p=o.languages)==null?void 0:p.length)&&o.languages.length>0}),languages:t.computed(()=>e.languages?e.languages:o.bonestructure&&Object.keys(o.bonestructure).includes("languages")?o.bonestructure.languages:[]),readonly:t.computed(()=>e.readonly?e.readonly:o.bonestructure&&Object.keys(o.bonestructure).includes("readonly")?o.bonestructure.readonly:!1),required:t.computed(()=>e.required?e.required:o.bonestructure&&Object.keys(o.bonestructure).includes("required")?o.bonestructure.required:!1),hasTooltip:t.computed(()=>!!(o.bonestructure&&Object.keys(o.bonestructure.params).includes("tooltip"))),multiple:t.computed(()=>e.multiple?e.multiple:o.bonestructure&&Object.keys(o.bonestructure).includes("multiple")?o.bonestructure.multiple:!1),params:t.computed(()=>e.params?e.params:o.bonestructure&&Object.keys(o.bonestructure).includes("params")?o.bonestructure.params:{}),actionbar:t.computed(()=>{var p;return zs((p=o.bonestructure)==null?void 0:p.type)}),isEmpty:t.computed(()=>{function p(f){for(const[_,y]of Object.entries(f))if(y!==null){if(Array.isArray(y)&&y.length>0)return!1;if(!Array.isArray(y))return!1}return!0}return o.readonly?!1:!o.bonevalue||Array.isArray(o.bonevalue)&&o.bonevalue.length===0?!0:o.bonevalue===Object(o.bonevalue)&&!Array.isArray(o.bonevalue)?p(o.bonevalue):!1}),errors:[],errorMessages:t.computed(()=>{let p=[];for(let f of e.errors)f.fieldPath[0]===e.name&&(f.severity>2||o.required&&(f.severity===2||f.severity===0))&&p.push(f.errorMessage);return p})});t.provide("boneState",o);function r(p,f,_){a(f,p,"isDragging"),a(f,p,"dragStartIndex")}function s(p,f,_){_.preventDefault();const y=_.clientY-_.target.getBoundingClientRect().top,E=_.target.closest(".value-line");yC.length-1&&(o.dropIndex.index-=1)}function i(p,f,_){let y=null;o.dragStartIndex.index!==o.dropIndex.index&&(f?(y=o.bonevalue[f].splice(o.dragStartIndex.index,1)[0],o.bonevalue[f].splice(o.dropIndex.index,0,y)):(y=o.bonevalue.splice(o.dragStartIndex.index,1)[0],o.bonevalue.splice(o.dropIndex.index,0,y)),console.dir(o.bonevalue[0]),n.emit("change",{name:e.name,value:d(),lang:f,index:p})),c("draggingLineBottom","draggingLineTop","isDragging","dragStartIndex","dropIndex")}function a(p,f,_){o[_].lang=p||null,o[_].index=f}function c(...p){p.forEach(f=>{o[f]={lang:null,index:Number}})}function l(p,f,_=null,y=null,E){if(f===void 0||(_?(o.bonevalue||(o.bonevalue={}),Object.keys(o.bonevalue).includes(_)&&y!==null?o.bonevalue[_][y]=f:o.bonevalue[_]=f):y!==null?o.bonevalue[y]=f:E===!1||(o.bonevalue=f),o.readonly))return!1;let C={name:p,value:d(),lang:_,index:y},B={name:p,value:f,lang:_,index:y};E!=null&&(C.pwMatch=E,B.pwMatch=E),n.emit("change",C),n.emit("change-internal",B)}function d(){function p(_,y=null){let E=[];if(Array.isArray(_))if(o.bonestructure.type=="spatial"&&_.length===2&&!Array.isArray(_[0]))E.push({[y+".lat"]:_[0]}),E.push({[y+".lng"]:_[1]});else if(Object.values(_).filter(C=>C===Object(C)).length>0)for(const[C,B]of _.entries())B.rel!==null?E.push(p(B,y+"."+C)):E.push(p(B,y));else for(const[C,B]of _.entries())E.push(p(B,y));else if(_===Object(_))for(const[C,B]of Object.entries(_))y?y.endsWith(".dest")||y.endsWith(".rel")?y.endsWith(".dest")&&C==="key"?(/\.[0-9]*\.dest$/.test(y)?E.push(p(B,y.replace(/\.[0-9]*\.dest/,""))):E.push(p(B,y.replace(/\.dest/,""))),E.push(p(B,y.replace(/\.dest/,"")+"."+C))):y.endsWith(".rel")&&E.push(p(B,y.replace(/\.rel/,"")+"."+C)):E.push(p(B,y+"."+C)):E.push(p(B,C));else _==null&&(_=""),y!==null&&E.push({[y]:_});return E}let f=p(o.bonevalue,e.name);return f=f.flat(10),f}function u(p=null,f=""){p?Object.keys(o.bonevalue).includes(p)?o.bonevalue[p].push(f):o.bonevalue[p]=[f]:o.bonevalue?o.bonevalue.push(f):o.bonevalue=[f]}t.provide("addMultipleEntry",u);function m(p,f=null){var _;f?(_=o.bonevalue)==null||_[f].splice(p,1):o.bonevalue.splice(p,1),n.emit("change",{name:e.name,value:d(),lang:f,index:p}),n.emit("change-internal",{name:e.name,value:d(),lang:f,index:p})}function g(p=null){var f;p?(f=o.bonevalue)==null||f[p].splice(0):o.bonevalue.splice(0),n.emit("change",{name:e.name,value:d(),lang:p}),n.emit("change-internal",{name:e.name,value:d(),lang:p})}t.provide("removeMultipleEntries",g);function h(p=null,f=""){u(p,f)}function b(p,f){function _(B){let R=[],P=[],oe=/\$\((.*?)\)/g;for(;P;){if(P=oe.exec(B),!P){P=!1;continue}R.push(P[1])}return R}function y(B,R){let P=B.split("."),oe=B.split("."),A=R;for(let J of P)if(oe.shift(),A&&A!=="-"&&Object.keys(A).includes(J)&&A[J])if(Array.isArray(A[J])){let mn=[];for(let pl of A[J])mn.push(y(oe.join("."),pl));A=mn.join(", ")}else A=A[J];else(!A||typeof A[J]=="object"&&!A[J])&&(A="-");return A}let E=_(p),C=[];Array.isArray(f)||(f=[f]);for(let B of f){let R=p;for(let P of E){let oe=y(P,B);R=R.replace("$("+P+")",oe)}C.push(R)}return C.join(", ")}return t.provide("formatString",b),t.onBeforeMount(()=>{var p;e.value?o.bonevalue=e.value:o.bonevalue=(p=e.skel)==null?void 0:p[e.name]}),t.watch(()=>e.skel,(p,f)=>{var _;o.bonevalue=(_=e.skel)==null?void 0:_[e.name]}),t.watch(()=>{var p;return(p=e.errors)==null?void 0:p[e.name]},(p,f)=>{o.errors=e.errors}),{state:o,updateValue:l,addMultipleEntry:u,removeMultipleEntry:m,removeMultipleEntries:g,BoneHasMultipleHandling:Fs,multipleBonePressEnter:h,handleDragStart:r,handleDragOver:s,handleDrop:i,setStateProperties:a,resetStateProperties:c}}});const Yl="",Ql="",Le={props:{size:{type:String,default:"2"},active:{type:Boolean,default:!0},logo:{default:"logo-cube.svg",type:String},color:{default:"var(--sl-color-primary-500)",type:String}},setup(e,n){const o=t.reactive({trackWidth:t.computed(()=>`${e.size/30}rem`),outerSize:t.computed(()=>`calc(${e.size}rem + ${o.trackWidth})`),spinnerSize:t.computed(()=>`${e.size}rem`),logoSize:t.computed(()=>`calc(${e.size}rem - ${o.trackWidth} * 10)`),shadow:t.computed(()=>`0px 0px ${e.size/6}rem 0 color-mix(in hsl, var(--sl-color-neutral-1000), 80% transparent)`)});return{state:o}}},_t=()=>{t.useCssVars(e=>({"93747d92":e.state.outerSize,"284424e5":e.state.shadow,"6485ca5e":e.state.logoSize,"5d833915":e.state.spinnerSize,d5b3feca:e.color,"2050b700":e.state.trackWidth}))},yt=Le.setup;Le.setup=yt?(e,n)=>(_t(),yt(e,n)):_t;const qs=e=>(t.pushScopeId("data-v-46c45785"),e=e(),t.popScopeId(),e),Hs={key:0,class:"loading"},Ws=qs(()=>t.createElementVNode("sl-spinner",{class:"loader"},null,-1)),Ks={class:"logo"},Zs=["src"];function Gs(e,n,o,r,s,i){return t.openBlock(),t.createBlock(t.Transition,null,{default:t.withCtx(()=>[o.active?(t.openBlock(),t.createElementBlock("div",Hs,[Ws,t.createElementVNode("div",Ks,[t.createElementVNode("sl-icon",{src:o.logo},null,8,Zs)])])):t.createCommentVNode("",!0)]),_:1})}const Js=$(Le,[["render",Gs],["__scopeId","data-v-46c45785"]]),D=fe.defineStore("cartstore",()=>{const e=new fn.ViURShopClient({host_url:window.location.origin==="http://localhost:8081"?"http://localhost:8080":window.location.origin}),n=t.reactive({basketRootNode:{},whishlistRootNodes:[],children:{},structure:{address:{},cart:{}},paymentProviders:{},billingAddress:{},shippingAddress:{}});async function o(){await s()}async function r(h){return await e.cart_list({cart_key:h})}async function s(){(await e.cart_list()).forEach(b=>{b.is_root_node&&(b.cart_type==="basket"?n.basketRootNode=b:n.whishlistRootNodes.push(b))})}async function i(h,b){let p=await e.article_add({article_key:h,parent_cart_key:b});console.log("addToCart",p)}async function a(h,b){let p=await e.article_view({article_key:h,parent_cart_key:b});console.log("getArticleView",p)}async function c(h,b){let p=await e.article_remove({article_key:h,parent_cart_key:b});console.log("remove Resp",p)}async function l(h,b,p){let f=await e.article_update({article_key:h,parent_cart_key:b,quantity:p,quantity_mode:"replace"});console.log("update Resp",f)}async function d(){const h=await e.address_structure();n.structure.address=h.addSkel}async function u(){const h=await e.address_list();for(const b of h)b.address_type==="billing"&&(n.billingAddress=b),b.address_type==="shipping"&&(n.shippingAddress=b)}async function m(h){await e.discount_add({code:h})}async function g(){const h=await e.payment_providers_list();console.log(h),n.paymentProviders=h}return{state:n,addToCart:i,getArticleView:a,removeItem:c,updateItem:l,init:o,getAddressStructure:d,getChildren:r,addDiscount:m,payment_providers_list:g,getAddress:u}}),Ys={__name:"CartNode",props:{node:{type:Object,required:!0}},setup(e){return t.reactive({}),(n,o)=>(t.openBlock(),t.createElementBlock("pre",null,t.toDisplayString(e.node.name),1))}},Xl="",ye=e=>(t.pushScopeId("data-v-d313b580"),e=e(),t.popScopeId(),e),Qs={horizontal:"",class:"viur-shop-cart-leaf"},Xs=["src"],er={class:"viur-shop-cart-leaf-headline headline"},tr={class:"viur-shop-cart-leaf-artno"},nr=["innerHTML"],or={class:"viur-shop-cart-leaf-quantity"},sr={class:"viur-shop-cart-leaf-unitprice"},rr=ye(()=>t.createElementVNode("div",{class:"viur-shop-cart-leaf-label"},"St\xFCckpreis",-1)),ar=["value"],ir={class:"viur-shop-cart-leaf-actions"},lr=ye(()=>t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-cart-leaf-add-to-favourites-btn",variant:"primary",title:"Add to favourites"},[t.createElementVNode("sl-icon",{name:"heart",slot:"prefix"})],-1)),cr=[ye(()=>t.createElementVNode("sl-icon",{name:"trash",slot:"prefix"},null,-1))],dr={class:"viur-shop-cart-leaf-price"},ur=ye(()=>t.createElementVNode("div",{class:"viur-shop-cart-leaf-label"},"Gesamtpreis",-1)),mr=["value"],hr=$({__name:"CartLeaf",props:{leaf:{type:Object,required:!0},node:{type:Object,required:!0}},emits:["updateItem","removeItem"],setup(e,{emit:n}){const o=e,r=n,s=t.reactive({leaf:{}});function i(l){return l!==void 0?pe.Request.downloadUrlFor(l):"https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80"}function a(l,d,u,m){r("updateItem",{item:l,articleKey:d,node:u,quantity:m})}function c(l,d,u){r("removeItem",{item:l,articleKey:d,node:u})}return t.onBeforeMount(()=>{s.leaf=o.leaf}),(l,d)=>(t.openBlock(),t.createElementBlock("sl-card",Qs,[t.createElementVNode("img",{class:"viur-shop-cart-leaf-image",slot:"image",src:i(s.leaf.shop_image?s.leaf.shop_image:void 0)},null,8,Xs),t.createElementVNode("h4",er,t.toDisplayString(s.leaf.shop_name),1),t.createElementVNode("h5",tr,t.toDisplayString(s.leaf.shop_art_no_or_gtin),1),t.createElementVNode("div",{class:"viur-shop-cart-leaf-description",innerHTML:s.leaf.shop_description},null,8,nr),t.createElementVNode("div",or,[t.withDirectives(t.createElementVNode("sl-input",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--quantity",type:"number",label:"Anzahl",placeholder:"Number",min:"0","onUpdate:modelValue":d[0]||(d[0]=u=>s.leaf.quantity=u),onInput:d[1]||(d[1]=u=>a(s.leaf,s.leaf.article.dest.key,e.node,s.leaf.quantity))},null,544),[[t.vModelText,s.leaf.quantity]])]),t.createElementVNode("div",sr,[rr,t.createElementVNode("sl-format-number",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice",lang:"de",type:"currency",currency:"EUR",value:e.leaf.price.retail},null,8,ar)]),t.createElementVNode("div",ir,[lr,t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-cart-leaf-delete-btn",variant:"primary",title:"Remove from cart",onClick:d[2]||(d[2]=u=>c(s.leaf,s.leaf.article.dest.key,e.node))},cr)]),t.createElementVNode("div",dr,[ur,t.createElementVNode("sl-format-number",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--price",lang:"de",type:"currency",currency:"EUR",value:e.leaf.price.retail*e.leaf.quantity},null,8,mr)])]))}},[["__scopeId","data-v-d313b580"]]),pr=t.createElementVNode("sl-icon",{slot:"icon",name:"info-circle"},null,-1),fr={key:0},gr={key:0},br={key:1},_r={__name:"Discount",setup(e){const n=D(),o=t.ref(null),r=t.ref(null),s=t.reactive({errorMessage:""});function i(){r.value.hide();const a=o.value.value;if(!a){r.value.show(),s.errorMessage="Es wurde kein Rabattcode eingegeben";return}n.addDiscount(a)}return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[t.createElementVNode("sl-input",{label:"Rabatt Code",ref_key:"codeInput",ref:o},null,512),t.createElementVNode("sl-button",{onClick:i},"Einl\xF6sen"),t.createElementVNode("sl-alert",{ref_key:"errorMessageContainer",ref:r},[pr,t.createTextVNode(" "+t.toDisplayString(s.errorMessage),1)],512)]),t.createElementVNode("div",null,[t.unref(n).state.basketRootNode.discount?(t.openBlock(),t.createElementBlock("div",fr,[t.unref(n).state.basketRootNode.discount.dest.discount_type==="absolute"?(t.openBlock(),t.createElementBlock("span",gr," Sie haben einen Rabattcode im Wert von "+t.toDisplayString(t.unref(n).state.basketRootNode.discount.dest.absolute)+" \u20AC eingegeben ",1)):t.createCommentVNode("",!0),t.unref(n).state.basketRootNode.discount.dest.discount_type==="percentage"?(t.openBlock(),t.createElementBlock("span",br," Sie haben einen Rabattcode im Wert von "+t.toDisplayString(t.unref(n).state.basketRootNode.discount.dest.percentage)+" % eingegeben ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],64))}},nc="",L=e=>(t.pushScopeId("data-v-84507113"),e=e(),t.popScopeId(),e),yr={key:0},$r=L(()=>t.createElementVNode("p",null,"M\xF6chten Sie den Artikel wirklich aus dem Warenkorb entfernen?",-1)),Er={class:"footer-wrap",slot:"footer"},kr={class:"viur-shop-cart-node"},Sr=L(()=>t.createElementVNode("div",{id:"order_sidebar"},null,-1)),wr=L(()=>t.createElementVNode("h2",{class:"viur-shop-cart-sidebar-headline headline"}," Zusammenfassung ",-1)),vr=L(()=>t.createElementVNode("br",null,null,-1)),Br={class:"viur-shop-cart-sidebar-info-line"},Cr=L(()=>t.createElementVNode("span",null,"Zwischensumme",-1)),Nr={class:"viur-shop-cart-sidebar-info-line"},Vr=L(()=>t.createElementVNode("span",null,"Rabatt",-1)),Ar=L(()=>t.createElementVNode("div",{class:"viur-shop-cart-sidebar-info-line"},[t.createElementVNode("span",null,"Versandkosten"),t.createTextVNode(" 0 \u20AC ")],-1)),Ir=L(()=>t.createElementVNode("div",{class:"viur-shop-cart-sidebar-info-line total"},[t.createElementVNode("span",null,"Gesamt:"),t.createTextVNode(" \u20AC ")],-1)),Or=L(()=>t.createElementVNode("div",{class:"viur-shop-cart-sidebar-btn-wrap"},[t.createElementVNode("sl-button",{variant:"primary",size:"medium"}," Jetzt Bestellen "),t.createElementVNode("sl-button",{size:"medium",variant:"info"},[t.createElementVNode("sl-icon",{name:"paypal",slot:"prefix"}),t.createTextVNode(" Paypal ")])],-1)),Dr=L(()=>t.createElementVNode("div",{class:"viur-shop-cart-mobile-footer"},[t.createElementVNode("sl-button",{variant:"primary",size:"medium"}," Jetzt Bestellen")],-1)),$e=$({__name:"CartView",props:{mode:{type:String,default:"basket"},cartKey:{type:String,required:!0},sidebar:{type:Boolean,default:!0}},setup(e){const n=e,o=D(),r=t.ref(null),s=t.reactive({itemsIsInit:t.computed(()=>!0),images:{},currentItem:{},currentNode:{},nodes:[],leaves:{}});t.computed(()=>n.mode==="basket"?o.state.basketRootNode.key:n.cartKey);async function i(){await o.updateItem(s.currentItem.article.dest.key,s.currentNode.key,0),await d(),r.value.hide()}async function a(m){console.log("updateItem :",m),m.quantity===0?(r.value.show(),s.currentItem=m.item,s.currentNode=m.node):(await o.updateItem(m.articleKey,m.node.key,m.quantity),await o.init())}function c(m){console.log("removeItem :",m),r.value.show(),s.currentItem=m.item,s.currentNode=m.node}async function l(){s.leaves[s.currentNode.key].forEach(m=>{m.key===s.currentItem.key&&(m.quantity=1)}),s.currentItem={},s.currentNode={}}async function d(){s.nodes=[],s.leaves={},await o.init(),await u()}async function u(m=n.cartKey){console.log("debug getChildren parentKey from comp: ",m);const g=await o.getChildren(m);console.log("getChildren children: ",g),g.forEach(async h=>{h.skel_type==="node"?(s.nodes.push(h),await u(h.key)):(Object.keys(s.leaves).includes(m)||(s.leaves[m]=[]),s.leaves[m].push(h))})}return t.onBeforeMount(async()=>{await o.init(),await u(),n.mode==="basket"&&s.nodes.push(o.state.basketRootNode),console.log("state.nodes test",s.nodes),console.log("state.leaves",s.leaves)}),(m,g)=>e.cartKey.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("sl-dialog",{ref_key:"confirm",ref:r,onSlHide:l},[$r,t.createElementVNode("div",Er,[t.createElementVNode("sl-button",{variant:"danger",onClick:g[0]||(g[0]=h=>r.value.hide()),size:"medium"}," Abbrechen "),t.createElementVNode("sl-button",{variant:"success",onClick:i,size:"medium"}," Aus Warenkorb entfernen ")])],544),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.nodes,h=>(t.openBlock(),t.createElementBlock("div",kr,[Object.keys(s.leaves).includes(h.key)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(Ys,{node:h},null,8,["node"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.leaves[h.key],b=>(t.openBlock(),t.createBlock(hr,{key:b.key,leaf:b,node:h,onRemoveItem:c,onUpdateItem:a},null,8,["leaf","node"]))),128))],64)):t.createCommentVNode("",!0)]))),256)),Sr,e.sidebar?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#order_sidebar"},[e.sidebar?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[wr,vr,t.createElementVNode("div",Br,[Cr,t.createTextVNode(" "+t.toDisplayString(e.mode==="basket"?t.unref(o).state.basketRootNode.total:t.unref(o).state.whishlistRootNodes[e.cartKey].total)+" \u20AC ",1)]),t.createElementVNode("div",Nr,[Vr,t.createTextVNode(" "+t.toDisplayString(t.unref(o).state.basketRootNode.total-t.unref(o).state.basketRootNode.total_discount_price)+" \u20AC ",1)]),Ar,Ir,Or],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(_r),Dr],64)):(t.openBlock(),t.createElementBlock("sl-spinner",yr))}},[["__scopeId","data-v-84507113"]]),Lr=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"})),sc="",Y=e=>(t.pushScopeId("data-v-4082d346"),e=e(),t.popScopeId(),e),Pr={key:1,class:"list"},jr=Y(()=>t.createElementVNode("h2",{class:"viur-shop-cart-headline headline"},"Bestellung pr\xFCfen",-1)),Tr=Y(()=>t.createElementVNode("div",{class:"viur-shop-cart-address-wrap"},[t.createElementVNode("div",{class:"viur-shop-cart-address"},[t.createElementVNode("div",{class:"viur-shop-cart-address-headline"},[t.createTextVNode(" Versandadresse "),t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})])]),t.createTextVNode(" Roland Brose"),t.createElementVNode("br"),t.createTextVNode(" Speicherstra\xDFe 33"),t.createElementVNode("br"),t.createTextVNode(" 44147 Dortmund, DE"),t.createElementVNode("br"),t.createElementVNode("br"),t.createTextVNode(" rb@mausbrand.de"),t.createElementVNode("br"),t.createTextVNode(" 0231 21 34 68 90 ")]),t.createElementVNode("div",{class:"viur-shop-cart-address"},[t.createElementVNode("div",{class:"viur-shop-cart-address-headline"},[t.createTextVNode(" Rechnungsadresse "),t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})])]),t.createTextVNode(" Roland Brose"),t.createElementVNode("br"),t.createTextVNode(" Speicherstra\xDFe 33"),t.createElementVNode("br"),t.createTextVNode(" 44147 Dortmund, DE"),t.createElementVNode("br"),t.createElementVNode("br"),t.createTextVNode(" rb@mausbrand.de"),t.createElementVNode("br"),t.createTextVNode(" 0231 21 34 68 90 ")])],-1)),Mr=Y(()=>t.createElementVNode("div",{class:"viur-shop-cart-payment"},[t.createElementVNode("div",{class:"viur-shop-cart-payment-method"},[t.createElementVNode("span",null,"Zahlungsmethode:"),t.createTextVNode(" Paypal ")]),t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})])],-1)),Rr=Y(()=>t.createElementVNode("h2",{class:"viur-shop-cart-headline headline"},"Warenkorb",-1)),xr=Y(()=>t.createElementVNode("h2",{class:"viur-shop-cart-sidebar-headline headline"},"Jetzt Bestellen",-1)),Ur=Y(()=>t.createElementVNode("br",null,null,-1)),zr={class:"viur-shop-cart-sidebar-btn-wrap"},Fr=["variant","disabled"],Ee=$({__name:"ConfirmView",setup(e){const n=D(),o=t.reactive({cartIsInit:t.computed(()=>!0),itemsIsInit:t.computed(()=>{var s;return!!((s=n.state)!=null&&s.carts[n.state.basket].items)}),images:{},showOrderButton:!1});function r(s){s.target.checked&&(o.showOrderButton=!0),s.target.checked||(o.showOrderButton=!1)}return t.onBeforeMount(async()=>{await n.init()}),(s,i)=>o.cartIsInit?(t.openBlock(),t.createElementBlock("div",Pr,[jr,Tr,Mr,Rr,(t.openBlock(),t.createBlock(t.Teleport,{to:"#order_sidebar"},[xr,Ur,t.createElementVNode("sl-checkbox",{onSlChange:r}," Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ",32),t.createElementVNode("div",zr,[t.createElementVNode("sl-button",{variant:o.showOrderButton?"info":"disabled",size:"small",disabled:!o.showOrderButton}," Zahlungspflichtig bestellen ",8,Fr)])]))])):(t.openBlock(),t.createBlock(Js,{key:0}))}},[["__scopeId","data-v-4082d346"]]),qr=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),ac="",Hr=e=>(t.pushScopeId("data-v-50f31583"),e=e(),t.popScopeId(),e),Wr={class:"bind viur-shop-wrap"},Kr=["panel","disabled"],Zr={class:"viur-shop-order-step"},Gr=["name","library"],Jr={class:"viur-shop-order-status-text"},Yr={class:"viur-shop-order-status-span"},Qr={key:0,name:"chevron-right",class:"viur-shop-order-tab-check"},Xr=["name"],ea=["onClick"],ta=["onClick"],na=Hr(()=>t.createElementVNode("div",{class:"viur-shop-sidebar-wrap"},[t.createElementVNode("div",{class:"viur-shop-sidebar",id:"order_sidebar"})],-1)),Pe=$({__name:"OrderView",props:{tabs:{type:Object,required:!0}},emits:["tabChange"],setup(e,{emit:n}){const o=e,r=n,s=t.reactive({tabNames:t.computed(()=>a(o.tabs)),isFirstTab:u=>u===0}),i=t.ref(null);function a(u){let m=[],g=[];for(const h in u)u[h].position?m.push([h,u[h].position]):m.push([h,0]);return m.sort((h,b)=>h[1]-b[1]),m.forEach(h=>{g.push(h[0])}),g}function c(u){r("tabChange",u)}function l(u){i.value.show(u)}function d(u){i.value.show(u)}return(u,m)=>(t.openBlock(),t.createElementBlock("div",Wr,[t.createElementVNode("sl-tab-group",{class:"viur-shop-order-tabgroup",noScrollControls:"",onSlTabShow:c,ref_key:"tabGroup",ref:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.tabNames,(g,h)=>{var b;return t.openBlock(),t.createElementBlock("sl-tab",{class:"viur-shop-order-tab",slot:"nav",panel:g,key:g,disabled:e.tabs[g].disabled},[t.createElementVNode("div",Zr,[(b=e.tabs[g].icon)!=null&&b.name?(t.openBlock(),t.createElementBlock("sl-icon",{key:0,class:"viur-shop-order-step-icon",name:e.tabs[g].icon.name,library:e.tabs[g].icon.library},null,8,Gr)):t.createCommentVNode("",!0),t.createElementVNode("div",Jr,[t.createTextVNode(t.toDisplayString(h+1)+". ",1),t.createElementVNode("span",Yr,t.toDisplayString(e.tabs[g].displayName),1)])]),h(t.openBlock(),t.createElementBlock("sl-tab-panel",{class:"viur-shop-order-tab-panel",name:g,key:g},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tabs[g].component),t.mergeProps({ref_for:!0},e.tabs[g].props?e.tabs[g].props:""),null,16)),h!==s.tabNames.length-1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["viur-shop-form-footer",{"flex-end":s.isFirstTab(h)}])},[t.withDirectives(t.createElementVNode("sl-button",{type:"submit",onClick:b=>l(s.tabNames[h-1])}," Zur\xFCck ",8,ea),[[t.vShow,h!==0]]),t.createElementVNode("sl-button",{type:"submit",variant:"primary",onClick:b=>d(s.tabNames[h+1])}," Weiter ",8,ta)],2)):t.createCommentVNode("",!0)],8,Xr))),128))],544),na]))}},[["__scopeId","data-v-50f31583"]]),lc="",je=e=>(t.pushScopeId("data-v-dc32dd0b"),e=e(),t.popScopeId(),e),oa={class:"viur-shop-item-card-card"},sa=["src","alt"],ra={class:"viur-shop-item-card-headline"},aa=je(()=>t.createElementVNode("h4",{class:"viur-shop-item-card-subline"},"B 21 x H 6,5 x T 19 cm",-1)),ia={class:"viur-shop-item-card-price"},la={class:"viur-shop-item-card-footer",slot:"footer"},ca=je(()=>t.createElementVNode("sl-icon",{name:"bag-plus",slot:"prefix"},null,-1)),da=je(()=>t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-item-card-add-to-favourites-btn",variant:"primary",title:"Add to favourites"},[t.createElementVNode("sl-icon",{name:"heart",slot:"prefix"})],-1)),$t=$({__name:"ItemCard",props:{item:{type:Object,required:!0}},setup(e){const n=D();function o(r){let s="https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";return r.dk_artikel.dest.image?pe.Request.downloadUrlFor(r.dk_artikel.dest.image):s}return(r,s)=>(t.openBlock(),t.createElementBlock("sl-card",oa,[t.createElementVNode("img",{slot:"image",src:o(e.item),alt:e.item.shop_name,loading:"lazy",class:"viur-shop-item-card-image"},null,8,sa),t.createElementVNode("h3",ra,t.toDisplayString(e.item.shop_name),1),aa,t.createElementVNode("div",ia,t.toDisplayString(e.item.shop_price_retail)+" \u20AC",1),t.createElementVNode("div",la,[t.createElementVNode("sl-button",{size:"small",class:"viur-shop-item-card-add-to-cart-btn",variant:"primary",title:"Add to cart",onClick:s[0]||(s[0]=t.withModifiers(i=>t.unref(n).addToCart(e.item.key,t.unref(n).state.basket),["stop"]))},[ca,t.createTextVNode(" In den Warenkorb ")]),da])]))}},[["__scopeId","data-v-dc32dd0b"]]),dc="",ua=e=>(t.pushScopeId("data-v-532e5cf3"),e=e(),t.popScopeId(),e),ma={key:0,class:"viur-shop-loading-wrap"},ha=[ua(()=>t.createElementVNode("sl-spinner",null,null,-1))],pa={key:1,class:"bind"},fa={class:"page-header"},ga={class:"viur-shop-category-view-list"},ba=["loading","disabled"],_a=Object.freeze(Object.defineProperty({__proto__:null,default:$({__name:"CategoryView",props:{skellist:{type:Array},filter:{type:Boolean,default:!0},pageHeader:{type:String,default:"Artikel Liste"},listHandler:{type:Object,required:!0}},setup(e){const n=e,o=I.useRoute(),r=D(),s=t.reactive({skellist:[],loading:!0,currentCursor:"",isLastItem:!1,itemCount:99,itemType:t.computed(()=>o.params.identifier)}),i=n.listHandler;async function a(){s.loading=!0,await i.next(),s.skellist.length{await r.init(),await i.fetch(!0),s.skellist=i.state.skellist,s.loading=!1}),(c,l)=>s.loading?(t.openBlock(),t.createElementBlock("div",ma,ha)):(t.openBlock(),t.createElementBlock("div",pa,[t.createElementVNode("div",fa,[t.createElementVNode("h1",null,t.toDisplayString(e.pageHeader),1)]),e.filter?t.renderSlot(c.$slots,"filter",{key:0},()=>[t.createTextVNode(" text-transform text-transform TEST ")],!0):t.createCommentVNode("",!0),t.createElementVNode("div",ga,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.skellist,d=>(t.openBlock(),t.createBlock($t,{key:d.shop_name,item:d},null,8,["item"]))),128))]),t.createElementVNode("sl-button",{onClick:a,loading:s.loading,disabled:s.isLastItem,class:"viur-shop-category-view-more-button"}," Mehr anzeigen ",8,ba)]))}},[["__scopeId","data-v-532e5cf3"]])},Symbol.toStringTag,{value:"Module"})),pc="",ke=e=>(t.pushScopeId("data-v-688e20e0"),e=e(),t.popScopeId(),e),ya={class:"bind"},$a=ke(()=>t.createElementVNode("h1",{class:"viur-shop-success-headline headline"},"Vielen Dank f\xFCr Ihre Bestellung",-1)),Ea=ke(()=>t.createElementVNode("p",{class:"paragraph"},[t.createElementVNode("strong",null,"Ihre Bestellnummer:"),t.createTextVNode(" 123345670 ")],-1)),ka={class:"paragraph"},Sa=ke(()=>t.createElementVNode("br",null,null,-1)),wa={class:"btn-wrap"},va=ke(()=>t.createElementVNode("sl-button",{size:"medium"}," Zur Startseite ",-1)),Et=$({__name:"OrderComplete",props:{redirectUrl:{type:Object,required:!0}},setup(e){function n(){}return(o,r)=>(t.openBlock(),t.createElementBlock("div",ya,[$a,Ea,t.createElementVNode("p",ka,[t.createTextVNode(" Wir haben Ihre Bestellung erhalten und werden diese schenllstm\xF6glich bearbeiten."),Sa,t.createTextVNode(" Sie erhalten in wenigen Minuten eine Best\xE4tigung per E-Mail. "),t.createElementVNode("div",wa,[va,t.createElementVNode("sl-button",{variant:"primary",onClick:r[0]||(r[0]=s=>void 0),size:"medium"}," Weiter Einkaufen ")])])]))}},[["__scopeId","data-v-688e20e0"]]),gc="",Te=e=>(t.pushScopeId("data-v-4d14c6fe"),e=e(),t.popScopeId(),e),Ba=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),Ca={class:"viur-shop-form-wrap"},Na=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),Va={class:"viur-shop-form-wrap"},Aa={key:0},Ia=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),Oa={class:"viur-shop-form-wrap"},kt=$({__name:"UserInformation",props:{mode:{type:String,default:"form"},conditions:{type:Function}},setup(e){const n=D(),o=t.reactive({formValues:{},requiredFieldsFilled:t.computed(()=>{if(o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("billing.city")&&Object.keys(o.formValues).includes("billing.street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname");if(!o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname")}),isCustomAdress:!1,addSkel:null,errors:{}});function r(a){o.isCustomAdress=!a.target.checked}function s(a,c){for(const[l,d]of Object.entries(c.value[0]))o.formValues[l]=d}function i(a){let c={};return Array.isArray(a)?(a.forEach(l=>{let d=l[0],u=l[1];c[d]=u}),console.log("output",c),c):a}return t.watch(o.formValues,a=>{Object.entries(a).forEach(([c,l])=>{l===""&&delete o.formValues[c]})}),t.onBeforeMount(async()=>{await n.getAddressStructure(),await n.getAddress(),o.addSkel=i(n.state.structure.address),o.formValues=n.state.shippingAddress}),(a,c)=>{const l=t.resolveComponent("bone");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[Ba,t.createElementVNode("div",Ca,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Info"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Info"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m),class:"viur-shop-form-grid-w-2"},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),t.createElementVNode("div",null,[Na,t.createElementVNode("div",Va,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),o.isCustomAdress?(t.openBlock(),t.createElementBlock("div",Aa,[Ia,t.createElementVNode("div",Oa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("sl-checkbox",{onSlChange:r,checked:"",class:"viur-shop-form-bill-check"}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-4d14c6fe"]]),_c="",z=e=>(t.pushScopeId("data-v-c4232b7a"),e=e(),t.popScopeId(),e),Da=z(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),La={class:"viur-shop-form-wrap"},Pa=z(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),ja=["onSlChange","onSlClear","label"],Ta=["value"],Ma={key:0},Ra=z(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),xa={class:"viur-shop-form-wrap"},Ua=[z(()=>t.createElementVNode("sl-icon",{name:"x-lg",slot:"prefix"},null,-1))],za=z(()=>t.createElementVNode("sl-icon",{name:"plus-lg",slot:"prefix"},null,-1)),Fa=z(()=>t.createElementVNode("sl-icon",{slot:"icon",name:"exclamation-triangle"},null,-1)),qa=z(()=>t.createElementVNode("br",null,null,-1)),Ha=$({__name:"UserInfoMulti",props:{mode:{type:String,default:"form"}},setup(e){const n=D(),o=t.reactive({formValues:{},requiredFieldsFilled:t.computed(()=>{if(o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("billing.city")&&Object.keys(o.formValues).includes("billing.street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname");if(!o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname")}),isCustomAdress:!1,shippingAdressAmount:1,maxShippingAdress:t.computed(()=>Object.keys(n.state.carts).length+2),amountAlert:{title:"",msg:""},items:null,addSkel:null,errors:{},selectedItem:{},isInit:t.computed(()=>!!n.state.carts[n.state.basket])}),r=t.ref(null),s=t.ref(null);function i(g){g.target.checked&&(o.isCustomAdress=!1),g.target.checked||(o.isCustomAdress=!0)}function a(){if(o.shippingAdressAmount===o.maxShippingAdress){o.amountAlert.title="Zu viele Lieferadressen",o.amountAlert.msg=`Sie k\xF6nnen nur maximal: "${o.maxShippingAdress}" Lieferadressen verwenden.`,s.value.show();return}o.shippingAdressAmount+=1}function c(g,h){for(const[b,p]of Object.entries(h.value[0]))o.formValues[b]=p}function l(){if(o.shippingAdressAmount===1){o.amountAlert.title="Zu wenig Lieferadressen",o.amountAlert.msg="Mindestens eine Lieferadresse muss angegeben werden.",s.value.show();return}o.shippingAdressAmount-=1}function d(g,h){if(console.log(g.target.value),!g.target.value.length){u();return}o.selectedItem[h]=g.target.value,o.isItemSelected=!0}function u(g,h){console.log("clearing..."),delete o.selectedItem[h],o.isItemSelected=!1}function m(g){let h={};return Array.isArray(g)?(g.forEach(b=>{let p=b[0],f=b[1];h[p]=f}),h):g}return t.watch(o.formValues,g=>{Object.entries(g).forEach(([h,b])=>{b===""&&delete o.formValues[h]})}),t.onBeforeMount(async()=>{await n.getAddressStructure(),o.addSkel=m(n.state.structure.address)}),(g,h)=>{const b=t.resolveComponent("bone");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[Da,t.createElementVNode("div",La,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(p,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[p.visible&&p.params.group==="Customer Info"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+f)},[p.visible&&p.params.group==="Customer Info"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(p.type),name:f,structure:m(o.addSkel),errors:o.errors[f]?o.errors[f]:[],skel:o.formValues,onChange:_=>c(f,_)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),Pa,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.shippingAdressAmount,p=>(t.openBlock(),t.createElementBlock("div",{class:"viur-shop-form-wrap",key:p},[t.createElementVNode("sl-select",{clearable:"",ref_for:!0,ref_key:"itemSelection",ref:r,onSlChange:f=>d(f,p),onSlClear:f=>u(f,p),label:o.selectedItem[p]?t.unref(n).state.carts[o.selectedItem[p]].info.name:"Warenkorb f\xFCr Adresse w\xE4hlen.",class:"viur-shop-form-cart-select"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).state.carts,(f,_)=>(t.openBlock(),t.createElementBlock("sl-option",{value:_},t.toDisplayString(f.info.name),9,Ta))),256))],40,ja),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(f,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[f.visible&&f.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+_)},[f.visible&&f.params.group==="Customer Address"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(f.type),name:_,structure:m(o.addSkel),errors:o.errors[_]?o.errors[_]:[],skel:o.formValues,onChange:y=>c(_,y)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))]))),128)),o.isCustomAdress?(t.openBlock(),t.createElementBlock("div",Ma,[Ra,t.createElementVNode("div",xa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(p,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[p.visible&&p.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+f)},[p.visible&&p.params.group==="Customer Address"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(p.type),name:f,structure:m(o.addSkel),errors:o.errors[f]?o.errors[f]:[],skel:o.formValues,onChange:_=>c(f,_)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"viur-shop-form-btn-wrap"},[t.createElementVNode("sl-button",{size:"medium",onClick:l,title:"Lieferadresse entfernen"},Ua),t.createElementVNode("sl-button",{size:"medium",variant:"primary",onClick:a},[za,t.createTextVNode(" Lieferadresse hinzuf\xFCgen ")])]),t.createElementVNode("sl-alert",{variant:"warning",duration:"2000",ref_key:"shippingWarning",ref:s,closable:""},[Fa,t.createElementVNode("strong",null,t.toDisplayString(o.amountAlert.title),1),qa,t.createTextVNode(" "+t.toDisplayString(o.amountAlert.msg),1)],512),t.createElementVNode("sl-checkbox",{onSlChange:i,checked:"",class:"viur-shop-form-bill-check"}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-c4232b7a"]]),Me={__name:"ExampleUsage",setup(e){const n=D(),o=t.computed(()=>n.state.basketRootNode.key?n.state.basketRootNode.key:""),r=t.reactive({rootNode:{},tabs:{cart:{component:t.shallowRef($e),props:{sidebar:!0,mode:"basket",cartKey:o},displayName:"Warenkorb",icon:{name:"bag"},position:2,disabled:!1,atShow:null,atHide:null},confirm:{component:t.shallowRef(Ee),props:{},displayName:"Bestellung pr\xFCfen",icon:{name:"clipboard-check"},position:5,disabled:!1,atShow:null,atHide:null},orderComplete:{component:t.shallowRef(Et),props:{},displayName:"Bestellung Abgeschlossen",icon:{name:"bag-check"},position:6,disabled:!0,atShow:null,atHide:null},userInfo:{component:t.shallowRef(kt),props:{},displayName:"Daten Eingeben",icon:{name:"card-list"},position:3,disabled:!1,atShow:null,atHide:null},userInfoMulti:{component:t.shallowRef(Ha),props:{},displayName:"Daten Eingeben (Multi)",icon:{name:"card-list"},position:4,disabled:!1,atShow:null,atHide:null}}});function s(i){(i==null?void 0:i.detail.name)==="confirm"&&(r.tabs.orderComplete.disabled=!1)}return t.onBeforeMount(async()=>{await n.init(),await n.getAddressStructure(),console.log("debug init exampleusage :",n.state.basketRootNode)}),(i,a)=>(t.openBlock(),t.createBlock(Pe,{tabs:r.tabs,onTabChange:s},null,8,["tabs"]))}},Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"})),Ka={__name:"SelectPaymentProvider",setup(e){const n=D();return t.onBeforeMount(async()=>{await n.payment_providers_list(),console.log(n.state.paymentProviders)}),(o,r)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).state.paymentProviders,(s,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("sl-card",null,t.toDisplayString(i)+" "+t.toDisplayString(s),1)]))),256))}},Za=t.defineComponent({props:{},components:{},setup(e,n){const o=I.useRoute();return{state:t.reactive({}),route:o}}}),Ga={class:"home"};function Ja(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",Ga,"View "+t.toDisplayString(e.route.path)+" is missing.",1)}const Ya=[{path:"/:pathMatch(.*)*",name:"view_missing",component:$(Za,[["render",Ja]])},{path:"/shop/category/:identifier",name:"CategoryView",component:()=>Promise.resolve().then(()=>_a)},{path:"/shop/item/:item",name:"itemView",component:()=>Promise.resolve().then(()=>hl)},{path:"/shop/cart/view",name:"CartView",component:()=>Promise.resolve().then(()=>Lr)},{path:"/shop/order/",name:"OrderView",component:()=>Promise.resolve().then(()=>Wa)},{path:"/shop/order/confirm",name:"ConfirmView",component:()=>Promise.resolve().then(()=>qr)}];function Qa(e,n=!1){let o=[];return n?o=e:o=e.concat(Ya),I.createRouter({history:I.createWebHashHistory("/"),routes:o})}const Xa=fe.createPinia(),ei={install(e){e.component("CartView",$e),e.component("ExampleUsage",Me),e.component("ConfirmView",Ee),e.component("OrderView",Pe),e.use(Xa)}};function St(e,n,o){const r=s=>Object.is(s,-0)?0:s;return eo?r(o):r(e)}var ti=class{constructor(e,n){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},e.addController(this),this.host=e,this.tickCallback=n}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(e){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},e)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};/** +var wl=Object.defineProperty;var vl=(S,t,I)=>t in S?wl(S,t,{enumerable:!0,configurable:!0,writable:!0,value:I}):S[t]=I;var pn=(S,t,I)=>(vl(S,typeof t!="symbol"?t+"":t,I),I);(function(S,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@viur/vue-utils"),require("pinia"),require("@viur/ckeditor5-build-classic"),require("@viur/viur-shop-client")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@viur/vue-utils","pinia","@viur/ckeditor5-build-classic","@viur/viur-shop-client"],t):(S=typeof globalThis<"u"?globalThis:S||self,t(S.ViurShopComponents={},S.Vue,S.VueRouter,S.ViurVueUtils,S.Pinia,S.ViurCkeditor,S.ViurShopClient))})(this,function(S,t,I,pe,fe,fn,gn){var an,ln,cn,dn,un,mn;"use strict";const Xe=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(fn),bn=t.defineComponent({props:{isDragging:Boolean,draggingLineBottom:Boolean,draggingLineTop:Boolean},components:{},emits:["change","delete","handleDragStart","handleDragEnd","handleDragOver","handleDrop"],setup(e,n){const o=t.inject("boneState");return{state:t.reactive({isDraggable:!1}),boneState:o}}}),Cl="",$=(e,n)=>{const o=e.__vccOpts||e;for(const[r,s]of n)o[r]=s;return o},et=e=>(t.pushScopeId("data-v-141aaf9b"),e=e(),t.popScopeId(),e),_n=["draggable"],yn=["disabled"],$n=[et(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"grip-vertical"},null,-1))],En={class:"value"},kn=["disabled","title"],Sn=[et(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function wn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["value-line",{"is-dragging":e.isDragging,"dragging-line-bottom":e.draggingLineBottom,"dragging-line-top":e.draggingLineTop}]),draggable:e.state.isDraggable,onDragover:n[2]||(n[2]=a=>e.$emit("handleDragOver",a)),onDrop:n[3]||(n[3]=a=>e.$emit("handleDrop",a)),onDragstart:n[4]||(n[4]=a=>e.$emit("handleDragStart",a)),onDragend:n[5]||(n[5]=a=>e.$emit("handleDragEnd"))},[t.createElementVNode("sl-button",{disabled:e.boneState.readonly,class:"drag-button",onMousedown:n[0]||(n[0]=a=>e.state.isDraggable=!0)},$n,40,yn),t.createElementVNode("div",En,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),t.createElementVNode("sl-button",{variant:"danger",disabled:e.boneState.readonly,outline:"",title:e.$t("bone.del"),class:"delete-btn",onClick:n[1]||(n[1]=a=>e.$emit("delete"))},Sn,8,kn)],42,_n)}const vn=$(bn,[["render",wn],["__scopeId","data-v-141aaf9b"]]),Bn=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change","handleClick"],setup(e,n){const o=t.inject("boneState");return{state:t.reactive({debug:!1}),boneState:o}}}),Al="",Cn={class:"bone-name"},Nn={key:0},Vn={class:"bone"};function An(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("label",Cn,[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createCommentVNode("",!0)]),e.state.debug?(t.openBlock(),t.createElementBlock("div",Nn,[t.createElementVNode("div",Vn,t.toDisplayString(e.name),1),t.createElementVNode("pre",null," "+t.toDisplayString(e.boneState)+` + `,1)])):t.createCommentVNode("",!0)],64)}const In=$(Bn,[["render",An],["__scopeId","data-v-b7149172"]]),On=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Il="",Pn=["disabled","value"],Dn=["disabled","value"];function Ln(e,n,o,r,s,i){var a,c;return e.boneState.bonestructure.type==="raw.json"?(t.openBlock(),t.createElementBlock("sl-textarea",{key:0,disabled:(a=e.boneState)==null?void 0:a.readonly,value:JSON.stringify(e.value),onInput:n[0]||(n[0]=(...l)=>e.changeEvent&&e.changeEvent(...l))},null,40,Pn)):(t.openBlock(),t.createElementBlock("sl-textarea",{key:1,disabled:(c=e.boneState)==null?void 0:c.readonly,value:e.value,onInput:n[1]||(n[1]=(...l)=>e.changeEvent&&e.changeEvent(...l))},null,40,Dn))}const Ae=$(On,[["render",Ln],["__scopeId","data-v-0ebe5f0b"]]),jn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.reactive({});function r(s){n.emit("change",e.name,s.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:o,changeEvent:r}}}),Ol="",Tn=["value"];function Mn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{disabled:"",value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Tn)}const tt=$(jn,[["render",Mn],["__scopeId","data-v-b45a1311"]]);function Rn(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function xn(e){return typeof e=="function"?e():t.unref(e)}const Un=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function ge(e,n,o={}){const{immediate:r=!0}=o,s=t.ref(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function c(){s.value=!1,a()}function l(...d){a(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...d)},xn(n))}return r&&(s.value=!0,Un&&l()),Rn(c),{isPending:t.readonly(s),start:l,stop:c}}class zn{static objectEmpty(n){return Object.keys(n).length===0&&n.constructor===Object}static getDescr(n,o){try{return n.values.filter(r=>r[0]===o)[0][1]}catch{return"-"}}static unescape(n){return n||(n=""),String(n).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/(/g,"(").replace(/)/g,")").replace(/=/g,"=").replace(/'/g,"'").replace(/(/g,"(").replace(/)/g,")").replace(/=/g,"=")}static formatString(n,o){function r(a){let c=[],l=[],d=/\$\((.*?)\)/g;for(;l;){if(l=d.exec(a),!l){l=!1;continue}c.push(l[1])}return c}let s=r(n),i=[];Array.isArray(o)||(o=[o]);for(let a of o){let c=n;for(let l of s){let d=l.split("."),u=a;for(let m of d)u&&u!=="-"&&m in u&&u[m]?u=u[m]:u="-";u=this.unescape(u),c=c.replace("$("+l+")",u)}i.push(c)}return i.join(", ")}}const Fn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>e.value)}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,Utils:zn,boneState:o,changeEvent:i,stringBone:s}}}),Pl="",qn=["disabled","value","required"];function Hn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{ref:"stringBone",disabled:e.boneState.readonly,value:e.Utils.unescape(e.value),required:e.boneState.bonestructure.required,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onKeyup:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,qn)}const nt=$(Fn,[["render",Hn],["__scopeId","data-v-1ccbacc0"]]),Wn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,emailBone:s}}}),Dl="",Kn=["disabled","value"];function Zn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{ref:"emailBone",disabled:e.boneState.readonly,type:"email",value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Kn)}const ot=$(Wn,[["render",Zn],["__scopeId","data-v-4328e024"]]),Gn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>{var a;let i=e.value;return o.bonestructure.time?i=(a=e.value)==null?void 0:a.split("+")[0]:e.value&&(i=new Date(e.value).toISOString().substr(0,10)),i}),typeString:t.computed(()=>{let i="datetime-local";return o.bonestructure.time||(i="date"),i})});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Ll="",Jn=["disabled","type","value"];function Qn(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-input",{disabled:e.boneState.readonly,type:e.state.typeString,value:e.state.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,Jn)}const st=$(Gn,[["render",Qn],["__scopeId","data-v-f1b8af8c"]]),Yn=t.defineComponent({inheritAttrs:!1,props:{name:String,value:null,index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>{let a=e.value;return Array.isArray(e.value)?(o.bonestructure.values instanceof Array?a=a.filter(c=>o.bonestructure.values.map(l=>l[0].toString()).includes(c)):a=a.filter(c=>Object.keys(o.bonestructure.values).map(l=>l.toString()).includes(c)),a.map(c=>c.toString())):e.value?e.value.toString():""})});function s(){if(Array.isArray(o.bonestructure.values))return o.bonestructure.values;{let a=[];for(const[c,l]of Object.entries(o.bonestructure.values))a.push([c,l]);return a}}function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index),W}return t.onMounted(()=>{n.emit("change",e.name,r.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,convertObjToList:s}}}),jl="",Xn=["disabled","value","multiple"],eo=["value"];function to(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-select",{disabled:e.boneState.readonly,value:e.state.value,hoist:"",multiple:e.boneState.bonestructure.multiple,"max-options-visible":"0",clearable:"",onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.convertObjToList(),a=>(t.openBlock(),t.createElementBlock("sl-option",{key:a[0],value:a[0]},t.toDisplayString(a[1]),9,eo))),128))],40,Xn)}const rt=$(Yn,[["render",to],["__scopeId","data-v-5a38b97f"]]),no=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>![!1,null,void 0,""].includes(e.value))});function s(i){n.emit("change",e.name,i.target.checked,e.lang,e.index)}return t.onMounted(()=>{let i=e.value;i||(i=!1),n.emit("change",e.name,i,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Tl="",oo=["disabled","checked"];function so(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-switch",{disabled:e.boneState.readonly,checked:e.state.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,oo)}const at=$(no,[["render",so],["__scopeId","data-v-363598c8"]]),ro=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value1:"",value2:null,equal:!1,passwordInfo:[],requiredPasswordInfo:[]}),s=t.ref(null);function i(c){r.value1===r.value2?r.equal=!0:r.equal=!1,a(r.value1),r.requiredPasswordInfo.length===0&&r.passwordInfo.length-r.requiredPasswordInfo.length<=o.bonestructure.test_threshold?n.emit("change",e.name,r.value1,e.lang,e.index,!0):n.emit("change",e.name,r.value1,e.lang,e.index,!1)}t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)});function a(c){r.passwordInfo=[],r.requiredPasswordInfo=[];for(const l of o.bonestructure.tests)new RegExp(l[0]).test(c)||(l[2]?r.requiredPasswordInfo.push(l[1]):r.passwordInfo.push(l[1]));r.equal||r.requiredPasswordInfo.push("Die eingegebenen Passw\xF6rter stimmen nicht \xFCberein."),r.value1||r.requiredPasswordInfo.push("Das eingegebene Passwort ist leer.")}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:c}=ge(()=>{s.value.focus()},600);c()}}),t.watch(()=>e.value,(c,l)=>{r.value1=c}),{state:r,boneState:o,changeEvent:i,passwordBone:s}}}),Ml="",ao=["disabled"],io=["name"],lo=["name"],co={class:"errors"};function uo(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.withDirectives(t.createElementVNode("sl-input",{ref:"passwordBone","onUpdate:modelValue":n[0]||(n[0]=a=>e.state.value1=a),disabled:e.boneState.readonly,class:t.normalizeClass({"has-check":!e.boneState.readonly}),type:"password",clearable:"","password-toggle":"true",onSlChange:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onSlClear:n[2]||(n[2]=a=>e.state.value1=""),onKeyup:n[3]||(n[3]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[t.createElementVNode("sl-icon",{slot:"suffix",name:e.state.equal&&e.state.value1.length?"check":"x"},null,8,io)],42,ao),[[t.vModelText,e.state.value1]]),e.boneState.readonly?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("sl-input",{key:0,"onUpdate:modelValue":n[4]||(n[4]=a=>e.state.value2=a),class:"password-check",type:"password",clearable:"","password-toggle":"true",onSlChange:n[5]||(n[5]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onSlClear:n[6]||(n[6]=a=>e.state.value2=""),onKeyup:n[7]||(n[7]=(...a)=>e.changeEvent&&e.changeEvent(...a))},[t.createElementVNode("sl-icon",{slot:"suffix",name:e.state.equal&&e.state.value1.length?"check":"x"},null,8,lo)],544)),[[t.vModelText,e.state.value2]]),t.createElementVNode("ul",co,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.passwordInfo,(a,c)=>(t.openBlock(),t.createElementBlock("li",{key:c},t.toDisplayString(a),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.requiredPasswordInfo,(a,c)=>(t.openBlock(),t.createElementBlock("li",{key:c,class:"requiredInfo"},t.toDisplayString(a),1))),128))])],64)}const it=$(ro,[["render",uo],["__scopeId","data-v-0ccf18c0"]]),mo=t.defineComponent({props:{name:String,value:null,index:Number,lang:String,readonly:Boolean,params:Object},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:t.computed(()=>e.value),structure:t.computed(()=>a(o.bonestructure.using)),globalRegistration:!1,formGroups:t.computed(()=>{var d,u;let c={default:{name:"Allgemein",bones:[],groupVisible:!1,groupOpen:!0}};for(const[m,g]of Object.entries(r.structure)){let h="default",b=r.structure[m],p=(d=r.value)==null?void 0:d[m];(u=g==null?void 0:g.params)!=null&&u.category&&(h=g.params.category.toLowerCase()),Object.keys(c).includes(h)?c[h].bones.push({boneName:m,boneStructure:b,boneValue:p}):c[h]={name:g.params.category,bones:[{boneName:m,boneStructure:b,boneValue:p}]},b.visible===!0&&(c[h].groupVisible=!0)}let l={};return Object.keys(c).sort().forEach(function(m){l[m]=c[m]}),l})});function s(c){n.emit("change",c)}t.onMounted(()=>{t.getCurrentInstance().appContext.components.Bone?r.globalRegistration=!0:r.globalRegistration=!1,n.emit("change",e.name,e.value,e.lang,e.index)});function i(c){console.log(c)}function a(c){if(Array.isArray(c)){let l={};for(const d in c)l[c[d][0]]=c[d][1];return l}else return c}return{state:r,boneState:o,getBoneWidget:U,structureToDict:a,changeEvent:s,updateValue:i}}}),Rl="",ho={key:0,open:"",variant:"danger"},po={key:1,class:"form"},fo=["summary","open"];function go(e,n,o,r,s,i){const a=t.resolveComponent("bone");return e.state.globalRegistration?(t.openBlock(),t.createElementBlock("div",po,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.formGroups,(c,l)=>t.withDirectives((t.openBlock(),t.createElementBlock("sl-details",{key:l,summary:c.name,open:c.groupOpen},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.bones,d=>t.withDirectives((t.openBlock(),t.createBlock(a,{key:d.name,is:e.getBoneWidget(e.state.structure[d.boneName].type),name:d.boneName,structure:e.state.structure,skel:e.state.value,errors:e.boneState.errors,readonly:e.boneState.bonestructure.readonly?!0:void 0,onChangeInternal:e.changeEvent},null,8,["is","name","structure","skel","errors","readonly","onChangeInternal"])),[[t.vShow,e.state.structure[d.boneName].visible]])),128))],8,fo)),[[t.vShow,c.groupVisible]])),128))])):(t.openBlock(),t.createElementBlock("sl-alert",ho," In Order to use this Bone register the bone component globally in your main file "))}const lt=$(mo,[["render",go],["__scopeId","data-v-e6fcfbca"]]),bo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:null,index:Number,lang:String},components:{Wrapper_nested:lt},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:{},index:t.computed(()=>e.index),lang:t.computed(()=>e.lang)});function s(i){var c;(c=r.value)!=null&&c[i.name]||(r.value?r.value[i.name]=null:r.value={[i.name]:null});let a=r.value[i.name];i.lang?(a===null&&(a={}),Object.keys(a).includes(i.lang)&&i.index!==null?a[i.lang][i.index]=i.value:a[i.lang]=i.value):i.index!==null?(a===null&&(a=[]),a[i.index]=i.value):a=i.value,r.value[i.name]=a,n.emit("change",e.name,r.value,e.lang,e.index,!0)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),xl="";function _o(e,n,o,r,s,i){const a=t.resolveComponent("Wrapper_nested");return t.openBlock(),t.createBlock(a,{value:e.value,name:e.name,index:e.state.index,disabled:e.boneState.bonestructure.readonly,onChange:e.changeEvent},null,8,["value","name","index","disabled","onChange"])}const ct=$(bo,[["render",_o],["__scopeId","data-v-84a761ce"]]),yo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i){n.emit("change",e.name,i.target.value,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Ul="",$o=["disabled","value"];function Eo(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("sl-color-picker",{disabled:e.boneState.readonly,value:e.value,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,$o)}const dt=$(yo,[["render",Eo],["__scopeId","data-v-534b9149"]]),ko=t.defineComponent({inheritAttrs:!1,emits:{change:null},props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,autofocus:Boolean},components:{},setup(e,n){const o=t.inject("boneState"),r=t.reactive({minAmount:t.computed(()=>o.bonestructure.minAmount),maxAmount:t.computed(()=>o.bonestructure.maxAmount),precision:t.computed(()=>{if(o.bonestructure.precision>1)return parseFloat(`0.${"0".repeat(o.bonestructure.precision-1)}1`)})}),s=t.ref(null);function i(a){n.emit("change",e.name,a.target.value,e.lang,e.index)}return t.watchEffect(()=>{if(e.autofocus&&s.value&&s.value!==null&&s!==null){const{start:a}=ge(()=>{s.value.focus()},600);a()}}),t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:i,numericBone:s}}}),zl="",So=["disabled","value","min","max","step"],wo={class:"info"},vo={key:0},Bo={key:1},Co={key:2};function No(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("sl-input",{ref:"numericBone",type:"number",disabled:e.boneState.readonly,value:e.value,min:e.state.minAmount,max:e.state.maxAmount,step:e.state.precision,onSlChange:n[0]||(n[0]=(...a)=>e.changeEvent&&e.changeEvent(...a)),onKeyup:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a))},null,40,So),t.createElementVNode("ul",wo,[e.state.minAmount!==-9223372036854776e3&&e.state.minAmount?(t.openBlock(),t.createElementBlock("li",vo,t.toDisplayString(e.$t("bones.numeric.min",{val:e.state.minAmount})),1)):t.createCommentVNode("",!0),e.state.maxAmount!==9223372036854776e3&&e.state.maxAmount?(t.openBlock(),t.createElementBlock("li",Bo,t.toDisplayString(e.$t("bones.numeric.max",{val:e.state.maxAmount})),1)):t.createCommentVNode("",!0),e.state.precision?(t.openBlock(),t.createElementBlock("li",Co,t.toDisplayString(e.$t("bones.numeric.precision",{val:e.boneState.bonestructure.precision})),1)):t.createCommentVNode("",!0)])],64)}const ut=$(ko,[["render",No],["__scopeId","data-v-03d5b399"]]);class be extends Error{constructor(n,o,r,s){super(r||o),arguments.length>=4&&s&&Object.assign(this,s),this.statusText=o,this.statusCode=n,this.response=s}}let Ie=null;function x(){return Ie||(Ie=fe.defineStore("requestStore",()=>{const e=t.reactive({sKeys:new Set});function n(){e.sKeys=new Set}return{state:e,$reset:n}})),Ie()}class w{static resetState(){x().$reset(),x().$dispose()}static buildUrl(n){return n&&!(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//"))&&(n=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL?{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL:window.location.origin)+n),n}static post(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,abortController:i=null,headers:a=null,mode:c=null}={}){function l(){if(o instanceof FormData)return o;const u=new FormData;for(const m in o)if(Array.isArray(o[m]))for(let g of o[m])u.append(m,g);else u.append(m,o[m]);return u}let d=se.post(w.buildUrl(n),l(),null,a,i,c);return d.then(function(u){r&&r(u.data)}).catch(function(u){s&&s(u)}),d}static async getBatchSkeys(n=30,o={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"json"){await w.get(`/${o}/skey`,{dataObj:{amount:n}}).then(async r=>{let s=await r.json();Array.isArray(s)||(s=[s]),x().state.sKeys=new Set(s)})}static async securePost(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,abortController:i=null,renderer:a={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"json",headers:c=null,mode:l=null,amount:d=30}={}){let u=null;x().state.sKeys.size===0&&await w.getBatchSkeys(d);const m=[...x().state.sKeys][0];return o instanceof FormData?(o.append("skey",m),x().state.sKeys.delete(m)):(o||(o={}),o.skey=m,x().state.sKeys.delete(m)),u=w.post(n,{dataObj:o,callback:r,abortController:i,headers:c,mode:l}),u}static get(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,cached:i=!1,clearCache:a=!1,abortController:c=null,headers:l=null,mode:d=null,cacheTime:u=1e3*60*60*24*1}={}){let m=se.get(w.buildUrl(n),o,a,l,c,d);return m.then(function(g){r&&r(g.data)}).catch(function(g){s&&s(g)}),m}static list(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){let l=`/${c}/${n}/list`;return i&&(l+=`/${i}`),w.get(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static getStructure(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){n=n.replace(/\//g,".");let l=`/${c}/getStructure/${n}`;return i&&(l+=`/${i}`),w.get(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static view(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/view/${o}`;return a&&(d=`/${l}/${n}/view/${a}/${o}`),w.get(d,{dataObj:r,callback:s,failedCallback:i,abortController:c})}static add(n,{dataObj:o=null,callback:r=null,failedCallback:s=null,group:i=null,abortController:a=null,renderer:c="json"}={}){let l=`/${c}/${n}/add`;return i&&(l=`/${c}/${n}/add/${i}`),w.securePost(l,{dataObj:o,callback:r,failedCallback:s,abortController:a})}static edit(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/edit/${o}`;return a&&(d=`/${l}/${n}/edit/${a}/${o}`),w.securePost(d,{dataObj:r,callback:s,failedCallback:i,abortController:c})}static delete(n,o,{dataObj:r=null,callback:s=null,failedCallback:i=null,group:a=null,abortController:c=null,renderer:l="json"}={}){let d=`/${l}/${n}/delete/${o}`;return a&&(d=`/${l}/${n}/delete/${a}/${o}`),w.securePost(d,{dataObj:r,callback:s,failedCallback:i,abortController:c,amount:1})}static downloadUrlFor(n,o=!1){return n&&"dest"in n?o&&"thumbnail"in n.dest?w.buildUrl(n.dest.thumbnail):"downloadUrl"in n.dest?w.buildUrl(n.dest.downloadUrl):w.buildUrl(null):w.buildUrl(n)}static uploadFile(n,o=void 0){const r={fileName:n.name,mimeType:n.type||"application/octet-stream",size:n.size.toString(),node:o};return new Promise((s,i)=>{w.securePost("/vi/file/getUploadURL",{dataObj:r}).then(async a=>{let c=await a.json();fetch(c.values.uploadUrl,{body:n,method:"POST",mode:"no-cors"}).then(async l=>{const d={key:c.values.uploadKey,skelType:"leaf"};w.securePost("/vi/file/add",{dataObj:d}).then(async u=>{let m=await u.json();m.action==="addSuccess"?s(m.values):i(m)}).catch(u=>{i(u)})}).catch(l=>{i(l)})}).catch(a=>{i(a)})})}}class se{constructor(){pn(this,"withCredentials",!0)}static buildOptions(n,o=null,r=null,s=null,i=null){let a={method:n};return a.credentials="include",a.headers={Accept:"application/json, text/plain, */*"},r&&(a.headers={...a.headers,...r}),o&&(a.body=o),s&&(a.signal=s.signal),i&&(a.mode=i),a}static get(n,o=null,r=null,s=null,i=null,a=null){function c(l,d){let u=new URL(l);if(d&&Object.keys(d).length>0){const m=new URLSearchParams;for(const[g,h]of Object.entries(d))if(Array.isArray(h))for(const b of h)m.append(g,b);else m.append(g,h);u.search=m.toString()}return u.toString()}return fetch(c(n,o),se.buildOptions("GET",null,s,i,a)).then(async l=>{if(l.ok)return l;{const d=`${l.status} ${l.statusText}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.status,l.statusText,d,l))}}).catch(l=>{if(l instanceof TypeError){const u=`503 ${l.message}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(503,l.message,u,l))}if(l instanceof DOMException&&l.name=="AbortError"){const u=`${l.code} ${l.name}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.code,l.name,u,{url:n}))}const d=`${l.statusCode} ${l.statusText}: ${l.headers?l.headers.get("x-error-descr"):""}`;return Promise.reject(new be(l.statusCode,l.statusText,d,l.response))})}static post(n,o=null,r=null,s=null,i=null,a=null){return fetch(n,se.buildOptions("POST",o,s,i,a))}}const Vo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{Wrapper_nested:lt},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("formatString"),s=t.reactive({format:t.computed(()=>o==null?void 0:o.bonestructure.format),skellistdata:null,selection:null});function i(l){let d="";return o.bonestructure.type==="relational.tree.leaf.file"?d="skelType=leaf&":o.bonestructure.type==="relational.tree.node.file"&&(d="skelType=node&"),w.get(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/${o.bonestructure.module}/list?${d}limit=99`).then(async u=>{var g;const m=await u.json();s.skellistdata={};for(let h of m.skellist)s.skellistdata[h.key]=h;return(g=m.skellist)==null?void 0:g.map(h=>({text:r(o.bonestructure.format,{dest:h}),value:h.key,data:h}))})}function a(l){s.selection={dest:s.skellistdata[l.detail.item.value]},n.emit("change",e.name,s.selection,e.lang,e.index)}function c(l){var u;s.selection||(s.selection={}),(u=s.selection.rel)!=null&&u[l.name]||(s.selection.rel?s.selection.rel[l.name]=null:s.selection.rel={[l.name]:null});let d=s.selection.rel[l.name];l.lang?(d===null&&(d={}),Object.keys(d).includes(l.lang)&&l.index!==null?d[l.lang][l.index]=l.value:d[l.lang]=l.value):l.index!==null?(d===null&&(d=[]),d[l.index]=l.value):d=l.value,Object.keys(s.selection).includes("rel")&&s.selection.rel?s.selection.rel[l.name]=d:s.selection.rel={[l.name]:d},Object.keys(s.selection).includes("dest")&&n.emit("change",e.name,s.selection,e.lang,e.index)}return t.onMounted(()=>{s.selection=e.value,n.emit("change",e.name,e.value,e.lang,e.index)}),{state:s,boneState:o,formatString:r,changeEvent:a,changeEventNested:c,getList:i}}}),Fl="",Ao=e=>(t.pushScopeId("data-v-61dd72e0"),e=e(),t.popScopeId(),e),Io={class:"record"},Oo={class:"single-entry"},Po=["value"],Do=["disabled","source"],Lo=["title"],jo=[Ao(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function To(e,n,o,r,s,i){var c,l;const a=t.resolveComponent("Wrapper_nested");return t.openBlock(),t.createElementBlock("div",Io,[t.createElementVNode("div",Oo,[e.state.selection?(t.openBlock(),t.createElementBlock("sl-input",{key:0,disabled:!0,value:e.value?e.formatString(e.state.format,e.state.selection):""},null,8,Po)):(t.openBlock(),t.createElementBlock("sl-combobox",{key:1,disabled:e.boneState.readonly,source:e.getList,hoist:"",onSlItemSelect:n[0]||(n[0]=(...d)=>e.changeEvent&&e.changeEvent(...d))},null,40,Do)),!e.boneState.multiple&&!e.boneState.isEmpty?(t.openBlock(),t.createElementBlock("sl-button",{key:2,variant:"danger",outline:"",title:e.$t("bone.del"),class:"delete-btn square-btn",onClick:n[1]||(n[1]=()=>{e.$emit("change",e.name,"",e.lang,e.index),e.state.selection=null})},jo,8,Lo)):t.createCommentVNode("",!0)]),(c=e.boneState)!=null&&c.bonestructure.using?(t.openBlock(),t.createBlock(a,{key:0,value:(l=e.value)==null?void 0:l.rel,name:e.name,index:e.index,disabled:e.boneState.bonestructure.readonly,onChange:e.changeEventNested},null,8,["value","name","index","disabled","onChange"])):t.createCommentVNode("",!0)])}const mt=$(Vo,[["render",To],["__scopeId","data-v-61dd72e0"]]),Mo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({});function s(i,a){n.emit("change",e.name,i,e.lang,e.index)}return t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Hl="",Ro={class:"box"};function xo(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",Ro,t.toDisplayString(e.value),1)}const Uo=$(Mo,[["render",xo],["__scopeId","data-v-343aca69"]]),zo=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.ref(),s=t.reactive({loading:!1,droparea:!1,previewopen:!1});t.onMounted(()=>{n.emit("change",e.name,e.value,e.lang,e.index)});function i(){console.log(w.downloadUrlFor(e.value)),window.open(w.downloadUrlFor(e.value))}function a(){return w.downloadUrlFor(e.value,!1)}function c(u){const m={fileName:u.name,mimeType:u.type||"application/octet-stream",size:u.size.toString()};return new Promise((g,h)=>{w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:m}).then(async b=>{let p=await b.json();fetch(p.values.uploadUrl,{body:u,method:"POST",mode:"no-cors"}).then(async f=>{const _={key:p.values.uploadKey,node:void 0,skelType:"leaf"};w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:_}).then(async y=>{let E=await y.json();E.action==="addSuccess"?g(E.values):h(E)}).catch(y=>{h(y)})}).catch(f=>{h(f)})}).catch(b=>{h(b)})})}async function l(u){s.loading=!0;for(let m of u.target.files){let g=await c(m);r.value.value=null,n.emit("change",e.name,{dest:g,rel:null},e.lang,e.index)}s.loading=!1}async function d(u){s.loading=!0,s.droparea=!1;for(let m of u.dataTransfer.files){let g=await c(m);r.value.value=null,n.emit("change",e.name,{dest:g,rel:null},e.lang,e.index);break}s.loading=!1}return{state:s,boneState:o,downloadFile:i,createBackgroundImage:a,handleUpload:l,uploadinput:r,handleDrop:d}}}),Wl="",_e=e=>(t.pushScopeId("data-v-91086308"),e=e(),t.popScopeId(),e),Fo={key:0,class:"loader"},qo=[_e(()=>t.createElementVNode("sl-spinner",{slot:"suffix"},null,-1))],Ho={key:1,class:"droparea"},Wo=["title"],Ko=[_e(()=>t.createElementVNode("sl-icon",{name:"upload"},null,-1))],Zo=["multiple"],Go=["title"],Jo=[_e(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"download"},null,-1))],Qo={class:"box"},Yo=["src"],Xo=["label","open"],es=["src"],ts={key:1,class:"preview"},ns={key:0,name:"file-earmark"},os={key:2},ss=["title"],rs=[_e(()=>t.createElementVNode("sl-icon",{name:"x-lg"},null,-1))];function as(e,n,o,r,s,i){var a,c,l,d,u,m,g,h,b,p;return t.openBlock(),t.createElementBlock("div",{class:"file-wrapper",onDragover:n[5]||(n[5]=t.withModifiers(f=>e.state.droparea=!0,["prevent"])),onDragleave:n[6]||(n[6]=f=>e.state.droparea=!1),onDrop:n[7]||(n[7]=t.withModifiers((...f)=>e.handleDrop&&e.handleDrop(...f),["prevent"]))},[e.state.loading?(t.openBlock(),t.createElementBlock("div",Fo,qo)):t.createCommentVNode("",!0),e.state.droparea?(t.openBlock(),t.createElementBlock("div",Ho," Dateien hier hinziehen ")):t.createCommentVNode("",!0),!e.boneState.readonly&&(!e.value||e.state.loading)?(t.openBlock(),t.createElementBlock("sl-button",{key:2,title:e.$t("bone.upload"),outline:"",class:"upload-btn",onClick:n[0]||(n[0]=f=>e.uploadinput.click())},Ko,8,Wo)):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:e.boneState.multiple,onChange:n[1]||(n[1]=(...f)=>e.handleUpload&&e.handleUpload(...f))},null,40,Zo),e.value?(t.openBlock(),t.createElementBlock("sl-button",{key:3,title:e.$t("bone.download"),onClick:n[2]||(n[2]=(...f)=>e.downloadFile&&e.downloadFile(...f))},Jo,8,Go)):t.createCommentVNode("",!0),t.createElementVNode("div",Qo,[(c=(a=e.value)==null?void 0:a.dest)!=null&&c.mimetype.includes("image")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"preview has-preview",onClick:n[3]||(n[3]=f=>e.state.previewopen=!e.state.previewopen)},[t.createElementVNode("img",{class:"preview-img",src:e.createBackgroundImage(),alt:""},null,8,Yo),t.createElementVNode("sl-dialog",{label:decodeURIComponent((d=(l=e.value)==null?void 0:l.dest)==null?void 0:d.name),class:"preview-overlay",open:e.state.previewopen},[t.createElementVNode("img",{src:e.createBackgroundImage(),alt:""},null,8,es)],8,Xo)])):(t.openBlock(),t.createElementBlock("div",ts,[(m=(u=e.value)==null?void 0:u.dest)!=null&&m.name?(t.openBlock(),t.createElementBlock("sl-icon",ns)):t.createCommentVNode("",!0)])),(h=(g=e.value)==null?void 0:g.dest)!=null&&h.name?(t.openBlock(),t.createElementBlock("div",os,t.toDisplayString(decodeURIComponent((p=(b=e.value)==null?void 0:b.dest)==null?void 0:p.name)),1)):t.createCommentVNode("",!0)]),e.boneState.multiple?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("sl-button",{key:4,variant:"danger",outline:"",title:e.$t("bone.del"),class:"delete-btn",onClick:n[4]||(n[4]=f=>e.$emit("change",e.name,"",e.lang,e.index))},rs,8,ss))],32)}const ht=$(zo,[["render",as],["__scopeId","data-v-91086308"]]),is=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({value:"",editorConfig:{},editor:t.computed(()=>Xe.default)});function s(c){n.emit("change",e.name,r.value,e.lang,e.index)}function i(c){r.value=c.target.value,n.emit("change",e.name,r.value,e.lang,e.index)}t.onMounted(()=>{e.value!==null&&(r.value=e.value),n.emit("change",e.name,e.value,e.lang,e.index)});function a(c){c.editing.view.change(l=>{l.setStyle("min-height","250px",c.editing.view.document.getRoot())})}return t.watch(()=>e.value,(c,l)=>{r.value=c}),{state:r,ClassicEditor:Xe.default,boneState:o,changeEvent:s,onReady:a,changeEventTextarea:i}}}),Ql="",ls=["disabled","value"];function cs(e,n,o,r,s,i){var c,l,d,u;const a=t.resolveComponent("ckeditor");return e.state.editor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[((c=e.boneState.bonestructure)==null?void 0:c.valid_html)||((l=e.boneState.bonestructure)==null?void 0:l.validHtml)?(t.openBlock(),t.createBlock(a,{key:0,modelValue:e.state.value,"onUpdate:modelValue":n[0]||(n[0]=m=>e.state.value=m),editor:e.state.editor,config:e.state.editorConfig,disabled:(d=e.boneState)==null?void 0:d.readonly,onReady:e.onReady,onInput:e.changeEvent},null,8,["modelValue","editor","config","disabled","onReady","onInput"])):(t.openBlock(),t.createElementBlock("sl-textarea",{key:1,disabled:(u=e.boneState)==null?void 0:u.readonly,value:e.value,onInput:n[1]||(n[1]=(...m)=>e.changeEventTextarea&&e.changeEventTextarea(...m))},null,40,ls))],64)):t.createCommentVNode("",!0)}const pt=$(is,[["render",cs]]),ds=t.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({valueLat:null,valueLng:null});function s(){n.emit("change",e.name,[r.valueLat,r.valueLng],e.lang,e.index)}return t.onMounted(()=>{try{r.valueLat=e.value[0],r.valueLng=e.value[1]}catch{}n.emit("change",e.name,[r.valueLat,r.valueLng],e.lang,e.index)}),{state:r,boneState:o,changeEvent:s}}}),Yl="",us=["name","min","max","disabled"],ms=["name","min","max","disabled"];function hs(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.withDirectives(t.createElementVNode("sl-input",{"onUpdate:modelValue":n[0]||(n[0]=a=>e.state.valueLat=a),index:"lat",type:"number",name:e.name,min:e.boneState.bonestructure.boundslat[0],max:e.boneState.bonestructure.boundslat[1],disabled:e.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:n[1]||(n[1]=(...a)=>e.changeEvent&&e.changeEvent(...a)),placeholder:"Lat"},null,40,us),[[t.vModelText,e.state.valueLat]]),t.withDirectives(t.createElementVNode("sl-input",{"onUpdate:modelValue":n[2]||(n[2]=a=>e.state.valueLng=a),index:"lng",type:"number",name:e.name,min:e.boneState.bonestructure.boundslat[0],max:e.boneState.bonestructure.boundslat[1],disabled:e.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:n[3]||(n[3]=(...a)=>e.changeEvent&&e.changeEvent(...a)),placeholder:"Long"},null,40,ms),[[t.vModelText,e.state.valueLng]])],64)}const ft=$(ds,[["render",hs],["__scopeId","data-v-7bc31020"]]),ps=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.reactive({counter:0,debounce:null}),s=t.inject("addMultipleEntry"),i=t.inject("removeMultipleEntries");function a(){r.counter+=1;let l=200;r.counter>1&&(l=500),r.debounce&&clearTimeout(r.debounce),r.debounce=setTimeout(()=>{for(let d=r.counter;d--;)s(e.lang);r.counter=0},l)}function c(){let l=200;r.debounce&&clearTimeout(r.debounce),r.debounce=setTimeout(()=>{i(e.lang)},l)}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:r,boneState:o,handleAdd:a,handleRemove:c,removeMultipleEntries:i}}}),Xl="",gt=e=>(t.pushScopeId("data-v-63e75dee"),e=e(),t.popScopeId(),e),fs={class:"actionbar"},gs=["title"],bs=[gt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],_s=["title"],ys=gt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function $s(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",fs,[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.handleRemove(e.lang))},bs,8,gs)):t.createCommentVNode("",!0),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:1,variant:"success",title:e.$t("bone.add"),outline:"",class:"add-btn",onClick:n[1]||(n[1]=a=>e.handleAdd(e.lang))},[ys,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.add"))+" ",1),e.state.counter>1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("("+t.toDisplayString(e.state.counter)+")",1)],64)):t.createCommentVNode("",!0)],8,_s)):t.createCommentVNode("",!0)])}const Es=$(ps,[["render",$s],["__scopeId","data-v-63e75dee"]]),ks=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("addMultipleEntry"),s=t.inject("formatString"),i=null,a=t.reactive({skels:{},hasUsing:t.computed(()=>o==null?void 0:o.bonestructure.using)});function c(l){let d="";return o.bonestructure.type==="relational.tree.leaf.file"?d="skelType=leaf&":o.bonestructure.type==="relational.tree.node.file"&&(d="skelType=node&"),w.get(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/${o.bonestructure.module}/list?${d}limit=99`).then(async u=>{var g;const m=await u.json();return a.skels=m.skellist.reduce((h,b)=>(h[b.key]=b,h),{}),(g=m.skellist)==null?void 0:g.map(h=>({text:s(o.bonestructure.format,{dest:h}),value:h.key,data:h}))})}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:a,boneState:o,addMultipleEntry:r,removeMultipleEntries:i,getList:c}}}),tc="",bt=e=>(t.pushScopeId("data-v-eeea51c6"),e=e(),t.popScopeId(),e),Ss={class:"actionbar"},ws=["title"],vs=[bt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],Bs=["source"],Cs=["title"],Ns=bt(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function Vs(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",Ss,[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.openSelector())},vs,8,ws)):t.createCommentVNode("",!0),t.createElementVNode("sl-combobox",{source:e.getList,hoist:"",onSlItemSelect:n[1]||(n[1]=a=>{var c;return e.addMultipleEntry(e.lang,{dest:(c=e.state.skels)==null?void 0:c[a.detail.item.value],rel:e.state.hasUsing?void 0:null})})},null,40,Bs),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:1,variant:"success",title:e.$t("bone.add"),outline:"",class:"add-btn",onClick:n[2]||(n[2]=a=>e.addMultipleEntry(e.lang))},[Ns,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.list")),1)],8,Cs)):t.createCommentVNode("",!0)])}const As=$(ks,[["render",Vs],["__scopeId","data-v-eeea51c6"]]),Is=t.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(e,n){const o=t.inject("boneState"),r=t.inject("addMultipleEntry");t.inject("formatString");const s=null,i=t.ref(),a=t.reactive({skels:{},uploadinput:null,loading:!1,droparea:!1,hasUsing:t.computed(()=>o==null?void 0:o.bonestructure.using)});function c(u){const m={fileName:u.name,mimeType:u.type||"application/octet-stream",size:u.size.toString()};return new Promise((g,h)=>{w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:m}).then(async b=>{let p=await b.json();fetch(p.values.uploadUrl,{body:u,method:"POST",mode:"no-cors"}).then(async f=>{const _={key:p.values.uploadKey,node:void 0,skelType:"leaf"};w.securePost(`/${{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:_}).then(async y=>{let E=await y.json();E.action==="addSuccess"?g(E.values):h(E)}).catch(y=>{h(y)})}).catch(f=>{h(f)})}).catch(b=>{h(b)})})}async function l(u){a.loading=!0;for(let m of u.target.files){let g=await c(m);i.value.value=null;let h=null;a.hasUsing&&(h=void 0),r(e.lang,{dest:g,rel:h})}a.loading=!1}async function d(u){a.loading=!0,a.droparea=!1;for(let m of u.dataTransfer.files){let g=await c(m);i.value.value=null;let h=null;a.hasUsing&&(h=void 0),r(e.lang,{dest:g,rel:h})}a.loading=!1}return t.onMounted(()=>{(!e.value||e.value.length===0)&&n.emit("change",e.name,[],e.lang)}),{state:a,boneState:o,addMultipleEntry:r,removeMultipleEntries:s,uploadFile:c,uploadinput:i,handleUpload:l,handleDrop:d}}}),oc="",Oe=e=>(t.pushScopeId("data-v-9bac9f8a"),e=e(),t.popScopeId(),e),Os=["title"],Ps=[Oe(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],Ds={key:1,class:"droparea"},Ls=["multiple"],js=["title"],Ts=[Oe(()=>t.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1))],Ms=["title"],Rs=Oe(()=>t.createElementVNode("sl-icon",{name:"upload"},null,-1)),xs={key:0,slot:"suffix"};function Us(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",{class:"actionbar",onDragover:n[4]||(n[4]=t.withModifiers(a=>e.state.droparea=!0,["prevent"])),onDragleave:n[5]||(n[5]=a=>e.state.droparea=!1),onDrop:n[6]||(n[6]=t.withModifiers((...a)=>e.handleDrop&&e.handleDrop(...a),["prevent"]))},[e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:0,variant:"danger",title:e.$t("bone.del"),outline:"",class:"delete-btn",onClick:n[0]||(n[0]=a=>e.openSelector())},Ps,8,Os)):t.createCommentVNode("",!0),e.state.droparea?(t.openBlock(),t.createElementBlock("div",Ds," Dateien hier hinziehen ")):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:e.boneState.multiple,onChange:n[1]||(n[1]=(...a)=>e.handleUpload&&e.handleUpload(...a))},null,40,Ls),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:2,outline:"",title:e.$t("bone.list"),class:"add-btn",onClick:n[2]||(n[2]=a=>e.addMultipleEntry(e.lang))},Ts,8,js)):t.createCommentVNode("",!0),e.boneState.multiple&&!e.readonly?(t.openBlock(),t.createElementBlock("sl-button",{key:3,variant:"success",outline:"",title:e.$t("bone.upload"),class:"upload-btn",onClick:n[3]||(n[3]=a=>e.uploadinput.click())},[Rs,t.createTextVNode(" "+t.toDisplayString(e.$t("bone.upload"))+" ",1),e.state.loading?(t.openBlock(),t.createElementBlock("sl-spinner",xs)):t.createCommentVNode("",!0)],8,Ms)):t.createCommentVNode("",!0)],32)}const zs=$(Is,[["render",Us],["__scopeId","data-v-9bac9f8a"]]),Pe=fe.defineStore("boneStore",()=>{const e=t.reactive({additionalBones:t.shallowRef({}),defaultBones:t.shallowRef({rawBone:Ae,keyBone:tt,stringBone:nt,emailBone:ot,dateBone:st,booleanBone:at,selectBone:rt,passwordBone:it,recordBone:ct,numericBone:ut,colorBone:dt,relationalBone:mt,jsonBone:Uo,fileBone:ht,textBone:pt,spatialBone:ft}),actionbars:t.shallowRef({"relational.tree.leaf.file.file":zs,"relational.":As}),multibones:t.shallowRef(["select","select."])});function n(a,c){e.additionalBones[a]=c}function o(){let a=e.defaultBones;for(const[c,l]of Object.entries(e.additionalBones))a.add(l);return a}function r(a){if(Object.keys(e.additionalBones).includes(a))return e.additionalBones[a];{let c=a.split("."),l=Object.entries(e.additionalBones).filter(d=>d[0].startsWith(c[0]+"."));if(l.length>0){l.sort((d,u)=>u.length-d.length);for(let d of l)if(a.startsWith(d[0]))return e.additionalBones[d[0]]}}return a==="date"?st:a==="key"?tt:a==="str.email"?ot:a==="str"||a.startsWith("str.")?nt:a==="select"||a.startsWith("select.")?rt:a==="bool"?at:a==="password"?it:a==="record"?ct:a==="numeric"||a.startsWith("numeric.")?ut:a==="relational.tree.leaf.file.file"?ht:a==="relational"||a.startsWith("relational.")?mt:a==="color"?dt:a==="text"?pt:a==="spatial"?ft:Ae}function s(a,c){e.actionbars[a]=c}function i(a){if(Object.keys(e.actionbars).includes(a))return e.actionbars[a];{let c=a.split("."),l=Object.entries(e.actionbars).filter(d=>d[0].startsWith(c[0]+"."));if(l.length>0){l.sort((d,u)=>u.length-d.length);for(let d of l)if(a.startsWith(d[0]))return e.actionbars[d[0]]}}return Es}return{state:e,addBoneWidget:n,getBoneWidget:r,importWidgets:o,addBoneActionbar:s,getBoneActionbar:i}});function Fs(e){return Pe().getBoneActionbar(e)}function U(e){return Pe().getBoneWidget(e)}function qs(e){const n=Pe();if(n.state.multibones.includes(e))return!0;{let o=e.split("."),r=Object.entries(n.state.multibones).filter(s=>s[1].startsWith(o[0]+"."));if(r.length>0){r.sort((s,i)=>i.length-s.length);for(let s of r)if(e.startsWith(s[1]))return!0}}return!1}t.defineComponent({inheritAttrs:!1,emits:["change","change-internal","handleClick"],components:{wrapperMultiple:vn,BoneLabel:In},props:{is:{type:Object,default:Ae},name:{type:String,required:!0},languages:Array,multiple:Boolean,readonly:Boolean,required:Boolean,params:Object,value:[Object,String,Number,Boolean,Array],structure:{type:Object,required:!0},skel:{type:null,required:!0},errors:Object,showLabelInfo:{type:Boolean,required:!1,default:!1},autofocus:{type:Boolean,required:!1,default:!1}},setup(e,n){const o=t.reactive({bonestructure:t.computed(()=>{var p;return(p=e.structure)==null?void 0:p[e.name]}),bonevalue:null,dragStartIndex:{lang:null,index:Number},dropIndex:{lang:null,index:Number},draggingLineBottom:{lang:String,index:Number},draggingLineTop:{lang:String,index:Number},isDragging:{lang:String,index:Number},multilanguage:t.computed(()=>{var p;return((p=o.languages)==null?void 0:p.length)&&o.languages.length>0}),languages:t.computed(()=>e.languages?e.languages:o.bonestructure&&Object.keys(o.bonestructure).includes("languages")?o.bonestructure.languages:[]),readonly:t.computed(()=>e.readonly?e.readonly:o.bonestructure&&Object.keys(o.bonestructure).includes("readonly")?o.bonestructure.readonly:!1),required:t.computed(()=>e.required?e.required:o.bonestructure&&Object.keys(o.bonestructure).includes("required")?o.bonestructure.required:!1),hasTooltip:t.computed(()=>!!(o.bonestructure&&Object.keys(o.bonestructure.params).includes("tooltip"))),multiple:t.computed(()=>e.multiple?e.multiple:o.bonestructure&&Object.keys(o.bonestructure).includes("multiple")?o.bonestructure.multiple:!1),params:t.computed(()=>e.params?e.params:o.bonestructure&&Object.keys(o.bonestructure).includes("params")?o.bonestructure.params:{}),actionbar:t.computed(()=>{var p;return Fs((p=o.bonestructure)==null?void 0:p.type)}),isEmpty:t.computed(()=>{function p(f){for(const[_,y]of Object.entries(f))if(y!==null){if(Array.isArray(y)&&y.length>0)return!1;if(!Array.isArray(y))return!1}return!0}return o.readonly?!1:!o.bonevalue||Array.isArray(o.bonevalue)&&o.bonevalue.length===0?!0:o.bonevalue===Object(o.bonevalue)&&!Array.isArray(o.bonevalue)?p(o.bonevalue):!1}),errors:[],errorMessages:t.computed(()=>{let p=[];for(let f of e.errors)f.fieldPath[0]===e.name&&(f.severity>2||o.required&&(f.severity===2||f.severity===0))&&p.push(f.errorMessage);return p})});t.provide("boneState",o);function r(p,f,_){a(f,p,"isDragging"),a(f,p,"dragStartIndex")}function s(p,f,_){_.preventDefault();const y=_.clientY-_.target.getBoundingClientRect().top,E=_.target.closest(".value-line");yC.length-1&&(o.dropIndex.index-=1)}function i(p,f,_){let y=null;o.dragStartIndex.index!==o.dropIndex.index&&(f?(y=o.bonevalue[f].splice(o.dragStartIndex.index,1)[0],o.bonevalue[f].splice(o.dropIndex.index,0,y)):(y=o.bonevalue.splice(o.dragStartIndex.index,1)[0],o.bonevalue.splice(o.dropIndex.index,0,y)),console.dir(o.bonevalue[0]),n.emit("change",{name:e.name,value:d(),lang:f,index:p})),c("draggingLineBottom","draggingLineTop","isDragging","dragStartIndex","dropIndex")}function a(p,f,_){o[_].lang=p||null,o[_].index=f}function c(...p){p.forEach(f=>{o[f]={lang:null,index:Number}})}function l(p,f,_=null,y=null,E){if(f===void 0||(_?(o.bonevalue||(o.bonevalue={}),Object.keys(o.bonevalue).includes(_)&&y!==null?o.bonevalue[_][y]=f:o.bonevalue[_]=f):y!==null?o.bonevalue[y]=f:E===!1||(o.bonevalue=f),o.readonly))return!1;let C={name:p,value:d(),lang:_,index:y},B={name:p,value:f,lang:_,index:y};E!=null&&(C.pwMatch=E,B.pwMatch=E),n.emit("change",C),n.emit("change-internal",B)}function d(){function p(_,y=null){let E=[];if(Array.isArray(_))if(o.bonestructure.type=="spatial"&&_.length===2&&!Array.isArray(_[0]))E.push({[y+".lat"]:_[0]}),E.push({[y+".lng"]:_[1]});else if(Object.values(_).filter(C=>C===Object(C)).length>0)for(const[C,B]of _.entries())B.rel!==null?E.push(p(B,y+"."+C)):E.push(p(B,y));else for(const[C,B]of _.entries())E.push(p(B,y));else if(_===Object(_))for(const[C,B]of Object.entries(_))y?y.endsWith(".dest")||y.endsWith(".rel")?y.endsWith(".dest")&&C==="key"?(/\.[0-9]*\.dest$/.test(y)?E.push(p(B,y.replace(/\.[0-9]*\.dest/,""))):E.push(p(B,y.replace(/\.dest/,""))),E.push(p(B,y.replace(/\.dest/,"")+"."+C))):y.endsWith(".rel")&&E.push(p(B,y.replace(/\.rel/,"")+"."+C)):E.push(p(B,y+"."+C)):E.push(p(B,C));else _==null&&(_=""),y!==null&&E.push({[y]:_});return E}let f=p(o.bonevalue,e.name);return f=f.flat(10),f}function u(p=null,f=""){p?Object.keys(o.bonevalue).includes(p)?o.bonevalue[p].push(f):o.bonevalue[p]=[f]:o.bonevalue?o.bonevalue.push(f):o.bonevalue=[f]}t.provide("addMultipleEntry",u);function m(p,f=null){var _;f?(_=o.bonevalue)==null||_[f].splice(p,1):o.bonevalue.splice(p,1),n.emit("change",{name:e.name,value:d(),lang:f,index:p}),n.emit("change-internal",{name:e.name,value:d(),lang:f,index:p})}function g(p=null){var f;p?(f=o.bonevalue)==null||f[p].splice(0):o.bonevalue.splice(0),n.emit("change",{name:e.name,value:d(),lang:p}),n.emit("change-internal",{name:e.name,value:d(),lang:p})}t.provide("removeMultipleEntries",g);function h(p=null,f=""){u(p,f)}function b(p,f){function _(B){let R=[],D=[],oe=/\$\((.*?)\)/g;for(;D;){if(D=oe.exec(B),!D){D=!1;continue}R.push(D[1])}return R}function y(B,R){let D=B.split("."),oe=B.split("."),A=R;for(let Q of D)if(oe.shift(),A&&A!=="-"&&Object.keys(A).includes(Q)&&A[Q])if(Array.isArray(A[Q])){let hn=[];for(let Sl of A[Q])hn.push(y(oe.join("."),Sl));A=hn.join(", ")}else A=A[Q];else(!A||typeof A[Q]=="object"&&!A[Q])&&(A="-");return A}let E=_(p),C=[];Array.isArray(f)||(f=[f]);for(let B of f){let R=p;for(let D of E){let oe=y(D,B);R=R.replace("$("+D+")",oe)}C.push(R)}return C.join(", ")}return t.provide("formatString",b),t.onBeforeMount(()=>{var p;e.value?o.bonevalue=e.value:o.bonevalue=(p=e.skel)==null?void 0:p[e.name]}),t.watch(()=>e.skel,(p,f)=>{var _;o.bonevalue=(_=e.skel)==null?void 0:_[e.name]}),t.watch(()=>{var p;return(p=e.errors)==null?void 0:p[e.name]},(p,f)=>{o.errors=e.errors}),{state:o,updateValue:l,addMultipleEntry:u,removeMultipleEntry:m,removeMultipleEntries:g,BoneHasMultipleHandling:qs,multipleBonePressEnter:h,handleDragStart:r,handleDragOver:s,handleDrop:i,setStateProperties:a,resetStateProperties:c}}});const ac="",ic="",De={props:{size:{type:String,default:"2"},active:{type:Boolean,default:!0},logo:{default:"logo-cube.svg",type:String},color:{default:"var(--sl-color-primary-500)",type:String}},setup(e,n){const o=t.reactive({trackWidth:t.computed(()=>`${e.size/30}rem`),outerSize:t.computed(()=>`calc(${e.size}rem + ${o.trackWidth})`),spinnerSize:t.computed(()=>`${e.size}rem`),logoSize:t.computed(()=>`calc(${e.size}rem - ${o.trackWidth} * 10)`),shadow:t.computed(()=>`0px 0px ${e.size/6}rem 0 color-mix(in hsl, var(--sl-color-neutral-1000), 80% transparent)`)});return{state:o}}},_t=()=>{t.useCssVars(e=>({"93747d92":e.state.outerSize,"284424e5":e.state.shadow,"6485ca5e":e.state.logoSize,"5d833915":e.state.spinnerSize,d5b3feca:e.color,"2050b700":e.state.trackWidth}))},yt=De.setup;De.setup=yt?(e,n)=>(_t(),yt(e,n)):_t;const Hs=e=>(t.pushScopeId("data-v-46c45785"),e=e(),t.popScopeId(),e),Ws={key:0,class:"loading"},Ks=Hs(()=>t.createElementVNode("sl-spinner",{class:"loader"},null,-1)),Zs={class:"logo"},Gs=["src"];function Js(e,n,o,r,s,i){return t.openBlock(),t.createBlock(t.Transition,null,{default:t.withCtx(()=>[o.active?(t.openBlock(),t.createElementBlock("div",Ws,[Ks,t.createElementVNode("div",Zs,[t.createElementVNode("sl-icon",{src:o.logo},null,8,Gs)])])):t.createCommentVNode("",!0)]),_:1})}const Qs=$(De,[["render",Js],["__scopeId","data-v-46c45785"]]),P=fe.defineStore("cartstore",()=>{const e=new gn.ViURShopClient({host_url:window.location.origin==="http://localhost:8081"?"http://localhost:8080":window.location.origin}),n=t.reactive({basketRootNode:{},whishlistRootNodes:[],children:{},structure:{address:{},cart:{}},paymentProviders:{},billingAddress:{},shippingAddress:{},selectedPaymentProvider:{}});async function o(){await s()}async function r(h){return await e.cart_list({cart_key:h})}async function s(){(await e.cart_list()).forEach(b=>{b.is_root_node&&(b.cart_type==="basket"?n.basketRootNode=b:n.whishlistRootNodes.push(b))})}async function i(h,b){let p=await e.article_add({article_key:h,parent_cart_key:b});console.log("addToCart",p)}async function a(h,b){let p=await e.article_view({article_key:h,parent_cart_key:b});console.log("getArticleView",p)}async function c(h,b){let p=await e.article_remove({article_key:h,parent_cart_key:b});console.log("remove Resp",p)}async function l(h,b,p){let f=await e.article_update({article_key:h,parent_cart_key:b,quantity:p,quantity_mode:"replace"});console.log("update Resp",f)}async function d(){const h=await e.address_structure();n.structure.address=h.addSkel}async function u(){const h=await e.address_list();for(const b of h)b.address_type==="billing"&&(n.billingAddress=b),b.address_type==="shipping"&&(n.shippingAddress=b)}async function m(h){await e.discount_add({code:h})}async function g(){const h=await e.payment_providers_list();n.paymentProviders=h,n.selectedPaymentProvider=h[Object.keys(h)[0]]}return{state:n,addToCart:i,getArticleView:a,removeItem:c,updateItem:l,init:o,getAddressStructure:d,getChildren:r,addDiscount:m,payment_providers_list:g,getAddress:u}}),Ys={__name:"CartNode",props:{node:{type:Object,required:!0}},setup(e){return t.reactive({}),(n,o)=>(t.openBlock(),t.createElementBlock("pre",null,t.toDisplayString(e.node.name),1))}},lc="",ye=e=>(t.pushScopeId("data-v-d313b580"),e=e(),t.popScopeId(),e),Xs={horizontal:"",class:"viur-shop-cart-leaf"},er=["src"],tr={class:"viur-shop-cart-leaf-headline headline"},nr={class:"viur-shop-cart-leaf-artno"},or=["innerHTML"],sr={class:"viur-shop-cart-leaf-quantity"},rr={class:"viur-shop-cart-leaf-unitprice"},ar=ye(()=>t.createElementVNode("div",{class:"viur-shop-cart-leaf-label"},"St\xFCckpreis",-1)),ir=["value"],lr={class:"viur-shop-cart-leaf-actions"},cr=ye(()=>t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-cart-leaf-add-to-favourites-btn",variant:"primary",title:"Add to favourites"},[t.createElementVNode("sl-icon",{name:"heart",slot:"prefix"})],-1)),dr=[ye(()=>t.createElementVNode("sl-icon",{name:"trash",slot:"prefix"},null,-1))],ur={class:"viur-shop-cart-leaf-price"},mr=ye(()=>t.createElementVNode("div",{class:"viur-shop-cart-leaf-label"},"Gesamtpreis",-1)),hr=["value"],pr=$({__name:"CartLeaf",props:{leaf:{type:Object,required:!0},node:{type:Object,required:!0}},emits:["updateItem","removeItem"],setup(e,{emit:n}){const o=e,r=n,s=t.reactive({leaf:{}});function i(l){return l!==void 0?pe.Request.downloadUrlFor(l):"https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80"}function a(l,d,u,m){r("updateItem",{item:l,articleKey:d,node:u,quantity:m})}function c(l,d,u){r("removeItem",{item:l,articleKey:d,node:u})}return t.onBeforeMount(()=>{s.leaf=o.leaf}),(l,d)=>(t.openBlock(),t.createElementBlock("sl-card",Xs,[t.createElementVNode("img",{class:"viur-shop-cart-leaf-image",slot:"image",src:i(s.leaf.shop_image?s.leaf.shop_image:void 0)},null,8,er),t.createElementVNode("h4",tr,t.toDisplayString(s.leaf.shop_name),1),t.createElementVNode("h5",nr,t.toDisplayString(s.leaf.shop_art_no_or_gtin),1),t.createElementVNode("div",{class:"viur-shop-cart-leaf-description",innerHTML:s.leaf.shop_description},null,8,or),t.createElementVNode("div",sr,[t.withDirectives(t.createElementVNode("sl-input",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--quantity",type:"number",label:"Anzahl",placeholder:"Number",min:"0","onUpdate:modelValue":d[0]||(d[0]=u=>s.leaf.quantity=u),onInput:d[1]||(d[1]=u=>a(s.leaf,s.leaf.article.dest.key,e.node,s.leaf.quantity))},null,544),[[t.vModelText,s.leaf.quantity]])]),t.createElementVNode("div",rr,[ar,t.createElementVNode("sl-format-number",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--unitprice",lang:"de",type:"currency",currency:"EUR",value:e.leaf.price.retail},null,8,ir)]),t.createElementVNode("div",lr,[cr,t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-cart-leaf-delete-btn",variant:"primary",title:"Remove from cart",onClick:d[2]||(d[2]=u=>c(s.leaf,s.leaf.article.dest.key,e.node))},dr)]),t.createElementVNode("div",ur,[mr,t.createElementVNode("sl-format-number",{class:"viur-shop-cart-leaf-value viur-shop-cart-leaf-value--price",lang:"de",type:"currency",currency:"EUR",value:e.leaf.price.retail*e.leaf.quantity},null,8,hr)])]))}},[["__scopeId","data-v-d313b580"]]),fr=t.createElementVNode("sl-icon",{slot:"icon",name:"info-circle"},null,-1),gr={key:0},br={key:0},_r={key:1},yr={__name:"Discount",setup(e){const n=P(),o=t.ref(null),r=t.ref(null),s=t.reactive({errorMessage:""});function i(){r.value.hide();const a=o.value.value;if(!a){r.value.show(),s.errorMessage="Es wurde kein Rabattcode eingegeben";return}n.addDiscount(a)}return(a,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[t.createElementVNode("sl-input",{label:"Rabatt Code",ref_key:"codeInput",ref:o},null,512),t.createElementVNode("sl-button",{onClick:i},"Einl\xF6sen"),t.createElementVNode("sl-alert",{ref_key:"errorMessageContainer",ref:r},[fr,t.createTextVNode(" "+t.toDisplayString(s.errorMessage),1)],512)]),t.createElementVNode("div",null,[t.unref(n).state.basketRootNode.discount?(t.openBlock(),t.createElementBlock("div",gr,[t.unref(n).state.basketRootNode.discount.dest.discount_type==="absolute"?(t.openBlock(),t.createElementBlock("span",br," Sie haben einen Rabattcode im Wert von "+t.toDisplayString(t.unref(n).state.basketRootNode.discount.dest.absolute)+" \u20AC eingegeben ",1)):t.createCommentVNode("",!0),t.unref(n).state.basketRootNode.discount.dest.discount_type==="percentage"?(t.openBlock(),t.createElementBlock("span",_r," Sie haben einen Rabattcode im Wert von "+t.toDisplayString(t.unref(n).state.basketRootNode.discount.dest.percentage)+" % eingegeben ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],64))}},uc="",L=e=>(t.pushScopeId("data-v-b5419f82"),e=e(),t.popScopeId(),e),$r={key:0},Er=L(()=>t.createElementVNode("p",null,"M\xF6chten Sie den Artikel wirklich aus dem Warenkorb entfernen?",-1)),kr={class:"footer-wrap",slot:"footer"},Sr={class:"viur-shop-cart-node"},wr=L(()=>t.createElementVNode("div",{id:"order_sidebar"},null,-1)),vr=L(()=>t.createElementVNode("h2",{class:"viur-shop-cart-sidebar-headline headline"}," Zusammenfassung ",-1)),Br=L(()=>t.createElementVNode("br",null,null,-1)),Cr={class:"viur-shop-cart-sidebar-info-line"},Nr=L(()=>t.createElementVNode("span",null,"Zwischensumme",-1)),Vr={class:"viur-shop-cart-sidebar-info-line"},Ar=L(()=>t.createElementVNode("span",null,"Rabatt",-1)),Ir=L(()=>t.createElementVNode("div",{class:"viur-shop-cart-sidebar-info-line"},[t.createElementVNode("span",null,"Versandkosten"),t.createTextVNode(" 0 \u20AC ")],-1)),Or={class:"viur-shop-cart-sidebar-info-line total"},Pr=L(()=>t.createElementVNode("span",null,"Gesamt:",-1)),Dr={key:0,class:"viur-shop-cart-sidebar-btn-wrap"},Lr=[L(()=>t.createElementVNode("sl-button",{variant:"primary",size:"medium"}," Jetzt Bestellen ",-1))],$e=$({__name:"CartView",props:{mode:{type:String,default:"basket"},cartKey:{type:String,required:!0},sidebar:{type:Boolean,default:!0},inOrderView:{type:Boolean,default:!1}},setup(e){const n=e,o=P(),r=t.ref(null),s=t.reactive({itemsIsInit:t.computed(()=>!0),images:{},currentItem:{},currentNode:{},nodes:[],leaves:{}});t.computed(()=>n.mode==="basket"?o.state.basketRootNode.key:n.cartKey);async function i(){await o.updateItem(s.currentItem.article.dest.key,s.currentNode.key,0),await d(),r.value.hide()}async function a(m){console.log("updateItem :",m),m.quantity===0?(r.value.show(),s.currentItem=m.item,s.currentNode=m.node):(await o.updateItem(m.articleKey,m.node.key,m.quantity),await o.init())}function c(m){console.log("removeItem :",m),r.value.show(),s.currentItem=m.item,s.currentNode=m.node}async function l(){s.leaves[s.currentNode.key].forEach(m=>{m.key===s.currentItem.key&&(m.quantity=1)}),s.currentItem={},s.currentNode={}}async function d(){s.nodes=[],s.leaves={},await o.init(),await u()}async function u(m=n.cartKey){console.log("debug getChildren parentKey from comp: ",m);const g=await o.getChildren(m);console.log("getChildren children: ",g),g.forEach(async h=>{h.skel_type==="node"?(s.nodes.push(h),await u(h.key)):(Object.keys(s.leaves).includes(m)||(s.leaves[m]=[]),s.leaves[m].push(h))})}return t.onBeforeMount(async()=>{await o.init(),await u(),n.mode==="basket"&&s.nodes.push(o.state.basketRootNode),console.log("state.nodes test",s.nodes),console.log("state.leaves",s.leaves)}),(m,g)=>e.cartKey.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("sl-dialog",{ref_key:"confirm",ref:r,onSlHide:l},[Er,t.createElementVNode("div",kr,[t.createElementVNode("sl-button",{variant:"danger",onClick:g[0]||(g[0]=h=>r.value.hide()),size:"medium"}," Abbrechen "),t.createElementVNode("sl-button",{variant:"success",onClick:i,size:"medium"}," Aus Warenkorb entfernen ")])],544),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.nodes,h=>(t.openBlock(),t.createElementBlock("div",Sr,[Object.keys(s.leaves).includes(h.key)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(Ys,{node:h},null,8,["node"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.leaves[h.key],b=>(t.openBlock(),t.createBlock(pr,{key:b.key,leaf:b,node:h,onRemoveItem:c,onUpdateItem:a},null,8,["leaf","node"]))),128))],64)):t.createCommentVNode("",!0)]))),256)),wr,e.sidebar?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#order_sidebar"},[e.sidebar?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[vr,Br,t.createElementVNode("div",Cr,[Nr,t.createTextVNode(" "+t.toDisplayString(e.mode==="basket"?t.unref(o).state.basketRootNode.total:t.unref(o).state.whishlistRootNodes[e.cartKey].total)+" \u20AC ",1)]),t.createElementVNode("div",Vr,[Ar,t.createTextVNode(" "+t.toDisplayString(t.unref(o).state.basketRootNode.total-t.unref(o).state.basketRootNode.total_discount_price)+" \u20AC ",1)]),Ir,t.createElementVNode("div",Or,[Pr,t.createTextVNode(" "+t.toDisplayString(t.unref(o).state.basketRootNode.total)+" \u20AC ",1)]),n.inOrderView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Dr,Lr))],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(yr)],64)):(t.openBlock(),t.createElementBlock("sl-spinner",$r))}},[["__scopeId","data-v-b5419f82"]]),jr=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"})),pc="",z=e=>(t.pushScopeId("data-v-b3e35258"),e=e(),t.popScopeId(),e),Tr={key:1,class:"list"},Mr=z(()=>t.createElementVNode("h2",{class:"viur-shop-cart-headline headline"},"Bestellung pr\xFCfen",-1)),Rr=z(()=>t.createElementVNode("div",{class:"viur-shop-cart-address-wrap"},[t.createElementVNode("div",{class:"viur-shop-cart-address"},[t.createElementVNode("div",{class:"viur-shop-cart-address-headline"},[t.createTextVNode(" Versandadresse "),t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})])]),t.createTextVNode(" Roland Brose"),t.createElementVNode("br"),t.createTextVNode(" Speicherstra\xDFe 33"),t.createElementVNode("br"),t.createTextVNode(" 44147 Dortmund, DE"),t.createElementVNode("br"),t.createElementVNode("br"),t.createTextVNode(" rb@mausbrand.de"),t.createElementVNode("br"),t.createTextVNode(" 0231 21 34 68 90 ")]),t.createElementVNode("div",{class:"viur-shop-cart-address"},[t.createElementVNode("div",{class:"viur-shop-cart-address-headline"},[t.createTextVNode(" Rechnungsadresse "),t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})])]),t.createTextVNode(" Roland Brose"),t.createElementVNode("br"),t.createTextVNode(" Speicherstra\xDFe 33"),t.createElementVNode("br"),t.createTextVNode(" 44147 Dortmund, DE"),t.createElementVNode("br"),t.createElementVNode("br"),t.createTextVNode(" rb@mausbrand.de"),t.createElementVNode("br"),t.createTextVNode(" 0231 21 34 68 90 ")])],-1)),xr={class:"viur-shop-cart-payment"},Ur={class:"viur-shop-cart-payment-method"},zr=z(()=>t.createElementVNode("span",null,"Zahlungsmethode:",-1)),Fr=z(()=>t.createElementVNode("sl-button",{outline:"",size:"small"},[t.createElementVNode("sl-icon",{name:"pencil",slot:"prefix"})],-1)),qr=z(()=>t.createElementVNode("h2",{class:"viur-shop-cart-headline headline"},"Warenkorb",-1)),Hr=z(()=>t.createElementVNode("h2",{class:"viur-shop-cart-sidebar-headline headline"},"Jetzt Bestellen",-1)),Wr=z(()=>t.createElementVNode("br",null,null,-1)),Kr={class:"viur-shop-cart-sidebar-btn-wrap"},Zr=["variant","disabled"],Ee=$({__name:"ConfirmView",setup(e){const n=P(),o=t.reactive({cartIsInit:t.computed(()=>!0),itemsIsInit:t.computed(()=>{var s;return!!((s=n.state)!=null&&s.carts[n.state.basket].items)}),selectedPaymentProvider:t.computed(()=>{var s;return(s=n.state)==null?void 0:s.selectedPaymentProvider.title}),images:{},showOrderButton:!1});console.log("se",o.selectedPaymentProvider);function r(s){s.target.checked&&(o.showOrderButton=!0),s.target.checked||(o.showOrderButton=!1)}return t.onBeforeMount(async()=>{await n.init()}),(s,i)=>o.cartIsInit?(t.openBlock(),t.createElementBlock("div",Tr,[Mr,Rr,t.createElementVNode("div",xr,[t.createElementVNode("div",Ur,[zr,t.createTextVNode(" "+t.toDisplayString(o.selectedPaymentProvider),1)]),Fr]),qr,(t.openBlock(),t.createBlock(t.Teleport,{to:"#order_sidebar"},[Hr,Wr,t.createElementVNode("sl-checkbox",{onSlChange:r}," Ich akzeptiere die geltenden AGBs und Datenschutzbestimmungen ",32),t.createElementVNode("div",Kr,[t.createElementVNode("sl-button",{variant:o.showOrderButton?"info":"disabled",size:"small",disabled:!o.showOrderButton}," Zahlungspflichtig bestellen ",8,Zr)])]))])):(t.openBlock(),t.createBlock(Qs,{key:0}))}},[["__scopeId","data-v-b3e35258"]]),Gr=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),gc="",Jr=e=>(t.pushScopeId("data-v-50f31583"),e=e(),t.popScopeId(),e),Qr={class:"bind viur-shop-wrap"},Yr=["panel","disabled"],Xr={class:"viur-shop-order-step"},ea=["name","library"],ta={class:"viur-shop-order-status-text"},na={class:"viur-shop-order-status-span"},oa={key:0,name:"chevron-right",class:"viur-shop-order-tab-check"},sa=["name"],ra=["onClick"],aa=["onClick"],ia=Jr(()=>t.createElementVNode("div",{class:"viur-shop-sidebar-wrap"},[t.createElementVNode("div",{class:"viur-shop-sidebar",id:"order_sidebar"})],-1)),Le=$({__name:"OrderView",props:{tabs:{type:Object,required:!0}},emits:["tabChange"],setup(e,{emit:n}){const o=e,r=n,s=t.reactive({tabNames:t.computed(()=>a(o.tabs)),isFirstTab:u=>u===0}),i=t.ref(null);function a(u){let m=[],g=[];for(const h in u)u[h].position?m.push([h,u[h].position]):m.push([h,0]);return m.sort((h,b)=>h[1]-b[1]),m.forEach(h=>{g.push(h[0])}),g}function c(u){r("tabChange",u)}function l(u){i.value.show(u)}function d(u){i.value.show(u)}return(u,m)=>(t.openBlock(),t.createElementBlock("div",Qr,[t.createElementVNode("sl-tab-group",{class:"viur-shop-order-tabgroup",noScrollControls:"",onSlTabShow:c,ref_key:"tabGroup",ref:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.tabNames,(g,h)=>{var b;return t.openBlock(),t.createElementBlock("sl-tab",{class:"viur-shop-order-tab",slot:"nav",panel:g,key:g,disabled:e.tabs[g].disabled},[t.createElementVNode("div",Xr,[(b=e.tabs[g].icon)!=null&&b.name?(t.openBlock(),t.createElementBlock("sl-icon",{key:0,class:"viur-shop-order-step-icon",name:e.tabs[g].icon.name,library:e.tabs[g].icon.library},null,8,ea)):t.createCommentVNode("",!0),t.createElementVNode("div",ta,[t.createTextVNode(t.toDisplayString(h+1)+". ",1),t.createElementVNode("span",na,t.toDisplayString(e.tabs[g].displayName),1)])]),h(t.openBlock(),t.createElementBlock("sl-tab-panel",{class:"viur-shop-order-tab-panel",name:g,key:g},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tabs[g].component),t.mergeProps({ref_for:!0},e.tabs[g].props?e.tabs[g].props:""),null,16)),h!==s.tabNames.length-1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["viur-shop-form-footer",{"flex-end":s.isFirstTab(h)}])},[t.withDirectives(t.createElementVNode("sl-button",{type:"submit",onClick:b=>l(s.tabNames[h-1])}," Zur\xFCck ",8,ra),[[t.vShow,h!==0]]),t.createElementVNode("sl-button",{type:"submit",variant:"primary",onClick:b=>d(s.tabNames[h+1])}," Weiter ",8,aa)],2)):t.createCommentVNode("",!0)],8,sa))),128))],544),ia]))}},[["__scopeId","data-v-50f31583"]]),_c="",je=e=>(t.pushScopeId("data-v-dc32dd0b"),e=e(),t.popScopeId(),e),la={class:"viur-shop-item-card-card"},ca=["src","alt"],da={class:"viur-shop-item-card-headline"},ua=je(()=>t.createElementVNode("h4",{class:"viur-shop-item-card-subline"},"B 21 x H 6,5 x T 19 cm",-1)),ma={class:"viur-shop-item-card-price"},ha={class:"viur-shop-item-card-footer",slot:"footer"},pa=je(()=>t.createElementVNode("sl-icon",{name:"bag-plus",slot:"prefix"},null,-1)),fa=je(()=>t.createElementVNode("sl-button",{size:"small",outline:"",class:"viur-shop-item-card-add-to-favourites-btn",variant:"primary",title:"Add to favourites"},[t.createElementVNode("sl-icon",{name:"heart",slot:"prefix"})],-1)),$t=$({__name:"ItemCard",props:{item:{type:Object,required:!0}},setup(e){const n=P();function o(r){let s="https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";return r.dk_artikel.dest.image?pe.Request.downloadUrlFor(r.dk_artikel.dest.image):s}return(r,s)=>(t.openBlock(),t.createElementBlock("sl-card",la,[t.createElementVNode("img",{slot:"image",src:o(e.item),alt:e.item.shop_name,loading:"lazy",class:"viur-shop-item-card-image"},null,8,ca),t.createElementVNode("h3",da,t.toDisplayString(e.item.shop_name),1),ua,t.createElementVNode("div",ma,t.toDisplayString(e.item.shop_price_retail)+" \u20AC",1),t.createElementVNode("div",ha,[t.createElementVNode("sl-button",{size:"small",class:"viur-shop-item-card-add-to-cart-btn",variant:"primary",title:"Add to cart",onClick:s[0]||(s[0]=t.withModifiers(i=>t.unref(n).addToCart(e.item.key,t.unref(n).state.basket),["stop"]))},[pa,t.createTextVNode(" In den Warenkorb ")]),fa])]))}},[["__scopeId","data-v-dc32dd0b"]]),$c="",ga=e=>(t.pushScopeId("data-v-532e5cf3"),e=e(),t.popScopeId(),e),ba={key:0,class:"viur-shop-loading-wrap"},_a=[ga(()=>t.createElementVNode("sl-spinner",null,null,-1))],ya={key:1,class:"bind"},$a={class:"page-header"},Ea={class:"viur-shop-category-view-list"},ka=["loading","disabled"],Sa=Object.freeze(Object.defineProperty({__proto__:null,default:$({__name:"CategoryView",props:{skellist:{type:Array},filter:{type:Boolean,default:!0},pageHeader:{type:String,default:"Artikel Liste"},listHandler:{type:Object,required:!0}},setup(e){const n=e,o=I.useRoute(),r=P(),s=t.reactive({skellist:[],loading:!0,currentCursor:"",isLastItem:!1,itemCount:99,itemType:t.computed(()=>o.params.identifier)}),i=n.listHandler;async function a(){s.loading=!0,await i.next(),s.skellist.length{await r.init(),await i.fetch(!0),s.skellist=i.state.skellist,s.loading=!1}),(c,l)=>s.loading?(t.openBlock(),t.createElementBlock("div",ba,_a)):(t.openBlock(),t.createElementBlock("div",ya,[t.createElementVNode("div",$a,[t.createElementVNode("h1",null,t.toDisplayString(e.pageHeader),1)]),e.filter?t.renderSlot(c.$slots,"filter",{key:0},()=>[t.createTextVNode(" text-transform text-transform TEST ")],!0):t.createCommentVNode("",!0),t.createElementVNode("div",Ea,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.skellist,d=>(t.openBlock(),t.createBlock($t,{key:d.shop_name,item:d},null,8,["item"]))),128))]),t.createElementVNode("sl-button",{onClick:a,loading:s.loading,disabled:s.isLastItem,class:"viur-shop-category-view-more-button"}," Mehr anzeigen ",8,ka)]))}},[["__scopeId","data-v-532e5cf3"]])},Symbol.toStringTag,{value:"Module"})),wc="",ke=e=>(t.pushScopeId("data-v-688e20e0"),e=e(),t.popScopeId(),e),wa={class:"bind"},va=ke(()=>t.createElementVNode("h1",{class:"viur-shop-success-headline headline"},"Vielen Dank f\xFCr Ihre Bestellung",-1)),Ba=ke(()=>t.createElementVNode("p",{class:"paragraph"},[t.createElementVNode("strong",null,"Ihre Bestellnummer:"),t.createTextVNode(" 123345670 ")],-1)),Ca={class:"paragraph"},Na=ke(()=>t.createElementVNode("br",null,null,-1)),Va={class:"btn-wrap"},Aa=ke(()=>t.createElementVNode("sl-button",{size:"medium"}," Zur Startseite ",-1)),Et=$({__name:"OrderComplete",props:{redirectUrl:{type:Object,required:!0}},setup(e){function n(){}return(o,r)=>(t.openBlock(),t.createElementBlock("div",wa,[va,Ba,t.createElementVNode("p",Ca,[t.createTextVNode(" Wir haben Ihre Bestellung erhalten und werden diese schenllstm\xF6glich bearbeiten."),Na,t.createTextVNode(" Sie erhalten in wenigen Minuten eine Best\xE4tigung per E-Mail. "),t.createElementVNode("div",Va,[Aa,t.createElementVNode("sl-button",{variant:"primary",onClick:r[0]||(r[0]=s=>void 0),size:"medium"}," Weiter Einkaufen ")])])]))}},[["__scopeId","data-v-688e20e0"]]),Bc="",Te=e=>(t.pushScopeId("data-v-4d14c6fe"),e=e(),t.popScopeId(),e),Ia=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),Oa={class:"viur-shop-form-wrap"},Pa=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),Da={class:"viur-shop-form-wrap"},La={key:0},ja=Te(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),Ta={class:"viur-shop-form-wrap"},kt=$({__name:"UserInformation",props:{mode:{type:String,default:"form"},conditions:{type:Function}},setup(e){const n=P(),o=t.reactive({formValues:{},requiredFieldsFilled:t.computed(()=>{if(o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("billing.city")&&Object.keys(o.formValues).includes("billing.street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname");if(!o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname")}),isCustomAdress:!1,addSkel:null,errors:{}});function r(a){o.isCustomAdress=!a.target.checked}function s(a,c){for(const[l,d]of Object.entries(c.value[0]))o.formValues[l]=d}function i(a){let c={};return Array.isArray(a)?(a.forEach(l=>{let d=l[0],u=l[1];c[d]=u}),console.log("output",c),c):a}return t.watch(o.formValues,a=>{Object.entries(a).forEach(([c,l])=>{l===""&&delete o.formValues[c]})}),t.onBeforeMount(async()=>{await n.getAddressStructure(),await n.getAddress(),o.addSkel=i(n.state.structure.address),o.formValues=n.state.shippingAddress}),(a,c)=>{const l=t.resolveComponent("bone");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[Ia,t.createElementVNode("div",Oa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Info"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Info"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m),class:"viur-shop-form-grid-w-2"},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),t.createElementVNode("div",null,[Pa,t.createElementVNode("div",Da,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),o.isCustomAdress?(t.openBlock(),t.createElementBlock("div",La,[ja,t.createElementVNode("div",Ta,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+u)},[d.visible&&d.params.group==="Customer Address"?(t.openBlock(),t.createBlock(l,{key:0,is:t.unref(U)(d.type),name:u,structure:i(o.addSkel),errors:o.errors[u]?o.errors[u]:[],skel:o.formValues,onChange:m=>s(u,m)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("sl-checkbox",{onSlChange:r,checked:"",class:"viur-shop-form-bill-check"}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-4d14c6fe"]]),Nc="",F=e=>(t.pushScopeId("data-v-c4232b7a"),e=e(),t.popScopeId(),e),Ma=F(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),Ra={class:"viur-shop-form-wrap"},xa=F(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),Ua=["onSlChange","onSlClear","label"],za=["value"],Fa={key:0},qa=F(()=>t.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),Ha={class:"viur-shop-form-wrap"},Wa=[F(()=>t.createElementVNode("sl-icon",{name:"x-lg",slot:"prefix"},null,-1))],Ka=F(()=>t.createElementVNode("sl-icon",{name:"plus-lg",slot:"prefix"},null,-1)),Za=F(()=>t.createElementVNode("sl-icon",{slot:"icon",name:"exclamation-triangle"},null,-1)),Ga=F(()=>t.createElementVNode("br",null,null,-1)),Ja=$({__name:"UserInfoMulti",props:{mode:{type:String,default:"form"}},setup(e){const n=P(),o=t.reactive({formValues:{},requiredFieldsFilled:t.computed(()=>{if(o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("billing.city")&&Object.keys(o.formValues).includes("billing.street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname");if(!o.isCustomAdress)return Object.keys(o.formValues).includes("city")&&Object.keys(o.formValues).includes("street")&&Object.keys(o.formValues).includes("email")&&Object.keys(o.formValues).includes("firstname")&&Object.keys(o.formValues).includes("lastname")}),isCustomAdress:!1,shippingAdressAmount:1,maxShippingAdress:t.computed(()=>Object.keys(n.state.carts).length+2),amountAlert:{title:"",msg:""},items:null,addSkel:null,errors:{},selectedItem:{},isInit:t.computed(()=>!!n.state.carts[n.state.basket])}),r=t.ref(null),s=t.ref(null);function i(g){g.target.checked&&(o.isCustomAdress=!1),g.target.checked||(o.isCustomAdress=!0)}function a(){if(o.shippingAdressAmount===o.maxShippingAdress){o.amountAlert.title="Zu viele Lieferadressen",o.amountAlert.msg=`Sie k\xF6nnen nur maximal: "${o.maxShippingAdress}" Lieferadressen verwenden.`,s.value.show();return}o.shippingAdressAmount+=1}function c(g,h){for(const[b,p]of Object.entries(h.value[0]))o.formValues[b]=p}function l(){if(o.shippingAdressAmount===1){o.amountAlert.title="Zu wenig Lieferadressen",o.amountAlert.msg="Mindestens eine Lieferadresse muss angegeben werden.",s.value.show();return}o.shippingAdressAmount-=1}function d(g,h){if(console.log(g.target.value),!g.target.value.length){u();return}o.selectedItem[h]=g.target.value,o.isItemSelected=!0}function u(g,h){console.log("clearing..."),delete o.selectedItem[h],o.isItemSelected=!1}function m(g){let h={};return Array.isArray(g)?(g.forEach(b=>{let p=b[0],f=b[1];h[p]=f}),h):g}return t.watch(o.formValues,g=>{Object.entries(g).forEach(([h,b])=>{b===""&&delete o.formValues[h]})}),t.onBeforeMount(async()=>{await n.getAddressStructure(),o.addSkel=m(n.state.structure.address)}),(g,h)=>{const b=t.resolveComponent("bone");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",null,[Ma,t.createElementVNode("div",Ra,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(p,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[p.visible&&p.params.group==="Customer Info"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+f)},[p.visible&&p.params.group==="Customer Info"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(p.type),name:f,structure:m(o.addSkel),errors:o.errors[f]?o.errors[f]:[],skel:o.formValues,onChange:_=>c(f,_)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])]),xa,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.shippingAdressAmount,p=>(t.openBlock(),t.createElementBlock("div",{class:"viur-shop-form-wrap",key:p},[t.createElementVNode("sl-select",{clearable:"",ref_for:!0,ref_key:"itemSelection",ref:r,onSlChange:f=>d(f,p),onSlClear:f=>u(f,p),label:o.selectedItem[p]?t.unref(n).state.carts[o.selectedItem[p]].info.name:"Warenkorb f\xFCr Adresse w\xE4hlen.",class:"viur-shop-form-cart-select"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).state.carts,(f,_)=>(t.openBlock(),t.createElementBlock("sl-option",{value:_},t.toDisplayString(f.info.name),9,za))),256))],40,Ua),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(f,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[f.visible&&f.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+_)},[f.visible&&f.params.group==="Customer Address"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(f.type),name:_,structure:m(o.addSkel),errors:o.errors[_]?o.errors[_]:[],skel:o.formValues,onChange:y=>c(_,y)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))]))),128)),o.isCustomAdress?(t.openBlock(),t.createElementBlock("div",Fa,[qa,t.createElementVNode("div",Ha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.addSkel,(p,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[p.visible&&p.params.group==="Customer Address"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("viur-shop-form-bone-"+f)},[p.visible&&p.params.group==="Customer Address"?(t.openBlock(),t.createBlock(b,{key:0,is:t.unref(U)(p.type),name:f,structure:m(o.addSkel),errors:o.errors[f]?o.errors[f]:[],skel:o.formValues,onChange:_=>c(f,_)},null,8,["is","name","structure","errors","skel","onChange"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],64))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"viur-shop-form-btn-wrap"},[t.createElementVNode("sl-button",{size:"medium",onClick:l,title:"Lieferadresse entfernen"},Wa),t.createElementVNode("sl-button",{size:"medium",variant:"primary",onClick:a},[Ka,t.createTextVNode(" Lieferadresse hinzuf\xFCgen ")])]),t.createElementVNode("sl-alert",{variant:"warning",duration:"2000",ref_key:"shippingWarning",ref:s,closable:""},[Za,t.createElementVNode("strong",null,t.toDisplayString(o.amountAlert.title),1),Ga,t.createTextVNode(" "+t.toDisplayString(o.amountAlert.msg),1)],512),t.createElementVNode("sl-checkbox",{onSlChange:i,checked:"",class:"viur-shop-form-bill-check"}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-c4232b7a"]]),Me={__name:"ExampleUsage",setup(e){const n=P(),o=t.computed(()=>n.state.basketRootNode.key?n.state.basketRootNode.key:""),r=t.reactive({rootNode:{},tabs:{cart:{component:t.shallowRef($e),props:{sidebar:!0,mode:"basket",cartKey:o},displayName:"Warenkorb",icon:{name:"bag"},position:2,disabled:!1,atShow:null,atHide:null},confirm:{component:t.shallowRef(Ee),props:{},displayName:"Bestellung pr\xFCfen",icon:{name:"clipboard-check"},position:5,disabled:!1,atShow:null,atHide:null},orderComplete:{component:t.shallowRef(Et),props:{},displayName:"Bestellung Abgeschlossen",icon:{name:"bag-check"},position:6,disabled:!0,atShow:null,atHide:null},userInfo:{component:t.shallowRef(kt),props:{},displayName:"Daten Eingeben",icon:{name:"card-list"},position:3,disabled:!1,atShow:null,atHide:null},userInfoMulti:{component:t.shallowRef(Ja),props:{},displayName:"Daten Eingeben (Multi)",icon:{name:"card-list"},position:4,disabled:!1,atShow:null,atHide:null}}});function s(i){(i==null?void 0:i.detail.name)==="confirm"&&(r.tabs.orderComplete.disabled=!1)}return t.onBeforeMount(async()=>{await n.init(),await n.getAddressStructure(),console.log("debug init exampleusage :",n.state.basketRootNode)}),(i,a)=>(t.openBlock(),t.createBlock(Le,{tabs:r.tabs,onTabChange:s},null,8,["tabs"]))}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"})),Ic="",St=e=>(t.pushScopeId("data-v-d67cb5c9"),e=e(),t.popScopeId(),e),Ya=["id","selected"],Xa=St(()=>t.createElementVNode("img",{slot:"image",src:"https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80",alt:"A kitten sits patiently between a terracotta pot and decorative grasses."},null,-1)),ei={slot:"footer"},ti=St(()=>t.createElementVNode("br",null,null,-1)),ni=$({__name:"SelectPaymentProvider",setup(e){const n=P();function o(r){r.target.selected?(console.log("a",n.state.selectedPaymentProvider),console.log("b",n.state.paymentProviders),n.state.selectedPaymentProvider=n.state.paymentProviders[r.target.id.replace("povider__","")],console.log(n.state.selectedPaymentProvider),document.querySelectorAll("sl-card").forEach(s=>{s!==r.target&&(s.selected=!1)})):r.target.selected=!0,console.log("provider changed",r)}return t.onBeforeMount(async()=>{await n.payment_providers_list()}),(r,s)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).state.paymentProviders,(i,a,c)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("sl-card",{selectable:"",id:"povider__"+a,onSlChange:o,selected:c===0},[Xa,t.createElementVNode("div",ei,[t.createTextVNode(t.toDisplayString(i.title)+" ",1),ti,t.createTextVNode(" "+t.toDisplayString(i.descr),1)])],40,Ya)]))),256))}},[["__scopeId","data-v-d67cb5c9"]]),oi=t.defineComponent({props:{},components:{},setup(e,n){const o=I.useRoute();return{state:t.reactive({}),route:o}}}),si={class:"home"};function ri(e,n,o,r,s,i){return t.openBlock(),t.createElementBlock("div",si,"View "+t.toDisplayString(e.route.path)+" is missing.",1)}const ai=[{path:"/:pathMatch(.*)*",name:"view_missing",component:$(oi,[["render",ri]])},{path:"/shop/category/:identifier",name:"CategoryView",component:()=>Promise.resolve().then(()=>Sa)},{path:"/shop/item/:item",name:"itemView",component:()=>Promise.resolve().then(()=>kl)},{path:"/shop/cart/view",name:"CartView",component:()=>Promise.resolve().then(()=>jr)},{path:"/shop/order/",name:"OrderView",component:()=>Promise.resolve().then(()=>Qa)},{path:"/shop/order/confirm",name:"ConfirmView",component:()=>Promise.resolve().then(()=>Gr)}];function ii(e,n=!1){let o=[];return n?o=e:o=e.concat(ai),I.createRouter({history:I.createWebHashHistory("/"),routes:o})}const li=fe.createPinia(),ci={install(e){e.component("CartView",$e),e.component("ExampleUsage",Me),e.component("ConfirmView",Ee),e.component("OrderView",Le),e.use(li)}};function wt(e,n,o){const r=s=>Object.is(s,-0)?0:s;return eo?r(o):r(e)}var di=class{constructor(e,n){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},e.addController(this),this.host=e,this.tickCallback=n}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(e){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},e)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Se=globalThis,Re=Se.ShadowRoot&&(Se.ShadyCSS===void 0||Se.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xe=Symbol(),wt=new WeakMap;class vt{constructor(n,o,r){if(this._$cssResult$=!0,r!==xe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Re&&n===void 0){const r=o!==void 0&&o.length===1;r&&(n=wt.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),r&&wt.set(o,n))}return n}toString(){return this.cssText}}const ni=e=>new vt(typeof e=="string"?e:e+"",void 0,xe),Ue=(e,...n)=>{const o=e.length===1?e[0]:n.reduce((r,s,i)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[i+1],e[0]);return new vt(o,e,xe)},oi=(e,n)=>{if(Re)e.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of n){const r=document.createElement("style"),s=Se.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,e.appendChild(r)}},Bt=Re?e=>e:e=>e instanceof CSSStyleSheet?(n=>{let o="";for(const r of n.cssRules)o+=r.cssText;return ni(o)})(e):e;/** + */const Se=globalThis,Re=Se.ShadowRoot&&(Se.ShadyCSS===void 0||Se.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xe=Symbol(),vt=new WeakMap;class Bt{constructor(n,o,r){if(this._$cssResult$=!0,r!==xe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Re&&n===void 0){const r=o!==void 0&&o.length===1;r&&(n=vt.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),r&&vt.set(o,n))}return n}toString(){return this.cssText}}const ui=e=>new Bt(typeof e=="string"?e:e+"",void 0,xe),Ue=(e,...n)=>{const o=e.length===1?e[0]:n.reduce((r,s,i)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[i+1],e[0]);return new Bt(o,e,xe)},mi=(e,n)=>{if(Re)e.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of n){const r=document.createElement("style"),s=Se.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,e.appendChild(r)}},Ct=Re?e=>e:e=>e instanceof CSSStyleSheet?(n=>{let o="";for(const r of n.cssRules)o+=r.cssText;return ui(o)})(e):e;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:si,defineProperty:ri,getOwnPropertyDescriptor:ai,getOwnPropertyNames:ii,getOwnPropertySymbols:li,getPrototypeOf:ci}=Object,T=globalThis,Ct=T.trustedTypes,di=Ct?Ct.emptyScript:"",ze=T.reactiveElementPolyfillSupport,re=(e,n)=>e,we={toAttribute(e,n){switch(n){case Boolean:e=e?di:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,n){let o=e;switch(n){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Fe=(e,n)=>!si(e,n),Nt={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Fe};(rn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(an=T.litPropertyMetadata)!=null||(T.litPropertyMetadata=new WeakMap);class Q extends HTMLElement{static addInitializer(n){var o;this._$Ei(),((o=this.l)!=null?o:this.l=[]).push(n)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(n,o=Nt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(n,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(n,r,o);s!==void 0&&ri(this.prototype,n,s)}}static getPropertyDescriptor(n,o,r){var a;const{get:s,set:i}=(a=ai(this.prototype,n))!=null?a:{get(){return this[o]},set(c){this[o]=c}};return{get(){return s==null?void 0:s.call(this)},set(c){const l=s==null?void 0:s.call(this);i.call(this,c),this.requestUpdate(n,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){var o;return(o=this.elementProperties.get(n))!=null?o:Nt}static _$Ei(){if(this.hasOwnProperty(re("elementProperties")))return;const n=ci(this);n.finalize(),n.l!==void 0&&(this.l=[...n.l]),this.elementProperties=new Map(n.elementProperties)}static finalize(){if(this.hasOwnProperty(re("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(re("properties"))){const o=this.properties,r=[...ii(o),...li(o)];for(const s of r)this.createProperty(s,o[s])}const n=this[Symbol.metadata];if(n!==null){const o=litPropertyMetadata.get(n);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const r=new Set(n.flat(1/0).reverse());for(const s of r)o.unshift(Bt(s))}else n!==void 0&&o.push(Bt(n));return o}static _$Eu(n,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof n=="string"?n.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var n;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(n=this.constructor.l)==null||n.forEach(o=>o(this))}addController(n){var o,r;((o=this._$EO)!=null?o:this._$EO=new Set).add(n),this.renderRoot!==void 0&&this.isConnected&&((r=n.hostConnected)==null||r.call(n))}removeController(n){var o;(o=this._$EO)==null||o.delete(n)}_$E_(){const n=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(n.set(r,this[r]),delete this[r]);n.size>0&&(this._$Ep=n)}createRenderRoot(){var o;const n=(o=this.shadowRoot)!=null?o:this.attachShadow(this.constructor.shadowRootOptions);return oi(n,this.constructor.elementStyles),n}connectedCallback(){var n,o;(n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(o=this._$EO)==null||o.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$EO)==null||n.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(n,o,r){this._$AK(n,r)}_$EC(n,o){var i;const r=this.constructor.elementProperties.get(n),s=this.constructor._$Eu(n,r);if(s!==void 0&&r.reflect===!0){const a=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:we).toAttribute(o,r.type);this._$Em=n,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(n,o){var i;const r=this.constructor,s=r._$Eh.get(n);if(s!==void 0&&this._$Em!==s){const a=r.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)==null?void 0:i.fromAttribute)!==void 0?a.converter:we;this._$Em=s,this[s]=c.fromAttribute(o,a.type),this._$Em=null}}requestUpdate(n,o,r){var s;if(n!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(n)),!((s=r.hasChanged)!=null?s:Fe)(this[n],o))return;this.P(n,o,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(n,o,r){var s;this._$AL.has(n)||this._$AL.set(n,o),r.reflect===!0&&this._$Em!==n&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(n)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,c]of this._$Ep)this[a]=c;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[a,c]of i)c.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],c)}let n=!1;const o=this._$AL;try{n=this.shouldUpdate(o),n?(this.willUpdate(o),(s=this._$EO)==null||s.forEach(i=>{var a;return(a=i.hostUpdate)==null?void 0:a.call(i)}),this.update(o)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(o)}willUpdate(n){}_$AE(n){var o;(o=this._$EO)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(n){return!0}update(n){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(n){}firstUpdated(n){}}Q.elementStyles=[],Q.shadowRootOptions={mode:"open"},Q[re("elementProperties")]=new Map,Q[re("finalized")]=new Map,ze==null||ze({ReactiveElement:Q}),((ln=T.reactiveElementVersions)!=null?ln:T.reactiveElementVersions=[]).push("2.0.4");/** + */const{is:hi,defineProperty:pi,getOwnPropertyDescriptor:fi,getOwnPropertyNames:gi,getOwnPropertySymbols:bi,getPrototypeOf:_i}=Object,T=globalThis,Nt=T.trustedTypes,yi=Nt?Nt.emptyScript:"",ze=T.reactiveElementPolyfillSupport,re=(e,n)=>e,we={toAttribute(e,n){switch(n){case Boolean:e=e?yi:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,n){let o=e;switch(n){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Fe=(e,n)=>!hi(e,n),Vt={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Fe};(an=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ln=T.litPropertyMetadata)!=null||(T.litPropertyMetadata=new WeakMap);class Y extends HTMLElement{static addInitializer(n){var o;this._$Ei(),((o=this.l)!=null?o:this.l=[]).push(n)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(n,o=Vt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(n,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(n,r,o);s!==void 0&&pi(this.prototype,n,s)}}static getPropertyDescriptor(n,o,r){var a;const{get:s,set:i}=(a=fi(this.prototype,n))!=null?a:{get(){return this[o]},set(c){this[o]=c}};return{get(){return s==null?void 0:s.call(this)},set(c){const l=s==null?void 0:s.call(this);i.call(this,c),this.requestUpdate(n,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){var o;return(o=this.elementProperties.get(n))!=null?o:Vt}static _$Ei(){if(this.hasOwnProperty(re("elementProperties")))return;const n=_i(this);n.finalize(),n.l!==void 0&&(this.l=[...n.l]),this.elementProperties=new Map(n.elementProperties)}static finalize(){if(this.hasOwnProperty(re("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(re("properties"))){const o=this.properties,r=[...gi(o),...bi(o)];for(const s of r)this.createProperty(s,o[s])}const n=this[Symbol.metadata];if(n!==null){const o=litPropertyMetadata.get(n);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const r=new Set(n.flat(1/0).reverse());for(const s of r)o.unshift(Ct(s))}else n!==void 0&&o.push(Ct(n));return o}static _$Eu(n,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof n=="string"?n.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var n;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(n=this.constructor.l)==null||n.forEach(o=>o(this))}addController(n){var o,r;((o=this._$EO)!=null?o:this._$EO=new Set).add(n),this.renderRoot!==void 0&&this.isConnected&&((r=n.hostConnected)==null||r.call(n))}removeController(n){var o;(o=this._$EO)==null||o.delete(n)}_$E_(){const n=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(n.set(r,this[r]),delete this[r]);n.size>0&&(this._$Ep=n)}createRenderRoot(){var o;const n=(o=this.shadowRoot)!=null?o:this.attachShadow(this.constructor.shadowRootOptions);return mi(n,this.constructor.elementStyles),n}connectedCallback(){var n,o;(n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(o=this._$EO)==null||o.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$EO)==null||n.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(n,o,r){this._$AK(n,r)}_$EC(n,o){var i;const r=this.constructor.elementProperties.get(n),s=this.constructor._$Eu(n,r);if(s!==void 0&&r.reflect===!0){const a=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:we).toAttribute(o,r.type);this._$Em=n,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(n,o){var i;const r=this.constructor,s=r._$Eh.get(n);if(s!==void 0&&this._$Em!==s){const a=r.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)==null?void 0:i.fromAttribute)!==void 0?a.converter:we;this._$Em=s,this[s]=c.fromAttribute(o,a.type),this._$Em=null}}requestUpdate(n,o,r){var s;if(n!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(n)),!((s=r.hasChanged)!=null?s:Fe)(this[n],o))return;this.P(n,o,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(n,o,r){var s;this._$AL.has(n)||this._$AL.set(n,o),r.reflect===!0&&this._$Em!==n&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(n)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,c]of this._$Ep)this[a]=c;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[a,c]of i)c.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],c)}let n=!1;const o=this._$AL;try{n=this.shouldUpdate(o),n?(this.willUpdate(o),(s=this._$EO)==null||s.forEach(i=>{var a;return(a=i.hostUpdate)==null?void 0:a.call(i)}),this.update(o)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(o)}willUpdate(n){}_$AE(n){var o;(o=this._$EO)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(n){return!0}update(n){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(n){}firstUpdated(n){}}Y.elementStyles=[],Y.shadowRootOptions={mode:"open"},Y[re("elementProperties")]=new Map,Y[re("finalized")]=new Map,ze==null||ze({ReactiveElement:Y}),((cn=T.reactiveElementVersions)!=null?cn:T.reactiveElementVersions=[]).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const ae=globalThis,ve=ae.trustedTypes,Vt=ve?ve.createPolicy("lit-html",{createHTML:e=>e}):void 0,At="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,It="?"+M,ui=`<${It}>`,F=document,ie=()=>F.createComment(""),le=e=>e===null||typeof e!="object"&&typeof e!="function",Ot=Array.isArray,mi=e=>Ot(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",qe=`[ -\f\r]`,ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Lt=/>/g,q=RegExp(`>|${qe}(?:([^\\s"'>=/]+)(${qe}*=${qe}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,jt=/"/g,Tt=/^(?:script|style|textarea|title)$/i,hi=e=>(n,...o)=>({_$litType$:e,strings:n,values:o}),j=hi(1),H=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),Mt=new WeakMap,K=F.createTreeWalker(F,129);function Rt(e,n){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(n):n}const pi=(e,n)=>{const o=e.length-1,r=[];let s,i=n===2?"":"",a=ce;for(let c=0;c"?(a=s!=null?s:ce,m=-1):u[1]===void 0?m=-2:(m=a.lastIndex-u[2].length,d=u[1],a=u[3]===void 0?q:u[3]==='"'?jt:Pt):a===jt||a===Pt?a=q:a===Dt||a===Lt?a=ce:(a=q,s=void 0);const h=a===q&&e[c+1].startsWith("/>")?" ":"";i+=a===ce?l+ui:m>=0?(r.push(d),l.slice(0,m)+At+l.slice(m)+M+h):l+M+(m===-2?c:h)}return[Rt(e,i+(e[o]||"")+(n===2?"":"")),r]};class de{constructor({strings:n,_$litType$:o},r){let s;this.parts=[];let i=0,a=0;const c=n.length-1,l=this.parts,[d,u]=pi(n,o);if(this.el=de.createElement(d,r),K.currentNode=this.el.content,o===2){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=K.nextNode())!==null&&l.length0){s.textContent=ve?ve.emptyScript:"";for(let h=0;h2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=N}_$AI(n,o=this,r,s){const i=this.strings;let a=!1;if(i===void 0)n=X(this,n,o,0),a=!le(n)||n!==this._$AH&&n!==H,a&&(this._$AH=n);else{const c=n;let l,d;for(n=i[0],l=0;l{var i,a;const r=(i=o==null?void 0:o.renderBefore)!=null?i:n;let s=r._$litPart$;if(s===void 0){const c=(a=o==null?void 0:o.renderBefore)!=null?a:null;r._$litPart$=s=new ue(n.insertBefore(ie(),c),c,void 0,o!=null?o:{})}return s._$AI(e),s};/** + */const ae=globalThis,ve=ae.trustedTypes,At=ve?ve.createPolicy("lit-html",{createHTML:e=>e}):void 0,It="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,Ot="?"+M,$i=`<${Ot}>`,q=document,ie=()=>q.createComment(""),le=e=>e===null||typeof e!="object"&&typeof e!="function",Pt=Array.isArray,Ei=e=>Pt(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",qe=`[ +\f\r]`,ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Lt=/>/g,H=RegExp(`>|${qe}(?:([^\\s"'>=/]+)(${qe}*=${qe}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,Tt=/"/g,Mt=/^(?:script|style|textarea|title)$/i,ki=e=>(n,...o)=>({_$litType$:e,strings:n,values:o}),j=ki(1),K=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),Rt=new WeakMap,Z=q.createTreeWalker(q,129);function xt(e,n){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return At!==void 0?At.createHTML(n):n}const Si=(e,n)=>{const o=e.length-1,r=[];let s,i=n===2?"":"",a=ce;for(let c=0;c"?(a=s!=null?s:ce,m=-1):u[1]===void 0?m=-2:(m=a.lastIndex-u[2].length,d=u[1],a=u[3]===void 0?H:u[3]==='"'?Tt:jt):a===Tt||a===jt?a=H:a===Dt||a===Lt?a=ce:(a=H,s=void 0);const h=a===H&&e[c+1].startsWith("/>")?" ":"";i+=a===ce?l+$i:m>=0?(r.push(d),l.slice(0,m)+It+l.slice(m)+M+h):l+M+(m===-2?c:h)}return[xt(e,i+(e[o]||"")+(n===2?"":"")),r]};class de{constructor({strings:n,_$litType$:o},r){let s;this.parts=[];let i=0,a=0;const c=n.length-1,l=this.parts,[d,u]=Si(n,o);if(this.el=de.createElement(d,r),Z.currentNode=this.el.content,o===2){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=Z.nextNode())!==null&&l.length0){s.textContent=ve?ve.emptyScript:"";for(let h=0;h2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=N}_$AI(n,o=this,r,s){const i=this.strings;let a=!1;if(i===void 0)n=X(this,n,o,0),a=!le(n)||n!==this._$AH&&n!==K,a&&(this._$AH=n);else{const c=n;let l,d;for(n=i[0],l=0;l{var i,a;const r=(i=o==null?void 0:o.renderBefore)!=null?i:n;let s=r._$litPart$;if(s===void 0){const c=(a=o==null?void 0:o.renderBefore)!=null?a:null;r._$litPart$=s=new ue(n.insertBefore(ie(),c),c,void 0,o!=null?o:{})}return s._$AI(e),s};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class me extends Q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o,r;const n=super.createRenderRoot();return(r=(o=this.renderOptions).renderBefore)!=null||(o.renderBefore=n.firstChild),n}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=$i(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)==null||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)==null||n.setConnected(!1)}render(){return H}}me._$litElement$=!0,me.finalized=!0,(dn=globalThis.litElementHydrateSupport)==null||dn.call(globalThis,{LitElement:me});const We=globalThis.litElementPolyfillSupport;We==null||We({LitElement:me}),((un=globalThis.litElementVersions)!=null?un:globalThis.litElementVersions=[]).push("4.0.6");var Ei=Ue` + */class me extends Y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o,r;const n=super.createRenderRoot();return(r=(o=this.renderOptions).renderBefore)!=null||(o.renderBefore=n.firstChild),n}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=Vi(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)==null||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)==null||n.setConnected(!1)}render(){return K}}me._$litElement$=!0,me.finalized=!0,(un=globalThis.litElementHydrateSupport)==null||un.call(globalThis,{LitElement:me});const We=globalThis.litElementPolyfillSupport;We==null||We({LitElement:me}),((mn=globalThis.litElementVersions)!=null?mn:globalThis.litElementVersions=[]).push("4.0.6");var Ai=Ue` :host { --slide-gap: var(--sl-spacing-medium, 1rem); --aspect-ratio: 16 / 9; @@ -169,7 +169,7 @@ var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,config outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } -`,xt=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,Ut=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,zt=(e,n,o)=>n in e?xt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,Ft=(e,n)=>{for(var o in n||(n={}))Si.call(n,o)&&zt(e,o,n[o]);if(Ut)for(var o of Ut(n))wi.call(n,o)&&zt(e,o,n[o]);return e},k=(e,n,o,r)=>{for(var s=r>1?void 0:r?ki(n,o):n,i=e.length-1,a;i>=0;i--)(a=e[i])&&(s=(r?a(n,o,s):a(s))||s);return r&&s&&xt(n,o,s),s};function vi(e,n){return new Promise(o=>{function r(s){s.target===e&&(e.removeEventListener(n,r),o())}e.addEventListener(n,r)})}function qt(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}const Ke=new Set,Bi=new MutationObserver(Zt),ee=new Map;let Ht=document.documentElement.dir||"ltr",Wt=document.documentElement.lang||navigator.language,Z;Bi.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Kt(...e){e.map(n=>{const o=n.$code.toLowerCase();ee.has(o)?ee.set(o,Object.assign(Object.assign({},ee.get(o)),n)):ee.set(o,n),Z||(Z=n)}),Zt()}function Zt(){Ht=document.documentElement.dir||"ltr",Wt=document.documentElement.lang||navigator.language,[...Ke.keys()].map(e=>{typeof e.requestUpdate=="function"&&e.requestUpdate()})}class Ci{constructor(n){this.host=n,this.host.addController(this)}hostConnected(){Ke.add(this.host)}hostDisconnected(){Ke.delete(this.host)}dir(){return`${this.host.dir||Ht}`.toLowerCase()}lang(){return`${this.host.lang||Wt}`.toLowerCase()}getTranslationData(n){var o,r;const s=new Intl.Locale(n.replace(/_/g,"-")),i=s==null?void 0:s.language.toLowerCase(),a=(r=(o=s==null?void 0:s.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",c=ee.get(`${i}-${a}`),l=ee.get(i);return{locale:s,language:i,region:a,primary:c,secondary:l}}exists(n,o){var r;const{primary:s,secondary:i}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[n]||i&&i[n]||o.includeFallback&&Z&&Z[n])}term(n,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let i;if(r&&r[n])i=r[n];else if(s&&s[n])i=s[n];else if(Z&&Z[n])i=Z[n];else return console.error(`No translation found for: ${String(n)}`),String(n);return typeof i=="function"?i(...o):i}date(n,o){return n=new Date(n),new Intl.DateTimeFormat(this.lang(),o).format(n)}number(n,o){return n=Number(n),isNaN(n)?"":new Intl.NumberFormat(this.lang(),o).format(n)}relativeTime(n,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(n,o)}}var Gt={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,n)=>`Go to slide ${e} of ${n}`,hidePassword:"Hide password",loading:"Loading",nextMonth:"Next month",nextSlide:"Next slide",numOptionsSelected:e=>e===0?"No options selected":e===1?"1 option selected":`${e} options selected`,previousMonth:"Previous month",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};Kt(Gt);var Ni=Gt,Vi=class extends Ci{};Kt(Ni);var Ze="";function Jt(e){Ze=e}function Ge(e=""){if(!Ze){const n=[...document.getElementsByTagName("script")],o=n.find(r=>r.hasAttribute("data-shoelace"));if(o)Jt(o.getAttribute("data-shoelace"));else{const r=n.find(i=>/shoelace(\.min)?\.js($|\?)/.test(i.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(i.src));let s="";r&&(s=r.getAttribute("src")),Jt(s.split("/").slice(0,-1).join("/"))}}return Ze.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}var Ai={name:"default",resolver:(e,n=!1)=>Ge(n?`assets/bootstrap-icons/${e}.svg`:`assets/bootstrap-icons/${e.substring(0,1)}/${e}.svg`)},Ii=Ai,Oi={name:"viur",resolver:(e,n=!1)=>Ge(`/assets/icons/${e}.svg`),mutator:e=>{e.setAttribute("fill","currentColor"),[...e.querySelectorAll("*")].map(n=>n.setAttribute("fill","inherit"))}},Di=Oi,Yt={caret:` +`,Ut=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertySymbols,Oi=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Ft=(e,n,o)=>n in e?Ut(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,qt=(e,n)=>{for(var o in n||(n={}))Oi.call(n,o)&&Ft(e,o,n[o]);if(zt)for(var o of zt(n))Pi.call(n,o)&&Ft(e,o,n[o]);return e},k=(e,n,o,r)=>{for(var s=r>1?void 0:r?Ii(n,o):n,i=e.length-1,a;i>=0;i--)(a=e[i])&&(s=(r?a(n,o,s):a(s))||s);return r&&s&&Ut(n,o,s),s};function Di(e,n){return new Promise(o=>{function r(s){s.target===e&&(e.removeEventListener(n,r),o())}e.addEventListener(n,r)})}function Ht(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}const Ke=new Set,Li=new MutationObserver(Gt),ee=new Map;let Wt=document.documentElement.dir||"ltr",Kt=document.documentElement.lang||navigator.language,G;Li.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Zt(...e){e.map(n=>{const o=n.$code.toLowerCase();ee.has(o)?ee.set(o,Object.assign(Object.assign({},ee.get(o)),n)):ee.set(o,n),G||(G=n)}),Gt()}function Gt(){Wt=document.documentElement.dir||"ltr",Kt=document.documentElement.lang||navigator.language,[...Ke.keys()].map(e=>{typeof e.requestUpdate=="function"&&e.requestUpdate()})}class ji{constructor(n){this.host=n,this.host.addController(this)}hostConnected(){Ke.add(this.host)}hostDisconnected(){Ke.delete(this.host)}dir(){return`${this.host.dir||Wt}`.toLowerCase()}lang(){return`${this.host.lang||Kt}`.toLowerCase()}getTranslationData(n){var o,r;const s=new Intl.Locale(n.replace(/_/g,"-")),i=s==null?void 0:s.language.toLowerCase(),a=(r=(o=s==null?void 0:s.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",c=ee.get(`${i}-${a}`),l=ee.get(i);return{locale:s,language:i,region:a,primary:c,secondary:l}}exists(n,o){var r;const{primary:s,secondary:i}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[n]||i&&i[n]||o.includeFallback&&G&&G[n])}term(n,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let i;if(r&&r[n])i=r[n];else if(s&&s[n])i=s[n];else if(G&&G[n])i=G[n];else return console.error(`No translation found for: ${String(n)}`),String(n);return typeof i=="function"?i(...o):i}date(n,o){return n=new Date(n),new Intl.DateTimeFormat(this.lang(),o).format(n)}number(n,o){return n=Number(n),isNaN(n)?"":new Intl.NumberFormat(this.lang(),o).format(n)}relativeTime(n,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(n,o)}}var Jt={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,n)=>`Go to slide ${e} of ${n}`,hidePassword:"Hide password",loading:"Loading",nextMonth:"Next month",nextSlide:"Next slide",numOptionsSelected:e=>e===0?"No options selected":e===1?"1 option selected":`${e} options selected`,previousMonth:"Previous month",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};Zt(Jt);var Ti=Jt,Mi=class extends ji{};Zt(Ti);var Ze="";function Qt(e){Ze=e}function Ge(e=""){if(!Ze){const n=[...document.getElementsByTagName("script")],o=n.find(r=>r.hasAttribute("data-shoelace"));if(o)Qt(o.getAttribute("data-shoelace"));else{const r=n.find(i=>/shoelace(\.min)?\.js($|\?)/.test(i.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(i.src));let s="";r&&(s=r.getAttribute("src")),Qt(s.split("/").slice(0,-1).join("/"))}}return Ze.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}var Ri={name:"default",resolver:(e,n=!1)=>Ge(n?`assets/bootstrap-icons/${e}.svg`:`assets/bootstrap-icons/${e.substring(0,1)}/${e}.svg`)},xi=Ri,Ui={name:"viur",resolver:(e,n=!1)=>Ge(`/assets/icons/${e}.svg`),mutator:e=>{e.setAttribute("fill","currentColor"),[...e.querySelectorAll("*")].map(n=>n.setAttribute("fill","inherit"))}},zi=Ui,Yt={caret:` @@ -273,7 +273,7 @@ var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,config - `},Li={name:"system",resolver:(e,n=!1)=>e in Yt?`data:image/svg+xml,${encodeURIComponent(Yt[e])}`:""},Pi=Li,ji=[Di,Ii,Pi],Je=[];function Ti(e){Je.push(e)}function Mi(e){Je=Je.filter(n=>n!==e)}function Qt(e){return ji.find(n=>n.name===e)}var Ri=Ue` + `},Fi={name:"system",resolver:(e,n=!1)=>e in Yt?`data:image/svg+xml,${encodeURIComponent(Yt[e])}`:""},qi=Fi,Hi=[zi,xi,qi],Je=[];function Wi(e){Je.push(e)}function Ki(e){Je=Je.filter(n=>n!==e)}function Xt(e){return Hi.find(n=>n.name===e)}var Zi=Ue` :host { display: inline-block; width: 1em; @@ -286,11 +286,11 @@ var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,config height: 100%; width: 100%; } -`;function G(e,n){const o=Ft({waitUntilFirstUpdate:!1},n);return(r,s)=>{const{update:i}=r,a=Array.isArray(e)?e:[e];r.update=function(c){a.forEach(l=>{const d=l;if(c.has(d)){const u=c.get(d),m=this[d];u!==m&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](u,m)}}),i.call(this,c)}}}/** +`;function J(e,n){const o=qt({waitUntilFirstUpdate:!1},n);return(r,s)=>{const{update:i}=r,a=Array.isArray(e)?e:[e];r.update=function(c){a.forEach(l=>{const d=l;if(c.has(d)){const u=c.get(d),m=this[d];u!==m&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](u,m)}}),i.call(this,c)}}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const xi={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Fe},Ui=(e=xi,n,o)=>{const{kind:r,metadata:s}=o;let i=globalThis.litPropertyMetadata.get(s);if(i===void 0&&globalThis.litPropertyMetadata.set(s,i=new Map),i.set(o.name,e),r==="accessor"){const{name:a}=o;return{set(c){const l=n.get.call(this);n.set.call(this,c),this.requestUpdate(a,l,e)},init(c){return c!==void 0&&this.P(a,void 0,e),c}}}if(r==="setter"){const{name:a}=o;return function(c){const l=this[a];n.call(this,c),this.requestUpdate(a,l,e)}}throw Error("Unsupported decorator location: "+r)};function V(e){return(n,o)=>typeof o=="object"?Ui(e,n,o):((r,s,i)=>{const a=s.hasOwnProperty(i);return s.constructor.createProperty(i,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(s,i):void 0})(e,n,o)}/** + */const Gi={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Fe},Ji=(e=Gi,n,o)=>{const{kind:r,metadata:s}=o;let i=globalThis.litPropertyMetadata.get(s);if(i===void 0&&globalThis.litPropertyMetadata.set(s,i=new Map),i.set(o.name,e),r==="accessor"){const{name:a}=o;return{set(c){const l=n.get.call(this);n.set.call(this,c),this.requestUpdate(a,l,e)},init(c){return c!==void 0&&this.P(a,void 0,e),c}}}if(r==="setter"){const{name:a}=o;return function(c){const l=this[a];n.call(this,c),this.requestUpdate(a,l,e)}}throw Error("Unsupported decorator location: "+r)};function V(e){return(n,o)=>typeof o=="object"?Ji(e,n,o):((r,s,i)=>{const a=s.hasOwnProperty(i);return s.constructor.createProperty(i,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(s,i):void 0})(e,n,o)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -298,15 +298,15 @@ var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,config * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function zi(e){return(n,o)=>{const r=typeof n=="function"?n:n[o];Object.assign(r,e)}}/** + */function Qi(e){return(n,o)=>{const r=typeof n=="function"?n:n[o];Object.assign(r,e)}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Xt=(e,n,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof n!="object"&&Object.defineProperty(e,n,o),o);/** + */const en=(e,n,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof n!="object"&&Object.defineProperty(e,n,o),o);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function en(e,n){return(o,r,s)=>{const i=a=>{var c,l;return(l=(c=a.renderRoot)==null?void 0:c.querySelector(e))!=null?l:null};if(n){const{get:a,set:c}=typeof r=="object"?o:s!=null?s:(()=>{const l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return Xt(o,r,{get(){let l=a.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return Xt(o,r,{get(){return i(this)}})}}var te=class extends me{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([e,n])=>{this.constructor.define(e,n)})}emit(e,n){const o=new CustomEvent(e,Ft({bubbles:!0,cancelable:!1,composed:!0,detail:{}},n));return this.dispatchEvent(o),o}static define(e,n=this,o={}){const r=customElements.get(e);if(!r){customElements.define(e,class extends n{},o);return}let s=" (unknown version)",i=s;"version"in n&&n.version&&(s=" v"+n.version),"version"in r&&r.version&&(i=" v"+r.version),!(s&&i&&s===i)&&console.warn(`Attempted to register <${e}>${s}, but <${e}>${i} has already been registered.`)}};te.version="1.0.6-v2.15.1",te.dependencies={},k([V()],te.prototype,"dir",2),k([V()],te.prototype,"lang",2);var tn=Ue` + */function tn(e,n){return(o,r,s)=>{const i=a=>{var c,l;return(l=(c=a.renderRoot)==null?void 0:c.querySelector(e))!=null?l:null};if(n){const{get:a,set:c}=typeof r=="object"?o:s!=null?s:(()=>{const l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return en(o,r,{get(){let l=a.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return en(o,r,{get(){return i(this)}})}}var te=class extends me{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([e,n])=>{this.constructor.define(e,n)})}emit(e,n){const o=new CustomEvent(e,qt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},n));return this.dispatchEvent(o),o}static define(e,n=this,o={}){const r=customElements.get(e);if(!r){customElements.define(e,class extends n{},o);return}let s=" (unknown version)",i=s;"version"in n&&n.version&&(s=" v"+n.version),"version"in r&&r.version&&(i=" v"+r.version),!(s&&i&&s===i)&&console.warn(`Attempted to register <${e}>${s}, but <${e}>${i} has already been registered.`)}};te.version="1.0.6-v2.15.1",te.dependencies={},k([V()],te.prototype,"dir",2),k([V()],te.prototype,"lang",2);var nn=Ue` :host { box-sizing: border-box; } @@ -324,28 +324,28 @@ var fl=Object.defineProperty;var gl=(S,t,I)=>t in S?fl(S,t,{enumerable:!0,config * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Fi=(e,n)=>n===void 0?(e==null?void 0:e._$litType$)!==void 0:(e==null?void 0:e._$litType$)===n;var he=Symbol(),Ne=Symbol(),Ye,Qe=new Map,O=class extends te{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default",this.vueonce=!0,this.sprite=!1}async resolveIcon(e,n){var o;let r;if(n!=null&&n.spriteSheet){this.svg=j` + */const Yi=(e,n)=>n===void 0?(e==null?void 0:e._$litType$)!==void 0:(e==null?void 0:e._$litType$)===n;var he=Symbol(),Ne=Symbol(),Qe,Ye=new Map,O=class extends te{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default",this.vueonce=!0,this.sprite=!1}async resolveIcon(e,n){var o;let r;if(n!=null&&n.spriteSheet){this.svg=j` - `,await this.updateComplete;const s=this.shadowRoot.querySelector("[part='svg']");return typeof n.mutator=="function"&&n.mutator(s),this.svg}try{if(r=await fetch(e,{mode:"cors"}),!r.ok)return r.status===410?he:Ne}catch{return Ne}try{const s=document.createElement("div");s.innerHTML=await r.text();const i=s.firstElementChild;if(((o=i==null?void 0:i.tagName)==null?void 0:o.toLowerCase())!=="svg")return he;Ye||(Ye=new DOMParser);const c=Ye.parseFromString(i.outerHTML,"text/html").body.querySelector("svg");return c?(c.part.add("svg"),document.adoptNode(c)):he}catch{return he}}connectedCallback(){super.connectedCallback(),Ti(this)}firstUpdated(){this.sprite||this.setIcon(),this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Mi(this)}getIconSource(e=!1){const n=Qt(this.library);return this.name&&n?{url:n.resolver(this.name,e),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}getDir(){const{url:e}=this.getIconSource(!0);return e==null?void 0:e.substring(0,e==null?void 0:e.lastIndexOf("/"))}redraw(){this.sprite||this.setIcon()}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var e;const{url:n,fromLibrary:o}=this.getIconSource(),r=o?Qt(this.library):void 0;if(!n){this.svg=null;return}let s=Qe.get(n);if(s||(s=this.resolveIcon(n,r),Qe.set(n,s)),!this.initialRender)return;const i=await s;if(i===Ne&&Qe.delete(n),n===this.getIconSource().url){if(Fi(i)){this.svg=i;return}switch(i){case Ne:case he:this.svg=null,this.emit("sl-error");break;default:this.svg=i.cloneNode(!0),(e=r==null?void 0:r.mutator)==null||e.call(r,this.svg),this.emit("sl-load")}}}handleChange(){this.sprite||this.setIcon()}render(){return j` + `,await this.updateComplete;const s=this.shadowRoot.querySelector("[part='svg']");return typeof n.mutator=="function"&&n.mutator(s),this.svg}try{if(r=await fetch(e,{mode:"cors"}),!r.ok)return r.status===410?he:Ne}catch{return Ne}try{const s=document.createElement("div");s.innerHTML=await r.text();const i=s.firstElementChild;if(((o=i==null?void 0:i.tagName)==null?void 0:o.toLowerCase())!=="svg")return he;Qe||(Qe=new DOMParser);const c=Qe.parseFromString(i.outerHTML,"text/html").body.querySelector("svg");return c?(c.part.add("svg"),document.adoptNode(c)):he}catch{return he}}connectedCallback(){super.connectedCallback(),Wi(this)}firstUpdated(){this.sprite||this.setIcon(),this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Ki(this)}getIconSource(e=!1){const n=Xt(this.library);return this.name&&n?{url:n.resolver(this.name,e),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}getDir(){const{url:e}=this.getIconSource(!0);return e==null?void 0:e.substring(0,e==null?void 0:e.lastIndexOf("/"))}redraw(){this.sprite||this.setIcon()}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var e;const{url:n,fromLibrary:o}=this.getIconSource(),r=o?Xt(this.library):void 0;if(!n){this.svg=null;return}let s=Ye.get(n);if(s||(s=this.resolveIcon(n,r),Ye.set(n,s)),!this.initialRender)return;const i=await s;if(i===Ne&&Ye.delete(n),n===this.getIconSource().url){if(Yi(i)){this.svg=i;return}switch(i){case Ne:case he:this.svg=null,this.emit("sl-error");break;default:this.svg=i.cloneNode(!0),(e=r==null?void 0:r.mutator)==null||e.call(r,this.svg),this.emit("sl-load")}}}handleChange(){this.sprite||this.setIcon()}render(){return j` ${this.sprite?j` - `:j`${this.svg}`}`}};O.styles=[tn,Ri],k([Ce()],O.prototype,"svg",2),k([V({reflect:!0})],O.prototype,"name",2),k([V()],O.prototype,"src",2),k([V()],O.prototype,"label",2),k([V({reflect:!0})],O.prototype,"library",2),k([V({reflect:!0,type:Boolean,attribute:"v-once"})],O.prototype,"vueonce",2),k([V({reflect:!0,type:Boolean})],O.prototype,"sprite",2),k([G("label")],O.prototype,"handleLabelChange",1),k([G(["name","src","library"])],O.prototype,"setIcon",1);/** + `:j`${this.svg}`}`}};O.styles=[nn,Zi],k([Ce()],O.prototype,"svg",2),k([V({reflect:!0})],O.prototype,"name",2),k([V()],O.prototype,"src",2),k([V()],O.prototype,"label",2),k([V({reflect:!0})],O.prototype,"library",2),k([V({reflect:!0,type:Boolean,attribute:"v-once"})],O.prototype,"vueonce",2),k([V({reflect:!0,type:Boolean})],O.prototype,"sprite",2),k([J("label")],O.prototype,"handleLabelChange",1),k([J(["name","src","library"])],O.prototype,"setIcon",1);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const qi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hi=e=>(...n)=>({_$litDirective$:e,values:n});class Wi{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,o,r){this._$Ct=n,this._$AM=o,this._$Ci=r}_$AS(n,o){return this.update(n,o)}update(n,o){return this.render(...o)}}/** + */const Xi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},el=e=>(...n)=>({_$litDirective$:e,values:n});class tl{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,o,r){this._$Ct=n,this._$AM=o,this._$Ci=r}_$AS(n,o){return this.update(n,o)}update(n,o){return this.render(...o)}}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Ve=Hi(class extends Wi{constructor(e){var n;if(super(e),e.type!==qi.ATTRIBUTE||e.name!=="class"||((n=e.strings)==null?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(n=>e[n]).join(" ")+" "}update(e,[n]){var r,s;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in n)n[i]&&!((r=this.nt)!=null&&r.has(i))&&this.st.add(i);return this.render(n)}const o=e.element.classList;for(const i of this.st)i in n||(o.remove(i),this.st.delete(i));for(const i in n){const a=!!n[i];a===this.st.has(i)||((s=this.nt)==null?void 0:s.has(i))||(a?(o.add(i),this.st.add(i)):(o.remove(i),this.st.delete(i)))}return H}});/** + */const Ve=el(class extends tl{constructor(e){var n;if(super(e),e.type!==Xi.ATTRIBUTE||e.name!=="class"||((n=e.strings)==null?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(n=>e[n]).join(" ")+" "}update(e,[n]){var r,s;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in n)n[i]&&!((r=this.nt)!=null&&r.has(i))&&this.st.add(i);return this.render(n)}const o=e.element.classList;for(const i of this.st)i in n||(o.remove(i),this.st.delete(i));for(const i in n){const a=!!n[i];a===this.st.has(i)||((s=this.nt)==null?void 0:s.has(i))||(a?(o.add(i),this.st.add(i)):(o.remove(i),this.st.delete(i)))}return K}});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*nn(e,n){if(e!==void 0){let o=0;for(const r of e)yield n(r,o++)}}/** + */function*on(e,n){if(e!==void 0){let o=0;for(const r of e)yield n(r,o++)}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*on(e,n,o=1){const r=n===void 0?0:e;n!=null||(n=e);for(let s=r;o>0?s{let o=0;return function(...r){window.clearTimeout(o),o=window.setTimeout(()=>{e.call(this,...r)},n)}},sn=(e,n,o)=>{const r=e[n];e[n]=function(...s){r.call(this,...s),o.call(this,r,...s)}},Zi="onscrollend"in window;if(!Zi){const e=new Set,n=new WeakMap,o=s=>{for(const i of s.changedTouches)e.add(i.identifier)},r=s=>{for(const i of s.changedTouches)e.delete(i.identifier)};document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",r,!0),document.addEventListener("touchcancel",r,!0),sn(EventTarget.prototype,"addEventListener",function(s,i){if(i!=="scrollend")return;const a=Ki(()=>{e.size?a():this.dispatchEvent(new Event("scrollend"))},100);s.call(this,"scroll",a,{passive:!0}),n.set(this,a)}),sn(EventTarget.prototype,"removeEventListener",function(s,i){if(i!=="scrollend")return;const a=n.get(this);a&&s.call(this,"scroll",a,{passive:!0})})}var v=class extends te{constructor(){super(...arguments),this.loop=!1,this.navigation=!1,this.pagination=!1,this.autoplay=!1,this.autoplayInterval=3e3,this.slidesPerPage=1,this.slidesPerMove=1,this.orientation="horizontal",this.mouseDragging=!1,this.activeSlide=0,this.scrolling=!1,this.dragging=!1,this.autoplayController=new ti(this,()=>this.next()),this.localize=new Vi(this),this.handleMouseDrag=e=>{this.dragging||(this.scrollContainer.style.setProperty("scroll-snap-type","none"),this.dragging=!0),this.scrollContainer.scrollBy({left:-e.movementX,top:-e.movementY,behavior:"instant"})},this.handleMouseDragEnd=()=>{const e=this.scrollContainer;document.removeEventListener("pointermove",this.handleMouseDrag,{capture:!0});const n=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type"),e.style.setProperty("overflow","hidden");const r=e.scrollLeft,s=e.scrollTop;e.style.removeProperty("overflow"),e.style.setProperty("scroll-snap-type","none"),e.scrollTo({left:n,top:o,behavior:"instant"}),requestAnimationFrame(async()=>{(n!==r||o!==s)&&(e.scrollTo({left:r,top:s,behavior:qt()?"auto":"smooth"}),await vi(e,"scrollend")),e.style.removeProperty("scroll-snap-type"),this.dragging=!1,this.handleScrollEnd()})},this.handleSlotChange=e=>{e.some(o=>[...o.addedNodes,...o.removedNodes].some(r=>this.isCarouselItem(r)&&!r.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}willUpdate(e){(e.has("slidesPerMove")||e.has("slidesPerPage"))&&(this.slidesPerMove=Math.min(this.slidesPerMove,this.slidesPerPage))}getPageCount(){const e=this.getSlides().length,{slidesPerPage:n,slidesPerMove:o,loop:r}=this,s=r?e/o:(e-n)/o+1;return Math.ceil(s)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerMove)}getShadowSlideCount(){return this.slidesPerPage-this.getSlides().length%this.slidesPerPage}canScrollNext(){return this.loop||this.getCurrentPage()0}getSlides({excludeClones:e=!0}={}){return[...this.children].filter(n=>this.isCarouselItem(n)&&(!e||!n.hasAttribute("data-clone")))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){const n=e.target,o=this.localize.dir()==="rtl",r=n.closest('[part~="pagination-item"]')!==null,s=e.key==="ArrowDown"||!o&&e.key==="ArrowRight"||o&&e.key==="ArrowLeft",i=e.key==="ArrowUp"||!o&&e.key==="ArrowLeft"||o&&e.key==="ArrowRight";e.preventDefault(),i&&this.previous(),s&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),r&&this.updateComplete.then(()=>{var a;const c=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');c&&c.focus()})}}handleMouseDragStart(e){this.mouseDragging&&e.button===0&&(e.preventDefault(),document.addEventListener("pointermove",this.handleMouseDrag,{capture:!0,passive:!0}),document.addEventListener("pointerup",this.handleMouseDragEnd,{capture:!0,once:!0}))}handleScroll(){this.scrolling=!0}synchronizeSlides(){const e=new IntersectionObserver(n=>{e.disconnect();for(const r of n){const s=r.target;s.toggleAttribute("inert",!r.isIntersecting),s.classList.toggle("--in-view",r.isIntersecting),s.setAttribute("aria-hidden",r.isIntersecting?"false":"true")}const o=n.find(r=>r.isIntersecting);if(o)if(this.loop&&o.target.hasAttribute("data-clone")){const r=Number(o.target.getAttribute("data-clone"));this.goToSlide(r,"instant")}else{const s=this.getSlides().indexOf(o.target);this.activeSlide=Math.ceil(s/this.slidesPerMove)*this.slidesPerMove}},{root:this.scrollContainer,threshold:.6});this.getSlides({excludeClones:!1}).forEach(n=>{e.observe(n)})}handleScrollEnd(){!this.scrolling||this.dragging||(this.synchronizeSlides(),this.scrolling=!1)}isCarouselItem(e){return e instanceof Element&&e.tagName.toLowerCase()==="sl-carousel-item"}initializeSlides(){this.getSlides({excludeClones:!1}).forEach((e,n)=>{e.classList.remove("--in-view"),e.classList.remove("--is-active"),e.setAttribute("aria-label",this.localize.term("slideNum",n+1)),e.hasAttribute("data-clone")&&e.remove()}),this.updateSlidesSnap(),this.loop&&this.createClones(),this.synchronizeSlides(),this.goToSlide(this.activeSlide,"auto")}createClones(){const e=this.getSlides(),n=this.slidesPerPage,o=e.slice(-n),r=e.slice(0,n);o.reverse().forEach((s,i)=>{const a=s.cloneNode(!0);a.setAttribute("data-clone",String(e.length-i-1)),this.prepend(a)}),r.forEach((s,i)=>{const a=s.cloneNode(!0);a.setAttribute("data-clone",String(i)),this.append(a)})}handelSlideChange(){const e=this.getSlides();e.forEach((n,o)=>{n.classList.toggle("--is-active",o===this.activeSlide)}),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}})}updateSlidesSnap(){const e=this.getSlides(),n=this.slidesPerMove;e.forEach((o,r)=>{(r+n)%n===0?o.style.removeProperty("scroll-snap-align"):o.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}previous(e="smooth"){this.goToSlide(this.activeSlide-this.slidesPerMove,e)}next(e="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,e)}goToSlide(e,n="smooth"){const{slidesPerPage:o,loop:r}=this,s=this.getSlides(),i=this.getSlides({excludeClones:!1});if(!s.length)return;const a=r?(e+s.length)%s.length:St(e,0,s.length-1);this.activeSlide=a;const c=St(e+(r?o:0),0,i.length-1),l=i[c];this.scrollToSlide(l,qt()?"auto":n)}scrollToSlide(e,n="smooth"){const o=this.scrollContainer,r=o.getBoundingClientRect(),s=e.getBoundingClientRect(),i=s.left-r.left,a=s.top-r.top;o.scrollTo({left:i+o.scrollLeft,top:a+o.scrollTop,behavior:n})}render(){const{slidesPerMove:e,scrolling:n}=this,o=this.getPageCount(),r=this.getCurrentPage(),s=this.canScrollPrev(),i=this.canScrollNext(),a=this.localize.dir()==="ltr";return j` + */function*sn(e,n,o=1){const r=n===void 0?0:e;n!=null||(n=e);for(let s=r;o>0?s{let o=0;return function(...r){window.clearTimeout(o),o=window.setTimeout(()=>{e.call(this,...r)},n)}},rn=(e,n,o)=>{const r=e[n];e[n]=function(...s){r.call(this,...s),o.call(this,r,...s)}},ol="onscrollend"in window;if(!ol){const e=new Set,n=new WeakMap,o=s=>{for(const i of s.changedTouches)e.add(i.identifier)},r=s=>{for(const i of s.changedTouches)e.delete(i.identifier)};document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",r,!0),document.addEventListener("touchcancel",r,!0),rn(EventTarget.prototype,"addEventListener",function(s,i){if(i!=="scrollend")return;const a=nl(()=>{e.size?a():this.dispatchEvent(new Event("scrollend"))},100);s.call(this,"scroll",a,{passive:!0}),n.set(this,a)}),rn(EventTarget.prototype,"removeEventListener",function(s,i){if(i!=="scrollend")return;const a=n.get(this);a&&s.call(this,"scroll",a,{passive:!0})})}var v=class extends te{constructor(){super(...arguments),this.loop=!1,this.navigation=!1,this.pagination=!1,this.autoplay=!1,this.autoplayInterval=3e3,this.slidesPerPage=1,this.slidesPerMove=1,this.orientation="horizontal",this.mouseDragging=!1,this.activeSlide=0,this.scrolling=!1,this.dragging=!1,this.autoplayController=new di(this,()=>this.next()),this.localize=new Mi(this),this.handleMouseDrag=e=>{this.dragging||(this.scrollContainer.style.setProperty("scroll-snap-type","none"),this.dragging=!0),this.scrollContainer.scrollBy({left:-e.movementX,top:-e.movementY,behavior:"instant"})},this.handleMouseDragEnd=()=>{const e=this.scrollContainer;document.removeEventListener("pointermove",this.handleMouseDrag,{capture:!0});const n=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type"),e.style.setProperty("overflow","hidden");const r=e.scrollLeft,s=e.scrollTop;e.style.removeProperty("overflow"),e.style.setProperty("scroll-snap-type","none"),e.scrollTo({left:n,top:o,behavior:"instant"}),requestAnimationFrame(async()=>{(n!==r||o!==s)&&(e.scrollTo({left:r,top:s,behavior:Ht()?"auto":"smooth"}),await Di(e,"scrollend")),e.style.removeProperty("scroll-snap-type"),this.dragging=!1,this.handleScrollEnd()})},this.handleSlotChange=e=>{e.some(o=>[...o.addedNodes,...o.removedNodes].some(r=>this.isCarouselItem(r)&&!r.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}willUpdate(e){(e.has("slidesPerMove")||e.has("slidesPerPage"))&&(this.slidesPerMove=Math.min(this.slidesPerMove,this.slidesPerPage))}getPageCount(){const e=this.getSlides().length,{slidesPerPage:n,slidesPerMove:o,loop:r}=this,s=r?e/o:(e-n)/o+1;return Math.ceil(s)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerMove)}getShadowSlideCount(){return this.slidesPerPage-this.getSlides().length%this.slidesPerPage}canScrollNext(){return this.loop||this.getCurrentPage()0}getSlides({excludeClones:e=!0}={}){return[...this.children].filter(n=>this.isCarouselItem(n)&&(!e||!n.hasAttribute("data-clone")))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){const n=e.target,o=this.localize.dir()==="rtl",r=n.closest('[part~="pagination-item"]')!==null,s=e.key==="ArrowDown"||!o&&e.key==="ArrowRight"||o&&e.key==="ArrowLeft",i=e.key==="ArrowUp"||!o&&e.key==="ArrowLeft"||o&&e.key==="ArrowRight";e.preventDefault(),i&&this.previous(),s&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),r&&this.updateComplete.then(()=>{var a;const c=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');c&&c.focus()})}}handleMouseDragStart(e){this.mouseDragging&&e.button===0&&(e.preventDefault(),document.addEventListener("pointermove",this.handleMouseDrag,{capture:!0,passive:!0}),document.addEventListener("pointerup",this.handleMouseDragEnd,{capture:!0,once:!0}))}handleScroll(){this.scrolling=!0}synchronizeSlides(){const e=new IntersectionObserver(n=>{e.disconnect();for(const r of n){const s=r.target;s.toggleAttribute("inert",!r.isIntersecting),s.classList.toggle("--in-view",r.isIntersecting),s.setAttribute("aria-hidden",r.isIntersecting?"false":"true")}const o=n.find(r=>r.isIntersecting);if(o)if(this.loop&&o.target.hasAttribute("data-clone")){const r=Number(o.target.getAttribute("data-clone"));this.goToSlide(r,"instant")}else{const s=this.getSlides().indexOf(o.target);this.activeSlide=Math.ceil(s/this.slidesPerMove)*this.slidesPerMove}},{root:this.scrollContainer,threshold:.6});this.getSlides({excludeClones:!1}).forEach(n=>{e.observe(n)})}handleScrollEnd(){!this.scrolling||this.dragging||(this.synchronizeSlides(),this.scrolling=!1)}isCarouselItem(e){return e instanceof Element&&e.tagName.toLowerCase()==="sl-carousel-item"}initializeSlides(){this.getSlides({excludeClones:!1}).forEach((e,n)=>{e.classList.remove("--in-view"),e.classList.remove("--is-active"),e.setAttribute("aria-label",this.localize.term("slideNum",n+1)),e.hasAttribute("data-clone")&&e.remove()}),this.updateSlidesSnap(),this.loop&&this.createClones(),this.synchronizeSlides(),this.goToSlide(this.activeSlide,"auto")}createClones(){const e=this.getSlides(),n=this.slidesPerPage,o=e.slice(-n),r=e.slice(0,n);o.reverse().forEach((s,i)=>{const a=s.cloneNode(!0);a.setAttribute("data-clone",String(e.length-i-1)),this.prepend(a)}),r.forEach((s,i)=>{const a=s.cloneNode(!0);a.setAttribute("data-clone",String(i)),this.append(a)})}handelSlideChange(){const e=this.getSlides();e.forEach((n,o)=>{n.classList.toggle("--is-active",o===this.activeSlide)}),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}})}updateSlidesSnap(){const e=this.getSlides(),n=this.slidesPerMove;e.forEach((o,r)=>{(r+n)%n===0?o.style.removeProperty("scroll-snap-align"):o.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}previous(e="smooth"){this.goToSlide(this.activeSlide-this.slidesPerMove,e)}next(e="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,e)}goToSlide(e,n="smooth"){const{slidesPerPage:o,loop:r}=this,s=this.getSlides(),i=this.getSlides({excludeClones:!1});if(!s.length)return;const a=r?(e+s.length)%s.length:wt(e,0,s.length-1);this.activeSlide=a;const c=wt(e+(r?o:0),0,i.length-1),l=i[c];this.scrollToSlide(l,Ht()?"auto":n)}scrollToSlide(e,n="smooth"){const o=this.scrollContainer,r=o.getBoundingClientRect(),s=e.getBoundingClientRect(),i=s.left-r.left,a=s.top-r.top;o.scrollTo({left:i+o.scrollLeft,top:a+o.scrollTop,behavior:n})}render(){const{slidesPerMove:e,scrolling:n}=this,o=this.getPageCount(),r=this.getCurrentPage(),s=this.canScrollPrev(),i=this.canScrollNext(),a=this.localize.dir()==="ltr";return j`
Gesamt: - + {{ cartStore.state.basketRootNode.total }} €
-
+
Jetzt Bestellen - - - Paypal - +
- + @@ -202,6 +197,7 @@ const props = defineProps({ mode: { type: String, default: "basket" }, cartKey: { type: String, required: true }, sidebar: { type: Boolean, default: true }, + inOrderView:{type:Boolean,default:false}, }); const cartStore = useCartStore(); diff --git a/source/src/components/cart/ConfirmView.vue b/source/src/components/order/process/ConfirmView.vue similarity index 63% rename from source/src/components/cart/ConfirmView.vue rename to source/src/components/order/process/ConfirmView.vue index e5084af..d07a974 100644 --- a/source/src/components/cart/ConfirmView.vue +++ b/source/src/components/order/process/ConfirmView.vue @@ -2,83 +2,83 @@