@viur/shop-components 0.0.1-dev.47 → 0.0.1-dev.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1685 @@
1
+ import { reactive as Ft, onBeforeMount as Wt, openBlock as Kt, createElementBlock as Jt, Fragment as Yt, createElementVNode as p, toDisplayString as lt, withModifiers as Zt, createTextVNode as Tt, createVNode as Gt, pushScopeId as Qt, popScopeId as Xt } from "vue";
2
+ import { Request as ct } from "@viur/vue-utils";
3
+ import { useRoute as te } from "vue-router";
4
+ import { I as ee } from "./ItemCard-Cyjlw1FW.mjs";
5
+ import { w as se, a as ie, g as ht, _ as oe } from "./main-BAXph9jY.mjs";
6
+ var Lt = Object.defineProperty, re = Object.getOwnPropertyDescriptor, dt = Object.getOwnPropertySymbols, ne = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable, ut = (s, t, e) => t in s ? Lt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, It = (s, t) => {
7
+ for (var e in t || (t = {}))
8
+ ne.call(t, e) && ut(s, e, t[e]);
9
+ if (dt)
10
+ for (var e of dt(t))
11
+ ae.call(t, e) && ut(s, e, t[e]);
12
+ return s;
13
+ }, c = (s, t, e, i) => {
14
+ for (var o = i > 1 ? void 0 : i ? re(t, e) : t, r = s.length - 1, n; r >= 0; r--)
15
+ (n = s[r]) && (o = (i ? n(t, e, o) : n(o)) || o);
16
+ return i && o && Lt(t, e, o), o;
17
+ };
18
+ function pt(s, t, e) {
19
+ const i = (o) => Object.is(o, -0) ? 0 : o;
20
+ return s < t ? i(t) : s > e ? i(e) : i(s);
21
+ }
22
+ var le = class {
23
+ constructor(s, t) {
24
+ this.timerId = 0, this.activeInteractions = 0, this.paused = !1, this.stopped = !0, this.pause = () => {
25
+ this.activeInteractions++ || (this.paused = !0, this.host.requestUpdate());
26
+ }, this.resume = () => {
27
+ --this.activeInteractions || (this.paused = !1, this.host.requestUpdate());
28
+ }, s.addController(this), this.host = s, this.tickCallback = t;
29
+ }
30
+ hostConnected() {
31
+ 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);
32
+ }
33
+ hostDisconnected() {
34
+ 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);
35
+ }
36
+ start(s) {
37
+ this.stop(), this.stopped = !1, this.timerId = window.setInterval(() => {
38
+ this.paused || this.tickCallback();
39
+ }, s);
40
+ }
41
+ stop() {
42
+ clearInterval(this.timerId), this.stopped = !0, this.host.requestUpdate();
43
+ }
44
+ };
45
+ /**
46
+ * @license
47
+ * Copyright 2019 Google LLC
48
+ * SPDX-License-Identifier: BSD-3-Clause
49
+ */
50
+ const W = globalThis, ot = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rt = Symbol(), gt = /* @__PURE__ */ new WeakMap();
51
+ let Ut = class {
52
+ constructor(t, e, i) {
53
+ if (this._$cssResult$ = !0, i !== rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
54
+ this.cssText = t, this.t = e;
55
+ }
56
+ get styleSheet() {
57
+ let t = this.o;
58
+ const e = this.t;
59
+ if (ot && t === void 0) {
60
+ const i = e !== void 0 && e.length === 1;
61
+ i && (t = gt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && gt.set(e, t));
62
+ }
63
+ return t;
64
+ }
65
+ toString() {
66
+ return this.cssText;
67
+ }
68
+ };
69
+ const ce = (s) => new Ut(typeof s == "string" ? s : s + "", void 0, rt), nt = (s, ...t) => {
70
+ const e = s.length === 1 ? s[0] : t.reduce((i, o, r) => i + ((n) => {
71
+ if (n._$cssResult$ === !0) return n.cssText;
72
+ if (typeof n == "number") return n;
73
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
74
+ })(o) + s[r + 1], s[0]);
75
+ return new Ut(e, s, rt);
76
+ }, he = (s, t) => {
77
+ if (ot) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
78
+ else for (const e of t) {
79
+ const i = document.createElement("style"), o = W.litNonce;
80
+ o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, s.appendChild(i);
81
+ }
82
+ }, vt = ot ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
83
+ let e = "";
84
+ for (const i of t.cssRules) e += i.cssText;
85
+ return ce(e);
86
+ })(s) : s;
87
+ /**
88
+ * @license
89
+ * Copyright 2017 Google LLC
90
+ * SPDX-License-Identifier: BSD-3-Clause
91
+ */
92
+ const { is: de, defineProperty: ue, getOwnPropertyDescriptor: pe, getOwnPropertyNames: ge, getOwnPropertySymbols: ve, getPrototypeOf: me } = Object, w = globalThis, mt = w.trustedTypes, fe = mt ? mt.emptyScript : "", G = w.reactiveElementPolyfillSupport, R = (s, t) => s, K = { toAttribute(s, t) {
93
+ switch (t) {
94
+ case Boolean:
95
+ s = s ? fe : null;
96
+ break;
97
+ case Object:
98
+ case Array:
99
+ s = s == null ? s : JSON.stringify(s);
100
+ }
101
+ return s;
102
+ }, fromAttribute(s, t) {
103
+ let e = s;
104
+ switch (t) {
105
+ case Boolean:
106
+ e = s !== null;
107
+ break;
108
+ case Number:
109
+ e = s === null ? null : Number(s);
110
+ break;
111
+ case Object:
112
+ case Array:
113
+ try {
114
+ e = JSON.parse(s);
115
+ } catch {
116
+ e = null;
117
+ }
118
+ }
119
+ return e;
120
+ } }, at = (s, t) => !de(s, t), ft = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: at };
121
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
122
+ class T extends HTMLElement {
123
+ static addInitializer(t) {
124
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
125
+ }
126
+ static get observedAttributes() {
127
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
128
+ }
129
+ static createProperty(t, e = ft) {
130
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
131
+ const i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
132
+ o !== void 0 && ue(this.prototype, t, o);
133
+ }
134
+ }
135
+ static getPropertyDescriptor(t, e, i) {
136
+ const { get: o, set: r } = pe(this.prototype, t) ?? { get() {
137
+ return this[e];
138
+ }, set(n) {
139
+ this[e] = n;
140
+ } };
141
+ return { get() {
142
+ return o == null ? void 0 : o.call(this);
143
+ }, set(n) {
144
+ const l = o == null ? void 0 : o.call(this);
145
+ r.call(this, n), this.requestUpdate(t, l, i);
146
+ }, configurable: !0, enumerable: !0 };
147
+ }
148
+ static getPropertyOptions(t) {
149
+ return this.elementProperties.get(t) ?? ft;
150
+ }
151
+ static _$Ei() {
152
+ if (this.hasOwnProperty(R("elementProperties"))) return;
153
+ const t = me(this);
154
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
155
+ }
156
+ static finalize() {
157
+ if (this.hasOwnProperty(R("finalized"))) return;
158
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
159
+ const e = this.properties, i = [...ge(e), ...ve(e)];
160
+ for (const o of i) this.createProperty(o, e[o]);
161
+ }
162
+ const t = this[Symbol.metadata];
163
+ if (t !== null) {
164
+ const e = litPropertyMetadata.get(t);
165
+ if (e !== void 0) for (const [i, o] of e) this.elementProperties.set(i, o);
166
+ }
167
+ this._$Eh = /* @__PURE__ */ new Map();
168
+ for (const [e, i] of this.elementProperties) {
169
+ const o = this._$Eu(e, i);
170
+ o !== void 0 && this._$Eh.set(o, e);
171
+ }
172
+ this.elementStyles = this.finalizeStyles(this.styles);
173
+ }
174
+ static finalizeStyles(t) {
175
+ const e = [];
176
+ if (Array.isArray(t)) {
177
+ const i = new Set(t.flat(1 / 0).reverse());
178
+ for (const o of i) e.unshift(vt(o));
179
+ } else t !== void 0 && e.push(vt(t));
180
+ return e;
181
+ }
182
+ static _$Eu(t, e) {
183
+ const i = e.attribute;
184
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
185
+ }
186
+ constructor() {
187
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
188
+ }
189
+ _$Ev() {
190
+ var t;
191
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
192
+ }
193
+ addController(t) {
194
+ var e;
195
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
196
+ }
197
+ removeController(t) {
198
+ var e;
199
+ (e = this._$EO) == null || e.delete(t);
200
+ }
201
+ _$E_() {
202
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
203
+ for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
204
+ t.size > 0 && (this._$Ep = t);
205
+ }
206
+ createRenderRoot() {
207
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
208
+ return he(t, this.constructor.elementStyles), t;
209
+ }
210
+ connectedCallback() {
211
+ var t;
212
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
213
+ var i;
214
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
215
+ });
216
+ }
217
+ enableUpdating(t) {
218
+ }
219
+ disconnectedCallback() {
220
+ var t;
221
+ (t = this._$EO) == null || t.forEach((e) => {
222
+ var i;
223
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
224
+ });
225
+ }
226
+ attributeChangedCallback(t, e, i) {
227
+ this._$AK(t, i);
228
+ }
229
+ _$EC(t, e) {
230
+ var r;
231
+ const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
232
+ if (o !== void 0 && i.reflect === !0) {
233
+ const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
234
+ this._$Em = t, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
235
+ }
236
+ }
237
+ _$AK(t, e) {
238
+ var r;
239
+ const i = this.constructor, o = i._$Eh.get(t);
240
+ if (o !== void 0 && this._$Em !== o) {
241
+ const n = i.getPropertyOptions(o), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : K;
242
+ this._$Em = o, this[o] = l.fromAttribute(e, n.type), this._$Em = null;
243
+ }
244
+ }
245
+ requestUpdate(t, e, i) {
246
+ if (t !== void 0) {
247
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? at)(this[t], e)) return;
248
+ this.P(t, e, i);
249
+ }
250
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
251
+ }
252
+ P(t, e, i) {
253
+ this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
254
+ }
255
+ async _$ET() {
256
+ this.isUpdatePending = !0;
257
+ try {
258
+ await this._$ES;
259
+ } catch (e) {
260
+ Promise.reject(e);
261
+ }
262
+ const t = this.scheduleUpdate();
263
+ return t != null && await t, !this.isUpdatePending;
264
+ }
265
+ scheduleUpdate() {
266
+ return this.performUpdate();
267
+ }
268
+ performUpdate() {
269
+ var i;
270
+ if (!this.isUpdatePending) return;
271
+ if (!this.hasUpdated) {
272
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
273
+ for (const [r, n] of this._$Ep) this[r] = n;
274
+ this._$Ep = void 0;
275
+ }
276
+ const o = this.constructor.elementProperties;
277
+ if (o.size > 0) for (const [r, n] of o) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
278
+ }
279
+ let t = !1;
280
+ const e = this._$AL;
281
+ try {
282
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((o) => {
283
+ var r;
284
+ return (r = o.hostUpdate) == null ? void 0 : r.call(o);
285
+ }), this.update(e)) : this._$EU();
286
+ } catch (o) {
287
+ throw t = !1, this._$EU(), o;
288
+ }
289
+ t && this._$AE(e);
290
+ }
291
+ willUpdate(t) {
292
+ }
293
+ _$AE(t) {
294
+ var e;
295
+ (e = this._$EO) == null || e.forEach((i) => {
296
+ var o;
297
+ return (o = i.hostUpdated) == null ? void 0 : o.call(i);
298
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
299
+ }
300
+ _$EU() {
301
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
302
+ }
303
+ get updateComplete() {
304
+ return this.getUpdateComplete();
305
+ }
306
+ getUpdateComplete() {
307
+ return this._$ES;
308
+ }
309
+ shouldUpdate(t) {
310
+ return !0;
311
+ }
312
+ update(t) {
313
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
314
+ }
315
+ updated(t) {
316
+ }
317
+ firstUpdated(t) {
318
+ }
319
+ }
320
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), G == null || G({ ReactiveElement: T }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
321
+ /**
322
+ * @license
323
+ * Copyright 2017 Google LLC
324
+ * SPDX-License-Identifier: BSD-3-Clause
325
+ */
326
+ const N = globalThis, J = N.trustedTypes, _t = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Mt = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, Ot = "?" + $, _e = `<${Ot}>`, C = document, D = () => C.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", kt = Array.isArray, ye = (s) => kt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Q = `[
327
+ \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, yt = /-->/g, bt = />/g, S = RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
328
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), $t = /'/g, wt = /"/g, Rt = /^(?:script|style|textarea|title)$/i, be = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), y = be(1), P = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), St = /* @__PURE__ */ new WeakMap(), E = C.createTreeWalker(C, 129);
329
+ function Nt(s, t) {
330
+ if (!Array.isArray(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
331
+ return _t !== void 0 ? _t.createHTML(t) : t;
332
+ }
333
+ const $e = (s, t) => {
334
+ const e = s.length - 1, i = [];
335
+ let o, r = t === 2 ? "<svg>" : "", n = O;
336
+ for (let l = 0; l < e; l++) {
337
+ const a = s[l];
338
+ let d, g, h = -1, _ = 0;
339
+ for (; _ < a.length && (n.lastIndex = _, g = n.exec(a), g !== null); ) _ = n.lastIndex, n === O ? g[1] === "!--" ? n = yt : g[1] !== void 0 ? n = bt : g[2] !== void 0 ? (Rt.test(g[2]) && (o = RegExp("</" + g[2], "g")), n = S) : g[3] !== void 0 && (n = S) : n === S ? g[0] === ">" ? (n = o ?? O, h = -1) : g[1] === void 0 ? h = -2 : (h = n.lastIndex - g[2].length, d = g[1], n = g[3] === void 0 ? S : g[3] === '"' ? wt : $t) : n === wt || n === $t ? n = S : n === yt || n === bt ? n = O : (n = S, o = void 0);
340
+ const b = n === S && s[l + 1].startsWith("/>") ? " " : "";
341
+ r += n === O ? a + _e : h >= 0 ? (i.push(d), a.slice(0, h) + Mt + a.slice(h) + $ + b) : a + $ + (h === -2 ? l : b);
342
+ }
343
+ return [Nt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
344
+ };
345
+ class j {
346
+ constructor({ strings: t, _$litType$: e }, i) {
347
+ let o;
348
+ this.parts = [];
349
+ let r = 0, n = 0;
350
+ const l = t.length - 1, a = this.parts, [d, g] = $e(t, e);
351
+ if (this.el = j.createElement(d, i), E.currentNode = this.el.content, e === 2) {
352
+ const h = this.el.content.firstChild;
353
+ h.replaceWith(...h.childNodes);
354
+ }
355
+ for (; (o = E.nextNode()) !== null && a.length < l; ) {
356
+ if (o.nodeType === 1) {
357
+ if (o.hasAttributes()) for (const h of o.getAttributeNames()) if (h.endsWith(Mt)) {
358
+ const _ = g[n++], b = o.getAttribute(h).split($), q = /([.?@])?(.*)/.exec(_);
359
+ a.push({ type: 1, index: r, name: q[2], strings: b, ctor: q[1] === "." ? Se : q[1] === "?" ? Ae : q[1] === "@" ? Ee : Y }), o.removeAttribute(h);
360
+ } else h.startsWith($) && (a.push({ type: 6, index: r }), o.removeAttribute(h));
361
+ if (Rt.test(o.tagName)) {
362
+ const h = o.textContent.split($), _ = h.length - 1;
363
+ if (_ > 0) {
364
+ o.textContent = J ? J.emptyScript : "";
365
+ for (let b = 0; b < _; b++) o.append(h[b], D()), E.nextNode(), a.push({ type: 2, index: ++r });
366
+ o.append(h[_], D());
367
+ }
368
+ }
369
+ } else if (o.nodeType === 8) if (o.data === Ot) a.push({ type: 2, index: r });
370
+ else {
371
+ let h = -1;
372
+ for (; (h = o.data.indexOf($, h + 1)) !== -1; ) a.push({ type: 7, index: r }), h += $.length - 1;
373
+ }
374
+ r++;
375
+ }
376
+ }
377
+ static createElement(t, e) {
378
+ const i = C.createElement("template");
379
+ return i.innerHTML = t, i;
380
+ }
381
+ }
382
+ function I(s, t, e = s, i) {
383
+ var n, l;
384
+ if (t === P) return t;
385
+ let o = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
386
+ const r = H(t) ? void 0 : t._$litDirective$;
387
+ return (o == null ? void 0 : o.constructor) !== r && ((l = o == null ? void 0 : o._$AO) == null || l.call(o, !1), r === void 0 ? o = void 0 : (o = new r(s), o._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = o : e._$Cl = o), o !== void 0 && (t = I(s, o._$AS(s, t.values), o, i)), t;
388
+ }
389
+ class we {
390
+ constructor(t, e) {
391
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
392
+ }
393
+ get parentNode() {
394
+ return this._$AM.parentNode;
395
+ }
396
+ get _$AU() {
397
+ return this._$AM._$AU;
398
+ }
399
+ u(t) {
400
+ const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? C).importNode(e, !0);
401
+ E.currentNode = o;
402
+ let r = E.nextNode(), n = 0, l = 0, a = i[0];
403
+ for (; a !== void 0; ) {
404
+ if (n === a.index) {
405
+ let d;
406
+ a.type === 2 ? d = new B(r, r.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (d = new Ce(r, this, t)), this._$AV.push(d), a = i[++l];
407
+ }
408
+ n !== (a == null ? void 0 : a.index) && (r = E.nextNode(), n++);
409
+ }
410
+ return E.currentNode = C, o;
411
+ }
412
+ p(t) {
413
+ let e = 0;
414
+ for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
415
+ }
416
+ }
417
+ class B {
418
+ get _$AU() {
419
+ var t;
420
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
421
+ }
422
+ constructor(t, e, i, o) {
423
+ this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
424
+ }
425
+ get parentNode() {
426
+ let t = this._$AA.parentNode;
427
+ const e = this._$AM;
428
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
429
+ }
430
+ get startNode() {
431
+ return this._$AA;
432
+ }
433
+ get endNode() {
434
+ return this._$AB;
435
+ }
436
+ _$AI(t, e = this) {
437
+ t = I(this, t, e), H(t) ? t === v || t == null || t === "" ? (this._$AH !== v && this._$AR(), this._$AH = v) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ye(t) ? this.k(t) : this._(t);
438
+ }
439
+ S(t) {
440
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
441
+ }
442
+ T(t) {
443
+ this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
444
+ }
445
+ _(t) {
446
+ this._$AH !== v && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(C.createTextNode(t)), this._$AH = t;
447
+ }
448
+ $(t) {
449
+ var r;
450
+ const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = j.createElement(Nt(i.h, i.h[0]), this.options)), i);
451
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
452
+ else {
453
+ const n = new we(o, this), l = n.u(this.options);
454
+ n.p(e), this.T(l), this._$AH = n;
455
+ }
456
+ }
457
+ _$AC(t) {
458
+ let e = St.get(t.strings);
459
+ return e === void 0 && St.set(t.strings, e = new j(t)), e;
460
+ }
461
+ k(t) {
462
+ kt(this._$AH) || (this._$AH = [], this._$AR());
463
+ const e = this._$AH;
464
+ let i, o = 0;
465
+ for (const r of t) o === e.length ? e.push(i = new B(this.S(D()), this.S(D()), this, this.options)) : i = e[o], i._$AI(r), o++;
466
+ o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o);
467
+ }
468
+ _$AR(t = this._$AA.nextSibling, e) {
469
+ var i;
470
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
471
+ const o = t.nextSibling;
472
+ t.remove(), t = o;
473
+ }
474
+ }
475
+ setConnected(t) {
476
+ var e;
477
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
478
+ }
479
+ }
480
+ class Y {
481
+ get tagName() {
482
+ return this.element.tagName;
483
+ }
484
+ get _$AU() {
485
+ return this._$AM._$AU;
486
+ }
487
+ constructor(t, e, i, o, r) {
488
+ this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = v;
489
+ }
490
+ _$AI(t, e = this, i, o) {
491
+ const r = this.strings;
492
+ let n = !1;
493
+ if (r === void 0) t = I(this, t, e, 0), n = !H(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
494
+ else {
495
+ const l = t;
496
+ let a, d;
497
+ for (t = r[0], a = 0; a < r.length - 1; a++) d = I(this, l[i + a], e, a), d === P && (d = this._$AH[a]), n || (n = !H(d) || d !== this._$AH[a]), d === v ? t = v : t !== v && (t += (d ?? "") + r[a + 1]), this._$AH[a] = d;
498
+ }
499
+ n && !o && this.j(t);
500
+ }
501
+ j(t) {
502
+ t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
503
+ }
504
+ }
505
+ class Se extends Y {
506
+ constructor() {
507
+ super(...arguments), this.type = 3;
508
+ }
509
+ j(t) {
510
+ this.element[this.name] = t === v ? void 0 : t;
511
+ }
512
+ }
513
+ class Ae extends Y {
514
+ constructor() {
515
+ super(...arguments), this.type = 4;
516
+ }
517
+ j(t) {
518
+ this.element.toggleAttribute(this.name, !!t && t !== v);
519
+ }
520
+ }
521
+ class Ee extends Y {
522
+ constructor(t, e, i, o, r) {
523
+ super(t, e, i, o, r), this.type = 5;
524
+ }
525
+ _$AI(t, e = this) {
526
+ if ((t = I(this, t, e, 0) ?? v) === P) return;
527
+ const i = this._$AH, o = t === v && i !== v || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== v && (i === v || o);
528
+ o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
529
+ }
530
+ handleEvent(t) {
531
+ var e;
532
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
533
+ }
534
+ }
535
+ class Ce {
536
+ constructor(t, e, i) {
537
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
538
+ }
539
+ get _$AU() {
540
+ return this._$AM._$AU;
541
+ }
542
+ _$AI(t) {
543
+ I(this, t);
544
+ }
545
+ }
546
+ const X = N.litHtmlPolyfillSupport;
547
+ X == null || X(j, B), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.1.4");
548
+ const Pe = (s, t, e) => {
549
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
550
+ let o = i._$litPart$;
551
+ if (o === void 0) {
552
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
553
+ i._$litPart$ = o = new B(t.insertBefore(D(), r), r, void 0, e ?? {});
554
+ }
555
+ return o._$AI(s), o;
556
+ };
557
+ /**
558
+ * @license
559
+ * Copyright 2017 Google LLC
560
+ * SPDX-License-Identifier: BSD-3-Clause
561
+ */
562
+ class z extends T {
563
+ constructor() {
564
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
565
+ }
566
+ createRenderRoot() {
567
+ var e;
568
+ const t = super.createRenderRoot();
569
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
570
+ }
571
+ update(t) {
572
+ const e = this.render();
573
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Pe(e, this.renderRoot, this.renderOptions);
574
+ }
575
+ connectedCallback() {
576
+ var t;
577
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
578
+ }
579
+ disconnectedCallback() {
580
+ var t;
581
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
582
+ }
583
+ render() {
584
+ return P;
585
+ }
586
+ }
587
+ var xt;
588
+ z._$litElement$ = !0, z.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: z });
589
+ const tt = globalThis.litElementPolyfillSupport;
590
+ tt == null || tt({ LitElement: z });
591
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
592
+ var xe = nt`
593
+ :host {
594
+ --slide-gap: var(--sl-spacing-medium, 1rem);
595
+ --aspect-ratio: 16 / 9;
596
+ --scroll-hint: 0px;
597
+
598
+ display: flex;
599
+ }
600
+
601
+ .carousel {
602
+ display: grid;
603
+ grid-template-columns: min-content 1fr min-content;
604
+ grid-template-rows: 1fr min-content;
605
+ grid-template-areas:
606
+ '. slides .'
607
+ '. pagination .';
608
+ gap: var(--sl-spacing-medium);
609
+ align-items: center;
610
+ min-height: 100%;
611
+ min-width: 100%;
612
+ position: relative;
613
+ }
614
+
615
+ .carousel__pagination {
616
+ grid-area: pagination;
617
+ display: flex;
618
+ flex-wrap: wrap;
619
+ justify-content: center;
620
+ gap: var(--sl-spacing-small);
621
+ }
622
+
623
+ .carousel__slides {
624
+ grid-area: slides;
625
+
626
+ display: grid;
627
+ height: 100%;
628
+ width: 100%;
629
+ align-items: center;
630
+ justify-items: center;
631
+ overflow: auto;
632
+ overscroll-behavior-x: contain;
633
+ scrollbar-width: none;
634
+ aspect-ratio: calc(var(--aspect-ratio) * var(--slides-per-page));
635
+ border-radius: var(--sl-border-radius-small);
636
+
637
+ --slide-size: calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));
638
+ }
639
+
640
+ @media (prefers-reduced-motion) {
641
+ :where(.carousel__slides) {
642
+ scroll-behavior: auto;
643
+ }
644
+ }
645
+
646
+ .carousel__slides--horizontal {
647
+ grid-auto-flow: column;
648
+ grid-auto-columns: var(--slide-size);
649
+ grid-auto-rows: 100%;
650
+ column-gap: var(--slide-gap);
651
+ scroll-snap-type: x mandatory;
652
+ scroll-padding-inline: var(--scroll-hint);
653
+ padding-inline: var(--scroll-hint);
654
+ overflow-y: hidden;
655
+ }
656
+
657
+ .carousel__slides--vertical {
658
+ grid-auto-flow: row;
659
+ grid-auto-columns: 100%;
660
+ grid-auto-rows: var(--slide-size);
661
+ row-gap: var(--slide-gap);
662
+ scroll-snap-type: y mandatory;
663
+ scroll-padding-block: var(--scroll-hint);
664
+ padding-block: var(--scroll-hint);
665
+ overflow-x: hidden;
666
+ }
667
+
668
+ .carousel__slides--dragging {
669
+ }
670
+
671
+ :host([vertical]) ::slotted(sl-carousel-item) {
672
+ height: 100%;
673
+ }
674
+
675
+ .carousel__slides::-webkit-scrollbar {
676
+ display: none;
677
+ }
678
+
679
+ .carousel__navigation {
680
+ grid-area: navigation;
681
+ display: contents;
682
+ font-size: var(--sl-font-size-x-large);
683
+ }
684
+
685
+ .carousel__navigation-button {
686
+ flex: 0 0 auto;
687
+ display: flex;
688
+ align-items: center;
689
+ background: none;
690
+ border: none;
691
+ border-radius: var(--sl-border-radius-small);
692
+ font-size: inherit;
693
+ color: var(--sl-color-neutral-600);
694
+ padding: var(--sl-spacing-x-small);
695
+ cursor: pointer;
696
+ transition: var(--sl-transition-medium) color;
697
+ appearance: none;
698
+ }
699
+
700
+ .carousel__navigation-button--disabled {
701
+ opacity: 0.5;
702
+ cursor: not-allowed;
703
+ }
704
+
705
+ .carousel__navigation-button--disabled::part(base) {
706
+ pointer-events: none;
707
+ }
708
+
709
+ .carousel__navigation-button--previous {
710
+ grid-column: 1;
711
+ grid-row: 1;
712
+ }
713
+
714
+ .carousel__navigation-button--next {
715
+ grid-column: 3;
716
+ grid-row: 1;
717
+ }
718
+
719
+ .carousel__pagination-item {
720
+ display: block;
721
+ cursor: pointer;
722
+ background: none;
723
+ border: 0;
724
+ border-radius: var(--sl-border-radius-circle);
725
+ width: var(--sl-spacing-small);
726
+ height: var(--sl-spacing-small);
727
+ background-color: var(--sl-color-neutral-300);
728
+ padding: 0;
729
+ margin: 0;
730
+ }
731
+
732
+ .carousel__pagination-item--active {
733
+ background-color: var(--sl-color-neutral-700);
734
+ transform: scale(1.2);
735
+ }
736
+
737
+ /* Focus styles */
738
+ .carousel__slides:focus-visible,
739
+ .carousel__navigation-button:focus-visible,
740
+ .carousel__pagination-item:focus-visible {
741
+ outline: var(--sl-focus-ring);
742
+ outline-offset: var(--sl-focus-ring-offset);
743
+ }
744
+ `;
745
+ function Te(s, t) {
746
+ return new Promise((e) => {
747
+ function i(o) {
748
+ o.target === s && (s.removeEventListener(t, i), e());
749
+ }
750
+ s.addEventListener(t, i);
751
+ });
752
+ }
753
+ function At() {
754
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
755
+ }
756
+ const it = /* @__PURE__ */ new Set(), Le = new MutationObserver(jt), L = /* @__PURE__ */ new Map();
757
+ let zt = document.documentElement.dir || "ltr", Dt = document.documentElement.lang || navigator.language, A;
758
+ Le.observe(document.documentElement, {
759
+ attributes: !0,
760
+ attributeFilter: ["dir", "lang"]
761
+ });
762
+ function Ht(...s) {
763
+ s.map((t) => {
764
+ const e = t.$code.toLowerCase();
765
+ L.has(e) ? L.set(e, Object.assign(Object.assign({}, L.get(e)), t)) : L.set(e, t), A || (A = t);
766
+ }), jt();
767
+ }
768
+ function jt() {
769
+ zt = document.documentElement.dir || "ltr", Dt = document.documentElement.lang || navigator.language, [...it.keys()].map((s) => {
770
+ typeof s.requestUpdate == "function" && s.requestUpdate();
771
+ });
772
+ }
773
+ let Ie = class {
774
+ constructor(t) {
775
+ this.host = t, this.host.addController(this);
776
+ }
777
+ hostConnected() {
778
+ it.add(this.host);
779
+ }
780
+ hostDisconnected() {
781
+ it.delete(this.host);
782
+ }
783
+ dir() {
784
+ return `${this.host.dir || zt}`.toLowerCase();
785
+ }
786
+ lang() {
787
+ return `${this.host.lang || Dt}`.toLowerCase();
788
+ }
789
+ getTranslationData(t) {
790
+ var e, i;
791
+ const o = new Intl.Locale(t.replace(/_/g, "-")), r = o == null ? void 0 : o.language.toLowerCase(), n = (i = (e = o == null ? void 0 : o.region) === null || e === void 0 ? void 0 : e.toLowerCase()) !== null && i !== void 0 ? i : "", l = L.get(`${r}-${n}`), a = L.get(r);
792
+ return { locale: o, language: r, region: n, primary: l, secondary: a };
793
+ }
794
+ exists(t, e) {
795
+ var i;
796
+ const { primary: o, secondary: r } = this.getTranslationData((i = e.lang) !== null && i !== void 0 ? i : this.lang());
797
+ return e = Object.assign({ includeFallback: !1 }, e), !!(o && o[t] || r && r[t] || e.includeFallback && A && A[t]);
798
+ }
799
+ term(t, ...e) {
800
+ const { primary: i, secondary: o } = this.getTranslationData(this.lang());
801
+ let r;
802
+ if (i && i[t])
803
+ r = i[t];
804
+ else if (o && o[t])
805
+ r = o[t];
806
+ else if (A && A[t])
807
+ r = A[t];
808
+ else
809
+ return console.error(`No translation found for: ${String(t)}`), String(t);
810
+ return typeof r == "function" ? r(...e) : r;
811
+ }
812
+ date(t, e) {
813
+ return t = new Date(t), new Intl.DateTimeFormat(this.lang(), e).format(t);
814
+ }
815
+ number(t, e) {
816
+ return t = Number(t), isNaN(t) ? "" : new Intl.NumberFormat(this.lang(), e).format(t);
817
+ }
818
+ relativeTime(t, e, i) {
819
+ return new Intl.RelativeTimeFormat(this.lang(), i).format(t, e);
820
+ }
821
+ };
822
+ var Bt = {
823
+ $code: "en",
824
+ $name: "English",
825
+ $dir: "ltr",
826
+ carousel: "Carousel",
827
+ clearEntry: "Clear entry",
828
+ close: "Close",
829
+ copied: "Copied",
830
+ copy: "Copy",
831
+ currentValue: "Current value",
832
+ error: "Error",
833
+ goToSlide: (s, t) => `Go to slide ${s} of ${t}`,
834
+ hidePassword: "Hide password",
835
+ loading: "Loading",
836
+ nextMonth: "Next month",
837
+ nextSlide: "Next slide",
838
+ numOptionsSelected: (s) => s === 0 ? "No options selected" : s === 1 ? "1 option selected" : `${s} options selected`,
839
+ previousMonth: "Previous month",
840
+ previousSlide: "Previous slide",
841
+ progress: "Progress",
842
+ remove: "Remove",
843
+ resize: "Resize",
844
+ scrollToEnd: "Scroll to end",
845
+ scrollToStart: "Scroll to start",
846
+ selectAColorFromTheScreen: "Select a color from the screen",
847
+ showPassword: "Show password",
848
+ slideNum: (s) => `Slide ${s}`,
849
+ toggleColorFormat: "Toggle color format"
850
+ };
851
+ Ht(Bt);
852
+ var Ue = Bt, Me = class extends Ie {
853
+ };
854
+ Ht(Ue);
855
+ var Oe = nt`
856
+ :host {
857
+ display: inline-block;
858
+ width: 1em;
859
+ height: 1em;
860
+ box-sizing: content-box !important;
861
+ }
862
+
863
+ svg {
864
+ display: block;
865
+ height: 100%;
866
+ width: 100%;
867
+ }
868
+ `;
869
+ function x(s, t) {
870
+ const e = It({
871
+ waitUntilFirstUpdate: !1
872
+ }, t);
873
+ return (i, o) => {
874
+ const { update: r } = i, n = Array.isArray(s) ? s : [s];
875
+ i.update = function(l) {
876
+ n.forEach((a) => {
877
+ const d = a;
878
+ if (l.has(d)) {
879
+ const g = l.get(d), h = this[d];
880
+ g !== h && (!e.waitUntilFirstUpdate || this.hasUpdated) && this[o](g, h);
881
+ }
882
+ }), r.call(this, l);
883
+ };
884
+ };
885
+ }
886
+ /**
887
+ * @license
888
+ * Copyright 2017 Google LLC
889
+ * SPDX-License-Identifier: BSD-3-Clause
890
+ */
891
+ const ke = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: at }, Re = (s = ke, t, e) => {
892
+ const { kind: i, metadata: o } = e;
893
+ let r = globalThis.litPropertyMetadata.get(o);
894
+ if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), r.set(e.name, s), i === "accessor") {
895
+ const { name: n } = e;
896
+ return { set(l) {
897
+ const a = t.get.call(this);
898
+ t.set.call(this, l), this.requestUpdate(n, a, s);
899
+ }, init(l) {
900
+ return l !== void 0 && this.P(n, void 0, s), l;
901
+ } };
902
+ }
903
+ if (i === "setter") {
904
+ const { name: n } = e;
905
+ return function(l) {
906
+ const a = this[n];
907
+ t.call(this, l), this.requestUpdate(n, a, s);
908
+ };
909
+ }
910
+ throw Error("Unsupported decorator location: " + i);
911
+ };
912
+ function m(s) {
913
+ return (t, e) => typeof e == "object" ? Re(s, t, e) : ((i, o, r) => {
914
+ const n = o.hasOwnProperty(r);
915
+ return o.constructor.createProperty(r, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(o, r) : void 0;
916
+ })(s, t, e);
917
+ }
918
+ /**
919
+ * @license
920
+ * Copyright 2017 Google LLC
921
+ * SPDX-License-Identifier: BSD-3-Clause
922
+ */
923
+ function Z(s) {
924
+ return m({ ...s, state: !0, attribute: !1 });
925
+ }
926
+ /**
927
+ * @license
928
+ * Copyright 2017 Google LLC
929
+ * SPDX-License-Identifier: BSD-3-Clause
930
+ */
931
+ function Ne(s) {
932
+ return (t, e) => {
933
+ const i = typeof t == "function" ? t : t[e];
934
+ Object.assign(i, s);
935
+ };
936
+ }
937
+ /**
938
+ * @license
939
+ * Copyright 2017 Google LLC
940
+ * SPDX-License-Identifier: BSD-3-Clause
941
+ */
942
+ const ze = (s, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(s, t, e), e);
943
+ /**
944
+ * @license
945
+ * Copyright 2017 Google LLC
946
+ * SPDX-License-Identifier: BSD-3-Clause
947
+ */
948
+ function qt(s, t) {
949
+ return (e, i, o) => {
950
+ const r = (n) => {
951
+ var l;
952
+ return ((l = n.renderRoot) == null ? void 0 : l.querySelector(s)) ?? null;
953
+ };
954
+ return ze(e, i, { get() {
955
+ return r(this);
956
+ } });
957
+ };
958
+ }
959
+ var U = class extends z {
960
+ constructor() {
961
+ super(), Object.entries(this.constructor.dependencies).forEach(([s, t]) => {
962
+ this.constructor.define(s, t);
963
+ });
964
+ }
965
+ emit(s, t) {
966
+ const e = new CustomEvent(s, It({
967
+ bubbles: !0,
968
+ cancelable: !1,
969
+ composed: !0,
970
+ detail: {}
971
+ }, t));
972
+ return this.dispatchEvent(e), e;
973
+ }
974
+ /* eslint-enable */
975
+ static define(s, t = this, e = {}) {
976
+ const i = customElements.get(s);
977
+ if (!i) {
978
+ customElements.define(s, class extends t {
979
+ }, e);
980
+ return;
981
+ }
982
+ let o = " (unknown version)", r = o;
983
+ "version" in t && t.version && (o = " v" + t.version), "version" in i && i.version && (r = " v" + i.version), !(o && r && o === r) && console.warn(
984
+ `Attempted to register <${s}>${o}, but <${s}>${r} has already been registered.`
985
+ );
986
+ }
987
+ };
988
+ U.version = "1.0.6-v2.15.1";
989
+ U.dependencies = {};
990
+ c([
991
+ m()
992
+ ], U.prototype, "dir", 2);
993
+ c([
994
+ m()
995
+ ], U.prototype, "lang", 2);
996
+ var Vt = nt`
997
+ :host {
998
+ box-sizing: border-box;
999
+ }
1000
+
1001
+ :host *,
1002
+ :host *::before,
1003
+ :host *::after {
1004
+ box-sizing: border-box;
1005
+ }
1006
+
1007
+ [hidden] {
1008
+ display: none !important;
1009
+ }
1010
+ `;
1011
+ /**
1012
+ * @license
1013
+ * Copyright 2020 Google LLC
1014
+ * SPDX-License-Identifier: BSD-3-Clause
1015
+ */
1016
+ const De = (s, t) => (s == null ? void 0 : s._$litType$) !== void 0;
1017
+ var k = Symbol(), V = Symbol(), et, st = /* @__PURE__ */ new Map(), f = class extends U {
1018
+ constructor() {
1019
+ super(...arguments), this.initialRender = !1, this.svg = null, this.label = "", this.library = "default", this.vueonce = !0, this.sprite = !1;
1020
+ }
1021
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
1022
+ async resolveIcon(s, t) {
1023
+ var e;
1024
+ let i;
1025
+ if (t != null && t.spriteSheet) {
1026
+ this.svg = y`<svg part="svg">
1027
+ <use part="use" href="${s}"></use>
1028
+ </svg>`, await this.updateComplete;
1029
+ const o = this.shadowRoot.querySelector("[part='svg']");
1030
+ return typeof t.mutator == "function" && t.mutator(o), this.svg;
1031
+ }
1032
+ try {
1033
+ if (i = await fetch(s, { mode: "cors" }), !i.ok)
1034
+ return i.status === 410 ? k : V;
1035
+ } catch {
1036
+ return V;
1037
+ }
1038
+ try {
1039
+ const o = document.createElement("div");
1040
+ o.innerHTML = await i.text();
1041
+ const r = o.firstElementChild;
1042
+ if (((e = r == null ? void 0 : r.tagName) == null ? void 0 : e.toLowerCase()) !== "svg")
1043
+ return k;
1044
+ et || (et = new DOMParser());
1045
+ const l = et.parseFromString(r.outerHTML, "text/html").body.querySelector("svg");
1046
+ return l ? (l.part.add("svg"), document.adoptNode(l)) : k;
1047
+ } catch {
1048
+ return k;
1049
+ }
1050
+ }
1051
+ connectedCallback() {
1052
+ super.connectedCallback(), se(this);
1053
+ }
1054
+ firstUpdated() {
1055
+ this.sprite || this.setIcon(), this.initialRender = !0, this.setIcon();
1056
+ }
1057
+ disconnectedCallback() {
1058
+ super.disconnectedCallback(), ie(this);
1059
+ }
1060
+ getIconSource(s = !1) {
1061
+ const t = ht(this.library);
1062
+ return this.name && t ? {
1063
+ url: t.resolver(this.name, s),
1064
+ fromLibrary: !0
1065
+ } : {
1066
+ url: this.src,
1067
+ fromLibrary: !1
1068
+ };
1069
+ }
1070
+ getDir() {
1071
+ const { url: s } = this.getIconSource(!0);
1072
+ return s == null ? void 0 : s.substring(0, s == null ? void 0 : s.lastIndexOf("/"));
1073
+ }
1074
+ // Fetches the icon and redraws it. Used to handle library registrations.
1075
+ redraw() {
1076
+ this.sprite || this.setIcon();
1077
+ }
1078
+ handleLabelChange() {
1079
+ 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"));
1080
+ }
1081
+ async setIcon() {
1082
+ var s;
1083
+ const { url: t, fromLibrary: e } = this.getIconSource(), i = e ? ht(this.library) : void 0;
1084
+ if (!t) {
1085
+ this.svg = null;
1086
+ return;
1087
+ }
1088
+ let o = st.get(t);
1089
+ if (o || (o = this.resolveIcon(t, i), st.set(t, o)), !this.initialRender)
1090
+ return;
1091
+ const r = await o;
1092
+ if (r === V && st.delete(t), t === this.getIconSource().url) {
1093
+ if (De(r)) {
1094
+ this.svg = r;
1095
+ return;
1096
+ }
1097
+ switch (r) {
1098
+ case V:
1099
+ case k:
1100
+ this.svg = null, this.emit("sl-error");
1101
+ break;
1102
+ default:
1103
+ this.svg = r.cloneNode(!0), (s = i == null ? void 0 : i.mutator) == null || s.call(i, this.svg), this.emit("sl-load");
1104
+ }
1105
+ }
1106
+ }
1107
+ handleChange() {
1108
+ this.sprite || this.setIcon();
1109
+ }
1110
+ render() {
1111
+ return y`
1112
+ ${this.sprite ? y`<svg width="1em" height="1em">
1113
+ <use href="${this.getDir()}/_sprite.svg#${this.name}"></use>
1114
+ </svg>` : y`${this.svg}`}`;
1115
+ }
1116
+ };
1117
+ f.styles = [Vt, Oe];
1118
+ c([
1119
+ Z()
1120
+ ], f.prototype, "svg", 2);
1121
+ c([
1122
+ m({ reflect: !0 })
1123
+ ], f.prototype, "name", 2);
1124
+ c([
1125
+ m()
1126
+ ], f.prototype, "src", 2);
1127
+ c([
1128
+ m()
1129
+ ], f.prototype, "label", 2);
1130
+ c([
1131
+ m({ reflect: !0 })
1132
+ ], f.prototype, "library", 2);
1133
+ c([
1134
+ m({ reflect: !0, type: Boolean, attribute: "v-once" })
1135
+ ], f.prototype, "vueonce", 2);
1136
+ c([
1137
+ m({ reflect: !0, type: Boolean })
1138
+ ], f.prototype, "sprite", 2);
1139
+ c([
1140
+ x("label")
1141
+ ], f.prototype, "handleLabelChange", 1);
1142
+ c([
1143
+ x(["name", "src", "library"])
1144
+ ], f.prototype, "setIcon", 1);
1145
+ /**
1146
+ * @license
1147
+ * Copyright 2017 Google LLC
1148
+ * SPDX-License-Identifier: BSD-3-Clause
1149
+ */
1150
+ const He = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, je = (s) => (...t) => ({ _$litDirective$: s, values: t });
1151
+ class Be {
1152
+ constructor(t) {
1153
+ }
1154
+ get _$AU() {
1155
+ return this._$AM._$AU;
1156
+ }
1157
+ _$AT(t, e, i) {
1158
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
1159
+ }
1160
+ _$AS(t, e) {
1161
+ return this.update(t, e);
1162
+ }
1163
+ update(t, e) {
1164
+ return this.render(...e);
1165
+ }
1166
+ }
1167
+ /**
1168
+ * @license
1169
+ * Copyright 2018 Google LLC
1170
+ * SPDX-License-Identifier: BSD-3-Clause
1171
+ */
1172
+ const F = je(class extends Be {
1173
+ constructor(s) {
1174
+ var t;
1175
+ if (super(s), s.type !== He.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1176
+ }
1177
+ render(s) {
1178
+ return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
1179
+ }
1180
+ update(s, [t]) {
1181
+ var i, o;
1182
+ if (this.st === void 0) {
1183
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((r) => r !== "")));
1184
+ for (const r in t) t[r] && !((i = this.nt) != null && i.has(r)) && this.st.add(r);
1185
+ return this.render(t);
1186
+ }
1187
+ const e = s.element.classList;
1188
+ for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
1189
+ for (const r in t) {
1190
+ const n = !!t[r];
1191
+ n === this.st.has(r) || (o = this.nt) != null && o.has(r) || (n ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
1192
+ }
1193
+ return P;
1194
+ }
1195
+ });
1196
+ /**
1197
+ * @license
1198
+ * Copyright 2021 Google LLC
1199
+ * SPDX-License-Identifier: BSD-3-Clause
1200
+ */
1201
+ function* Et(s, t) {
1202
+ if (s !== void 0) {
1203
+ let e = 0;
1204
+ for (const i of s) yield t(i, e++);
1205
+ }
1206
+ }
1207
+ /**
1208
+ * @license
1209
+ * Copyright 2021 Google LLC
1210
+ * SPDX-License-Identifier: BSD-3-Clause
1211
+ */
1212
+ function* Ct(s, t, e = 1) {
1213
+ const i = t === void 0 ? 0 : s;
1214
+ t ?? (t = s);
1215
+ for (let o = i; e > 0 ? o < t : t < o; o += e) yield o;
1216
+ }
1217
+ var qe = (s, t) => {
1218
+ let e = 0;
1219
+ return function(...i) {
1220
+ window.clearTimeout(e), e = window.setTimeout(() => {
1221
+ s.call(this, ...i);
1222
+ }, t);
1223
+ };
1224
+ }, Pt = (s, t, e) => {
1225
+ const i = s[t];
1226
+ s[t] = function(...o) {
1227
+ i.call(this, ...o), e.call(this, i, ...o);
1228
+ };
1229
+ }, Ve = "onscrollend" in window;
1230
+ if (!Ve) {
1231
+ const s = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), e = (o) => {
1232
+ for (const r of o.changedTouches)
1233
+ s.add(r.identifier);
1234
+ }, i = (o) => {
1235
+ for (const r of o.changedTouches)
1236
+ s.delete(r.identifier);
1237
+ };
1238
+ document.addEventListener("touchstart", e, !0), document.addEventListener("touchend", i, !0), document.addEventListener("touchcancel", i, !0), Pt(EventTarget.prototype, "addEventListener", function(o, r) {
1239
+ if (r !== "scrollend")
1240
+ return;
1241
+ const n = qe(() => {
1242
+ s.size ? n() : this.dispatchEvent(new Event("scrollend"));
1243
+ }, 100);
1244
+ o.call(this, "scroll", n, { passive: !0 }), t.set(this, n);
1245
+ }), Pt(EventTarget.prototype, "removeEventListener", function(o, r) {
1246
+ if (r !== "scrollend")
1247
+ return;
1248
+ const n = t.get(this);
1249
+ n && o.call(this, "scroll", n, { passive: !0 });
1250
+ });
1251
+ }
1252
+ var u = class extends U {
1253
+ constructor() {
1254
+ 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 le(this, () => this.next()), this.localize = new Me(this), this.handleMouseDrag = (s) => {
1255
+ this.dragging || (this.scrollContainer.style.setProperty("scroll-snap-type", "none"), this.dragging = !0), this.scrollContainer.scrollBy({
1256
+ left: -s.movementX,
1257
+ top: -s.movementY,
1258
+ behavior: "instant"
1259
+ });
1260
+ }, this.handleMouseDragEnd = () => {
1261
+ const s = this.scrollContainer;
1262
+ document.removeEventListener("pointermove", this.handleMouseDrag, { capture: !0 });
1263
+ const t = s.scrollLeft, e = s.scrollTop;
1264
+ s.style.removeProperty("scroll-snap-type"), s.style.setProperty("overflow", "hidden");
1265
+ const i = s.scrollLeft, o = s.scrollTop;
1266
+ s.style.removeProperty("overflow"), s.style.setProperty("scroll-snap-type", "none"), s.scrollTo({ left: t, top: e, behavior: "instant" }), requestAnimationFrame(async () => {
1267
+ (t !== i || e !== o) && (s.scrollTo({
1268
+ left: i,
1269
+ top: o,
1270
+ behavior: At() ? "auto" : "smooth"
1271
+ }), await Te(s, "scrollend")), s.style.removeProperty("scroll-snap-type"), this.dragging = !1, this.handleScrollEnd();
1272
+ });
1273
+ }, this.handleSlotChange = (s) => {
1274
+ s.some(
1275
+ (e) => [...e.addedNodes, ...e.removedNodes].some(
1276
+ (i) => this.isCarouselItem(i) && !i.hasAttribute("data-clone")
1277
+ )
1278
+ ) && this.initializeSlides(), this.requestUpdate();
1279
+ };
1280
+ }
1281
+ connectedCallback() {
1282
+ super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("carousel"));
1283
+ }
1284
+ disconnectedCallback() {
1285
+ super.disconnectedCallback(), this.mutationObserver.disconnect();
1286
+ }
1287
+ firstUpdated() {
1288
+ this.initializeSlides(), this.mutationObserver = new MutationObserver(this.handleSlotChange), this.mutationObserver.observe(this, {
1289
+ childList: !0,
1290
+ subtree: !0
1291
+ });
1292
+ }
1293
+ willUpdate(s) {
1294
+ (s.has("slidesPerMove") || s.has("slidesPerPage")) && (this.slidesPerMove = Math.min(this.slidesPerMove, this.slidesPerPage));
1295
+ }
1296
+ getPageCount() {
1297
+ const s = this.getSlides().length, { slidesPerPage: t, slidesPerMove: e, loop: i } = this, o = i ? s / e : (s - t) / e + 1;
1298
+ return Math.ceil(o);
1299
+ }
1300
+ getCurrentPage() {
1301
+ return Math.ceil(this.activeSlide / this.slidesPerMove);
1302
+ }
1303
+ getShadowSlideCount() {
1304
+ return this.slidesPerPage - this.getSlides().length % this.slidesPerPage;
1305
+ }
1306
+ canScrollNext() {
1307
+ return this.loop || this.getCurrentPage() < this.getPageCount() - 1;
1308
+ }
1309
+ canScrollPrev() {
1310
+ return this.loop || this.getCurrentPage() > 0;
1311
+ }
1312
+ /** @internal Gets all carousel items. */
1313
+ getSlides({ excludeClones: s = !0 } = {}) {
1314
+ return [...this.children].filter(
1315
+ (t) => this.isCarouselItem(t) && (!s || !t.hasAttribute("data-clone"))
1316
+ );
1317
+ }
1318
+ handleKeyDown(s) {
1319
+ if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(s.key)) {
1320
+ const t = s.target, e = this.localize.dir() === "rtl", i = t.closest('[part~="pagination-item"]') !== null, o = s.key === "ArrowDown" || !e && s.key === "ArrowRight" || e && s.key === "ArrowLeft", r = s.key === "ArrowUp" || !e && s.key === "ArrowLeft" || e && s.key === "ArrowRight";
1321
+ s.preventDefault(), r && this.previous(), o && this.next(), s.key === "Home" && this.goToSlide(0), s.key === "End" && this.goToSlide(this.getSlides().length - 1), i && this.updateComplete.then(() => {
1322
+ var n;
1323
+ const l = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
1324
+ '[part~="pagination-item--active"]'
1325
+ );
1326
+ l && l.focus();
1327
+ });
1328
+ }
1329
+ }
1330
+ handleMouseDragStart(s) {
1331
+ this.mouseDragging && s.button === 0 && (s.preventDefault(), document.addEventListener("pointermove", this.handleMouseDrag, { capture: !0, passive: !0 }), document.addEventListener("pointerup", this.handleMouseDragEnd, { capture: !0, once: !0 }));
1332
+ }
1333
+ handleScroll() {
1334
+ this.scrolling = !0;
1335
+ }
1336
+ /** @internal Synchronizes the slides with the IntersectionObserver API. */
1337
+ synchronizeSlides() {
1338
+ const s = new IntersectionObserver(
1339
+ (t) => {
1340
+ s.disconnect();
1341
+ for (const i of t) {
1342
+ const o = i.target;
1343
+ o.toggleAttribute("inert", !i.isIntersecting), o.classList.toggle("--in-view", i.isIntersecting), o.setAttribute("aria-hidden", i.isIntersecting ? "false" : "true");
1344
+ }
1345
+ const e = t.find((i) => i.isIntersecting);
1346
+ if (e)
1347
+ if (this.loop && e.target.hasAttribute("data-clone")) {
1348
+ const i = Number(e.target.getAttribute("data-clone"));
1349
+ this.goToSlide(i, "instant");
1350
+ } else {
1351
+ const o = this.getSlides().indexOf(e.target);
1352
+ this.activeSlide = Math.ceil(o / this.slidesPerMove) * this.slidesPerMove;
1353
+ }
1354
+ },
1355
+ {
1356
+ root: this.scrollContainer,
1357
+ threshold: 0.6
1358
+ }
1359
+ );
1360
+ this.getSlides({ excludeClones: !1 }).forEach((t) => {
1361
+ s.observe(t);
1362
+ });
1363
+ }
1364
+ handleScrollEnd() {
1365
+ !this.scrolling || this.dragging || (this.synchronizeSlides(), this.scrolling = !1);
1366
+ }
1367
+ isCarouselItem(s) {
1368
+ return s instanceof Element && s.tagName.toLowerCase() === "sl-carousel-item";
1369
+ }
1370
+ initializeSlides() {
1371
+ this.getSlides({ excludeClones: !1 }).forEach((s, t) => {
1372
+ s.classList.remove("--in-view"), s.classList.remove("--is-active"), s.setAttribute("aria-label", this.localize.term("slideNum", t + 1)), s.hasAttribute("data-clone") && s.remove();
1373
+ }), this.updateSlidesSnap(), this.loop && this.createClones(), this.synchronizeSlides(), this.goToSlide(this.activeSlide, "auto");
1374
+ }
1375
+ createClones() {
1376
+ const s = this.getSlides(), t = this.slidesPerPage, e = s.slice(-t), i = s.slice(0, t);
1377
+ e.reverse().forEach((o, r) => {
1378
+ const n = o.cloneNode(!0);
1379
+ n.setAttribute("data-clone", String(s.length - r - 1)), this.prepend(n);
1380
+ }), i.forEach((o, r) => {
1381
+ const n = o.cloneNode(!0);
1382
+ n.setAttribute("data-clone", String(r)), this.append(n);
1383
+ });
1384
+ }
1385
+ handelSlideChange() {
1386
+ const s = this.getSlides();
1387
+ s.forEach((t, e) => {
1388
+ t.classList.toggle("--is-active", e === this.activeSlide);
1389
+ }), this.hasUpdated && this.emit("sl-slide-change", {
1390
+ detail: {
1391
+ index: this.activeSlide,
1392
+ slide: s[this.activeSlide]
1393
+ }
1394
+ });
1395
+ }
1396
+ updateSlidesSnap() {
1397
+ const s = this.getSlides(), t = this.slidesPerMove;
1398
+ s.forEach((e, i) => {
1399
+ (i + t) % t === 0 ? e.style.removeProperty("scroll-snap-align") : e.style.setProperty("scroll-snap-align", "none");
1400
+ });
1401
+ }
1402
+ handleAutoplayChange() {
1403
+ this.autoplayController.stop(), this.autoplay && this.autoplayController.start(this.autoplayInterval);
1404
+ }
1405
+ /**
1406
+ * Move the carousel backward by `slides-per-move` slides.
1407
+ *
1408
+ * @param behavior - The behavior used for scrolling.
1409
+ */
1410
+ previous(s = "smooth") {
1411
+ this.goToSlide(this.activeSlide - this.slidesPerMove, s);
1412
+ }
1413
+ /**
1414
+ * Move the carousel forward by `slides-per-move` slides.
1415
+ *
1416
+ * @param behavior - The behavior used for scrolling.
1417
+ */
1418
+ next(s = "smooth") {
1419
+ this.goToSlide(this.activeSlide + this.slidesPerMove, s);
1420
+ }
1421
+ /**
1422
+ * Scrolls the carousel to the slide specified by `index`.
1423
+ *
1424
+ * @param index - The slide index.
1425
+ * @param behavior - The behavior used for scrolling.
1426
+ */
1427
+ goToSlide(s, t = "smooth") {
1428
+ const { slidesPerPage: e, loop: i } = this, o = this.getSlides(), r = this.getSlides({ excludeClones: !1 });
1429
+ if (!o.length)
1430
+ return;
1431
+ const n = i ? (s + o.length) % o.length : pt(s, 0, o.length - 1);
1432
+ this.activeSlide = n;
1433
+ const l = pt(s + (i ? e : 0), 0, r.length - 1), a = r[l];
1434
+ this.scrollToSlide(a, At() ? "auto" : t);
1435
+ }
1436
+ scrollToSlide(s, t = "smooth") {
1437
+ const e = this.scrollContainer, i = e.getBoundingClientRect(), o = s.getBoundingClientRect(), r = o.left - i.left, n = o.top - i.top;
1438
+ e.scrollTo({
1439
+ left: r + e.scrollLeft,
1440
+ top: n + e.scrollTop,
1441
+ behavior: t
1442
+ });
1443
+ }
1444
+ render() {
1445
+ const { slidesPerMove: s, scrolling: t } = this, e = this.getPageCount(), i = this.getCurrentPage(), o = this.canScrollPrev(), r = this.canScrollNext(), n = this.localize.dir() === "ltr";
1446
+ return y`
1447
+ <div part="base" class="carousel">
1448
+ <div
1449
+ id="scroll-container"
1450
+ part="scroll-container"
1451
+ class="${F({
1452
+ carousel__slides: !0,
1453
+ "carousel__slides--horizontal": this.orientation === "horizontal",
1454
+ "carousel__slides--vertical": this.orientation === "vertical",
1455
+ "carousel__slides--dragging": this.dragging
1456
+ })}"
1457
+ style="--slides-per-page: ${this.slidesPerPage};"
1458
+ aria-busy="${t ? "true" : "false"}"
1459
+ aria-atomic="true"
1460
+ tabindex="0"
1461
+ @keydown=${this.handleKeyDown}
1462
+ @mousedown="${this.handleMouseDragStart}"
1463
+ @scroll="${this.handleScroll}"
1464
+ @scrollend=${this.handleScrollEnd}
1465
+ >
1466
+ <slot></slot>
1467
+ ${Et(Ct(this.getShadowSlideCount()), () => y`
1468
+ <sl-carousel-item class="shadow-slide"></sl-carousel-item>
1469
+ `)}
1470
+
1471
+ </div>
1472
+
1473
+ ${this.navigation ? y`
1474
+ <div part="navigation" class="carousel__navigation">
1475
+ <button
1476
+ part="navigation-button navigation-button--previous"
1477
+ class="${F({
1478
+ "carousel__navigation-button": !0,
1479
+ "carousel__navigation-button--previous": !0,
1480
+ "carousel__navigation-button--disabled": !o
1481
+ })}"
1482
+ aria-label="${this.localize.term("previousSlide")}"
1483
+ aria-controls="scroll-container"
1484
+ aria-disabled="${o ? "false" : "true"}"
1485
+ @click=${o ? () => this.previous() : null}
1486
+ >
1487
+ <slot name="previous-icon">
1488
+ <sl-icon library="system" name="${n ? "chevron-left" : "chevron-right"}"></sl-icon>
1489
+ </slot>
1490
+ </button>
1491
+
1492
+ <button
1493
+ part="navigation-button navigation-button--next"
1494
+ class=${F({
1495
+ "carousel__navigation-button": !0,
1496
+ "carousel__navigation-button--next": !0,
1497
+ "carousel__navigation-button--disabled": !r
1498
+ })}
1499
+ aria-label="${this.localize.term("nextSlide")}"
1500
+ aria-controls="scroll-container"
1501
+ aria-disabled="${r ? "false" : "true"}"
1502
+ @click=${r ? () => this.next() : null}
1503
+ >
1504
+ <slot name="next-icon">
1505
+ <sl-icon library="system" name="${n ? "chevron-right" : "chevron-left"}"></sl-icon>
1506
+ </slot>
1507
+ </button>
1508
+ </div>
1509
+ ` : ""}
1510
+ ${this.pagination ? y`
1511
+ <div part="pagination" role="tablist" class="carousel__pagination" aria-controls="scroll-container">
1512
+ ${Et(Ct(e), (l) => {
1513
+ const a = l === i;
1514
+ return y`
1515
+ <button
1516
+ part="pagination-item ${a ? "pagination-item--active" : ""}"
1517
+ class="${F({
1518
+ "carousel__pagination-item": !0,
1519
+ "carousel__pagination-item--active": a
1520
+ })}"
1521
+ role="tab"
1522
+ aria-selected="${a ? "true" : "false"}"
1523
+ aria-label="${this.localize.term("goToSlide", l + 1, e)}"
1524
+ tabindex=${a ? "0" : "-1"}
1525
+ @click=${() => this.goToSlide(l * s)}
1526
+ @keydown=${this.handleKeyDown}
1527
+ ></button>
1528
+ `;
1529
+ })}
1530
+ </div>
1531
+ ` : ""}
1532
+ </div>
1533
+ `;
1534
+ }
1535
+ };
1536
+ u.styles = [Vt, xe];
1537
+ u.dependencies = { "sl-icon": f };
1538
+ c([
1539
+ m({ type: Boolean, reflect: !0 })
1540
+ ], u.prototype, "loop", 2);
1541
+ c([
1542
+ m({ type: Boolean, reflect: !0 })
1543
+ ], u.prototype, "navigation", 2);
1544
+ c([
1545
+ m({ type: Boolean, reflect: !0 })
1546
+ ], u.prototype, "pagination", 2);
1547
+ c([
1548
+ m({ type: Boolean, reflect: !0 })
1549
+ ], u.prototype, "autoplay", 2);
1550
+ c([
1551
+ m({ type: Number, attribute: "autoplay-interval" })
1552
+ ], u.prototype, "autoplayInterval", 2);
1553
+ c([
1554
+ m({ type: Number, attribute: "slides-per-page" })
1555
+ ], u.prototype, "slidesPerPage", 2);
1556
+ c([
1557
+ m({ type: Number, attribute: "slides-per-move" })
1558
+ ], u.prototype, "slidesPerMove", 2);
1559
+ c([
1560
+ m()
1561
+ ], u.prototype, "orientation", 2);
1562
+ c([
1563
+ m({ type: Boolean, reflect: !0, attribute: "mouse-dragging" })
1564
+ ], u.prototype, "mouseDragging", 2);
1565
+ c([
1566
+ qt(".carousel__slides")
1567
+ ], u.prototype, "scrollContainer", 2);
1568
+ c([
1569
+ qt(".carousel__pagination")
1570
+ ], u.prototype, "paginationContainer", 2);
1571
+ c([
1572
+ Z()
1573
+ ], u.prototype, "activeSlide", 2);
1574
+ c([
1575
+ Z()
1576
+ ], u.prototype, "scrolling", 2);
1577
+ c([
1578
+ Z()
1579
+ ], u.prototype, "dragging", 2);
1580
+ c([
1581
+ Ne({ passive: !0 })
1582
+ ], u.prototype, "handleScroll", 1);
1583
+ c([
1584
+ x("loop", { waitUntilFirstUpdate: !0 }),
1585
+ x("slidesPerPage", { waitUntilFirstUpdate: !0 })
1586
+ ], u.prototype, "initializeSlides", 1);
1587
+ c([
1588
+ x("activeSlide")
1589
+ ], u.prototype, "handelSlideChange", 1);
1590
+ c([
1591
+ x("slidesPerMove")
1592
+ ], u.prototype, "updateSlidesSnap", 1);
1593
+ c([
1594
+ x("autoplay")
1595
+ ], u.prototype, "handleAutoplayChange", 1);
1596
+ u.define("sl-carousel");
1597
+ const M = (s) => (Qt("data-v-720fb199"), s = s(), Xt(), s), Fe = { class: "wrap" }, We = { class: "viur-shop-item-view-image-wrap" }, Ke = {
1598
+ class: "viur-shop-item-view-carousel-thumbnails",
1599
+ navigation: "",
1600
+ loop: ""
1601
+ }, Je = ["alt", "src"], Ye = { class: "viur-shop-item-view-thumbnails" }, Ze = { class: "viur-shop-item-view-thumbnails-scroller" }, Ge = ["alt", "src"], Qe = { class: "viur-shop-item-view-info-wrap" }, Xe = { class: "viur-shop-item-view-headline" }, ts = /* @__PURE__ */ M(() => /* @__PURE__ */ p("h2", { class: "viur-shop-item-view-subline" }, "B 21 x H 6,5 x T 19 cm", -1)), es = { class: "viur-shop-item-view-price" }, ss = /* @__PURE__ */ M(() => /* @__PURE__ */ p("div", { class: "viur-shop-item-view-paragraph" }, " Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. ", -1)), is = { class: "viur-shop-item-view-btn-wrap" }, os = /* @__PURE__ */ M(() => /* @__PURE__ */ p("sl-icon", {
1602
+ name: "bag-plus",
1603
+ slot: "prefix"
1604
+ }, null, -1)), rs = /* @__PURE__ */ M(() => /* @__PURE__ */ p("sl-button", {
1605
+ size: "small",
1606
+ outline: "",
1607
+ class: "viur-shop-item-view-add-to-favourites-btn",
1608
+ variant: "primary",
1609
+ title: "Add to favourites"
1610
+ }, [
1611
+ /* @__PURE__ */ p("sl-icon", {
1612
+ name: "heart",
1613
+ slot: "prefix"
1614
+ }),
1615
+ /* @__PURE__ */ Tt(" Auf die Wunschliste ")
1616
+ ], -1)), ns = /* @__PURE__ */ M(() => /* @__PURE__ */ p("br", null, null, -1)), as = /* @__PURE__ */ M(() => /* @__PURE__ */ p("h1", { class: "viur-shop-item-view-headline" }, "Ähnliche Artikel", -1)), ls = { class: "viur-shop-item-view-item-grid" }, cs = {
1617
+ __name: "ItemView",
1618
+ setup(s) {
1619
+ const t = te(), e = Ft({
1620
+ item: {}
1621
+ });
1622
+ function i(o) {
1623
+ console.log("hier", o.dk_artikel);
1624
+ let r = "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";
1625
+ return o != null && o.dk_artikel.dest.image ? ct.downloadUrlFor(o.dk_artikel.dest.image) : r;
1626
+ }
1627
+ return Wt(async () => {
1628
+ ct.get(`/json/variante/view/${t.params.item}`).then(async (o) => {
1629
+ let r = await o.json();
1630
+ e.item = r.values;
1631
+ });
1632
+ }), (o, r) => (Kt(), Jt(Yt, null, [
1633
+ p("div", Fe, [
1634
+ p("div", We, [
1635
+ p("sl-carousel", Ke, [
1636
+ p("sl-carousel-item", null, [
1637
+ p("img", {
1638
+ alt: e.item.shop_name,
1639
+ src: i(e.item)
1640
+ }, null, 8, Je)
1641
+ ])
1642
+ ]),
1643
+ p("div", Ye, [
1644
+ p("div", Ze, [
1645
+ p("img", {
1646
+ alt: e.item.shop_name,
1647
+ class: "viur-shop-item-view-thumbnails-image active",
1648
+ src: i(e.item)
1649
+ }, null, 8, Ge)
1650
+ ])
1651
+ ])
1652
+ ]),
1653
+ p("div", Qe, [
1654
+ p("h1", Xe, lt(e.item.shop_name), 1),
1655
+ ts,
1656
+ p("div", es, lt(e.item.shop_price_retail) + " € ", 1),
1657
+ ss,
1658
+ p("div", is, [
1659
+ p("sl-button", {
1660
+ size: "small",
1661
+ class: "viur-shop-item-view-add-to-cart-btn",
1662
+ variant: "primary",
1663
+ title: "Add to cart",
1664
+ onClick: r[0] || (r[0] = Zt((n) => o.cartStore.addToCart(o.item.key, o.cartStore.state.currentCart), ["stop"]))
1665
+ }, [
1666
+ os,
1667
+ Tt(" In den Warenkorb ")
1668
+ ]),
1669
+ rs
1670
+ ])
1671
+ ])
1672
+ ]),
1673
+ ns,
1674
+ as,
1675
+ p("div", ls, [
1676
+ Gt(ee, {
1677
+ item: e.item
1678
+ }, null, 8, ["item"])
1679
+ ])
1680
+ ], 64));
1681
+ }
1682
+ }, fs = /* @__PURE__ */ oe(cs, [["__scopeId", "data-v-720fb199"]]);
1683
+ export {
1684
+ fs as default
1685
+ };