var Ee = Object.defineProperty; var Se = (o, e, t) => e in o ? Ee(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t; var p = (o, e, t) => Se(o, typeof e != "symbol" ? e + "" : e, t); /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const N = globalThis, te = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ie = Symbol(), oe = /* @__PURE__ */ new WeakMap(); let fe = class { constructor(e, t, i) { if (this._$cssResult$ = !0, i !== ie) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = e, this.t = t; } get styleSheet() { let e = this.o; const t = this.t; if (te && e === void 0) { const i = t !== void 0 && t.length === 1; i && (e = oe.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && oe.set(t, e)); } return e; } toString() { return this.cssText; } }; const Ce = (o) => new fe(typeof o == "string" ? o : o + "", void 0, ie), f = (o, ...e) => { const t = o.length === 1 ? o[0] : e.reduce((i, r, n) => i + ((s) => { if (s._$cssResult$ === !0) return s.cssText; if (typeof s == "number") return s; throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); })(r) + o[n + 1], o[0]); return new fe(t, o, ie); }, Me = (o, e) => { if (te) o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet); else for (const t of e) { const i = document.createElement("style"), r = N.litNonce; r !== void 0 && i.setAttribute("nonce", r), i.textContent = t.cssText, o.appendChild(i); } }, se = te ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((e) => { let t = ""; for (const i of e.cssRules) t += i.cssText; return Ce(t); })(o) : o; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const { is: Te, defineProperty: ze, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Ue, getOwnPropertySymbols: Oe, getPrototypeOf: He } = Object, y = globalThis, ne = y.trustedTypes, Re = ne ? ne.emptyScript : "", j = y.reactiveElementPolyfillSupport, T = (o, e) => o, F = { toAttribute(o, e) { switch (e) { case Boolean: o = o ? Re : null; break; case Object: case Array: o = o == null ? o : JSON.stringify(o); } return o; }, fromAttribute(o, e) { let t = o; switch (e) { case Boolean: t = o !== null; break; case Number: t = o === null ? null : Number(o); break; case Object: case Array: try { t = JSON.parse(o); } catch { t = null; } } return t; } }, ve = (o, e) => !Te(o, e), ae = { attribute: !0, type: String, converter: F, reflect: !1, useDefault: !1, hasChanged: ve }; Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); let E = class extends HTMLElement { static addInitializer(e) { this._$Ei(), (this.l ?? (this.l = [])).push(e); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(e, t = ae) { if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) { const i = Symbol(), r = this.getPropertyDescriptor(e, i, t); r !== void 0 && ze(this.prototype, e, r); } } static getPropertyDescriptor(e, t, i) { const { get: r, set: n } = Pe(this.prototype, e) ?? { get() { return this[t]; }, set(s) { this[t] = s; } }; return { get: r, set(s) { const l = r == null ? void 0 : r.call(this); n == null || n.call(this, s), this.requestUpdate(e, l, i); }, configurable: !0, enumerable: !0 }; } static getPropertyOptions(e) { return this.elementProperties.get(e) ?? ae; } static _$Ei() { if (this.hasOwnProperty(T("elementProperties"))) return; const e = He(this); e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties); } static finalize() { if (this.hasOwnProperty(T("finalized"))) return; if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) { const t = this.properties, i = [...Ue(t), ...Oe(t)]; for (const r of i) this.createProperty(r, t[r]); } const e = this[Symbol.metadata]; if (e !== null) { const t = litPropertyMetadata.get(e); if (t !== void 0) for (const [i, r] of t) this.elementProperties.set(i, r); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t, i] of this.elementProperties) { const r = this._$Eu(t, i); r !== void 0 && this._$Eh.set(r, t); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(e) { const t = []; if (Array.isArray(e)) { const i = new Set(e.flat(1 / 0).reverse()); for (const r of i) t.unshift(se(r)); } else e !== void 0 && t.push(se(e)); return t; } static _$Eu(e, t) { const i = t.attribute; return i === !1 ? void 0 : typeof i == "string" ? i : typeof e == "string" ? e.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev(); } _$Ev() { var e; this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((t) => t(this)); } addController(e) { var t; (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((t = e.hostConnected) == null || t.call(e)); } removeController(e) { var t; (t = this._$EO) == null || t.delete(e); } _$E_() { const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties; for (const i of t.keys()) this.hasOwnProperty(i) && (e.set(i, this[i]), delete this[i]); e.size > 0 && (this._$Ep = e); } createRenderRoot() { const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return Me(e, this.constructor.elementStyles), e; } connectedCallback() { var e; this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((t) => { var i; return (i = t.hostConnected) == null ? void 0 : i.call(t); }); } enableUpdating(e) { } disconnectedCallback() { var e; (e = this._$EO) == null || e.forEach((t) => { var i; return (i = t.hostDisconnected) == null ? void 0 : i.call(t); }); } attributeChangedCallback(e, t, i) { this._$AK(e, i); } _$ET(e, t) { var n; const i = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, i); if (r !== void 0 && i.reflect === !0) { const s = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : F).toAttribute(t, i.type); this._$Em = e, s == null ? this.removeAttribute(r) : this.setAttribute(r, s), this._$Em = null; } } _$AK(e, t) { var n, s; const i = this.constructor, r = i._$Eh.get(e); if (r !== void 0 && this._$Em !== r) { const l = i.getPropertyOptions(r), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((n = l.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? l.converter : F; this._$Em = r; const d = a.fromAttribute(t, l.type); this[r] = d ?? ((s = this._$Ej) == null ? void 0 : s.get(r)) ?? d, this._$Em = null; } } requestUpdate(e, t, i, r = !1, n) { var s; if (e !== void 0) { const l = this.constructor; if (r === !1 && (n = this[e]), i ?? (i = l.getPropertyOptions(e)), !((i.hasChanged ?? ve)(n, t) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(e)) && !this.hasAttribute(l._$Eu(e, i)))) return; this.C(e, t, i); } this.isUpdatePending === !1 && (this._$ES = this._$EP()); } C(e, t, { useDefault: i, reflect: r, wrapped: n }, s) { i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, s ?? t ?? this[e]), n !== !0 || s !== void 0) || (this._$AL.has(e) || (this.hasUpdated || i || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e)); } async _$EP() { this.isUpdatePending = !0; try { await this._$ES; } catch (t) { Promise.reject(t); } const e = this.scheduleUpdate(); return e != null && await e, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { var i; if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { for (const [n, s] of this._$Ep) this[n] = s; this._$Ep = void 0; } const r = this.constructor.elementProperties; if (r.size > 0) for (const [n, s] of r) { const { wrapped: l } = s, a = this[n]; l !== !0 || this._$AL.has(n) || a === void 0 || this.C(n, void 0, s, a); } } let e = !1; const t = this._$AL; try { e = this.shouldUpdate(t), e ? (this.willUpdate(t), (i = this._$EO) == null || i.forEach((r) => { var n; return (n = r.hostUpdate) == null ? void 0 : n.call(r); }), this.update(t)) : this._$EM(); } catch (r) { throw e = !1, this._$EM(), r; } e && this._$AE(t); } willUpdate(e) { } _$AE(e) { var t; (t = this._$EO) == null || t.forEach((i) => { var r; return (r = i.hostUpdated) == null ? void 0 : r.call(i); }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e); } _$EM() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(e) { return !0; } update(e) { this._$Eq && (this._$Eq = this._$Eq.forEach((t) => this._$ET(t, this[t]))), this._$EM(); } updated(e) { } firstUpdated(e) { } }; E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: E }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.1.2"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const z = globalThis, le = (o) => o, B = z.trustedTypes, ce = B ? B.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, be = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, xe = "?" + x, Ne = `<${xe}>`, k = document, P = () => k.createComment(""), U = (o) => o === null || typeof o != "object" && typeof o != "function", re = Array.isArray, Be = (o) => re(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", L = `[ \f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, de = /-->/g, he = />/g, $ = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"), pe = /'/g, ue = /"/g, ye = /^(?:script|style|textarea|title)$/i, $e = (o) => (e, ...t) => ({ _$litType$: o, strings: e, values: t }), c = $e(1), w = $e(2), S = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), me = /* @__PURE__ */ new WeakMap(), _ = k.createTreeWalker(k, 129); function we(o, e) { if (!re(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array"); return ce !== void 0 ? ce.createHTML(e) : e; } const De = (o, e) => { const t = o.length - 1, i = []; let r, n = e === 2 ? "" : e === 3 ? "" : "", s = M; for (let l = 0; l < t; l++) { const a = o[l]; let d, u, h = -1, v = 0; for (; v < a.length && (s.lastIndex = v, u = s.exec(a), u !== null); ) v = s.lastIndex, s === M ? u[1] === "!--" ? s = de : u[1] !== void 0 ? s = he : u[2] !== void 0 ? (ye.test(u[2]) && (r = RegExp("" ? (s = r ?? M, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? $ : u[3] === '"' ? ue : pe) : s === ue || s === pe ? s = $ : s === de || s === he ? s = M : (s = $, r = void 0); const b = s === $ && o[l + 1].startsWith("/>") ? " " : ""; n += s === M ? a + Ne : h >= 0 ? (i.push(d), a.slice(0, h) + be + a.slice(h) + x + b) : a + x + (h === -2 ? l : b); } return [we(o, n + (o[t] || "") + (e === 2 ? "" : e === 3 ? "" : "")), i]; }; class O { constructor({ strings: e, _$litType$: t }, i) { let r; this.parts = []; let n = 0, s = 0; const l = e.length - 1, a = this.parts, [d, u] = De(e, t); if (this.el = O.createElement(d, i), _.currentNode = this.el.content, t === 2 || t === 3) { const h = this.el.content.firstChild; h.replaceWith(...h.childNodes); } for (; (r = _.nextNode()) !== null && a.length < l; ) { if (r.nodeType === 1) { if (r.hasAttributes()) for (const h of r.getAttributeNames()) if (h.endsWith(be)) { const v = u[s++], b = r.getAttribute(h).split(x), R = /([.?@])?(.*)/.exec(v); a.push({ type: 1, index: n, name: R[2], strings: b, ctor: R[1] === "." ? Le : R[1] === "?" ? Ie : R[1] === "@" ? Ve : D }), r.removeAttribute(h); } else h.startsWith(x) && (a.push({ type: 6, index: n }), r.removeAttribute(h)); if (ye.test(r.tagName)) { const h = r.textContent.split(x), v = h.length - 1; if (v > 0) { r.textContent = B ? B.emptyScript : ""; for (let b = 0; b < v; b++) r.append(h[b], P()), _.nextNode(), a.push({ type: 2, index: ++n }); r.append(h[v], P()); } } } else if (r.nodeType === 8) if (r.data === xe) a.push({ type: 2, index: n }); else { let h = -1; for (; (h = r.data.indexOf(x, h + 1)) !== -1; ) a.push({ type: 7, index: n }), h += x.length - 1; } n++; } } static createElement(e, t) { const i = k.createElement("template"); return i.innerHTML = e, i; } } function C(o, e, t = o, i) { var s, l; if (e === S) return e; let r = i !== void 0 ? (s = t._$Co) == null ? void 0 : s[i] : t._$Cl; const n = U(e) ? void 0 : e._$litDirective$; return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(o), r._$AT(o, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = r : t._$Cl = r), r !== void 0 && (e = C(o, r._$AS(o, e.values), r, i)), e; } class je { constructor(e, t) { this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(e) { const { el: { content: t }, parts: i } = this._$AD, r = ((e == null ? void 0 : e.creationScope) ?? k).importNode(t, !0); _.currentNode = r; let n = _.nextNode(), s = 0, l = 0, a = i[0]; for (; a !== void 0; ) { if (s === a.index) { let d; a.type === 2 ? d = new H(n, n.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, e) : a.type === 6 && (d = new Fe(n, this, e)), this._$AV.push(d), a = i[++l]; } s !== (a == null ? void 0 : a.index) && (n = _.nextNode(), s++); } return _.currentNode = k, r; } p(e) { let t = 0; for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++; } } class H { get _$AU() { var e; return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv; } constructor(e, t, i, r) { this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0; } get parentNode() { let e = this._$AA.parentNode; const t = this._$AM; return t !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = t.parentNode), e; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(e, t = this) { e = C(this, e, t), U(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== S && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Be(e) ? this.k(e) : this._(e); } O(e) { return this._$AA.parentNode.insertBefore(e, this._$AB); } T(e) { this._$AH !== e && (this._$AR(), this._$AH = this.O(e)); } _(e) { this._$AH !== m && U(this._$AH) ? this._$AA.nextSibling.data = e : this.T(k.createTextNode(e)), this._$AH = e; } $(e) { var n; const { values: t, _$litType$: i } = e, r = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = O.createElement(we(i.h, i.h[0]), this.options)), i); if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(t); else { const s = new je(r, this), l = s.u(this.options); s.p(t), this.T(l), this._$AH = s; } } _$AC(e) { let t = me.get(e.strings); return t === void 0 && me.set(e.strings, t = new O(e)), t; } k(e) { re(this._$AH) || (this._$AH = [], this._$AR()); const t = this._$AH; let i, r = 0; for (const n of e) r === t.length ? t.push(i = new H(this.O(P()), this.O(P()), this, this.options)) : i = t[r], i._$AI(n), r++; r < t.length && (this._$AR(i && i._$AB.nextSibling, r), t.length = r); } _$AR(e = this._$AA.nextSibling, t) { var i; for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, t); e !== this._$AB; ) { const r = le(e).nextSibling; le(e).remove(), e = r; } } setConnected(e) { var t; this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e)); } } class D { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(e, t, i, r, n) { this.type = 1, this._$AH = m, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = m; } _$AI(e, t = this, i, r) { const n = this.strings; let s = !1; if (n === void 0) e = C(this, e, t, 0), s = !U(e) || e !== this._$AH && e !== S, s && (this._$AH = e); else { const l = e; let a, d; for (e = n[0], a = 0; a < n.length - 1; a++) d = C(this, l[i + a], t, a), d === S && (d = this._$AH[a]), s || (s = !U(d) || d !== this._$AH[a]), d === m ? e = m : e !== m && (e += (d ?? "") + n[a + 1]), this._$AH[a] = d; } s && !r && this.j(e); } j(e) { e === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? ""); } } class Le extends D { constructor() { super(...arguments), this.type = 3; } j(e) { this.element[this.name] = e === m ? void 0 : e; } } class Ie extends D { constructor() { super(...arguments), this.type = 4; } j(e) { this.element.toggleAttribute(this.name, !!e && e !== m); } } class Ve extends D { constructor(e, t, i, r, n) { super(e, t, i, r, n), this.type = 5; } _$AI(e, t = this) { if ((e = C(this, e, t, 0) ?? m) === S) return; const i = this._$AH, r = e === m && i !== m || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== m && (i === m || r); r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, e), this._$AH = e; } handleEvent(e) { var t; typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e); } } class Fe { constructor(e, t, i) { this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i; } get _$AU() { return this._$AM._$AU; } _$AI(e) { C(this, e); } } const I = z.litHtmlPolyfillSupport; I == null || I(O, H), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.3.2"); const We = (o, e, t) => { const i = (t == null ? void 0 : t.renderBefore) ?? e; let r = i._$litPart$; if (r === void 0) { const n = (t == null ? void 0 : t.renderBefore) ?? null; i._$litPart$ = r = new H(e.insertBefore(P(), n), n, void 0, t ?? {}); } return r._$AI(o), r; }; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const A = globalThis; class g extends E { constructor() { super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; } createRenderRoot() { var t; const e = super.createRenderRoot(); return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e; } update(e) { const t = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = We(t, this.renderRoot, this.renderOptions); } connectedCallback() { var e; super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0); } disconnectedCallback() { var e; super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1); } render() { return S; } } var ge; g._$litElement$ = !0, g.finalized = !0, (ge = A.litElementHydrateSupport) == null || ge.call(A, { LitElement: g }); const V = A.litElementPolyfillSupport; V == null || V({ LitElement: g }); (A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.2"); class W extends g { render() { return c` ${this.imageUrl ? c`${this.imageAlt || ` : ""}
`; } } p(W, "styles", f` :host { --luumicore-card-bg: var(--luumicore-secondary, #fff); --luumicore-card-border-color: var(--luumicore-secondary, #fff); --luumicore-card-border-radius: var(--luumicore-border-radius, 1rem); --luumicore-card-shadow: var(--luumicore-shadow, .25rem .25rem 1rem rgba(0,0,0,0.2)); --luumicore-card-spacing: var(--luumicore-element-spacing, 2rem); display: block; border: 1px solid var(--luumicore-card-border-color); border-radius: var(--luumicore-card-border-radius); overflow: hidden; background-color: var(--luumicore-card-bg); box-shadow: var(--luumicore-card-shadow); } :host(:not(:last-child)) { margin-bottom: var(--luumicore-card-spacing); } .card-image { width: 100%; height: auto; display: block; } .card-header { padding: var(--luumicore-spacing, 16px); border-bottom: 1px solid var(--luumicore-border-color, #ddd); font-weight: bold; background-color: var(--luumicore-header-bg, #f8f9fa); } .card-body { padding: var(--luumicore-spacing, 16px); } .card-footer { padding: var(--luumicore-spacing, 16px); border-top: 1px solid var(--luumicore-border-color, #ddd); background-color: var(--luumicore-footer-bg, #f8f9fa); } `), p(W, "properties", { imageUrl: { type: String, attribute: "image-url" }, imageAlt: { type: String, attribute: "image-alt" } }); customElements.define("luumicore-card", W); class _e extends g { render() { return c` `; } } p(_e, "styles", f` :host { display: block; } ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--luumicore-border-color, #ddd); border-radius: var(--luumicore-border-radius, 8px); overflow: hidden; } `); customElements.define("luumicore-list", _e); class Ae extends g { render() { return c`
`; } } p(Ae, "styles", f` :host { display: block; border-bottom: 1px solid var(--luumicore-border-color, #ddd); background-color: var(--luumicore-list-bg, #fff); } :host(:last-child) { border-bottom: none; } .item-container { display: flex; align-items: center; padding: var(--luumicore-spacing, 12px) var(--luumicore-spacing, 16px); gap: var(--luumicore-spacing, 16px); } .content { flex: 1; min-width: 0; /* Allow text truncation */ } .actions { display: flex; align-items: center; gap: 8px; } .main-action { margin-left: auto; } `); customElements.define("luumicore-list-item", Ae); class q extends g { _getIcon(e) { const t = e.toLowerCase(); return t === "pdf" ? c`PDF` : t === "docx" || t === "doc" ? c`` : c``; } render() { return c`
${this.file.isNew ? c`
` : ""}
${this._getIcon(this.file.type)}
${this.file.name}
${this.file.date}   ${this.file.size}
`; } } p(q, "properties", { file: { type: Object } // { name, date, size, type, isNew } }), p(q, "styles", f` :host { display: block; margin-bottom: 12px; } .file-card { background-color: var(--bg-card); /* Standard: Grau für gelesene Dateien */ border-radius: var(--radius-sm); padding: 12px 16px; display: flex; align-items: center; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); position: relative; } /* UPDATE: Styling für neue Dateien (Weißer BG + Farbiger Rand) */ .file-card.has-new { background-color: var(--bg-white); border-color: var(--primary-color); } .icon-container { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-right: 16px; flex-shrink: 0; } .icon-container svg { width: 32px; height: 32px; } .file-info { flex: 1; min-width: 0; /* Text truncation fix */ } .file-name { font-weight: 400; /* UPDATE: Standard nicht fett */ font-size: 0.9rem; color: var(--text-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* UPDATE: Fett nur wenn neu */ .has-new .file-name { font-weight: 700; } .file-meta { font-size: 0.75rem; color: var(--text-muted); } .download-btn { width: 36px; height: 36px; border: 1px solid var(--primary-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; /* UPDATE: Standard Button Style (Weiß) */ background-color: var(--bg-white); color: var(--primary-color); cursor: pointer; margin-left: 12px; flex-shrink: 0; /* UPDATE: Transition angepasst an WinzerCard */ transition: transform 0.1s, background-color 0.2s; } /* UPDATE: Klick-Effekt hinzugefügt (wie bei WinzerCard) */ .download-btn:active { transform: scale(0.95); } /* UPDATE: Button Style für neue Dateien (Primärfarbe) */ .has-new .download-btn { background-color: var(--primary-color); color: white; } .download-btn svg { width: 20px; height: 20px; } /* New Indicator Dot */ .new-dot { position: absolute; left: 6px; /* UPDATE: Position angepasst für fixe Ausrichtung */ top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background-color: var(--primary-color); border-radius: 50%; } /* UPDATE: Padding-Shift entfernt, damit Icons ausgerichtet bleiben */ /* Type Colors */ .type-pdf { color: var(--alert-color); } .type-doc { color: #2b5797; } /* Word blueish */ .type-default { color: var(--text-muted); } `); customElements.define("winzer-file-card", q); class G extends g { _timeToGridRow(e) { if (!e) return 1; const [t, i] = e.split(":").map(Number); return t * 4 + Math.floor(i / 15) + 1; } _formatNumber(e) { return new Intl.NumberFormat("de-DE").format(e); } render() { const e = Array.from({ length: 24 }, (t, i) => i); return c`
${e.map((t) => c`
${t.toString().padStart(2, "0")}:00
`)}${this.events ? this.events.map((t) => { const i = this._timeToGridRow(t.start), r = this._timeToGridRow(t.end), s = r - i <= 2, l = t.total && t.booked >= t.total; let a = "", d = c``; if (t.total && t.total > 0) { const u = Math.min(100, Math.round(t.booked / t.total * 100)); a = `${this._formatNumber(t.booked)} / ${this._formatNumber(t.total)} kg`, d = c`
`; } return c`
${t.title}
${l ? c`Ausgebucht` : ""}${!s || !l ? c`${a}` : ""}${s && a ? "" : c`${t.start} - ${t.end}`}
${d}
`; }) : ""}
`; } } p(G, "properties", { events: { type: Array } }), p(G, "styles", f` :host { display: block; background: var(--bg-white); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; height: 600px; display: flex; flex-direction: column; } .scroll-container { flex: 1; overflow-y: auto; position: relative; } .day-grid { display: grid; grid-template-columns: 50px 1fr; grid-auto-rows: 20px; background-image: linear-gradient(to bottom, var(--border-color) 1px, transparent 1px); background-size: 100% 80px; background-attachment: local; } .time-label { grid-column: 1; text-align: right; padding-right: 10px; font-size: 0.75rem; color: var(--text-muted); line-height: 1; transform: translateY(-50%); margin-top: 1px; } .event-item { grid-column: 2; background-color: var(--primary-light); border-left: 4px solid var(--primary-color); border: 1px solid rgba(0,0,0,0.05); border-left-width: 4px; border-radius: 4px; padding: 6px 8px; font-size: 0.8rem; color: var(--primary-color); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; margin-right: 10px; margin-bottom: 2px; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; transition: transform 0.1s, filter 0.1s; } .event-item:active { transform: scale(0.98); filter: brightness(0.95); } .event-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; } .event-details-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; opacity: 0.8; line-height: 1.2; } .capacity-text { font-weight: 600; } .progress-track { width: 100%; height: 6px; background-color: rgba(255,255,255,0.6); border-radius: 3px; overflow: hidden; margin-top: auto; } .progress-fill { height: 100%; background-color: var(--primary-color); border-radius: 3px; transition: width 0.3s ease; } .event-item.fully-booked { border-color: var(--alert-color); border-left-width: 4px; background-color: var(--alert-light); color: #b71c1c; } .event-item.fully-booked .progress-fill { background-color: var(--alert-color); } .badge-booked-out { background-color: var(--alert-color); color: white; font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; text-transform: uppercase; margin-right: 6px; display: inline-block; } .event-item.short-event { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 6px; padding-bottom: 4px; gap: 8px; position: relative; } .event-item.short-event .event-title { flex: 1; min-width: 0; } .event-item.short-event .event-details-row { flex-shrink: 0; display: flex; align-items: center; } .event-item.short-event .progress-track { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 2px; margin-top: 0; border-radius: 0; background-color: rgba(0,0,0,0.05); } .event-item.short-event .progress-fill { border-radius: 0; } .grid-spacer { grid-column: 1 / -1; grid-row: 97; height: 20px; } `); customElements.define("winzer-day-view", G); class Y extends g { _handleItemClick(e) { this.dispatchEvent(new CustomEvent("item-click", { detail: { action: e.action, label: e.label }, bubbles: !0, composed: !0 })); } render() { return !this.items || this.items.length === 0 ? c`` : c``; } } p(Y, "properties", { items: { type: Array } }), p(Y, "styles", f` :host { display: block; margin-bottom: 20px; } .menu-group { background-color: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); } .menu-item { display: flex; align-items: center; padding: 16px 20px; cursor: pointer; background: var(--bg-white); border-bottom: 1px solid var(--border-color); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); } .menu-item:last-child { border-bottom: none; } .menu-item:active { background-color: #f9f9f9; } .menu-icon { width: 24px; height: 24px; margin-right: 16px; color: var(--primary-color); display: flex; justify-content: center; align-items: center; } .menu-icon svg { width: 100%; height: 100%; display: block; } .chevron { margin-left: auto; color: var(--primary-color); width: 18px; height: 18px; } `); customElements.define("winzer-menu-group", Y); class Z extends g { _close() { this.dispatchEvent(new CustomEvent("close")); } render() { return c`
`; } } p(Z, "properties", { open: { type: Boolean }, title: { type: String } }), p(Z, "styles", f` :host { display: block; } .backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(var(--primary-rgb), 0.85); backdrop-filter: blur(4px); z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding-top: 120px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } :host([open]) .backdrop { opacity: 1; pointer-events: all; } .modal-container { width: 90%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; transform: translateY(20px); transition: transform 0.3s ease; } :host([open]) .modal-container { transform: translateY(0); } .modal-header { background-color: var(--primary-light); color: var(--primary-color); padding: 16px 20px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; box-shadow: var(--shadow-lg); } .close-btn { cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } .close-btn svg { width: 20px; height: 20px; stroke: var(--primary-color); stroke-width: 2; } `); customElements.define("winzer-modal", Z); class K extends g { render() { return c`
${this.category}${this.date}

${this.title}

${this.text}

${this.hasAttachment ? c`
` : ""}
`; } } p(K, "properties", { category: { type: String }, date: { type: String }, title: { type: String }, text: { type: String }, hasAttachment: { type: Boolean }, featured: { type: Boolean } }), p(K, "styles", f` :host { display: block; margin-bottom: 35px; } .card { background-color: var(--bg-card); border-radius: var(--radius-card); padding: 20px 20px 40px 20px; position: relative; color: var(--text-main); display: block; } .card.featured { border: 1px solid var(--primary-color); background-color: var(--primary-light); } .header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; } h3 { color: var(--primary-color); margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 600; } p { margin: 0; font-size: 0.95rem; line-height: 1.4; color: var(--text-dark); padding-right: 25px; } .attachment-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary-color); } .action-btn { position: absolute; bottom: -20px; right: 20px; background-color: var(--primary-color); color: var(--bg-white); width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer; transition: transform 0.1s; z-index: 10; } .action-btn:active { transform: scale(0.95); } svg { width: 24px; height: 24px; fill: currentColor; } `); customElements.define("winzer-card", K); class J extends g { _handleUserClick() { this.dispatchEvent(new CustomEvent("user-click", { bubbles: !0, composed: !0 })); } render() { return c`
luumiCORE
${this.mainTitle || ""}
${this.subTitle || ""}
`; } } p(J, "properties", { mainTitle: { type: String, attribute: "main-title" }, subTitle: { type: String, attribute: "sub-title" } }), p(J, "styles", f` :host { display: block; background: var(--bg-white); padding: 10px 20px; border-bottom: 1px solid var(--border-color); } .top-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; } .logo-placeholder { border: 1px solid var(--primary-color); width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 8px; color: var(--primary-color); font-weight: bold; line-height: 1; } .title-group { text-align: center; } .main-title { color: var(--primary-color); font-weight: bold; font-size: 1rem; text-transform: uppercase; } .sub-title { font-size: 0.9rem; color: var(--primary-color); } .user-icon { width: 32px; height: 32px; color: var(--text-main); cursor: pointer; } `); customElements.define("winzer-header", J); class X extends g { constructor() { super(), this.items = []; } render() { return !this.items || this.items.length === 0 ? c`` : c` `; } } p(X, "properties", { activeTab: { type: String }, items: { type: Array } // [{ id: 'news', label: 'News', icon: '...', url: '/news' }] }), p(X, "styles", f` :host { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-white); border-top: 1px solid var(--border-color); padding-bottom: env(safe-area-inset-bottom); z-index: 100; } .nav-bar { display: flex; justify-content: space-around; padding: 10px 0; } .nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: var(--text-main); cursor: pointer; width: 80px; text-decoration: none; } .nav-item.active { color: var(--primary-color); } .nav-item svg { width: 24px; height: 24px; margin-bottom: 4px; fill: none; stroke: currentColor; stroke-width: 2; } `); customElements.define("winzer-nav", X); class Q extends g { render() { return c``; } } p(Q, "properties", { checked: { type: Boolean } }), p(Q, "styles", f` .switch { position: relative; display: inline-block; width: 44px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ddd; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--bg-white); transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary-color); } input:checked + .slider:before { transform: translateX(20px); } `); customElements.define("toggle-switch", Q); class ee extends g { constructor() { super(), this.isUserModalOpen = !1, this.isFilterModalOpen = !1, this.currentTab = "news", this.appTitle = "WINZER-PORTAL", this.appSubtitle = "Badischer Winzerkeller", this.navItems = [ { id: "news", label: "News", url: "/news", icon: w`` }, { id: "anlieferung", label: "Anlieferung", url: "/anlieferung", icon: w`` }, { id: "tresor", label: "Datei-Tresor", url: "/tresor", icon: w`` } ], this.menuAccount = [ { label: "Persönliche Daten", icon: w``, action: "profile" }, { label: "Sicherheits-Einstellungen", icon: w``, action: "security" }, { label: "Meine Buchungen", icon: w``, action: "bookings" } ], this.menuSession = [ { label: "Abmelden", icon: w``, action: "logout" } ]; } render() { return c`
`; } } p(ee, "properties", { isUserModalOpen: { type: Boolean }, isFilterModalOpen: { type: Boolean }, currentTab: { type: String }, // Configurable properties appTitle: { type: String, attribute: "app-title" }, appSubtitle: { type: String, attribute: "app-subtitle" }, navItems: { type: Array }, // [{ id, label, icon (svg string), url }] menuAccount: { type: Array }, menuSession: { type: Array } }), p(ee, "styles", f` :host { display: block; background-color: var(--bg-white); min-height: 100vh; width: 100%; position: relative; } .content { padding: 20px; padding-bottom: 90px; } .section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } h1 { font-size: 1.5rem; font-weight: 800; margin: 0; text-transform: uppercase; } .abo-label { font-size: 0.8rem; font-weight: 600; margin-left: auto; margin-right: 8px; } /* Filter Bar */ .filter-bar { display: flex; align-items: center; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; cursor: pointer; } .filter-icon { margin-left: 8px; width: 24px; height: 24px; color: var(--text-dark); } /* Filter Modal Styles */ .filter-content { background-color: var(--bg-white); padding: 16px; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); } .filter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .filter-row label { display: flex; align-items: center; font-weight: 700; font-size: 0.9rem; color: var(--text-dark); } .filter-row label svg { width: 20px; height: 20px; margin-right: 8px; color: var(--primary-color); } .filter-select { background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; color: var(--text-dark); width: 160px; } .filter-btn { width: 100%; background-color: var(--primary-color); color: white; border: none; border-radius: var(--radius-sm); padding: 12px; font-weight: 600; font-size: 1rem; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; } `); customElements.define("winzer-app", ee); console.log("luumiCORE Core Bundle initialized"); class ke extends g { render() { return c`

Hello from luumiCORE!

`; } } p(ke, "styles", f` :host { display: block; padding: 16px; color: var(--luumicore-text-color, black); border: 1px solid var(--luumicore-primary, blue); } `); customElements.define("luumicore-element", ke); export { ke as LuumicoreElement };