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