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