@ucalgary-design-system/all-components 1.2.3 → 1.3.0
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/CHANGELOG.md +23 -0
- package/README.md +1 -0
- package/bundle/index.css +1 -1
- package/bundle/index.js +2446 -2038
- package/index.js +1264 -856
- package/package.json +12 -11
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BaseElement as d, injectGlobalTokens as
|
|
2
|
-
import { unsafeCSS as
|
|
3
|
-
import { classMap as
|
|
1
|
+
import { BaseElement as d, injectGlobalTokens as v } from "@ucalgary-design-system/core";
|
|
2
|
+
import { unsafeCSS as u, html as h, css as Le, LitElement as Ne, nothing as p } from "lit";
|
|
3
|
+
import { classMap as je } from "lit/directives/class-map.js";
|
|
4
4
|
import "@ucalgary-design-system/icon";
|
|
5
|
-
import { ifDefined as
|
|
5
|
+
import { ifDefined as fe } from "lit/directives/if-defined.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2017 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const Ao = (o) => (t, e) => {
|
|
12
12
|
e !== void 0 ? e.addInitializer(() => {
|
|
13
13
|
customElements.define(o, t);
|
|
14
14
|
}) : customElements.define(o, t);
|
|
@@ -18,18 +18,18 @@ const po = (o) => (t, e) => {
|
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
22
|
-
let
|
|
21
|
+
const Yt = globalThis, Ie = Yt.ShadowRoot && (Yt.ShadyCSS === void 0 || Yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, so = Symbol(), Or = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
let Ro = class {
|
|
23
23
|
constructor(t, e, r) {
|
|
24
|
-
if (this._$cssResult$ = !0, r !==
|
|
24
|
+
if (this._$cssResult$ = !0, r !== so) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
25
25
|
this.cssText = t, this.t = e;
|
|
26
26
|
}
|
|
27
27
|
get styleSheet() {
|
|
28
28
|
let t = this.o;
|
|
29
29
|
const e = this.t;
|
|
30
|
-
if (
|
|
30
|
+
if (Ie && t === void 0) {
|
|
31
31
|
const r = e !== void 0 && e.length === 1;
|
|
32
|
-
r && (t =
|
|
32
|
+
r && (t = Or.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Or.set(e, t));
|
|
33
33
|
}
|
|
34
34
|
return t;
|
|
35
35
|
}
|
|
@@ -37,26 +37,26 @@ let uo = class {
|
|
|
37
37
|
return this.cssText;
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
40
|
+
const Mo = (o) => new Ro(typeof o == "string" ? o : o + "", void 0, so), zo = (o, t) => {
|
|
41
|
+
if (Ie) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
42
42
|
else for (const e of t) {
|
|
43
|
-
const r = document.createElement("style"), s =
|
|
43
|
+
const r = document.createElement("style"), s = Yt.litNonce;
|
|
44
44
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, Ur = Ie ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
47
47
|
let e = "";
|
|
48
48
|
for (const r of t.cssRules) e += r.cssText;
|
|
49
|
-
return
|
|
49
|
+
return Mo(e);
|
|
50
50
|
})(o) : o;
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
const { is:
|
|
56
|
+
const { is: jo, defineProperty: To, getOwnPropertyDescriptor: qo, getOwnPropertyNames: Do, getOwnPropertySymbols: Lo, getPrototypeOf: No } = Object, L = globalThis, Cr = L.trustedTypes, Io = Cr ? Cr.emptyScript : "", kr = L.reactiveElementPolyfillSupport, St = (o, t) => o, ve = { toAttribute(o, t) {
|
|
57
57
|
switch (t) {
|
|
58
58
|
case Boolean:
|
|
59
|
-
o = o ?
|
|
59
|
+
o = o ? Io : null;
|
|
60
60
|
break;
|
|
61
61
|
case Object:
|
|
62
62
|
case Array:
|
|
@@ -81,23 +81,23 @@ const { is: $o, defineProperty: yo, getOwnPropertyDescriptor: mo, getOwnProperty
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
return e;
|
|
84
|
-
} },
|
|
84
|
+
} }, Be = (o, t) => !jo(o, t), Ar = { attribute: !0, type: String, converter: ve, reflect: !1, useDefault: !1, hasChanged: Be };
|
|
85
85
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), L.litPropertyMetadata ?? (L.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
86
|
-
let
|
|
86
|
+
let nt = class extends HTMLElement {
|
|
87
87
|
static addInitializer(t) {
|
|
88
88
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
89
89
|
}
|
|
90
90
|
static get observedAttributes() {
|
|
91
91
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
92
92
|
}
|
|
93
|
-
static createProperty(t, e =
|
|
93
|
+
static createProperty(t, e = Ar) {
|
|
94
94
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
95
95
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
96
|
-
s !== void 0 &&
|
|
96
|
+
s !== void 0 && To(this.prototype, t, s);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
static getPropertyDescriptor(t, e, r) {
|
|
100
|
-
const { get: s, set: n } =
|
|
100
|
+
const { get: s, set: n } = qo(this.prototype, t) ?? { get() {
|
|
101
101
|
return this[e];
|
|
102
102
|
}, set(i) {
|
|
103
103
|
this[e] = i;
|
|
@@ -108,17 +108,17 @@ let it = class extends HTMLElement {
|
|
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
|
109
109
|
}
|
|
110
110
|
static getPropertyOptions(t) {
|
|
111
|
-
return this.elementProperties.get(t) ??
|
|
111
|
+
return this.elementProperties.get(t) ?? Ar;
|
|
112
112
|
}
|
|
113
113
|
static _$Ei() {
|
|
114
|
-
if (this.hasOwnProperty(
|
|
115
|
-
const t =
|
|
114
|
+
if (this.hasOwnProperty(St("elementProperties"))) return;
|
|
115
|
+
const t = No(this);
|
|
116
116
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
117
117
|
}
|
|
118
118
|
static finalize() {
|
|
119
|
-
if (this.hasOwnProperty(
|
|
120
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
121
|
-
const e = this.properties, r = [...
|
|
119
|
+
if (this.hasOwnProperty(St("finalized"))) return;
|
|
120
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(St("properties"))) {
|
|
121
|
+
const e = this.properties, r = [...Do(e), ...Lo(e)];
|
|
122
122
|
for (const s of r) this.createProperty(s, e[s]);
|
|
123
123
|
}
|
|
124
124
|
const t = this[Symbol.metadata];
|
|
@@ -137,8 +137,8 @@ let it = class extends HTMLElement {
|
|
|
137
137
|
const e = [];
|
|
138
138
|
if (Array.isArray(t)) {
|
|
139
139
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
140
|
-
for (const s of r) e.unshift(
|
|
141
|
-
} else t !== void 0 && e.push(
|
|
140
|
+
for (const s of r) e.unshift(Ur(s));
|
|
141
|
+
} else t !== void 0 && e.push(Ur(t));
|
|
142
142
|
return e;
|
|
143
143
|
}
|
|
144
144
|
static _$Eu(t, e) {
|
|
@@ -167,7 +167,7 @@ let it = class extends HTMLElement {
|
|
|
167
167
|
}
|
|
168
168
|
createRenderRoot() {
|
|
169
169
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
170
|
-
return
|
|
170
|
+
return zo(t, this.constructor.elementStyles), t;
|
|
171
171
|
}
|
|
172
172
|
connectedCallback() {
|
|
173
173
|
var t;
|
|
@@ -192,7 +192,7 @@ let it = class extends HTMLElement {
|
|
|
192
192
|
var r;
|
|
193
193
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
194
194
|
if (n !== void 0 && s.reflect === !0) {
|
|
195
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
195
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : ve).toAttribute(e, s.type);
|
|
196
196
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ let it = class extends HTMLElement {
|
|
|
200
200
|
var r, s;
|
|
201
201
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
202
202
|
if (i !== void 0 && this._$Em !== i) {
|
|
203
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
203
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : ve;
|
|
204
204
|
this._$Em = i;
|
|
205
205
|
const c = l.fromAttribute(e, a.type);
|
|
206
206
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -210,7 +210,7 @@ let it = class extends HTMLElement {
|
|
|
210
210
|
var s;
|
|
211
211
|
if (t !== void 0) {
|
|
212
212
|
const n = this.constructor, i = this[t];
|
|
213
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
213
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Be)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
214
214
|
this.C(t, e, r);
|
|
215
215
|
}
|
|
216
216
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -286,13 +286,13 @@ let it = class extends HTMLElement {
|
|
|
286
286
|
firstUpdated(t) {
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
|
-
|
|
289
|
+
nt.elementStyles = [], nt.shadowRootOptions = { mode: "open" }, nt[St("elementProperties")] = /* @__PURE__ */ new Map(), nt[St("finalized")] = /* @__PURE__ */ new Map(), kr == null || kr({ ReactiveElement: nt }), (L.reactiveElementVersions ?? (L.reactiveElementVersions = [])).push("2.1.1");
|
|
290
290
|
/**
|
|
291
291
|
* @license
|
|
292
292
|
* Copyright 2017 Google LLC
|
|
293
293
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
294
294
|
*/
|
|
295
|
-
const
|
|
295
|
+
const Bo = { attribute: !0, type: String, converter: ve, reflect: !1, hasChanged: Be }, Vo = (o = Bo, t, e) => {
|
|
296
296
|
const { kind: r, metadata: s } = e;
|
|
297
297
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
298
298
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -313,19 +313,19 @@ const So = { attribute: !0, type: String, converter: ce, reflect: !1, hasChanged
|
|
|
313
313
|
}
|
|
314
314
|
throw Error("Unsupported decorator location: " + r);
|
|
315
315
|
};
|
|
316
|
-
function
|
|
317
|
-
return (t, e) => typeof e == "object" ?
|
|
316
|
+
function oo(o) {
|
|
317
|
+
return (t, e) => typeof e == "object" ? Vo(o, t, e) : ((r, s, n) => {
|
|
318
318
|
const i = s.hasOwnProperty(n);
|
|
319
319
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
320
320
|
})(o, t, e);
|
|
321
321
|
}
|
|
322
|
-
const
|
|
323
|
-
var
|
|
324
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
322
|
+
const Ko = ":host{display:block;max-width:1170px;width:100%}.accordion-button{display:flex;justify-content:space-between;align-items:center;font-weight:var(--ucds-font-weight-semibold);height:var(--ucds-form-element-height);width:100%;gap:8px;border:var(--ucds-shape-border-width) solid var(--ucds-color-palette-gray-400);border-radius:var(--ucds-shape-border-radius);padding:0 16px;background-color:transparent}.accordion-button:hover,.accordion-button:active{border-color:var(--ucds-color-action-secondary-hover)}.accordion-button:active{border-width:3px;padding:0 15px}.accordion-button:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.accordion-button .accordion-button-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.accordion-button ucds-icon{transition:transform .5s ease}.accordion-button.open ucds-icon{transform:rotateX(180deg)}.accordion-content-wrapper{display:grid;grid-template-rows:0fr;overflow:hidden;padding:0 18px;transition:all .5s ease;text-align:left}.accordion-content-wrapper .accordion-content{display:flex;flex-direction:column;gap:16px;min-height:0;transition:all .5s ease;visibility:hidden}.accordion-content-wrapper .accordion-content ::slotted(*){padding:0!important;margin:0!important}.accordion-content-wrapper .accordion-content ::slotted(.ucds-accordion-override-spacing){margin:revert!important;padding:revert!important}.accordion-content-wrapper.open{grid-template-rows:1fr;padding:12px 18px}.accordion-content-wrapper.open .accordion-content{visibility:visible}";
|
|
323
|
+
var Jo = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, Ve = (o, t, e, r) => {
|
|
324
|
+
for (var s = r > 1 ? void 0 : r ? Ho(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
325
325
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
326
|
-
return r && s &&
|
|
326
|
+
return r && s && Jo(t, e, s), s;
|
|
327
327
|
};
|
|
328
|
-
let
|
|
328
|
+
let Nt = class extends d {
|
|
329
329
|
constructor() {
|
|
330
330
|
super(...arguments), this.label = "", this.open = !1;
|
|
331
331
|
}
|
|
@@ -337,11 +337,11 @@ let qt = class extends d {
|
|
|
337
337
|
open: this.open
|
|
338
338
|
};
|
|
339
339
|
return h`
|
|
340
|
-
<button class="accordion-button ${
|
|
340
|
+
<button class="accordion-button ${je(t)}" @click=${this._handleClick} aria-expanded=${this.open}>
|
|
341
341
|
<span class="accordion-button-title">${this.label}</span>
|
|
342
342
|
<ucds-icon name="chevronDown" color="action-rest" size="24"></ucds-icon>
|
|
343
343
|
</button>
|
|
344
|
-
<div class="accordion-content-wrapper ${
|
|
344
|
+
<div class="accordion-content-wrapper ${je(t)}">
|
|
345
345
|
<div class="accordion-content">
|
|
346
346
|
<slot></slot>
|
|
347
347
|
</div>
|
|
@@ -349,26 +349,26 @@ let qt = class extends d {
|
|
|
349
349
|
`;
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
Nt.styles = [
|
|
353
353
|
d.styles,
|
|
354
|
-
|
|
354
|
+
u(Ko)
|
|
355
355
|
];
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
],
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
],
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
],
|
|
365
|
-
|
|
356
|
+
Ve([
|
|
357
|
+
oo({ type: String })
|
|
358
|
+
], Nt.prototype, "label", 2);
|
|
359
|
+
Ve([
|
|
360
|
+
oo({ type: Boolean, reflect: !0 })
|
|
361
|
+
], Nt.prototype, "open", 2);
|
|
362
|
+
Nt = Ve([
|
|
363
|
+
Ao("ucds-accordion")
|
|
364
|
+
], Nt);
|
|
365
|
+
v();
|
|
366
366
|
/**
|
|
367
367
|
* @license
|
|
368
368
|
* Copyright 2017 Google LLC
|
|
369
369
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
370
370
|
*/
|
|
371
|
-
const
|
|
371
|
+
const Wo = (o) => (t, e) => {
|
|
372
372
|
e !== void 0 ? e.addInitializer(() => {
|
|
373
373
|
customElements.define(o, t);
|
|
374
374
|
}) : customElements.define(o, t);
|
|
@@ -378,18 +378,18 @@ const Uo = (o) => (t, e) => {
|
|
|
378
378
|
* Copyright 2019 Google LLC
|
|
379
379
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
380
380
|
*/
|
|
381
|
-
const
|
|
382
|
-
let
|
|
381
|
+
const Qt = globalThis, Ke = Qt.ShadowRoot && (Qt.ShadyCSS === void 0 || Qt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, io = Symbol(), Rr = /* @__PURE__ */ new WeakMap();
|
|
382
|
+
let Fo = class {
|
|
383
383
|
constructor(t, e, r) {
|
|
384
|
-
if (this._$cssResult$ = !0, r !==
|
|
384
|
+
if (this._$cssResult$ = !0, r !== io) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
385
385
|
this.cssText = t, this.t = e;
|
|
386
386
|
}
|
|
387
387
|
get styleSheet() {
|
|
388
388
|
let t = this.o;
|
|
389
389
|
const e = this.t;
|
|
390
|
-
if (
|
|
390
|
+
if (Ke && t === void 0) {
|
|
391
391
|
const r = e !== void 0 && e.length === 1;
|
|
392
|
-
r && (t =
|
|
392
|
+
r && (t = Rr.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Rr.set(e, t));
|
|
393
393
|
}
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
@@ -397,26 +397,26 @@ let Co = class {
|
|
|
397
397
|
return this.cssText;
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
-
const
|
|
401
|
-
if (
|
|
400
|
+
const Go = (o) => new Fo(typeof o == "string" ? o : o + "", void 0, io), Xo = (o, t) => {
|
|
401
|
+
if (Ke) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
402
402
|
else for (const e of t) {
|
|
403
|
-
const r = document.createElement("style"), s =
|
|
403
|
+
const r = document.createElement("style"), s = Qt.litNonce;
|
|
404
404
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
405
405
|
}
|
|
406
|
-
},
|
|
406
|
+
}, Mr = Ke ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
407
407
|
let e = "";
|
|
408
408
|
for (const r of t.cssRules) e += r.cssText;
|
|
409
|
-
return
|
|
409
|
+
return Go(e);
|
|
410
410
|
})(o) : o;
|
|
411
411
|
/**
|
|
412
412
|
* @license
|
|
413
413
|
* Copyright 2017 Google LLC
|
|
414
414
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
415
415
|
*/
|
|
416
|
-
const { is:
|
|
416
|
+
const { is: Yo, defineProperty: Qo, getOwnPropertyDescriptor: Zo, getOwnPropertyNames: ti, getOwnPropertySymbols: ei, getPrototypeOf: ri } = Object, N = globalThis, zr = N.trustedTypes, si = zr ? zr.emptyScript : "", jr = N.reactiveElementPolyfillSupport, wt = (o, t) => o, Te = { toAttribute(o, t) {
|
|
417
417
|
switch (t) {
|
|
418
418
|
case Boolean:
|
|
419
|
-
o = o ?
|
|
419
|
+
o = o ? si : null;
|
|
420
420
|
break;
|
|
421
421
|
case Object:
|
|
422
422
|
case Array:
|
|
@@ -441,23 +441,23 @@ const { is: Ro, defineProperty: Mo, getOwnPropertyDescriptor: zo, getOwnProperty
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
|
-
} },
|
|
444
|
+
} }, no = (o, t) => !Yo(o, t), Tr = { attribute: !0, type: String, converter: Te, reflect: !1, useDefault: !1, hasChanged: no };
|
|
445
445
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
446
|
-
let
|
|
446
|
+
let at = class extends HTMLElement {
|
|
447
447
|
static addInitializer(t) {
|
|
448
448
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
449
449
|
}
|
|
450
450
|
static get observedAttributes() {
|
|
451
451
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
452
452
|
}
|
|
453
|
-
static createProperty(t, e =
|
|
453
|
+
static createProperty(t, e = Tr) {
|
|
454
454
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
455
455
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
456
|
-
s !== void 0 &&
|
|
456
|
+
s !== void 0 && Qo(this.prototype, t, s);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
static getPropertyDescriptor(t, e, r) {
|
|
460
|
-
const { get: s, set: n } =
|
|
460
|
+
const { get: s, set: n } = Zo(this.prototype, t) ?? { get() {
|
|
461
461
|
return this[e];
|
|
462
462
|
}, set(i) {
|
|
463
463
|
this[e] = i;
|
|
@@ -468,17 +468,17 @@ let nt = class extends HTMLElement {
|
|
|
468
468
|
}, configurable: !0, enumerable: !0 };
|
|
469
469
|
}
|
|
470
470
|
static getPropertyOptions(t) {
|
|
471
|
-
return this.elementProperties.get(t) ??
|
|
471
|
+
return this.elementProperties.get(t) ?? Tr;
|
|
472
472
|
}
|
|
473
473
|
static _$Ei() {
|
|
474
|
-
if (this.hasOwnProperty(
|
|
475
|
-
const t =
|
|
474
|
+
if (this.hasOwnProperty(wt("elementProperties"))) return;
|
|
475
|
+
const t = ri(this);
|
|
476
476
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
477
477
|
}
|
|
478
478
|
static finalize() {
|
|
479
|
-
if (this.hasOwnProperty(
|
|
480
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
481
|
-
const e = this.properties, r = [...
|
|
479
|
+
if (this.hasOwnProperty(wt("finalized"))) return;
|
|
480
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(wt("properties"))) {
|
|
481
|
+
const e = this.properties, r = [...ti(e), ...ei(e)];
|
|
482
482
|
for (const s of r) this.createProperty(s, e[s]);
|
|
483
483
|
}
|
|
484
484
|
const t = this[Symbol.metadata];
|
|
@@ -497,8 +497,8 @@ let nt = class extends HTMLElement {
|
|
|
497
497
|
const e = [];
|
|
498
498
|
if (Array.isArray(t)) {
|
|
499
499
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
500
|
-
for (const s of r) e.unshift(
|
|
501
|
-
} else t !== void 0 && e.push(
|
|
500
|
+
for (const s of r) e.unshift(Mr(s));
|
|
501
|
+
} else t !== void 0 && e.push(Mr(t));
|
|
502
502
|
return e;
|
|
503
503
|
}
|
|
504
504
|
static _$Eu(t, e) {
|
|
@@ -527,7 +527,7 @@ let nt = class extends HTMLElement {
|
|
|
527
527
|
}
|
|
528
528
|
createRenderRoot() {
|
|
529
529
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
530
|
-
return
|
|
530
|
+
return Xo(t, this.constructor.elementStyles), t;
|
|
531
531
|
}
|
|
532
532
|
connectedCallback() {
|
|
533
533
|
var t;
|
|
@@ -552,7 +552,7 @@ let nt = class extends HTMLElement {
|
|
|
552
552
|
var r;
|
|
553
553
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
554
554
|
if (n !== void 0 && s.reflect === !0) {
|
|
555
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
555
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Te).toAttribute(e, s.type);
|
|
556
556
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
@@ -560,7 +560,312 @@ let nt = class extends HTMLElement {
|
|
|
560
560
|
var r, s;
|
|
561
561
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
562
562
|
if (i !== void 0 && this._$Em !== i) {
|
|
563
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
563
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Te;
|
|
564
|
+
this._$Em = i;
|
|
565
|
+
const c = l.fromAttribute(e, a.type);
|
|
566
|
+
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
requestUpdate(t, e, r) {
|
|
570
|
+
var s;
|
|
571
|
+
if (t !== void 0) {
|
|
572
|
+
const n = this.constructor, i = this[t];
|
|
573
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? no)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
574
|
+
this.C(t, e, r);
|
|
575
|
+
}
|
|
576
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
577
|
+
}
|
|
578
|
+
C(t, e, { useDefault: r, reflect: s, wrapped: n }, i) {
|
|
579
|
+
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), n !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
580
|
+
}
|
|
581
|
+
async _$EP() {
|
|
582
|
+
this.isUpdatePending = !0;
|
|
583
|
+
try {
|
|
584
|
+
await this._$ES;
|
|
585
|
+
} catch (e) {
|
|
586
|
+
Promise.reject(e);
|
|
587
|
+
}
|
|
588
|
+
const t = this.scheduleUpdate();
|
|
589
|
+
return t != null && await t, !this.isUpdatePending;
|
|
590
|
+
}
|
|
591
|
+
scheduleUpdate() {
|
|
592
|
+
return this.performUpdate();
|
|
593
|
+
}
|
|
594
|
+
performUpdate() {
|
|
595
|
+
var t;
|
|
596
|
+
if (!this.isUpdatePending) return;
|
|
597
|
+
if (!this.hasUpdated) {
|
|
598
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
599
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
600
|
+
this._$Ep = void 0;
|
|
601
|
+
}
|
|
602
|
+
const s = this.constructor.elementProperties;
|
|
603
|
+
if (s.size > 0) for (const [n, i] of s) {
|
|
604
|
+
const { wrapped: a } = i, l = this[n];
|
|
605
|
+
a !== !0 || this._$AL.has(n) || l === void 0 || this.C(n, void 0, i, l);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
let e = !1;
|
|
609
|
+
const r = this._$AL;
|
|
610
|
+
try {
|
|
611
|
+
e = this.shouldUpdate(r), e ? (this.willUpdate(r), (t = this._$EO) == null || t.forEach((s) => {
|
|
612
|
+
var n;
|
|
613
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
|
614
|
+
}), this.update(r)) : this._$EM();
|
|
615
|
+
} catch (s) {
|
|
616
|
+
throw e = !1, this._$EM(), s;
|
|
617
|
+
}
|
|
618
|
+
e && this._$AE(r);
|
|
619
|
+
}
|
|
620
|
+
willUpdate(t) {
|
|
621
|
+
}
|
|
622
|
+
_$AE(t) {
|
|
623
|
+
var e;
|
|
624
|
+
(e = this._$EO) == null || e.forEach((r) => {
|
|
625
|
+
var s;
|
|
626
|
+
return (s = r.hostUpdated) == null ? void 0 : s.call(r);
|
|
627
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
628
|
+
}
|
|
629
|
+
_$EM() {
|
|
630
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
631
|
+
}
|
|
632
|
+
get updateComplete() {
|
|
633
|
+
return this.getUpdateComplete();
|
|
634
|
+
}
|
|
635
|
+
getUpdateComplete() {
|
|
636
|
+
return this._$ES;
|
|
637
|
+
}
|
|
638
|
+
shouldUpdate(t) {
|
|
639
|
+
return !0;
|
|
640
|
+
}
|
|
641
|
+
update(t) {
|
|
642
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
643
|
+
}
|
|
644
|
+
updated(t) {
|
|
645
|
+
}
|
|
646
|
+
firstUpdated(t) {
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
at.elementStyles = [], at.shadowRootOptions = { mode: "open" }, at[wt("elementProperties")] = /* @__PURE__ */ new Map(), at[wt("finalized")] = /* @__PURE__ */ new Map(), jr == null || jr({ ReactiveElement: at }), (N.reactiveElementVersions ?? (N.reactiveElementVersions = [])).push("2.1.1");
|
|
650
|
+
const oi = ":host{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%}";
|
|
651
|
+
var ii = (o, t, e, r) => {
|
|
652
|
+
for (var s = t, n = o.length - 1, i; n >= 0; n--)
|
|
653
|
+
(i = o[n]) && (s = i(s) || s);
|
|
654
|
+
return s;
|
|
655
|
+
};
|
|
656
|
+
let qe = class extends d {
|
|
657
|
+
render() {
|
|
658
|
+
return h`
|
|
659
|
+
<slot></slot>
|
|
660
|
+
`;
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
qe.styles = [
|
|
664
|
+
d.styles,
|
|
665
|
+
u(oi)
|
|
666
|
+
];
|
|
667
|
+
qe = ii([
|
|
668
|
+
Wo("ucds-accordion-group")
|
|
669
|
+
], qe);
|
|
670
|
+
v();
|
|
671
|
+
/**
|
|
672
|
+
* @license
|
|
673
|
+
* Copyright 2017 Google LLC
|
|
674
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
|
+
*/
|
|
676
|
+
const ao = (o) => (t, e) => {
|
|
677
|
+
e !== void 0 ? e.addInitializer(() => {
|
|
678
|
+
customElements.define(o, t);
|
|
679
|
+
}) : customElements.define(o, t);
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* @license
|
|
683
|
+
* Copyright 2019 Google LLC
|
|
684
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
685
|
+
*/
|
|
686
|
+
const Zt = globalThis, Je = Zt.ShadowRoot && (Zt.ShadyCSS === void 0 || Zt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lo = Symbol(), qr = /* @__PURE__ */ new WeakMap();
|
|
687
|
+
let ni = class {
|
|
688
|
+
constructor(t, e, r) {
|
|
689
|
+
if (this._$cssResult$ = !0, r !== lo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
690
|
+
this.cssText = t, this.t = e;
|
|
691
|
+
}
|
|
692
|
+
get styleSheet() {
|
|
693
|
+
let t = this.o;
|
|
694
|
+
const e = this.t;
|
|
695
|
+
if (Je && t === void 0) {
|
|
696
|
+
const r = e !== void 0 && e.length === 1;
|
|
697
|
+
r && (t = qr.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && qr.set(e, t));
|
|
698
|
+
}
|
|
699
|
+
return t;
|
|
700
|
+
}
|
|
701
|
+
toString() {
|
|
702
|
+
return this.cssText;
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
const ai = (o) => new ni(typeof o == "string" ? o : o + "", void 0, lo), li = (o, t) => {
|
|
706
|
+
if (Je) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
707
|
+
else for (const e of t) {
|
|
708
|
+
const r = document.createElement("style"), s = Zt.litNonce;
|
|
709
|
+
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
710
|
+
}
|
|
711
|
+
}, Dr = Je ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
712
|
+
let e = "";
|
|
713
|
+
for (const r of t.cssRules) e += r.cssText;
|
|
714
|
+
return ai(e);
|
|
715
|
+
})(o) : o;
|
|
716
|
+
/**
|
|
717
|
+
* @license
|
|
718
|
+
* Copyright 2017 Google LLC
|
|
719
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
720
|
+
*/
|
|
721
|
+
const { is: ci, defineProperty: hi, getOwnPropertyDescriptor: di, getOwnPropertyNames: pi, getOwnPropertySymbols: ui, getPrototypeOf: fi } = Object, I = globalThis, Lr = I.trustedTypes, vi = Lr ? Lr.emptyScript : "", Nr = I.reactiveElementPolyfillSupport, Pt = (o, t) => o, $e = { toAttribute(o, t) {
|
|
722
|
+
switch (t) {
|
|
723
|
+
case Boolean:
|
|
724
|
+
o = o ? vi : null;
|
|
725
|
+
break;
|
|
726
|
+
case Object:
|
|
727
|
+
case Array:
|
|
728
|
+
o = o == null ? o : JSON.stringify(o);
|
|
729
|
+
}
|
|
730
|
+
return o;
|
|
731
|
+
}, fromAttribute(o, t) {
|
|
732
|
+
let e = o;
|
|
733
|
+
switch (t) {
|
|
734
|
+
case Boolean:
|
|
735
|
+
e = o !== null;
|
|
736
|
+
break;
|
|
737
|
+
case Number:
|
|
738
|
+
e = o === null ? null : Number(o);
|
|
739
|
+
break;
|
|
740
|
+
case Object:
|
|
741
|
+
case Array:
|
|
742
|
+
try {
|
|
743
|
+
e = JSON.parse(o);
|
|
744
|
+
} catch {
|
|
745
|
+
e = null;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return e;
|
|
749
|
+
} }, He = (o, t) => !ci(o, t), Ir = { attribute: !0, type: String, converter: $e, reflect: !1, useDefault: !1, hasChanged: He };
|
|
750
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I.litPropertyMetadata ?? (I.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
751
|
+
let lt = class extends HTMLElement {
|
|
752
|
+
static addInitializer(t) {
|
|
753
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
754
|
+
}
|
|
755
|
+
static get observedAttributes() {
|
|
756
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
757
|
+
}
|
|
758
|
+
static createProperty(t, e = Ir) {
|
|
759
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
760
|
+
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
761
|
+
s !== void 0 && hi(this.prototype, t, s);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
static getPropertyDescriptor(t, e, r) {
|
|
765
|
+
const { get: s, set: n } = di(this.prototype, t) ?? { get() {
|
|
766
|
+
return this[e];
|
|
767
|
+
}, set(i) {
|
|
768
|
+
this[e] = i;
|
|
769
|
+
} };
|
|
770
|
+
return { get: s, set(i) {
|
|
771
|
+
const a = s == null ? void 0 : s.call(this);
|
|
772
|
+
n == null || n.call(this, i), this.requestUpdate(t, a, r);
|
|
773
|
+
}, configurable: !0, enumerable: !0 };
|
|
774
|
+
}
|
|
775
|
+
static getPropertyOptions(t) {
|
|
776
|
+
return this.elementProperties.get(t) ?? Ir;
|
|
777
|
+
}
|
|
778
|
+
static _$Ei() {
|
|
779
|
+
if (this.hasOwnProperty(Pt("elementProperties"))) return;
|
|
780
|
+
const t = fi(this);
|
|
781
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
782
|
+
}
|
|
783
|
+
static finalize() {
|
|
784
|
+
if (this.hasOwnProperty(Pt("finalized"))) return;
|
|
785
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Pt("properties"))) {
|
|
786
|
+
const e = this.properties, r = [...pi(e), ...ui(e)];
|
|
787
|
+
for (const s of r) this.createProperty(s, e[s]);
|
|
788
|
+
}
|
|
789
|
+
const t = this[Symbol.metadata];
|
|
790
|
+
if (t !== null) {
|
|
791
|
+
const e = litPropertyMetadata.get(t);
|
|
792
|
+
if (e !== void 0) for (const [r, s] of e) this.elementProperties.set(r, s);
|
|
793
|
+
}
|
|
794
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
795
|
+
for (const [e, r] of this.elementProperties) {
|
|
796
|
+
const s = this._$Eu(e, r);
|
|
797
|
+
s !== void 0 && this._$Eh.set(s, e);
|
|
798
|
+
}
|
|
799
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
800
|
+
}
|
|
801
|
+
static finalizeStyles(t) {
|
|
802
|
+
const e = [];
|
|
803
|
+
if (Array.isArray(t)) {
|
|
804
|
+
const r = new Set(t.flat(1 / 0).reverse());
|
|
805
|
+
for (const s of r) e.unshift(Dr(s));
|
|
806
|
+
} else t !== void 0 && e.push(Dr(t));
|
|
807
|
+
return e;
|
|
808
|
+
}
|
|
809
|
+
static _$Eu(t, e) {
|
|
810
|
+
const r = e.attribute;
|
|
811
|
+
return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
812
|
+
}
|
|
813
|
+
constructor() {
|
|
814
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
815
|
+
}
|
|
816
|
+
_$Ev() {
|
|
817
|
+
var t;
|
|
818
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
819
|
+
}
|
|
820
|
+
addController(t) {
|
|
821
|
+
var e;
|
|
822
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
823
|
+
}
|
|
824
|
+
removeController(t) {
|
|
825
|
+
var e;
|
|
826
|
+
(e = this._$EO) == null || e.delete(t);
|
|
827
|
+
}
|
|
828
|
+
_$E_() {
|
|
829
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
830
|
+
for (const r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
|
|
831
|
+
t.size > 0 && (this._$Ep = t);
|
|
832
|
+
}
|
|
833
|
+
createRenderRoot() {
|
|
834
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
835
|
+
return li(t, this.constructor.elementStyles), t;
|
|
836
|
+
}
|
|
837
|
+
connectedCallback() {
|
|
838
|
+
var t;
|
|
839
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
840
|
+
var r;
|
|
841
|
+
return (r = e.hostConnected) == null ? void 0 : r.call(e);
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
enableUpdating(t) {
|
|
845
|
+
}
|
|
846
|
+
disconnectedCallback() {
|
|
847
|
+
var t;
|
|
848
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
|
849
|
+
var r;
|
|
850
|
+
return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
attributeChangedCallback(t, e, r) {
|
|
854
|
+
this._$AK(t, r);
|
|
855
|
+
}
|
|
856
|
+
_$ET(t, e) {
|
|
857
|
+
var r;
|
|
858
|
+
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
859
|
+
if (n !== void 0 && s.reflect === !0) {
|
|
860
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : $e).toAttribute(e, s.type);
|
|
861
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
_$AK(t, e) {
|
|
865
|
+
var r, s;
|
|
866
|
+
const n = this.constructor, i = n._$Eh.get(t);
|
|
867
|
+
if (i !== void 0 && this._$Em !== i) {
|
|
868
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : $e;
|
|
564
869
|
this._$Em = i;
|
|
565
870
|
const c = l.fromAttribute(e, a.type);
|
|
566
871
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -570,7 +875,7 @@ let nt = class extends HTMLElement {
|
|
|
570
875
|
var s;
|
|
571
876
|
if (t !== void 0) {
|
|
572
877
|
const n = this.constructor, i = this[t];
|
|
573
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
878
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? He)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
574
879
|
this.C(t, e, r);
|
|
575
880
|
}
|
|
576
881
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -643,37 +948,138 @@ let nt = class extends HTMLElement {
|
|
|
643
948
|
}
|
|
644
949
|
updated(t) {
|
|
645
950
|
}
|
|
646
|
-
firstUpdated(t) {
|
|
951
|
+
firstUpdated(t) {
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
lt.elementStyles = [], lt.shadowRootOptions = { mode: "open" }, lt[Pt("elementProperties")] = /* @__PURE__ */ new Map(), lt[Pt("finalized")] = /* @__PURE__ */ new Map(), Nr == null || Nr({ ReactiveElement: lt }), (I.reactiveElementVersions ?? (I.reactiveElementVersions = [])).push("2.1.1");
|
|
955
|
+
/**
|
|
956
|
+
* @license
|
|
957
|
+
* Copyright 2017 Google LLC
|
|
958
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
959
|
+
*/
|
|
960
|
+
const $i = { attribute: !0, type: String, converter: $e, reflect: !1, hasChanged: He }, yi = (o = $i, t, e) => {
|
|
961
|
+
const { kind: r, metadata: s } = e;
|
|
962
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
|
963
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
964
|
+
const { name: i } = e;
|
|
965
|
+
return { set(a) {
|
|
966
|
+
const l = t.get.call(this);
|
|
967
|
+
t.set.call(this, a), this.requestUpdate(i, l, o);
|
|
968
|
+
}, init(a) {
|
|
969
|
+
return a !== void 0 && this.C(i, void 0, o, a), a;
|
|
970
|
+
} };
|
|
971
|
+
}
|
|
972
|
+
if (r === "setter") {
|
|
973
|
+
const { name: i } = e;
|
|
974
|
+
return function(a) {
|
|
975
|
+
const l = this[i];
|
|
976
|
+
t.call(this, a), this.requestUpdate(i, l, o);
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
throw Error("Unsupported decorator location: " + r);
|
|
980
|
+
};
|
|
981
|
+
function We(o) {
|
|
982
|
+
return (t, e) => typeof e == "object" ? yi(o, t, e) : ((r, s, n) => {
|
|
983
|
+
const i = s.hasOwnProperty(n);
|
|
984
|
+
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
985
|
+
})(o, t, e);
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* @license
|
|
989
|
+
* Copyright 2017 Google LLC
|
|
990
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
991
|
+
*/
|
|
992
|
+
const mi = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(o, t, e), e);
|
|
993
|
+
/**
|
|
994
|
+
* @license
|
|
995
|
+
* Copyright 2021 Google LLC
|
|
996
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
997
|
+
*/
|
|
998
|
+
function bi(o) {
|
|
999
|
+
return (t, e) => {
|
|
1000
|
+
const { slot: r, selector: s } = o ?? {}, n = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
1001
|
+
return mi(t, e, { get() {
|
|
1002
|
+
var i;
|
|
1003
|
+
const a = (i = this.renderRoot) == null ? void 0 : i.querySelector(n), l = (a == null ? void 0 : a.assignedElements(o)) ?? [];
|
|
1004
|
+
return s === void 0 ? l : l.filter((c) => c.matches(s));
|
|
1005
|
+
} });
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
const gi = '.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0}@media (max-width: 767px){.breadcrumb ::slotted(*:not(:nth-last-child(2))),.breadcrumb ::slotted(*:not(:nth-last-child(2))):after{display:none}}@media (min-width: 768px){.breadcrumb ::slotted(*:not(:last-child)):after{content:"/" / "";color:var(--ucds-color-text-secondary);font-size:14px;line-height:1.25em}}';
|
|
1009
|
+
var _i = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, Fe = (o, t, e, r) => {
|
|
1010
|
+
for (var s = r > 1 ? void 0 : r ? Ei(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1011
|
+
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1012
|
+
return r && s && _i(t, e, s), s;
|
|
1013
|
+
};
|
|
1014
|
+
let It = class extends d {
|
|
1015
|
+
constructor() {
|
|
1016
|
+
super(...arguments), this.label = "Breadcrumb", this._updateCurrent = () => {
|
|
1017
|
+
this._items.forEach((t, e) => {
|
|
1018
|
+
const r = t;
|
|
1019
|
+
e === this._items.length - 1 ? (r.current = !0, r.setAttribute("aria-current", "page")) : (r.current = !1, r.removeAttribute("aria-current"));
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
render() {
|
|
1024
|
+
return h`
|
|
1025
|
+
<nav class="breadcrumb" aria-label="${this.label}">
|
|
1026
|
+
<slot @slotchange="${this._updateCurrent}"></slot>
|
|
1027
|
+
</nav>
|
|
1028
|
+
`;
|
|
647
1029
|
}
|
|
648
1030
|
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
1031
|
+
It.styles = [
|
|
1032
|
+
d.styles,
|
|
1033
|
+
u(gi)
|
|
1034
|
+
];
|
|
1035
|
+
Fe([
|
|
1036
|
+
We({ type: String })
|
|
1037
|
+
], It.prototype, "label", 2);
|
|
1038
|
+
Fe([
|
|
1039
|
+
bi({ selector: "ucds-breadcrumb-item" })
|
|
1040
|
+
], It.prototype, "_items", 2);
|
|
1041
|
+
It = Fe([
|
|
1042
|
+
ao("ucds-breadcrumb")
|
|
1043
|
+
], It);
|
|
1044
|
+
const Si = ":host{display:flex;gap:8px}.breadcrumb-item{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.25em}.breadcrumb-item .previous-chevron{color:var(--ucds-color-palette-gray-300)}.breadcrumb-item a{color:var(--ucds-color-text-primary);font-weight:var(--ucds-font-weight-regular);border-radius:2px}.breadcrumb-item a:focus{outline:var(--ucds-color-action-focus) 1px solid;outline-offset:1px}@keyframes redrawUnderline{0%{background-size:0 1px}to{background-size:100% 1px}}.breadcrumb-item a{text-decoration:none}.breadcrumb-item a .animated-underline{background-image:linear-gradient(currentColor,currentColor);background-position:0 calc(100% - 1px);background-repeat:no-repeat;background-size:0% 1px;transition:background-size .3s}.breadcrumb-item a:hover .animated-underline,.breadcrumb-item a:focus .animated-underline{animation:redrawUnderline .3s forwards}.breadcrumb-item .current{color:var(--ucds-color-action-selected);font-weight:var(--ucds-font-weight-semibold)}@media (min-width: 768px){.breadcrumb-item .previous-chevron{display:none}}";
|
|
1045
|
+
var wi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, Ge = (o, t, e, r) => {
|
|
1046
|
+
for (var s = r > 1 ? void 0 : r ? Pi(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1047
|
+
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1048
|
+
return r && s && wi(t, e, s), s;
|
|
655
1049
|
};
|
|
656
|
-
let
|
|
1050
|
+
let Bt = class extends d {
|
|
1051
|
+
constructor() {
|
|
1052
|
+
super(...arguments), this.href = "";
|
|
1053
|
+
}
|
|
657
1054
|
render() {
|
|
658
1055
|
return h`
|
|
659
|
-
<
|
|
1056
|
+
<div class="breadcrumb-item">
|
|
1057
|
+
<ucds-icon class="previous-chevron" name="chevronLeft" size="16"></ucds-icon>
|
|
1058
|
+
${this.current ? h`<span class="current"><slot></slot></span>` : h`<a href="${this.href}"><span class="animated-underline"><slot></slot></span></a>`}
|
|
1059
|
+
</div>
|
|
660
1060
|
`;
|
|
661
1061
|
}
|
|
662
1062
|
};
|
|
663
|
-
|
|
1063
|
+
Bt.styles = [
|
|
664
1064
|
d.styles,
|
|
665
|
-
|
|
1065
|
+
u(Si)
|
|
666
1066
|
];
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
],
|
|
670
|
-
|
|
1067
|
+
Ge([
|
|
1068
|
+
We({ type: String })
|
|
1069
|
+
], Bt.prototype, "href", 2);
|
|
1070
|
+
Ge([
|
|
1071
|
+
We({ type: Boolean, reflect: !0 })
|
|
1072
|
+
], Bt.prototype, "current", 2);
|
|
1073
|
+
Bt = Ge([
|
|
1074
|
+
ao("ucds-breadcrumb-item")
|
|
1075
|
+
], Bt);
|
|
1076
|
+
v();
|
|
671
1077
|
/**
|
|
672
1078
|
* @license
|
|
673
1079
|
* Copyright 2017 Google LLC
|
|
674
1080
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
1081
|
*/
|
|
676
|
-
const
|
|
1082
|
+
const xi = (o) => (t, e) => {
|
|
677
1083
|
e !== void 0 ? e.addInitializer(() => {
|
|
678
1084
|
customElements.define(o, t);
|
|
679
1085
|
}) : customElements.define(o, t);
|
|
@@ -683,18 +1089,18 @@ const Io = (o) => (t, e) => {
|
|
|
683
1089
|
* Copyright 2019 Google LLC
|
|
684
1090
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
685
1091
|
*/
|
|
686
|
-
const
|
|
687
|
-
let
|
|
1092
|
+
const te = globalThis, Xe = te.ShadowRoot && (te.ShadyCSS === void 0 || te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, co = Symbol(), Br = /* @__PURE__ */ new WeakMap();
|
|
1093
|
+
let Oi = class {
|
|
688
1094
|
constructor(t, e, r) {
|
|
689
|
-
if (this._$cssResult$ = !0, r !==
|
|
1095
|
+
if (this._$cssResult$ = !0, r !== co) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
690
1096
|
this.cssText = t, this.t = e;
|
|
691
1097
|
}
|
|
692
1098
|
get styleSheet() {
|
|
693
1099
|
let t = this.o;
|
|
694
1100
|
const e = this.t;
|
|
695
|
-
if (
|
|
1101
|
+
if (Xe && t === void 0) {
|
|
696
1102
|
const r = e !== void 0 && e.length === 1;
|
|
697
|
-
r && (t =
|
|
1103
|
+
r && (t = Br.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Br.set(e, t));
|
|
698
1104
|
}
|
|
699
1105
|
return t;
|
|
700
1106
|
}
|
|
@@ -702,26 +1108,26 @@ let Bo = class {
|
|
|
702
1108
|
return this.cssText;
|
|
703
1109
|
}
|
|
704
1110
|
};
|
|
705
|
-
const
|
|
706
|
-
if (
|
|
1111
|
+
const Ui = (o) => new Oi(typeof o == "string" ? o : o + "", void 0, co), Ci = (o, t) => {
|
|
1112
|
+
if (Xe) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
707
1113
|
else for (const e of t) {
|
|
708
|
-
const r = document.createElement("style"), s =
|
|
1114
|
+
const r = document.createElement("style"), s = te.litNonce;
|
|
709
1115
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
710
1116
|
}
|
|
711
|
-
},
|
|
1117
|
+
}, Vr = Xe ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
712
1118
|
let e = "";
|
|
713
1119
|
for (const r of t.cssRules) e += r.cssText;
|
|
714
|
-
return
|
|
1120
|
+
return Ui(e);
|
|
715
1121
|
})(o) : o;
|
|
716
1122
|
/**
|
|
717
1123
|
* @license
|
|
718
1124
|
* Copyright 2017 Google LLC
|
|
719
1125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
720
1126
|
*/
|
|
721
|
-
const { is:
|
|
1127
|
+
const { is: ki, defineProperty: Ai, getOwnPropertyDescriptor: Ri, getOwnPropertyNames: Mi, getOwnPropertySymbols: zi, getPrototypeOf: ji } = Object, B = globalThis, Kr = B.trustedTypes, Ti = Kr ? Kr.emptyScript : "", Jr = B.reactiveElementPolyfillSupport, xt = (o, t) => o, ye = { toAttribute(o, t) {
|
|
722
1128
|
switch (t) {
|
|
723
1129
|
case Boolean:
|
|
724
|
-
o = o ?
|
|
1130
|
+
o = o ? Ti : null;
|
|
725
1131
|
break;
|
|
726
1132
|
case Object:
|
|
727
1133
|
case Array:
|
|
@@ -746,23 +1152,23 @@ const { is: Ho, defineProperty: Jo, getOwnPropertyDescriptor: Wo, getOwnProperty
|
|
|
746
1152
|
}
|
|
747
1153
|
}
|
|
748
1154
|
return e;
|
|
749
|
-
} },
|
|
750
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
751
|
-
let
|
|
1155
|
+
} }, Ye = (o, t) => !ki(o, t), Hr = { attribute: !0, type: String, converter: ye, reflect: !1, useDefault: !1, hasChanged: Ye };
|
|
1156
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), B.litPropertyMetadata ?? (B.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1157
|
+
let ct = class extends HTMLElement {
|
|
752
1158
|
static addInitializer(t) {
|
|
753
1159
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
754
1160
|
}
|
|
755
1161
|
static get observedAttributes() {
|
|
756
1162
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
757
1163
|
}
|
|
758
|
-
static createProperty(t, e =
|
|
1164
|
+
static createProperty(t, e = Hr) {
|
|
759
1165
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
760
1166
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
761
|
-
s !== void 0 &&
|
|
1167
|
+
s !== void 0 && Ai(this.prototype, t, s);
|
|
762
1168
|
}
|
|
763
1169
|
}
|
|
764
1170
|
static getPropertyDescriptor(t, e, r) {
|
|
765
|
-
const { get: s, set: n } =
|
|
1171
|
+
const { get: s, set: n } = Ri(this.prototype, t) ?? { get() {
|
|
766
1172
|
return this[e];
|
|
767
1173
|
}, set(i) {
|
|
768
1174
|
this[e] = i;
|
|
@@ -773,17 +1179,17 @@ let at = class extends HTMLElement {
|
|
|
773
1179
|
}, configurable: !0, enumerable: !0 };
|
|
774
1180
|
}
|
|
775
1181
|
static getPropertyOptions(t) {
|
|
776
|
-
return this.elementProperties.get(t) ??
|
|
1182
|
+
return this.elementProperties.get(t) ?? Hr;
|
|
777
1183
|
}
|
|
778
1184
|
static _$Ei() {
|
|
779
|
-
if (this.hasOwnProperty(
|
|
780
|
-
const t =
|
|
1185
|
+
if (this.hasOwnProperty(xt("elementProperties"))) return;
|
|
1186
|
+
const t = ji(this);
|
|
781
1187
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
782
1188
|
}
|
|
783
1189
|
static finalize() {
|
|
784
|
-
if (this.hasOwnProperty(
|
|
785
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
786
|
-
const e = this.properties, r = [...
|
|
1190
|
+
if (this.hasOwnProperty(xt("finalized"))) return;
|
|
1191
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(xt("properties"))) {
|
|
1192
|
+
const e = this.properties, r = [...Mi(e), ...zi(e)];
|
|
787
1193
|
for (const s of r) this.createProperty(s, e[s]);
|
|
788
1194
|
}
|
|
789
1195
|
const t = this[Symbol.metadata];
|
|
@@ -802,8 +1208,8 @@ let at = class extends HTMLElement {
|
|
|
802
1208
|
const e = [];
|
|
803
1209
|
if (Array.isArray(t)) {
|
|
804
1210
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
805
|
-
for (const s of r) e.unshift(
|
|
806
|
-
} else t !== void 0 && e.push(
|
|
1211
|
+
for (const s of r) e.unshift(Vr(s));
|
|
1212
|
+
} else t !== void 0 && e.push(Vr(t));
|
|
807
1213
|
return e;
|
|
808
1214
|
}
|
|
809
1215
|
static _$Eu(t, e) {
|
|
@@ -832,7 +1238,7 @@ let at = class extends HTMLElement {
|
|
|
832
1238
|
}
|
|
833
1239
|
createRenderRoot() {
|
|
834
1240
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
835
|
-
return
|
|
1241
|
+
return Ci(t, this.constructor.elementStyles), t;
|
|
836
1242
|
}
|
|
837
1243
|
connectedCallback() {
|
|
838
1244
|
var t;
|
|
@@ -857,7 +1263,7 @@ let at = class extends HTMLElement {
|
|
|
857
1263
|
var r;
|
|
858
1264
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
859
1265
|
if (n !== void 0 && s.reflect === !0) {
|
|
860
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
1266
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : ye).toAttribute(e, s.type);
|
|
861
1267
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
862
1268
|
}
|
|
863
1269
|
}
|
|
@@ -865,7 +1271,7 @@ let at = class extends HTMLElement {
|
|
|
865
1271
|
var r, s;
|
|
866
1272
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
867
1273
|
if (i !== void 0 && this._$Em !== i) {
|
|
868
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
1274
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : ye;
|
|
869
1275
|
this._$Em = i;
|
|
870
1276
|
const c = l.fromAttribute(e, a.type);
|
|
871
1277
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -875,7 +1281,7 @@ let at = class extends HTMLElement {
|
|
|
875
1281
|
var s;
|
|
876
1282
|
if (t !== void 0) {
|
|
877
1283
|
const n = this.constructor, i = this[t];
|
|
878
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
1284
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Ye)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
879
1285
|
this.C(t, e, r);
|
|
880
1286
|
}
|
|
881
1287
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -951,13 +1357,13 @@ let at = class extends HTMLElement {
|
|
|
951
1357
|
firstUpdated(t) {
|
|
952
1358
|
}
|
|
953
1359
|
};
|
|
954
|
-
|
|
1360
|
+
ct.elementStyles = [], ct.shadowRootOptions = { mode: "open" }, ct[xt("elementProperties")] = /* @__PURE__ */ new Map(), ct[xt("finalized")] = /* @__PURE__ */ new Map(), Jr == null || Jr({ ReactiveElement: ct }), (B.reactiveElementVersions ?? (B.reactiveElementVersions = [])).push("2.1.1");
|
|
955
1361
|
/**
|
|
956
1362
|
* @license
|
|
957
1363
|
* Copyright 2017 Google LLC
|
|
958
1364
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
959
1365
|
*/
|
|
960
|
-
const
|
|
1366
|
+
const qi = { attribute: !0, type: String, converter: ye, reflect: !1, hasChanged: Ye }, Di = (o = qi, t, e) => {
|
|
961
1367
|
const { kind: r, metadata: s } = e;
|
|
962
1368
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
963
1369
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -978,19 +1384,19 @@ const Qo = { attribute: !0, type: String, converter: he, reflect: !1, hasChanged
|
|
|
978
1384
|
}
|
|
979
1385
|
throw Error("Unsupported decorator location: " + r);
|
|
980
1386
|
};
|
|
981
|
-
function
|
|
982
|
-
return (t, e) => typeof e == "object" ?
|
|
1387
|
+
function Re(o) {
|
|
1388
|
+
return (t, e) => typeof e == "object" ? Di(o, t, e) : ((r, s, n) => {
|
|
983
1389
|
const i = s.hasOwnProperty(n);
|
|
984
1390
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
985
1391
|
})(o, t, e);
|
|
986
1392
|
}
|
|
987
|
-
const
|
|
988
|
-
var
|
|
989
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1393
|
+
const Li = ":host{display:block}button{all:unset}.btn{display:inline-block;position:relative;padding:16px 36px;border-radius:50px;font-size:16px;line-height:16px;font-weight:600;text-decoration:none;color:var(--ucds-color-text-primary-inverse);transition:background-color .5s ease;cursor:pointer}.btn:active{padding:14px 34px;margin:2px}.btn:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.btn.inverse{background-color:var(--ucds-color-action-inverse-rest);color:var(--ucds-color-text-primary)}.btn.inverse:hover,.btn.inverse:focus{background-color:var(--ucds-color-action-inverse-hover);border-color:var(--ucds-color-action-inverse-hover);color:var(--ucds-color-text-primary)}.btn.inverse:active{background-color:var(--ucds-color-action-inverse-active)}.btn.inverse:focus{outline:var(--ucds-color-action-inverse-focus) 2px solid;outline-offset:2px}ucds-icon{color:currentColor;opacity:0;transition:right .5s,opacity .5s;position:absolute;right:50px;top:50%;transform:translateY(-50%)}.btn:hover ucds-icon,.btn:focus ucds-icon,.btn:active ucds-icon{opacity:1;right:12px}.solid{background-color:var(--ucds-color-action-rest)}.solid:hover,.solid:focus{background-color:var(--ucds-color-action-hover)}.solid:active{background-color:var(--ucds-color-action-active)}.outline{padding:14px 34px;border:2px solid var(--ucds-color-action-secondary-rest);color:var(--ucds-color-action-secondary-rest)}.outline:hover,.outline:focus,.outline:active{color:var(--ucds-color-text-primary-inverse)}.outline:hover,.outline:focus{background-color:var(--ucds-color-action-secondary-hover);border-color:var(--ucds-color-action-secondary-hover)}.outline:active{padding:12px 32px;background-color:var(--ucds-color-action-secondary-active);border-color:var(--ucds-color-action-secondary-active)}.outline.inverse{background-color:transparent;color:var(--ucds-color-text-primary-inverse);border-color:var(--ucds-color-action-inverse-rest)}.solid-accent{background-color:var(--ucds-color-action-secondary-rest);border-color:var(--ucds-color-action-secondary-rest);color:var(--ucds-color-text-primary-inverse)}.solid-accent:hover,.solid-accent:focus{background-color:var(--ucds-color-action-secondary-hover)}.solid-accent:active{background-color:var(--ucds-color-action-secondary-active)}";
|
|
1394
|
+
var Ni = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ht = (o, t, e, r) => {
|
|
1395
|
+
for (var s = r > 1 ? void 0 : r ? Ii(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
990
1396
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
991
|
-
return r && s &&
|
|
1397
|
+
return r && s && Ni(t, e, s), s;
|
|
992
1398
|
};
|
|
993
|
-
let
|
|
1399
|
+
let T = class extends d {
|
|
994
1400
|
constructor() {
|
|
995
1401
|
super(...arguments), this._variant = "solid", this.href = "", this.type = "button", this.inverse = !1;
|
|
996
1402
|
}
|
|
@@ -1016,40 +1422,40 @@ let j = class extends d {
|
|
|
1016
1422
|
<ucds-icon name="arrowRight" size="20"></ucds-icon>
|
|
1017
1423
|
`;
|
|
1018
1424
|
return this.href ? h`
|
|
1019
|
-
<a class=${t} href=${
|
|
1425
|
+
<a class=${t} href=${fe(this.href)} @click=${this.handleClick}>
|
|
1020
1426
|
${e}
|
|
1021
1427
|
</a>` : h`
|
|
1022
|
-
<button class=${t} type=${
|
|
1428
|
+
<button class=${t} type=${fe(this.type)} @click=${this.handleClick}>
|
|
1023
1429
|
${e}
|
|
1024
1430
|
</button>`;
|
|
1025
1431
|
}
|
|
1026
1432
|
};
|
|
1027
|
-
|
|
1433
|
+
T.styles = [
|
|
1028
1434
|
d.styles,
|
|
1029
|
-
|
|
1435
|
+
u(Li)
|
|
1030
1436
|
];
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
],
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
],
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
],
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
],
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
],
|
|
1046
|
-
|
|
1437
|
+
Ht([
|
|
1438
|
+
Re({ type: String })
|
|
1439
|
+
], T.prototype, "variant", 1);
|
|
1440
|
+
Ht([
|
|
1441
|
+
Re({ type: String })
|
|
1442
|
+
], T.prototype, "href", 2);
|
|
1443
|
+
Ht([
|
|
1444
|
+
Re({ type: String })
|
|
1445
|
+
], T.prototype, "type", 2);
|
|
1446
|
+
Ht([
|
|
1447
|
+
Re({ type: Boolean })
|
|
1448
|
+
], T.prototype, "inverse", 2);
|
|
1449
|
+
T = Ht([
|
|
1450
|
+
xi("ucds-button")
|
|
1451
|
+
], T);
|
|
1452
|
+
v();
|
|
1047
1453
|
/**
|
|
1048
1454
|
* @license
|
|
1049
1455
|
* Copyright 2017 Google LLC
|
|
1050
1456
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1051
1457
|
*/
|
|
1052
|
-
const
|
|
1458
|
+
const Bi = (o) => (t, e) => {
|
|
1053
1459
|
e !== void 0 ? e.addInitializer(() => {
|
|
1054
1460
|
customElements.define(o, t);
|
|
1055
1461
|
}) : customElements.define(o, t);
|
|
@@ -1059,18 +1465,18 @@ const si = (o) => (t, e) => {
|
|
|
1059
1465
|
* Copyright 2019 Google LLC
|
|
1060
1466
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1061
1467
|
*/
|
|
1062
|
-
const
|
|
1063
|
-
let
|
|
1468
|
+
const ee = globalThis, Qe = ee.ShadowRoot && (ee.ShadyCSS === void 0 || ee.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ho = Symbol(), Wr = /* @__PURE__ */ new WeakMap();
|
|
1469
|
+
let Vi = class {
|
|
1064
1470
|
constructor(t, e, r) {
|
|
1065
|
-
if (this._$cssResult$ = !0, r !==
|
|
1471
|
+
if (this._$cssResult$ = !0, r !== ho) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1066
1472
|
this.cssText = t, this.t = e;
|
|
1067
1473
|
}
|
|
1068
1474
|
get styleSheet() {
|
|
1069
1475
|
let t = this.o;
|
|
1070
1476
|
const e = this.t;
|
|
1071
|
-
if (
|
|
1477
|
+
if (Qe && t === void 0) {
|
|
1072
1478
|
const r = e !== void 0 && e.length === 1;
|
|
1073
|
-
r && (t =
|
|
1479
|
+
r && (t = Wr.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Wr.set(e, t));
|
|
1074
1480
|
}
|
|
1075
1481
|
return t;
|
|
1076
1482
|
}
|
|
@@ -1078,26 +1484,26 @@ let oi = class {
|
|
|
1078
1484
|
return this.cssText;
|
|
1079
1485
|
}
|
|
1080
1486
|
};
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1487
|
+
const Ki = (o) => new Vi(typeof o == "string" ? o : o + "", void 0, ho), Ji = (o, t) => {
|
|
1488
|
+
if (Qe) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1083
1489
|
else for (const e of t) {
|
|
1084
|
-
const r = document.createElement("style"), s =
|
|
1490
|
+
const r = document.createElement("style"), s = ee.litNonce;
|
|
1085
1491
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
1086
1492
|
}
|
|
1087
|
-
},
|
|
1493
|
+
}, Fr = Qe ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1088
1494
|
let e = "";
|
|
1089
1495
|
for (const r of t.cssRules) e += r.cssText;
|
|
1090
|
-
return
|
|
1496
|
+
return Ki(e);
|
|
1091
1497
|
})(o) : o;
|
|
1092
1498
|
/**
|
|
1093
1499
|
* @license
|
|
1094
1500
|
* Copyright 2017 Google LLC
|
|
1095
1501
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1096
1502
|
*/
|
|
1097
|
-
const { is:
|
|
1503
|
+
const { is: Hi, defineProperty: Wi, getOwnPropertyDescriptor: Fi, getOwnPropertyNames: Gi, getOwnPropertySymbols: Xi, getPrototypeOf: Yi } = Object, V = globalThis, Gr = V.trustedTypes, Qi = Gr ? Gr.emptyScript : "", Xr = V.reactiveElementPolyfillSupport, Ot = (o, t) => o, me = { toAttribute(o, t) {
|
|
1098
1504
|
switch (t) {
|
|
1099
1505
|
case Boolean:
|
|
1100
|
-
o = o ?
|
|
1506
|
+
o = o ? Qi : null;
|
|
1101
1507
|
break;
|
|
1102
1508
|
case Object:
|
|
1103
1509
|
case Array:
|
|
@@ -1122,23 +1528,23 @@ const { is: ai, defineProperty: li, getOwnPropertyDescriptor: ci, getOwnProperty
|
|
|
1122
1528
|
}
|
|
1123
1529
|
}
|
|
1124
1530
|
return e;
|
|
1125
|
-
} },
|
|
1126
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
1127
|
-
let
|
|
1531
|
+
} }, Ze = (o, t) => !Hi(o, t), Yr = { attribute: !0, type: String, converter: me, reflect: !1, useDefault: !1, hasChanged: Ze };
|
|
1532
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), V.litPropertyMetadata ?? (V.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1533
|
+
let ht = class extends HTMLElement {
|
|
1128
1534
|
static addInitializer(t) {
|
|
1129
1535
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1130
1536
|
}
|
|
1131
1537
|
static get observedAttributes() {
|
|
1132
1538
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1133
1539
|
}
|
|
1134
|
-
static createProperty(t, e =
|
|
1540
|
+
static createProperty(t, e = Yr) {
|
|
1135
1541
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1136
1542
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
1137
|
-
s !== void 0 &&
|
|
1543
|
+
s !== void 0 && Wi(this.prototype, t, s);
|
|
1138
1544
|
}
|
|
1139
1545
|
}
|
|
1140
1546
|
static getPropertyDescriptor(t, e, r) {
|
|
1141
|
-
const { get: s, set: n } =
|
|
1547
|
+
const { get: s, set: n } = Fi(this.prototype, t) ?? { get() {
|
|
1142
1548
|
return this[e];
|
|
1143
1549
|
}, set(i) {
|
|
1144
1550
|
this[e] = i;
|
|
@@ -1149,17 +1555,17 @@ let lt = class extends HTMLElement {
|
|
|
1149
1555
|
}, configurable: !0, enumerable: !0 };
|
|
1150
1556
|
}
|
|
1151
1557
|
static getPropertyOptions(t) {
|
|
1152
|
-
return this.elementProperties.get(t) ??
|
|
1558
|
+
return this.elementProperties.get(t) ?? Yr;
|
|
1153
1559
|
}
|
|
1154
1560
|
static _$Ei() {
|
|
1155
|
-
if (this.hasOwnProperty(
|
|
1156
|
-
const t =
|
|
1561
|
+
if (this.hasOwnProperty(Ot("elementProperties"))) return;
|
|
1562
|
+
const t = Yi(this);
|
|
1157
1563
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1158
1564
|
}
|
|
1159
1565
|
static finalize() {
|
|
1160
|
-
if (this.hasOwnProperty(
|
|
1161
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1162
|
-
const e = this.properties, r = [...
|
|
1566
|
+
if (this.hasOwnProperty(Ot("finalized"))) return;
|
|
1567
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ot("properties"))) {
|
|
1568
|
+
const e = this.properties, r = [...Gi(e), ...Xi(e)];
|
|
1163
1569
|
for (const s of r) this.createProperty(s, e[s]);
|
|
1164
1570
|
}
|
|
1165
1571
|
const t = this[Symbol.metadata];
|
|
@@ -1178,8 +1584,8 @@ let lt = class extends HTMLElement {
|
|
|
1178
1584
|
const e = [];
|
|
1179
1585
|
if (Array.isArray(t)) {
|
|
1180
1586
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
1181
|
-
for (const s of r) e.unshift(
|
|
1182
|
-
} else t !== void 0 && e.push(
|
|
1587
|
+
for (const s of r) e.unshift(Fr(s));
|
|
1588
|
+
} else t !== void 0 && e.push(Fr(t));
|
|
1183
1589
|
return e;
|
|
1184
1590
|
}
|
|
1185
1591
|
static _$Eu(t, e) {
|
|
@@ -1208,7 +1614,7 @@ let lt = class extends HTMLElement {
|
|
|
1208
1614
|
}
|
|
1209
1615
|
createRenderRoot() {
|
|
1210
1616
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1211
|
-
return
|
|
1617
|
+
return Ji(t, this.constructor.elementStyles), t;
|
|
1212
1618
|
}
|
|
1213
1619
|
connectedCallback() {
|
|
1214
1620
|
var t;
|
|
@@ -1233,7 +1639,7 @@ let lt = class extends HTMLElement {
|
|
|
1233
1639
|
var r;
|
|
1234
1640
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
1235
1641
|
if (n !== void 0 && s.reflect === !0) {
|
|
1236
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
1642
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : me).toAttribute(e, s.type);
|
|
1237
1643
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
1238
1644
|
}
|
|
1239
1645
|
}
|
|
@@ -1241,7 +1647,7 @@ let lt = class extends HTMLElement {
|
|
|
1241
1647
|
var r, s;
|
|
1242
1648
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
1243
1649
|
if (i !== void 0 && this._$Em !== i) {
|
|
1244
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
1650
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : me;
|
|
1245
1651
|
this._$Em = i;
|
|
1246
1652
|
const c = l.fromAttribute(e, a.type);
|
|
1247
1653
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -1251,7 +1657,7 @@ let lt = class extends HTMLElement {
|
|
|
1251
1657
|
var s;
|
|
1252
1658
|
if (t !== void 0) {
|
|
1253
1659
|
const n = this.constructor, i = this[t];
|
|
1254
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
1660
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Ze)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
1255
1661
|
this.C(t, e, r);
|
|
1256
1662
|
}
|
|
1257
1663
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -1327,13 +1733,13 @@ let lt = class extends HTMLElement {
|
|
|
1327
1733
|
firstUpdated(t) {
|
|
1328
1734
|
}
|
|
1329
1735
|
};
|
|
1330
|
-
|
|
1736
|
+
ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[Ot("elementProperties")] = /* @__PURE__ */ new Map(), ht[Ot("finalized")] = /* @__PURE__ */ new Map(), Xr == null || Xr({ ReactiveElement: ht }), (V.reactiveElementVersions ?? (V.reactiveElementVersions = [])).push("2.1.1");
|
|
1331
1737
|
/**
|
|
1332
1738
|
* @license
|
|
1333
1739
|
* Copyright 2017 Google LLC
|
|
1334
1740
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1335
1741
|
*/
|
|
1336
|
-
const
|
|
1742
|
+
const Zi = { attribute: !0, type: String, converter: me, reflect: !1, hasChanged: Ze }, tn = (o = Zi, t, e) => {
|
|
1337
1743
|
const { kind: r, metadata: s } = e;
|
|
1338
1744
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
1339
1745
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -1354,19 +1760,19 @@ const fi = { attribute: !0, type: String, converter: de, reflect: !1, hasChanged
|
|
|
1354
1760
|
}
|
|
1355
1761
|
throw Error("Unsupported decorator location: " + r);
|
|
1356
1762
|
};
|
|
1357
|
-
function
|
|
1358
|
-
return (t, e) => typeof e == "object" ?
|
|
1763
|
+
function po(o) {
|
|
1764
|
+
return (t, e) => typeof e == "object" ? tn(o, t, e) : ((r, s, n) => {
|
|
1359
1765
|
const i = s.hasOwnProperty(n);
|
|
1360
1766
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
1361
1767
|
})(o, t, e);
|
|
1362
1768
|
}
|
|
1363
|
-
const
|
|
1364
|
-
var
|
|
1365
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1769
|
+
const en = ".button-group{display:flex;gap:16px;flex-direction:row;align-items:flex-start;flex-wrap:wrap}.button-group.align-center{align-items:center}.button-group.vertical{flex-direction:column}.button-group.horizontal.align-center{justify-content:center}";
|
|
1770
|
+
var rn = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, tr = (o, t, e, r) => {
|
|
1771
|
+
for (var s = r > 1 ? void 0 : r ? sn(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1366
1772
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1367
|
-
return r && s &&
|
|
1773
|
+
return r && s && rn(t, e, s), s;
|
|
1368
1774
|
};
|
|
1369
|
-
let
|
|
1775
|
+
let Vt = class extends d {
|
|
1370
1776
|
constructor() {
|
|
1371
1777
|
super(...arguments), this.alignment = "start", this.vertical = !1;
|
|
1372
1778
|
}
|
|
@@ -1381,26 +1787,26 @@ let Dt = class extends d {
|
|
|
1381
1787
|
`;
|
|
1382
1788
|
}
|
|
1383
1789
|
};
|
|
1384
|
-
|
|
1790
|
+
Vt.styles = [
|
|
1385
1791
|
d.styles,
|
|
1386
|
-
|
|
1792
|
+
u(en)
|
|
1387
1793
|
];
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
],
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
],
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
],
|
|
1397
|
-
|
|
1794
|
+
tr([
|
|
1795
|
+
po({ type: String })
|
|
1796
|
+
], Vt.prototype, "alignment", 2);
|
|
1797
|
+
tr([
|
|
1798
|
+
po({ type: Boolean, reflect: !0 })
|
|
1799
|
+
], Vt.prototype, "vertical", 2);
|
|
1800
|
+
Vt = tr([
|
|
1801
|
+
Bi("ucds-button-group")
|
|
1802
|
+
], Vt);
|
|
1803
|
+
v();
|
|
1398
1804
|
/**
|
|
1399
1805
|
* @license
|
|
1400
1806
|
* Copyright 2017 Google LLC
|
|
1401
1807
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1402
1808
|
*/
|
|
1403
|
-
const
|
|
1809
|
+
const er = (o) => (t, e) => {
|
|
1404
1810
|
e !== void 0 ? e.addInitializer(() => {
|
|
1405
1811
|
customElements.define(o, t);
|
|
1406
1812
|
}) : customElements.define(o, t);
|
|
@@ -1410,18 +1816,18 @@ const Ve = (o) => (t, e) => {
|
|
|
1410
1816
|
* Copyright 2019 Google LLC
|
|
1411
1817
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1412
1818
|
*/
|
|
1413
|
-
const
|
|
1414
|
-
let
|
|
1819
|
+
const re = globalThis, rr = re.ShadowRoot && (re.ShadyCSS === void 0 || re.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, uo = Symbol(), Qr = /* @__PURE__ */ new WeakMap();
|
|
1820
|
+
let on = class {
|
|
1415
1821
|
constructor(t, e, r) {
|
|
1416
|
-
if (this._$cssResult$ = !0, r !==
|
|
1822
|
+
if (this._$cssResult$ = !0, r !== uo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1417
1823
|
this.cssText = t, this.t = e;
|
|
1418
1824
|
}
|
|
1419
1825
|
get styleSheet() {
|
|
1420
1826
|
let t = this.o;
|
|
1421
1827
|
const e = this.t;
|
|
1422
|
-
if (
|
|
1828
|
+
if (rr && t === void 0) {
|
|
1423
1829
|
const r = e !== void 0 && e.length === 1;
|
|
1424
|
-
r && (t =
|
|
1830
|
+
r && (t = Qr.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Qr.set(e, t));
|
|
1425
1831
|
}
|
|
1426
1832
|
return t;
|
|
1427
1833
|
}
|
|
@@ -1429,26 +1835,26 @@ let bi = class {
|
|
|
1429
1835
|
return this.cssText;
|
|
1430
1836
|
}
|
|
1431
1837
|
};
|
|
1432
|
-
const
|
|
1433
|
-
if (
|
|
1838
|
+
const nn = (o) => new on(typeof o == "string" ? o : o + "", void 0, uo), an = (o, t) => {
|
|
1839
|
+
if (rr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1434
1840
|
else for (const e of t) {
|
|
1435
|
-
const r = document.createElement("style"), s =
|
|
1841
|
+
const r = document.createElement("style"), s = re.litNonce;
|
|
1436
1842
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
1437
1843
|
}
|
|
1438
|
-
},
|
|
1844
|
+
}, Zr = rr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1439
1845
|
let e = "";
|
|
1440
1846
|
for (const r of t.cssRules) e += r.cssText;
|
|
1441
|
-
return
|
|
1847
|
+
return nn(e);
|
|
1442
1848
|
})(o) : o;
|
|
1443
1849
|
/**
|
|
1444
1850
|
* @license
|
|
1445
1851
|
* Copyright 2017 Google LLC
|
|
1446
1852
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1447
1853
|
*/
|
|
1448
|
-
const { is:
|
|
1854
|
+
const { is: ln, defineProperty: cn, getOwnPropertyDescriptor: hn, getOwnPropertyNames: dn, getOwnPropertySymbols: pn, getPrototypeOf: un } = Object, A = globalThis, ts = A.trustedTypes, fn = ts ? ts.emptyScript : "", ze = A.reactiveElementPolyfillSupport, Ut = (o, t) => o, be = { toAttribute(o, t) {
|
|
1449
1855
|
switch (t) {
|
|
1450
1856
|
case Boolean:
|
|
1451
|
-
o = o ?
|
|
1857
|
+
o = o ? fn : null;
|
|
1452
1858
|
break;
|
|
1453
1859
|
case Object:
|
|
1454
1860
|
case Array:
|
|
@@ -1473,23 +1879,23 @@ const { is: Ei, defineProperty: Si, getOwnPropertyDescriptor: wi, getOwnProperty
|
|
|
1473
1879
|
}
|
|
1474
1880
|
}
|
|
1475
1881
|
return e;
|
|
1476
|
-
} },
|
|
1882
|
+
} }, sr = (o, t) => !ln(o, t), es = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: sr };
|
|
1477
1883
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A.litPropertyMetadata ?? (A.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1478
|
-
let
|
|
1884
|
+
let dt = class extends HTMLElement {
|
|
1479
1885
|
static addInitializer(t) {
|
|
1480
1886
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1481
1887
|
}
|
|
1482
1888
|
static get observedAttributes() {
|
|
1483
1889
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1484
1890
|
}
|
|
1485
|
-
static createProperty(t, e =
|
|
1891
|
+
static createProperty(t, e = es) {
|
|
1486
1892
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1487
1893
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
1488
|
-
s !== void 0 &&
|
|
1894
|
+
s !== void 0 && cn(this.prototype, t, s);
|
|
1489
1895
|
}
|
|
1490
1896
|
}
|
|
1491
1897
|
static getPropertyDescriptor(t, e, r) {
|
|
1492
|
-
const { get: s, set: n } =
|
|
1898
|
+
const { get: s, set: n } = hn(this.prototype, t) ?? { get() {
|
|
1493
1899
|
return this[e];
|
|
1494
1900
|
}, set(i) {
|
|
1495
1901
|
this[e] = i;
|
|
@@ -1500,17 +1906,17 @@ let ct = class extends HTMLElement {
|
|
|
1500
1906
|
}, configurable: !0, enumerable: !0 };
|
|
1501
1907
|
}
|
|
1502
1908
|
static getPropertyOptions(t) {
|
|
1503
|
-
return this.elementProperties.get(t) ??
|
|
1909
|
+
return this.elementProperties.get(t) ?? es;
|
|
1504
1910
|
}
|
|
1505
1911
|
static _$Ei() {
|
|
1506
|
-
if (this.hasOwnProperty(
|
|
1507
|
-
const t =
|
|
1912
|
+
if (this.hasOwnProperty(Ut("elementProperties"))) return;
|
|
1913
|
+
const t = un(this);
|
|
1508
1914
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1509
1915
|
}
|
|
1510
1916
|
static finalize() {
|
|
1511
|
-
if (this.hasOwnProperty(
|
|
1512
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1513
|
-
const e = this.properties, r = [...
|
|
1917
|
+
if (this.hasOwnProperty(Ut("finalized"))) return;
|
|
1918
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ut("properties"))) {
|
|
1919
|
+
const e = this.properties, r = [...dn(e), ...pn(e)];
|
|
1514
1920
|
for (const s of r) this.createProperty(s, e[s]);
|
|
1515
1921
|
}
|
|
1516
1922
|
const t = this[Symbol.metadata];
|
|
@@ -1529,8 +1935,8 @@ let ct = class extends HTMLElement {
|
|
|
1529
1935
|
const e = [];
|
|
1530
1936
|
if (Array.isArray(t)) {
|
|
1531
1937
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
1532
|
-
for (const s of r) e.unshift(
|
|
1533
|
-
} else t !== void 0 && e.push(
|
|
1938
|
+
for (const s of r) e.unshift(Zr(s));
|
|
1939
|
+
} else t !== void 0 && e.push(Zr(t));
|
|
1534
1940
|
return e;
|
|
1535
1941
|
}
|
|
1536
1942
|
static _$Eu(t, e) {
|
|
@@ -1559,7 +1965,7 @@ let ct = class extends HTMLElement {
|
|
|
1559
1965
|
}
|
|
1560
1966
|
createRenderRoot() {
|
|
1561
1967
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1562
|
-
return
|
|
1968
|
+
return an(t, this.constructor.elementStyles), t;
|
|
1563
1969
|
}
|
|
1564
1970
|
connectedCallback() {
|
|
1565
1971
|
var t;
|
|
@@ -1584,7 +1990,7 @@ let ct = class extends HTMLElement {
|
|
|
1584
1990
|
var n;
|
|
1585
1991
|
const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
|
|
1586
1992
|
if (s !== void 0 && r.reflect === !0) {
|
|
1587
|
-
const i = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter :
|
|
1993
|
+
const i = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : be).toAttribute(e, r.type);
|
|
1588
1994
|
this._$Em = t, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
|
|
1589
1995
|
}
|
|
1590
1996
|
}
|
|
@@ -1592,7 +1998,7 @@ let ct = class extends HTMLElement {
|
|
|
1592
1998
|
var n, i;
|
|
1593
1999
|
const r = this.constructor, s = r._$Eh.get(t);
|
|
1594
2000
|
if (s !== void 0 && this._$Em !== s) {
|
|
1595
|
-
const a = r.getPropertyOptions(s), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter :
|
|
2001
|
+
const a = r.getPropertyOptions(s), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : be;
|
|
1596
2002
|
this._$Em = s;
|
|
1597
2003
|
const c = l.fromAttribute(e, a.type);
|
|
1598
2004
|
this[s] = c ?? ((i = this._$Ej) == null ? void 0 : i.get(s)) ?? c, this._$Em = null;
|
|
@@ -1602,7 +2008,7 @@ let ct = class extends HTMLElement {
|
|
|
1602
2008
|
var s;
|
|
1603
2009
|
if (t !== void 0) {
|
|
1604
2010
|
const n = this.constructor, i = this[t];
|
|
1605
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
2011
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? sr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
1606
2012
|
this.C(t, e, r);
|
|
1607
2013
|
}
|
|
1608
2014
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -1678,13 +2084,13 @@ let ct = class extends HTMLElement {
|
|
|
1678
2084
|
firstUpdated(t) {
|
|
1679
2085
|
}
|
|
1680
2086
|
};
|
|
1681
|
-
|
|
2087
|
+
dt.elementStyles = [], dt.shadowRootOptions = { mode: "open" }, dt[Ut("elementProperties")] = /* @__PURE__ */ new Map(), dt[Ut("finalized")] = /* @__PURE__ */ new Map(), ze == null || ze({ ReactiveElement: dt }), (A.reactiveElementVersions ?? (A.reactiveElementVersions = [])).push("2.1.1");
|
|
1682
2088
|
/**
|
|
1683
2089
|
* @license
|
|
1684
2090
|
* Copyright 2017 Google LLC
|
|
1685
2091
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1686
2092
|
*/
|
|
1687
|
-
const
|
|
2093
|
+
const vn = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: sr }, $n = (o = vn, t, e) => {
|
|
1688
2094
|
const { kind: r, metadata: s } = e;
|
|
1689
2095
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
1690
2096
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -1706,17 +2112,17 @@ const Ci = { attribute: !0, type: String, converter: pe, reflect: !1, hasChanged
|
|
|
1706
2112
|
throw Error("Unsupported decorator location: " + r);
|
|
1707
2113
|
};
|
|
1708
2114
|
function q(o) {
|
|
1709
|
-
return (t, e) => typeof e == "object" ?
|
|
2115
|
+
return (t, e) => typeof e == "object" ? $n(o, t, e) : ((r, s, n) => {
|
|
1710
2116
|
const i = s.hasOwnProperty(n);
|
|
1711
2117
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
1712
2118
|
})(o, t, e);
|
|
1713
2119
|
}
|
|
1714
|
-
var
|
|
1715
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
2120
|
+
var yn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, fo = (o, t, e, r) => {
|
|
2121
|
+
for (var s = r > 1 ? void 0 : r ? mn(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1716
2122
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1717
|
-
return r && s &&
|
|
2123
|
+
return r && s && yn(t, e, s), s;
|
|
1718
2124
|
};
|
|
1719
|
-
let
|
|
2125
|
+
let ge = class extends Ne {
|
|
1720
2126
|
constructor() {
|
|
1721
2127
|
super(...arguments), this.text = "";
|
|
1722
2128
|
}
|
|
@@ -1732,7 +2138,7 @@ let ue = class extends Me {
|
|
|
1732
2138
|
`;
|
|
1733
2139
|
}
|
|
1734
2140
|
};
|
|
1735
|
-
|
|
2141
|
+
ge.styles = Le`
|
|
1736
2142
|
|
|
1737
2143
|
:host {
|
|
1738
2144
|
font-size: 14px;
|
|
@@ -1750,18 +2156,18 @@ ue.styles = Re`
|
|
|
1750
2156
|
fill: var(--ucds-color-feedback-error-light);
|
|
1751
2157
|
}
|
|
1752
2158
|
`;
|
|
1753
|
-
|
|
2159
|
+
fo([
|
|
1754
2160
|
q({ type: String })
|
|
1755
|
-
],
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
],
|
|
1759
|
-
var
|
|
1760
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
2161
|
+
], ge.prototype, "text", 2);
|
|
2162
|
+
ge = fo([
|
|
2163
|
+
er("form-error-message")
|
|
2164
|
+
], ge);
|
|
2165
|
+
var bn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, or = (o, t, e, r) => {
|
|
2166
|
+
for (var s = r > 1 ? void 0 : r ? gn(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1761
2167
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1762
|
-
return r && s &&
|
|
2168
|
+
return r && s && bn(t, e, s), s;
|
|
1763
2169
|
};
|
|
1764
|
-
let
|
|
2170
|
+
let Kt = class extends Ne {
|
|
1765
2171
|
constructor() {
|
|
1766
2172
|
super(...arguments), this.text = "";
|
|
1767
2173
|
}
|
|
@@ -1773,7 +2179,7 @@ let Lt = class extends Me {
|
|
|
1773
2179
|
`;
|
|
1774
2180
|
}
|
|
1775
2181
|
};
|
|
1776
|
-
|
|
2182
|
+
Kt.styles = Le`
|
|
1777
2183
|
|
|
1778
2184
|
:host {
|
|
1779
2185
|
font-size: 14px;
|
|
@@ -1789,21 +2195,21 @@ Lt.styles = Re`
|
|
|
1789
2195
|
color: var(--ucds-color-text-disabled);
|
|
1790
2196
|
}
|
|
1791
2197
|
`;
|
|
1792
|
-
|
|
2198
|
+
or([
|
|
1793
2199
|
q({ type: String })
|
|
1794
|
-
],
|
|
1795
|
-
|
|
2200
|
+
], Kt.prototype, "text", 2);
|
|
2201
|
+
or([
|
|
1796
2202
|
q({ type: Boolean, reflect: !0 })
|
|
1797
|
-
],
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
],
|
|
1801
|
-
var
|
|
1802
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
2203
|
+
], Kt.prototype, "disabled", 2);
|
|
2204
|
+
Kt = or([
|
|
2205
|
+
er("form-help-message")
|
|
2206
|
+
], Kt);
|
|
2207
|
+
var _n = Object.defineProperty, En = Object.getOwnPropertyDescriptor, Wt = (o, t, e, r) => {
|
|
2208
|
+
for (var s = r > 1 ? void 0 : r ? En(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1803
2209
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
1804
|
-
return r && s &&
|
|
2210
|
+
return r && s && _n(t, e, s), s;
|
|
1805
2211
|
};
|
|
1806
|
-
let $ = class extends
|
|
2212
|
+
let $ = class extends Ne {
|
|
1807
2213
|
constructor() {
|
|
1808
2214
|
super(...arguments), this.for = "", this.text = "", this.disabled = !1, this.required = !1;
|
|
1809
2215
|
}
|
|
@@ -1818,7 +2224,7 @@ let $ = class extends Me {
|
|
|
1818
2224
|
`;
|
|
1819
2225
|
}
|
|
1820
2226
|
};
|
|
1821
|
-
$.styles =
|
|
2227
|
+
$.styles = Le`
|
|
1822
2228
|
|
|
1823
2229
|
:host {
|
|
1824
2230
|
display: flex;
|
|
@@ -1848,27 +2254,27 @@ $.styles = Re`
|
|
|
1848
2254
|
color: var(--ucds-color-text-disabled);
|
|
1849
2255
|
}
|
|
1850
2256
|
`;
|
|
1851
|
-
|
|
2257
|
+
Wt([
|
|
1852
2258
|
q({ type: String })
|
|
1853
2259
|
], $.prototype, "for", 2);
|
|
1854
|
-
|
|
2260
|
+
Wt([
|
|
1855
2261
|
q({ type: String })
|
|
1856
2262
|
], $.prototype, "text", 2);
|
|
1857
|
-
|
|
2263
|
+
Wt([
|
|
1858
2264
|
q({ type: Boolean, reflect: !0 })
|
|
1859
2265
|
], $.prototype, "disabled", 2);
|
|
1860
|
-
|
|
2266
|
+
Wt([
|
|
1861
2267
|
q({ type: Boolean })
|
|
1862
2268
|
], $.prototype, "required", 2);
|
|
1863
|
-
$ =
|
|
1864
|
-
|
|
2269
|
+
$ = Wt([
|
|
2270
|
+
er("form-label")
|
|
1865
2271
|
], $);
|
|
1866
2272
|
/**
|
|
1867
2273
|
* @license
|
|
1868
2274
|
* Copyright 2017 Google LLC
|
|
1869
2275
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1870
2276
|
*/
|
|
1871
|
-
const
|
|
2277
|
+
const Sn = (o) => (t, e) => {
|
|
1872
2278
|
e !== void 0 ? e.addInitializer(() => {
|
|
1873
2279
|
customElements.define(o, t);
|
|
1874
2280
|
}) : customElements.define(o, t);
|
|
@@ -1878,18 +2284,18 @@ const qi = (o) => (t, e) => {
|
|
|
1878
2284
|
* Copyright 2019 Google LLC
|
|
1879
2285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1880
2286
|
*/
|
|
1881
|
-
const
|
|
1882
|
-
let
|
|
2287
|
+
const se = globalThis, ir = se.ShadowRoot && (se.ShadyCSS === void 0 || se.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vo = Symbol(), rs = /* @__PURE__ */ new WeakMap();
|
|
2288
|
+
let wn = class {
|
|
1883
2289
|
constructor(t, e, r) {
|
|
1884
|
-
if (this._$cssResult$ = !0, r !==
|
|
2290
|
+
if (this._$cssResult$ = !0, r !== vo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1885
2291
|
this.cssText = t, this.t = e;
|
|
1886
2292
|
}
|
|
1887
2293
|
get styleSheet() {
|
|
1888
2294
|
let t = this.o;
|
|
1889
2295
|
const e = this.t;
|
|
1890
|
-
if (
|
|
2296
|
+
if (ir && t === void 0) {
|
|
1891
2297
|
const r = e !== void 0 && e.length === 1;
|
|
1892
|
-
r && (t =
|
|
2298
|
+
r && (t = rs.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && rs.set(e, t));
|
|
1893
2299
|
}
|
|
1894
2300
|
return t;
|
|
1895
2301
|
}
|
|
@@ -1897,26 +2303,26 @@ let Di = class {
|
|
|
1897
2303
|
return this.cssText;
|
|
1898
2304
|
}
|
|
1899
2305
|
};
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
2306
|
+
const Pn = (o) => new wn(typeof o == "string" ? o : o + "", void 0, vo), xn = (o, t) => {
|
|
2307
|
+
if (ir) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1902
2308
|
else for (const e of t) {
|
|
1903
|
-
const r = document.createElement("style"), s =
|
|
2309
|
+
const r = document.createElement("style"), s = se.litNonce;
|
|
1904
2310
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
1905
2311
|
}
|
|
1906
|
-
},
|
|
2312
|
+
}, ss = ir ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1907
2313
|
let e = "";
|
|
1908
2314
|
for (const r of t.cssRules) e += r.cssText;
|
|
1909
|
-
return
|
|
2315
|
+
return Pn(e);
|
|
1910
2316
|
})(o) : o;
|
|
1911
2317
|
/**
|
|
1912
2318
|
* @license
|
|
1913
2319
|
* Copyright 2017 Google LLC
|
|
1914
2320
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1915
2321
|
*/
|
|
1916
|
-
const { is:
|
|
2322
|
+
const { is: On, defineProperty: Un, getOwnPropertyDescriptor: Cn, getOwnPropertyNames: kn, getOwnPropertySymbols: An, getPrototypeOf: Rn } = Object, K = globalThis, os = K.trustedTypes, Mn = os ? os.emptyScript : "", is = K.reactiveElementPolyfillSupport, Ct = (o, t) => o, _e = { toAttribute(o, t) {
|
|
1917
2323
|
switch (t) {
|
|
1918
2324
|
case Boolean:
|
|
1919
|
-
o = o ?
|
|
2325
|
+
o = o ? Mn : null;
|
|
1920
2326
|
break;
|
|
1921
2327
|
case Object:
|
|
1922
2328
|
case Array:
|
|
@@ -1941,23 +2347,23 @@ const { is: Ii, defineProperty: Bi, getOwnPropertyDescriptor: Vi, getOwnProperty
|
|
|
1941
2347
|
}
|
|
1942
2348
|
}
|
|
1943
2349
|
return e;
|
|
1944
|
-
} },
|
|
1945
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
1946
|
-
let
|
|
2350
|
+
} }, nr = (o, t) => !On(o, t), ns = { attribute: !0, type: String, converter: _e, reflect: !1, useDefault: !1, hasChanged: nr };
|
|
2351
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), K.litPropertyMetadata ?? (K.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
2352
|
+
let pt = class extends HTMLElement {
|
|
1947
2353
|
static addInitializer(t) {
|
|
1948
2354
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1949
2355
|
}
|
|
1950
2356
|
static get observedAttributes() {
|
|
1951
2357
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1952
2358
|
}
|
|
1953
|
-
static createProperty(t, e =
|
|
2359
|
+
static createProperty(t, e = ns) {
|
|
1954
2360
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1955
2361
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
1956
|
-
s !== void 0 &&
|
|
2362
|
+
s !== void 0 && Un(this.prototype, t, s);
|
|
1957
2363
|
}
|
|
1958
2364
|
}
|
|
1959
2365
|
static getPropertyDescriptor(t, e, r) {
|
|
1960
|
-
const { get: s, set: n } =
|
|
2366
|
+
const { get: s, set: n } = Cn(this.prototype, t) ?? { get() {
|
|
1961
2367
|
return this[e];
|
|
1962
2368
|
}, set(i) {
|
|
1963
2369
|
this[e] = i;
|
|
@@ -1968,17 +2374,17 @@ let ht = class extends HTMLElement {
|
|
|
1968
2374
|
}, configurable: !0, enumerable: !0 };
|
|
1969
2375
|
}
|
|
1970
2376
|
static getPropertyOptions(t) {
|
|
1971
|
-
return this.elementProperties.get(t) ??
|
|
2377
|
+
return this.elementProperties.get(t) ?? ns;
|
|
1972
2378
|
}
|
|
1973
2379
|
static _$Ei() {
|
|
1974
|
-
if (this.hasOwnProperty(
|
|
1975
|
-
const t =
|
|
2380
|
+
if (this.hasOwnProperty(Ct("elementProperties"))) return;
|
|
2381
|
+
const t = Rn(this);
|
|
1976
2382
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1977
2383
|
}
|
|
1978
2384
|
static finalize() {
|
|
1979
|
-
if (this.hasOwnProperty(
|
|
1980
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1981
|
-
const e = this.properties, r = [...
|
|
2385
|
+
if (this.hasOwnProperty(Ct("finalized"))) return;
|
|
2386
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ct("properties"))) {
|
|
2387
|
+
const e = this.properties, r = [...kn(e), ...An(e)];
|
|
1982
2388
|
for (const s of r) this.createProperty(s, e[s]);
|
|
1983
2389
|
}
|
|
1984
2390
|
const t = this[Symbol.metadata];
|
|
@@ -1997,8 +2403,8 @@ let ht = class extends HTMLElement {
|
|
|
1997
2403
|
const e = [];
|
|
1998
2404
|
if (Array.isArray(t)) {
|
|
1999
2405
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
2000
|
-
for (const s of r) e.unshift(
|
|
2001
|
-
} else t !== void 0 && e.push(
|
|
2406
|
+
for (const s of r) e.unshift(ss(s));
|
|
2407
|
+
} else t !== void 0 && e.push(ss(t));
|
|
2002
2408
|
return e;
|
|
2003
2409
|
}
|
|
2004
2410
|
static _$Eu(t, e) {
|
|
@@ -2027,7 +2433,7 @@ let ht = class extends HTMLElement {
|
|
|
2027
2433
|
}
|
|
2028
2434
|
createRenderRoot() {
|
|
2029
2435
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2030
|
-
return
|
|
2436
|
+
return xn(t, this.constructor.elementStyles), t;
|
|
2031
2437
|
}
|
|
2032
2438
|
connectedCallback() {
|
|
2033
2439
|
var t;
|
|
@@ -2052,7 +2458,7 @@ let ht = class extends HTMLElement {
|
|
|
2052
2458
|
var r;
|
|
2053
2459
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
2054
2460
|
if (n !== void 0 && s.reflect === !0) {
|
|
2055
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
2461
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : _e).toAttribute(e, s.type);
|
|
2056
2462
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
2057
2463
|
}
|
|
2058
2464
|
}
|
|
@@ -2060,7 +2466,7 @@ let ht = class extends HTMLElement {
|
|
|
2060
2466
|
var r, s;
|
|
2061
2467
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
2062
2468
|
if (i !== void 0 && this._$Em !== i) {
|
|
2063
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
2469
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : _e;
|
|
2064
2470
|
this._$Em = i;
|
|
2065
2471
|
const c = l.fromAttribute(e, a.type);
|
|
2066
2472
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -2070,7 +2476,7 @@ let ht = class extends HTMLElement {
|
|
|
2070
2476
|
var s;
|
|
2071
2477
|
if (t !== void 0) {
|
|
2072
2478
|
const n = this.constructor, i = this[t];
|
|
2073
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
2479
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? nr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
2074
2480
|
this.C(t, e, r);
|
|
2075
2481
|
}
|
|
2076
2482
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -2146,13 +2552,13 @@ let ht = class extends HTMLElement {
|
|
|
2146
2552
|
firstUpdated(t) {
|
|
2147
2553
|
}
|
|
2148
2554
|
};
|
|
2149
|
-
|
|
2555
|
+
pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Ct("elementProperties")] = /* @__PURE__ */ new Map(), pt[Ct("finalized")] = /* @__PURE__ */ new Map(), is == null || is({ ReactiveElement: pt }), (K.reactiveElementVersions ?? (K.reactiveElementVersions = [])).push("2.1.1");
|
|
2150
2556
|
/**
|
|
2151
2557
|
* @license
|
|
2152
2558
|
* Copyright 2017 Google LLC
|
|
2153
2559
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2154
2560
|
*/
|
|
2155
|
-
const
|
|
2561
|
+
const zn = { attribute: !0, type: String, converter: _e, reflect: !1, hasChanged: nr }, jn = (o = zn, t, e) => {
|
|
2156
2562
|
const { kind: r, metadata: s } = e;
|
|
2157
2563
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
2158
2564
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -2174,16 +2580,16 @@ const Fi = { attribute: !0, type: String, converter: fe, reflect: !1, hasChanged
|
|
|
2174
2580
|
throw Error("Unsupported decorator location: " + r);
|
|
2175
2581
|
};
|
|
2176
2582
|
function P(o) {
|
|
2177
|
-
return (t, e) => typeof e == "object" ?
|
|
2583
|
+
return (t, e) => typeof e == "object" ? jn(o, t, e) : ((r, s, n) => {
|
|
2178
2584
|
const i = s.hasOwnProperty(n);
|
|
2179
2585
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
2180
2586
|
})(o, t, e);
|
|
2181
2587
|
}
|
|
2182
|
-
const
|
|
2183
|
-
var
|
|
2184
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
2588
|
+
const Tn = ':host{display:block}.form-checkbox{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);--formRadioCheckboxHeight: 1.25rem;--checkmarkHeight: .625rem;--radioHeight: .625rem}.form-checkbox input[type=checkbox],.form-checkbox input[type=radio]{position:absolute;opacity:0}.form-checkbox input[type=checkbox]+label,.form-checkbox input[type=radio]+label{display:flex;position:relative;width:100%;max-width:555px;padding-left:28px;line-height:var(--formRadioCheckboxHeight);cursor:pointer}.form-checkbox input[type=checkbox]+label .checkbox-control,.form-checkbox input[type=radio]+label .checkbox-control{content:"";display:block;position:absolute;width:var(--formRadioCheckboxHeight);height:var(--formRadioCheckboxHeight);top:0;left:0;background-color:var(--ucds-color-palette-white);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);transition:background-color .5s ease,border-color .5s ease}.form-checkbox input[type=checkbox]:hover+label .checkbox-control,.form-checkbox input[type=radio]:hover+label .checkbox-control{border-color:var(--ucds-color-forms-input-border-hover)}.form-checkbox input[type=checkbox]:active:not(:disabled)+label .checkbox-control,.form-checkbox input[type=checkbox]:focus:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio]:active:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio]:focus:not(:disabled)+label .checkbox-control{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-checkbox input[type=checkbox]:checked+label .checkbox-control,.form-checkbox input[type=radio]:checked+label .checkbox-control{background-color:var(--ucds-color-forms-input-background-selected);border-color:var(--ucds-color-forms-input-border-selected)}.form-checkbox input[type=checkbox]:checked+label .checkbox-control ucds-icon,.form-checkbox input[type=radio]:checked+label .checkbox-control ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.form-checkbox input[type=checkbox]:disabled+label,.form-checkbox input[type=radio]:disabled+label{color:var(--ucds-color-text-disabled);cursor:default}.form-checkbox input[type=checkbox]:disabled+label .checkbox-control,.form-checkbox input[type=radio]:disabled+label .checkbox-control{background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-checkbox input[type=checkbox]:disabled:checked+label .checkbox-control,.form-checkbox input[type=radio]:disabled:checked+label .checkbox-control{background-color:var(--ucds-color-forms-input-background-disabled);border-color:var(--ucds-color-forms-input-border-disabled)}.form-checkbox input[type=checkbox][error]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=checkbox][errors]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio][error]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio][errors]:not(:disabled)+label .checkbox-control{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-checkbox input[type=checkbox][error]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=checkbox][errors]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=radio][error]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=radio][errors]:not(:disabled)+label .checkbox-control ucds-icon{color:var(--ucds-color-feedback-error-light)}.form-checkbox input[type=checkbox]+label .checkbox-control{border-radius:4px}';
|
|
2589
|
+
var qn = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, S = (o, t, e, r) => {
|
|
2590
|
+
for (var s = r > 1 ? void 0 : r ? Dn(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
2185
2591
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
2186
|
-
return r && s &&
|
|
2592
|
+
return r && s && qn(t, e, s), s;
|
|
2187
2593
|
};
|
|
2188
2594
|
let y = class extends d {
|
|
2189
2595
|
constructor() {
|
|
@@ -2246,7 +2652,7 @@ let y = class extends d {
|
|
|
2246
2652
|
y.styles = [
|
|
2247
2653
|
d.styles,
|
|
2248
2654
|
$.styles,
|
|
2249
|
-
|
|
2655
|
+
u(Tn)
|
|
2250
2656
|
];
|
|
2251
2657
|
y.formAssociated = !0;
|
|
2252
2658
|
S([
|
|
@@ -2280,15 +2686,15 @@ S([
|
|
|
2280
2686
|
P({ type: String, attribute: "help-text" })
|
|
2281
2687
|
], y.prototype, "helpText", 2);
|
|
2282
2688
|
y = S([
|
|
2283
|
-
|
|
2689
|
+
Sn("ucds-checkbox")
|
|
2284
2690
|
], y);
|
|
2285
|
-
|
|
2691
|
+
v();
|
|
2286
2692
|
/**
|
|
2287
2693
|
* @license
|
|
2288
2694
|
* Copyright 2017 Google LLC
|
|
2289
2695
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2290
2696
|
*/
|
|
2291
|
-
const
|
|
2697
|
+
const Ln = (o) => (t, e) => {
|
|
2292
2698
|
e !== void 0 ? e.addInitializer(() => {
|
|
2293
2699
|
customElements.define(o, t);
|
|
2294
2700
|
}) : customElements.define(o, t);
|
|
@@ -2298,18 +2704,18 @@ const Zi = (o) => (t, e) => {
|
|
|
2298
2704
|
* Copyright 2019 Google LLC
|
|
2299
2705
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2300
2706
|
*/
|
|
2301
|
-
const
|
|
2302
|
-
let
|
|
2707
|
+
const oe = globalThis, ar = oe.ShadowRoot && (oe.ShadyCSS === void 0 || oe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $o = Symbol(), as = /* @__PURE__ */ new WeakMap();
|
|
2708
|
+
let Nn = class {
|
|
2303
2709
|
constructor(t, e, r) {
|
|
2304
|
-
if (this._$cssResult$ = !0, r !==
|
|
2710
|
+
if (this._$cssResult$ = !0, r !== $o) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2305
2711
|
this.cssText = t, this.t = e;
|
|
2306
2712
|
}
|
|
2307
2713
|
get styleSheet() {
|
|
2308
2714
|
let t = this.o;
|
|
2309
2715
|
const e = this.t;
|
|
2310
|
-
if (
|
|
2716
|
+
if (ar && t === void 0) {
|
|
2311
2717
|
const r = e !== void 0 && e.length === 1;
|
|
2312
|
-
r && (t =
|
|
2718
|
+
r && (t = as.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && as.set(e, t));
|
|
2313
2719
|
}
|
|
2314
2720
|
return t;
|
|
2315
2721
|
}
|
|
@@ -2317,26 +2723,26 @@ let tn = class {
|
|
|
2317
2723
|
return this.cssText;
|
|
2318
2724
|
}
|
|
2319
2725
|
};
|
|
2320
|
-
const
|
|
2321
|
-
if (
|
|
2726
|
+
const In = (o) => new Nn(typeof o == "string" ? o : o + "", void 0, $o), Bn = (o, t) => {
|
|
2727
|
+
if (ar) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
2322
2728
|
else for (const e of t) {
|
|
2323
|
-
const r = document.createElement("style"), s =
|
|
2729
|
+
const r = document.createElement("style"), s = oe.litNonce;
|
|
2324
2730
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
2325
2731
|
}
|
|
2326
|
-
},
|
|
2732
|
+
}, ls = ar ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
2327
2733
|
let e = "";
|
|
2328
2734
|
for (const r of t.cssRules) e += r.cssText;
|
|
2329
|
-
return
|
|
2735
|
+
return In(e);
|
|
2330
2736
|
})(o) : o;
|
|
2331
2737
|
/**
|
|
2332
2738
|
* @license
|
|
2333
2739
|
* Copyright 2017 Google LLC
|
|
2334
2740
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2335
2741
|
*/
|
|
2336
|
-
const { is:
|
|
2742
|
+
const { is: Vn, defineProperty: Kn, getOwnPropertyDescriptor: Jn, getOwnPropertyNames: Hn, getOwnPropertySymbols: Wn, getPrototypeOf: Fn } = Object, J = globalThis, cs = J.trustedTypes, Gn = cs ? cs.emptyScript : "", hs = J.reactiveElementPolyfillSupport, kt = (o, t) => o, Ee = { toAttribute(o, t) {
|
|
2337
2743
|
switch (t) {
|
|
2338
2744
|
case Boolean:
|
|
2339
|
-
o = o ?
|
|
2745
|
+
o = o ? Gn : null;
|
|
2340
2746
|
break;
|
|
2341
2747
|
case Object:
|
|
2342
2748
|
case Array:
|
|
@@ -2361,23 +2767,23 @@ const { is: sn, defineProperty: on, getOwnPropertyDescriptor: nn, getOwnProperty
|
|
|
2361
2767
|
}
|
|
2362
2768
|
}
|
|
2363
2769
|
return e;
|
|
2364
|
-
} },
|
|
2365
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
2366
|
-
let
|
|
2770
|
+
} }, lr = (o, t) => !Vn(o, t), ds = { attribute: !0, type: String, converter: Ee, reflect: !1, useDefault: !1, hasChanged: lr };
|
|
2771
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), J.litPropertyMetadata ?? (J.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
2772
|
+
let ut = class extends HTMLElement {
|
|
2367
2773
|
static addInitializer(t) {
|
|
2368
2774
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
2369
2775
|
}
|
|
2370
2776
|
static get observedAttributes() {
|
|
2371
2777
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2372
2778
|
}
|
|
2373
|
-
static createProperty(t, e =
|
|
2779
|
+
static createProperty(t, e = ds) {
|
|
2374
2780
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
2375
2781
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
2376
|
-
s !== void 0 &&
|
|
2782
|
+
s !== void 0 && Kn(this.prototype, t, s);
|
|
2377
2783
|
}
|
|
2378
2784
|
}
|
|
2379
2785
|
static getPropertyDescriptor(t, e, r) {
|
|
2380
|
-
const { get: s, set: n } =
|
|
2786
|
+
const { get: s, set: n } = Jn(this.prototype, t) ?? { get() {
|
|
2381
2787
|
return this[e];
|
|
2382
2788
|
}, set(i) {
|
|
2383
2789
|
this[e] = i;
|
|
@@ -2388,17 +2794,17 @@ let dt = class extends HTMLElement {
|
|
|
2388
2794
|
}, configurable: !0, enumerable: !0 };
|
|
2389
2795
|
}
|
|
2390
2796
|
static getPropertyOptions(t) {
|
|
2391
|
-
return this.elementProperties.get(t) ??
|
|
2797
|
+
return this.elementProperties.get(t) ?? ds;
|
|
2392
2798
|
}
|
|
2393
2799
|
static _$Ei() {
|
|
2394
|
-
if (this.hasOwnProperty(
|
|
2395
|
-
const t =
|
|
2800
|
+
if (this.hasOwnProperty(kt("elementProperties"))) return;
|
|
2801
|
+
const t = Fn(this);
|
|
2396
2802
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
2397
2803
|
}
|
|
2398
2804
|
static finalize() {
|
|
2399
|
-
if (this.hasOwnProperty(
|
|
2400
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
2401
|
-
const e = this.properties, r = [...
|
|
2805
|
+
if (this.hasOwnProperty(kt("finalized"))) return;
|
|
2806
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(kt("properties"))) {
|
|
2807
|
+
const e = this.properties, r = [...Hn(e), ...Wn(e)];
|
|
2402
2808
|
for (const s of r) this.createProperty(s, e[s]);
|
|
2403
2809
|
}
|
|
2404
2810
|
const t = this[Symbol.metadata];
|
|
@@ -2417,8 +2823,8 @@ let dt = class extends HTMLElement {
|
|
|
2417
2823
|
const e = [];
|
|
2418
2824
|
if (Array.isArray(t)) {
|
|
2419
2825
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
2420
|
-
for (const s of r) e.unshift(
|
|
2421
|
-
} else t !== void 0 && e.push(
|
|
2826
|
+
for (const s of r) e.unshift(ls(s));
|
|
2827
|
+
} else t !== void 0 && e.push(ls(t));
|
|
2422
2828
|
return e;
|
|
2423
2829
|
}
|
|
2424
2830
|
static _$Eu(t, e) {
|
|
@@ -2447,7 +2853,7 @@ let dt = class extends HTMLElement {
|
|
|
2447
2853
|
}
|
|
2448
2854
|
createRenderRoot() {
|
|
2449
2855
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2450
|
-
return
|
|
2856
|
+
return Bn(t, this.constructor.elementStyles), t;
|
|
2451
2857
|
}
|
|
2452
2858
|
connectedCallback() {
|
|
2453
2859
|
var t;
|
|
@@ -2472,7 +2878,7 @@ let dt = class extends HTMLElement {
|
|
|
2472
2878
|
var r;
|
|
2473
2879
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
2474
2880
|
if (n !== void 0 && s.reflect === !0) {
|
|
2475
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
2881
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Ee).toAttribute(e, s.type);
|
|
2476
2882
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
2477
2883
|
}
|
|
2478
2884
|
}
|
|
@@ -2480,7 +2886,7 @@ let dt = class extends HTMLElement {
|
|
|
2480
2886
|
var r, s;
|
|
2481
2887
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
2482
2888
|
if (i !== void 0 && this._$Em !== i) {
|
|
2483
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
2889
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Ee;
|
|
2484
2890
|
this._$Em = i;
|
|
2485
2891
|
const c = l.fromAttribute(e, a.type);
|
|
2486
2892
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -2490,7 +2896,7 @@ let dt = class extends HTMLElement {
|
|
|
2490
2896
|
var s;
|
|
2491
2897
|
if (t !== void 0) {
|
|
2492
2898
|
const n = this.constructor, i = this[t];
|
|
2493
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
2899
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? lr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
2494
2900
|
this.C(t, e, r);
|
|
2495
2901
|
}
|
|
2496
2902
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -2566,13 +2972,13 @@ let dt = class extends HTMLElement {
|
|
|
2566
2972
|
firstUpdated(t) {
|
|
2567
2973
|
}
|
|
2568
2974
|
};
|
|
2569
|
-
|
|
2975
|
+
ut.elementStyles = [], ut.shadowRootOptions = { mode: "open" }, ut[kt("elementProperties")] = /* @__PURE__ */ new Map(), ut[kt("finalized")] = /* @__PURE__ */ new Map(), hs == null || hs({ ReactiveElement: ut }), (J.reactiveElementVersions ?? (J.reactiveElementVersions = [])).push("2.1.1");
|
|
2570
2976
|
/**
|
|
2571
2977
|
* @license
|
|
2572
2978
|
* Copyright 2017 Google LLC
|
|
2573
2979
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2574
2980
|
*/
|
|
2575
|
-
const
|
|
2981
|
+
const Xn = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged: lr }, Yn = (o = Xn, t, e) => {
|
|
2576
2982
|
const { kind: r, metadata: s } = e;
|
|
2577
2983
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
2578
2984
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -2593,8 +2999,8 @@ const dn = { attribute: !0, type: String, converter: ve, reflect: !1, hasChanged
|
|
|
2593
2999
|
}
|
|
2594
3000
|
throw Error("Unsupported decorator location: " + r);
|
|
2595
3001
|
};
|
|
2596
|
-
function
|
|
2597
|
-
return (t, e) => typeof e == "object" ?
|
|
3002
|
+
function yo(o) {
|
|
3003
|
+
return (t, e) => typeof e == "object" ? Yn(o, t, e) : ((r, s, n) => {
|
|
2598
3004
|
const i = s.hasOwnProperty(n);
|
|
2599
3005
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
2600
3006
|
})(o, t, e);
|
|
@@ -2604,27 +3010,27 @@ function Ys(o) {
|
|
|
2604
3010
|
* Copyright 2017 Google LLC
|
|
2605
3011
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2606
3012
|
*/
|
|
2607
|
-
const
|
|
3013
|
+
const Qn = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(o, t, e), e);
|
|
2608
3014
|
/**
|
|
2609
3015
|
* @license
|
|
2610
3016
|
* Copyright 2017 Google LLC
|
|
2611
3017
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2612
3018
|
*/
|
|
2613
|
-
function
|
|
3019
|
+
function Zn(o) {
|
|
2614
3020
|
return (t, e) => {
|
|
2615
3021
|
const { slot: r } = {}, s = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
2616
|
-
return
|
|
3022
|
+
return Qn(t, e, { get() {
|
|
2617
3023
|
var n;
|
|
2618
3024
|
const i = (n = this.renderRoot) == null ? void 0 : n.querySelector(s);
|
|
2619
3025
|
return (i == null ? void 0 : i.assignedNodes(o)) ?? [];
|
|
2620
3026
|
} });
|
|
2621
3027
|
};
|
|
2622
3028
|
}
|
|
2623
|
-
const
|
|
2624
|
-
var
|
|
2625
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3029
|
+
const ta = ":host{display:block;max-width:100%}.chip{position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:4px;max-width:100%;height:32px;padding:4px 10px 4px 12px;border-radius:50px;border:1px solid var(--ucds-color-action-secondary-rest);transition:background-color .5s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.chip .label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chip .label,.chip ucds-icon{color:var(--ucds-color-action-secondary-rest)}.chip:hover .label,.chip:hover ucds-icon,.chip:focus .label,.chip:focus ucds-icon,.chip:active .label,.chip:active ucds-icon{color:var(--ucds-color-text-primary-inverse)}.chip:hover,.chip:focus{background-color:var(--ucds-color-action-secondary-hover);border-color:var(--ucds-color-action-secondary-hover)}.chip:active{background-color:var(--ucds-color-action-secondary-active);border-color:var(--ucds-color-action-secondary-active);height:30px;padding-right:9px;padding-left:11px;margin:1px}.chip:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}";
|
|
3030
|
+
var ea = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, Me = (o, t, e, r) => {
|
|
3031
|
+
for (var s = r > 1 ? void 0 : r ? ra(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
2626
3032
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
2627
|
-
return r && s &&
|
|
3033
|
+
return r && s && ea(t, e, s), s;
|
|
2628
3034
|
};
|
|
2629
3035
|
let H = class extends d {
|
|
2630
3036
|
constructor() {
|
|
@@ -2676,27 +3082,27 @@ let H = class extends d {
|
|
|
2676
3082
|
};
|
|
2677
3083
|
H.styles = [
|
|
2678
3084
|
d.styles,
|
|
2679
|
-
|
|
3085
|
+
u(ta)
|
|
2680
3086
|
];
|
|
2681
|
-
|
|
2682
|
-
|
|
3087
|
+
Me([
|
|
3088
|
+
Zn()
|
|
2683
3089
|
], H.prototype, "_defaultSlotNodes", 2);
|
|
2684
|
-
|
|
2685
|
-
|
|
3090
|
+
Me([
|
|
3091
|
+
yo({ type: String })
|
|
2686
3092
|
], H.prototype, "ariaLabel", 2);
|
|
2687
|
-
|
|
2688
|
-
|
|
3093
|
+
Me([
|
|
3094
|
+
yo({ type: String, attribute: "chip-id" })
|
|
2689
3095
|
], H.prototype, "chipID", 2);
|
|
2690
|
-
H =
|
|
2691
|
-
|
|
3096
|
+
H = Me([
|
|
3097
|
+
Ln("ucds-chip")
|
|
2692
3098
|
], H);
|
|
2693
|
-
|
|
3099
|
+
v();
|
|
2694
3100
|
/**
|
|
2695
3101
|
* @license
|
|
2696
3102
|
* Copyright 2017 Google LLC
|
|
2697
3103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2698
3104
|
*/
|
|
2699
|
-
const
|
|
3105
|
+
const sa = (o) => (t, e) => {
|
|
2700
3106
|
e !== void 0 ? e.addInitializer(() => {
|
|
2701
3107
|
customElements.define(o, t);
|
|
2702
3108
|
}) : customElements.define(o, t);
|
|
@@ -2706,18 +3112,18 @@ const mn = (o) => (t, e) => {
|
|
|
2706
3112
|
* Copyright 2019 Google LLC
|
|
2707
3113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2708
3114
|
*/
|
|
2709
|
-
const
|
|
2710
|
-
let
|
|
3115
|
+
const ie = globalThis, cr = ie.ShadowRoot && (ie.ShadyCSS === void 0 || ie.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mo = Symbol(), ps = /* @__PURE__ */ new WeakMap();
|
|
3116
|
+
let oa = class {
|
|
2711
3117
|
constructor(t, e, r) {
|
|
2712
|
-
if (this._$cssResult$ = !0, r !==
|
|
3118
|
+
if (this._$cssResult$ = !0, r !== mo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2713
3119
|
this.cssText = t, this.t = e;
|
|
2714
3120
|
}
|
|
2715
3121
|
get styleSheet() {
|
|
2716
3122
|
let t = this.o;
|
|
2717
3123
|
const e = this.t;
|
|
2718
|
-
if (
|
|
3124
|
+
if (cr && t === void 0) {
|
|
2719
3125
|
const r = e !== void 0 && e.length === 1;
|
|
2720
|
-
r && (t =
|
|
3126
|
+
r && (t = ps.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && ps.set(e, t));
|
|
2721
3127
|
}
|
|
2722
3128
|
return t;
|
|
2723
3129
|
}
|
|
@@ -2725,26 +3131,26 @@ let bn = class {
|
|
|
2725
3131
|
return this.cssText;
|
|
2726
3132
|
}
|
|
2727
3133
|
};
|
|
2728
|
-
const
|
|
2729
|
-
if (
|
|
3134
|
+
const ia = (o) => new oa(typeof o == "string" ? o : o + "", void 0, mo), na = (o, t) => {
|
|
3135
|
+
if (cr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
2730
3136
|
else for (const e of t) {
|
|
2731
|
-
const r = document.createElement("style"), s =
|
|
3137
|
+
const r = document.createElement("style"), s = ie.litNonce;
|
|
2732
3138
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
2733
3139
|
}
|
|
2734
|
-
},
|
|
3140
|
+
}, us = cr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
2735
3141
|
let e = "";
|
|
2736
3142
|
for (const r of t.cssRules) e += r.cssText;
|
|
2737
|
-
return
|
|
3143
|
+
return ia(e);
|
|
2738
3144
|
})(o) : o;
|
|
2739
3145
|
/**
|
|
2740
3146
|
* @license
|
|
2741
3147
|
* Copyright 2017 Google LLC
|
|
2742
3148
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2743
3149
|
*/
|
|
2744
|
-
const { is:
|
|
3150
|
+
const { is: aa, defineProperty: la, getOwnPropertyDescriptor: ca, getOwnPropertyNames: ha, getOwnPropertySymbols: da, getPrototypeOf: pa } = Object, W = globalThis, fs = W.trustedTypes, ua = fs ? fs.emptyScript : "", vs = W.reactiveElementPolyfillSupport, At = (o, t) => o, De = { toAttribute(o, t) {
|
|
2745
3151
|
switch (t) {
|
|
2746
3152
|
case Boolean:
|
|
2747
|
-
o = o ?
|
|
3153
|
+
o = o ? ua : null;
|
|
2748
3154
|
break;
|
|
2749
3155
|
case Object:
|
|
2750
3156
|
case Array:
|
|
@@ -2769,23 +3175,23 @@ const { is: En, defineProperty: Sn, getOwnPropertyDescriptor: wn, getOwnProperty
|
|
|
2769
3175
|
}
|
|
2770
3176
|
}
|
|
2771
3177
|
return e;
|
|
2772
|
-
} },
|
|
2773
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
2774
|
-
let
|
|
3178
|
+
} }, bo = (o, t) => !aa(o, t), $s = { attribute: !0, type: String, converter: De, reflect: !1, useDefault: !1, hasChanged: bo };
|
|
3179
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3180
|
+
let ft = class extends HTMLElement {
|
|
2775
3181
|
static addInitializer(t) {
|
|
2776
3182
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
2777
3183
|
}
|
|
2778
3184
|
static get observedAttributes() {
|
|
2779
3185
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2780
3186
|
}
|
|
2781
|
-
static createProperty(t, e =
|
|
3187
|
+
static createProperty(t, e = $s) {
|
|
2782
3188
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
2783
3189
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
2784
|
-
s !== void 0 &&
|
|
3190
|
+
s !== void 0 && la(this.prototype, t, s);
|
|
2785
3191
|
}
|
|
2786
3192
|
}
|
|
2787
3193
|
static getPropertyDescriptor(t, e, r) {
|
|
2788
|
-
const { get: s, set: n } =
|
|
3194
|
+
const { get: s, set: n } = ca(this.prototype, t) ?? { get() {
|
|
2789
3195
|
return this[e];
|
|
2790
3196
|
}, set(i) {
|
|
2791
3197
|
this[e] = i;
|
|
@@ -2796,17 +3202,17 @@ let pt = class extends HTMLElement {
|
|
|
2796
3202
|
}, configurable: !0, enumerable: !0 };
|
|
2797
3203
|
}
|
|
2798
3204
|
static getPropertyOptions(t) {
|
|
2799
|
-
return this.elementProperties.get(t) ??
|
|
3205
|
+
return this.elementProperties.get(t) ?? $s;
|
|
2800
3206
|
}
|
|
2801
3207
|
static _$Ei() {
|
|
2802
|
-
if (this.hasOwnProperty(
|
|
2803
|
-
const t =
|
|
3208
|
+
if (this.hasOwnProperty(At("elementProperties"))) return;
|
|
3209
|
+
const t = pa(this);
|
|
2804
3210
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
2805
3211
|
}
|
|
2806
3212
|
static finalize() {
|
|
2807
|
-
if (this.hasOwnProperty(
|
|
2808
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
2809
|
-
const e = this.properties, r = [...
|
|
3213
|
+
if (this.hasOwnProperty(At("finalized"))) return;
|
|
3214
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(At("properties"))) {
|
|
3215
|
+
const e = this.properties, r = [...ha(e), ...da(e)];
|
|
2810
3216
|
for (const s of r) this.createProperty(s, e[s]);
|
|
2811
3217
|
}
|
|
2812
3218
|
const t = this[Symbol.metadata];
|
|
@@ -2825,8 +3231,8 @@ let pt = class extends HTMLElement {
|
|
|
2825
3231
|
const e = [];
|
|
2826
3232
|
if (Array.isArray(t)) {
|
|
2827
3233
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
2828
|
-
for (const s of r) e.unshift(
|
|
2829
|
-
} else t !== void 0 && e.push(
|
|
3234
|
+
for (const s of r) e.unshift(us(s));
|
|
3235
|
+
} else t !== void 0 && e.push(us(t));
|
|
2830
3236
|
return e;
|
|
2831
3237
|
}
|
|
2832
3238
|
static _$Eu(t, e) {
|
|
@@ -2855,7 +3261,7 @@ let pt = class extends HTMLElement {
|
|
|
2855
3261
|
}
|
|
2856
3262
|
createRenderRoot() {
|
|
2857
3263
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2858
|
-
return
|
|
3264
|
+
return na(t, this.constructor.elementStyles), t;
|
|
2859
3265
|
}
|
|
2860
3266
|
connectedCallback() {
|
|
2861
3267
|
var t;
|
|
@@ -2880,7 +3286,7 @@ let pt = class extends HTMLElement {
|
|
|
2880
3286
|
var r;
|
|
2881
3287
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
2882
3288
|
if (n !== void 0 && s.reflect === !0) {
|
|
2883
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
3289
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : De).toAttribute(e, s.type);
|
|
2884
3290
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
2885
3291
|
}
|
|
2886
3292
|
}
|
|
@@ -2888,7 +3294,7 @@ let pt = class extends HTMLElement {
|
|
|
2888
3294
|
var r, s;
|
|
2889
3295
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
2890
3296
|
if (i !== void 0 && this._$Em !== i) {
|
|
2891
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
3297
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : De;
|
|
2892
3298
|
this._$Em = i;
|
|
2893
3299
|
const c = l.fromAttribute(e, a.type);
|
|
2894
3300
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -2898,7 +3304,7 @@ let pt = class extends HTMLElement {
|
|
|
2898
3304
|
var s;
|
|
2899
3305
|
if (t !== void 0) {
|
|
2900
3306
|
const n = this.constructor, i = this[t];
|
|
2901
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
3307
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? bo)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
2902
3308
|
this.C(t, e, r);
|
|
2903
3309
|
}
|
|
2904
3310
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -2974,35 +3380,35 @@ let pt = class extends HTMLElement {
|
|
|
2974
3380
|
firstUpdated(t) {
|
|
2975
3381
|
}
|
|
2976
3382
|
};
|
|
2977
|
-
|
|
3383
|
+
ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, ft[At("elementProperties")] = /* @__PURE__ */ new Map(), ft[At("finalized")] = /* @__PURE__ */ new Map(), vs == null || vs({ ReactiveElement: ft }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.1.1");
|
|
2978
3384
|
/**
|
|
2979
3385
|
* @license
|
|
2980
3386
|
* Copyright 2017 Google LLC
|
|
2981
3387
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2982
3388
|
*/
|
|
2983
|
-
const
|
|
3389
|
+
const fa = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(o, t, e), e);
|
|
2984
3390
|
/**
|
|
2985
3391
|
* @license
|
|
2986
3392
|
* Copyright 2021 Google LLC
|
|
2987
3393
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2988
3394
|
*/
|
|
2989
|
-
function
|
|
3395
|
+
function va(o) {
|
|
2990
3396
|
return (t, e) => {
|
|
2991
3397
|
const { slot: r, selector: s } = {}, n = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
2992
|
-
return
|
|
3398
|
+
return fa(t, e, { get() {
|
|
2993
3399
|
var i;
|
|
2994
3400
|
const a = (i = this.renderRoot) == null ? void 0 : i.querySelector(n), l = (a == null ? void 0 : a.assignedElements(o)) ?? [];
|
|
2995
3401
|
return s === void 0 ? l : l.filter((c) => c.matches(s));
|
|
2996
3402
|
} });
|
|
2997
3403
|
};
|
|
2998
3404
|
}
|
|
2999
|
-
const
|
|
3000
|
-
var
|
|
3001
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3405
|
+
const $a = ":host{display:block}.chip-group{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px}";
|
|
3406
|
+
var ya = Object.defineProperty, ma = Object.getOwnPropertyDescriptor, go = (o, t, e, r) => {
|
|
3407
|
+
for (var s = r > 1 ? void 0 : r ? ma(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
3002
3408
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
3003
|
-
return r && s &&
|
|
3409
|
+
return r && s && ya(t, e, s), s;
|
|
3004
3410
|
};
|
|
3005
|
-
let
|
|
3411
|
+
let Se = class extends d {
|
|
3006
3412
|
// Focus the next sibling of the Chip being removed.
|
|
3007
3413
|
_focusNextSiblingOf(t) {
|
|
3008
3414
|
const e = this._defaultSlotNodes, r = e.indexOf(t);
|
|
@@ -3032,23 +3438,23 @@ let $e = class extends d {
|
|
|
3032
3438
|
`;
|
|
3033
3439
|
}
|
|
3034
3440
|
};
|
|
3035
|
-
|
|
3441
|
+
Se.styles = [
|
|
3036
3442
|
d.styles,
|
|
3037
|
-
|
|
3443
|
+
u($a)
|
|
3038
3444
|
];
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
],
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
],
|
|
3045
|
-
|
|
3445
|
+
go([
|
|
3446
|
+
va()
|
|
3447
|
+
], Se.prototype, "_defaultSlotNodes", 2);
|
|
3448
|
+
Se = go([
|
|
3449
|
+
sa("ucds-chip-group")
|
|
3450
|
+
], Se);
|
|
3451
|
+
v();
|
|
3046
3452
|
/**
|
|
3047
3453
|
* @license
|
|
3048
3454
|
* Copyright 2017 Google LLC
|
|
3049
3455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3050
3456
|
*/
|
|
3051
|
-
const
|
|
3457
|
+
const _o = (o) => (t, e) => {
|
|
3052
3458
|
e !== void 0 ? e.addInitializer(() => {
|
|
3053
3459
|
customElements.define(o, t);
|
|
3054
3460
|
}) : customElements.define(o, t);
|
|
@@ -3058,18 +3464,18 @@ const eo = (o) => (t, e) => {
|
|
|
3058
3464
|
* Copyright 2019 Google LLC
|
|
3059
3465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3060
3466
|
*/
|
|
3061
|
-
const
|
|
3062
|
-
let
|
|
3467
|
+
const ne = globalThis, hr = ne.ShadowRoot && (ne.ShadyCSS === void 0 || ne.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Eo = Symbol(), ys = /* @__PURE__ */ new WeakMap();
|
|
3468
|
+
let ba = class {
|
|
3063
3469
|
constructor(t, e, r) {
|
|
3064
|
-
if (this._$cssResult$ = !0, r !==
|
|
3470
|
+
if (this._$cssResult$ = !0, r !== Eo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3065
3471
|
this.cssText = t, this.t = e;
|
|
3066
3472
|
}
|
|
3067
3473
|
get styleSheet() {
|
|
3068
3474
|
let t = this.o;
|
|
3069
3475
|
const e = this.t;
|
|
3070
|
-
if (
|
|
3476
|
+
if (hr && t === void 0) {
|
|
3071
3477
|
const r = e !== void 0 && e.length === 1;
|
|
3072
|
-
r && (t =
|
|
3478
|
+
r && (t = ys.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && ys.set(e, t));
|
|
3073
3479
|
}
|
|
3074
3480
|
return t;
|
|
3075
3481
|
}
|
|
@@ -3077,26 +3483,26 @@ let zn = class {
|
|
|
3077
3483
|
return this.cssText;
|
|
3078
3484
|
}
|
|
3079
3485
|
};
|
|
3080
|
-
const
|
|
3081
|
-
if (
|
|
3486
|
+
const ga = (o) => new ba(typeof o == "string" ? o : o + "", void 0, Eo), _a = (o, t) => {
|
|
3487
|
+
if (hr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3082
3488
|
else for (const e of t) {
|
|
3083
|
-
const r = document.createElement("style"), s =
|
|
3489
|
+
const r = document.createElement("style"), s = ne.litNonce;
|
|
3084
3490
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
3085
3491
|
}
|
|
3086
|
-
},
|
|
3492
|
+
}, ms = hr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3087
3493
|
let e = "";
|
|
3088
3494
|
for (const r of t.cssRules) e += r.cssText;
|
|
3089
|
-
return
|
|
3495
|
+
return ga(e);
|
|
3090
3496
|
})(o) : o;
|
|
3091
3497
|
/**
|
|
3092
3498
|
* @license
|
|
3093
3499
|
* Copyright 2017 Google LLC
|
|
3094
3500
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3095
3501
|
*/
|
|
3096
|
-
const { is:
|
|
3502
|
+
const { is: Ea, defineProperty: Sa, getOwnPropertyDescriptor: wa, getOwnPropertyNames: Pa, getOwnPropertySymbols: xa, getPrototypeOf: Oa } = Object, F = globalThis, bs = F.trustedTypes, Ua = bs ? bs.emptyScript : "", gs = F.reactiveElementPolyfillSupport, Rt = (o, t) => o, we = { toAttribute(o, t) {
|
|
3097
3503
|
switch (t) {
|
|
3098
3504
|
case Boolean:
|
|
3099
|
-
o = o ?
|
|
3505
|
+
o = o ? Ua : null;
|
|
3100
3506
|
break;
|
|
3101
3507
|
case Object:
|
|
3102
3508
|
case Array:
|
|
@@ -3121,23 +3527,23 @@ const { is: qn, defineProperty: Dn, getOwnPropertyDescriptor: Ln, getOwnProperty
|
|
|
3121
3527
|
}
|
|
3122
3528
|
}
|
|
3123
3529
|
return e;
|
|
3124
|
-
} },
|
|
3125
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
3126
|
-
let
|
|
3530
|
+
} }, dr = (o, t) => !Ea(o, t), _s = { attribute: !0, type: String, converter: we, reflect: !1, useDefault: !1, hasChanged: dr };
|
|
3531
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), F.litPropertyMetadata ?? (F.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3532
|
+
let vt = class extends HTMLElement {
|
|
3127
3533
|
static addInitializer(t) {
|
|
3128
3534
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
3129
3535
|
}
|
|
3130
3536
|
static get observedAttributes() {
|
|
3131
3537
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
3132
3538
|
}
|
|
3133
|
-
static createProperty(t, e =
|
|
3539
|
+
static createProperty(t, e = _s) {
|
|
3134
3540
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3135
3541
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
3136
|
-
s !== void 0 &&
|
|
3542
|
+
s !== void 0 && Sa(this.prototype, t, s);
|
|
3137
3543
|
}
|
|
3138
3544
|
}
|
|
3139
3545
|
static getPropertyDescriptor(t, e, r) {
|
|
3140
|
-
const { get: s, set: n } =
|
|
3546
|
+
const { get: s, set: n } = wa(this.prototype, t) ?? { get() {
|
|
3141
3547
|
return this[e];
|
|
3142
3548
|
}, set(i) {
|
|
3143
3549
|
this[e] = i;
|
|
@@ -3148,17 +3554,17 @@ let ut = class extends HTMLElement {
|
|
|
3148
3554
|
}, configurable: !0, enumerable: !0 };
|
|
3149
3555
|
}
|
|
3150
3556
|
static getPropertyOptions(t) {
|
|
3151
|
-
return this.elementProperties.get(t) ??
|
|
3557
|
+
return this.elementProperties.get(t) ?? _s;
|
|
3152
3558
|
}
|
|
3153
3559
|
static _$Ei() {
|
|
3154
|
-
if (this.hasOwnProperty(
|
|
3155
|
-
const t =
|
|
3560
|
+
if (this.hasOwnProperty(Rt("elementProperties"))) return;
|
|
3561
|
+
const t = Oa(this);
|
|
3156
3562
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3157
3563
|
}
|
|
3158
3564
|
static finalize() {
|
|
3159
|
-
if (this.hasOwnProperty(
|
|
3160
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
3161
|
-
const e = this.properties, r = [...
|
|
3565
|
+
if (this.hasOwnProperty(Rt("finalized"))) return;
|
|
3566
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Rt("properties"))) {
|
|
3567
|
+
const e = this.properties, r = [...Pa(e), ...xa(e)];
|
|
3162
3568
|
for (const s of r) this.createProperty(s, e[s]);
|
|
3163
3569
|
}
|
|
3164
3570
|
const t = this[Symbol.metadata];
|
|
@@ -3177,8 +3583,8 @@ let ut = class extends HTMLElement {
|
|
|
3177
3583
|
const e = [];
|
|
3178
3584
|
if (Array.isArray(t)) {
|
|
3179
3585
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
3180
|
-
for (const s of r) e.unshift(
|
|
3181
|
-
} else t !== void 0 && e.push(
|
|
3586
|
+
for (const s of r) e.unshift(ms(s));
|
|
3587
|
+
} else t !== void 0 && e.push(ms(t));
|
|
3182
3588
|
return e;
|
|
3183
3589
|
}
|
|
3184
3590
|
static _$Eu(t, e) {
|
|
@@ -3207,7 +3613,7 @@ let ut = class extends HTMLElement {
|
|
|
3207
3613
|
}
|
|
3208
3614
|
createRenderRoot() {
|
|
3209
3615
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3210
|
-
return
|
|
3616
|
+
return _a(t, this.constructor.elementStyles), t;
|
|
3211
3617
|
}
|
|
3212
3618
|
connectedCallback() {
|
|
3213
3619
|
var t;
|
|
@@ -3232,7 +3638,7 @@ let ut = class extends HTMLElement {
|
|
|
3232
3638
|
var r;
|
|
3233
3639
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
3234
3640
|
if (n !== void 0 && s.reflect === !0) {
|
|
3235
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
3641
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : we).toAttribute(e, s.type);
|
|
3236
3642
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
3237
3643
|
}
|
|
3238
3644
|
}
|
|
@@ -3240,7 +3646,7 @@ let ut = class extends HTMLElement {
|
|
|
3240
3646
|
var r, s;
|
|
3241
3647
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
3242
3648
|
if (i !== void 0 && this._$Em !== i) {
|
|
3243
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
3649
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : we;
|
|
3244
3650
|
this._$Em = i;
|
|
3245
3651
|
const c = l.fromAttribute(e, a.type);
|
|
3246
3652
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -3250,7 +3656,7 @@ let ut = class extends HTMLElement {
|
|
|
3250
3656
|
var s;
|
|
3251
3657
|
if (t !== void 0) {
|
|
3252
3658
|
const n = this.constructor, i = this[t];
|
|
3253
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
3659
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? dr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
3254
3660
|
this.C(t, e, r);
|
|
3255
3661
|
}
|
|
3256
3662
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -3326,13 +3732,13 @@ let ut = class extends HTMLElement {
|
|
|
3326
3732
|
firstUpdated(t) {
|
|
3327
3733
|
}
|
|
3328
3734
|
};
|
|
3329
|
-
|
|
3735
|
+
vt.elementStyles = [], vt.shadowRootOptions = { mode: "open" }, vt[Rt("elementProperties")] = /* @__PURE__ */ new Map(), vt[Rt("finalized")] = /* @__PURE__ */ new Map(), gs == null || gs({ ReactiveElement: vt }), (F.reactiveElementVersions ?? (F.reactiveElementVersions = [])).push("2.1.1");
|
|
3330
3736
|
/**
|
|
3331
3737
|
* @license
|
|
3332
3738
|
* Copyright 2017 Google LLC
|
|
3333
3739
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3334
3740
|
*/
|
|
3335
|
-
const
|
|
3741
|
+
const Ca = { attribute: !0, type: String, converter: we, reflect: !1, hasChanged: dr }, ka = (o = Ca, t, e) => {
|
|
3336
3742
|
const { kind: r, metadata: s } = e;
|
|
3337
3743
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
3338
3744
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -3354,7 +3760,7 @@ const Kn = { attribute: !0, type: String, converter: ye, reflect: !1, hasChanged
|
|
|
3354
3760
|
throw Error("Unsupported decorator location: " + r);
|
|
3355
3761
|
};
|
|
3356
3762
|
function g(o) {
|
|
3357
|
-
return (t, e) => typeof e == "object" ?
|
|
3763
|
+
return (t, e) => typeof e == "object" ? ka(o, t, e) : ((r, s, n) => {
|
|
3358
3764
|
const i = s.hasOwnProperty(n);
|
|
3359
3765
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
3360
3766
|
})(o, t, e);
|
|
@@ -3364,7 +3770,7 @@ function g(o) {
|
|
|
3364
3770
|
* Copyright 2017 Google LLC
|
|
3365
3771
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3366
3772
|
*/
|
|
3367
|
-
function
|
|
3773
|
+
function So(o) {
|
|
3368
3774
|
return g({ ...o, state: !0, attribute: !1 });
|
|
3369
3775
|
}
|
|
3370
3776
|
/**
|
|
@@ -3372,29 +3778,29 @@ function so(o) {
|
|
|
3372
3778
|
* Copyright 2017 Google LLC
|
|
3373
3779
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3374
3780
|
*/
|
|
3375
|
-
const
|
|
3781
|
+
const Aa = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(o, t, e), e);
|
|
3376
3782
|
/**
|
|
3377
3783
|
* @license
|
|
3378
3784
|
* Copyright 2021 Google LLC
|
|
3379
3785
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3380
3786
|
*/
|
|
3381
|
-
function
|
|
3787
|
+
function Ra(o) {
|
|
3382
3788
|
return (t, e) => {
|
|
3383
3789
|
const { slot: r, selector: s } = o ?? {}, n = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
3384
|
-
return
|
|
3790
|
+
return Aa(t, e, { get() {
|
|
3385
3791
|
var i;
|
|
3386
3792
|
const a = (i = this.renderRoot) == null ? void 0 : i.querySelector(n), l = (a == null ? void 0 : a.assignedElements(o)) ?? [];
|
|
3387
3793
|
return s === void 0 ? l : l.filter((c) => c.matches(s));
|
|
3388
3794
|
} });
|
|
3389
3795
|
};
|
|
3390
3796
|
}
|
|
3391
|
-
const
|
|
3392
|
-
var
|
|
3393
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3797
|
+
const Ma = ':host{position:relative;display:block}.dropdown-wrapper{display:flex;flex-direction:column;gap:8px;align-items:start}.dropdown,.menu,.toggle,.dropdown-wrapper{min-width:115px;max-width:var(--ucds-form-element-maxwidth);width:var(--ucds-form-element-width)}.dropdown{position:relative}.toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;height:48px;padding:0 var(--ucds-form-element-horizontal-padding);font-family:var(--ucds-font-family-sans-serif);font-size:var(--ucds-font-base-size);border:var(--ucds-color-forms-input-border-rest) solid var(--ucds-form-element-border-width);border-radius:var(--ucds-form-element-border-radius);background-color:var(--ucds-color-forms-input-background-rest)}.toggle:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.toggle .selected-label-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toggle ucds-icon{color:var(--ucds-color-action-rest);transition:transform .5s ease}.toggle.error{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.toggle:hover{border-color:var(--ucds-color-forms-input-border-hover);cursor:pointer}.toggle.disabled{border-color:var(--ucds-color-forms-input-border-disabled);color:var(--ucds-color-text-disabled);cursor:not-allowed;pointer-events:none}.toggle.disabled ucds-icon{color:var(--ucds-color-forms-input-element-disabled)}.menu{position:absolute;background:var(--ucds-color-forms-input-background-rest);border:var(--ucds-color-forms-input-border-rest) solid var(--ucds-form-element-border-width);border-radius:var(--ucds-form-element-border-radius);display:none;cursor:pointer;list-style:none;margin:0;padding:12px;flex-direction:column;gap:8px;overflow-y:auto;z-index:100;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}:host([open]) .menu{display:flex}:host([open]) ucds-icon{transform:rotateX(180deg)}:host([data-open-direction="up"]) .menu{bottom:calc(100% + 8px)}:host([data-open-direction="down"]) .menu{top:calc(100% + 8px)}';
|
|
3798
|
+
var za = Object.defineProperty, ja = Object.getOwnPropertyDescriptor, b = (o, t, e, r) => {
|
|
3799
|
+
for (var s = r > 1 ? void 0 : r ? ja(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
3394
3800
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
3395
|
-
return r && s &&
|
|
3801
|
+
return r && s && za(t, e, s), s;
|
|
3396
3802
|
};
|
|
3397
|
-
let
|
|
3803
|
+
let f = class extends d {
|
|
3398
3804
|
// == Constructor ==
|
|
3399
3805
|
constructor() {
|
|
3400
3806
|
super(), this.initialValue = "", this.initialLabel = "", this._isOutsideClickListenerAttached = !1, this.scrollHandler = () => this._adjustDropdownDirection(), this.resizeObserver = new ResizeObserver(() => this._adjustDropdownDirection()), this.errorText = "", this.helpText = "", this.inputId = "", this.label = "", this.name = "", this.selectedLabel = "- Select -", this.disabled = !1, this.error = !1, this.open = !1, this.required = !1, this.activeIndex = -1, this._value = "", this.internals = this.attachInternals();
|
|
@@ -3539,7 +3945,7 @@ let u = class extends d {
|
|
|
3539
3945
|
${this.label ? h`
|
|
3540
3946
|
<form-label id="${this.inputId}-label" for="${this.inputId}" text="${this.label}" ?required="${this.required}" ?disabled="${this.disabled}"></form-label>` : p}
|
|
3541
3947
|
<div class="dropdown">
|
|
3542
|
-
<div class="toggle ${
|
|
3948
|
+
<div class="toggle ${je(t)}"
|
|
3543
3949
|
aria-disabled="${this.disabled ? !0 : p}"
|
|
3544
3950
|
role="button"
|
|
3545
3951
|
tabindex="${this.disabled ? "-1" : "0"}"
|
|
@@ -3561,60 +3967,60 @@ let u = class extends d {
|
|
|
3561
3967
|
`;
|
|
3562
3968
|
}
|
|
3563
3969
|
};
|
|
3564
|
-
|
|
3970
|
+
f.styles = [
|
|
3565
3971
|
d.styles,
|
|
3566
|
-
|
|
3972
|
+
u(Ma)
|
|
3567
3973
|
];
|
|
3568
|
-
|
|
3974
|
+
f.formAssociated = !0;
|
|
3569
3975
|
b([
|
|
3570
3976
|
g({ type: String, attribute: "error-text" })
|
|
3571
|
-
],
|
|
3977
|
+
], f.prototype, "errorText", 2);
|
|
3572
3978
|
b([
|
|
3573
3979
|
g({ type: String, attribute: "help-text" })
|
|
3574
|
-
],
|
|
3980
|
+
], f.prototype, "helpText", 2);
|
|
3575
3981
|
b([
|
|
3576
3982
|
g({ type: String, attribute: "input-id" })
|
|
3577
|
-
],
|
|
3983
|
+
], f.prototype, "inputId", 2);
|
|
3578
3984
|
b([
|
|
3579
3985
|
g({ type: String })
|
|
3580
|
-
],
|
|
3986
|
+
], f.prototype, "label", 2);
|
|
3581
3987
|
b([
|
|
3582
3988
|
g({ type: String, reflect: !0 })
|
|
3583
|
-
],
|
|
3989
|
+
], f.prototype, "name", 2);
|
|
3584
3990
|
b([
|
|
3585
3991
|
g({ type: String, attribute: "selected-label" })
|
|
3586
|
-
],
|
|
3992
|
+
], f.prototype, "selectedLabel", 2);
|
|
3587
3993
|
b([
|
|
3588
3994
|
g({ type: Boolean, reflect: !0 })
|
|
3589
|
-
],
|
|
3995
|
+
], f.prototype, "disabled", 2);
|
|
3590
3996
|
b([
|
|
3591
3997
|
g({ type: Boolean, reflect: !0 })
|
|
3592
|
-
],
|
|
3998
|
+
], f.prototype, "error", 2);
|
|
3593
3999
|
b([
|
|
3594
4000
|
g({ type: Boolean, reflect: !0 })
|
|
3595
|
-
],
|
|
4001
|
+
], f.prototype, "open", 2);
|
|
3596
4002
|
b([
|
|
3597
4003
|
g({ type: Boolean, reflect: !0 })
|
|
3598
|
-
],
|
|
4004
|
+
], f.prototype, "required", 2);
|
|
3599
4005
|
b([
|
|
3600
|
-
|
|
3601
|
-
],
|
|
4006
|
+
So()
|
|
4007
|
+
], f.prototype, "activeIndex", 2);
|
|
3602
4008
|
b([
|
|
3603
|
-
|
|
3604
|
-
],
|
|
4009
|
+
So()
|
|
4010
|
+
], f.prototype, "_value", 2);
|
|
3605
4011
|
b([
|
|
3606
|
-
|
|
3607
|
-
],
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
],
|
|
3611
|
-
const
|
|
3612
|
-
var
|
|
3613
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4012
|
+
Ra({ selector: "ucds-dropdown-item" })
|
|
4013
|
+
], f.prototype, "items", 2);
|
|
4014
|
+
f = b([
|
|
4015
|
+
_o("ucds-dropdown")
|
|
4016
|
+
], f);
|
|
4017
|
+
const Ta = ".dropdown-item{display:flex;gap:4px;align-items:center;padding:10px 6px 10px 26px;border-radius:8px}.dropdown-item ucds-icon{display:none}.dropdown-item .dropdown-item-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item:hover,.dropdown-item:active,.dropdown-item:focus{background-color:var(--ucds-color-palette-berry-900);outline:none}.dropdown-item.selected{padding-left:6px}.dropdown-item.selected ucds-icon{display:inline-flex}";
|
|
4018
|
+
var qa = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, pr = (o, t, e, r) => {
|
|
4019
|
+
for (var s = r > 1 ? void 0 : r ? Da(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
3614
4020
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
3615
|
-
return r && s &&
|
|
4021
|
+
return r && s && qa(t, e, s), s;
|
|
3616
4022
|
};
|
|
3617
|
-
let
|
|
4023
|
+
let Jt = class extends d {
|
|
3618
4024
|
constructor() {
|
|
3619
4025
|
super(...arguments), this.value = "", this.selected = !1;
|
|
3620
4026
|
}
|
|
@@ -3649,26 +4055,26 @@ let Nt = class extends d {
|
|
|
3649
4055
|
`;
|
|
3650
4056
|
}
|
|
3651
4057
|
};
|
|
3652
|
-
|
|
4058
|
+
Jt.styles = [
|
|
3653
4059
|
d.styles,
|
|
3654
|
-
|
|
4060
|
+
u(Ta)
|
|
3655
4061
|
];
|
|
3656
|
-
|
|
4062
|
+
pr([
|
|
3657
4063
|
g({ type: String })
|
|
3658
|
-
],
|
|
3659
|
-
|
|
4064
|
+
], Jt.prototype, "value", 2);
|
|
4065
|
+
pr([
|
|
3660
4066
|
g({ type: Boolean, reflect: !0 })
|
|
3661
|
-
],
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
],
|
|
3665
|
-
|
|
4067
|
+
], Jt.prototype, "selected", 2);
|
|
4068
|
+
Jt = pr([
|
|
4069
|
+
_o("ucds-dropdown-item")
|
|
4070
|
+
], Jt);
|
|
4071
|
+
v();
|
|
3666
4072
|
/**
|
|
3667
4073
|
* @license
|
|
3668
4074
|
* Copyright 2017 Google LLC
|
|
3669
4075
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3670
4076
|
*/
|
|
3671
|
-
const
|
|
4077
|
+
const La = (o) => (t, e) => {
|
|
3672
4078
|
e !== void 0 ? e.addInitializer(() => {
|
|
3673
4079
|
customElements.define(o, t);
|
|
3674
4080
|
}) : customElements.define(o, t);
|
|
@@ -3678,18 +4084,18 @@ const ta = (o) => (t, e) => {
|
|
|
3678
4084
|
* Copyright 2019 Google LLC
|
|
3679
4085
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3680
4086
|
*/
|
|
3681
|
-
const
|
|
3682
|
-
let
|
|
4087
|
+
const ae = globalThis, ur = ae.ShadowRoot && (ae.ShadyCSS === void 0 || ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wo = Symbol(), Es = /* @__PURE__ */ new WeakMap();
|
|
4088
|
+
let Na = class {
|
|
3683
4089
|
constructor(t, e, r) {
|
|
3684
|
-
if (this._$cssResult$ = !0, r !==
|
|
4090
|
+
if (this._$cssResult$ = !0, r !== wo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3685
4091
|
this.cssText = t, this.t = e;
|
|
3686
4092
|
}
|
|
3687
4093
|
get styleSheet() {
|
|
3688
4094
|
let t = this.o;
|
|
3689
4095
|
const e = this.t;
|
|
3690
|
-
if (
|
|
4096
|
+
if (ur && t === void 0) {
|
|
3691
4097
|
const r = e !== void 0 && e.length === 1;
|
|
3692
|
-
r && (t =
|
|
4098
|
+
r && (t = Es.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Es.set(e, t));
|
|
3693
4099
|
}
|
|
3694
4100
|
return t;
|
|
3695
4101
|
}
|
|
@@ -3697,26 +4103,26 @@ let ea = class {
|
|
|
3697
4103
|
return this.cssText;
|
|
3698
4104
|
}
|
|
3699
4105
|
};
|
|
3700
|
-
const
|
|
3701
|
-
if (
|
|
4106
|
+
const Ia = (o) => new Na(typeof o == "string" ? o : o + "", void 0, wo), Ba = (o, t) => {
|
|
4107
|
+
if (ur) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3702
4108
|
else for (const e of t) {
|
|
3703
|
-
const r = document.createElement("style"), s =
|
|
4109
|
+
const r = document.createElement("style"), s = ae.litNonce;
|
|
3704
4110
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
3705
4111
|
}
|
|
3706
|
-
},
|
|
4112
|
+
}, Ss = ur ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3707
4113
|
let e = "";
|
|
3708
4114
|
for (const r of t.cssRules) e += r.cssText;
|
|
3709
|
-
return
|
|
4115
|
+
return Ia(e);
|
|
3710
4116
|
})(o) : o;
|
|
3711
4117
|
/**
|
|
3712
4118
|
* @license
|
|
3713
4119
|
* Copyright 2017 Google LLC
|
|
3714
4120
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3715
4121
|
*/
|
|
3716
|
-
const { is:
|
|
4122
|
+
const { is: Va, defineProperty: Ka, getOwnPropertyDescriptor: Ja, getOwnPropertyNames: Ha, getOwnPropertySymbols: Wa, getPrototypeOf: Fa } = Object, G = globalThis, ws = G.trustedTypes, Ga = ws ? ws.emptyScript : "", Ps = G.reactiveElementPolyfillSupport, Mt = (o, t) => o, Pe = { toAttribute(o, t) {
|
|
3717
4123
|
switch (t) {
|
|
3718
4124
|
case Boolean:
|
|
3719
|
-
o = o ?
|
|
4125
|
+
o = o ? Ga : null;
|
|
3720
4126
|
break;
|
|
3721
4127
|
case Object:
|
|
3722
4128
|
case Array:
|
|
@@ -3741,23 +4147,23 @@ const { is: oa, defineProperty: ia, getOwnPropertyDescriptor: na, getOwnProperty
|
|
|
3741
4147
|
}
|
|
3742
4148
|
}
|
|
3743
4149
|
return e;
|
|
3744
|
-
} },
|
|
3745
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
3746
|
-
let
|
|
4150
|
+
} }, fr = (o, t) => !Va(o, t), xs = { attribute: !0, type: String, converter: Pe, reflect: !1, useDefault: !1, hasChanged: fr };
|
|
4151
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), G.litPropertyMetadata ?? (G.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4152
|
+
let $t = class extends HTMLElement {
|
|
3747
4153
|
static addInitializer(t) {
|
|
3748
4154
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
3749
4155
|
}
|
|
3750
4156
|
static get observedAttributes() {
|
|
3751
4157
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
3752
4158
|
}
|
|
3753
|
-
static createProperty(t, e =
|
|
4159
|
+
static createProperty(t, e = xs) {
|
|
3754
4160
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3755
4161
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
3756
|
-
s !== void 0 &&
|
|
4162
|
+
s !== void 0 && Ka(this.prototype, t, s);
|
|
3757
4163
|
}
|
|
3758
4164
|
}
|
|
3759
4165
|
static getPropertyDescriptor(t, e, r) {
|
|
3760
|
-
const { get: s, set: n } =
|
|
4166
|
+
const { get: s, set: n } = Ja(this.prototype, t) ?? { get() {
|
|
3761
4167
|
return this[e];
|
|
3762
4168
|
}, set(i) {
|
|
3763
4169
|
this[e] = i;
|
|
@@ -3768,17 +4174,17 @@ let ft = class extends HTMLElement {
|
|
|
3768
4174
|
}, configurable: !0, enumerable: !0 };
|
|
3769
4175
|
}
|
|
3770
4176
|
static getPropertyOptions(t) {
|
|
3771
|
-
return this.elementProperties.get(t) ??
|
|
4177
|
+
return this.elementProperties.get(t) ?? xs;
|
|
3772
4178
|
}
|
|
3773
4179
|
static _$Ei() {
|
|
3774
|
-
if (this.hasOwnProperty(
|
|
3775
|
-
const t =
|
|
4180
|
+
if (this.hasOwnProperty(Mt("elementProperties"))) return;
|
|
4181
|
+
const t = Fa(this);
|
|
3776
4182
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3777
4183
|
}
|
|
3778
4184
|
static finalize() {
|
|
3779
|
-
if (this.hasOwnProperty(
|
|
3780
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
3781
|
-
const e = this.properties, r = [...
|
|
4185
|
+
if (this.hasOwnProperty(Mt("finalized"))) return;
|
|
4186
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mt("properties"))) {
|
|
4187
|
+
const e = this.properties, r = [...Ha(e), ...Wa(e)];
|
|
3782
4188
|
for (const s of r) this.createProperty(s, e[s]);
|
|
3783
4189
|
}
|
|
3784
4190
|
const t = this[Symbol.metadata];
|
|
@@ -3797,8 +4203,8 @@ let ft = class extends HTMLElement {
|
|
|
3797
4203
|
const e = [];
|
|
3798
4204
|
if (Array.isArray(t)) {
|
|
3799
4205
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
3800
|
-
for (const s of r) e.unshift(
|
|
3801
|
-
} else t !== void 0 && e.push(
|
|
4206
|
+
for (const s of r) e.unshift(Ss(s));
|
|
4207
|
+
} else t !== void 0 && e.push(Ss(t));
|
|
3802
4208
|
return e;
|
|
3803
4209
|
}
|
|
3804
4210
|
static _$Eu(t, e) {
|
|
@@ -3827,7 +4233,7 @@ let ft = class extends HTMLElement {
|
|
|
3827
4233
|
}
|
|
3828
4234
|
createRenderRoot() {
|
|
3829
4235
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3830
|
-
return
|
|
4236
|
+
return Ba(t, this.constructor.elementStyles), t;
|
|
3831
4237
|
}
|
|
3832
4238
|
connectedCallback() {
|
|
3833
4239
|
var t;
|
|
@@ -3852,7 +4258,7 @@ let ft = class extends HTMLElement {
|
|
|
3852
4258
|
var r;
|
|
3853
4259
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
3854
4260
|
if (n !== void 0 && s.reflect === !0) {
|
|
3855
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
4261
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Pe).toAttribute(e, s.type);
|
|
3856
4262
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
3857
4263
|
}
|
|
3858
4264
|
}
|
|
@@ -3860,7 +4266,7 @@ let ft = class extends HTMLElement {
|
|
|
3860
4266
|
var r, s;
|
|
3861
4267
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
3862
4268
|
if (i !== void 0 && this._$Em !== i) {
|
|
3863
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
4269
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Pe;
|
|
3864
4270
|
this._$Em = i;
|
|
3865
4271
|
const c = l.fromAttribute(e, a.type);
|
|
3866
4272
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -3870,7 +4276,7 @@ let ft = class extends HTMLElement {
|
|
|
3870
4276
|
var s;
|
|
3871
4277
|
if (t !== void 0) {
|
|
3872
4278
|
const n = this.constructor, i = this[t];
|
|
3873
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
4279
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? fr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
3874
4280
|
this.C(t, e, r);
|
|
3875
4281
|
}
|
|
3876
4282
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -3946,13 +4352,13 @@ let ft = class extends HTMLElement {
|
|
|
3946
4352
|
firstUpdated(t) {
|
|
3947
4353
|
}
|
|
3948
4354
|
};
|
|
3949
|
-
|
|
4355
|
+
$t.elementStyles = [], $t.shadowRootOptions = { mode: "open" }, $t[Mt("elementProperties")] = /* @__PURE__ */ new Map(), $t[Mt("finalized")] = /* @__PURE__ */ new Map(), Ps == null || Ps({ ReactiveElement: $t }), (G.reactiveElementVersions ?? (G.reactiveElementVersions = [])).push("2.1.1");
|
|
3950
4356
|
/**
|
|
3951
4357
|
* @license
|
|
3952
4358
|
* Copyright 2017 Google LLC
|
|
3953
4359
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3954
4360
|
*/
|
|
3955
|
-
const
|
|
4361
|
+
const Xa = { attribute: !0, type: String, converter: Pe, reflect: !1, hasChanged: fr }, Ya = (o = Xa, t, e) => {
|
|
3956
4362
|
const { kind: r, metadata: s } = e;
|
|
3957
4363
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
3958
4364
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -3973,17 +4379,17 @@ const da = { attribute: !0, type: String, converter: me, reflect: !1, hasChanged
|
|
|
3973
4379
|
}
|
|
3974
4380
|
throw Error("Unsupported decorator location: " + r);
|
|
3975
4381
|
};
|
|
3976
|
-
function
|
|
3977
|
-
return (t, e) => typeof e == "object" ?
|
|
4382
|
+
function rt(o) {
|
|
4383
|
+
return (t, e) => typeof e == "object" ? Ya(o, t, e) : ((r, s, n) => {
|
|
3978
4384
|
const i = s.hasOwnProperty(n);
|
|
3979
4385
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
3980
4386
|
})(o, t, e);
|
|
3981
4387
|
}
|
|
3982
|
-
const
|
|
3983
|
-
var
|
|
3984
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4388
|
+
const Qa = ":host{display:block}.form-fieldset{width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing)}.form-fieldset fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--ucds-form-component-inter-spacing)}.form-fieldset fieldset legend{font-weight:var(--ucds-font-weight-bold);margin-bottom:var(--ucds-form-component-inter-spacing);padding:0}.form-fieldset fieldset legend:disabled{color:var(--ucds-color-text-disabled)}.form-fieldset fieldset:not(:last-child){margin-bottom:var(--ucds-form-component-intra-spacing)}";
|
|
4389
|
+
var Za = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, D = (o, t, e, r) => {
|
|
4390
|
+
for (var s = r > 1 ? void 0 : r ? tl(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
3985
4391
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
3986
|
-
return r && s &&
|
|
4392
|
+
return r && s && Za(t, e, s), s;
|
|
3987
4393
|
};
|
|
3988
4394
|
let O = class extends d {
|
|
3989
4395
|
constructor() {
|
|
@@ -4019,36 +4425,36 @@ let O = class extends d {
|
|
|
4019
4425
|
O.styles = [
|
|
4020
4426
|
d.styles,
|
|
4021
4427
|
$.styles,
|
|
4022
|
-
|
|
4428
|
+
u(Qa)
|
|
4023
4429
|
];
|
|
4024
4430
|
D([
|
|
4025
|
-
|
|
4431
|
+
rt({ type: String })
|
|
4026
4432
|
], O.prototype, "label", 2);
|
|
4027
4433
|
D([
|
|
4028
|
-
|
|
4434
|
+
rt({ type: Boolean, reflect: !0 })
|
|
4029
4435
|
], O.prototype, "disabled", 2);
|
|
4030
4436
|
D([
|
|
4031
|
-
|
|
4437
|
+
rt({ type: Boolean, reflect: !0 })
|
|
4032
4438
|
], O.prototype, "required", 2);
|
|
4033
4439
|
D([
|
|
4034
|
-
|
|
4440
|
+
rt({ type: Boolean, reflect: !0 })
|
|
4035
4441
|
], O.prototype, "error", 2);
|
|
4036
4442
|
D([
|
|
4037
|
-
|
|
4443
|
+
rt({ type: String, attribute: "error-text" })
|
|
4038
4444
|
], O.prototype, "errorText", 2);
|
|
4039
4445
|
D([
|
|
4040
|
-
|
|
4446
|
+
rt({ type: String, attribute: "help-text" })
|
|
4041
4447
|
], O.prototype, "helpText", 2);
|
|
4042
4448
|
O = D([
|
|
4043
|
-
|
|
4449
|
+
La("ucds-fieldset")
|
|
4044
4450
|
], O);
|
|
4045
|
-
|
|
4451
|
+
v();
|
|
4046
4452
|
/**
|
|
4047
4453
|
* @license
|
|
4048
4454
|
* Copyright 2017 Google LLC
|
|
4049
4455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4050
4456
|
*/
|
|
4051
|
-
const
|
|
4457
|
+
const el = (o) => (t, e) => {
|
|
4052
4458
|
e !== void 0 ? e.addInitializer(() => {
|
|
4053
4459
|
customElements.define(o, t);
|
|
4054
4460
|
}) : customElements.define(o, t);
|
|
@@ -4058,18 +4464,18 @@ const $a = (o) => (t, e) => {
|
|
|
4058
4464
|
* Copyright 2019 Google LLC
|
|
4059
4465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4060
4466
|
*/
|
|
4061
|
-
const
|
|
4062
|
-
let
|
|
4467
|
+
const le = globalThis, vr = le.ShadowRoot && (le.ShadyCSS === void 0 || le.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Po = Symbol(), Os = /* @__PURE__ */ new WeakMap();
|
|
4468
|
+
let rl = class {
|
|
4063
4469
|
constructor(t, e, r) {
|
|
4064
|
-
if (this._$cssResult$ = !0, r !==
|
|
4470
|
+
if (this._$cssResult$ = !0, r !== Po) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4065
4471
|
this.cssText = t, this.t = e;
|
|
4066
4472
|
}
|
|
4067
4473
|
get styleSheet() {
|
|
4068
4474
|
let t = this.o;
|
|
4069
4475
|
const e = this.t;
|
|
4070
|
-
if (
|
|
4476
|
+
if (vr && t === void 0) {
|
|
4071
4477
|
const r = e !== void 0 && e.length === 1;
|
|
4072
|
-
r && (t =
|
|
4478
|
+
r && (t = Os.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Os.set(e, t));
|
|
4073
4479
|
}
|
|
4074
4480
|
return t;
|
|
4075
4481
|
}
|
|
@@ -4077,26 +4483,26 @@ let ya = class {
|
|
|
4077
4483
|
return this.cssText;
|
|
4078
4484
|
}
|
|
4079
4485
|
};
|
|
4080
|
-
const
|
|
4081
|
-
if (
|
|
4486
|
+
const sl = (o) => new rl(typeof o == "string" ? o : o + "", void 0, Po), ol = (o, t) => {
|
|
4487
|
+
if (vr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
4082
4488
|
else for (const e of t) {
|
|
4083
|
-
const r = document.createElement("style"), s =
|
|
4489
|
+
const r = document.createElement("style"), s = le.litNonce;
|
|
4084
4490
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
4085
4491
|
}
|
|
4086
|
-
},
|
|
4492
|
+
}, Us = vr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
4087
4493
|
let e = "";
|
|
4088
4494
|
for (const r of t.cssRules) e += r.cssText;
|
|
4089
|
-
return
|
|
4495
|
+
return sl(e);
|
|
4090
4496
|
})(o) : o;
|
|
4091
4497
|
/**
|
|
4092
4498
|
* @license
|
|
4093
4499
|
* Copyright 2017 Google LLC
|
|
4094
4500
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4095
4501
|
*/
|
|
4096
|
-
const { is:
|
|
4502
|
+
const { is: il, defineProperty: nl, getOwnPropertyDescriptor: al, getOwnPropertyNames: ll, getOwnPropertySymbols: cl, getPrototypeOf: hl } = Object, X = globalThis, Cs = X.trustedTypes, dl = Cs ? Cs.emptyScript : "", ks = X.reactiveElementPolyfillSupport, zt = (o, t) => o, xe = { toAttribute(o, t) {
|
|
4097
4503
|
switch (t) {
|
|
4098
4504
|
case Boolean:
|
|
4099
|
-
o = o ?
|
|
4505
|
+
o = o ? dl : null;
|
|
4100
4506
|
break;
|
|
4101
4507
|
case Object:
|
|
4102
4508
|
case Array:
|
|
@@ -4121,23 +4527,23 @@ const { is: ga, defineProperty: _a, getOwnPropertyDescriptor: Ea, getOwnProperty
|
|
|
4121
4527
|
}
|
|
4122
4528
|
}
|
|
4123
4529
|
return e;
|
|
4124
|
-
} },
|
|
4125
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
4126
|
-
let
|
|
4530
|
+
} }, $r = (o, t) => !il(o, t), As = { attribute: !0, type: String, converter: xe, reflect: !1, useDefault: !1, hasChanged: $r };
|
|
4531
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), X.litPropertyMetadata ?? (X.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4532
|
+
let yt = class extends HTMLElement {
|
|
4127
4533
|
static addInitializer(t) {
|
|
4128
4534
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
4129
4535
|
}
|
|
4130
4536
|
static get observedAttributes() {
|
|
4131
4537
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4132
4538
|
}
|
|
4133
|
-
static createProperty(t, e =
|
|
4539
|
+
static createProperty(t, e = As) {
|
|
4134
4540
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4135
4541
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
4136
|
-
s !== void 0 &&
|
|
4542
|
+
s !== void 0 && nl(this.prototype, t, s);
|
|
4137
4543
|
}
|
|
4138
4544
|
}
|
|
4139
4545
|
static getPropertyDescriptor(t, e, r) {
|
|
4140
|
-
const { get: s, set: n } =
|
|
4546
|
+
const { get: s, set: n } = al(this.prototype, t) ?? { get() {
|
|
4141
4547
|
return this[e];
|
|
4142
4548
|
}, set(i) {
|
|
4143
4549
|
this[e] = i;
|
|
@@ -4148,17 +4554,17 @@ let vt = class extends HTMLElement {
|
|
|
4148
4554
|
}, configurable: !0, enumerable: !0 };
|
|
4149
4555
|
}
|
|
4150
4556
|
static getPropertyOptions(t) {
|
|
4151
|
-
return this.elementProperties.get(t) ??
|
|
4557
|
+
return this.elementProperties.get(t) ?? As;
|
|
4152
4558
|
}
|
|
4153
4559
|
static _$Ei() {
|
|
4154
|
-
if (this.hasOwnProperty(
|
|
4155
|
-
const t =
|
|
4560
|
+
if (this.hasOwnProperty(zt("elementProperties"))) return;
|
|
4561
|
+
const t = hl(this);
|
|
4156
4562
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4157
4563
|
}
|
|
4158
4564
|
static finalize() {
|
|
4159
|
-
if (this.hasOwnProperty(
|
|
4160
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
4161
|
-
const e = this.properties, r = [...
|
|
4565
|
+
if (this.hasOwnProperty(zt("finalized"))) return;
|
|
4566
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(zt("properties"))) {
|
|
4567
|
+
const e = this.properties, r = [...ll(e), ...cl(e)];
|
|
4162
4568
|
for (const s of r) this.createProperty(s, e[s]);
|
|
4163
4569
|
}
|
|
4164
4570
|
const t = this[Symbol.metadata];
|
|
@@ -4177,8 +4583,8 @@ let vt = class extends HTMLElement {
|
|
|
4177
4583
|
const e = [];
|
|
4178
4584
|
if (Array.isArray(t)) {
|
|
4179
4585
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
4180
|
-
for (const s of r) e.unshift(
|
|
4181
|
-
} else t !== void 0 && e.push(
|
|
4586
|
+
for (const s of r) e.unshift(Us(s));
|
|
4587
|
+
} else t !== void 0 && e.push(Us(t));
|
|
4182
4588
|
return e;
|
|
4183
4589
|
}
|
|
4184
4590
|
static _$Eu(t, e) {
|
|
@@ -4207,7 +4613,7 @@ let vt = class extends HTMLElement {
|
|
|
4207
4613
|
}
|
|
4208
4614
|
createRenderRoot() {
|
|
4209
4615
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4210
|
-
return
|
|
4616
|
+
return ol(t, this.constructor.elementStyles), t;
|
|
4211
4617
|
}
|
|
4212
4618
|
connectedCallback() {
|
|
4213
4619
|
var t;
|
|
@@ -4232,7 +4638,7 @@ let vt = class extends HTMLElement {
|
|
|
4232
4638
|
var r;
|
|
4233
4639
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
4234
4640
|
if (n !== void 0 && s.reflect === !0) {
|
|
4235
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
4641
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : xe).toAttribute(e, s.type);
|
|
4236
4642
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
4237
4643
|
}
|
|
4238
4644
|
}
|
|
@@ -4240,7 +4646,7 @@ let vt = class extends HTMLElement {
|
|
|
4240
4646
|
var r, s;
|
|
4241
4647
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
4242
4648
|
if (i !== void 0 && this._$Em !== i) {
|
|
4243
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
4649
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : xe;
|
|
4244
4650
|
this._$Em = i;
|
|
4245
4651
|
const c = l.fromAttribute(e, a.type);
|
|
4246
4652
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -4250,7 +4656,7 @@ let vt = class extends HTMLElement {
|
|
|
4250
4656
|
var s;
|
|
4251
4657
|
if (t !== void 0) {
|
|
4252
4658
|
const n = this.constructor, i = this[t];
|
|
4253
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
4659
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? $r)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
4254
4660
|
this.C(t, e, r);
|
|
4255
4661
|
}
|
|
4256
4662
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -4326,13 +4732,13 @@ let vt = class extends HTMLElement {
|
|
|
4326
4732
|
firstUpdated(t) {
|
|
4327
4733
|
}
|
|
4328
4734
|
};
|
|
4329
|
-
|
|
4735
|
+
yt.elementStyles = [], yt.shadowRootOptions = { mode: "open" }, yt[zt("elementProperties")] = /* @__PURE__ */ new Map(), yt[zt("finalized")] = /* @__PURE__ */ new Map(), ks == null || ks({ ReactiveElement: yt }), (X.reactiveElementVersions ?? (X.reactiveElementVersions = [])).push("2.1.1");
|
|
4330
4736
|
/**
|
|
4331
4737
|
* @license
|
|
4332
4738
|
* Copyright 2017 Google LLC
|
|
4333
4739
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4334
4740
|
*/
|
|
4335
|
-
const
|
|
4741
|
+
const pl = { attribute: !0, type: String, converter: xe, reflect: !1, hasChanged: $r }, ul = (o = pl, t, e) => {
|
|
4336
4742
|
const { kind: r, metadata: s } = e;
|
|
4337
4743
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
4338
4744
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -4353,19 +4759,19 @@ const Oa = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged
|
|
|
4353
4759
|
}
|
|
4354
4760
|
throw Error("Unsupported decorator location: " + r);
|
|
4355
4761
|
};
|
|
4356
|
-
function
|
|
4357
|
-
return (t, e) => typeof e == "object" ?
|
|
4762
|
+
function Ft(o) {
|
|
4763
|
+
return (t, e) => typeof e == "object" ? ul(o, t, e) : ((r, s, n) => {
|
|
4358
4764
|
const i = s.hasOwnProperty(n);
|
|
4359
4765
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
4360
4766
|
})(o, t, e);
|
|
4361
4767
|
}
|
|
4362
|
-
const
|
|
4363
|
-
var
|
|
4364
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4768
|
+
const fl = ":host{display:block}.icon-button-wrapper{display:flex;align-items:center;justify-content:center;border-radius:50px;border:none;background-color:transparent;cursor:pointer}.icon-button-wrapper:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.icon-button-wrapper ucds-icon{color:var(--ucds-color-icon-primary)}.icon-button-wrapper.size-32{width:32px;height:32px}.icon-button-wrapper.size-32:active{transform:scale(.9375)}.icon-button-wrapper.size-48{width:48px;height:48px}.icon-button-wrapper.size-48:active{transform:scale(.9167)}.icon-button-wrapper.solid{background-color:var(--ucds-color-action-rest)}.icon-button-wrapper.solid ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.icon-button-wrapper.solid:hover,.icon-button-wrapper.solid:focus,.icon-button-wrapper.solid:active{background-color:var(--ucds-color-action-hover)}.icon-button-wrapper.outline{border:var(--ucds-shape-border-width) solid var(--ucds-color-action-secondary-rest)}.icon-button-wrapper.outline ucds-icon{color:var(--ucds-color-icon-primary)}.icon-button-wrapper.outline:hover,.icon-button-wrapper.outline:focus,.icon-button-wrapper.outline:active{background-color:var(--ucds-color-action-secondary-hover);border-color:var(--ucds-color-action-secondary-hover)}.icon-button-wrapper.outline:hover ucds-icon,.icon-button-wrapper.outline:focus ucds-icon,.icon-button-wrapper.outline:active ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.icon-button-wrapper.flat ucds-icon{color:var(--ucds-color-action-rest)}.icon-button-wrapper.flat:hover,.icon-button-wrapper.flat:focus,.icon-button-wrapper.flat:active{background-color:var(--ucds-color-action-hover)}.icon-button-wrapper.flat:hover ucds-icon,.icon-button-wrapper.flat:focus ucds-icon,.icon-button-wrapper.flat:active ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.icon-button-wrapper.inverse{background-color:transparent}.icon-button-wrapper.inverse ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.icon-button-wrapper.inverse:focus{outline:var(--ucds-color-action-inverse-focus) 2px solid;outline-offset:2px}.icon-button-wrapper.inverse.solid{background-color:var(--ucds-color-action-inverse-rest)}.icon-button-wrapper.inverse.solid ucds-icon{color:var(--ucds-color-icon-primary)}.icon-button-wrapper.inverse.outline{border-color:var(--ucds-color-icon-primary-inverse)}.icon-button-wrapper.inverse:hover,.icon-button-wrapper.inverse:focus,.icon-button-wrapper.inverse:active{background-color:var(--ucds-color-action-inverse-active);border-color:var(--ucds-color-action-inverse-active)}.icon-button-wrapper.inverse:hover ucds-icon,.icon-button-wrapper.inverse:focus ucds-icon,.icon-button-wrapper.inverse:active ucds-icon{color:var(--ucds-color-icon-primary)}";
|
|
4769
|
+
var vl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, st = (o, t, e, r) => {
|
|
4770
|
+
for (var s = r > 1 ? void 0 : r ? $l(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
4365
4771
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
4366
|
-
return r && s &&
|
|
4772
|
+
return r && s && vl(t, e, s), s;
|
|
4367
4773
|
};
|
|
4368
|
-
const
|
|
4774
|
+
const yl = ["flat", "solid", "outline"], ml = ["32", "48"], bl = {
|
|
4369
4775
|
32: "20",
|
|
4370
4776
|
48: "24"
|
|
4371
4777
|
};
|
|
@@ -4374,10 +4780,10 @@ let R = class extends d {
|
|
|
4374
4780
|
super(...arguments), this.ariaLabel = "", this.iconName = "close", this.size = "32", this.variant = "solid", this.inverse = !1;
|
|
4375
4781
|
}
|
|
4376
4782
|
get innerIconSize() {
|
|
4377
|
-
return
|
|
4783
|
+
return bl[this.size];
|
|
4378
4784
|
}
|
|
4379
4785
|
willUpdate(t) {
|
|
4380
|
-
t.has("variant") && !
|
|
4786
|
+
t.has("variant") && !yl.includes(this.variant) && (console.warn(`[ucds-icon-button] Invalid variant "${this.variant}" passed. Falling back to "solid".`), this.variant = "solid"), t.has("size") && !ml.includes(this.size) && (console.warn(`[ucds-icon-button] Invalid size "${this.size}" passed. Falling back to "32".`), this.size = "32");
|
|
4381
4787
|
}
|
|
4382
4788
|
render() {
|
|
4383
4789
|
return h`
|
|
@@ -4389,33 +4795,33 @@ let R = class extends d {
|
|
|
4389
4795
|
};
|
|
4390
4796
|
R.styles = [
|
|
4391
4797
|
d.styles,
|
|
4392
|
-
|
|
4798
|
+
u(fl)
|
|
4393
4799
|
];
|
|
4394
|
-
|
|
4395
|
-
|
|
4800
|
+
st([
|
|
4801
|
+
Ft({ type: String, attribute: "aria-label" })
|
|
4396
4802
|
], R.prototype, "ariaLabel", 2);
|
|
4397
|
-
|
|
4398
|
-
|
|
4803
|
+
st([
|
|
4804
|
+
Ft({ attribute: "icon-name" })
|
|
4399
4805
|
], R.prototype, "iconName", 2);
|
|
4400
|
-
|
|
4401
|
-
|
|
4806
|
+
st([
|
|
4807
|
+
Ft()
|
|
4402
4808
|
], R.prototype, "size", 2);
|
|
4403
|
-
|
|
4404
|
-
|
|
4809
|
+
st([
|
|
4810
|
+
Ft()
|
|
4405
4811
|
], R.prototype, "variant", 2);
|
|
4406
|
-
|
|
4407
|
-
|
|
4812
|
+
st([
|
|
4813
|
+
Ft({ type: Boolean })
|
|
4408
4814
|
], R.prototype, "inverse", 2);
|
|
4409
|
-
R =
|
|
4410
|
-
|
|
4815
|
+
R = st([
|
|
4816
|
+
el("ucds-icon-button")
|
|
4411
4817
|
], R);
|
|
4412
|
-
|
|
4818
|
+
v();
|
|
4413
4819
|
/**
|
|
4414
4820
|
* @license
|
|
4415
4821
|
* Copyright 2017 Google LLC
|
|
4416
4822
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4417
4823
|
*/
|
|
4418
|
-
const
|
|
4824
|
+
const gl = (o) => (t, e) => {
|
|
4419
4825
|
e !== void 0 ? e.addInitializer(() => {
|
|
4420
4826
|
customElements.define(o, t);
|
|
4421
4827
|
}) : customElements.define(o, t);
|
|
@@ -4425,18 +4831,18 @@ const Ta = (o) => (t, e) => {
|
|
|
4425
4831
|
* Copyright 2019 Google LLC
|
|
4426
4832
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4427
4833
|
*/
|
|
4428
|
-
const
|
|
4429
|
-
let
|
|
4834
|
+
const ce = globalThis, yr = ce.ShadowRoot && (ce.ShadyCSS === void 0 || ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, xo = Symbol(), Rs = /* @__PURE__ */ new WeakMap();
|
|
4835
|
+
let _l = class {
|
|
4430
4836
|
constructor(t, e, r) {
|
|
4431
|
-
if (this._$cssResult$ = !0, r !==
|
|
4837
|
+
if (this._$cssResult$ = !0, r !== xo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4432
4838
|
this.cssText = t, this.t = e;
|
|
4433
4839
|
}
|
|
4434
4840
|
get styleSheet() {
|
|
4435
4841
|
let t = this.o;
|
|
4436
4842
|
const e = this.t;
|
|
4437
|
-
if (
|
|
4843
|
+
if (yr && t === void 0) {
|
|
4438
4844
|
const r = e !== void 0 && e.length === 1;
|
|
4439
|
-
r && (t =
|
|
4845
|
+
r && (t = Rs.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Rs.set(e, t));
|
|
4440
4846
|
}
|
|
4441
4847
|
return t;
|
|
4442
4848
|
}
|
|
@@ -4444,26 +4850,26 @@ let ja = class {
|
|
|
4444
4850
|
return this.cssText;
|
|
4445
4851
|
}
|
|
4446
4852
|
};
|
|
4447
|
-
const
|
|
4448
|
-
if (
|
|
4853
|
+
const El = (o) => new _l(typeof o == "string" ? o : o + "", void 0, xo), Sl = (o, t) => {
|
|
4854
|
+
if (yr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
4449
4855
|
else for (const e of t) {
|
|
4450
|
-
const r = document.createElement("style"), s =
|
|
4856
|
+
const r = document.createElement("style"), s = ce.litNonce;
|
|
4451
4857
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
4452
4858
|
}
|
|
4453
|
-
},
|
|
4859
|
+
}, Ms = yr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
4454
4860
|
let e = "";
|
|
4455
4861
|
for (const r of t.cssRules) e += r.cssText;
|
|
4456
|
-
return
|
|
4862
|
+
return El(e);
|
|
4457
4863
|
})(o) : o;
|
|
4458
4864
|
/**
|
|
4459
4865
|
* @license
|
|
4460
4866
|
* Copyright 2017 Google LLC
|
|
4461
4867
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4462
4868
|
*/
|
|
4463
|
-
const { is:
|
|
4869
|
+
const { is: wl, defineProperty: Pl, getOwnPropertyDescriptor: xl, getOwnPropertyNames: Ol, getOwnPropertySymbols: Ul, getPrototypeOf: Cl } = Object, Y = globalThis, zs = Y.trustedTypes, kl = zs ? zs.emptyScript : "", js = Y.reactiveElementPolyfillSupport, jt = (o, t) => o, Oe = { toAttribute(o, t) {
|
|
4464
4870
|
switch (t) {
|
|
4465
4871
|
case Boolean:
|
|
4466
|
-
o = o ?
|
|
4872
|
+
o = o ? kl : null;
|
|
4467
4873
|
break;
|
|
4468
4874
|
case Object:
|
|
4469
4875
|
case Array:
|
|
@@ -4488,23 +4894,23 @@ const { is: La, defineProperty: Na, getOwnPropertyDescriptor: Ia, getOwnProperty
|
|
|
4488
4894
|
}
|
|
4489
4895
|
}
|
|
4490
4896
|
return e;
|
|
4491
|
-
} },
|
|
4492
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
4493
|
-
let
|
|
4897
|
+
} }, mr = (o, t) => !wl(o, t), Ts = { attribute: !0, type: String, converter: Oe, reflect: !1, useDefault: !1, hasChanged: mr };
|
|
4898
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4899
|
+
let mt = class extends HTMLElement {
|
|
4494
4900
|
static addInitializer(t) {
|
|
4495
4901
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
4496
4902
|
}
|
|
4497
4903
|
static get observedAttributes() {
|
|
4498
4904
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4499
4905
|
}
|
|
4500
|
-
static createProperty(t, e =
|
|
4906
|
+
static createProperty(t, e = Ts) {
|
|
4501
4907
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4502
4908
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
4503
|
-
s !== void 0 &&
|
|
4909
|
+
s !== void 0 && Pl(this.prototype, t, s);
|
|
4504
4910
|
}
|
|
4505
4911
|
}
|
|
4506
4912
|
static getPropertyDescriptor(t, e, r) {
|
|
4507
|
-
const { get: s, set: n } =
|
|
4913
|
+
const { get: s, set: n } = xl(this.prototype, t) ?? { get() {
|
|
4508
4914
|
return this[e];
|
|
4509
4915
|
}, set(i) {
|
|
4510
4916
|
this[e] = i;
|
|
@@ -4515,17 +4921,17 @@ let $t = class extends HTMLElement {
|
|
|
4515
4921
|
}, configurable: !0, enumerable: !0 };
|
|
4516
4922
|
}
|
|
4517
4923
|
static getPropertyOptions(t) {
|
|
4518
|
-
return this.elementProperties.get(t) ??
|
|
4924
|
+
return this.elementProperties.get(t) ?? Ts;
|
|
4519
4925
|
}
|
|
4520
4926
|
static _$Ei() {
|
|
4521
|
-
if (this.hasOwnProperty(
|
|
4522
|
-
const t =
|
|
4927
|
+
if (this.hasOwnProperty(jt("elementProperties"))) return;
|
|
4928
|
+
const t = Cl(this);
|
|
4523
4929
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4524
4930
|
}
|
|
4525
4931
|
static finalize() {
|
|
4526
|
-
if (this.hasOwnProperty(
|
|
4527
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
4528
|
-
const e = this.properties, r = [...
|
|
4932
|
+
if (this.hasOwnProperty(jt("finalized"))) return;
|
|
4933
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(jt("properties"))) {
|
|
4934
|
+
const e = this.properties, r = [...Ol(e), ...Ul(e)];
|
|
4529
4935
|
for (const s of r) this.createProperty(s, e[s]);
|
|
4530
4936
|
}
|
|
4531
4937
|
const t = this[Symbol.metadata];
|
|
@@ -4544,8 +4950,8 @@ let $t = class extends HTMLElement {
|
|
|
4544
4950
|
const e = [];
|
|
4545
4951
|
if (Array.isArray(t)) {
|
|
4546
4952
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
4547
|
-
for (const s of r) e.unshift(
|
|
4548
|
-
} else t !== void 0 && e.push(
|
|
4953
|
+
for (const s of r) e.unshift(Ms(s));
|
|
4954
|
+
} else t !== void 0 && e.push(Ms(t));
|
|
4549
4955
|
return e;
|
|
4550
4956
|
}
|
|
4551
4957
|
static _$Eu(t, e) {
|
|
@@ -4574,7 +4980,7 @@ let $t = class extends HTMLElement {
|
|
|
4574
4980
|
}
|
|
4575
4981
|
createRenderRoot() {
|
|
4576
4982
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4577
|
-
return
|
|
4983
|
+
return Sl(t, this.constructor.elementStyles), t;
|
|
4578
4984
|
}
|
|
4579
4985
|
connectedCallback() {
|
|
4580
4986
|
var t;
|
|
@@ -4599,7 +5005,7 @@ let $t = class extends HTMLElement {
|
|
|
4599
5005
|
var r;
|
|
4600
5006
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
4601
5007
|
if (n !== void 0 && s.reflect === !0) {
|
|
4602
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
5008
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Oe).toAttribute(e, s.type);
|
|
4603
5009
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
4604
5010
|
}
|
|
4605
5011
|
}
|
|
@@ -4607,7 +5013,7 @@ let $t = class extends HTMLElement {
|
|
|
4607
5013
|
var r, s;
|
|
4608
5014
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
4609
5015
|
if (i !== void 0 && this._$Em !== i) {
|
|
4610
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
5016
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Oe;
|
|
4611
5017
|
this._$Em = i;
|
|
4612
5018
|
const c = l.fromAttribute(e, a.type);
|
|
4613
5019
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -4617,7 +5023,7 @@ let $t = class extends HTMLElement {
|
|
|
4617
5023
|
var s;
|
|
4618
5024
|
if (t !== void 0) {
|
|
4619
5025
|
const n = this.constructor, i = this[t];
|
|
4620
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
5026
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? mr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
4621
5027
|
this.C(t, e, r);
|
|
4622
5028
|
}
|
|
4623
5029
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -4693,13 +5099,13 @@ let $t = class extends HTMLElement {
|
|
|
4693
5099
|
firstUpdated(t) {
|
|
4694
5100
|
}
|
|
4695
5101
|
};
|
|
4696
|
-
|
|
5102
|
+
mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[jt("elementProperties")] = /* @__PURE__ */ new Map(), mt[jt("finalized")] = /* @__PURE__ */ new Map(), js == null || js({ ReactiveElement: mt }), (Y.reactiveElementVersions ?? (Y.reactiveElementVersions = [])).push("2.1.1");
|
|
4697
5103
|
/**
|
|
4698
5104
|
* @license
|
|
4699
5105
|
* Copyright 2017 Google LLC
|
|
4700
5106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4701
5107
|
*/
|
|
4702
|
-
const
|
|
5108
|
+
const Al = { attribute: !0, type: String, converter: Oe, reflect: !1, hasChanged: mr }, Rl = (o = Al, t, e) => {
|
|
4703
5109
|
const { kind: r, metadata: s } = e;
|
|
4704
5110
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
4705
5111
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -4720,29 +5126,29 @@ const Ja = { attribute: !0, type: String, converter: ge, reflect: !1, hasChanged
|
|
|
4720
5126
|
}
|
|
4721
5127
|
throw Error("Unsupported decorator location: " + r);
|
|
4722
5128
|
};
|
|
4723
|
-
function
|
|
4724
|
-
return (t, e) => typeof e == "object" ?
|
|
5129
|
+
function Gt(o) {
|
|
5130
|
+
return (t, e) => typeof e == "object" ? Rl(o, t, e) : ((r, s, n) => {
|
|
4725
5131
|
const i = s.hasOwnProperty(n);
|
|
4726
5132
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
4727
5133
|
})(o, t, e);
|
|
4728
5134
|
}
|
|
4729
|
-
const
|
|
4730
|
-
var
|
|
4731
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5135
|
+
const Ml = ":host{display:inline-block;width:-moz-fit-content;width:fit-content;color:inherit}a{display:flex;width:auto;position:relative;gap:4px;align-items:center;color:inherit;font-weight:var(--ucds-font-weight-semibold);text-decoration:none}@keyframes redrawUnderline{0%{background-size:0 1px}to{background-size:100% 1px}}a{text-decoration:none}a .text{background-image:linear-gradient(currentColor,currentColor);background-position:0 calc(100% - 1px);background-repeat:no-repeat;background-size:100% 1px;transition:background-size .3s}a:hover .text,a:focus .text{animation:redrawUnderline .3s forwards}a .text{position:relative}a.cta ucds-icon{color:currentColor;opacity:0;transition:transform .5s,opacity .5s;position:relative;top:50%;transform:translate(-100%)}a:focus ucds-icon,a:hover ucds-icon{opacity:1;transform:translate(0)}a:focus-visible{outline:1px solid var(--ucds-color-action-focus);outline-offset:1px;border-radius:2px}a.color-red{color:var(--ucds-color-action-rest)}a.color-red:hover{color:var(--ucds-color-action-hover)}a.color-red:active,a.color-red:focus{color:var(--ucds-color-action-active)}a.color-red:visited{color:var(--ucds-color-action-visited)}a.color-grey{color:var(--ucds-color-text-primary)}a.color-inherit{outline-color:currentColor}";
|
|
5136
|
+
var zl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ot = (o, t, e, r) => {
|
|
5137
|
+
for (var s = r > 1 ? void 0 : r ? jl(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
4732
5138
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
4733
|
-
return r && s &&
|
|
5139
|
+
return r && s && zl(t, e, s), s;
|
|
4734
5140
|
};
|
|
4735
|
-
const
|
|
5141
|
+
const Tl = ["red", "grey", "inherit"];
|
|
4736
5142
|
let M = class extends d {
|
|
4737
5143
|
constructor() {
|
|
4738
5144
|
super(...arguments), this.href = "", this.color = "red";
|
|
4739
5145
|
}
|
|
4740
5146
|
willUpdate(t) {
|
|
4741
|
-
t.has("color") && (!this.color || !
|
|
5147
|
+
t.has("color") && (!this.color || !Tl.includes(this.color)) && (console.warn(`[ucds-link] Invalid or missing color "${this.color}" passed. Falling back to "red".`), this.color = "red");
|
|
4742
5148
|
}
|
|
4743
5149
|
render() {
|
|
4744
5150
|
return h`
|
|
4745
|
-
<a href="${this.href}" target="${
|
|
5151
|
+
<a href="${this.href}" target="${fe(this.target)}" rel="${fe(this.rel)}" class="${`color-${this.color}`} ${this.cta ? "cta" : ""}">
|
|
4746
5152
|
<span class="text">
|
|
4747
5153
|
<slot></slot>
|
|
4748
5154
|
</span>
|
|
@@ -4753,33 +5159,33 @@ let M = class extends d {
|
|
|
4753
5159
|
};
|
|
4754
5160
|
M.styles = [
|
|
4755
5161
|
d.styles,
|
|
4756
|
-
|
|
5162
|
+
u(Ml)
|
|
4757
5163
|
];
|
|
4758
|
-
|
|
4759
|
-
|
|
5164
|
+
ot([
|
|
5165
|
+
Gt({ type: String })
|
|
4760
5166
|
], M.prototype, "href", 2);
|
|
4761
|
-
|
|
4762
|
-
|
|
5167
|
+
ot([
|
|
5168
|
+
Gt({ reflect: !0 })
|
|
4763
5169
|
], M.prototype, "rel", 2);
|
|
4764
|
-
|
|
4765
|
-
|
|
5170
|
+
ot([
|
|
5171
|
+
Gt({ reflect: !0 })
|
|
4766
5172
|
], M.prototype, "target", 2);
|
|
4767
|
-
|
|
4768
|
-
|
|
5173
|
+
ot([
|
|
5174
|
+
Gt()
|
|
4769
5175
|
], M.prototype, "color", 2);
|
|
4770
|
-
|
|
4771
|
-
|
|
5176
|
+
ot([
|
|
5177
|
+
Gt({ type: Boolean, reflect: !0 })
|
|
4772
5178
|
], M.prototype, "cta", 2);
|
|
4773
|
-
M =
|
|
4774
|
-
|
|
5179
|
+
M = ot([
|
|
5180
|
+
gl("ucds-link")
|
|
4775
5181
|
], M);
|
|
4776
|
-
|
|
5182
|
+
v();
|
|
4777
5183
|
/**
|
|
4778
5184
|
* @license
|
|
4779
5185
|
* Copyright 2017 Google LLC
|
|
4780
5186
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4781
5187
|
*/
|
|
4782
|
-
const
|
|
5188
|
+
const ql = (o) => (t, e) => {
|
|
4783
5189
|
e !== void 0 ? e.addInitializer(() => {
|
|
4784
5190
|
customElements.define(o, t);
|
|
4785
5191
|
}) : customElements.define(o, t);
|
|
@@ -4789,18 +5195,18 @@ const Qa = (o) => (t, e) => {
|
|
|
4789
5195
|
* Copyright 2019 Google LLC
|
|
4790
5196
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4791
5197
|
*/
|
|
4792
|
-
const
|
|
4793
|
-
let
|
|
5198
|
+
const he = globalThis, br = he.ShadowRoot && (he.ShadyCSS === void 0 || he.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Oo = Symbol(), qs = /* @__PURE__ */ new WeakMap();
|
|
5199
|
+
let Dl = class {
|
|
4794
5200
|
constructor(t, e, r) {
|
|
4795
|
-
if (this._$cssResult$ = !0, r !==
|
|
5201
|
+
if (this._$cssResult$ = !0, r !== Oo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4796
5202
|
this.cssText = t, this.t = e;
|
|
4797
5203
|
}
|
|
4798
5204
|
get styleSheet() {
|
|
4799
5205
|
let t = this.o;
|
|
4800
5206
|
const e = this.t;
|
|
4801
|
-
if (
|
|
5207
|
+
if (br && t === void 0) {
|
|
4802
5208
|
const r = e !== void 0 && e.length === 1;
|
|
4803
|
-
r && (t =
|
|
5209
|
+
r && (t = qs.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && qs.set(e, t));
|
|
4804
5210
|
}
|
|
4805
5211
|
return t;
|
|
4806
5212
|
}
|
|
@@ -4808,26 +5214,26 @@ let Za = class {
|
|
|
4808
5214
|
return this.cssText;
|
|
4809
5215
|
}
|
|
4810
5216
|
};
|
|
4811
|
-
const
|
|
4812
|
-
if (
|
|
5217
|
+
const Ll = (o) => new Dl(typeof o == "string" ? o : o + "", void 0, Oo), Nl = (o, t) => {
|
|
5218
|
+
if (br) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
4813
5219
|
else for (const e of t) {
|
|
4814
|
-
const r = document.createElement("style"), s =
|
|
5220
|
+
const r = document.createElement("style"), s = he.litNonce;
|
|
4815
5221
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
4816
5222
|
}
|
|
4817
|
-
},
|
|
5223
|
+
}, Ds = br ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
4818
5224
|
let e = "";
|
|
4819
5225
|
for (const r of t.cssRules) e += r.cssText;
|
|
4820
|
-
return
|
|
5226
|
+
return Ll(e);
|
|
4821
5227
|
})(o) : o;
|
|
4822
5228
|
/**
|
|
4823
5229
|
* @license
|
|
4824
5230
|
* Copyright 2017 Google LLC
|
|
4825
5231
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4826
5232
|
*/
|
|
4827
|
-
const { is:
|
|
5233
|
+
const { is: Il, defineProperty: Bl, getOwnPropertyDescriptor: Vl, getOwnPropertyNames: Kl, getOwnPropertySymbols: Jl, getPrototypeOf: Hl } = Object, Q = globalThis, Ls = Q.trustedTypes, Wl = Ls ? Ls.emptyScript : "", Ns = Q.reactiveElementPolyfillSupport, Tt = (o, t) => o, Ue = { toAttribute(o, t) {
|
|
4828
5234
|
switch (t) {
|
|
4829
5235
|
case Boolean:
|
|
4830
|
-
o = o ?
|
|
5236
|
+
o = o ? Wl : null;
|
|
4831
5237
|
break;
|
|
4832
5238
|
case Object:
|
|
4833
5239
|
case Array:
|
|
@@ -4852,23 +5258,23 @@ const { is: rl, defineProperty: sl, getOwnPropertyDescriptor: ol, getOwnProperty
|
|
|
4852
5258
|
}
|
|
4853
5259
|
}
|
|
4854
5260
|
return e;
|
|
4855
|
-
} },
|
|
4856
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
4857
|
-
let
|
|
5261
|
+
} }, gr = (o, t) => !Il(o, t), Is = { attribute: !0, type: String, converter: Ue, reflect: !1, useDefault: !1, hasChanged: gr };
|
|
5262
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
5263
|
+
let bt = class extends HTMLElement {
|
|
4858
5264
|
static addInitializer(t) {
|
|
4859
5265
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
4860
5266
|
}
|
|
4861
5267
|
static get observedAttributes() {
|
|
4862
5268
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4863
5269
|
}
|
|
4864
|
-
static createProperty(t, e =
|
|
5270
|
+
static createProperty(t, e = Is) {
|
|
4865
5271
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4866
5272
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
4867
|
-
s !== void 0 &&
|
|
5273
|
+
s !== void 0 && Bl(this.prototype, t, s);
|
|
4868
5274
|
}
|
|
4869
5275
|
}
|
|
4870
5276
|
static getPropertyDescriptor(t, e, r) {
|
|
4871
|
-
const { get: s, set: n } =
|
|
5277
|
+
const { get: s, set: n } = Vl(this.prototype, t) ?? { get() {
|
|
4872
5278
|
return this[e];
|
|
4873
5279
|
}, set(i) {
|
|
4874
5280
|
this[e] = i;
|
|
@@ -4879,17 +5285,17 @@ let yt = class extends HTMLElement {
|
|
|
4879
5285
|
}, configurable: !0, enumerable: !0 };
|
|
4880
5286
|
}
|
|
4881
5287
|
static getPropertyOptions(t) {
|
|
4882
|
-
return this.elementProperties.get(t) ??
|
|
5288
|
+
return this.elementProperties.get(t) ?? Is;
|
|
4883
5289
|
}
|
|
4884
5290
|
static _$Ei() {
|
|
4885
|
-
if (this.hasOwnProperty(
|
|
4886
|
-
const t =
|
|
5291
|
+
if (this.hasOwnProperty(Tt("elementProperties"))) return;
|
|
5292
|
+
const t = Hl(this);
|
|
4887
5293
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4888
5294
|
}
|
|
4889
5295
|
static finalize() {
|
|
4890
|
-
if (this.hasOwnProperty(
|
|
4891
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
4892
|
-
const e = this.properties, r = [...
|
|
5296
|
+
if (this.hasOwnProperty(Tt("finalized"))) return;
|
|
5297
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Tt("properties"))) {
|
|
5298
|
+
const e = this.properties, r = [...Kl(e), ...Jl(e)];
|
|
4893
5299
|
for (const s of r) this.createProperty(s, e[s]);
|
|
4894
5300
|
}
|
|
4895
5301
|
const t = this[Symbol.metadata];
|
|
@@ -4908,8 +5314,8 @@ let yt = class extends HTMLElement {
|
|
|
4908
5314
|
const e = [];
|
|
4909
5315
|
if (Array.isArray(t)) {
|
|
4910
5316
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
4911
|
-
for (const s of r) e.unshift(
|
|
4912
|
-
} else t !== void 0 && e.push(
|
|
5317
|
+
for (const s of r) e.unshift(Ds(s));
|
|
5318
|
+
} else t !== void 0 && e.push(Ds(t));
|
|
4913
5319
|
return e;
|
|
4914
5320
|
}
|
|
4915
5321
|
static _$Eu(t, e) {
|
|
@@ -4938,7 +5344,7 @@ let yt = class extends HTMLElement {
|
|
|
4938
5344
|
}
|
|
4939
5345
|
createRenderRoot() {
|
|
4940
5346
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4941
|
-
return
|
|
5347
|
+
return Nl(t, this.constructor.elementStyles), t;
|
|
4942
5348
|
}
|
|
4943
5349
|
connectedCallback() {
|
|
4944
5350
|
var t;
|
|
@@ -4963,7 +5369,7 @@ let yt = class extends HTMLElement {
|
|
|
4963
5369
|
var r;
|
|
4964
5370
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
4965
5371
|
if (n !== void 0 && s.reflect === !0) {
|
|
4966
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
5372
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Ue).toAttribute(e, s.type);
|
|
4967
5373
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
4968
5374
|
}
|
|
4969
5375
|
}
|
|
@@ -4971,7 +5377,7 @@ let yt = class extends HTMLElement {
|
|
|
4971
5377
|
var r, s;
|
|
4972
5378
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
4973
5379
|
if (i !== void 0 && this._$Em !== i) {
|
|
4974
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
5380
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Ue;
|
|
4975
5381
|
this._$Em = i;
|
|
4976
5382
|
const c = l.fromAttribute(e, a.type);
|
|
4977
5383
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -4981,7 +5387,7 @@ let yt = class extends HTMLElement {
|
|
|
4981
5387
|
var s;
|
|
4982
5388
|
if (t !== void 0) {
|
|
4983
5389
|
const n = this.constructor, i = this[t];
|
|
4984
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
5390
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? gr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
4985
5391
|
this.C(t, e, r);
|
|
4986
5392
|
}
|
|
4987
5393
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -5057,13 +5463,13 @@ let yt = class extends HTMLElement {
|
|
|
5057
5463
|
firstUpdated(t) {
|
|
5058
5464
|
}
|
|
5059
5465
|
};
|
|
5060
|
-
|
|
5466
|
+
bt.elementStyles = [], bt.shadowRootOptions = { mode: "open" }, bt[Tt("elementProperties")] = /* @__PURE__ */ new Map(), bt[Tt("finalized")] = /* @__PURE__ */ new Map(), Ns == null || Ns({ ReactiveElement: bt }), (Q.reactiveElementVersions ?? (Q.reactiveElementVersions = [])).push("2.1.1");
|
|
5061
5467
|
/**
|
|
5062
5468
|
* @license
|
|
5063
5469
|
* Copyright 2017 Google LLC
|
|
5064
5470
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5065
5471
|
*/
|
|
5066
|
-
const
|
|
5472
|
+
const Fl = { attribute: !0, type: String, converter: Ue, reflect: !1, hasChanged: gr }, Gl = (o = Fl, t, e) => {
|
|
5067
5473
|
const { kind: r, metadata: s } = e;
|
|
5068
5474
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
5069
5475
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -5085,16 +5491,16 @@ const cl = { attribute: !0, type: String, converter: _e, reflect: !1, hasChanged
|
|
|
5085
5491
|
throw Error("Unsupported decorator location: " + r);
|
|
5086
5492
|
};
|
|
5087
5493
|
function x(o) {
|
|
5088
|
-
return (t, e) => typeof e == "object" ?
|
|
5494
|
+
return (t, e) => typeof e == "object" ? Gl(o, t, e) : ((r, s, n) => {
|
|
5089
5495
|
const i = s.hasOwnProperty(n);
|
|
5090
5496
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
5091
5497
|
})(o, t, e);
|
|
5092
5498
|
}
|
|
5093
|
-
const
|
|
5094
|
-
var
|
|
5095
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5499
|
+
const Xl = ':host{display:block}.form-radio{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);--formRadioCheckboxHeight: 1.25rem;--checkmarkHeight: .625rem;--radioHeight: .625rem}.form-radio input[type=checkbox],.form-radio input[type=radio]{position:absolute;opacity:0}.form-radio input[type=checkbox]+label,.form-radio input[type=radio]+label{display:flex;position:relative;width:100%;max-width:555px;padding-left:28px;line-height:var(--formRadioCheckboxHeight);cursor:pointer}.form-radio input[type=checkbox]+label .radio-control,.form-radio input[type=radio]+label .radio-control{content:"";display:block;position:absolute;width:var(--formRadioCheckboxHeight);height:var(--formRadioCheckboxHeight);top:0;left:0;background-color:var(--ucds-color-palette-white);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);transition:background-color .5s ease,border-color .5s ease}.form-radio input[type=checkbox]:hover+label .radio-control,.form-radio input[type=radio]:hover+label .radio-control{border-color:var(--ucds-color-forms-input-border-hover)}.form-radio input[type=checkbox]:active:not(:disabled)+label .radio-control,.form-radio input[type=checkbox]:focus:not(:disabled)+label .radio-control,.form-radio input[type=radio]:active:not(:disabled)+label .radio-control,.form-radio input[type=radio]:focus:not(:disabled)+label .radio-control{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-radio input[type=checkbox]:checked+label .radio-control,.form-radio input[type=radio]:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-selected);border-color:var(--ucds-color-forms-input-border-selected)}.form-radio input[type=checkbox]:checked+label .radio-control ucds-icon,.form-radio input[type=radio]:checked+label .radio-control ucds-icon{transform:scale(75%);color:var(--ucds-color-icon-primary-inverse)}.form-radio input[type=checkbox]:disabled+label,.form-radio input[type=radio]:disabled+label{color:var(--ucds-color-text-disabled);cursor:default}.form-radio input[type=checkbox]:disabled+label .radio-control,.form-radio input[type=radio]:disabled+label .radio-control{background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox]:disabled:checked+label .radio-control,.form-radio input[type=radio]:disabled:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-disabled);border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control ucds-icon{color:var(--ucds-color-feedback-error-light)}.form-radio input[type=radio]+label .radio-control{border-radius:50%}';
|
|
5500
|
+
var Yl = Object.defineProperty, Ql = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
|
|
5501
|
+
for (var s = r > 1 ? void 0 : r ? Ql(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5096
5502
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
5097
|
-
return r && s &&
|
|
5503
|
+
return r && s && Yl(t, e, s), s;
|
|
5098
5504
|
};
|
|
5099
5505
|
let m = class extends d {
|
|
5100
5506
|
constructor() {
|
|
@@ -5168,7 +5574,7 @@ let m = class extends d {
|
|
|
5168
5574
|
m.styles = [
|
|
5169
5575
|
d.styles,
|
|
5170
5576
|
$.styles,
|
|
5171
|
-
|
|
5577
|
+
u(Xl)
|
|
5172
5578
|
];
|
|
5173
5579
|
m.formAssociated = !0;
|
|
5174
5580
|
w([
|
|
@@ -5202,15 +5608,15 @@ w([
|
|
|
5202
5608
|
x({ type: String, attribute: "help-text" })
|
|
5203
5609
|
], m.prototype, "helpText", 2);
|
|
5204
5610
|
m = w([
|
|
5205
|
-
|
|
5611
|
+
ql("ucds-radio")
|
|
5206
5612
|
], m);
|
|
5207
|
-
|
|
5613
|
+
v();
|
|
5208
5614
|
/**
|
|
5209
5615
|
* @license
|
|
5210
5616
|
* Copyright 2017 Google LLC
|
|
5211
5617
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5212
5618
|
*/
|
|
5213
|
-
const
|
|
5619
|
+
const Zl = (o) => (t, e) => {
|
|
5214
5620
|
e !== void 0 ? e.addInitializer(() => {
|
|
5215
5621
|
customElements.define(o, t);
|
|
5216
5622
|
}) : customElements.define(o, t);
|
|
@@ -5220,18 +5626,18 @@ const fl = (o) => (t, e) => {
|
|
|
5220
5626
|
* Copyright 2019 Google LLC
|
|
5221
5627
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5222
5628
|
*/
|
|
5223
|
-
const
|
|
5224
|
-
let
|
|
5629
|
+
const de = globalThis, _r = de.ShadowRoot && (de.ShadyCSS === void 0 || de.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Uo = Symbol(), Bs = /* @__PURE__ */ new WeakMap();
|
|
5630
|
+
let tc = class {
|
|
5225
5631
|
constructor(t, e, r) {
|
|
5226
|
-
if (this._$cssResult$ = !0, r !==
|
|
5632
|
+
if (this._$cssResult$ = !0, r !== Uo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5227
5633
|
this.cssText = t, this.t = e;
|
|
5228
5634
|
}
|
|
5229
5635
|
get styleSheet() {
|
|
5230
5636
|
let t = this.o;
|
|
5231
5637
|
const e = this.t;
|
|
5232
|
-
if (
|
|
5638
|
+
if (_r && t === void 0) {
|
|
5233
5639
|
const r = e !== void 0 && e.length === 1;
|
|
5234
|
-
r && (t =
|
|
5640
|
+
r && (t = Bs.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Bs.set(e, t));
|
|
5235
5641
|
}
|
|
5236
5642
|
return t;
|
|
5237
5643
|
}
|
|
@@ -5239,26 +5645,26 @@ let vl = class {
|
|
|
5239
5645
|
return this.cssText;
|
|
5240
5646
|
}
|
|
5241
5647
|
};
|
|
5242
|
-
const
|
|
5243
|
-
if (
|
|
5648
|
+
const ec = (o) => new tc(typeof o == "string" ? o : o + "", void 0, Uo), rc = (o, t) => {
|
|
5649
|
+
if (_r) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
5244
5650
|
else for (const e of t) {
|
|
5245
|
-
const r = document.createElement("style"), s =
|
|
5651
|
+
const r = document.createElement("style"), s = de.litNonce;
|
|
5246
5652
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
5247
5653
|
}
|
|
5248
|
-
},
|
|
5654
|
+
}, Vs = _r ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
5249
5655
|
let e = "";
|
|
5250
5656
|
for (const r of t.cssRules) e += r.cssText;
|
|
5251
|
-
return
|
|
5657
|
+
return ec(e);
|
|
5252
5658
|
})(o) : o;
|
|
5253
5659
|
/**
|
|
5254
5660
|
* @license
|
|
5255
5661
|
* Copyright 2017 Google LLC
|
|
5256
5662
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5257
5663
|
*/
|
|
5258
|
-
const { is:
|
|
5664
|
+
const { is: sc, defineProperty: oc, getOwnPropertyDescriptor: ic, getOwnPropertyNames: nc, getOwnPropertySymbols: ac, getPrototypeOf: lc } = Object, Z = globalThis, Ks = Z.trustedTypes, cc = Ks ? Ks.emptyScript : "", Js = Z.reactiveElementPolyfillSupport, qt = (o, t) => o, Ce = { toAttribute(o, t) {
|
|
5259
5665
|
switch (t) {
|
|
5260
5666
|
case Boolean:
|
|
5261
|
-
o = o ?
|
|
5667
|
+
o = o ? cc : null;
|
|
5262
5668
|
break;
|
|
5263
5669
|
case Object:
|
|
5264
5670
|
case Array:
|
|
@@ -5283,23 +5689,23 @@ const { is: ml, defineProperty: bl, getOwnPropertyDescriptor: gl, getOwnProperty
|
|
|
5283
5689
|
}
|
|
5284
5690
|
}
|
|
5285
5691
|
return e;
|
|
5286
|
-
} },
|
|
5287
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
5288
|
-
let
|
|
5692
|
+
} }, Er = (o, t) => !sc(o, t), Hs = { attribute: !0, type: String, converter: Ce, reflect: !1, useDefault: !1, hasChanged: Er };
|
|
5693
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
5694
|
+
let gt = class extends HTMLElement {
|
|
5289
5695
|
static addInitializer(t) {
|
|
5290
5696
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
5291
5697
|
}
|
|
5292
5698
|
static get observedAttributes() {
|
|
5293
5699
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
5294
5700
|
}
|
|
5295
|
-
static createProperty(t, e =
|
|
5701
|
+
static createProperty(t, e = Hs) {
|
|
5296
5702
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
5297
5703
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
5298
|
-
s !== void 0 &&
|
|
5704
|
+
s !== void 0 && oc(this.prototype, t, s);
|
|
5299
5705
|
}
|
|
5300
5706
|
}
|
|
5301
5707
|
static getPropertyDescriptor(t, e, r) {
|
|
5302
|
-
const { get: s, set: n } =
|
|
5708
|
+
const { get: s, set: n } = ic(this.prototype, t) ?? { get() {
|
|
5303
5709
|
return this[e];
|
|
5304
5710
|
}, set(i) {
|
|
5305
5711
|
this[e] = i;
|
|
@@ -5310,17 +5716,17 @@ let mt = class extends HTMLElement {
|
|
|
5310
5716
|
}, configurable: !0, enumerable: !0 };
|
|
5311
5717
|
}
|
|
5312
5718
|
static getPropertyOptions(t) {
|
|
5313
|
-
return this.elementProperties.get(t) ??
|
|
5719
|
+
return this.elementProperties.get(t) ?? Hs;
|
|
5314
5720
|
}
|
|
5315
5721
|
static _$Ei() {
|
|
5316
|
-
if (this.hasOwnProperty(
|
|
5317
|
-
const t =
|
|
5722
|
+
if (this.hasOwnProperty(qt("elementProperties"))) return;
|
|
5723
|
+
const t = lc(this);
|
|
5318
5724
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
5319
5725
|
}
|
|
5320
5726
|
static finalize() {
|
|
5321
|
-
if (this.hasOwnProperty(
|
|
5322
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
5323
|
-
const e = this.properties, r = [...
|
|
5727
|
+
if (this.hasOwnProperty(qt("finalized"))) return;
|
|
5728
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(qt("properties"))) {
|
|
5729
|
+
const e = this.properties, r = [...nc(e), ...ac(e)];
|
|
5324
5730
|
for (const s of r) this.createProperty(s, e[s]);
|
|
5325
5731
|
}
|
|
5326
5732
|
const t = this[Symbol.metadata];
|
|
@@ -5339,8 +5745,8 @@ let mt = class extends HTMLElement {
|
|
|
5339
5745
|
const e = [];
|
|
5340
5746
|
if (Array.isArray(t)) {
|
|
5341
5747
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
5342
|
-
for (const s of r) e.unshift(
|
|
5343
|
-
} else t !== void 0 && e.push(
|
|
5748
|
+
for (const s of r) e.unshift(Vs(s));
|
|
5749
|
+
} else t !== void 0 && e.push(Vs(t));
|
|
5344
5750
|
return e;
|
|
5345
5751
|
}
|
|
5346
5752
|
static _$Eu(t, e) {
|
|
@@ -5369,7 +5775,7 @@ let mt = class extends HTMLElement {
|
|
|
5369
5775
|
}
|
|
5370
5776
|
createRenderRoot() {
|
|
5371
5777
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
5372
|
-
return
|
|
5778
|
+
return rc(t, this.constructor.elementStyles), t;
|
|
5373
5779
|
}
|
|
5374
5780
|
connectedCallback() {
|
|
5375
5781
|
var t;
|
|
@@ -5394,7 +5800,7 @@ let mt = class extends HTMLElement {
|
|
|
5394
5800
|
var r;
|
|
5395
5801
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
5396
5802
|
if (n !== void 0 && s.reflect === !0) {
|
|
5397
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
5803
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Ce).toAttribute(e, s.type);
|
|
5398
5804
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
5399
5805
|
}
|
|
5400
5806
|
}
|
|
@@ -5402,7 +5808,7 @@ let mt = class extends HTMLElement {
|
|
|
5402
5808
|
var r, s;
|
|
5403
5809
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
5404
5810
|
if (i !== void 0 && this._$Em !== i) {
|
|
5405
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
5811
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Ce;
|
|
5406
5812
|
this._$Em = i;
|
|
5407
5813
|
const c = l.fromAttribute(e, a.type);
|
|
5408
5814
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -5412,7 +5818,7 @@ let mt = class extends HTMLElement {
|
|
|
5412
5818
|
var s;
|
|
5413
5819
|
if (t !== void 0) {
|
|
5414
5820
|
const n = this.constructor, i = this[t];
|
|
5415
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
5821
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Er)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
5416
5822
|
this.C(t, e, r);
|
|
5417
5823
|
}
|
|
5418
5824
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -5488,13 +5894,13 @@ let mt = class extends HTMLElement {
|
|
|
5488
5894
|
firstUpdated(t) {
|
|
5489
5895
|
}
|
|
5490
5896
|
};
|
|
5491
|
-
|
|
5897
|
+
gt.elementStyles = [], gt.shadowRootOptions = { mode: "open" }, gt[qt("elementProperties")] = /* @__PURE__ */ new Map(), gt[qt("finalized")] = /* @__PURE__ */ new Map(), Js == null || Js({ ReactiveElement: gt }), (Z.reactiveElementVersions ?? (Z.reactiveElementVersions = [])).push("2.1.1");
|
|
5492
5898
|
/**
|
|
5493
5899
|
* @license
|
|
5494
5900
|
* Copyright 2017 Google LLC
|
|
5495
5901
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5496
5902
|
*/
|
|
5497
|
-
const
|
|
5903
|
+
const hc = { attribute: !0, type: String, converter: Ce, reflect: !1, hasChanged: Er }, dc = (o = hc, t, e) => {
|
|
5498
5904
|
const { kind: r, metadata: s } = e;
|
|
5499
5905
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
5500
5906
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -5515,17 +5921,17 @@ const Pl = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged
|
|
|
5515
5921
|
}
|
|
5516
5922
|
throw Error("Unsupported decorator location: " + r);
|
|
5517
5923
|
};
|
|
5518
|
-
function
|
|
5519
|
-
return (t, e) => typeof e == "object" ?
|
|
5924
|
+
function Xt(o) {
|
|
5925
|
+
return (t, e) => typeof e == "object" ? dc(o, t, e) : ((r, s, n) => {
|
|
5520
5926
|
const i = s.hasOwnProperty(n);
|
|
5521
5927
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
5522
5928
|
})(o, t, e);
|
|
5523
5929
|
}
|
|
5524
|
-
const
|
|
5525
|
-
var
|
|
5526
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5930
|
+
const pc = ":host{display:flex;flex-direction:column;gap:8px;max-width:555px}button{all:unset}.search-input-wrapper{position:relative;display:flex;align-items:center;gap:8px}.search-input-wrapper .search-input-field{height:var(--ucds-form-element-height);width:var(--ucds-form-element-width);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius)}.search-input-wrapper .search-input-field::-moz-placeholder{color:var(--ucds-color-text-secondary);font-style:italic}.search-input-wrapper .search-input-field::placeholder{color:var(--ucds-color-text-secondary);font-style:italic}.search-input-wrapper .search-input-field:hover{border-color:var(--ucds-color-forms-input-border-hover)}.search-input-wrapper .search-input-field:active:focus-visible,.search-input-wrapper .search-input-field:focus:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.search-input-wrapper .search-input-icon{position:absolute;right:4px;display:inline-flex;align-items:center;justify-content:center;height:var(--ucds-form-element-height)}.search-input-wrapper .search-input-icon ucds-icon{color:var(--ucds-color-action-rest)}.search-input-wrapper .search-input-icon .search-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:var(--ucds-form-element-border-width) solid transparent;border-radius:4px}.search-input-wrapper .search-input-icon .search-button:hover,.search-input-wrapper .search-input-icon .search-button:active,.search-input-wrapper .search-input-icon .search-button:focus{background-color:var(--ucds-color-action-hover)}.search-input-wrapper .search-input-icon .search-button:hover ucds-icon,.search-input-wrapper .search-input-icon .search-button:active ucds-icon,.search-input-wrapper .search-input-icon .search-button:focus ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.search-input-wrapper .search-input-icon .search-button:focus-visible{outline:2px solid var(--ucds-color-action-focus);outline-offset:2px}.search-input-wrapper.size-standard .search-input-field{padding-left:16px;padding-right:56px}.search-input-wrapper.size-standard .search-input-icon{height:40px;width:40px}.search-input-wrapper.size-standard .search-input-icon:active{right:6px;height:36px;width:36px}.search-input-wrapper.size-standard .search-input-icon:active .search-button{outline-offset:4px}.search-input-wrapper.size-compact .search-input-field{height:40px;padding-left:12px;padding-right:44px}.search-input-wrapper.size-compact .search-input-icon{height:32px;width:32px}.search-input-wrapper.size-compact .search-input-icon:active{right:6px;height:28px;width:28px}.search-input-wrapper.size-compact .search-input-icon:active .search-button{outline-offset:4px}.accessible-text{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}";
|
|
5931
|
+
var uc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, it = (o, t, e, r) => {
|
|
5932
|
+
for (var s = r > 1 ? void 0 : r ? fc(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5527
5933
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
5528
|
-
return r && s &&
|
|
5934
|
+
return r && s && uc(t, e, s), s;
|
|
5529
5935
|
};
|
|
5530
5936
|
let U = class extends d {
|
|
5531
5937
|
constructor() {
|
|
@@ -5578,34 +5984,34 @@ let U = class extends d {
|
|
|
5578
5984
|
};
|
|
5579
5985
|
U.styles = [
|
|
5580
5986
|
d.styles,
|
|
5581
|
-
|
|
5987
|
+
u(pc)
|
|
5582
5988
|
];
|
|
5583
5989
|
U.formAssociated = !0;
|
|
5584
|
-
|
|
5585
|
-
|
|
5990
|
+
it([
|
|
5991
|
+
Xt({ type: String, attribute: "input-id" })
|
|
5586
5992
|
], U.prototype, "inputId", 2);
|
|
5587
|
-
|
|
5588
|
-
|
|
5993
|
+
it([
|
|
5994
|
+
Xt({ type: String })
|
|
5589
5995
|
], U.prototype, "label", 2);
|
|
5590
|
-
|
|
5591
|
-
|
|
5996
|
+
it([
|
|
5997
|
+
Xt({ type: String, reflect: !0 })
|
|
5592
5998
|
], U.prototype, "placeholder", 2);
|
|
5593
|
-
|
|
5594
|
-
|
|
5999
|
+
it([
|
|
6000
|
+
Xt({ type: String })
|
|
5595
6001
|
], U.prototype, "size", 2);
|
|
5596
|
-
|
|
5597
|
-
|
|
6002
|
+
it([
|
|
6003
|
+
Xt({ type: String, attribute: "icon-state" })
|
|
5598
6004
|
], U.prototype, "iconState", 2);
|
|
5599
|
-
U =
|
|
5600
|
-
|
|
6005
|
+
U = it([
|
|
6006
|
+
Zl("ucds-search-input")
|
|
5601
6007
|
], U);
|
|
5602
|
-
|
|
6008
|
+
v();
|
|
5603
6009
|
/**
|
|
5604
6010
|
* @license
|
|
5605
6011
|
* Copyright 2017 Google LLC
|
|
5606
6012
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5607
6013
|
*/
|
|
5608
|
-
const
|
|
6014
|
+
const vc = (o) => (t, e) => {
|
|
5609
6015
|
e !== void 0 ? e.addInitializer(() => {
|
|
5610
6016
|
customElements.define(o, t);
|
|
5611
6017
|
}) : customElements.define(o, t);
|
|
@@ -5615,18 +6021,18 @@ const kl = (o) => (t, e) => {
|
|
|
5615
6021
|
* Copyright 2019 Google LLC
|
|
5616
6022
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5617
6023
|
*/
|
|
5618
|
-
const
|
|
5619
|
-
let
|
|
6024
|
+
const pe = globalThis, Sr = pe.ShadowRoot && (pe.ShadyCSS === void 0 || pe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Co = Symbol(), Ws = /* @__PURE__ */ new WeakMap();
|
|
6025
|
+
let $c = class {
|
|
5620
6026
|
constructor(t, e, r) {
|
|
5621
|
-
if (this._$cssResult$ = !0, r !==
|
|
6027
|
+
if (this._$cssResult$ = !0, r !== Co) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5622
6028
|
this.cssText = t, this.t = e;
|
|
5623
6029
|
}
|
|
5624
6030
|
get styleSheet() {
|
|
5625
6031
|
let t = this.o;
|
|
5626
6032
|
const e = this.t;
|
|
5627
|
-
if (
|
|
6033
|
+
if (Sr && t === void 0) {
|
|
5628
6034
|
const r = e !== void 0 && e.length === 1;
|
|
5629
|
-
r && (t =
|
|
6035
|
+
r && (t = Ws.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Ws.set(e, t));
|
|
5630
6036
|
}
|
|
5631
6037
|
return t;
|
|
5632
6038
|
}
|
|
@@ -5634,26 +6040,26 @@ let Al = class {
|
|
|
5634
6040
|
return this.cssText;
|
|
5635
6041
|
}
|
|
5636
6042
|
};
|
|
5637
|
-
const
|
|
5638
|
-
if (
|
|
6043
|
+
const yc = (o) => new $c(typeof o == "string" ? o : o + "", void 0, Co), mc = (o, t) => {
|
|
6044
|
+
if (Sr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
5639
6045
|
else for (const e of t) {
|
|
5640
|
-
const r = document.createElement("style"), s =
|
|
6046
|
+
const r = document.createElement("style"), s = pe.litNonce;
|
|
5641
6047
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
5642
6048
|
}
|
|
5643
|
-
},
|
|
6049
|
+
}, Fs = Sr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
5644
6050
|
let e = "";
|
|
5645
6051
|
for (const r of t.cssRules) e += r.cssText;
|
|
5646
|
-
return
|
|
6052
|
+
return yc(e);
|
|
5647
6053
|
})(o) : o;
|
|
5648
6054
|
/**
|
|
5649
6055
|
* @license
|
|
5650
6056
|
* Copyright 2017 Google LLC
|
|
5651
6057
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5652
6058
|
*/
|
|
5653
|
-
const { is:
|
|
6059
|
+
const { is: bc, defineProperty: gc, getOwnPropertyDescriptor: _c, getOwnPropertyNames: Ec, getOwnPropertySymbols: Sc, getPrototypeOf: wc } = Object, tt = globalThis, Gs = tt.trustedTypes, Pc = Gs ? Gs.emptyScript : "", Xs = tt.reactiveElementPolyfillSupport, Dt = (o, t) => o, ke = { toAttribute(o, t) {
|
|
5654
6060
|
switch (t) {
|
|
5655
6061
|
case Boolean:
|
|
5656
|
-
o = o ?
|
|
6062
|
+
o = o ? Pc : null;
|
|
5657
6063
|
break;
|
|
5658
6064
|
case Object:
|
|
5659
6065
|
case Array:
|
|
@@ -5678,23 +6084,23 @@ const { is: zl, defineProperty: Tl, getOwnPropertyDescriptor: jl, getOwnProperty
|
|
|
5678
6084
|
}
|
|
5679
6085
|
}
|
|
5680
6086
|
return e;
|
|
5681
|
-
} },
|
|
5682
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
5683
|
-
let
|
|
6087
|
+
} }, wr = (o, t) => !bc(o, t), Ys = { attribute: !0, type: String, converter: ke, reflect: !1, useDefault: !1, hasChanged: wr };
|
|
6088
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), tt.litPropertyMetadata ?? (tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
6089
|
+
let _t = class extends HTMLElement {
|
|
5684
6090
|
static addInitializer(t) {
|
|
5685
6091
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
5686
6092
|
}
|
|
5687
6093
|
static get observedAttributes() {
|
|
5688
6094
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
5689
6095
|
}
|
|
5690
|
-
static createProperty(t, e =
|
|
6096
|
+
static createProperty(t, e = Ys) {
|
|
5691
6097
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
5692
6098
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
5693
|
-
s !== void 0 &&
|
|
6099
|
+
s !== void 0 && gc(this.prototype, t, s);
|
|
5694
6100
|
}
|
|
5695
6101
|
}
|
|
5696
6102
|
static getPropertyDescriptor(t, e, r) {
|
|
5697
|
-
const { get: s, set: n } =
|
|
6103
|
+
const { get: s, set: n } = _c(this.prototype, t) ?? { get() {
|
|
5698
6104
|
return this[e];
|
|
5699
6105
|
}, set(i) {
|
|
5700
6106
|
this[e] = i;
|
|
@@ -5705,17 +6111,17 @@ let bt = class extends HTMLElement {
|
|
|
5705
6111
|
}, configurable: !0, enumerable: !0 };
|
|
5706
6112
|
}
|
|
5707
6113
|
static getPropertyOptions(t) {
|
|
5708
|
-
return this.elementProperties.get(t) ??
|
|
6114
|
+
return this.elementProperties.get(t) ?? Ys;
|
|
5709
6115
|
}
|
|
5710
6116
|
static _$Ei() {
|
|
5711
|
-
if (this.hasOwnProperty(
|
|
5712
|
-
const t =
|
|
6117
|
+
if (this.hasOwnProperty(Dt("elementProperties"))) return;
|
|
6118
|
+
const t = wc(this);
|
|
5713
6119
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
5714
6120
|
}
|
|
5715
6121
|
static finalize() {
|
|
5716
|
-
if (this.hasOwnProperty(
|
|
5717
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
5718
|
-
const e = this.properties, r = [...
|
|
6122
|
+
if (this.hasOwnProperty(Dt("finalized"))) return;
|
|
6123
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Dt("properties"))) {
|
|
6124
|
+
const e = this.properties, r = [...Ec(e), ...Sc(e)];
|
|
5719
6125
|
for (const s of r) this.createProperty(s, e[s]);
|
|
5720
6126
|
}
|
|
5721
6127
|
const t = this[Symbol.metadata];
|
|
@@ -5734,8 +6140,8 @@ let bt = class extends HTMLElement {
|
|
|
5734
6140
|
const e = [];
|
|
5735
6141
|
if (Array.isArray(t)) {
|
|
5736
6142
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
5737
|
-
for (const s of r) e.unshift(
|
|
5738
|
-
} else t !== void 0 && e.push(
|
|
6143
|
+
for (const s of r) e.unshift(Fs(s));
|
|
6144
|
+
} else t !== void 0 && e.push(Fs(t));
|
|
5739
6145
|
return e;
|
|
5740
6146
|
}
|
|
5741
6147
|
static _$Eu(t, e) {
|
|
@@ -5764,7 +6170,7 @@ let bt = class extends HTMLElement {
|
|
|
5764
6170
|
}
|
|
5765
6171
|
createRenderRoot() {
|
|
5766
6172
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
5767
|
-
return
|
|
6173
|
+
return mc(t, this.constructor.elementStyles), t;
|
|
5768
6174
|
}
|
|
5769
6175
|
connectedCallback() {
|
|
5770
6176
|
var t;
|
|
@@ -5789,7 +6195,7 @@ let bt = class extends HTMLElement {
|
|
|
5789
6195
|
var r;
|
|
5790
6196
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
5791
6197
|
if (n !== void 0 && s.reflect === !0) {
|
|
5792
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
6198
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : ke).toAttribute(e, s.type);
|
|
5793
6199
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
5794
6200
|
}
|
|
5795
6201
|
}
|
|
@@ -5797,7 +6203,7 @@ let bt = class extends HTMLElement {
|
|
|
5797
6203
|
var r, s;
|
|
5798
6204
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
5799
6205
|
if (i !== void 0 && this._$Em !== i) {
|
|
5800
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
6206
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : ke;
|
|
5801
6207
|
this._$Em = i;
|
|
5802
6208
|
const c = l.fromAttribute(e, a.type);
|
|
5803
6209
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -5807,7 +6213,7 @@ let bt = class extends HTMLElement {
|
|
|
5807
6213
|
var s;
|
|
5808
6214
|
if (t !== void 0) {
|
|
5809
6215
|
const n = this.constructor, i = this[t];
|
|
5810
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
6216
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? wr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
5811
6217
|
this.C(t, e, r);
|
|
5812
6218
|
}
|
|
5813
6219
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -5883,13 +6289,13 @@ let bt = class extends HTMLElement {
|
|
|
5883
6289
|
firstUpdated(t) {
|
|
5884
6290
|
}
|
|
5885
6291
|
};
|
|
5886
|
-
|
|
6292
|
+
_t.elementStyles = [], _t.shadowRootOptions = { mode: "open" }, _t[Dt("elementProperties")] = /* @__PURE__ */ new Map(), _t[Dt("finalized")] = /* @__PURE__ */ new Map(), Xs == null || Xs({ ReactiveElement: _t }), (tt.reactiveElementVersions ?? (tt.reactiveElementVersions = [])).push("2.1.1");
|
|
5887
6293
|
/**
|
|
5888
6294
|
* @license
|
|
5889
6295
|
* Copyright 2017 Google LLC
|
|
5890
6296
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5891
6297
|
*/
|
|
5892
|
-
const
|
|
6298
|
+
const xc = { attribute: !0, type: String, converter: ke, reflect: !1, hasChanged: wr }, Oc = (o = xc, t, e) => {
|
|
5893
6299
|
const { kind: r, metadata: s } = e;
|
|
5894
6300
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
5895
6301
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -5911,16 +6317,16 @@ const Il = { attribute: !0, type: String, converter: Se, reflect: !1, hasChanged
|
|
|
5911
6317
|
throw Error("Unsupported decorator location: " + r);
|
|
5912
6318
|
};
|
|
5913
6319
|
function z(o) {
|
|
5914
|
-
return (t, e) => typeof e == "object" ?
|
|
6320
|
+
return (t, e) => typeof e == "object" ? Oc(o, t, e) : ((r, s, n) => {
|
|
5915
6321
|
const i = s.hasOwnProperty(n);
|
|
5916
6322
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
5917
6323
|
})(o, t, e);
|
|
5918
6324
|
}
|
|
5919
|
-
const
|
|
5920
|
-
var
|
|
5921
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6325
|
+
const Uc = ":host{display:block}.text-area{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);align-items:start;max-width:var(--ucds-form-element-maxwidth)}.text-area textarea{display:block;min-width:115px;width:var(--ucds-form-element-width);height:96px;padding:16px var(--ucds-form-element-horizontal-padding);line-height:16px;color:var(--ucds-color-text-primary);background-color:var(--ucds-color-forms-input-background-rest);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius);transition:border-color .5s ease;resize:none}.text-area textarea:hover{border-color:var(--ucds-color-forms-input-border-hover)}.text-area textarea:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.text-area textarea::-moz-placeholder{font-style:italic;color:var(--ucds-color-text-secondary);line-height:16px}.text-area textarea::placeholder{font-style:italic;color:var(--ucds-color-text-secondary);line-height:16px}.text-area.error textarea{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.text-area.error textarea:hover{border-color:var(--ucds-color-forms-input-border-hover)}.text-area.disabled textarea{color:var(--ucds-color-text-disabled);background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.text-area.disabled textarea::-moz-placeholder{color:var(--ucds-color-text-disabled)}.text-area.disabled textarea::placeholder{color:var(--ucds-color-text-disabled)}";
|
|
6326
|
+
var Cc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, C = (o, t, e, r) => {
|
|
6327
|
+
for (var s = r > 1 ? void 0 : r ? kc(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5922
6328
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
5923
|
-
return r && s &&
|
|
6329
|
+
return r && s && Cc(t, e, s), s;
|
|
5924
6330
|
};
|
|
5925
6331
|
let _ = class extends d {
|
|
5926
6332
|
constructor() {
|
|
@@ -5973,7 +6379,7 @@ let _ = class extends d {
|
|
|
5973
6379
|
};
|
|
5974
6380
|
_.styles = [
|
|
5975
6381
|
d.styles,
|
|
5976
|
-
|
|
6382
|
+
u(Uc)
|
|
5977
6383
|
];
|
|
5978
6384
|
_.formAssociated = !0;
|
|
5979
6385
|
C([
|
|
@@ -6001,15 +6407,15 @@ C([
|
|
|
6001
6407
|
z({ type: Boolean, reflect: !0 })
|
|
6002
6408
|
], _.prototype, "required", 2);
|
|
6003
6409
|
_ = C([
|
|
6004
|
-
|
|
6410
|
+
vc("ucds-text-area")
|
|
6005
6411
|
], _);
|
|
6006
|
-
|
|
6412
|
+
v();
|
|
6007
6413
|
/**
|
|
6008
6414
|
* @license
|
|
6009
6415
|
* Copyright 2017 Google LLC
|
|
6010
6416
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6011
6417
|
*/
|
|
6012
|
-
const
|
|
6418
|
+
const Ac = (o) => (t, e) => {
|
|
6013
6419
|
e !== void 0 ? e.addInitializer(() => {
|
|
6014
6420
|
customElements.define(o, t);
|
|
6015
6421
|
}) : customElements.define(o, t);
|
|
@@ -6019,18 +6425,18 @@ const Jl = (o) => (t, e) => {
|
|
|
6019
6425
|
* Copyright 2019 Google LLC
|
|
6020
6426
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6021
6427
|
*/
|
|
6022
|
-
const
|
|
6023
|
-
let
|
|
6428
|
+
const ue = globalThis, Pr = ue.ShadowRoot && (ue.ShadyCSS === void 0 || ue.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ko = Symbol(), Qs = /* @__PURE__ */ new WeakMap();
|
|
6429
|
+
let Rc = class {
|
|
6024
6430
|
constructor(o, t, e) {
|
|
6025
|
-
if (this._$cssResult$ = !0, e !==
|
|
6431
|
+
if (this._$cssResult$ = !0, e !== ko) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
6026
6432
|
this.cssText = o, this.t = t;
|
|
6027
6433
|
}
|
|
6028
6434
|
get styleSheet() {
|
|
6029
6435
|
let o = this.o;
|
|
6030
6436
|
const t = this.t;
|
|
6031
|
-
if (
|
|
6437
|
+
if (Pr && o === void 0) {
|
|
6032
6438
|
const e = t !== void 0 && t.length === 1;
|
|
6033
|
-
e && (o =
|
|
6439
|
+
e && (o = Qs.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && Qs.set(t, o));
|
|
6034
6440
|
}
|
|
6035
6441
|
return o;
|
|
6036
6442
|
}
|
|
@@ -6038,26 +6444,26 @@ let Wl = class {
|
|
|
6038
6444
|
return this.cssText;
|
|
6039
6445
|
}
|
|
6040
6446
|
};
|
|
6041
|
-
const
|
|
6042
|
-
if (
|
|
6447
|
+
const Mc = (o) => new Rc(typeof o == "string" ? o : o + "", void 0, ko), zc = (o, t) => {
|
|
6448
|
+
if (Pr) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
6043
6449
|
else for (const e of t) {
|
|
6044
|
-
const r = document.createElement("style"), s =
|
|
6450
|
+
const r = document.createElement("style"), s = ue.litNonce;
|
|
6045
6451
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, o.appendChild(r);
|
|
6046
6452
|
}
|
|
6047
|
-
},
|
|
6453
|
+
}, Zs = Pr ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
6048
6454
|
let e = "";
|
|
6049
6455
|
for (const r of t.cssRules) e += r.cssText;
|
|
6050
|
-
return
|
|
6456
|
+
return Mc(e);
|
|
6051
6457
|
})(o) : o;
|
|
6052
6458
|
/**
|
|
6053
6459
|
* @license
|
|
6054
6460
|
* Copyright 2017 Google LLC
|
|
6055
6461
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6056
6462
|
*/
|
|
6057
|
-
const { is:
|
|
6463
|
+
const { is: jc, defineProperty: Tc, getOwnPropertyDescriptor: qc, getOwnPropertyNames: Dc, getOwnPropertySymbols: Lc, getPrototypeOf: Nc } = Object, et = globalThis, to = et.trustedTypes, Ic = to ? to.emptyScript : "", eo = et.reactiveElementPolyfillSupport, Lt = (o, t) => o, Ae = { toAttribute(o, t) {
|
|
6058
6464
|
switch (t) {
|
|
6059
6465
|
case Boolean:
|
|
6060
|
-
o = o ?
|
|
6466
|
+
o = o ? Ic : null;
|
|
6061
6467
|
break;
|
|
6062
6468
|
case Object:
|
|
6063
6469
|
case Array:
|
|
@@ -6082,23 +6488,23 @@ const { is: Xl, defineProperty: Yl, getOwnPropertyDescriptor: Ql, getOwnProperty
|
|
|
6082
6488
|
}
|
|
6083
6489
|
}
|
|
6084
6490
|
return e;
|
|
6085
|
-
} },
|
|
6086
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
6087
|
-
class
|
|
6491
|
+
} }, xr = (o, t) => !jc(o, t), ro = { attribute: !0, type: String, converter: Ae, reflect: !1, useDefault: !1, hasChanged: xr };
|
|
6492
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), et.litPropertyMetadata ?? (et.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
6493
|
+
class Et extends HTMLElement {
|
|
6088
6494
|
static addInitializer(t) {
|
|
6089
6495
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
6090
6496
|
}
|
|
6091
6497
|
static get observedAttributes() {
|
|
6092
6498
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
6093
6499
|
}
|
|
6094
|
-
static createProperty(t, e =
|
|
6500
|
+
static createProperty(t, e = ro) {
|
|
6095
6501
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
6096
6502
|
const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
|
|
6097
|
-
s !== void 0 &&
|
|
6503
|
+
s !== void 0 && Tc(this.prototype, t, s);
|
|
6098
6504
|
}
|
|
6099
6505
|
}
|
|
6100
6506
|
static getPropertyDescriptor(t, e, r) {
|
|
6101
|
-
const { get: s, set: n } =
|
|
6507
|
+
const { get: s, set: n } = qc(this.prototype, t) ?? { get() {
|
|
6102
6508
|
return this[e];
|
|
6103
6509
|
}, set(i) {
|
|
6104
6510
|
this[e] = i;
|
|
@@ -6109,17 +6515,17 @@ class gt extends HTMLElement {
|
|
|
6109
6515
|
}, configurable: !0, enumerable: !0 };
|
|
6110
6516
|
}
|
|
6111
6517
|
static getPropertyOptions(t) {
|
|
6112
|
-
return this.elementProperties.get(t) ??
|
|
6518
|
+
return this.elementProperties.get(t) ?? ro;
|
|
6113
6519
|
}
|
|
6114
6520
|
static _$Ei() {
|
|
6115
|
-
if (this.hasOwnProperty(
|
|
6116
|
-
const t =
|
|
6521
|
+
if (this.hasOwnProperty(Lt("elementProperties"))) return;
|
|
6522
|
+
const t = Nc(this);
|
|
6117
6523
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
6118
6524
|
}
|
|
6119
6525
|
static finalize() {
|
|
6120
|
-
if (this.hasOwnProperty(
|
|
6121
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
6122
|
-
const e = this.properties, r = [...
|
|
6526
|
+
if (this.hasOwnProperty(Lt("finalized"))) return;
|
|
6527
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Lt("properties"))) {
|
|
6528
|
+
const e = this.properties, r = [...Dc(e), ...Lc(e)];
|
|
6123
6529
|
for (const s of r) this.createProperty(s, e[s]);
|
|
6124
6530
|
}
|
|
6125
6531
|
const t = this[Symbol.metadata];
|
|
@@ -6138,8 +6544,8 @@ class gt extends HTMLElement {
|
|
|
6138
6544
|
const e = [];
|
|
6139
6545
|
if (Array.isArray(t)) {
|
|
6140
6546
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
6141
|
-
for (const s of r) e.unshift(
|
|
6142
|
-
} else t !== void 0 && e.push(
|
|
6547
|
+
for (const s of r) e.unshift(Zs(s));
|
|
6548
|
+
} else t !== void 0 && e.push(Zs(t));
|
|
6143
6549
|
return e;
|
|
6144
6550
|
}
|
|
6145
6551
|
static _$Eu(t, e) {
|
|
@@ -6168,7 +6574,7 @@ class gt extends HTMLElement {
|
|
|
6168
6574
|
}
|
|
6169
6575
|
createRenderRoot() {
|
|
6170
6576
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
6171
|
-
return
|
|
6577
|
+
return zc(t, this.constructor.elementStyles), t;
|
|
6172
6578
|
}
|
|
6173
6579
|
connectedCallback() {
|
|
6174
6580
|
var t;
|
|
@@ -6193,7 +6599,7 @@ class gt extends HTMLElement {
|
|
|
6193
6599
|
var r;
|
|
6194
6600
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
6195
6601
|
if (n !== void 0 && s.reflect === !0) {
|
|
6196
|
-
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
6602
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Ae).toAttribute(e, s.type);
|
|
6197
6603
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
6198
6604
|
}
|
|
6199
6605
|
}
|
|
@@ -6201,7 +6607,7 @@ class gt extends HTMLElement {
|
|
|
6201
6607
|
var r, s;
|
|
6202
6608
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
6203
6609
|
if (i !== void 0 && this._$Em !== i) {
|
|
6204
|
-
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
6610
|
+
const a = n.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Ae;
|
|
6205
6611
|
this._$Em = i;
|
|
6206
6612
|
const c = l.fromAttribute(e, a.type);
|
|
6207
6613
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -6211,7 +6617,7 @@ class gt extends HTMLElement {
|
|
|
6211
6617
|
var s;
|
|
6212
6618
|
if (t !== void 0) {
|
|
6213
6619
|
const n = this.constructor, i = this[t];
|
|
6214
|
-
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ??
|
|
6620
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? xr)(i, e) || r.useDefault && r.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
6215
6621
|
this.C(t, e, r);
|
|
6216
6622
|
}
|
|
6217
6623
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -6287,13 +6693,13 @@ class gt extends HTMLElement {
|
|
|
6287
6693
|
firstUpdated(t) {
|
|
6288
6694
|
}
|
|
6289
6695
|
}
|
|
6290
|
-
|
|
6696
|
+
Et.elementStyles = [], Et.shadowRootOptions = { mode: "open" }, Et[Lt("elementProperties")] = /* @__PURE__ */ new Map(), Et[Lt("finalized")] = /* @__PURE__ */ new Map(), eo == null || eo({ ReactiveElement: Et }), (et.reactiveElementVersions ?? (et.reactiveElementVersions = [])).push("2.1.1");
|
|
6291
6697
|
/**
|
|
6292
6698
|
* @license
|
|
6293
6699
|
* Copyright 2017 Google LLC
|
|
6294
6700
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6295
6701
|
*/
|
|
6296
|
-
const
|
|
6702
|
+
const Bc = { attribute: !0, type: String, converter: Ae, reflect: !1, hasChanged: xr }, Vc = (o = Bc, t, e) => {
|
|
6297
6703
|
const { kind: r, metadata: s } = e;
|
|
6298
6704
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
6299
6705
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -6314,17 +6720,17 @@ const sc = { attribute: !0, type: String, converter: we, reflect: !1, hasChanged
|
|
|
6314
6720
|
}
|
|
6315
6721
|
throw Error("Unsupported decorator location: " + r);
|
|
6316
6722
|
};
|
|
6317
|
-
function
|
|
6318
|
-
return (t, e) => typeof e == "object" ?
|
|
6723
|
+
function j(o) {
|
|
6724
|
+
return (t, e) => typeof e == "object" ? Vc(o, t, e) : ((r, s, n) => {
|
|
6319
6725
|
const i = s.hasOwnProperty(n);
|
|
6320
6726
|
return s.constructor.createProperty(n, r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
6321
6727
|
})(o, t, e);
|
|
6322
6728
|
}
|
|
6323
|
-
const
|
|
6324
|
-
var
|
|
6325
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6729
|
+
const Kc = ":host{display:block}.form-text{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);align-items:start;max-width:var(--ucds-form-element-maxwidth)}.form-text input{display:block;height:var(--ucds-form-element-height);width:var(--ucds-form-element-width);padding-left:var(--ucds-form-element-horizontal-padding);padding-right:var(--ucds-form-element-horizontal-padding);line-height:16px;background-color:var(--ucds-color-forms-input-background-rest);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius);transition:border-color .5s ease;text-align:left}.form-text input::-moz-placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input::placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input[error]{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-text input:hover{border-color:var(--ucds-color-forms-input-border-hover)}.form-text input:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-text.disabled input{color:var(--ucds-color-text-disabled);background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-text.disabled input::-moz-placeholder{color:var(--ucds-color-text-disabled)}.form-text.disabled input::placeholder{color:var(--ucds-color-text-disabled)}";
|
|
6730
|
+
var Jc = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, k = (o, t, e, r) => {
|
|
6731
|
+
for (var s = r > 1 ? void 0 : r ? Hc(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
6326
6732
|
(i = o[n]) && (s = (r ? i(t, e, s) : i(s)) || s);
|
|
6327
|
-
return r && s &&
|
|
6733
|
+
return r && s && Jc(t, e, s), s;
|
|
6328
6734
|
};
|
|
6329
6735
|
let E = class extends d {
|
|
6330
6736
|
constructor() {
|
|
@@ -6377,48 +6783,50 @@ let E = class extends d {
|
|
|
6377
6783
|
};
|
|
6378
6784
|
E.styles = [
|
|
6379
6785
|
d.styles,
|
|
6380
|
-
|
|
6786
|
+
u(Kc)
|
|
6381
6787
|
];
|
|
6382
6788
|
E.formAssociated = !0;
|
|
6383
6789
|
k([
|
|
6384
|
-
|
|
6790
|
+
j({ type: String, attribute: "error-text" })
|
|
6385
6791
|
], E.prototype, "errorText", 2);
|
|
6386
6792
|
k([
|
|
6387
|
-
|
|
6793
|
+
j({ type: String, attribute: "help-text" })
|
|
6388
6794
|
], E.prototype, "helpText", 2);
|
|
6389
6795
|
k([
|
|
6390
|
-
|
|
6796
|
+
j({ type: String, attribute: "input-id" })
|
|
6391
6797
|
], E.prototype, "inputId", 2);
|
|
6392
6798
|
k([
|
|
6393
|
-
|
|
6799
|
+
j({ type: String })
|
|
6394
6800
|
], E.prototype, "label", 2);
|
|
6395
6801
|
k([
|
|
6396
|
-
|
|
6802
|
+
j({ type: String, reflect: !0 })
|
|
6397
6803
|
], E.prototype, "placeholder", 2);
|
|
6398
6804
|
k([
|
|
6399
|
-
|
|
6805
|
+
j({ type: Boolean, reflect: !0 })
|
|
6400
6806
|
], E.prototype, "disabled", 2);
|
|
6401
6807
|
k([
|
|
6402
|
-
|
|
6808
|
+
j({ type: Boolean, reflect: !0 })
|
|
6403
6809
|
], E.prototype, "error", 2);
|
|
6404
6810
|
k([
|
|
6405
|
-
|
|
6811
|
+
j({ type: Boolean, reflect: !0 })
|
|
6406
6812
|
], E.prototype, "required", 2);
|
|
6407
6813
|
E = k([
|
|
6408
|
-
|
|
6814
|
+
Ac("ucds-text-input")
|
|
6409
6815
|
], E);
|
|
6410
|
-
|
|
6411
|
-
|
|
6816
|
+
v();
|
|
6817
|
+
v();
|
|
6412
6818
|
export {
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6819
|
+
Nt as Accordion,
|
|
6820
|
+
qe as AccordionGroup,
|
|
6821
|
+
It as Breadcrumb,
|
|
6822
|
+
Bt as BreadcrumbItem,
|
|
6823
|
+
T as Button,
|
|
6824
|
+
Vt as ButtonGroup,
|
|
6417
6825
|
y as Checkbox,
|
|
6418
6826
|
H as Chip,
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6827
|
+
Se as ChipGroup,
|
|
6828
|
+
f as Dropdown,
|
|
6829
|
+
Jt as DropdownItem,
|
|
6422
6830
|
O as Fieldset,
|
|
6423
6831
|
R as IconButton,
|
|
6424
6832
|
M as Link,
|