@warp-ds/elements 1.0.0-alpha.7 → 1.0.0-alpha.8
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/README.md +41 -24
- package/dist/{scripts.19dc1416.js → index.js} +1006 -1178
- package/package.json +2 -2
- package/dist/expandable.html +0 -428
- package/dist/index.html +0 -288
- package/dist/scripts.19dc1416.js.map +0 -1
|
@@ -1,56 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var dr = Object.defineProperty;
|
|
2
|
+
var ur = (o, e, t) => e in o ? dr(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var x = (o, e, t) => (ur(o, typeof e != "symbol" ? e + "" : e, t), t), br = (o, e, t) => {
|
|
4
4
|
if (!e.has(o))
|
|
5
5
|
throw TypeError("Cannot " + t);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var D = (o, e, t) => (br(o, e, "read from private field"), t ? t.call(o) : e.get(o)), Re = (o, e, t) => {
|
|
8
8
|
if (e.has(o))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
e instanceof WeakSet ? e.add(o) : e.set(o, t);
|
|
11
11
|
};
|
|
12
|
-
(function() {
|
|
13
|
-
const e = document.createElement("link").relList;
|
|
14
|
-
if (e && e.supports && e.supports("modulepreload"))
|
|
15
|
-
return;
|
|
16
|
-
for (const i of document.querySelectorAll('link[rel="modulepreload"]'))
|
|
17
|
-
r(i);
|
|
18
|
-
new MutationObserver((i) => {
|
|
19
|
-
for (const a of i)
|
|
20
|
-
if (a.type === "childList")
|
|
21
|
-
for (const n of a.addedNodes)
|
|
22
|
-
n.tagName === "LINK" && n.rel === "modulepreload" && r(n);
|
|
23
|
-
}).observe(document, { childList: !0, subtree: !0 });
|
|
24
|
-
function t(i) {
|
|
25
|
-
const a = {};
|
|
26
|
-
return i.integrity && (a.integrity = i.integrity), i.referrerpolicy && (a.referrerPolicy = i.referrerpolicy), i.crossorigin === "use-credentials" ? a.credentials = "include" : i.crossorigin === "anonymous" ? a.credentials = "omit" : a.credentials = "same-origin", a;
|
|
27
|
-
}
|
|
28
|
-
function r(i) {
|
|
29
|
-
if (i.ep)
|
|
30
|
-
return;
|
|
31
|
-
i.ep = !0;
|
|
32
|
-
const a = t(i);
|
|
33
|
-
fetch(i.href, a);
|
|
34
|
-
}
|
|
35
|
-
})();
|
|
36
12
|
/**
|
|
37
13
|
* @license
|
|
38
14
|
* Copyright 2019 Google LLC
|
|
39
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
16
|
*/
|
|
41
|
-
const
|
|
42
|
-
class
|
|
17
|
+
const Ee = window, Lo = Ee.ShadowRoot && (Ee.ShadyCSS === void 0 || Ee.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Io = Symbol(), ot = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
class St {
|
|
43
19
|
constructor(e, t, r) {
|
|
44
|
-
if (this._$cssResult$ = !0, r !==
|
|
20
|
+
if (this._$cssResult$ = !0, r !== Io)
|
|
45
21
|
throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
46
22
|
this.cssText = e, this._strings = t;
|
|
47
23
|
}
|
|
48
24
|
get styleSheet() {
|
|
49
25
|
let e = this._styleSheet;
|
|
50
26
|
const t = this._strings;
|
|
51
|
-
if (
|
|
27
|
+
if (Lo && e === void 0) {
|
|
52
28
|
const r = t !== void 0 && t.length === 1;
|
|
53
|
-
r && (e =
|
|
29
|
+
r && (e = ot.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), r && ot.set(t, e));
|
|
54
30
|
}
|
|
55
31
|
return e;
|
|
56
32
|
}
|
|
@@ -58,54 +34,54 @@ class Nt {
|
|
|
58
34
|
return this.cssText;
|
|
59
35
|
}
|
|
60
36
|
}
|
|
61
|
-
const
|
|
37
|
+
const gr = (o) => {
|
|
62
38
|
if (o._$cssResult$ === !0)
|
|
63
39
|
return o.cssText;
|
|
64
40
|
if (typeof o == "number")
|
|
65
41
|
return o;
|
|
66
42
|
throw new Error(`Value passed to 'css' function must be a 'css' function result: ${o}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`);
|
|
67
|
-
},
|
|
68
|
-
const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r +
|
|
69
|
-
return new
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
const r = document.createElement("style"), i =
|
|
43
|
+
}, hr = (o) => new St(typeof o == "string" ? o : String(o), void 0, Io), C = (o, ...e) => {
|
|
44
|
+
const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r + gr(i) + o[a + 1], o[0]);
|
|
45
|
+
return new St(t, o, Io);
|
|
46
|
+
}, pr = (o, e) => {
|
|
47
|
+
Lo ? o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
|
|
48
|
+
const r = document.createElement("style"), i = Ee.litNonce;
|
|
73
49
|
i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, o.appendChild(r);
|
|
74
50
|
});
|
|
75
|
-
},
|
|
51
|
+
}, mr = (o) => {
|
|
76
52
|
let e = "";
|
|
77
53
|
for (const t of o.cssRules)
|
|
78
54
|
e += t.cssText;
|
|
79
|
-
return
|
|
80
|
-
},
|
|
55
|
+
return hr(e);
|
|
56
|
+
}, tt = Lo ? (o) => o : (o) => o instanceof CSSStyleSheet ? mr(o) : o;
|
|
81
57
|
/**
|
|
82
58
|
* @license
|
|
83
59
|
* Copyright 2017 Google LLC
|
|
84
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
61
|
*/
|
|
86
|
-
var
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
const
|
|
62
|
+
var Je, Qe, eo, Ct;
|
|
63
|
+
const N = window;
|
|
64
|
+
let Rt, W;
|
|
65
|
+
const rt = N.trustedTypes, fr = rt ? rt.emptyScript : "", Ae = N.reactiveElementPolyfillSupportDevMode;
|
|
90
66
|
{
|
|
91
|
-
const o = (
|
|
92
|
-
|
|
67
|
+
const o = (Je = N.litIssuedWarnings) !== null && Je !== void 0 ? Je : N.litIssuedWarnings = /* @__PURE__ */ new Set();
|
|
68
|
+
W = (e, t) => {
|
|
93
69
|
t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
|
|
94
|
-
},
|
|
70
|
+
}, W("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((Qe = N.ShadyDOM) === null || Qe === void 0 ? void 0 : Qe.inUse) && Ae === void 0 && W("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Rt = (e) => ({
|
|
95
71
|
then: (t, r) => {
|
|
96
|
-
|
|
72
|
+
W("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
|
|
97
73
|
}
|
|
98
74
|
});
|
|
99
75
|
}
|
|
100
|
-
const
|
|
101
|
-
!
|
|
76
|
+
const oo = (o) => {
|
|
77
|
+
!N.emitLitDebugLogEvents || N.dispatchEvent(new CustomEvent("lit-debug", {
|
|
102
78
|
detail: o
|
|
103
79
|
}));
|
|
104
|
-
},
|
|
80
|
+
}, Et = (o, e) => o, yo = {
|
|
105
81
|
toAttribute(o, e) {
|
|
106
82
|
switch (e) {
|
|
107
83
|
case Boolean:
|
|
108
|
-
o = o ?
|
|
84
|
+
o = o ? fr : null;
|
|
109
85
|
break;
|
|
110
86
|
case Object:
|
|
111
87
|
case Array:
|
|
@@ -134,14 +110,14 @@ const no = (o) => {
|
|
|
134
110
|
}
|
|
135
111
|
return t;
|
|
136
112
|
}
|
|
137
|
-
},
|
|
113
|
+
}, At = (o, e) => e !== o && (e === e || o === o), to = {
|
|
138
114
|
attribute: !0,
|
|
139
115
|
type: String,
|
|
140
|
-
converter:
|
|
116
|
+
converter: yo,
|
|
141
117
|
reflect: !1,
|
|
142
|
-
hasChanged:
|
|
143
|
-
},
|
|
144
|
-
class
|
|
118
|
+
hasChanged: At
|
|
119
|
+
}, $o = "finalized";
|
|
120
|
+
class U extends HTMLElement {
|
|
145
121
|
constructor() {
|
|
146
122
|
super(), this.__instanceProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this.__reflectingProperty = null, this._initialize();
|
|
147
123
|
}
|
|
@@ -157,7 +133,7 @@ class V extends HTMLElement {
|
|
|
157
133
|
i !== void 0 && (this.__attributeToPropertyMap.set(i, r), e.push(i));
|
|
158
134
|
}), e;
|
|
159
135
|
}
|
|
160
|
-
static createProperty(e, t =
|
|
136
|
+
static createProperty(e, t = to) {
|
|
161
137
|
var r;
|
|
162
138
|
if (t.state && (t.attribute = !1), this.finalize(), this.elementProperties.set(e, t), !t.noAccessor && !this.prototype.hasOwnProperty(e)) {
|
|
163
139
|
const i = typeof e == "symbol" ? Symbol() : `__${e}`, a = this.getPropertyDescriptor(e, i, t);
|
|
@@ -178,14 +154,14 @@ class V extends HTMLElement {
|
|
|
178
154
|
};
|
|
179
155
|
}
|
|
180
156
|
static getPropertyOptions(e) {
|
|
181
|
-
return this.elementProperties.get(e) ||
|
|
157
|
+
return this.elementProperties.get(e) || to;
|
|
182
158
|
}
|
|
183
159
|
static finalize() {
|
|
184
|
-
if (this.hasOwnProperty(
|
|
160
|
+
if (this.hasOwnProperty($o))
|
|
185
161
|
return !1;
|
|
186
|
-
this[
|
|
162
|
+
this[$o] = !0;
|
|
187
163
|
const e = Object.getPrototypeOf(this);
|
|
188
|
-
if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(
|
|
164
|
+
if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Et("properties"))) {
|
|
189
165
|
const t = this.properties, r = [
|
|
190
166
|
...Object.getOwnPropertyNames(t),
|
|
191
167
|
...Object.getOwnPropertySymbols(t)
|
|
@@ -196,7 +172,7 @@ class V extends HTMLElement {
|
|
|
196
172
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
197
173
|
{
|
|
198
174
|
const t = (r, i = !1) => {
|
|
199
|
-
this.prototype.hasOwnProperty(r) &&
|
|
175
|
+
this.prototype.hasOwnProperty(r) && W(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${this.name}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
|
|
200
176
|
};
|
|
201
177
|
t("initialize"), t("requestUpdateInternal"), t("_getUpdateComplete", !0);
|
|
202
178
|
}
|
|
@@ -207,9 +183,9 @@ class V extends HTMLElement {
|
|
|
207
183
|
if (Array.isArray(e)) {
|
|
208
184
|
const r = new Set(e.flat(1 / 0).reverse());
|
|
209
185
|
for (const i of r)
|
|
210
|
-
t.unshift(
|
|
186
|
+
t.unshift(tt(i));
|
|
211
187
|
} else
|
|
212
|
-
e !== void 0 && t.push(
|
|
188
|
+
e !== void 0 && t.push(tt(e));
|
|
213
189
|
return t;
|
|
214
190
|
}
|
|
215
191
|
static __attributeNameForProperty(e, t) {
|
|
@@ -236,7 +212,7 @@ class V extends HTMLElement {
|
|
|
236
212
|
createRenderRoot() {
|
|
237
213
|
var e;
|
|
238
214
|
const t = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
|
|
239
|
-
return
|
|
215
|
+
return pr(t, this.constructor.elementStyles), t;
|
|
240
216
|
}
|
|
241
217
|
connectedCallback() {
|
|
242
218
|
var e;
|
|
@@ -257,19 +233,19 @@ class V extends HTMLElement {
|
|
|
257
233
|
attributeChangedCallback(e, t, r) {
|
|
258
234
|
this._$attributeToProperty(e, r);
|
|
259
235
|
}
|
|
260
|
-
__propertyToAttribute(e, t, r =
|
|
236
|
+
__propertyToAttribute(e, t, r = to) {
|
|
261
237
|
var i;
|
|
262
238
|
const a = this.constructor.__attributeNameForProperty(e, r);
|
|
263
239
|
if (a !== void 0 && r.reflect === !0) {
|
|
264
|
-
const l = (((i = r.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? r.converter :
|
|
265
|
-
this.constructor.enabledWarnings.indexOf("migration") >= 0 && l === void 0 &&
|
|
240
|
+
const l = (((i = r.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? r.converter : yo).toAttribute(t, r.type);
|
|
241
|
+
this.constructor.enabledWarnings.indexOf("migration") >= 0 && l === void 0 && W("undefined-attribute-value", `The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`), this.__reflectingProperty = e, l == null ? this.removeAttribute(a) : this.setAttribute(a, l), this.__reflectingProperty = null;
|
|
266
242
|
}
|
|
267
243
|
}
|
|
268
244
|
_$attributeToProperty(e, t) {
|
|
269
245
|
var r;
|
|
270
246
|
const i = this.constructor, a = i.__attributeToPropertyMap.get(e);
|
|
271
247
|
if (a !== void 0 && this.__reflectingProperty !== a) {
|
|
272
|
-
const n = i.getPropertyOptions(a), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? n.converter :
|
|
248
|
+
const n = i.getPropertyOptions(a), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? n.converter : yo;
|
|
273
249
|
this.__reflectingProperty = a, this[a] = l.fromAttribute(
|
|
274
250
|
t,
|
|
275
251
|
n.type
|
|
@@ -278,7 +254,7 @@ class V extends HTMLElement {
|
|
|
278
254
|
}
|
|
279
255
|
requestUpdate(e, t, r) {
|
|
280
256
|
let i = !0;
|
|
281
|
-
return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged ||
|
|
257
|
+
return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged || At)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), r.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, r))) : i = !1), !this.isUpdatePending && i && (this.__updatePromise = this.__enqueueUpdate()), Rt(this.localName);
|
|
282
258
|
}
|
|
283
259
|
async __enqueueUpdate() {
|
|
284
260
|
this.isUpdatePending = !0;
|
|
@@ -297,7 +273,7 @@ class V extends HTMLElement {
|
|
|
297
273
|
var e, t;
|
|
298
274
|
if (!this.isUpdatePending)
|
|
299
275
|
return;
|
|
300
|
-
if (
|
|
276
|
+
if (oo == null || oo({ kind: "update" }), !this.hasUpdated) {
|
|
301
277
|
const a = [];
|
|
302
278
|
if ((e = this.constructor.__reactivePropertyKeys) === null || e === void 0 || e.forEach((n) => {
|
|
303
279
|
var l;
|
|
@@ -325,7 +301,7 @@ class V extends HTMLElement {
|
|
|
325
301
|
(t = this.__controllers) === null || t === void 0 || t.forEach((r) => {
|
|
326
302
|
var i;
|
|
327
303
|
return (i = r.hostUpdated) === null || i === void 0 ? void 0 : i.call(r);
|
|
328
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 &&
|
|
304
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 && W("change-in-update", `Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`);
|
|
329
305
|
}
|
|
330
306
|
__markUpdated() {
|
|
331
307
|
this._$changedProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
@@ -347,85 +323,85 @@ class V extends HTMLElement {
|
|
|
347
323
|
firstUpdated(e) {
|
|
348
324
|
}
|
|
349
325
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
326
|
+
Ct = $o;
|
|
327
|
+
U[Ct] = !0;
|
|
328
|
+
U.elementProperties = /* @__PURE__ */ new Map();
|
|
329
|
+
U.elementStyles = [];
|
|
330
|
+
U.shadowRootOptions = { mode: "open" };
|
|
331
|
+
Ae == null || Ae({ ReactiveElement: U });
|
|
356
332
|
{
|
|
357
|
-
|
|
333
|
+
U.enabledWarnings = ["change-in-update"];
|
|
358
334
|
const o = function(e) {
|
|
359
|
-
e.hasOwnProperty(
|
|
335
|
+
e.hasOwnProperty(Et("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
|
|
360
336
|
};
|
|
361
|
-
|
|
337
|
+
U.enableWarning = function(e) {
|
|
362
338
|
o(this), this.enabledWarnings.indexOf(e) < 0 && this.enabledWarnings.push(e);
|
|
363
|
-
},
|
|
339
|
+
}, U.disableWarning = function(e) {
|
|
364
340
|
o(this);
|
|
365
341
|
const t = this.enabledWarnings.indexOf(e);
|
|
366
342
|
t >= 0 && this.enabledWarnings.splice(t, 1);
|
|
367
343
|
};
|
|
368
344
|
}
|
|
369
|
-
((
|
|
370
|
-
|
|
345
|
+
((eo = N.reactiveElementVersions) !== null && eo !== void 0 ? eo : N.reactiveElementVersions = []).push("1.6.1");
|
|
346
|
+
N.reactiveElementVersions.length > 1 && W("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
|
|
371
347
|
/**
|
|
372
348
|
* @license
|
|
373
349
|
* Copyright 2017 Google LLC
|
|
374
350
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
375
351
|
*/
|
|
376
|
-
var
|
|
377
|
-
const
|
|
378
|
-
!
|
|
352
|
+
var ro, io, no, ao;
|
|
353
|
+
const R = window, m = (o) => {
|
|
354
|
+
!R.emitLitDebugLogEvents || R.dispatchEvent(new CustomEvent("lit-debug", {
|
|
379
355
|
detail: o
|
|
380
356
|
}));
|
|
381
357
|
};
|
|
382
|
-
let
|
|
383
|
-
(
|
|
384
|
-
e += o ? ` See https://lit.dev/msg/${o} for more information.` : "",
|
|
358
|
+
let vr = 0, Ue;
|
|
359
|
+
(ro = R.litIssuedWarnings) !== null && ro !== void 0 || (R.litIssuedWarnings = /* @__PURE__ */ new Set()), Ue = (o, e) => {
|
|
360
|
+
e += o ? ` See https://lit.dev/msg/${o} for more information.` : "", R.litIssuedWarnings.has(e) || (console.warn(e), R.litIssuedWarnings.add(e));
|
|
385
361
|
}, Ue("dev-mode", "Lit is in dev mode. Not recommended for production!");
|
|
386
|
-
const
|
|
362
|
+
const q = ((io = R.ShadyDOM) === null || io === void 0 ? void 0 : io.inUse) && ((no = R.ShadyDOM) === null || no === void 0 ? void 0 : no.noPatch) === !0 ? R.ShadyDOM.wrap : (o) => o, ne = R.trustedTypes, it = ne ? ne.createPolicy("lit-html", {
|
|
387
363
|
createHTML: (o) => o
|
|
388
|
-
}) : void 0,
|
|
389
|
-
if (
|
|
364
|
+
}) : void 0, xr = (o) => o, We = (o, e, t) => xr, kr = (o) => {
|
|
365
|
+
if (X !== We)
|
|
390
366
|
throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
\f\r]`,
|
|
396
|
-
\f\r"'\`<>=]`,
|
|
367
|
+
X = o;
|
|
368
|
+
}, wr = () => {
|
|
369
|
+
X = We;
|
|
370
|
+
}, zo = (o, e, t) => X(o, e, t), Te = "$lit$", j = `lit$${String(Math.random()).slice(9)}$`, Bo = "?" + j, yr = `<${Bo}>`, pe = document, me = (o = "") => pe.createComment(o), fe = (o) => o === null || typeof o != "object" && typeof o != "function", qt = Array.isArray, Mt = (o) => qt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", lo = `[
|
|
371
|
+
\f\r]`, $r = `[^
|
|
372
|
+
\f\r"'\`<>=]`, zr = `[^\\s"'>=/]`, be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nt = 1, co = 2, _r = 3, at = /-->/g, lt = />/g, Y = new RegExp(`>|${lo}(?:(${zr}+)(${lo}*=${lo}*(?:${$r}|("|')|))|$)`, "g"), Sr = 0, ct = 1, Cr = 2, st = 3, so = /'/g, uo = /"/g, Pt = /^(?:script|style|textarea|title)$/i, jt = 1, Fe = 2, Vo = 1, Oe = 2, Rr = 3, Er = 4, Ar = 5, Do = 6, qr = 7, Nt = (o) => (e, ...t) => (e.some((r) => r === void 0) && console.warn(`Some template strings are undefined.
|
|
397
373
|
This is probably caused by illegal octal escape sequences.`), {
|
|
398
374
|
_$litType$: o,
|
|
399
375
|
strings: e,
|
|
400
376
|
values: t
|
|
401
|
-
}),
|
|
402
|
-
let
|
|
403
|
-
const
|
|
377
|
+
}), h = Nt(jt), Ke = Nt(Fe), I = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), dt = /* @__PURE__ */ new WeakMap(), te = pe.createTreeWalker(pe, 129, null, !1);
|
|
378
|
+
let X = We;
|
|
379
|
+
const Ut = (o, e) => {
|
|
404
380
|
const t = o.length - 1, r = [];
|
|
405
|
-
let i = e === Fe ? "<svg>" : "", a, n =
|
|
406
|
-
for (let
|
|
407
|
-
const
|
|
408
|
-
let
|
|
409
|
-
for (;
|
|
410
|
-
if (
|
|
411
|
-
if (
|
|
412
|
-
n =
|
|
413
|
-
else if (
|
|
414
|
-
n =
|
|
415
|
-
else if (
|
|
416
|
-
|
|
417
|
-
else if (
|
|
381
|
+
let i = e === Fe ? "<svg>" : "", a, n = be;
|
|
382
|
+
for (let c = 0; c < t; c++) {
|
|
383
|
+
const s = o[c];
|
|
384
|
+
let g = -1, u, b = 0, d;
|
|
385
|
+
for (; b < s.length && (n.lastIndex = b, d = n.exec(s), d !== null); )
|
|
386
|
+
if (b = n.lastIndex, n === be) {
|
|
387
|
+
if (d[nt] === "!--")
|
|
388
|
+
n = at;
|
|
389
|
+
else if (d[nt] !== void 0)
|
|
390
|
+
n = lt;
|
|
391
|
+
else if (d[co] !== void 0)
|
|
392
|
+
Pt.test(d[co]) && (a = new RegExp(`</${d[co]}`, "g")), n = Y;
|
|
393
|
+
else if (d[_r] !== void 0)
|
|
418
394
|
throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions");
|
|
419
395
|
} else
|
|
420
|
-
n ===
|
|
421
|
-
console.assert(
|
|
422
|
-
const
|
|
423
|
-
i += n ===
|
|
396
|
+
n === Y ? d[Sr] === ">" ? (n = a != null ? a : be, g = -1) : d[ct] === void 0 ? g = -2 : (g = n.lastIndex - d[Cr].length, u = d[ct], n = d[st] === void 0 ? Y : d[st] === '"' ? uo : so) : n === uo || n === so ? n = Y : n === at || n === lt ? n = be : (n = Y, a = void 0);
|
|
397
|
+
console.assert(g === -1 || n === Y || n === so || n === uo, "unexpected parse state B");
|
|
398
|
+
const p = n === Y && o[c + 1].startsWith("/>") ? " " : "";
|
|
399
|
+
i += n === be ? s + yr : g >= 0 ? (r.push(u), s.slice(0, g) + Te + s.slice(g) + j + p) : s + j + (g === -2 ? (r.push(void 0), c) : p);
|
|
424
400
|
}
|
|
425
401
|
const l = i + (o[t] || "<?>") + (e === Fe ? "</svg>" : "");
|
|
426
402
|
if (!Array.isArray(o) || !o.hasOwnProperty("raw")) {
|
|
427
|
-
let
|
|
428
|
-
throw
|
|
403
|
+
let c = "invalid template strings array";
|
|
404
|
+
throw c = `
|
|
429
405
|
Internal Error: expected template strings to be an array
|
|
430
406
|
with a 'raw' field. Faking a template strings array by
|
|
431
407
|
calling html or svg like an ordinary function is effectively
|
|
@@ -437,72 +413,72 @@ const Ht = (o, e) => {
|
|
|
437
413
|
https://github.com/lit/lit/issues/new?template=bug_report.md
|
|
438
414
|
and include information about your build tooling, if any.
|
|
439
415
|
`.trim().replace(/\n */g, `
|
|
440
|
-
`), new Error(
|
|
416
|
+
`), new Error(c);
|
|
441
417
|
}
|
|
442
418
|
return [
|
|
443
|
-
|
|
419
|
+
it !== void 0 ? it.createHTML(l) : l,
|
|
444
420
|
r
|
|
445
421
|
];
|
|
446
422
|
};
|
|
447
|
-
class
|
|
423
|
+
class ve {
|
|
448
424
|
constructor({ strings: e, ["_$litType$"]: t }, r) {
|
|
449
425
|
this.parts = [];
|
|
450
426
|
let i, a = 0, n = 0;
|
|
451
|
-
const l = e.length - 1,
|
|
452
|
-
if (this.el =
|
|
453
|
-
const
|
|
454
|
-
|
|
427
|
+
const l = e.length - 1, c = this.parts, [s, g] = Ut(e, t);
|
|
428
|
+
if (this.el = ve.createElement(s, r), te.currentNode = this.el.content, t === Fe) {
|
|
429
|
+
const u = this.el.content, b = u.firstChild;
|
|
430
|
+
b.remove(), u.append(...b.childNodes);
|
|
455
431
|
}
|
|
456
|
-
for (; (i =
|
|
432
|
+
for (; (i = te.nextNode()) !== null && c.length < l; ) {
|
|
457
433
|
if (i.nodeType === 1) {
|
|
458
434
|
{
|
|
459
|
-
const
|
|
460
|
-
if (/^(?:textarea|template)$/i.test(
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
463
|
-
throw new Error(
|
|
464
|
-
Ue("",
|
|
435
|
+
const u = i.localName;
|
|
436
|
+
if (/^(?:textarea|template)$/i.test(u) && i.innerHTML.includes(j)) {
|
|
437
|
+
const b = `Expressions are not supported inside \`${u}\` elements. See https://lit.dev/msg/expression-in-${u} for more information.`;
|
|
438
|
+
if (u === "template")
|
|
439
|
+
throw new Error(b);
|
|
440
|
+
Ue("", b);
|
|
465
441
|
}
|
|
466
442
|
}
|
|
467
443
|
if (i.hasAttributes()) {
|
|
468
|
-
const
|
|
469
|
-
for (const
|
|
470
|
-
if (
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
473
|
-
const f = i.getAttribute(
|
|
474
|
-
|
|
475
|
-
type:
|
|
444
|
+
const u = [];
|
|
445
|
+
for (const b of i.getAttributeNames())
|
|
446
|
+
if (b.endsWith(Te) || b.startsWith(j)) {
|
|
447
|
+
const d = g[n++];
|
|
448
|
+
if (u.push(b), d !== void 0) {
|
|
449
|
+
const f = i.getAttribute(d.toLowerCase() + Te).split(j), v = /([.?@])?(.*)/.exec(d);
|
|
450
|
+
c.push({
|
|
451
|
+
type: Vo,
|
|
476
452
|
index: a,
|
|
477
453
|
name: v[2],
|
|
478
454
|
strings: f,
|
|
479
|
-
ctor: v[1] === "." ?
|
|
455
|
+
ctor: v[1] === "." ? Ft : v[1] === "?" ? Ot : v[1] === "@" ? Lt : ye
|
|
480
456
|
});
|
|
481
457
|
} else
|
|
482
|
-
|
|
483
|
-
type:
|
|
458
|
+
c.push({
|
|
459
|
+
type: Do,
|
|
484
460
|
index: a
|
|
485
461
|
});
|
|
486
462
|
}
|
|
487
|
-
for (const
|
|
488
|
-
i.removeAttribute(
|
|
463
|
+
for (const b of u)
|
|
464
|
+
i.removeAttribute(b);
|
|
489
465
|
}
|
|
490
|
-
if (
|
|
491
|
-
const
|
|
492
|
-
if (
|
|
493
|
-
i.textContent =
|
|
494
|
-
for (let
|
|
495
|
-
i.append(d
|
|
496
|
-
i.append(
|
|
466
|
+
if (Pt.test(i.tagName)) {
|
|
467
|
+
const u = i.textContent.split(j), b = u.length - 1;
|
|
468
|
+
if (b > 0) {
|
|
469
|
+
i.textContent = ne ? ne.emptyScript : "";
|
|
470
|
+
for (let d = 0; d < b; d++)
|
|
471
|
+
i.append(u[d], me()), te.nextNode(), c.push({ type: Oe, index: ++a });
|
|
472
|
+
i.append(u[b], me());
|
|
497
473
|
}
|
|
498
474
|
}
|
|
499
475
|
} else if (i.nodeType === 8)
|
|
500
|
-
if (i.data ===
|
|
501
|
-
|
|
476
|
+
if (i.data === Bo)
|
|
477
|
+
c.push({ type: Oe, index: a });
|
|
502
478
|
else {
|
|
503
|
-
let
|
|
504
|
-
for (; (
|
|
505
|
-
|
|
479
|
+
let b = -1;
|
|
480
|
+
for (; (b = i.data.indexOf(j, b + 1)) !== -1; )
|
|
481
|
+
c.push({ type: qr, index: a }), b += j.length - 1;
|
|
506
482
|
}
|
|
507
483
|
a++;
|
|
508
484
|
}
|
|
@@ -515,19 +491,19 @@ class ye {
|
|
|
515
491
|
});
|
|
516
492
|
}
|
|
517
493
|
static createElement(e, t) {
|
|
518
|
-
const r =
|
|
494
|
+
const r = pe.createElement("template");
|
|
519
495
|
return r.innerHTML = e, r;
|
|
520
496
|
}
|
|
521
497
|
}
|
|
522
|
-
function
|
|
498
|
+
function G(o, e, t = o, r) {
|
|
523
499
|
var i, a, n, l;
|
|
524
|
-
if (e ===
|
|
500
|
+
if (e === I)
|
|
525
501
|
return e;
|
|
526
|
-
let
|
|
527
|
-
const
|
|
528
|
-
return (
|
|
502
|
+
let c = r !== void 0 ? (i = t.__directives) === null || i === void 0 ? void 0 : i[r] : t.__directive;
|
|
503
|
+
const s = fe(e) ? void 0 : e._$litDirective$;
|
|
504
|
+
return (c == null ? void 0 : c.constructor) !== s && ((a = c == null ? void 0 : c._$notifyDirectiveConnectionChanged) === null || a === void 0 || a.call(c, !1), s === void 0 ? c = void 0 : (c = new s(o), c._$initialize(o, t, r)), r !== void 0 ? ((n = (l = t).__directives) !== null && n !== void 0 ? n : l.__directives = [])[r] = c : t.__directive = c), c !== void 0 && (e = G(o, c._$resolve(o, e.values), c, r)), e;
|
|
529
505
|
}
|
|
530
|
-
class
|
|
506
|
+
class Tt {
|
|
531
507
|
constructor(e, t) {
|
|
532
508
|
this._parts = [], this._$disconnectableChildren = void 0, this._$template = e, this._$parent = t;
|
|
533
509
|
}
|
|
@@ -539,15 +515,15 @@ class Wt {
|
|
|
539
515
|
}
|
|
540
516
|
_clone(e) {
|
|
541
517
|
var t;
|
|
542
|
-
const { el: { content: r }, parts: i } = this._$template, a = ((t = e == null ? void 0 : e.creationScope) !== null && t !== void 0 ? t :
|
|
543
|
-
|
|
544
|
-
let n =
|
|
545
|
-
for (;
|
|
546
|
-
if (l ===
|
|
547
|
-
let
|
|
548
|
-
|
|
518
|
+
const { el: { content: r }, parts: i } = this._$template, a = ((t = e == null ? void 0 : e.creationScope) !== null && t !== void 0 ? t : pe).importNode(r, !0);
|
|
519
|
+
te.currentNode = a;
|
|
520
|
+
let n = te.nextNode(), l = 0, c = 0, s = i[0];
|
|
521
|
+
for (; s !== void 0; ) {
|
|
522
|
+
if (l === s.index) {
|
|
523
|
+
let g;
|
|
524
|
+
s.type === Oe ? g = new le(n, n.nextSibling, this, e) : s.type === Vo ? g = new s.ctor(n, s.name, s.strings, this, e) : s.type === Do && (g = new It(n, this, e)), this._parts.push(g), s = i[++c];
|
|
549
525
|
}
|
|
550
|
-
l !== (
|
|
526
|
+
l !== (s == null ? void 0 : s.index) && (n = te.nextNode(), l++);
|
|
551
527
|
}
|
|
552
528
|
return a;
|
|
553
529
|
}
|
|
@@ -564,17 +540,17 @@ class Wt {
|
|
|
564
540
|
}), r.strings !== void 0 ? (r._$setValue(e, r, t), t += r.strings.length - 2) : r._$setValue(e[t])), t++;
|
|
565
541
|
}
|
|
566
542
|
}
|
|
567
|
-
class
|
|
543
|
+
class le {
|
|
568
544
|
constructor(e, t, r, i) {
|
|
569
545
|
var a;
|
|
570
|
-
this.type =
|
|
546
|
+
this.type = Oe, this._$committedValue = w, this._$disconnectableChildren = void 0, this._$startNode = e, this._$endNode = t, this._$parent = r, this.options = i, this.__isConnected = (a = i == null ? void 0 : i.isConnected) !== null && a !== void 0 ? a : !0, this._textSanitizer = void 0;
|
|
571
547
|
}
|
|
572
548
|
get _$isConnected() {
|
|
573
549
|
var e, t;
|
|
574
550
|
return (t = (e = this._$parent) === null || e === void 0 ? void 0 : e._$isConnected) !== null && t !== void 0 ? t : this.__isConnected;
|
|
575
551
|
}
|
|
576
552
|
get parentNode() {
|
|
577
|
-
let e =
|
|
553
|
+
let e = q(this._$startNode).parentNode;
|
|
578
554
|
const t = this._$parent;
|
|
579
555
|
return t !== void 0 && e.nodeType === 11 && (e = t.parentNode), e;
|
|
580
556
|
}
|
|
@@ -588,14 +564,14 @@ class he {
|
|
|
588
564
|
var r;
|
|
589
565
|
if (this.parentNode === null)
|
|
590
566
|
throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");
|
|
591
|
-
if (e =
|
|
592
|
-
e ===
|
|
567
|
+
if (e = G(this, e, t), fe(e))
|
|
568
|
+
e === w || e == null || e === "" ? (this._$committedValue !== w && (m == null || m({
|
|
593
569
|
kind: "commit nothing to child",
|
|
594
570
|
start: this._$startNode,
|
|
595
571
|
end: this._$endNode,
|
|
596
572
|
parent: this._$parent,
|
|
597
573
|
options: this.options
|
|
598
|
-
}), this._$clear()), this._$committedValue =
|
|
574
|
+
}), this._$clear()), this._$committedValue = w) : e !== this._$committedValue && e !== I && this._commitText(e);
|
|
599
575
|
else if (e._$litType$ !== void 0)
|
|
600
576
|
this._commitTemplateResult(e);
|
|
601
577
|
else if (e.nodeType !== void 0) {
|
|
@@ -605,15 +581,15 @@ class he {
|
|
|
605
581
|
}
|
|
606
582
|
this._commitNode(e);
|
|
607
583
|
} else
|
|
608
|
-
|
|
584
|
+
Mt(e) ? this._commitIterable(e) : this._commitText(e);
|
|
609
585
|
}
|
|
610
586
|
_insert(e, t = this._$endNode) {
|
|
611
|
-
return
|
|
587
|
+
return q(q(this._$startNode).parentNode).insertBefore(e, t);
|
|
612
588
|
}
|
|
613
589
|
_commitNode(e) {
|
|
614
590
|
var t;
|
|
615
591
|
if (this._$committedValue !== e) {
|
|
616
|
-
if (this._$clear(),
|
|
592
|
+
if (this._$clear(), X !== We) {
|
|
617
593
|
const r = (t = this._$startNode.parentNode) === null || t === void 0 ? void 0 : t.nodeName;
|
|
618
594
|
if (r === "STYLE" || r === "SCRIPT") {
|
|
619
595
|
let i = "Forbidden";
|
|
@@ -630,9 +606,9 @@ class he {
|
|
|
630
606
|
}
|
|
631
607
|
}
|
|
632
608
|
_commitText(e) {
|
|
633
|
-
if (this._$committedValue !==
|
|
634
|
-
const t =
|
|
635
|
-
this._textSanitizer === void 0 && (this._textSanitizer =
|
|
609
|
+
if (this._$committedValue !== w && fe(this._$committedValue)) {
|
|
610
|
+
const t = q(this._$startNode).nextSibling;
|
|
611
|
+
this._textSanitizer === void 0 && (this._textSanitizer = zo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
|
|
636
612
|
kind: "commit text",
|
|
637
613
|
node: t,
|
|
638
614
|
value: e,
|
|
@@ -640,7 +616,7 @@ class he {
|
|
|
640
616
|
}), t.data = e;
|
|
641
617
|
} else {
|
|
642
618
|
const t = document.createTextNode("");
|
|
643
|
-
this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer =
|
|
619
|
+
this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer = zo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
|
|
644
620
|
kind: "commit text",
|
|
645
621
|
node: t,
|
|
646
622
|
value: e,
|
|
@@ -651,7 +627,7 @@ class he {
|
|
|
651
627
|
}
|
|
652
628
|
_commitTemplateResult(e) {
|
|
653
629
|
var t;
|
|
654
|
-
const { values: r, ["_$litType$"]: i } = e, a = typeof i == "number" ? this._$getTemplate(e) : (i.el === void 0 && (i.el =
|
|
630
|
+
const { values: r, ["_$litType$"]: i } = e, a = typeof i == "number" ? this._$getTemplate(e) : (i.el === void 0 && (i.el = ve.createElement(i.h, this.options)), i);
|
|
655
631
|
if (((t = this._$committedValue) === null || t === void 0 ? void 0 : t._$template) === a)
|
|
656
632
|
m == null || m({
|
|
657
633
|
kind: "template updating",
|
|
@@ -662,7 +638,7 @@ class he {
|
|
|
662
638
|
values: r
|
|
663
639
|
}), this._$committedValue._update(r);
|
|
664
640
|
else {
|
|
665
|
-
const n = new
|
|
641
|
+
const n = new Tt(a, this), l = n._clone(this.options);
|
|
666
642
|
m == null || m({
|
|
667
643
|
kind: "template instantiated",
|
|
668
644
|
template: a,
|
|
@@ -683,22 +659,22 @@ class he {
|
|
|
683
659
|
}
|
|
684
660
|
}
|
|
685
661
|
_$getTemplate(e) {
|
|
686
|
-
let t =
|
|
687
|
-
return t === void 0 &&
|
|
662
|
+
let t = dt.get(e.strings);
|
|
663
|
+
return t === void 0 && dt.set(e.strings, t = new ve(e)), t;
|
|
688
664
|
}
|
|
689
665
|
_commitIterable(e) {
|
|
690
|
-
|
|
666
|
+
qt(this._$committedValue) || (this._$committedValue = [], this._$clear());
|
|
691
667
|
const t = this._$committedValue;
|
|
692
668
|
let r = 0, i;
|
|
693
669
|
for (const a of e)
|
|
694
|
-
r === t.length ? t.push(i = new
|
|
695
|
-
r < t.length && (this._$clear(i &&
|
|
670
|
+
r === t.length ? t.push(i = new le(this._insert(me()), this._insert(me()), this, this.options)) : i = t[r], i._$setValue(a), r++;
|
|
671
|
+
r < t.length && (this._$clear(i && q(i._$endNode).nextSibling, r), t.length = r);
|
|
696
672
|
}
|
|
697
|
-
_$clear(e =
|
|
673
|
+
_$clear(e = q(this._$startNode).nextSibling, t) {
|
|
698
674
|
var r;
|
|
699
675
|
for ((r = this._$notifyConnectionChanged) === null || r === void 0 || r.call(this, !1, !0, t); e && e !== this._$endNode; ) {
|
|
700
|
-
const i =
|
|
701
|
-
|
|
676
|
+
const i = q(e).nextSibling;
|
|
677
|
+
q(e).remove(), e = i;
|
|
702
678
|
}
|
|
703
679
|
}
|
|
704
680
|
setConnected(e) {
|
|
@@ -709,9 +685,9 @@ class he {
|
|
|
709
685
|
throw new Error("part.setConnected() may only be called on a RootPart returned from render().");
|
|
710
686
|
}
|
|
711
687
|
}
|
|
712
|
-
class
|
|
688
|
+
class ye {
|
|
713
689
|
constructor(e, t, r, i, a) {
|
|
714
|
-
this.type =
|
|
690
|
+
this.type = Vo, this._$committedValue = w, this._$disconnectableChildren = void 0, this.element = e, this.name = t, this._$parent = i, this.options = a, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$committedValue = new Array(r.length - 1).fill(new String()), this.strings = r) : this._$committedValue = w, this._sanitizer = void 0;
|
|
715
691
|
}
|
|
716
692
|
get tagName() {
|
|
717
693
|
return this.element.tagName;
|
|
@@ -723,65 +699,65 @@ class _e {
|
|
|
723
699
|
const a = this.strings;
|
|
724
700
|
let n = !1;
|
|
725
701
|
if (a === void 0)
|
|
726
|
-
e =
|
|
702
|
+
e = G(this, e, t, 0), n = !fe(e) || e !== this._$committedValue && e !== I, n && (this._$committedValue = e);
|
|
727
703
|
else {
|
|
728
704
|
const l = e;
|
|
729
705
|
e = a[0];
|
|
730
|
-
let
|
|
731
|
-
for (
|
|
732
|
-
|
|
706
|
+
let c, s;
|
|
707
|
+
for (c = 0; c < a.length - 1; c++)
|
|
708
|
+
s = G(this, l[r + c], t, c), s === I && (s = this._$committedValue[c]), n || (n = !fe(s) || s !== this._$committedValue[c]), s === w ? e = w : e !== w && (e += (s != null ? s : "") + a[c + 1]), this._$committedValue[c] = s;
|
|
733
709
|
}
|
|
734
710
|
n && !i && this._commitValue(e);
|
|
735
711
|
}
|
|
736
712
|
_commitValue(e) {
|
|
737
|
-
e ===
|
|
713
|
+
e === w ? q(this.element).removeAttribute(this.name) : (this._sanitizer === void 0 && (this._sanitizer = X(this.element, this.name, "attribute")), e = this._sanitizer(e != null ? e : ""), m == null || m({
|
|
738
714
|
kind: "commit attribute",
|
|
739
715
|
element: this.element,
|
|
740
716
|
name: this.name,
|
|
741
717
|
value: e,
|
|
742
718
|
options: this.options
|
|
743
|
-
}),
|
|
719
|
+
}), q(this.element).setAttribute(this.name, e != null ? e : ""));
|
|
744
720
|
}
|
|
745
721
|
}
|
|
746
|
-
class
|
|
722
|
+
class Ft extends ye {
|
|
747
723
|
constructor() {
|
|
748
|
-
super(...arguments), this.type =
|
|
724
|
+
super(...arguments), this.type = Rr;
|
|
749
725
|
}
|
|
750
726
|
_commitValue(e) {
|
|
751
|
-
this._sanitizer === void 0 && (this._sanitizer =
|
|
727
|
+
this._sanitizer === void 0 && (this._sanitizer = X(this.element, this.name, "property")), e = this._sanitizer(e), m == null || m({
|
|
752
728
|
kind: "commit property",
|
|
753
729
|
element: this.element,
|
|
754
730
|
name: this.name,
|
|
755
731
|
value: e,
|
|
756
732
|
options: this.options
|
|
757
|
-
}), this.element[this.name] = e ===
|
|
733
|
+
}), this.element[this.name] = e === w ? void 0 : e;
|
|
758
734
|
}
|
|
759
735
|
}
|
|
760
|
-
const
|
|
761
|
-
class
|
|
736
|
+
const Mr = ne ? ne.emptyScript : "";
|
|
737
|
+
class Ot extends ye {
|
|
762
738
|
constructor() {
|
|
763
|
-
super(...arguments), this.type =
|
|
739
|
+
super(...arguments), this.type = Er;
|
|
764
740
|
}
|
|
765
741
|
_commitValue(e) {
|
|
766
742
|
m == null || m({
|
|
767
743
|
kind: "commit boolean attribute",
|
|
768
744
|
element: this.element,
|
|
769
745
|
name: this.name,
|
|
770
|
-
value: !!(e && e !==
|
|
746
|
+
value: !!(e && e !== w),
|
|
771
747
|
options: this.options
|
|
772
|
-
}), e && e !==
|
|
748
|
+
}), e && e !== w ? q(this.element).setAttribute(this.name, Mr) : q(this.element).removeAttribute(this.name);
|
|
773
749
|
}
|
|
774
750
|
}
|
|
775
|
-
class
|
|
751
|
+
class Lt extends ye {
|
|
776
752
|
constructor(e, t, r, i, a) {
|
|
777
|
-
if (super(e, t, r, i, a), this.type =
|
|
753
|
+
if (super(e, t, r, i, a), this.type = Ar, this.strings !== void 0)
|
|
778
754
|
throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`);
|
|
779
755
|
}
|
|
780
756
|
_$setValue(e, t = this) {
|
|
781
757
|
var r;
|
|
782
|
-
if (e = (r =
|
|
758
|
+
if (e = (r = G(this, e, t, 0)) !== null && r !== void 0 ? r : w, e === I)
|
|
783
759
|
return;
|
|
784
|
-
const i = this._$committedValue, a = e ===
|
|
760
|
+
const i = this._$committedValue, a = e === w && i !== w || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== w && (i === w || a);
|
|
785
761
|
m == null || m({
|
|
786
762
|
kind: "commit event listener",
|
|
787
763
|
element: this.element,
|
|
@@ -798,9 +774,9 @@ class Zt extends _e {
|
|
|
798
774
|
typeof this._$committedValue == "function" ? this._$committedValue.call((r = (t = this.options) === null || t === void 0 ? void 0 : t.host) !== null && r !== void 0 ? r : this.element, e) : this._$committedValue.handleEvent(e);
|
|
799
775
|
}
|
|
800
776
|
}
|
|
801
|
-
class
|
|
777
|
+
class It {
|
|
802
778
|
constructor(e, t, r) {
|
|
803
|
-
this.element = e, this.type =
|
|
779
|
+
this.element = e, this.type = Do, this._$disconnectableChildren = void 0, this._$parent = t, this.options = r;
|
|
804
780
|
}
|
|
805
781
|
get _$isConnected() {
|
|
806
782
|
return this._$parent._$isConnected;
|
|
@@ -811,33 +787,33 @@ class Xt {
|
|
|
811
787
|
element: this.element,
|
|
812
788
|
value: e,
|
|
813
789
|
options: this.options
|
|
814
|
-
}),
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
const
|
|
818
|
-
_boundAttributeSuffix:
|
|
819
|
-
_marker:
|
|
820
|
-
_markerMatch:
|
|
821
|
-
_HTML_RESULT:
|
|
822
|
-
_getTemplateHtml:
|
|
823
|
-
_TemplateInstance:
|
|
824
|
-
_isIterable:
|
|
825
|
-
_resolveDirective:
|
|
826
|
-
_ChildPart:
|
|
827
|
-
_AttributePart:
|
|
828
|
-
_BooleanAttributePart:
|
|
829
|
-
_EventPart:
|
|
830
|
-
_PropertyPart:
|
|
831
|
-
_ElementPart:
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
((
|
|
835
|
-
|
|
836
|
-
const
|
|
790
|
+
}), G(this, e);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
const Pr = {
|
|
794
|
+
_boundAttributeSuffix: Te,
|
|
795
|
+
_marker: j,
|
|
796
|
+
_markerMatch: Bo,
|
|
797
|
+
_HTML_RESULT: jt,
|
|
798
|
+
_getTemplateHtml: Ut,
|
|
799
|
+
_TemplateInstance: Tt,
|
|
800
|
+
_isIterable: Mt,
|
|
801
|
+
_resolveDirective: G,
|
|
802
|
+
_ChildPart: le,
|
|
803
|
+
_AttributePart: ye,
|
|
804
|
+
_BooleanAttributePart: Ot,
|
|
805
|
+
_EventPart: Lt,
|
|
806
|
+
_PropertyPart: Ft,
|
|
807
|
+
_ElementPart: It
|
|
808
|
+
}, bo = R.litHtmlPolyfillSupportDevMode;
|
|
809
|
+
bo == null || bo(ve, le);
|
|
810
|
+
((ao = R.litHtmlVersions) !== null && ao !== void 0 ? ao : R.litHtmlVersions = []).push("2.6.1");
|
|
811
|
+
R.litHtmlVersions.length > 1 && Ue("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
|
|
812
|
+
const qe = (o, e, t) => {
|
|
837
813
|
var r, i;
|
|
838
814
|
if (e == null)
|
|
839
815
|
throw new TypeError(`The container to render into may not be ${e}`);
|
|
840
|
-
const a =
|
|
816
|
+
const a = vr++, n = (r = t == null ? void 0 : t.renderBefore) !== null && r !== void 0 ? r : e;
|
|
841
817
|
let l = n._$litPart$;
|
|
842
818
|
if (m == null || m({
|
|
843
819
|
kind: "begin render",
|
|
@@ -847,8 +823,8 @@ const Me = (o, e, t) => {
|
|
|
847
823
|
options: t,
|
|
848
824
|
part: l
|
|
849
825
|
}), l === void 0) {
|
|
850
|
-
const
|
|
851
|
-
n._$litPart$ = l = new
|
|
826
|
+
const c = (i = t == null ? void 0 : t.renderBefore) !== null && i !== void 0 ? i : null;
|
|
827
|
+
n._$litPart$ = l = new le(e.insertBefore(me(), c), c, void 0, t != null ? t : {});
|
|
852
828
|
}
|
|
853
829
|
return l._$setValue(o), m == null || m({
|
|
854
830
|
kind: "end render",
|
|
@@ -859,21 +835,21 @@ const Me = (o, e, t) => {
|
|
|
859
835
|
part: l
|
|
860
836
|
}), l;
|
|
861
837
|
};
|
|
862
|
-
|
|
838
|
+
qe.setSanitizer = kr, qe.createSanitizer = zo, qe._testOnlyClearSanitizerFactoryDoNotCallOrElse = wr;
|
|
863
839
|
/**
|
|
864
840
|
* @license
|
|
865
841
|
* Copyright 2017 Google LLC
|
|
866
842
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
867
843
|
*/
|
|
868
|
-
var
|
|
869
|
-
let
|
|
844
|
+
var go, ho, po;
|
|
845
|
+
let Ho;
|
|
870
846
|
{
|
|
871
|
-
const o = (
|
|
872
|
-
|
|
847
|
+
const o = (go = globalThis.litIssuedWarnings) !== null && go !== void 0 ? go : globalThis.litIssuedWarnings = /* @__PURE__ */ new Set();
|
|
848
|
+
Ho = (e, t) => {
|
|
873
849
|
t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
|
|
874
850
|
};
|
|
875
851
|
}
|
|
876
|
-
class
|
|
852
|
+
class y extends U {
|
|
877
853
|
constructor() {
|
|
878
854
|
super(...arguments), this.renderOptions = { host: this }, this.__childPart = void 0;
|
|
879
855
|
}
|
|
@@ -884,7 +860,7 @@ class $ extends V {
|
|
|
884
860
|
}
|
|
885
861
|
update(e) {
|
|
886
862
|
const t = this.render();
|
|
887
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart =
|
|
863
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart = qe(t, this.renderRoot, this.renderOptions);
|
|
888
864
|
}
|
|
889
865
|
connectedCallback() {
|
|
890
866
|
var e;
|
|
@@ -895,252 +871,28 @@ class $ extends V {
|
|
|
895
871
|
super.disconnectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!1);
|
|
896
872
|
}
|
|
897
873
|
render() {
|
|
898
|
-
return
|
|
874
|
+
return I;
|
|
899
875
|
}
|
|
900
876
|
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
(
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
if (!
|
|
877
|
+
y.finalized = !0;
|
|
878
|
+
y._$litElement$ = !0;
|
|
879
|
+
(ho = globalThis.litElementHydrateSupport) === null || ho === void 0 || ho.call(globalThis, { LitElement: y });
|
|
880
|
+
const mo = globalThis.litElementPolyfillSupportDevMode;
|
|
881
|
+
mo == null || mo({ LitElement: y });
|
|
882
|
+
y.finalize = function() {
|
|
883
|
+
if (!U.finalize.call(this))
|
|
908
884
|
return !1;
|
|
909
885
|
const e = (t, r, i = !1) => {
|
|
910
886
|
if (t.hasOwnProperty(r)) {
|
|
911
887
|
const a = (typeof t == "function" ? t : t.constructor).name;
|
|
912
|
-
|
|
888
|
+
Ho(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${a}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
|
|
913
889
|
}
|
|
914
890
|
};
|
|
915
891
|
return e(this, "render"), e(this, "getStyles", !0), e(this.prototype, "adoptStyles"), !0;
|
|
916
892
|
};
|
|
917
|
-
((
|
|
918
|
-
globalThis.litElementVersions.length > 1 &&
|
|
919
|
-
|
|
920
|
-
* @license
|
|
921
|
-
* Copyright 2017 Google LLC
|
|
922
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
923
|
-
*/
|
|
924
|
-
const Xo = {
|
|
925
|
-
ATTRIBUTE: 1,
|
|
926
|
-
CHILD: 2,
|
|
927
|
-
PROPERTY: 3,
|
|
928
|
-
BOOLEAN_ATTRIBUTE: 4,
|
|
929
|
-
EVENT: 5,
|
|
930
|
-
ELEMENT: 6
|
|
931
|
-
}, Go = (o) => (...e) => ({
|
|
932
|
-
_$litDirective$: o,
|
|
933
|
-
values: e
|
|
934
|
-
});
|
|
935
|
-
class Jo {
|
|
936
|
-
constructor(e) {
|
|
937
|
-
}
|
|
938
|
-
get _$isConnected() {
|
|
939
|
-
return this._$parent._$isConnected;
|
|
940
|
-
}
|
|
941
|
-
_$initialize(e, t, r) {
|
|
942
|
-
this.__part = e, this._$parent = t, this.__attributeIndex = r;
|
|
943
|
-
}
|
|
944
|
-
_$resolve(e, t) {
|
|
945
|
-
return this.update(e, t);
|
|
946
|
-
}
|
|
947
|
-
update(e, t) {
|
|
948
|
-
return this.render(...t);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* @license
|
|
953
|
-
* Copyright 2017 Google LLC
|
|
954
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
955
|
-
*/
|
|
956
|
-
const Yr = 1;
|
|
957
|
-
class Qo extends Jo {
|
|
958
|
-
constructor(e) {
|
|
959
|
-
if (super(e), this._value = z, e.type !== Xo.CHILD)
|
|
960
|
-
throw new Error(`${this.constructor.directiveName}() can only be used in child bindings`);
|
|
961
|
-
}
|
|
962
|
-
render(e) {
|
|
963
|
-
if (e === z || e == null)
|
|
964
|
-
return this._templateResult = void 0, this._value = e;
|
|
965
|
-
if (e === K)
|
|
966
|
-
return e;
|
|
967
|
-
if (typeof e != "string")
|
|
968
|
-
throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
|
|
969
|
-
if (e === this._value)
|
|
970
|
-
return this._templateResult;
|
|
971
|
-
this._value = e;
|
|
972
|
-
const t = [e];
|
|
973
|
-
return t.raw = t, this._templateResult = {
|
|
974
|
-
_$litType$: this.constructor.resultType,
|
|
975
|
-
strings: t,
|
|
976
|
-
values: []
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
Qo.directiveName = "unsafeHTML";
|
|
981
|
-
Qo.resultType = Yr;
|
|
982
|
-
const et = Go(Qo);
|
|
983
|
-
function Zr(o) {
|
|
984
|
-
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
985
|
-
}
|
|
986
|
-
var Ro = { exports: {} };
|
|
987
|
-
(function(o, e) {
|
|
988
|
-
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
989
|
-
class t {
|
|
990
|
-
constructor(b, d) {
|
|
991
|
-
this.stream = b, this.pos = d;
|
|
992
|
-
}
|
|
993
|
-
get value() {
|
|
994
|
-
return this.stream[this.pos];
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
class r {
|
|
998
|
-
constructor(b, d, g) {
|
|
999
|
-
this.stream = b, this.start = d, this.end = g;
|
|
1000
|
-
}
|
|
1001
|
-
get value() {
|
|
1002
|
-
return this.stream.slice(this.start, this.end);
|
|
1003
|
-
}
|
|
1004
|
-
get whitespace() {
|
|
1005
|
-
let b = this.start - 1;
|
|
1006
|
-
for (; b >= 0 && /\s/.test(this.stream[b]); b--)
|
|
1007
|
-
;
|
|
1008
|
-
return new r(this.stream, b + 1, this.start);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
function i(c, b, d = /\S/g) {
|
|
1012
|
-
if (!d.global)
|
|
1013
|
-
throw new Error("Regexp must be global");
|
|
1014
|
-
d.lastIndex = b;
|
|
1015
|
-
const g = d.exec(c);
|
|
1016
|
-
if (!!g)
|
|
1017
|
-
return new t(c, g.index);
|
|
1018
|
-
}
|
|
1019
|
-
function a(c, b) {
|
|
1020
|
-
let d = i(c, b);
|
|
1021
|
-
if (!d)
|
|
1022
|
-
return;
|
|
1023
|
-
const g = d.pos;
|
|
1024
|
-
d = i(c, g + 1, /[\s<]|>/g);
|
|
1025
|
-
const u = d ? d.pos + Number(d.value == ">") : c.length;
|
|
1026
|
-
return new r(c, g, u);
|
|
1027
|
-
}
|
|
1028
|
-
const n = [
|
|
1029
|
-
"area",
|
|
1030
|
-
"base",
|
|
1031
|
-
"br",
|
|
1032
|
-
"col",
|
|
1033
|
-
"command",
|
|
1034
|
-
"embed",
|
|
1035
|
-
"hr",
|
|
1036
|
-
"img",
|
|
1037
|
-
"input",
|
|
1038
|
-
"keygen",
|
|
1039
|
-
"link",
|
|
1040
|
-
"menuitem",
|
|
1041
|
-
"meta",
|
|
1042
|
-
"param",
|
|
1043
|
-
"source",
|
|
1044
|
-
"track",
|
|
1045
|
-
"wbr",
|
|
1046
|
-
"!doctype",
|
|
1047
|
-
"--"
|
|
1048
|
-
];
|
|
1049
|
-
function l(c) {
|
|
1050
|
-
let b = c.replace(/^<\/?|>$/g, "").toLowerCase();
|
|
1051
|
-
(b.startsWith("!--") || b.endsWith("--")) && (b = "--");
|
|
1052
|
-
const d = /</.test(c), g = />/.test(c), u = /<([^/]|$)/.test(c), h = /<\//.test(c) || u && n.includes(b);
|
|
1053
|
-
return {
|
|
1054
|
-
isTagStart: d,
|
|
1055
|
-
isTagEnd: g,
|
|
1056
|
-
isStartTag: u,
|
|
1057
|
-
isEndTag: h,
|
|
1058
|
-
tagName: b
|
|
1059
|
-
};
|
|
1060
|
-
}
|
|
1061
|
-
function s(c, b = " ", d = 80) {
|
|
1062
|
-
const g = [];
|
|
1063
|
-
let u = !1, h = !1, f = !1, v = !1, x = "", y = 0, S = {}, w, F = 0;
|
|
1064
|
-
for (; w = a(c, F); ) {
|
|
1065
|
-
let C = w.value, X = w.whitespace.value, N = "", { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
|
|
1066
|
-
if (!v) {
|
|
1067
|
-
if (E && !P) {
|
|
1068
|
-
if (F = w.end, w = a(c, F), !w)
|
|
1069
|
-
break;
|
|
1070
|
-
C += w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
|
|
1071
|
-
}
|
|
1072
|
-
if (!E && (u || h)) {
|
|
1073
|
-
const pe = /[^=]"\w/g.exec(C);
|
|
1074
|
-
pe && w.end != w.start + pe.index + 2 && (w.end = w.start + pe.index + 2, C = w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C), N = b);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
!v && M && (x = P);
|
|
1078
|
-
const G = (T && P != "--" || A && P == "--") && P == x;
|
|
1079
|
-
v && !G && (E = A = M = T = !1), M && (u = !0), T && (h = !0), T && !M && --y;
|
|
1080
|
-
const eo = u && A && ["script", "style"].includes(x) || M && x == "--", at = u || h, lt = X || S.pendingWhitespace, vr = /^=([^!=]|$)/.test(C) || /^"/.test(C) && /(^|[^!=])=$/.test(S.tokenValue), xr = at && (vr || /^>/.test(C));
|
|
1081
|
-
if (v || f)
|
|
1082
|
-
g.push(X);
|
|
1083
|
-
else if (lt && !xr) {
|
|
1084
|
-
const oo = (lt.match(/\n/g) || []).length, pe = Math.max(0, g.lastIndexOf(`
|
|
1085
|
-
`)), kr = g.slice(pe).reduce((wr, yr) => wr + yr.length, 0), ct = b.repeat(y + Number(at && !E));
|
|
1086
|
-
kr + C.length > d ? g.push(`
|
|
1087
|
-
`, ct) : oo ? g.push(...Array(oo).fill(`
|
|
1088
|
-
`), ct) : g.push(" ");
|
|
1089
|
-
}
|
|
1090
|
-
g.push(C), S = { pendingWhitespace: N, tokenValue: C }, eo && (v = !0), G && (v = !1), u && A && x == "pre" && (f = !0), T && P == "pre" && (f = !1), u && A && !h && ++y, A && (u = h = !1), F = w.end;
|
|
1091
|
-
}
|
|
1092
|
-
return c[c.length - 1] == `
|
|
1093
|
-
` && g.push(`
|
|
1094
|
-
`), g.join("");
|
|
1095
|
-
}
|
|
1096
|
-
e.default = s, o.exports = Object.assign(e.default, e);
|
|
1097
|
-
})(Ro, Ro.exports);
|
|
1098
|
-
const Xr = /* @__PURE__ */ Zr(Ro.exports);
|
|
1099
|
-
class Gt extends $ {
|
|
1100
|
-
static get properties() {
|
|
1101
|
-
return {
|
|
1102
|
-
source: { attribute: !1 }
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
firstUpdated() {
|
|
1106
|
-
let t = this.shadowRoot.querySelector("slot").assignedNodes().map((i) => i.nodeType === Node.TEXT_NODE ? i.textContent : i.outerHTML).join("").trim();
|
|
1107
|
-
t = Xr(t);
|
|
1108
|
-
const r = window == null ? void 0 : window.Prism.highlight(t, window.Prism.languages.markup, "html");
|
|
1109
|
-
this.source = r;
|
|
1110
|
-
}
|
|
1111
|
-
render() {
|
|
1112
|
-
return p` <link
|
|
1113
|
-
rel="stylesheet"
|
|
1114
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism.min.css"
|
|
1115
|
-
integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ=="
|
|
1116
|
-
crossorigin="anonymous"
|
|
1117
|
-
/>
|
|
1118
|
-
<slot></slot>
|
|
1119
|
-
<pre><code>${et(this.source)}</code></pre>`;
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
k(Gt, "styles", R`
|
|
1123
|
-
:host {
|
|
1124
|
-
display: block;
|
|
1125
|
-
margin-top: 20px;
|
|
1126
|
-
margin-bottom: 20px;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
pre {
|
|
1130
|
-
background-color: var(--w-bluegray-50);
|
|
1131
|
-
font-family: Monaco, Ubuntu Mono, Consolas, monospace;
|
|
1132
|
-
font-size: 14px;
|
|
1133
|
-
margin: 0;
|
|
1134
|
-
padding: 16px;
|
|
1135
|
-
overflow-x: auto;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
slot {
|
|
1139
|
-
display: none;
|
|
1140
|
-
}
|
|
1141
|
-
`);
|
|
1142
|
-
customElements.define("syntax-highlight", Gt);
|
|
1143
|
-
const Gr = () => p`<svg
|
|
893
|
+
((po = globalThis.litElementVersions) !== null && po !== void 0 ? po : globalThis.litElementVersions = []).push("3.2.2");
|
|
894
|
+
globalThis.litElementVersions.length > 1 && Ho("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
|
|
895
|
+
const jr = () => h`<svg
|
|
1144
896
|
aria-label="Rødt utropstegn"
|
|
1145
897
|
role="img"
|
|
1146
898
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1148,8 +900,8 @@ const Gr = () => p`<svg
|
|
|
1148
900
|
height="16"
|
|
1149
901
|
fill="none"
|
|
1150
902
|
>
|
|
1151
|
-
${
|
|
1152
|
-
</svg>`,
|
|
903
|
+
${Fr}
|
|
904
|
+
</svg>`, Nr = () => h`<svg
|
|
1153
905
|
aria-label="Grønt hake"
|
|
1154
906
|
role="img"
|
|
1155
907
|
width="16"
|
|
@@ -1157,8 +909,8 @@ const Gr = () => p`<svg
|
|
|
1157
909
|
fill="none"
|
|
1158
910
|
xmlns="http://www.w3.org/2000/svg"
|
|
1159
911
|
>
|
|
1160
|
-
${
|
|
1161
|
-
</svg> `,
|
|
912
|
+
${Or}
|
|
913
|
+
</svg> `, Ur = () => h`<svg
|
|
1162
914
|
aria-label="Gult utropstegn"
|
|
1163
915
|
role="img"
|
|
1164
916
|
width="16"
|
|
@@ -1166,8 +918,8 @@ const Gr = () => p`<svg
|
|
|
1166
918
|
fill="none"
|
|
1167
919
|
xmlns="http://www.w3.org/2000/svg"
|
|
1168
920
|
>
|
|
1169
|
-
${
|
|
1170
|
-
</svg> `,
|
|
921
|
+
${Lr}
|
|
922
|
+
</svg> `, Tr = () => h`<svg
|
|
1171
923
|
aria-label="Info"
|
|
1172
924
|
role="img"
|
|
1173
925
|
width="16"
|
|
@@ -1175,8 +927,8 @@ const Gr = () => p`<svg
|
|
|
1175
927
|
fill="none"
|
|
1176
928
|
xmlns="http://www.w3.org/2000/svg"
|
|
1177
929
|
>
|
|
1178
|
-
${
|
|
1179
|
-
</svg>`,
|
|
930
|
+
${Ir}
|
|
931
|
+
</svg>`, Fr = Ke`<path
|
|
1180
932
|
d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
|
|
1181
933
|
fill="currentColor"
|
|
1182
934
|
/>
|
|
@@ -1186,13 +938,13 @@ clip-rule="evenodd"
|
|
|
1186
938
|
d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
|
|
1187
939
|
fill="#fff"
|
|
1188
940
|
/>
|
|
1189
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
941
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Or = Ke`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
1190
942
|
<path
|
|
1191
943
|
fill-rule="evenodd"
|
|
1192
944
|
clip-rule="evenodd"
|
|
1193
945
|
d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
|
|
1194
946
|
fill="#fff"
|
|
1195
|
-
/>`,
|
|
947
|
+
/>`, Lr = Ke`<path
|
|
1196
948
|
d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
|
|
1197
949
|
fill="currentColor"
|
|
1198
950
|
/>
|
|
@@ -1202,59 +954,59 @@ clip-rule="evenodd"
|
|
|
1202
954
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
1203
955
|
fill="#fff"
|
|
1204
956
|
/>
|
|
1205
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
957
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Ir = Ke`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
1206
958
|
<path
|
|
1207
959
|
fill-rule="evenodd"
|
|
1208
960
|
clip-rule="evenodd"
|
|
1209
961
|
d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
|
|
1210
962
|
fill="#fff"
|
|
1211
|
-
/>`,
|
|
963
|
+
/>`, ut = {
|
|
1212
964
|
negative: {
|
|
1213
965
|
color: "red",
|
|
1214
|
-
icon:
|
|
966
|
+
icon: jr(),
|
|
1215
967
|
bgColor: "bg-red-50",
|
|
1216
968
|
borderColor: "border-red-300",
|
|
1217
969
|
textColor: "text-red-600"
|
|
1218
970
|
},
|
|
1219
971
|
positive: {
|
|
1220
972
|
color: "green",
|
|
1221
|
-
icon:
|
|
973
|
+
icon: Nr(),
|
|
1222
974
|
bgColor: "bg-green-50",
|
|
1223
975
|
borderColor: "border-green-300",
|
|
1224
976
|
textColor: "text-green-600"
|
|
1225
977
|
},
|
|
1226
978
|
warning: {
|
|
1227
979
|
color: "yellow",
|
|
1228
|
-
icon:
|
|
980
|
+
icon: Ur(),
|
|
1229
981
|
bgColor: "bg-yellow-50",
|
|
1230
982
|
borderColor: "border-yellow-300",
|
|
1231
983
|
textColor: "text-yellow-600"
|
|
1232
984
|
},
|
|
1233
985
|
info: {
|
|
1234
986
|
color: "aqua",
|
|
1235
|
-
icon:
|
|
987
|
+
icon: Tr(),
|
|
1236
988
|
bgColor: "bg-aqua-50",
|
|
1237
989
|
borderColor: "border-aqua-300",
|
|
1238
990
|
textColor: "text-aqua-600"
|
|
1239
991
|
}
|
|
1240
992
|
};
|
|
1241
|
-
class
|
|
993
|
+
class _o extends y {
|
|
1242
994
|
constructor() {
|
|
1243
995
|
super(), this.show = !1, this.role = "alert";
|
|
1244
996
|
}
|
|
1245
997
|
connectedCallback() {
|
|
1246
|
-
if (super.connectedCallback(), !this.variant || !Object.keys(
|
|
998
|
+
if (super.connectedCallback(), !this.variant || !Object.keys(ut).includes(this.variant))
|
|
1247
999
|
throw new Error(
|
|
1248
1000
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1249
1001
|
negative, positive, warning, info.`
|
|
1250
1002
|
);
|
|
1251
1003
|
}
|
|
1252
1004
|
get _style() {
|
|
1253
|
-
return this.variant ?
|
|
1005
|
+
return this.variant ? ut[this.variant] : {};
|
|
1254
1006
|
}
|
|
1255
1007
|
render() {
|
|
1256
1008
|
const { color: e, icon: t, bgColor: r, borderColor: i, textColor: a } = this._style;
|
|
1257
|
-
return
|
|
1009
|
+
return h`
|
|
1258
1010
|
<w-expand-transition ?show=${this.show}>
|
|
1259
1011
|
<div
|
|
1260
1012
|
role=${this.role}
|
|
@@ -1270,11 +1022,11 @@ negative, positive, warning, info.`
|
|
|
1270
1022
|
`;
|
|
1271
1023
|
}
|
|
1272
1024
|
}
|
|
1273
|
-
|
|
1025
|
+
x(_o, "properties", {
|
|
1274
1026
|
variant: { type: String, reflect: !0 },
|
|
1275
1027
|
show: { type: Boolean, reflect: !0 },
|
|
1276
1028
|
role: { type: String, reflect: !0 }
|
|
1277
|
-
}),
|
|
1029
|
+
}), x(_o, "styles", C`
|
|
1278
1030
|
/* /* layer: preflights */
|
|
1279
1031
|
|
|
1280
1032
|
/*
|
|
@@ -1851,8 +1603,8 @@ video {
|
|
|
1851
1603
|
margin-bottom: 0px !important;
|
|
1852
1604
|
}
|
|
1853
1605
|
`);
|
|
1854
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
1855
|
-
const
|
|
1606
|
+
customElements.get("w-alert") || customElements.define("w-alert", _o);
|
|
1607
|
+
const H = {
|
|
1856
1608
|
base: "border-2 relative",
|
|
1857
1609
|
tooltip: "bg-gray-700 border-gray-700 text-white rounded-4 py-6 px-8",
|
|
1858
1610
|
callout: "bg-green-100 border-green-400 py-8 px-16 rounded-8",
|
|
@@ -1861,10 +1613,10 @@ const Q = {
|
|
|
1861
1613
|
arrowTooltip: "bg-gray-700 border-gray-700",
|
|
1862
1614
|
arrowCallout: "bg-green-100 border-green-400",
|
|
1863
1615
|
arrowPopover: "bg-white border-white"
|
|
1864
|
-
},
|
|
1616
|
+
}, oe = {
|
|
1865
1617
|
box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
|
|
1866
1618
|
bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8"
|
|
1867
|
-
},
|
|
1619
|
+
}, O = {
|
|
1868
1620
|
card: "cursor-pointer overflow-hidden relative transition-all outline-none",
|
|
1869
1621
|
cardShadow: "f-card rounded-8",
|
|
1870
1622
|
cardFlat: "border-2 rounded-4",
|
|
@@ -1874,10 +1626,10 @@ const Q = {
|
|
|
1874
1626
|
cardOutline: "f-card-outline absolute rounded-8 inset-0 transition-all border-2",
|
|
1875
1627
|
cardOutlineUnselected: "border-transparent",
|
|
1876
1628
|
cardOutlineSelected: "border-blue-600 hover:border-blue-700"
|
|
1877
|
-
},
|
|
1629
|
+
}, bt = {
|
|
1878
1630
|
toasterContainer: "fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
|
|
1879
1631
|
toaster: "f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
|
|
1880
|
-
},
|
|
1632
|
+
}, E = {
|
|
1881
1633
|
toastWrapper: "relative overflow-hidden w-full",
|
|
1882
1634
|
toast: "toast flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
|
|
1883
1635
|
toastPositive: "bg-green-50 border-green-300 text-green-800",
|
|
@@ -1892,17 +1644,17 @@ const Q = {
|
|
|
1892
1644
|
toastIconLoading: "animate-bounce",
|
|
1893
1645
|
toastContent: "self-center mr-8 py-4 last-child:mb-0",
|
|
1894
1646
|
toastClose: "ml-auto p-8"
|
|
1895
|
-
},
|
|
1896
|
-
wrapper:
|
|
1647
|
+
}, Br = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Bt = "absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ", Vr = {
|
|
1648
|
+
wrapper: Bt + "right-0",
|
|
1897
1649
|
wrapperWithLabel: "w-max pr-12",
|
|
1898
1650
|
wrapperWithIcon: "w-40",
|
|
1899
1651
|
label: "field-label pb-0 text-12"
|
|
1900
|
-
},
|
|
1901
|
-
wrapper:
|
|
1652
|
+
}, Dr = {
|
|
1653
|
+
wrapper: Bt + "left-0",
|
|
1902
1654
|
wrapperWithLabel: "w-max pl-12",
|
|
1903
1655
|
wrapperWithIcon: "w-40",
|
|
1904
1656
|
label: "field-label pb-0 text-secondary text-12"
|
|
1905
|
-
},
|
|
1657
|
+
}, A = {
|
|
1906
1658
|
buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
|
|
1907
1659
|
buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
|
|
1908
1660
|
buttonFlat: "py-12 px-16 border-0! font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",
|
|
@@ -1921,24 +1673,56 @@ const Q = {
|
|
|
1921
1673
|
buttonIsDisabled: "py-10 px-14 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text! cursor-default pointer-events-none",
|
|
1922
1674
|
buttonInProgress: "py-10 px-14 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!"
|
|
1923
1675
|
};
|
|
1924
|
-
var
|
|
1676
|
+
var Wo = function() {
|
|
1925
1677
|
for (var o = [], e = arguments.length; e--; )
|
|
1926
1678
|
o[e] = arguments[e];
|
|
1927
1679
|
return o.reduce(function(t, r) {
|
|
1928
|
-
return t.concat(typeof r == "string" ? r : Array.isArray(r) ?
|
|
1680
|
+
return t.concat(typeof r == "string" ? r : Array.isArray(r) ? Wo.apply(void 0, r) : typeof r == "object" && r ? Object.keys(r).map(function(i) {
|
|
1929
1681
|
return r[i] ? i : "";
|
|
1930
1682
|
}) : "");
|
|
1931
1683
|
}, []).join(" ");
|
|
1932
1684
|
};
|
|
1685
|
+
/**
|
|
1686
|
+
* @license
|
|
1687
|
+
* Copyright 2017 Google LLC
|
|
1688
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1689
|
+
*/
|
|
1690
|
+
const Ko = {
|
|
1691
|
+
ATTRIBUTE: 1,
|
|
1692
|
+
CHILD: 2,
|
|
1693
|
+
PROPERTY: 3,
|
|
1694
|
+
BOOLEAN_ATTRIBUTE: 4,
|
|
1695
|
+
EVENT: 5,
|
|
1696
|
+
ELEMENT: 6
|
|
1697
|
+
}, Yo = (o) => (...e) => ({
|
|
1698
|
+
_$litDirective$: o,
|
|
1699
|
+
values: e
|
|
1700
|
+
});
|
|
1701
|
+
class Zo {
|
|
1702
|
+
constructor(e) {
|
|
1703
|
+
}
|
|
1704
|
+
get _$isConnected() {
|
|
1705
|
+
return this._$parent._$isConnected;
|
|
1706
|
+
}
|
|
1707
|
+
_$initialize(e, t, r) {
|
|
1708
|
+
this.__part = e, this._$parent = t, this.__attributeIndex = r;
|
|
1709
|
+
}
|
|
1710
|
+
_$resolve(e, t) {
|
|
1711
|
+
return this.update(e, t);
|
|
1712
|
+
}
|
|
1713
|
+
update(e, t) {
|
|
1714
|
+
return this.render(...t);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1933
1717
|
/**
|
|
1934
1718
|
* @license
|
|
1935
1719
|
* Copyright 2018 Google LLC
|
|
1936
1720
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1937
1721
|
*/
|
|
1938
|
-
class
|
|
1722
|
+
class Hr extends Zo {
|
|
1939
1723
|
constructor(e) {
|
|
1940
1724
|
var t;
|
|
1941
|
-
if (super(e), e.type !==
|
|
1725
|
+
if (super(e), e.type !== Ko.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
|
1942
1726
|
throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1943
1727
|
}
|
|
1944
1728
|
render(e) {
|
|
@@ -1960,38 +1744,38 @@ class ci extends Jo {
|
|
|
1960
1744
|
const l = !!t[n];
|
|
1961
1745
|
l !== this._previousClasses.has(n) && !(!((i = this._staticClasses) === null || i === void 0) && i.has(n)) && (l ? (a.add(n), this._previousClasses.add(n)) : (a.remove(n), this._previousClasses.delete(n)));
|
|
1962
1746
|
}
|
|
1963
|
-
return
|
|
1747
|
+
return I;
|
|
1964
1748
|
}
|
|
1965
1749
|
}
|
|
1966
|
-
const
|
|
1967
|
-
function
|
|
1750
|
+
const Xo = Yo(Hr), Wr = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1751
|
+
function Ye(o) {
|
|
1968
1752
|
return class extends o {
|
|
1969
1753
|
static createProperty(e, t) {
|
|
1970
1754
|
let r = t;
|
|
1971
1755
|
(typeof (t == null ? void 0 : t.attribute) > "u" || (t == null ? void 0 : t.attribute) === !0) && (r = Object.assign({}, t, {
|
|
1972
|
-
attribute:
|
|
1756
|
+
attribute: Wr(e.toString())
|
|
1973
1757
|
})), super.createProperty(e, r);
|
|
1974
1758
|
}
|
|
1975
1759
|
};
|
|
1976
1760
|
}
|
|
1977
|
-
function
|
|
1761
|
+
function gt(o) {
|
|
1978
1762
|
const e = [];
|
|
1979
1763
|
for (const [t, r] of Object.entries(o))
|
|
1980
1764
|
r && e.push(t);
|
|
1981
1765
|
return e.join(" ");
|
|
1982
1766
|
}
|
|
1983
|
-
const
|
|
1984
|
-
function
|
|
1767
|
+
const xe = typeof window < "u";
|
|
1768
|
+
function M(o) {
|
|
1985
1769
|
const e = {};
|
|
1986
1770
|
for (const [t, r] of Object.entries(o))
|
|
1987
1771
|
for (const i of t.split(" "))
|
|
1988
1772
|
e[i] = r;
|
|
1989
|
-
return
|
|
1773
|
+
return Xo(e);
|
|
1990
1774
|
}
|
|
1991
|
-
function
|
|
1775
|
+
function Kr() {
|
|
1992
1776
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
1993
1777
|
}
|
|
1994
|
-
const
|
|
1778
|
+
const fo = [
|
|
1995
1779
|
"primary",
|
|
1996
1780
|
"secondary",
|
|
1997
1781
|
"negative",
|
|
@@ -1999,15 +1783,15 @@ const wo = [
|
|
|
1999
1783
|
"pill",
|
|
2000
1784
|
"link"
|
|
2001
1785
|
];
|
|
2002
|
-
class
|
|
1786
|
+
class Me extends Ye(y) {
|
|
2003
1787
|
constructor() {
|
|
2004
1788
|
super(), this.variant = "secondary";
|
|
2005
1789
|
}
|
|
2006
1790
|
connectedCallback() {
|
|
2007
|
-
if (super.connectedCallback(), !
|
|
1791
|
+
if (super.connectedCallback(), !fo.includes(this.variant))
|
|
2008
1792
|
throw new Error(
|
|
2009
1793
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
2010
|
-
${
|
|
1794
|
+
${fo.join(
|
|
2011
1795
|
", "
|
|
2012
1796
|
)}.`
|
|
2013
1797
|
);
|
|
@@ -2017,37 +1801,37 @@ ${wo.join(
|
|
|
2017
1801
|
}
|
|
2018
1802
|
get _classes() {
|
|
2019
1803
|
const e = this.variant === "primary", t = this.variant === "secondary", r = this.variant === "negative", i = this.variant === "utility", a = this.variant === "pill", n = this.variant === "link";
|
|
2020
|
-
return
|
|
1804
|
+
return Wo(
|
|
2021
1805
|
{
|
|
2022
|
-
[
|
|
2023
|
-
[
|
|
2024
|
-
[
|
|
2025
|
-
[
|
|
2026
|
-
[
|
|
2027
|
-
[
|
|
2028
|
-
[
|
|
2029
|
-
[
|
|
2030
|
-
[
|
|
2031
|
-
[
|
|
2032
|
-
[
|
|
2033
|
-
[
|
|
1806
|
+
[A.buttonSecondary]: !fo.find((l) => this.variant === l) || t,
|
|
1807
|
+
[A.buttonPrimary]: e,
|
|
1808
|
+
[A.buttonDestructive]: r && !this.quiet,
|
|
1809
|
+
[A.buttonFlat]: t && this.quiet,
|
|
1810
|
+
[A.buttonDestructiveFlat]: r && this.quiet,
|
|
1811
|
+
[A.buttonUtilityFlat]: i && this.quiet,
|
|
1812
|
+
[A.buttonSmall]: this.small,
|
|
1813
|
+
[A.buttonUtility]: i && !this.quiet,
|
|
1814
|
+
[A.buttonLink]: n,
|
|
1815
|
+
[A.buttonPill]: a,
|
|
1816
|
+
[A.buttonInProgress]: this.loading,
|
|
1817
|
+
[A.buttonIsDisabled]: this.disabled,
|
|
2034
1818
|
["inline-block"]: !!this.href
|
|
2035
1819
|
}
|
|
2036
1820
|
);
|
|
2037
1821
|
}
|
|
2038
1822
|
render() {
|
|
2039
|
-
return
|
|
2040
|
-
${this.href ?
|
|
1823
|
+
return h`
|
|
1824
|
+
${this.href ? h`<a
|
|
2041
1825
|
href=${this.href}
|
|
2042
1826
|
target=${this.target}
|
|
2043
1827
|
rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
|
|
2044
1828
|
class=${this._classes}
|
|
2045
1829
|
>
|
|
2046
1830
|
<slot></slot>
|
|
2047
|
-
</a>` :
|
|
1831
|
+
</a>` : h`<button type=${this.type || "button"} class=${this._classes}>
|
|
2048
1832
|
<slot></slot>
|
|
2049
1833
|
</button>`}
|
|
2050
|
-
${this.loading ?
|
|
1834
|
+
${this.loading ? h`<span
|
|
2051
1835
|
class="sr-only"
|
|
2052
1836
|
role="progressbar"
|
|
2053
1837
|
aria-valuenow="{0}"
|
|
@@ -2055,7 +1839,7 @@ ${wo.join(
|
|
|
2055
1839
|
/>` : null}`;
|
|
2056
1840
|
}
|
|
2057
1841
|
}
|
|
2058
|
-
|
|
1842
|
+
x(Me, "shadowRootOptions", { ...y.shadowRootOptions, delegatesFocus: !0 }), x(Me, "properties", {
|
|
2059
1843
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
2060
1844
|
autofocus: { type: Boolean, reflect: !0 },
|
|
2061
1845
|
variant: { type: String, reflect: !0 },
|
|
@@ -2066,7 +1850,7 @@ k(Pe, "shadowRootOptions", { ...$.shadowRootOptions, delegatesFocus: !0 }), k(Pe
|
|
|
2066
1850
|
target: { type: String, reflect: !0 },
|
|
2067
1851
|
rel: { type: String, reflect: !0 },
|
|
2068
1852
|
buttonClass: { type: String, reflect: !0 }
|
|
2069
|
-
}),
|
|
1853
|
+
}), x(Me, "styles", C`
|
|
2070
1854
|
/* /* layer: preflights */
|
|
2071
1855
|
|
|
2072
1856
|
/*
|
|
@@ -2634,50 +2418,50 @@ video {
|
|
|
2634
2418
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
2635
2419
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
2636
2420
|
`);
|
|
2637
|
-
customElements.get("w-button") || customElements.define("w-button",
|
|
2421
|
+
customElements.get("w-button") || customElements.define("w-button", Me);
|
|
2638
2422
|
/**
|
|
2639
2423
|
* @license
|
|
2640
2424
|
* Copyright 2018 Google LLC
|
|
2641
2425
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2642
2426
|
*/
|
|
2643
|
-
const
|
|
2427
|
+
const z = (o) => o != null ? o : w, ht = {
|
|
2644
2428
|
ENTER: "Enter",
|
|
2645
2429
|
SPACE: " "
|
|
2646
2430
|
};
|
|
2647
|
-
class
|
|
2431
|
+
class So extends y {
|
|
2648
2432
|
constructor() {
|
|
2649
2433
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
2650
2434
|
}
|
|
2651
2435
|
get _outerClasses() {
|
|
2652
|
-
return
|
|
2653
|
-
[
|
|
2654
|
-
[
|
|
2655
|
-
[
|
|
2656
|
-
[
|
|
2657
|
-
[this.selected ?
|
|
2436
|
+
return M({
|
|
2437
|
+
[O.card]: !0,
|
|
2438
|
+
[O.cardShadow]: !this.flat,
|
|
2439
|
+
[O.cardSelected]: this.selected,
|
|
2440
|
+
[O.cardFlat]: this.flat,
|
|
2441
|
+
[this.selected ? O.cardFlatSelected : O.cardFlatUnselected]: this.flat
|
|
2658
2442
|
});
|
|
2659
2443
|
}
|
|
2660
2444
|
get _innerClasses() {
|
|
2661
|
-
return
|
|
2662
|
-
[
|
|
2663
|
-
[this.selected ?
|
|
2445
|
+
return M({
|
|
2446
|
+
[O.cardOutline]: !0,
|
|
2447
|
+
[this.selected ? O.cardOutlineSelected : O.cardOutlineUnselected]: !0
|
|
2664
2448
|
});
|
|
2665
2449
|
}
|
|
2666
2450
|
get uuButton() {
|
|
2667
|
-
return
|
|
2451
|
+
return h`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
|
|
2668
2452
|
Velg
|
|
2669
2453
|
</button>`;
|
|
2670
2454
|
}
|
|
2671
2455
|
get uuSpan() {
|
|
2672
|
-
return
|
|
2456
|
+
return h`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
2673
2457
|
}
|
|
2674
2458
|
keypressed(e) {
|
|
2675
|
-
!this.clickable || e.altKey || e.ctrlKey || (e.key ===
|
|
2459
|
+
!this.clickable || e.altKey || e.ctrlKey || (e.key === ht.ENTER || e.key === ht.SPACE) && (e.preventDefault(), this.click());
|
|
2676
2460
|
}
|
|
2677
2461
|
render() {
|
|
2678
|
-
return
|
|
2462
|
+
return h`
|
|
2679
2463
|
<div
|
|
2680
|
-
tabindex=${
|
|
2464
|
+
tabindex=${z(this.clickable ? "0" : void 0)}
|
|
2681
2465
|
class="${this._outerClasses}"
|
|
2682
2466
|
@keydown=${this.keypressed}
|
|
2683
2467
|
>
|
|
@@ -2689,8 +2473,8 @@ class qo extends $ {
|
|
|
2689
2473
|
`;
|
|
2690
2474
|
}
|
|
2691
2475
|
}
|
|
2692
|
-
|
|
2693
|
-
|
|
2476
|
+
x(So, "styles", [
|
|
2477
|
+
C`
|
|
2694
2478
|
/* /* layer: preflights */
|
|
2695
2479
|
|
|
2696
2480
|
/*
|
|
@@ -3270,68 +3054,100 @@ video {
|
|
|
3270
3054
|
display: block;
|
|
3271
3055
|
}
|
|
3272
3056
|
`
|
|
3273
|
-
]),
|
|
3057
|
+
]), x(So, "properties", {
|
|
3274
3058
|
selected: { type: Boolean, reflect: !0 },
|
|
3275
3059
|
flat: { type: Boolean },
|
|
3276
3060
|
clickable: { type: Boolean }
|
|
3277
3061
|
});
|
|
3278
|
-
customElements.get("w-card") || customElements.define("w-card",
|
|
3062
|
+
customElements.get("w-card") || customElements.define("w-card", So);
|
|
3279
3063
|
/**
|
|
3280
3064
|
* @license
|
|
3281
3065
|
* Copyright 2021 Google LLC
|
|
3282
3066
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3283
3067
|
*/
|
|
3284
|
-
function
|
|
3068
|
+
function Pe(o, e, t) {
|
|
3285
3069
|
return o ? e() : t == null ? void 0 : t();
|
|
3286
3070
|
}
|
|
3287
|
-
|
|
3288
|
-
|
|
3071
|
+
/**
|
|
3072
|
+
* @license
|
|
3073
|
+
* Copyright 2017 Google LLC
|
|
3074
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3075
|
+
*/
|
|
3076
|
+
const Yr = 1;
|
|
3077
|
+
class Go extends Zo {
|
|
3078
|
+
constructor(e) {
|
|
3079
|
+
if (super(e), this._value = w, e.type !== Ko.CHILD)
|
|
3080
|
+
throw new Error(`${this.constructor.directiveName}() can only be used in child bindings`);
|
|
3081
|
+
}
|
|
3082
|
+
render(e) {
|
|
3083
|
+
if (e === w || e == null)
|
|
3084
|
+
return this._templateResult = void 0, this._value = e;
|
|
3085
|
+
if (e === I)
|
|
3086
|
+
return e;
|
|
3087
|
+
if (typeof e != "string")
|
|
3088
|
+
throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
|
|
3089
|
+
if (e === this._value)
|
|
3090
|
+
return this._templateResult;
|
|
3091
|
+
this._value = e;
|
|
3092
|
+
const t = [e];
|
|
3093
|
+
return t.raw = t, this._templateResult = {
|
|
3094
|
+
_$litType$: this.constructor.resultType,
|
|
3095
|
+
strings: t,
|
|
3096
|
+
values: []
|
|
3097
|
+
};
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
Go.directiveName = "unsafeHTML";
|
|
3101
|
+
Go.resultType = Yr;
|
|
3102
|
+
const Vt = Yo(Go);
|
|
3103
|
+
var He, Dt, re, je, ie, Ne;
|
|
3104
|
+
class Co extends Ye(y) {
|
|
3289
3105
|
constructor() {
|
|
3290
3106
|
super();
|
|
3291
|
-
Re(this,
|
|
3292
|
-
Re(this,
|
|
3293
|
-
Re(this,
|
|
3107
|
+
Re(this, He);
|
|
3108
|
+
Re(this, re);
|
|
3109
|
+
Re(this, ie);
|
|
3294
3110
|
this._options = this.innerHTML;
|
|
3295
3111
|
}
|
|
3296
3112
|
render() {
|
|
3297
|
-
return
|
|
3298
|
-
${
|
|
3113
|
+
return h`<div class="${D(this, He, Dt)}">
|
|
3114
|
+
${Pe(
|
|
3299
3115
|
this.label,
|
|
3300
|
-
() =>
|
|
3116
|
+
() => h`<label for="${D(this, re, je)}">
|
|
3301
3117
|
${this.label}
|
|
3302
|
-
${
|
|
3118
|
+
${Pe(
|
|
3303
3119
|
this.optional,
|
|
3304
|
-
() =>
|
|
3120
|
+
() => h`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`
|
|
3305
3121
|
)}</label
|
|
3306
3122
|
>`
|
|
3307
3123
|
)}
|
|
3308
3124
|
<div class="input--select__wrap">
|
|
3309
3125
|
<select
|
|
3310
|
-
id="${
|
|
3126
|
+
id="${D(this, re, je)}"
|
|
3311
3127
|
?autofocus=${this.autoFocus}
|
|
3312
|
-
aria-describedby="${
|
|
3313
|
-
aria-invalid="${
|
|
3314
|
-
aria-errormessage="${
|
|
3128
|
+
aria-describedby="${z(D(this, ie, Ne))}"
|
|
3129
|
+
aria-invalid="${z(this.invalid)}"
|
|
3130
|
+
aria-errormessage="${z(this.invalid && D(this, ie, Ne))}"
|
|
3315
3131
|
>
|
|
3316
|
-
${
|
|
3132
|
+
${Vt(this._options)}
|
|
3317
3133
|
</select>
|
|
3318
3134
|
</div>
|
|
3319
|
-
${
|
|
3135
|
+
${Pe(
|
|
3320
3136
|
this.always || this.invalid,
|
|
3321
|
-
() =>
|
|
3137
|
+
() => h`<div id="${D(this, ie, Ne)}" class="input__sub-text">${this.hint}</div>`
|
|
3322
3138
|
)}
|
|
3323
3139
|
</div>`;
|
|
3324
3140
|
}
|
|
3325
3141
|
}
|
|
3326
|
-
|
|
3327
|
-
return
|
|
3142
|
+
He = new WeakSet(), Dt = function() {
|
|
3143
|
+
return Wo("input mb-0", {
|
|
3328
3144
|
"input--is-invalid": this.invalid
|
|
3329
3145
|
});
|
|
3330
|
-
},
|
|
3146
|
+
}, re = new WeakSet(), je = function() {
|
|
3331
3147
|
return "select_id";
|
|
3332
|
-
},
|
|
3333
|
-
return this.hint ? `${
|
|
3334
|
-
},
|
|
3148
|
+
}, ie = new WeakSet(), Ne = function() {
|
|
3149
|
+
return this.hint ? `${D(this, re, je)}__hint` : void 0;
|
|
3150
|
+
}, x(Co, "properties", {
|
|
3335
3151
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
3336
3152
|
invalid: { type: Boolean, reflect: !0 },
|
|
3337
3153
|
always: { type: Boolean, reflect: !0 },
|
|
@@ -3339,7 +3155,7 @@ Ke = new WeakSet(), Qt = function() {
|
|
|
3339
3155
|
label: { type: String, reflect: !0 },
|
|
3340
3156
|
optional: { type: Boolean, reflect: !0 },
|
|
3341
3157
|
_options: { state: !0 }
|
|
3342
|
-
}),
|
|
3158
|
+
}), x(Co, "styles", C`
|
|
3343
3159
|
/* /* layer: preflights */
|
|
3344
3160
|
|
|
3345
3161
|
/*
|
|
@@ -3909,31 +3725,31 @@ video {
|
|
|
3909
3725
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
3910
3726
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
3911
3727
|
`);
|
|
3912
|
-
customElements.get("w-select") || customElements.define("w-select",
|
|
3913
|
-
class
|
|
3728
|
+
customElements.get("w-select") || customElements.define("w-select", Co);
|
|
3729
|
+
class Ro extends y {
|
|
3914
3730
|
get _class() {
|
|
3915
|
-
return
|
|
3916
|
-
[
|
|
3917
|
-
[
|
|
3731
|
+
return M({
|
|
3732
|
+
[oe.box]: !0,
|
|
3733
|
+
[oe.bleed]: this.bleed,
|
|
3918
3734
|
"bg-aqua-50": this.info,
|
|
3919
3735
|
"bg-bluegray-100": this.neutral,
|
|
3920
3736
|
"border-2 border-bluegray-300": this.bordered
|
|
3921
3737
|
});
|
|
3922
3738
|
}
|
|
3923
3739
|
render() {
|
|
3924
|
-
return
|
|
3740
|
+
return h`
|
|
3925
3741
|
<div class="${this._class}">
|
|
3926
3742
|
<slot></slot>
|
|
3927
3743
|
</div>
|
|
3928
3744
|
`;
|
|
3929
3745
|
}
|
|
3930
3746
|
}
|
|
3931
|
-
|
|
3747
|
+
x(Ro, "properties", {
|
|
3932
3748
|
bleed: { type: Boolean },
|
|
3933
3749
|
bordered: { type: Boolean },
|
|
3934
3750
|
info: { type: Boolean },
|
|
3935
3751
|
neutral: { type: Boolean }
|
|
3936
|
-
}),
|
|
3752
|
+
}), x(Ro, "styles", C`
|
|
3937
3753
|
/* /* layer: preflights */
|
|
3938
3754
|
|
|
3939
3755
|
/*
|
|
@@ -4507,17 +4323,17 @@ video {
|
|
|
4507
4323
|
margin-bottom: 0px !important;
|
|
4508
4324
|
}
|
|
4509
4325
|
`);
|
|
4510
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
4511
|
-
function
|
|
4326
|
+
customElements.get("w-box") || customElements.define("w-box", Ro);
|
|
4327
|
+
function Zr(o, e) {
|
|
4512
4328
|
return o.flatMap((t) => [t, e]).slice(0, -1);
|
|
4513
4329
|
}
|
|
4514
|
-
const
|
|
4515
|
-
class
|
|
4330
|
+
const Xr = h`<span class="select-none" aria-hidden="true">/</span>`;
|
|
4331
|
+
class Ht extends y {
|
|
4516
4332
|
connectedCallback() {
|
|
4517
|
-
super.connectedCallback(), this._children =
|
|
4333
|
+
super.connectedCallback(), this._children = Zr(Array.from(this.children), Xr);
|
|
4518
4334
|
}
|
|
4519
4335
|
render() {
|
|
4520
|
-
return
|
|
4336
|
+
return h`
|
|
4521
4337
|
<nav aria-label="Her er du" class="flex space-x-8">
|
|
4522
4338
|
<h2 class="sr-only">Her er du</h2>
|
|
4523
4339
|
${this._children}
|
|
@@ -4525,7 +4341,7 @@ class er extends $ {
|
|
|
4525
4341
|
`;
|
|
4526
4342
|
}
|
|
4527
4343
|
}
|
|
4528
|
-
|
|
4344
|
+
x(Ht, "styles", C`
|
|
4529
4345
|
/* /* layer: preflights */
|
|
4530
4346
|
|
|
4531
4347
|
/*
|
|
@@ -5095,49 +4911,49 @@ video {
|
|
|
5095
4911
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
5096
4912
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
5097
4913
|
`);
|
|
5098
|
-
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs",
|
|
5099
|
-
const
|
|
5100
|
-
let
|
|
5101
|
-
if (
|
|
5102
|
-
const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) =>
|
|
4914
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", Ht);
|
|
4915
|
+
const Jo = typeof window < "u";
|
|
4916
|
+
let Wt = !0;
|
|
4917
|
+
if (Jo) {
|
|
4918
|
+
const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) => Wt = !t;
|
|
5103
4919
|
o.addEventListener && o.addEventListener("change", e), e(o);
|
|
5104
4920
|
}
|
|
5105
|
-
const
|
|
4921
|
+
const Kt = (o) => {
|
|
5106
4922
|
o.style.transition = null, o.style.backfaceVisibility = null, o.style.overflow = null;
|
|
5107
|
-
},
|
|
5108
|
-
const e =
|
|
4923
|
+
}, Yt = (o) => {
|
|
4924
|
+
const e = Wt ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
5109
4925
|
o.style.transition = `height ${e}`, o.style.backfaceVisibility = "hidden", o.style.overflow = "hidden";
|
|
5110
|
-
},
|
|
4926
|
+
}, Gr = (o, e) => () => {
|
|
5111
4927
|
o.style.height = "auto", o.style.overflow = null, e && e();
|
|
5112
|
-
},
|
|
4928
|
+
}, Jr = (o) => () => {
|
|
5113
4929
|
o && o();
|
|
5114
|
-
},
|
|
4930
|
+
}, Zt = (o, e) => {
|
|
5115
4931
|
const t = (() => {
|
|
5116
4932
|
if (!e)
|
|
5117
4933
|
return new Promise((a) => {
|
|
5118
4934
|
e = a;
|
|
5119
4935
|
});
|
|
5120
|
-
})(), r =
|
|
5121
|
-
|
|
4936
|
+
})(), r = Gr(o, e);
|
|
4937
|
+
Kt(o), o.style.height = "auto";
|
|
5122
4938
|
let i = o.scrollHeight;
|
|
5123
|
-
if (
|
|
5124
|
-
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out",
|
|
4939
|
+
if (Jo && requestAnimationFrame(() => {
|
|
4940
|
+
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out", Yt(o), requestAnimationFrame(() => o.style.height = i + "px");
|
|
5125
4941
|
}), t)
|
|
5126
4942
|
return t;
|
|
5127
|
-
},
|
|
4943
|
+
}, Xt = (o, e) => {
|
|
5128
4944
|
const t = (() => {
|
|
5129
4945
|
if (!e)
|
|
5130
4946
|
return new Promise((a) => {
|
|
5131
4947
|
e = a;
|
|
5132
4948
|
});
|
|
5133
|
-
})(), r =
|
|
5134
|
-
|
|
4949
|
+
})(), r = Jr(e);
|
|
4950
|
+
Kt(o);
|
|
5135
4951
|
let i = o.scrollHeight;
|
|
5136
|
-
if (
|
|
5137
|
-
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in",
|
|
4952
|
+
if (Jo && requestAnimationFrame(() => {
|
|
4953
|
+
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in", Yt(o), requestAnimationFrame(() => o.style.height = "0px");
|
|
5138
4954
|
}), t)
|
|
5139
4955
|
return t;
|
|
5140
|
-
},
|
|
4956
|
+
}, Qr = (o) => h`<svg
|
|
5141
4957
|
role="img"
|
|
5142
4958
|
aria-label="${o.typeLabel}"
|
|
5143
4959
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5153,7 +4969,7 @@ const tr = (o) => {
|
|
|
5153
4969
|
stroke-width="1.5"
|
|
5154
4970
|
d="M5.5 9l2 1.5L11 6"
|
|
5155
4971
|
/>
|
|
5156
|
-
</svg>`,
|
|
4972
|
+
</svg>`, ei = (o) => h`
|
|
5157
4973
|
<svg
|
|
5158
4974
|
role="img"
|
|
5159
4975
|
aria-label="${o.typeLabel}"
|
|
@@ -5162,7 +4978,7 @@ const tr = (o) => {
|
|
|
5162
4978
|
height="16"
|
|
5163
4979
|
fill="none"
|
|
5164
4980
|
viewBox="0 0 16 16"
|
|
5165
|
-
class="${
|
|
4981
|
+
class="${Xo({
|
|
5166
4982
|
"transition-transform duration-200": !0,
|
|
5167
4983
|
"transform-rotate-180": o.isInfo
|
|
5168
4984
|
})}"
|
|
@@ -5176,7 +4992,7 @@ const tr = (o) => {
|
|
|
5176
4992
|
/>
|
|
5177
4993
|
<circle cx="8" cy="11.8" r=".8" fill="currentColor" />
|
|
5178
4994
|
</svg>
|
|
5179
|
-
`,
|
|
4995
|
+
`, oi = () => h`
|
|
5180
4996
|
<svg
|
|
5181
4997
|
role="img"
|
|
5182
4998
|
aria-label="Lukk"
|
|
@@ -5193,14 +5009,14 @@ const tr = (o) => {
|
|
|
5193
5009
|
clipRule="evenodd"
|
|
5194
5010
|
/>
|
|
5195
5011
|
</svg>
|
|
5196
|
-
`,
|
|
5012
|
+
`, pt = (o) => {
|
|
5197
5013
|
const e = {};
|
|
5198
5014
|
for (const [t, r] of Object.entries(o))
|
|
5199
5015
|
for (const i of t.split(" "))
|
|
5200
5016
|
e[i] = r;
|
|
5201
|
-
return
|
|
5017
|
+
return Xo(e);
|
|
5202
5018
|
};
|
|
5203
|
-
class
|
|
5019
|
+
class Eo extends y {
|
|
5204
5020
|
constructor() {
|
|
5205
5021
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
5206
5022
|
}
|
|
@@ -5211,24 +5027,24 @@ class jo extends $ {
|
|
|
5211
5027
|
super.disconnectedCallback();
|
|
5212
5028
|
}
|
|
5213
5029
|
updated() {
|
|
5214
|
-
!this._expanded && this._wrapper &&
|
|
5030
|
+
!this._expanded && this._wrapper && Zt(this._wrapper, () => this._expanded = !0);
|
|
5215
5031
|
}
|
|
5216
5032
|
get _primaryClasses() {
|
|
5217
|
-
return
|
|
5218
|
-
[
|
|
5219
|
-
[
|
|
5220
|
-
[
|
|
5221
|
-
[
|
|
5222
|
-
[
|
|
5033
|
+
return pt({
|
|
5034
|
+
[E.toast]: !0,
|
|
5035
|
+
[E.toastPositive]: this.type === "success",
|
|
5036
|
+
[E.toastWarning]: this.type === "warning",
|
|
5037
|
+
[E.toastNegative]: this.type === "error",
|
|
5038
|
+
[E.toastNeutral]: this.type === "info"
|
|
5223
5039
|
});
|
|
5224
5040
|
}
|
|
5225
5041
|
get _iconClasses() {
|
|
5226
|
-
return
|
|
5227
|
-
[
|
|
5228
|
-
[
|
|
5229
|
-
[
|
|
5230
|
-
[
|
|
5231
|
-
[
|
|
5042
|
+
return pt({
|
|
5043
|
+
[E.toastIcon]: !0,
|
|
5044
|
+
[E.toastIconPositive]: this.type == "success",
|
|
5045
|
+
[E.toastIconWarning]: this.type === "warning",
|
|
5046
|
+
[E.toastIconNegative]: this.type === "error",
|
|
5047
|
+
[E.toastIconNeutral]: this.type === "info"
|
|
5232
5048
|
});
|
|
5233
5049
|
}
|
|
5234
5050
|
get _wrapper() {
|
|
@@ -5254,11 +5070,11 @@ class jo extends $ {
|
|
|
5254
5070
|
return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
|
|
5255
5071
|
}
|
|
5256
5072
|
get _iconMarkup() {
|
|
5257
|
-
return this._success ?
|
|
5073
|
+
return this._success ? Qr({ typeLabel: this._typeLabel }) : ei({ typeLabel: this._typeLabel, isInfo: this._info });
|
|
5258
5074
|
}
|
|
5259
5075
|
async collapse() {
|
|
5260
5076
|
return new Promise((e) => {
|
|
5261
|
-
this._expanded && this._wrapper ?
|
|
5077
|
+
this._expanded && this._wrapper ? Xt(this._wrapper, e) : e();
|
|
5262
5078
|
});
|
|
5263
5079
|
}
|
|
5264
5080
|
close() {
|
|
@@ -5270,22 +5086,22 @@ class jo extends $ {
|
|
|
5270
5086
|
this.updateComplete.then(() => this.dispatchEvent(e));
|
|
5271
5087
|
}
|
|
5272
5088
|
render() {
|
|
5273
|
-
return this.text ?
|
|
5089
|
+
return this.text ? h` <section class="${E.toastWrapper}" aria-label="${this._typeLabel}">
|
|
5274
5090
|
<div class="${this._primaryClasses}">
|
|
5275
5091
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
5276
|
-
<div role="${this._role}" class="${
|
|
5092
|
+
<div role="${this._role}" class="${E.toastContent}">
|
|
5277
5093
|
<p>${this.text}</p>
|
|
5278
5094
|
</div>
|
|
5279
|
-
${
|
|
5095
|
+
${Pe(
|
|
5280
5096
|
this.canclose === !0,
|
|
5281
|
-
() =>
|
|
5097
|
+
() => h`<button class="${E.toastClose}" @click="${this.close}">${oi()}</button>`
|
|
5282
5098
|
)}
|
|
5283
5099
|
</div>
|
|
5284
|
-
</section>` :
|
|
5100
|
+
</section>` : h``;
|
|
5285
5101
|
}
|
|
5286
5102
|
}
|
|
5287
|
-
|
|
5288
|
-
|
|
5103
|
+
x(Eo, "styles", [
|
|
5104
|
+
C`
|
|
5289
5105
|
/* /* layer: preflights */
|
|
5290
5106
|
|
|
5291
5107
|
/*
|
|
@@ -5855,49 +5671,49 @@ video {
|
|
|
5855
5671
|
display: block;
|
|
5856
5672
|
}
|
|
5857
5673
|
`
|
|
5858
|
-
]),
|
|
5674
|
+
]), x(Eo, "properties", {
|
|
5859
5675
|
id: { type: String, attribute: !0, reflect: !0 },
|
|
5860
5676
|
type: { type: String, attribute: !0, reflect: !0 },
|
|
5861
5677
|
text: { type: String, attribute: !0, reflect: !0 },
|
|
5862
5678
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
5863
5679
|
});
|
|
5864
|
-
customElements.get("w-toast") || customElements.define("w-toast",
|
|
5680
|
+
customElements.get("w-toast") || customElements.define("w-toast", Eo);
|
|
5865
5681
|
/**
|
|
5866
5682
|
* @license
|
|
5867
5683
|
* Copyright 2020 Google LLC
|
|
5868
5684
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5869
5685
|
*/
|
|
5870
|
-
var
|
|
5871
|
-
const { _ChildPart:
|
|
5686
|
+
var vo, xo;
|
|
5687
|
+
const { _ChildPart: ti } = Pr, L = ((vo = window.ShadyDOM) === null || vo === void 0 ? void 0 : vo.inUse) && ((xo = window.ShadyDOM) === null || xo === void 0 ? void 0 : xo.noPatch) === !0 ? window.ShadyDOM.wrap : (o) => o, mt = () => document.createComment(""), ge = (o, e, t) => {
|
|
5872
5688
|
var r;
|
|
5873
|
-
const i =
|
|
5689
|
+
const i = L(o._$startNode).parentNode, a = e === void 0 ? o._$endNode : e._$startNode;
|
|
5874
5690
|
if (t === void 0) {
|
|
5875
|
-
const n =
|
|
5876
|
-
t = new
|
|
5691
|
+
const n = L(i).insertBefore(mt(), a), l = L(i).insertBefore(mt(), a);
|
|
5692
|
+
t = new ti(n, l, o, o.options);
|
|
5877
5693
|
} else {
|
|
5878
|
-
const n =
|
|
5879
|
-
if (
|
|
5694
|
+
const n = L(t._$endNode).nextSibling, l = t._$parent, c = l !== o;
|
|
5695
|
+
if (c) {
|
|
5880
5696
|
(r = t._$reparentDisconnectables) === null || r === void 0 || r.call(t, o), t._$parent = o;
|
|
5881
|
-
let
|
|
5882
|
-
t._$notifyConnectionChanged !== void 0 && (
|
|
5697
|
+
let s;
|
|
5698
|
+
t._$notifyConnectionChanged !== void 0 && (s = o._$isConnected) !== l._$isConnected && t._$notifyConnectionChanged(s);
|
|
5883
5699
|
}
|
|
5884
|
-
if (n !== a ||
|
|
5885
|
-
let
|
|
5886
|
-
for (;
|
|
5887
|
-
const
|
|
5888
|
-
|
|
5700
|
+
if (n !== a || c) {
|
|
5701
|
+
let s = t._$startNode;
|
|
5702
|
+
for (; s !== n; ) {
|
|
5703
|
+
const g = L(s).nextSibling;
|
|
5704
|
+
L(i).insertBefore(s, a), s = g;
|
|
5889
5705
|
}
|
|
5890
5706
|
}
|
|
5891
5707
|
}
|
|
5892
5708
|
return t;
|
|
5893
|
-
},
|
|
5709
|
+
}, Z = (o, e, t = o) => (o._$setValue(e, t), o), ri = {}, ii = (o, e = ri) => o._$committedValue = e, ni = (o) => o._$committedValue, ko = (o) => {
|
|
5894
5710
|
var e;
|
|
5895
5711
|
(e = o._$notifyConnectionChanged) === null || e === void 0 || e.call(o, !1, !0);
|
|
5896
5712
|
let t = o._$startNode;
|
|
5897
|
-
const r =
|
|
5713
|
+
const r = L(o._$endNode).nextSibling;
|
|
5898
5714
|
for (; t !== r; ) {
|
|
5899
|
-
const i =
|
|
5900
|
-
|
|
5715
|
+
const i = L(t).nextSibling;
|
|
5716
|
+
L(t).remove(), t = i;
|
|
5901
5717
|
}
|
|
5902
5718
|
};
|
|
5903
5719
|
/**
|
|
@@ -5905,15 +5721,15 @@ const { _ChildPart: vi } = Kr, W = ((yo = window.ShadyDOM) === null || yo === vo
|
|
|
5905
5721
|
* Copyright 2017 Google LLC
|
|
5906
5722
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5907
5723
|
*/
|
|
5908
|
-
const
|
|
5724
|
+
const ft = (o, e, t) => {
|
|
5909
5725
|
const r = /* @__PURE__ */ new Map();
|
|
5910
5726
|
for (let i = e; i <= t; i++)
|
|
5911
5727
|
r.set(o[i], i);
|
|
5912
5728
|
return r;
|
|
5913
5729
|
};
|
|
5914
|
-
class
|
|
5730
|
+
class ai extends Zo {
|
|
5915
5731
|
constructor(e) {
|
|
5916
|
-
if (super(e), e.type !==
|
|
5732
|
+
if (super(e), e.type !== Ko.CHILD)
|
|
5917
5733
|
throw new Error("repeat() can only be used in text expressions");
|
|
5918
5734
|
}
|
|
5919
5735
|
_getValuesAndKeys(e, t, r) {
|
|
@@ -5921,8 +5737,8 @@ class yi extends Jo {
|
|
|
5921
5737
|
r === void 0 ? r = t : t !== void 0 && (i = t);
|
|
5922
5738
|
const a = [], n = [];
|
|
5923
5739
|
let l = 0;
|
|
5924
|
-
for (const
|
|
5925
|
-
a[l] = i ? i(
|
|
5740
|
+
for (const c of e)
|
|
5741
|
+
a[l] = i ? i(c, l) : l, n[l] = r(c, l), l++;
|
|
5926
5742
|
return {
|
|
5927
5743
|
values: n,
|
|
5928
5744
|
keys: a
|
|
@@ -5933,50 +5749,50 @@ class yi extends Jo {
|
|
|
5933
5749
|
}
|
|
5934
5750
|
update(e, [t, r, i]) {
|
|
5935
5751
|
var a;
|
|
5936
|
-
const n =
|
|
5752
|
+
const n = ni(e), { values: l, keys: c } = this._getValuesAndKeys(t, r, i);
|
|
5937
5753
|
if (!Array.isArray(n))
|
|
5938
|
-
return this._itemKeys =
|
|
5939
|
-
const
|
|
5940
|
-
let
|
|
5941
|
-
for (;
|
|
5942
|
-
if (n[
|
|
5943
|
-
|
|
5944
|
-
else if (n[
|
|
5945
|
-
|
|
5946
|
-
else if (
|
|
5947
|
-
|
|
5948
|
-
else if (
|
|
5949
|
-
|
|
5950
|
-
else if (
|
|
5951
|
-
|
|
5952
|
-
else if (
|
|
5953
|
-
|
|
5954
|
-
else if (
|
|
5955
|
-
|
|
5956
|
-
else if (!
|
|
5957
|
-
|
|
5754
|
+
return this._itemKeys = c, l;
|
|
5755
|
+
const s = (a = this._itemKeys) !== null && a !== void 0 ? a : this._itemKeys = [], g = [];
|
|
5756
|
+
let u, b, d = 0, p = n.length - 1, f = 0, v = l.length - 1;
|
|
5757
|
+
for (; d <= p && f <= v; )
|
|
5758
|
+
if (n[d] === null)
|
|
5759
|
+
d++;
|
|
5760
|
+
else if (n[p] === null)
|
|
5761
|
+
p--;
|
|
5762
|
+
else if (s[d] === c[f])
|
|
5763
|
+
g[f] = Z(n[d], l[f]), d++, f++;
|
|
5764
|
+
else if (s[p] === c[v])
|
|
5765
|
+
g[v] = Z(n[p], l[v]), p--, v--;
|
|
5766
|
+
else if (s[d] === c[v])
|
|
5767
|
+
g[v] = Z(n[d], l[v]), ge(e, g[v + 1], n[d]), d++, v--;
|
|
5768
|
+
else if (s[p] === c[f])
|
|
5769
|
+
g[f] = Z(n[p], l[f]), ge(e, n[d], n[p]), p--, f++;
|
|
5770
|
+
else if (u === void 0 && (u = ft(c, f, v), b = ft(s, d, p)), !u.has(s[d]))
|
|
5771
|
+
ko(n[d]), d++;
|
|
5772
|
+
else if (!u.has(s[p]))
|
|
5773
|
+
ko(n[p]), p--;
|
|
5958
5774
|
else {
|
|
5959
|
-
const
|
|
5960
|
-
if (
|
|
5961
|
-
const S =
|
|
5962
|
-
|
|
5775
|
+
const k = b.get(c[f]), $ = k !== void 0 ? n[k] : null;
|
|
5776
|
+
if ($ === null) {
|
|
5777
|
+
const S = ge(e, n[d]);
|
|
5778
|
+
Z(S, l[f]), g[f] = S;
|
|
5963
5779
|
} else
|
|
5964
|
-
|
|
5780
|
+
g[f] = Z($, l[f]), ge(e, n[d], $), n[k] = null;
|
|
5965
5781
|
f++;
|
|
5966
5782
|
}
|
|
5967
5783
|
for (; f <= v; ) {
|
|
5968
|
-
const
|
|
5969
|
-
|
|
5784
|
+
const k = ge(e, g[v + 1]);
|
|
5785
|
+
Z(k, l[f]), g[f++] = k;
|
|
5970
5786
|
}
|
|
5971
|
-
for (;
|
|
5972
|
-
const
|
|
5973
|
-
|
|
5787
|
+
for (; d <= p; ) {
|
|
5788
|
+
const k = n[d++];
|
|
5789
|
+
k !== null && ko(k);
|
|
5974
5790
|
}
|
|
5975
|
-
return this._itemKeys =
|
|
5791
|
+
return this._itemKeys = c, ii(e, g), I;
|
|
5976
5792
|
}
|
|
5977
5793
|
}
|
|
5978
|
-
const
|
|
5979
|
-
class
|
|
5794
|
+
const Gt = Yo(ai);
|
|
5795
|
+
class Ao extends y {
|
|
5980
5796
|
constructor() {
|
|
5981
5797
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
5982
5798
|
}
|
|
@@ -6034,13 +5850,13 @@ class Ie extends $ {
|
|
|
6034
5850
|
return this._toasts = new Map(Array.from(this._toasts)), r;
|
|
6035
5851
|
}
|
|
6036
5852
|
render() {
|
|
6037
|
-
return
|
|
6038
|
-
<aside class="${
|
|
6039
|
-
<div class="${
|
|
6040
|
-
${
|
|
5853
|
+
return h`
|
|
5854
|
+
<aside class="${bt.toasterContainer}">
|
|
5855
|
+
<div class="${bt.toaster}" id="w-toast-container-list">
|
|
5856
|
+
${Gt(
|
|
6041
5857
|
this._toastsArray,
|
|
6042
5858
|
(e) => e.id,
|
|
6043
|
-
(e) =>
|
|
5859
|
+
(e) => h` <w-toast
|
|
6044
5860
|
class="w-full"
|
|
6045
5861
|
id="${e.id}"
|
|
6046
5862
|
type="${e.type}"
|
|
@@ -6055,8 +5871,8 @@ class Ie extends $ {
|
|
|
6055
5871
|
`;
|
|
6056
5872
|
}
|
|
6057
5873
|
}
|
|
6058
|
-
|
|
6059
|
-
|
|
5874
|
+
x(Ao, "styles", [
|
|
5875
|
+
C`
|
|
6060
5876
|
/* /* layer: preflights */
|
|
6061
5877
|
|
|
6062
5878
|
/*
|
|
@@ -6628,12 +6444,12 @@ video {
|
|
|
6628
6444
|
display: block;
|
|
6629
6445
|
}
|
|
6630
6446
|
`
|
|
6631
|
-
]),
|
|
6447
|
+
]), x(Ao, "properties", {
|
|
6632
6448
|
_toasts: { state: !0 }
|
|
6633
6449
|
});
|
|
6634
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
6635
|
-
function
|
|
6636
|
-
if (!
|
|
6450
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", Ao);
|
|
6451
|
+
function Vi(o, e) {
|
|
6452
|
+
if (!xe)
|
|
6637
6453
|
return;
|
|
6638
6454
|
const t = customElements.get("w-toast-container").init(), r = {
|
|
6639
6455
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -6644,25 +6460,25 @@ function $i(o, e) {
|
|
|
6644
6460
|
};
|
|
6645
6461
|
return t.set(r), r;
|
|
6646
6462
|
}
|
|
6647
|
-
function
|
|
6648
|
-
return
|
|
6463
|
+
function Di(o) {
|
|
6464
|
+
return xe ? customElements.get("w-toast-container").init().del(o) : void 0;
|
|
6649
6465
|
}
|
|
6650
|
-
function
|
|
6651
|
-
if (!
|
|
6466
|
+
function Hi(o, e) {
|
|
6467
|
+
if (!xe)
|
|
6652
6468
|
return;
|
|
6653
6469
|
const t = customElements.get("w-toast-container").init();
|
|
6654
6470
|
return t.set({ ...t.get(o), ...e }), t.get(o);
|
|
6655
6471
|
}
|
|
6656
|
-
class
|
|
6472
|
+
class qo extends y {
|
|
6657
6473
|
constructor() {
|
|
6658
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
6474
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = xe ? window.location.href : "";
|
|
6659
6475
|
}
|
|
6660
6476
|
async connectedCallback() {
|
|
6661
6477
|
if (super.connectedCallback(), !this.api) {
|
|
6662
6478
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
6663
6479
|
return;
|
|
6664
6480
|
}
|
|
6665
|
-
|
|
6481
|
+
xe && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
6666
6482
|
}
|
|
6667
6483
|
async _fetchMessage() {
|
|
6668
6484
|
const e = `${this.api}?path=${this.url}`;
|
|
@@ -6678,12 +6494,12 @@ class No extends $ {
|
|
|
6678
6494
|
}
|
|
6679
6495
|
render() {
|
|
6680
6496
|
const e = this._messages.filter((t) => !this._hiddenMessageIds.includes(t.id));
|
|
6681
|
-
return
|
|
6497
|
+
return h`
|
|
6682
6498
|
<aside class=${`${e.length === 0 ? "hidden" : "mb-16"}`}>
|
|
6683
|
-
${
|
|
6499
|
+
${Gt(
|
|
6684
6500
|
e,
|
|
6685
6501
|
({ id: t }) => `broadcast-${t}`,
|
|
6686
|
-
({ id: t, message: r }) =>
|
|
6502
|
+
({ id: t, message: r }) => h`<w-toast
|
|
6687
6503
|
class="w-full"
|
|
6688
6504
|
id="broadcast-${t}"
|
|
6689
6505
|
type="warning"
|
|
@@ -6697,7 +6513,7 @@ class No extends $ {
|
|
|
6697
6513
|
`;
|
|
6698
6514
|
}
|
|
6699
6515
|
}
|
|
6700
|
-
|
|
6516
|
+
x(qo, "properties", {
|
|
6701
6517
|
_messages: {
|
|
6702
6518
|
state: !0,
|
|
6703
6519
|
hasChanged(e, t) {
|
|
@@ -6714,7 +6530,7 @@ k(No, "properties", {
|
|
|
6714
6530
|
interval: { type: Number, attribute: !0, reflect: !0 },
|
|
6715
6531
|
url: { type: String, attribute: !0, reflect: !0 },
|
|
6716
6532
|
api: { type: String, attribute: !0, reflect: !0 }
|
|
6717
|
-
}),
|
|
6533
|
+
}), x(qo, "styles", C`
|
|
6718
6534
|
/* /* layer: preflights */
|
|
6719
6535
|
|
|
6720
6536
|
/*
|
|
@@ -7283,139 +7099,139 @@ video {
|
|
|
7283
7099
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
7284
7100
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
7285
7101
|
`);
|
|
7286
|
-
customElements.get("w-broadcast") || customElements.define("w-broadcast",
|
|
7287
|
-
function
|
|
7102
|
+
customElements.get("w-broadcast") || customElements.define("w-broadcast", qo);
|
|
7103
|
+
function $e(o) {
|
|
7288
7104
|
return o.split("-")[0];
|
|
7289
7105
|
}
|
|
7290
|
-
function
|
|
7106
|
+
function Ze(o) {
|
|
7291
7107
|
return o.split("-")[1];
|
|
7292
7108
|
}
|
|
7293
|
-
function
|
|
7294
|
-
return ["top", "bottom"].includes(
|
|
7109
|
+
function ze(o) {
|
|
7110
|
+
return ["top", "bottom"].includes($e(o)) ? "x" : "y";
|
|
7295
7111
|
}
|
|
7296
|
-
function
|
|
7112
|
+
function Qo(o) {
|
|
7297
7113
|
return o === "y" ? "height" : "width";
|
|
7298
7114
|
}
|
|
7299
|
-
function
|
|
7115
|
+
function vt(o, e, t) {
|
|
7300
7116
|
let {
|
|
7301
7117
|
reference: r,
|
|
7302
7118
|
floating: i
|
|
7303
7119
|
} = o;
|
|
7304
|
-
const a = r.x + r.width / 2 - i.width / 2, n = r.y + r.height / 2 - i.height / 2, l =
|
|
7305
|
-
let
|
|
7306
|
-
switch (
|
|
7120
|
+
const a = r.x + r.width / 2 - i.width / 2, n = r.y + r.height / 2 - i.height / 2, l = ze(e), c = Qo(l), s = r[c] / 2 - i[c] / 2, g = $e(e), u = l === "x";
|
|
7121
|
+
let b;
|
|
7122
|
+
switch (g) {
|
|
7307
7123
|
case "top":
|
|
7308
|
-
|
|
7124
|
+
b = {
|
|
7309
7125
|
x: a,
|
|
7310
7126
|
y: r.y - i.height
|
|
7311
7127
|
};
|
|
7312
7128
|
break;
|
|
7313
7129
|
case "bottom":
|
|
7314
|
-
|
|
7130
|
+
b = {
|
|
7315
7131
|
x: a,
|
|
7316
7132
|
y: r.y + r.height
|
|
7317
7133
|
};
|
|
7318
7134
|
break;
|
|
7319
7135
|
case "right":
|
|
7320
|
-
|
|
7136
|
+
b = {
|
|
7321
7137
|
x: r.x + r.width,
|
|
7322
7138
|
y: n
|
|
7323
7139
|
};
|
|
7324
7140
|
break;
|
|
7325
7141
|
case "left":
|
|
7326
|
-
|
|
7142
|
+
b = {
|
|
7327
7143
|
x: r.x - i.width,
|
|
7328
7144
|
y: n
|
|
7329
7145
|
};
|
|
7330
7146
|
break;
|
|
7331
7147
|
default:
|
|
7332
|
-
|
|
7148
|
+
b = {
|
|
7333
7149
|
x: r.x,
|
|
7334
7150
|
y: r.y
|
|
7335
7151
|
};
|
|
7336
7152
|
}
|
|
7337
|
-
switch (
|
|
7153
|
+
switch (Ze(e)) {
|
|
7338
7154
|
case "start":
|
|
7339
|
-
|
|
7155
|
+
b[l] -= s * (t && u ? -1 : 1);
|
|
7340
7156
|
break;
|
|
7341
7157
|
case "end":
|
|
7342
|
-
|
|
7158
|
+
b[l] += s * (t && u ? -1 : 1);
|
|
7343
7159
|
break;
|
|
7344
7160
|
}
|
|
7345
|
-
return
|
|
7161
|
+
return b;
|
|
7346
7162
|
}
|
|
7347
|
-
const
|
|
7163
|
+
const li = async (o, e, t) => {
|
|
7348
7164
|
const {
|
|
7349
7165
|
placement: r = "bottom",
|
|
7350
7166
|
strategy: i = "absolute",
|
|
7351
7167
|
middleware: a = [],
|
|
7352
7168
|
platform: n
|
|
7353
7169
|
} = t, l = await (n.isRTL == null ? void 0 : n.isRTL(e));
|
|
7354
|
-
if (process.env.NODE_ENV !== "production" && (n == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), a.filter((
|
|
7170
|
+
if (process.env.NODE_ENV !== "production" && (n == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), a.filter((p) => {
|
|
7355
7171
|
let {
|
|
7356
7172
|
name: f
|
|
7357
|
-
} =
|
|
7173
|
+
} = p;
|
|
7358
7174
|
return f === "autoPlacement" || f === "flip";
|
|
7359
7175
|
}).length > 1))
|
|
7360
7176
|
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`", "middleware detected. This will lead to an infinite loop. Ensure only", "one of either has been passed to the `middleware` array."].join(" "));
|
|
7361
|
-
let
|
|
7177
|
+
let c = await n.getElementRects({
|
|
7362
7178
|
reference: o,
|
|
7363
7179
|
floating: e,
|
|
7364
7180
|
strategy: i
|
|
7365
7181
|
}), {
|
|
7366
|
-
x:
|
|
7367
|
-
y:
|
|
7368
|
-
} =
|
|
7369
|
-
for (let
|
|
7182
|
+
x: s,
|
|
7183
|
+
y: g
|
|
7184
|
+
} = vt(c, r, l), u = r, b = {}, d = 0;
|
|
7185
|
+
for (let p = 0; p < a.length; p++) {
|
|
7370
7186
|
const {
|
|
7371
7187
|
name: f,
|
|
7372
7188
|
fn: v
|
|
7373
|
-
} = a[
|
|
7374
|
-
x,
|
|
7375
|
-
y
|
|
7189
|
+
} = a[p], {
|
|
7190
|
+
x: k,
|
|
7191
|
+
y: $,
|
|
7376
7192
|
data: S,
|
|
7377
|
-
reset:
|
|
7193
|
+
reset: _
|
|
7378
7194
|
} = await v({
|
|
7379
|
-
x:
|
|
7380
|
-
y:
|
|
7195
|
+
x: s,
|
|
7196
|
+
y: g,
|
|
7381
7197
|
initialPlacement: r,
|
|
7382
|
-
placement:
|
|
7198
|
+
placement: u,
|
|
7383
7199
|
strategy: i,
|
|
7384
|
-
middlewareData:
|
|
7385
|
-
rects:
|
|
7200
|
+
middlewareData: b,
|
|
7201
|
+
rects: c,
|
|
7386
7202
|
platform: n,
|
|
7387
7203
|
elements: {
|
|
7388
7204
|
reference: o,
|
|
7389
7205
|
floating: e
|
|
7390
7206
|
}
|
|
7391
7207
|
});
|
|
7392
|
-
if (
|
|
7393
|
-
...
|
|
7208
|
+
if (s = k != null ? k : s, g = $ != null ? $ : g, b = {
|
|
7209
|
+
...b,
|
|
7394
7210
|
[f]: {
|
|
7395
|
-
...
|
|
7211
|
+
...b[f],
|
|
7396
7212
|
...S
|
|
7397
7213
|
}
|
|
7398
|
-
}, process.env.NODE_ENV !== "production" &&
|
|
7399
|
-
|
|
7214
|
+
}, process.env.NODE_ENV !== "production" && d > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), _ && d <= 50) {
|
|
7215
|
+
d++, typeof _ == "object" && (_.placement && (u = _.placement), _.rects && (c = _.rects === !0 ? await n.getElementRects({
|
|
7400
7216
|
reference: o,
|
|
7401
7217
|
floating: e,
|
|
7402
7218
|
strategy: i
|
|
7403
|
-
}) :
|
|
7404
|
-
x:
|
|
7405
|
-
y:
|
|
7406
|
-
} =
|
|
7219
|
+
}) : _.rects), {
|
|
7220
|
+
x: s,
|
|
7221
|
+
y: g
|
|
7222
|
+
} = vt(c, u, l)), p = -1;
|
|
7407
7223
|
continue;
|
|
7408
7224
|
}
|
|
7409
7225
|
}
|
|
7410
7226
|
return {
|
|
7411
|
-
x:
|
|
7412
|
-
y:
|
|
7413
|
-
placement:
|
|
7227
|
+
x: s,
|
|
7228
|
+
y: g,
|
|
7229
|
+
placement: u,
|
|
7414
7230
|
strategy: i,
|
|
7415
|
-
middlewareData:
|
|
7231
|
+
middlewareData: b
|
|
7416
7232
|
};
|
|
7417
7233
|
};
|
|
7418
|
-
function
|
|
7234
|
+
function ci(o) {
|
|
7419
7235
|
return {
|
|
7420
7236
|
top: 0,
|
|
7421
7237
|
right: 0,
|
|
@@ -7424,15 +7240,15 @@ function Ci(o) {
|
|
|
7424
7240
|
...o
|
|
7425
7241
|
};
|
|
7426
7242
|
}
|
|
7427
|
-
function
|
|
7428
|
-
return typeof o != "number" ?
|
|
7243
|
+
function Jt(o) {
|
|
7244
|
+
return typeof o != "number" ? ci(o) : {
|
|
7429
7245
|
top: o,
|
|
7430
7246
|
right: o,
|
|
7431
7247
|
bottom: o,
|
|
7432
7248
|
left: o
|
|
7433
7249
|
};
|
|
7434
7250
|
}
|
|
7435
|
-
function
|
|
7251
|
+
function Le(o) {
|
|
7436
7252
|
return {
|
|
7437
7253
|
...o,
|
|
7438
7254
|
top: o.y,
|
|
@@ -7441,7 +7257,7 @@ function Be(o) {
|
|
|
7441
7257
|
bottom: o.y + o.height
|
|
7442
7258
|
};
|
|
7443
7259
|
}
|
|
7444
|
-
async function
|
|
7260
|
+
async function Qt(o, e) {
|
|
7445
7261
|
var t;
|
|
7446
7262
|
e === void 0 && (e = {});
|
|
7447
7263
|
const {
|
|
@@ -7450,39 +7266,39 @@ async function cr(o, e) {
|
|
|
7450
7266
|
platform: a,
|
|
7451
7267
|
rects: n,
|
|
7452
7268
|
elements: l,
|
|
7453
|
-
strategy:
|
|
7269
|
+
strategy: c
|
|
7454
7270
|
} = o, {
|
|
7455
|
-
boundary:
|
|
7456
|
-
rootBoundary:
|
|
7457
|
-
elementContext:
|
|
7458
|
-
altBoundary:
|
|
7459
|
-
padding:
|
|
7460
|
-
} = e,
|
|
7271
|
+
boundary: s = "clippingAncestors",
|
|
7272
|
+
rootBoundary: g = "viewport",
|
|
7273
|
+
elementContext: u = "floating",
|
|
7274
|
+
altBoundary: b = !1,
|
|
7275
|
+
padding: d = 0
|
|
7276
|
+
} = e, p = Jt(d), v = l[b ? u === "floating" ? "reference" : "floating" : u], k = Le(await a.getClippingRect({
|
|
7461
7277
|
element: (t = await (a.isElement == null ? void 0 : a.isElement(v))) == null || t ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
|
|
7462
|
-
boundary:
|
|
7463
|
-
rootBoundary:
|
|
7464
|
-
strategy:
|
|
7465
|
-
})),
|
|
7466
|
-
rect:
|
|
7278
|
+
boundary: s,
|
|
7279
|
+
rootBoundary: g,
|
|
7280
|
+
strategy: c
|
|
7281
|
+
})), $ = Le(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
7282
|
+
rect: u === "floating" ? {
|
|
7467
7283
|
...n.floating,
|
|
7468
7284
|
x: r,
|
|
7469
7285
|
y: i
|
|
7470
7286
|
} : n.reference,
|
|
7471
7287
|
offsetParent: await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)),
|
|
7472
|
-
strategy:
|
|
7473
|
-
}) : n[
|
|
7288
|
+
strategy: c
|
|
7289
|
+
}) : n[u]);
|
|
7474
7290
|
return {
|
|
7475
|
-
top:
|
|
7476
|
-
bottom:
|
|
7477
|
-
left:
|
|
7478
|
-
right:
|
|
7291
|
+
top: k.top - $.top + p.top,
|
|
7292
|
+
bottom: $.bottom - k.bottom + p.bottom,
|
|
7293
|
+
left: k.left - $.left + p.left,
|
|
7294
|
+
right: $.right - k.right + p.right
|
|
7479
7295
|
};
|
|
7480
7296
|
}
|
|
7481
|
-
const
|
|
7482
|
-
function
|
|
7483
|
-
return
|
|
7297
|
+
const si = Math.min, di = Math.max;
|
|
7298
|
+
function Mo(o, e, t) {
|
|
7299
|
+
return di(o, si(e, t));
|
|
7484
7300
|
}
|
|
7485
|
-
const
|
|
7301
|
+
const ui = (o) => ({
|
|
7486
7302
|
name: "arrow",
|
|
7487
7303
|
options: o,
|
|
7488
7304
|
async fn(e) {
|
|
@@ -7494,55 +7310,55 @@ const Ai = (o) => ({
|
|
|
7494
7310
|
y: a,
|
|
7495
7311
|
placement: n,
|
|
7496
7312
|
rects: l,
|
|
7497
|
-
platform:
|
|
7313
|
+
platform: c
|
|
7498
7314
|
} = e;
|
|
7499
7315
|
if (t == null)
|
|
7500
7316
|
return process.env.NODE_ENV !== "production" && console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
|
|
7501
|
-
const
|
|
7317
|
+
const s = Jt(r), g = {
|
|
7502
7318
|
x: i,
|
|
7503
7319
|
y: a
|
|
7504
|
-
},
|
|
7505
|
-
let
|
|
7506
|
-
|
|
7507
|
-
const
|
|
7320
|
+
}, u = ze(n), b = Ze(n), d = Qo(u), p = await c.getDimensions(t), f = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", k = l.reference[d] + l.reference[u] - g[u] - l.floating[d], $ = g[u] - l.reference[u], S = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(t));
|
|
7321
|
+
let _ = S ? u === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
|
|
7322
|
+
_ === 0 && (_ = l.floating[d]);
|
|
7323
|
+
const Q = k / 2 - $ / 2, ee = s[f], ce = _ - p[d] - s[v], F = _ / 2 - p[d] / 2 + Q, P = Mo(ee, F, ce), Se = (b === "start" ? s[f] : s[v]) > 0 && F !== P && l.reference[d] <= l.floating[d] ? F < ee ? ee - F : ce - F : 0;
|
|
7508
7324
|
return {
|
|
7509
|
-
[
|
|
7325
|
+
[u]: g[u] - Se,
|
|
7510
7326
|
data: {
|
|
7511
|
-
[
|
|
7512
|
-
centerOffset:
|
|
7327
|
+
[u]: P,
|
|
7328
|
+
centerOffset: F - P
|
|
7513
7329
|
}
|
|
7514
7330
|
};
|
|
7515
7331
|
}
|
|
7516
|
-
}),
|
|
7332
|
+
}), bi = {
|
|
7517
7333
|
left: "right",
|
|
7518
7334
|
right: "left",
|
|
7519
7335
|
bottom: "top",
|
|
7520
7336
|
top: "bottom"
|
|
7521
7337
|
};
|
|
7522
|
-
function
|
|
7523
|
-
return o.replace(/left|right|bottom|top/g, (e) =>
|
|
7338
|
+
function Ie(o) {
|
|
7339
|
+
return o.replace(/left|right|bottom|top/g, (e) => bi[e]);
|
|
7524
7340
|
}
|
|
7525
|
-
function
|
|
7341
|
+
function gi(o, e, t) {
|
|
7526
7342
|
t === void 0 && (t = !1);
|
|
7527
|
-
const r =
|
|
7343
|
+
const r = Ze(o), i = ze(o), a = Qo(i);
|
|
7528
7344
|
let n = i === "x" ? r === (t ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
7529
|
-
return e.reference[a] > e.floating[a] && (n =
|
|
7345
|
+
return e.reference[a] > e.floating[a] && (n = Ie(n)), {
|
|
7530
7346
|
main: n,
|
|
7531
|
-
cross:
|
|
7347
|
+
cross: Ie(n)
|
|
7532
7348
|
};
|
|
7533
7349
|
}
|
|
7534
|
-
const
|
|
7350
|
+
const hi = {
|
|
7535
7351
|
start: "end",
|
|
7536
7352
|
end: "start"
|
|
7537
7353
|
};
|
|
7538
|
-
function
|
|
7539
|
-
return o.replace(/start|end/g, (e) =>
|
|
7354
|
+
function xt(o) {
|
|
7355
|
+
return o.replace(/start|end/g, (e) => hi[e]);
|
|
7540
7356
|
}
|
|
7541
|
-
function
|
|
7542
|
-
const e =
|
|
7543
|
-
return [
|
|
7357
|
+
function pi(o) {
|
|
7358
|
+
const e = Ie(o);
|
|
7359
|
+
return [xt(o), e, xt(e)];
|
|
7544
7360
|
}
|
|
7545
|
-
const
|
|
7361
|
+
const mi = function(o) {
|
|
7546
7362
|
return o === void 0 && (o = {}), {
|
|
7547
7363
|
name: "flip",
|
|
7548
7364
|
options: o,
|
|
@@ -7554,55 +7370,55 @@ const Ni = function(o) {
|
|
|
7554
7370
|
rects: a,
|
|
7555
7371
|
initialPlacement: n,
|
|
7556
7372
|
platform: l,
|
|
7557
|
-
elements:
|
|
7373
|
+
elements: c
|
|
7558
7374
|
} = e, {
|
|
7559
|
-
mainAxis:
|
|
7560
|
-
crossAxis:
|
|
7561
|
-
fallbackPlacements:
|
|
7562
|
-
fallbackStrategy:
|
|
7563
|
-
flipAlignment:
|
|
7564
|
-
...
|
|
7565
|
-
} = o, f =
|
|
7566
|
-
let
|
|
7567
|
-
if (
|
|
7375
|
+
mainAxis: s = !0,
|
|
7376
|
+
crossAxis: g = !0,
|
|
7377
|
+
fallbackPlacements: u,
|
|
7378
|
+
fallbackStrategy: b = "bestFit",
|
|
7379
|
+
flipAlignment: d = !0,
|
|
7380
|
+
...p
|
|
7381
|
+
} = o, f = $e(r), k = u || (f === n || !d ? [Ie(n)] : pi(n)), $ = [n, ...k], S = await Qt(e, p), _ = [];
|
|
7382
|
+
let Q = ((t = i.flip) == null ? void 0 : t.overflows) || [];
|
|
7383
|
+
if (s && _.push(S[f]), g) {
|
|
7568
7384
|
const {
|
|
7569
|
-
main:
|
|
7570
|
-
cross:
|
|
7571
|
-
} =
|
|
7572
|
-
|
|
7385
|
+
main: P,
|
|
7386
|
+
cross: se
|
|
7387
|
+
} = gi(r, a, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
|
|
7388
|
+
_.push(S[P], S[se]);
|
|
7573
7389
|
}
|
|
7574
|
-
if (
|
|
7390
|
+
if (Q = [...Q, {
|
|
7575
7391
|
placement: r,
|
|
7576
|
-
overflows:
|
|
7577
|
-
}], !
|
|
7578
|
-
var
|
|
7579
|
-
const
|
|
7580
|
-
if (
|
|
7392
|
+
overflows: _
|
|
7393
|
+
}], !_.every((P) => P <= 0)) {
|
|
7394
|
+
var ee, ce;
|
|
7395
|
+
const P = ((ee = (ce = i.flip) == null ? void 0 : ce.index) != null ? ee : 0) + 1, se = $[P];
|
|
7396
|
+
if (se)
|
|
7581
7397
|
return {
|
|
7582
7398
|
data: {
|
|
7583
|
-
index:
|
|
7584
|
-
overflows:
|
|
7399
|
+
index: P,
|
|
7400
|
+
overflows: Q
|
|
7585
7401
|
},
|
|
7586
7402
|
reset: {
|
|
7587
|
-
placement:
|
|
7403
|
+
placement: se
|
|
7588
7404
|
}
|
|
7589
7405
|
};
|
|
7590
|
-
let
|
|
7591
|
-
switch (
|
|
7406
|
+
let de = "bottom";
|
|
7407
|
+
switch (b) {
|
|
7592
7408
|
case "bestFit": {
|
|
7593
|
-
var
|
|
7594
|
-
const
|
|
7595
|
-
|
|
7409
|
+
var F;
|
|
7410
|
+
const Se = (F = Q.map((Ce) => [Ce, Ce.overflows.filter((ue) => ue > 0).reduce((ue, sr) => ue + sr, 0)]).sort((Ce, ue) => Ce[1] - ue[1])[0]) == null ? void 0 : F[0].placement;
|
|
7411
|
+
Se && (de = Se);
|
|
7596
7412
|
break;
|
|
7597
7413
|
}
|
|
7598
7414
|
case "initialPlacement":
|
|
7599
|
-
|
|
7415
|
+
de = n;
|
|
7600
7416
|
break;
|
|
7601
7417
|
}
|
|
7602
|
-
if (r !==
|
|
7418
|
+
if (r !== de)
|
|
7603
7419
|
return {
|
|
7604
7420
|
reset: {
|
|
7605
|
-
placement:
|
|
7421
|
+
placement: de
|
|
7606
7422
|
}
|
|
7607
7423
|
};
|
|
7608
7424
|
}
|
|
@@ -7610,35 +7426,35 @@ const Ni = function(o) {
|
|
|
7610
7426
|
}
|
|
7611
7427
|
};
|
|
7612
7428
|
};
|
|
7613
|
-
async function
|
|
7429
|
+
async function fi(o, e) {
|
|
7614
7430
|
const {
|
|
7615
7431
|
placement: t,
|
|
7616
7432
|
platform: r,
|
|
7617
7433
|
elements: i
|
|
7618
|
-
} = o, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), n =
|
|
7434
|
+
} = o, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), n = $e(t), l = Ze(t), c = ze(t) === "x", s = ["left", "top"].includes(n) ? -1 : 1, g = a && c ? -1 : 1, u = typeof e == "function" ? e(o) : e;
|
|
7619
7435
|
let {
|
|
7620
|
-
mainAxis:
|
|
7621
|
-
crossAxis:
|
|
7622
|
-
alignmentAxis:
|
|
7623
|
-
} = typeof
|
|
7624
|
-
mainAxis:
|
|
7436
|
+
mainAxis: b,
|
|
7437
|
+
crossAxis: d,
|
|
7438
|
+
alignmentAxis: p
|
|
7439
|
+
} = typeof u == "number" ? {
|
|
7440
|
+
mainAxis: u,
|
|
7625
7441
|
crossAxis: 0,
|
|
7626
7442
|
alignmentAxis: null
|
|
7627
7443
|
} : {
|
|
7628
7444
|
mainAxis: 0,
|
|
7629
7445
|
crossAxis: 0,
|
|
7630
7446
|
alignmentAxis: null,
|
|
7631
|
-
...
|
|
7447
|
+
...u
|
|
7632
7448
|
};
|
|
7633
|
-
return l && typeof
|
|
7634
|
-
x:
|
|
7635
|
-
y:
|
|
7449
|
+
return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), c ? {
|
|
7450
|
+
x: d * g,
|
|
7451
|
+
y: b * s
|
|
7636
7452
|
} : {
|
|
7637
|
-
x:
|
|
7638
|
-
y:
|
|
7453
|
+
x: b * s,
|
|
7454
|
+
y: d * g
|
|
7639
7455
|
};
|
|
7640
7456
|
}
|
|
7641
|
-
const
|
|
7457
|
+
const vi = function(o) {
|
|
7642
7458
|
return o === void 0 && (o = 0), {
|
|
7643
7459
|
name: "offset",
|
|
7644
7460
|
options: o,
|
|
@@ -7646,7 +7462,7 @@ const Ui = function(o) {
|
|
|
7646
7462
|
const {
|
|
7647
7463
|
x: t,
|
|
7648
7464
|
y: r
|
|
7649
|
-
} = e, i = await
|
|
7465
|
+
} = e, i = await fi(e, o);
|
|
7650
7466
|
return {
|
|
7651
7467
|
x: t + i.x,
|
|
7652
7468
|
y: r + i.y,
|
|
@@ -7655,10 +7471,10 @@ const Ui = function(o) {
|
|
|
7655
7471
|
}
|
|
7656
7472
|
};
|
|
7657
7473
|
};
|
|
7658
|
-
function
|
|
7474
|
+
function xi(o) {
|
|
7659
7475
|
return o === "x" ? "y" : "x";
|
|
7660
7476
|
}
|
|
7661
|
-
const
|
|
7477
|
+
const ki = function(o) {
|
|
7662
7478
|
return o === void 0 && (o = {}), {
|
|
7663
7479
|
name: "shift",
|
|
7664
7480
|
options: o,
|
|
@@ -7673,33 +7489,33 @@ const Fi = function(o) {
|
|
|
7673
7489
|
limiter: l = {
|
|
7674
7490
|
fn: (v) => {
|
|
7675
7491
|
let {
|
|
7676
|
-
x,
|
|
7677
|
-
y
|
|
7492
|
+
x: k,
|
|
7493
|
+
y: $
|
|
7678
7494
|
} = v;
|
|
7679
7495
|
return {
|
|
7680
|
-
x,
|
|
7681
|
-
y
|
|
7496
|
+
x: k,
|
|
7497
|
+
y: $
|
|
7682
7498
|
};
|
|
7683
7499
|
}
|
|
7684
7500
|
},
|
|
7685
|
-
...
|
|
7686
|
-
} = o,
|
|
7501
|
+
...c
|
|
7502
|
+
} = o, s = {
|
|
7687
7503
|
x: t,
|
|
7688
7504
|
y: r
|
|
7689
|
-
},
|
|
7690
|
-
let
|
|
7505
|
+
}, g = await Qt(e, c), u = ze($e(i)), b = xi(u);
|
|
7506
|
+
let d = s[u], p = s[b];
|
|
7691
7507
|
if (a) {
|
|
7692
|
-
const v =
|
|
7693
|
-
|
|
7508
|
+
const v = u === "y" ? "top" : "left", k = u === "y" ? "bottom" : "right", $ = d + g[v], S = d - g[k];
|
|
7509
|
+
d = Mo($, d, S);
|
|
7694
7510
|
}
|
|
7695
7511
|
if (n) {
|
|
7696
|
-
const v =
|
|
7697
|
-
|
|
7512
|
+
const v = b === "y" ? "top" : "left", k = b === "y" ? "bottom" : "right", $ = p + g[v], S = p - g[k];
|
|
7513
|
+
p = Mo($, p, S);
|
|
7698
7514
|
}
|
|
7699
7515
|
const f = l.fn({
|
|
7700
7516
|
...e,
|
|
7701
|
-
[
|
|
7702
|
-
[
|
|
7517
|
+
[u]: d,
|
|
7518
|
+
[b]: p
|
|
7703
7519
|
});
|
|
7704
7520
|
return {
|
|
7705
7521
|
...f,
|
|
@@ -7711,85 +7527,85 @@ const Fi = function(o) {
|
|
|
7711
7527
|
}
|
|
7712
7528
|
};
|
|
7713
7529
|
};
|
|
7714
|
-
function
|
|
7530
|
+
function er(o) {
|
|
7715
7531
|
return o && o.document && o.location && o.alert && o.setInterval;
|
|
7716
7532
|
}
|
|
7717
|
-
function
|
|
7533
|
+
function V(o) {
|
|
7718
7534
|
if (o == null)
|
|
7719
7535
|
return window;
|
|
7720
|
-
if (!
|
|
7536
|
+
if (!er(o)) {
|
|
7721
7537
|
const e = o.ownerDocument;
|
|
7722
7538
|
return e && e.defaultView || window;
|
|
7723
7539
|
}
|
|
7724
7540
|
return o;
|
|
7725
7541
|
}
|
|
7726
|
-
function
|
|
7727
|
-
return
|
|
7542
|
+
function _e(o) {
|
|
7543
|
+
return V(o).getComputedStyle(o);
|
|
7728
7544
|
}
|
|
7729
|
-
function
|
|
7730
|
-
return
|
|
7545
|
+
function B(o) {
|
|
7546
|
+
return er(o) ? "" : o ? (o.nodeName || "").toLowerCase() : "";
|
|
7731
7547
|
}
|
|
7732
|
-
function
|
|
7548
|
+
function or() {
|
|
7733
7549
|
const o = navigator.userAgentData;
|
|
7734
7550
|
return o != null && o.brands ? o.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
|
|
7735
7551
|
}
|
|
7736
|
-
function
|
|
7737
|
-
return o instanceof
|
|
7552
|
+
function T(o) {
|
|
7553
|
+
return o instanceof V(o).HTMLElement;
|
|
7738
7554
|
}
|
|
7739
|
-
function
|
|
7740
|
-
return o instanceof
|
|
7555
|
+
function ae(o) {
|
|
7556
|
+
return o instanceof V(o).Element;
|
|
7741
7557
|
}
|
|
7742
|
-
function
|
|
7743
|
-
return o instanceof
|
|
7558
|
+
function wi(o) {
|
|
7559
|
+
return o instanceof V(o).Node;
|
|
7744
7560
|
}
|
|
7745
|
-
function
|
|
7561
|
+
function et(o) {
|
|
7746
7562
|
if (typeof ShadowRoot > "u")
|
|
7747
7563
|
return !1;
|
|
7748
|
-
const e =
|
|
7564
|
+
const e = V(o).ShadowRoot;
|
|
7749
7565
|
return o instanceof e || o instanceof ShadowRoot;
|
|
7750
7566
|
}
|
|
7751
|
-
function
|
|
7567
|
+
function Xe(o) {
|
|
7752
7568
|
const {
|
|
7753
7569
|
overflow: e,
|
|
7754
7570
|
overflowX: t,
|
|
7755
7571
|
overflowY: r
|
|
7756
|
-
} =
|
|
7572
|
+
} = _e(o);
|
|
7757
7573
|
return /auto|scroll|overlay|hidden/.test(e + r + t);
|
|
7758
7574
|
}
|
|
7759
|
-
function
|
|
7760
|
-
return ["table", "td", "th"].includes(
|
|
7575
|
+
function yi(o) {
|
|
7576
|
+
return ["table", "td", "th"].includes(B(o));
|
|
7761
7577
|
}
|
|
7762
|
-
function
|
|
7763
|
-
const e = /firefox/i.test(
|
|
7578
|
+
function tr(o) {
|
|
7579
|
+
const e = /firefox/i.test(or()), t = _e(o);
|
|
7764
7580
|
return t.transform !== "none" || t.perspective !== "none" || t.contain === "paint" || ["transform", "perspective"].includes(t.willChange) || e && t.willChange === "filter" || e && (t.filter ? t.filter !== "none" : !1);
|
|
7765
7581
|
}
|
|
7766
|
-
function
|
|
7767
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
7582
|
+
function rr() {
|
|
7583
|
+
return !/^((?!chrome|android).)*safari/i.test(or());
|
|
7768
7584
|
}
|
|
7769
|
-
const
|
|
7770
|
-
function
|
|
7585
|
+
const kt = Math.min, he = Math.max, Be = Math.round;
|
|
7586
|
+
function J(o, e, t) {
|
|
7771
7587
|
var r, i, a, n;
|
|
7772
7588
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
7773
7589
|
const l = o.getBoundingClientRect();
|
|
7774
|
-
let
|
|
7775
|
-
e &&
|
|
7776
|
-
const
|
|
7590
|
+
let c = 1, s = 1;
|
|
7591
|
+
e && T(o) && (c = o.offsetWidth > 0 && Be(l.width) / o.offsetWidth || 1, s = o.offsetHeight > 0 && Be(l.height) / o.offsetHeight || 1);
|
|
7592
|
+
const g = ae(o) ? V(o) : window, u = !rr() && t, b = (l.left + (u && (r = (i = g.visualViewport) == null ? void 0 : i.offsetLeft) != null ? r : 0)) / c, d = (l.top + (u && (a = (n = g.visualViewport) == null ? void 0 : n.offsetTop) != null ? a : 0)) / s, p = l.width / c, f = l.height / s;
|
|
7777
7593
|
return {
|
|
7778
|
-
width:
|
|
7594
|
+
width: p,
|
|
7779
7595
|
height: f,
|
|
7780
|
-
top:
|
|
7781
|
-
right:
|
|
7782
|
-
bottom:
|
|
7783
|
-
left:
|
|
7784
|
-
x:
|
|
7785
|
-
y:
|
|
7596
|
+
top: d,
|
|
7597
|
+
right: b + p,
|
|
7598
|
+
bottom: d + f,
|
|
7599
|
+
left: b,
|
|
7600
|
+
x: b,
|
|
7601
|
+
y: d
|
|
7786
7602
|
};
|
|
7787
7603
|
}
|
|
7788
|
-
function
|
|
7789
|
-
return ((
|
|
7604
|
+
function K(o) {
|
|
7605
|
+
return ((wi(o) ? o.ownerDocument : o.document) || window.document).documentElement;
|
|
7790
7606
|
}
|
|
7791
|
-
function
|
|
7792
|
-
return
|
|
7607
|
+
function Ge(o) {
|
|
7608
|
+
return ae(o) ? {
|
|
7793
7609
|
scrollLeft: o.scrollLeft,
|
|
7794
7610
|
scrollTop: o.scrollTop
|
|
7795
7611
|
} : {
|
|
@@ -7797,17 +7613,17 @@ function Qe(o) {
|
|
|
7797
7613
|
scrollTop: o.pageYOffset
|
|
7798
7614
|
};
|
|
7799
7615
|
}
|
|
7800
|
-
function
|
|
7801
|
-
return
|
|
7616
|
+
function ir(o) {
|
|
7617
|
+
return J(K(o)).left + Ge(o).scrollLeft;
|
|
7802
7618
|
}
|
|
7803
|
-
function
|
|
7804
|
-
const e =
|
|
7805
|
-
return
|
|
7619
|
+
function $i(o) {
|
|
7620
|
+
const e = J(o);
|
|
7621
|
+
return Be(e.width) !== o.offsetWidth || Be(e.height) !== o.offsetHeight;
|
|
7806
7622
|
}
|
|
7807
|
-
function
|
|
7808
|
-
const r =
|
|
7623
|
+
function zi(o, e, t) {
|
|
7624
|
+
const r = T(e), i = K(e), a = J(
|
|
7809
7625
|
o,
|
|
7810
|
-
r &&
|
|
7626
|
+
r && $i(e),
|
|
7811
7627
|
t === "fixed"
|
|
7812
7628
|
);
|
|
7813
7629
|
let n = {
|
|
@@ -7819,11 +7635,11 @@ function Vi(o, e, t) {
|
|
|
7819
7635
|
y: 0
|
|
7820
7636
|
};
|
|
7821
7637
|
if (r || !r && t !== "fixed")
|
|
7822
|
-
if ((
|
|
7823
|
-
const
|
|
7824
|
-
l.x =
|
|
7638
|
+
if ((B(e) !== "body" || Xe(i)) && (n = Ge(e)), T(e)) {
|
|
7639
|
+
const c = J(e, !0);
|
|
7640
|
+
l.x = c.x + e.clientLeft, l.y = c.y + e.clientTop;
|
|
7825
7641
|
} else
|
|
7826
|
-
i && (l.x =
|
|
7642
|
+
i && (l.x = ir(i));
|
|
7827
7643
|
return {
|
|
7828
7644
|
x: a.left + n.scrollLeft - l.x,
|
|
7829
7645
|
y: a.top + n.scrollTop - l.y,
|
|
@@ -7831,47 +7647,47 @@ function Vi(o, e, t) {
|
|
|
7831
7647
|
height: a.height
|
|
7832
7648
|
};
|
|
7833
7649
|
}
|
|
7834
|
-
function
|
|
7835
|
-
return
|
|
7650
|
+
function nr(o) {
|
|
7651
|
+
return B(o) === "html" ? o : o.assignedSlot || o.parentNode || (et(o) ? o.host : null) || K(o);
|
|
7836
7652
|
}
|
|
7837
|
-
function
|
|
7838
|
-
return !
|
|
7653
|
+
function wt(o) {
|
|
7654
|
+
return !T(o) || getComputedStyle(o).position === "fixed" ? null : o.offsetParent;
|
|
7839
7655
|
}
|
|
7840
|
-
function
|
|
7841
|
-
let e =
|
|
7842
|
-
for (
|
|
7843
|
-
if (
|
|
7656
|
+
function _i(o) {
|
|
7657
|
+
let e = nr(o);
|
|
7658
|
+
for (et(e) && (e = e.host); T(e) && !["html", "body"].includes(B(e)); ) {
|
|
7659
|
+
if (tr(e))
|
|
7844
7660
|
return e;
|
|
7845
7661
|
e = e.parentNode;
|
|
7846
7662
|
}
|
|
7847
7663
|
return null;
|
|
7848
7664
|
}
|
|
7849
|
-
function
|
|
7850
|
-
const e =
|
|
7851
|
-
let t =
|
|
7852
|
-
for (; t &&
|
|
7853
|
-
t =
|
|
7854
|
-
return t && (
|
|
7665
|
+
function Po(o) {
|
|
7666
|
+
const e = V(o);
|
|
7667
|
+
let t = wt(o);
|
|
7668
|
+
for (; t && yi(t) && getComputedStyle(t).position === "static"; )
|
|
7669
|
+
t = wt(t);
|
|
7670
|
+
return t && (B(t) === "html" || B(t) === "body" && getComputedStyle(t).position === "static" && !tr(t)) ? e : t || _i(o) || e;
|
|
7855
7671
|
}
|
|
7856
|
-
function
|
|
7857
|
-
if (
|
|
7672
|
+
function yt(o) {
|
|
7673
|
+
if (T(o))
|
|
7858
7674
|
return {
|
|
7859
7675
|
width: o.offsetWidth,
|
|
7860
7676
|
height: o.offsetHeight
|
|
7861
7677
|
};
|
|
7862
|
-
const e =
|
|
7678
|
+
const e = J(o);
|
|
7863
7679
|
return {
|
|
7864
7680
|
width: e.width,
|
|
7865
7681
|
height: e.height
|
|
7866
7682
|
};
|
|
7867
7683
|
}
|
|
7868
|
-
function
|
|
7684
|
+
function Si(o) {
|
|
7869
7685
|
let {
|
|
7870
7686
|
rect: e,
|
|
7871
7687
|
offsetParent: t,
|
|
7872
7688
|
strategy: r
|
|
7873
7689
|
} = o;
|
|
7874
|
-
const i =
|
|
7690
|
+
const i = T(t), a = K(t);
|
|
7875
7691
|
if (t === a)
|
|
7876
7692
|
return e;
|
|
7877
7693
|
let n = {
|
|
@@ -7882,9 +7698,9 @@ function Hi(o) {
|
|
|
7882
7698
|
x: 0,
|
|
7883
7699
|
y: 0
|
|
7884
7700
|
};
|
|
7885
|
-
if ((i || !i && r !== "fixed") && ((
|
|
7886
|
-
const
|
|
7887
|
-
l.x =
|
|
7701
|
+
if ((i || !i && r !== "fixed") && ((B(t) !== "body" || Xe(a)) && (n = Ge(t)), T(t))) {
|
|
7702
|
+
const c = J(t, !0);
|
|
7703
|
+
l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
|
|
7888
7704
|
}
|
|
7889
7705
|
return {
|
|
7890
7706
|
...e,
|
|
@@ -7892,48 +7708,48 @@ function Hi(o) {
|
|
|
7892
7708
|
y: e.y - n.scrollTop + l.y
|
|
7893
7709
|
};
|
|
7894
7710
|
}
|
|
7895
|
-
function
|
|
7896
|
-
const t =
|
|
7897
|
-
let a = r.clientWidth, n = r.clientHeight, l = 0,
|
|
7711
|
+
function Ci(o, e) {
|
|
7712
|
+
const t = V(o), r = K(o), i = t.visualViewport;
|
|
7713
|
+
let a = r.clientWidth, n = r.clientHeight, l = 0, c = 0;
|
|
7898
7714
|
if (i) {
|
|
7899
7715
|
a = i.width, n = i.height;
|
|
7900
|
-
const
|
|
7901
|
-
(
|
|
7716
|
+
const s = rr();
|
|
7717
|
+
(s || !s && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
7902
7718
|
}
|
|
7903
7719
|
return {
|
|
7904
7720
|
width: a,
|
|
7905
7721
|
height: n,
|
|
7906
7722
|
x: l,
|
|
7907
|
-
y:
|
|
7723
|
+
y: c
|
|
7908
7724
|
};
|
|
7909
7725
|
}
|
|
7910
|
-
function
|
|
7726
|
+
function Ri(o) {
|
|
7911
7727
|
var e;
|
|
7912
|
-
const t =
|
|
7913
|
-
let l = -r.scrollLeft +
|
|
7914
|
-
const
|
|
7915
|
-
return
|
|
7728
|
+
const t = K(o), r = Ge(o), i = (e = o.ownerDocument) == null ? void 0 : e.body, a = he(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), n = he(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
|
|
7729
|
+
let l = -r.scrollLeft + ir(o);
|
|
7730
|
+
const c = -r.scrollTop;
|
|
7731
|
+
return _e(i || t).direction === "rtl" && (l += he(t.clientWidth, i ? i.clientWidth : 0) - a), {
|
|
7916
7732
|
width: a,
|
|
7917
7733
|
height: n,
|
|
7918
7734
|
x: l,
|
|
7919
|
-
y:
|
|
7735
|
+
y: c
|
|
7920
7736
|
};
|
|
7921
7737
|
}
|
|
7922
|
-
function
|
|
7923
|
-
const e =
|
|
7924
|
-
return ["html", "body", "#document"].includes(
|
|
7738
|
+
function ar(o) {
|
|
7739
|
+
const e = nr(o);
|
|
7740
|
+
return ["html", "body", "#document"].includes(B(e)) ? o.ownerDocument.body : T(e) && Xe(e) ? e : ar(e);
|
|
7925
7741
|
}
|
|
7926
|
-
function
|
|
7742
|
+
function lr(o, e) {
|
|
7927
7743
|
var t;
|
|
7928
7744
|
e === void 0 && (e = []);
|
|
7929
|
-
const r =
|
|
7930
|
-
return i ? l : l.concat(
|
|
7745
|
+
const r = ar(o), i = r === ((t = o.ownerDocument) == null ? void 0 : t.body), a = V(r), n = i ? [a].concat(a.visualViewport || [], Xe(r) ? r : []) : r, l = e.concat(n);
|
|
7746
|
+
return i ? l : l.concat(lr(n));
|
|
7931
7747
|
}
|
|
7932
|
-
function
|
|
7748
|
+
function Ei(o, e) {
|
|
7933
7749
|
const t = e.getRootNode == null ? void 0 : e.getRootNode();
|
|
7934
7750
|
if (o.contains(e))
|
|
7935
7751
|
return !0;
|
|
7936
|
-
if (t &&
|
|
7752
|
+
if (t && et(t)) {
|
|
7937
7753
|
let r = e;
|
|
7938
7754
|
do {
|
|
7939
7755
|
if (r && o === r)
|
|
@@ -7943,8 +7759,8 @@ function Yi(o, e) {
|
|
|
7943
7759
|
}
|
|
7944
7760
|
return !1;
|
|
7945
7761
|
}
|
|
7946
|
-
function
|
|
7947
|
-
const t =
|
|
7762
|
+
function Ai(o, e) {
|
|
7763
|
+
const t = J(o, !1, e === "fixed"), r = t.top + o.clientTop, i = t.left + o.clientLeft;
|
|
7948
7764
|
return {
|
|
7949
7765
|
top: r,
|
|
7950
7766
|
left: i,
|
|
@@ -7956,38 +7772,38 @@ function Zi(o, e) {
|
|
|
7956
7772
|
height: o.clientHeight
|
|
7957
7773
|
};
|
|
7958
7774
|
}
|
|
7959
|
-
function
|
|
7960
|
-
return e === "viewport" ?
|
|
7775
|
+
function $t(o, e, t) {
|
|
7776
|
+
return e === "viewport" ? Le(Ci(o, t)) : ae(e) ? Ai(e, t) : Le(Ri(K(o)));
|
|
7961
7777
|
}
|
|
7962
|
-
function
|
|
7963
|
-
const e =
|
|
7964
|
-
return
|
|
7778
|
+
function qi(o) {
|
|
7779
|
+
const e = lr(o), r = ["absolute", "fixed"].includes(_e(o).position) && T(o) ? Po(o) : o;
|
|
7780
|
+
return ae(r) ? e.filter((i) => ae(i) && Ei(i, r) && B(i) !== "body") : [];
|
|
7965
7781
|
}
|
|
7966
|
-
function
|
|
7782
|
+
function Mi(o) {
|
|
7967
7783
|
let {
|
|
7968
7784
|
element: e,
|
|
7969
7785
|
boundary: t,
|
|
7970
7786
|
rootBoundary: r,
|
|
7971
7787
|
strategy: i
|
|
7972
7788
|
} = o;
|
|
7973
|
-
const n = [...t === "clippingAncestors" ?
|
|
7974
|
-
const
|
|
7975
|
-
return
|
|
7976
|
-
},
|
|
7789
|
+
const n = [...t === "clippingAncestors" ? qi(e) : [].concat(t), r], l = n[0], c = n.reduce((s, g) => {
|
|
7790
|
+
const u = $t(e, g, i);
|
|
7791
|
+
return s.top = he(u.top, s.top), s.right = kt(u.right, s.right), s.bottom = kt(u.bottom, s.bottom), s.left = he(u.left, s.left), s;
|
|
7792
|
+
}, $t(e, l, i));
|
|
7977
7793
|
return {
|
|
7978
|
-
width:
|
|
7979
|
-
height:
|
|
7980
|
-
x:
|
|
7981
|
-
y:
|
|
7794
|
+
width: c.right - c.left,
|
|
7795
|
+
height: c.bottom - c.top,
|
|
7796
|
+
x: c.left,
|
|
7797
|
+
y: c.top
|
|
7982
7798
|
};
|
|
7983
7799
|
}
|
|
7984
|
-
const
|
|
7985
|
-
getClippingRect:
|
|
7986
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
7987
|
-
isElement:
|
|
7988
|
-
getDimensions:
|
|
7989
|
-
getOffsetParent:
|
|
7990
|
-
getDocumentElement:
|
|
7800
|
+
const Pi = {
|
|
7801
|
+
getClippingRect: Mi,
|
|
7802
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Si,
|
|
7803
|
+
isElement: ae,
|
|
7804
|
+
getDimensions: yt,
|
|
7805
|
+
getOffsetParent: Po,
|
|
7806
|
+
getDocumentElement: K,
|
|
7991
7807
|
getElementRects: (o) => {
|
|
7992
7808
|
let {
|
|
7993
7809
|
reference: e,
|
|
@@ -7995,55 +7811,55 @@ const Ji = {
|
|
|
7995
7811
|
strategy: r
|
|
7996
7812
|
} = o;
|
|
7997
7813
|
return {
|
|
7998
|
-
reference:
|
|
7814
|
+
reference: zi(e, Po(t), r),
|
|
7999
7815
|
floating: {
|
|
8000
|
-
...
|
|
7816
|
+
...yt(t),
|
|
8001
7817
|
x: 0,
|
|
8002
7818
|
y: 0
|
|
8003
7819
|
}
|
|
8004
7820
|
};
|
|
8005
7821
|
},
|
|
8006
7822
|
getClientRects: (o) => Array.from(o.getClientRects()),
|
|
8007
|
-
isRTL: (o) =>
|
|
8008
|
-
},
|
|
8009
|
-
platform:
|
|
7823
|
+
isRTL: (o) => _e(o).direction === "rtl"
|
|
7824
|
+
}, ji = (o, e, t) => li(o, e, {
|
|
7825
|
+
platform: Pi,
|
|
8010
7826
|
...t
|
|
8011
|
-
}),
|
|
8012
|
-
[
|
|
8013
|
-
[
|
|
8014
|
-
[
|
|
8015
|
-
[
|
|
8016
|
-
},
|
|
8017
|
-
[
|
|
8018
|
-
[
|
|
8019
|
-
[
|
|
8020
|
-
[
|
|
8021
|
-
},
|
|
8022
|
-
[
|
|
8023
|
-
[
|
|
8024
|
-
[
|
|
8025
|
-
[
|
|
8026
|
-
},
|
|
8027
|
-
function
|
|
7827
|
+
}), ke = "top", we = "bottom", Ve = "left", De = "right", wo = {
|
|
7828
|
+
[ke]: we,
|
|
7829
|
+
[we]: ke,
|
|
7830
|
+
[Ve]: De,
|
|
7831
|
+
[De]: Ve
|
|
7832
|
+
}, Ni = {
|
|
7833
|
+
[ke]: "\u2191",
|
|
7834
|
+
[we]: "\u2193",
|
|
7835
|
+
[Ve]: "\u2190",
|
|
7836
|
+
[De]: "\u2192"
|
|
7837
|
+
}, Ui = {
|
|
7838
|
+
[Ve]: -45,
|
|
7839
|
+
[ke]: 45,
|
|
7840
|
+
[De]: 135,
|
|
7841
|
+
[we]: -135
|
|
7842
|
+
}, zt = "calc(50% - 7px)", Ti = (o) => [ke, we].includes(o);
|
|
7843
|
+
function Fi({ actualDirection: o, directionName: e, arrowEl: t }) {
|
|
8028
7844
|
if (!t)
|
|
8029
7845
|
return;
|
|
8030
7846
|
o = e;
|
|
8031
|
-
const r =
|
|
8032
|
-
t.style.left = r ?
|
|
7847
|
+
const r = Ti(e);
|
|
7848
|
+
t.style.left = r ? zt : "", t.style.top = r ? "" : zt;
|
|
8033
7849
|
}
|
|
8034
|
-
async function
|
|
7850
|
+
async function Oi(o) {
|
|
8035
7851
|
var i, a;
|
|
8036
7852
|
if (!o.isShowing)
|
|
8037
7853
|
return;
|
|
8038
7854
|
if (await ((i = o == null ? void 0 : o.waitForDOM) == null ? void 0 : i.call(o)), o.isCallout)
|
|
8039
|
-
return
|
|
8040
|
-
const e = await
|
|
7855
|
+
return Fi(o);
|
|
7856
|
+
const e = await ji(o.targetEl, o.attentionEl, {
|
|
8041
7857
|
placement: o.directionName,
|
|
8042
7858
|
middleware: [
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
7859
|
+
mi(),
|
|
7860
|
+
vi(8),
|
|
7861
|
+
ki({ padding: 16 }),
|
|
7862
|
+
ui({ element: o.noArrow ? void 0 : o.arrowEl })
|
|
8047
7863
|
]
|
|
8048
7864
|
});
|
|
8049
7865
|
o.actualDirection = e.placement, Object.assign(((a = o.attentionEl) == null ? void 0 : a.style) || {}, {
|
|
@@ -8054,16 +7870,16 @@ async function nn(o) {
|
|
|
8054
7870
|
let { x: t, y: r } = e.middlewareData.arrow;
|
|
8055
7871
|
o.arrowEl && (o.arrowEl.style.left = t ? t + "px" : "", o.arrowEl.style.top = r ? r + "px" : "");
|
|
8056
7872
|
}
|
|
8057
|
-
class
|
|
7873
|
+
class jo extends Ye(y) {
|
|
8058
7874
|
constructor() {
|
|
8059
7875
|
super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
|
|
8060
7876
|
}
|
|
8061
7877
|
connectedCallback() {
|
|
8062
|
-
if (super.connectedCallback(), !this.placement || !Object.keys(
|
|
7878
|
+
if (super.connectedCallback(), !this.placement || !Object.keys(wo).includes(this.placement))
|
|
8063
7879
|
throw new Error(
|
|
8064
7880
|
`Invalid "placement" attribute. Set its value to one of the following:
|
|
8065
7881
|
${JSON.stringify(
|
|
8066
|
-
Object.keys(
|
|
7882
|
+
Object.keys(wo)
|
|
8067
7883
|
)}`
|
|
8068
7884
|
);
|
|
8069
7885
|
setTimeout(() => this.requestUpdate(), 0);
|
|
@@ -8075,7 +7891,7 @@ ${JSON.stringify(
|
|
|
8075
7891
|
this.placement = e;
|
|
8076
7892
|
}
|
|
8077
7893
|
get _arrowDirection() {
|
|
8078
|
-
return
|
|
7894
|
+
return wo[this.placement];
|
|
8079
7895
|
}
|
|
8080
7896
|
updated() {
|
|
8081
7897
|
this.callout || this._attentionEl.style.setProperty("--attention-visibility", this.show ? "" : "hidden"), this.tooltip || this._attentionEl.style.setProperty("--attention-display", this.show ? "block" : "none"), this.attentionState = {
|
|
@@ -8087,11 +7903,11 @@ ${JSON.stringify(
|
|
|
8087
7903
|
attentionEl: this._attentionEl,
|
|
8088
7904
|
targetEl: this._targetEl,
|
|
8089
7905
|
noArrow: this.noArrow
|
|
8090
|
-
},
|
|
7906
|
+
}, Oi(this.attentionState);
|
|
8091
7907
|
}
|
|
8092
7908
|
setAriaLabels() {
|
|
8093
7909
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
8094
|
-
const e = this._messageEl.id || (this._messageEl.id =
|
|
7910
|
+
const e = this._messageEl.id || (this._messageEl.id = Kr());
|
|
8095
7911
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", e);
|
|
8096
7912
|
}
|
|
8097
7913
|
}
|
|
@@ -8108,39 +7924,39 @@ ${JSON.stringify(
|
|
|
8108
7924
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
8109
7925
|
}
|
|
8110
7926
|
get _wrapperClasses() {
|
|
8111
|
-
return
|
|
8112
|
-
[
|
|
8113
|
-
[
|
|
8114
|
-
[
|
|
8115
|
-
[
|
|
7927
|
+
return gt({
|
|
7928
|
+
[H.base]: !0,
|
|
7929
|
+
[H.tooltip]: this.tooltip,
|
|
7930
|
+
[H.callout]: this.callout,
|
|
7931
|
+
[H.popover]: this.popover
|
|
8116
7932
|
});
|
|
8117
7933
|
}
|
|
8118
7934
|
get _arrowClasses() {
|
|
8119
|
-
return
|
|
8120
|
-
[
|
|
7935
|
+
return gt({
|
|
7936
|
+
[H.arrowBase]: !0,
|
|
8121
7937
|
["-top-8"]: this._arrowDirection === "top",
|
|
8122
7938
|
["-right-8"]: this._arrowDirection === "right",
|
|
8123
7939
|
["-bottom-8"]: this._arrowDirection === "bottom",
|
|
8124
7940
|
["-left-8"]: this._arrowDirection === "left",
|
|
8125
|
-
[
|
|
8126
|
-
[
|
|
8127
|
-
[
|
|
7941
|
+
[H.arrowTooltip]: this.tooltip,
|
|
7942
|
+
[H.arrowCallout]: this.callout,
|
|
7943
|
+
[H.arrowPopover]: this.popover
|
|
8128
7944
|
});
|
|
8129
7945
|
}
|
|
8130
7946
|
get _arrowHtml() {
|
|
8131
|
-
return this.noArrow ? "" :
|
|
7947
|
+
return this.noArrow ? "" : h`<div
|
|
8132
7948
|
id="arrow"
|
|
8133
7949
|
role="img"
|
|
8134
|
-
aria-label=${
|
|
7950
|
+
aria-label=${Ni[this._arrowDirection]}
|
|
8135
7951
|
class="${this._arrowClasses}"
|
|
8136
|
-
style="transform:rotate(${
|
|
7952
|
+
style="transform:rotate(${Ui[this._arrowDirection]}deg);
|
|
8137
7953
|
margin-${this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
8138
7954
|
/>`;
|
|
8139
7955
|
}
|
|
8140
7956
|
render() {
|
|
8141
|
-
return
|
|
8142
|
-
<div class=${
|
|
8143
|
-
${this.placement === "right" || this.placement === "bottom" ?
|
|
7957
|
+
return h`
|
|
7958
|
+
<div class=${z(this.className ? this.className : void 0)}>
|
|
7959
|
+
${this.placement === "right" || this.placement === "bottom" ? h`
|
|
8144
7960
|
<slot name="target"></slot>
|
|
8145
7961
|
<div id="attention" class="${this._wrapperClasses}">
|
|
8146
7962
|
<div>
|
|
@@ -8148,7 +7964,7 @@ ${JSON.stringify(
|
|
|
8148
7964
|
<slot name="message"></slot>
|
|
8149
7965
|
</div>
|
|
8150
7966
|
</div>
|
|
8151
|
-
` :
|
|
7967
|
+
` : h`
|
|
8152
7968
|
<div id="attention" class="${this._wrapperClasses}">
|
|
8153
7969
|
<div>
|
|
8154
7970
|
<slot name="message"></slot>
|
|
@@ -8161,15 +7977,15 @@ ${JSON.stringify(
|
|
|
8161
7977
|
`;
|
|
8162
7978
|
}
|
|
8163
7979
|
}
|
|
8164
|
-
|
|
7980
|
+
x(jo, "properties", {
|
|
8165
7981
|
show: { type: Boolean, reflect: !0 },
|
|
8166
7982
|
placement: { type: String },
|
|
8167
7983
|
tooltip: { type: Boolean, reflect: !0 },
|
|
8168
7984
|
callout: { type: Boolean, reflect: !0 },
|
|
8169
7985
|
popover: { type: Boolean, reflect: !0 },
|
|
8170
7986
|
noArrow: { type: Boolean, reflect: !0 }
|
|
8171
|
-
}),
|
|
8172
|
-
|
|
7987
|
+
}), x(jo, "styles", [
|
|
7988
|
+
C`
|
|
8173
7989
|
/* /* layer: preflights */
|
|
8174
7990
|
|
|
8175
7991
|
/*
|
|
@@ -8755,19 +8571,19 @@ video {
|
|
|
8755
8571
|
}
|
|
8756
8572
|
`
|
|
8757
8573
|
]);
|
|
8758
|
-
customElements.get("w-attention") || customElements.define("w-attention",
|
|
8759
|
-
class
|
|
8574
|
+
customElements.get("w-attention") || customElements.define("w-attention", jo);
|
|
8575
|
+
class No extends y {
|
|
8760
8576
|
constructor() {
|
|
8761
8577
|
super(), this.type = "text";
|
|
8762
8578
|
}
|
|
8763
8579
|
get _outerWrapperStyles() {
|
|
8764
|
-
return
|
|
8580
|
+
return M({
|
|
8765
8581
|
"has-suffix": this._hasSuffix,
|
|
8766
8582
|
"has-prefix": this._hasPrefix
|
|
8767
8583
|
});
|
|
8768
8584
|
}
|
|
8769
8585
|
get _innerWrapperStyles() {
|
|
8770
|
-
return
|
|
8586
|
+
return M({
|
|
8771
8587
|
"input mb-0": !0,
|
|
8772
8588
|
"input--is-invalid": this.invalid,
|
|
8773
8589
|
"input--is-disabled": this.disabled,
|
|
@@ -8776,7 +8592,7 @@ class Fo extends $ {
|
|
|
8776
8592
|
}
|
|
8777
8593
|
get _label() {
|
|
8778
8594
|
if (this.label)
|
|
8779
|
-
return
|
|
8595
|
+
return h`<label for="${this._id}">${this.label}</label>`;
|
|
8780
8596
|
}
|
|
8781
8597
|
get _helpId() {
|
|
8782
8598
|
if (this.helpText)
|
|
@@ -8806,7 +8622,7 @@ class Fo extends $ {
|
|
|
8806
8622
|
this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
|
|
8807
8623
|
}
|
|
8808
8624
|
render() {
|
|
8809
|
-
return
|
|
8625
|
+
return h`
|
|
8810
8626
|
${this._fabricStylesheet}
|
|
8811
8627
|
<div class="${this._outerWrapperStyles}">
|
|
8812
8628
|
<div class="${this._innerWrapperStyles}">
|
|
@@ -8815,18 +8631,18 @@ class Fo extends $ {
|
|
|
8815
8631
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
8816
8632
|
<input
|
|
8817
8633
|
type="${this.type}"
|
|
8818
|
-
min="${
|
|
8819
|
-
max="${
|
|
8820
|
-
size="${
|
|
8821
|
-
minlength="${
|
|
8822
|
-
maxlength="${
|
|
8823
|
-
name="${
|
|
8824
|
-
pattern="${
|
|
8825
|
-
placeholder="${
|
|
8826
|
-
value="${
|
|
8827
|
-
aria-describedby="${
|
|
8828
|
-
aria-errormessage="${
|
|
8829
|
-
aria-invalid="${
|
|
8634
|
+
min="${z(this.min)}"
|
|
8635
|
+
max="${z(this.max)}"
|
|
8636
|
+
size="${z(this.size)}"
|
|
8637
|
+
minlength="${z(this.minLength)}"
|
|
8638
|
+
maxlength="${z(this.maxLength)}"
|
|
8639
|
+
name="${z(this.name)}"
|
|
8640
|
+
pattern="${z(this.pattern)}"
|
|
8641
|
+
placeholder="${z(this.placeholder)}"
|
|
8642
|
+
value="${z(this.value)}"
|
|
8643
|
+
aria-describedby="${z(this._helpId)}"
|
|
8644
|
+
aria-errormessage="${z(this._error)}"
|
|
8645
|
+
aria-invalid="${z(this.invalid)}"
|
|
8830
8646
|
id="${this._id}"
|
|
8831
8647
|
?disabled="${this.disabled}"
|
|
8832
8648
|
?readonly="${this.readOnly}"
|
|
@@ -8837,13 +8653,13 @@ class Fo extends $ {
|
|
|
8837
8653
|
/>
|
|
8838
8654
|
<slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
|
|
8839
8655
|
</div>
|
|
8840
|
-
${this.helpText &&
|
|
8656
|
+
${this.helpText && h`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
|
|
8841
8657
|
</div>
|
|
8842
8658
|
</div>
|
|
8843
8659
|
`;
|
|
8844
8660
|
}
|
|
8845
8661
|
}
|
|
8846
|
-
|
|
8662
|
+
x(No, "properties", {
|
|
8847
8663
|
disabled: { type: Boolean },
|
|
8848
8664
|
invalid: { type: Boolean },
|
|
8849
8665
|
id: { type: String },
|
|
@@ -8863,8 +8679,8 @@ k(Fo, "properties", {
|
|
|
8863
8679
|
value: { type: String },
|
|
8864
8680
|
_hasPrefix: { state: !0 },
|
|
8865
8681
|
_hasSuffix: { state: !0 }
|
|
8866
|
-
}),
|
|
8867
|
-
|
|
8682
|
+
}), x(No, "styles", [
|
|
8683
|
+
C`
|
|
8868
8684
|
/* /* layer: preflights */
|
|
8869
8685
|
|
|
8870
8686
|
/*
|
|
@@ -9441,14 +9257,14 @@ video {
|
|
|
9441
9257
|
}
|
|
9442
9258
|
`
|
|
9443
9259
|
]);
|
|
9444
|
-
customElements.get("w-textfield") || customElements.define("w-textfield",
|
|
9445
|
-
class
|
|
9260
|
+
customElements.get("w-textfield") || customElements.define("w-textfield", No);
|
|
9261
|
+
class _t extends y {
|
|
9446
9262
|
render() {
|
|
9447
|
-
return
|
|
9263
|
+
return h`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
|
|
9448
9264
|
}
|
|
9449
9265
|
}
|
|
9450
|
-
customElements.get("f-icon-chevron-down16",
|
|
9451
|
-
class
|
|
9266
|
+
customElements.get("f-icon-chevron-down16", _t) || customElements.define("f-icon-chevron-down16", _t);
|
|
9267
|
+
class Uo extends Ye(y) {
|
|
9452
9268
|
constructor() {
|
|
9453
9269
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
9454
9270
|
}
|
|
@@ -9456,39 +9272,39 @@ class Lo extends Xe($) {
|
|
|
9456
9272
|
this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
|
|
9457
9273
|
}
|
|
9458
9274
|
get _expandableSlot() {
|
|
9459
|
-
return
|
|
9460
|
-
class=${
|
|
9275
|
+
return h`<div
|
|
9276
|
+
class=${M({
|
|
9461
9277
|
[this.contentClass || ""]: !0,
|
|
9462
|
-
[
|
|
9278
|
+
[oe.box + (this._hasTitle ? " pt-0" : "")]: this.box
|
|
9463
9279
|
})}
|
|
9464
9280
|
>
|
|
9465
9281
|
<slot></slot>
|
|
9466
9282
|
</div>`;
|
|
9467
9283
|
}
|
|
9468
9284
|
render() {
|
|
9469
|
-
return
|
|
9470
|
-
class=${
|
|
9285
|
+
return h` <div
|
|
9286
|
+
class=${M({
|
|
9471
9287
|
"bg-aqua-50": this.info,
|
|
9472
|
-
["py-0 px-0 " +
|
|
9473
|
-
[
|
|
9288
|
+
["py-0 px-0 " + oe.box]: this.box,
|
|
9289
|
+
[oe.bleed]: this.bleed
|
|
9474
9290
|
})}
|
|
9475
9291
|
>
|
|
9476
|
-
${this._hasTitle ?
|
|
9292
|
+
${this._hasTitle ? h`<w-unstyled-heading level=${this.headingLevel}>
|
|
9477
9293
|
<button
|
|
9478
9294
|
type="button"
|
|
9479
9295
|
aria-expanded="${this.expanded}"
|
|
9480
|
-
class=${
|
|
9296
|
+
class=${M({
|
|
9481
9297
|
[this.buttonClass || ""]: !0,
|
|
9482
|
-
[
|
|
9483
|
-
["w-full text-left relative " +
|
|
9298
|
+
[Br + " hover:underline focus:underline"]: !0,
|
|
9299
|
+
["w-full text-left relative " + oe.box]: this.box,
|
|
9484
9300
|
"hover:text-aqua-700 active:text-aqua-800": this.info
|
|
9485
9301
|
})}
|
|
9486
9302
|
@click=${() => this.expanded = !this.expanded}
|
|
9487
9303
|
>
|
|
9488
9304
|
<div class="flex justify-between align-center">
|
|
9489
|
-
${this.title ?
|
|
9490
|
-
${this.noChevron ? "" :
|
|
9491
|
-
class=${
|
|
9305
|
+
${this.title ? h`<span class="h4">${this.title}</span>` : h`<slot name="title"></slot>`}
|
|
9306
|
+
${this.noChevron ? "" : h`<div
|
|
9307
|
+
class=${M({
|
|
9492
9308
|
"self-center transform transition-transform": !0,
|
|
9493
9309
|
"-rotate-180": this.expanded,
|
|
9494
9310
|
"relative left-8": !this.box,
|
|
@@ -9500,21 +9316,21 @@ class Lo extends Xe($) {
|
|
|
9500
9316
|
</div>
|
|
9501
9317
|
</button>
|
|
9502
9318
|
</w-unstyled-heading>` : ""}
|
|
9503
|
-
${this.animated ?
|
|
9319
|
+
${this.animated ? h`<w-expand-transition ?show=${this.expanded}>
|
|
9504
9320
|
${this._expandableSlot}
|
|
9505
|
-
</w-expand-transition>` :
|
|
9506
|
-
class=${
|
|
9321
|
+
</w-expand-transition>` : h`<div
|
|
9322
|
+
class=${M({
|
|
9507
9323
|
"overflow-hidden": !0,
|
|
9508
9324
|
"h-0 invisible": !this.expanded
|
|
9509
9325
|
})}
|
|
9510
|
-
aria-hidden=${
|
|
9326
|
+
aria-hidden=${z(this.expanded ? void 0 : !0)}
|
|
9511
9327
|
>
|
|
9512
9328
|
${this._expandableSlot}
|
|
9513
9329
|
</div>`}
|
|
9514
9330
|
</div>`;
|
|
9515
9331
|
}
|
|
9516
9332
|
}
|
|
9517
|
-
|
|
9333
|
+
x(Uo, "properties", {
|
|
9518
9334
|
expanded: { type: Boolean, reflect: !0 },
|
|
9519
9335
|
title: { type: String },
|
|
9520
9336
|
info: { type: Boolean },
|
|
@@ -9526,8 +9342,8 @@ k(Lo, "properties", {
|
|
|
9526
9342
|
animated: { type: Boolean },
|
|
9527
9343
|
headingLevel: { type: Number },
|
|
9528
9344
|
_hasTitle: { type: Boolean, state: !0 }
|
|
9529
|
-
}),
|
|
9530
|
-
|
|
9345
|
+
}), x(Uo, "styles", [
|
|
9346
|
+
C`
|
|
9531
9347
|
/* /* layer: preflights */
|
|
9532
9348
|
|
|
9533
9349
|
/*
|
|
@@ -10119,8 +9935,8 @@ video {
|
|
|
10119
9935
|
}
|
|
10120
9936
|
`
|
|
10121
9937
|
]);
|
|
10122
|
-
customElements.get("w-expandable") || customElements.define("w-expandable",
|
|
10123
|
-
const
|
|
9938
|
+
customElements.get("w-expandable") || customElements.define("w-expandable", Uo);
|
|
9939
|
+
const Li = h`
|
|
10124
9940
|
<svg
|
|
10125
9941
|
role="img"
|
|
10126
9942
|
aria-label="X"
|
|
@@ -10137,7 +9953,7 @@ const an = p`
|
|
|
10137
9953
|
clipRule="evenodd"
|
|
10138
9954
|
/>
|
|
10139
9955
|
</svg>
|
|
10140
|
-
`,
|
|
9956
|
+
`, Ii = h`
|
|
10141
9957
|
<svg
|
|
10142
9958
|
role="img"
|
|
10143
9959
|
aria-label="Forstørrelsesglass"
|
|
@@ -10163,33 +9979,33 @@ const an = p`
|
|
|
10163
9979
|
</defs>
|
|
10164
9980
|
</svg>
|
|
10165
9981
|
`;
|
|
10166
|
-
class
|
|
9982
|
+
class To extends y {
|
|
10167
9983
|
get _classBase() {
|
|
10168
|
-
return this.slot === "suffix" ?
|
|
9984
|
+
return this.slot === "suffix" ? Vr : Dr;
|
|
10169
9985
|
}
|
|
10170
9986
|
get _classes() {
|
|
10171
|
-
return
|
|
9987
|
+
return M({
|
|
10172
9988
|
[this._classBase.wrapper]: !0,
|
|
10173
9989
|
[this._classBase.wrapperWithLabel]: this.label,
|
|
10174
9990
|
[this._classBase.wrapperWithIcon]: !this.label
|
|
10175
9991
|
});
|
|
10176
9992
|
}
|
|
10177
9993
|
get _searchButton() {
|
|
10178
|
-
return
|
|
10179
|
-
<button aria-label="${
|
|
10180
|
-
${
|
|
9994
|
+
return h`
|
|
9995
|
+
<button aria-label="${z(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
9996
|
+
${Ii}
|
|
10181
9997
|
</button>
|
|
10182
9998
|
`;
|
|
10183
9999
|
}
|
|
10184
10000
|
get _clearButton() {
|
|
10185
|
-
return
|
|
10186
|
-
<button aria-label="${
|
|
10187
|
-
${
|
|
10001
|
+
return h`
|
|
10002
|
+
<button aria-label="${z(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
10003
|
+
${Li}
|
|
10188
10004
|
</button>
|
|
10189
10005
|
`;
|
|
10190
10006
|
}
|
|
10191
10007
|
get _text() {
|
|
10192
|
-
return
|
|
10008
|
+
return h`
|
|
10193
10009
|
<div class="${this._classes}">
|
|
10194
10010
|
<span class="${this._classBase.label}">${this.label}</span>
|
|
10195
10011
|
</div>
|
|
@@ -10204,10 +10020,10 @@ class Io extends $ {
|
|
|
10204
10020
|
return this._clearButton;
|
|
10205
10021
|
}
|
|
10206
10022
|
render() {
|
|
10207
|
-
return
|
|
10023
|
+
return h`${this._markup}`;
|
|
10208
10024
|
}
|
|
10209
10025
|
}
|
|
10210
|
-
|
|
10026
|
+
x(To, "styles", C`
|
|
10211
10027
|
/* /* layer: preflights */
|
|
10212
10028
|
|
|
10213
10029
|
/*
|
|
@@ -10772,17 +10588,17 @@ video {
|
|
|
10772
10588
|
.pointer-events-none{pointer-events:none;}
|
|
10773
10589
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
10774
10590
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
10775
|
-
`),
|
|
10591
|
+
`), x(To, "properties", {
|
|
10776
10592
|
ariaLabel: { type: String, attribute: "aria-label" },
|
|
10777
10593
|
clear: { type: Boolean },
|
|
10778
10594
|
search: { type: Boolean },
|
|
10779
10595
|
label: { type: String }
|
|
10780
10596
|
});
|
|
10781
|
-
customElements.get("w-affix") || customElements.define("w-affix",
|
|
10782
|
-
const
|
|
10597
|
+
customElements.get("w-affix") || customElements.define("w-affix", To);
|
|
10598
|
+
const cr = C`
|
|
10783
10599
|
@import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
|
|
10784
10600
|
`;
|
|
10785
|
-
class
|
|
10601
|
+
class Fo extends y {
|
|
10786
10602
|
constructor() {
|
|
10787
10603
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
10788
10604
|
}
|
|
@@ -10795,27 +10611,27 @@ class Bo extends $ {
|
|
|
10795
10611
|
this._mounted = !0;
|
|
10796
10612
|
return;
|
|
10797
10613
|
}
|
|
10798
|
-
this.show &&
|
|
10614
|
+
this.show && Zt(this._wrapper), !this.show && !this._removeElement && Xt(this._wrapper, () => this._removeElement = !0);
|
|
10799
10615
|
}
|
|
10800
10616
|
}
|
|
10801
10617
|
get _wrapper() {
|
|
10802
10618
|
return this != null ? this : null;
|
|
10803
10619
|
}
|
|
10804
10620
|
render() {
|
|
10805
|
-
return
|
|
10806
|
-
${this._removeElement ?
|
|
10621
|
+
return h`<div aria-hidden=${z(this.show ? void 0 : "true")}>
|
|
10622
|
+
${this._removeElement ? h`` : h`<slot></slot>`}
|
|
10807
10623
|
</div>`;
|
|
10808
10624
|
}
|
|
10809
10625
|
}
|
|
10810
|
-
|
|
10626
|
+
x(Fo, "properties", {
|
|
10811
10627
|
show: {
|
|
10812
10628
|
type: Boolean,
|
|
10813
10629
|
reflect: !0
|
|
10814
10630
|
},
|
|
10815
10631
|
_removeElement: { type: Boolean, state: !0 }
|
|
10816
|
-
}),
|
|
10817
|
-
|
|
10818
|
-
|
|
10632
|
+
}), x(Fo, "styles", [
|
|
10633
|
+
cr,
|
|
10634
|
+
C`
|
|
10819
10635
|
/* /* layer: preflights */
|
|
10820
10636
|
|
|
10821
10637
|
/*
|
|
@@ -11386,8 +11202,8 @@ video {
|
|
|
11386
11202
|
}
|
|
11387
11203
|
`
|
|
11388
11204
|
]);
|
|
11389
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
11390
|
-
class
|
|
11205
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Fo);
|
|
11206
|
+
class Oo extends y {
|
|
11391
11207
|
get _markup() {
|
|
11392
11208
|
return `<h${this.level}
|
|
11393
11209
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -11397,12 +11213,12 @@ class Vo extends $ {
|
|
|
11397
11213
|
`;
|
|
11398
11214
|
}
|
|
11399
11215
|
render() {
|
|
11400
|
-
return this.level ?
|
|
11216
|
+
return this.level ? Vt(this._markup) : h`<slot></slot>`;
|
|
11401
11217
|
}
|
|
11402
11218
|
}
|
|
11403
|
-
|
|
11219
|
+
x(Oo, "properties", {
|
|
11404
11220
|
level: { type: Number }
|
|
11405
|
-
}),
|
|
11221
|
+
}), x(Oo, "styles", [cr, C`
|
|
11406
11222
|
/* /* layer: preflights */
|
|
11407
11223
|
|
|
11408
11224
|
/*
|
|
@@ -11968,12 +11784,24 @@ video {
|
|
|
11968
11784
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
11969
11785
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
11970
11786
|
`]);
|
|
11971
|
-
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading",
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11787
|
+
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Oo);
|
|
11788
|
+
export {
|
|
11789
|
+
Fo as ExpandTransition,
|
|
11790
|
+
Oo as UnstyledHeading,
|
|
11791
|
+
To as WarpAffix,
|
|
11792
|
+
_o as WarpAlert,
|
|
11793
|
+
jo as WarpAttention,
|
|
11794
|
+
Ro as WarpBox,
|
|
11795
|
+
Ht as WarpBreadcrumbs,
|
|
11796
|
+
qo as WarpBroadcast,
|
|
11797
|
+
Me as WarpButton,
|
|
11798
|
+
So as WarpCard,
|
|
11799
|
+
Uo as WarpExpandable,
|
|
11800
|
+
Co as WarpSelect,
|
|
11801
|
+
No as WarpTextField,
|
|
11802
|
+
Eo as WarpToast,
|
|
11803
|
+
Ao as WarpToastContainer,
|
|
11804
|
+
Di as removeToast,
|
|
11805
|
+
Vi as toast,
|
|
11806
|
+
Hi as updateToast
|
|
11807
|
+
};
|