@codeforamerica/marcomms-design-system 1.21.1 → 1.22.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/README.md +25 -0
- package/dist/components/accordion.js +1 -159
- package/dist/components/avatar.js +1 -102
- package/dist/components/bar.js +1 -121
- package/dist/components/blob.js +1 -132
- package/dist/components/box.js +1 -111
- package/dist/components/breadcrumbs.js +1 -111
- package/dist/components/button.js +1 -158
- package/dist/components/callout.js +1 -134
- package/dist/components/card.js +1 -876
- package/dist/components/carousel.js +1 -290
- package/dist/components/icon.js +1 -90
- package/dist/components/label.js +1 -501
- package/dist/components/logo-card.js +1 -517
- package/dist/components/nav.js +1 -128
- package/dist/components/page-nav.js +1 -162
- package/dist/components/pager.js +1 -710
- package/dist/components/pagination.js +1 -302
- package/dist/components/person-card.js +1 -867
- package/dist/components/pill.js +1 -79
- package/dist/components/placeholder.js +1 -11
- package/dist/components/promo.js +1 -539
- package/dist/components/pullquote.js +1 -88
- package/dist/components/quote.js +1 -154
- package/dist/components/reveal.js +1 -141
- package/dist/components/slide.js +1 -156
- package/dist/components/social-icon.js +1 -239
- package/dist/components/stat.js +1 -510
- package/dist/components/tab-list.js +1 -691
- package/dist/components/tab.js +1 -497
- package/dist/components/tile.js +1 -665
- package/dist/components/transcript.js +1 -486
- package/dist/index.css +1 -1
- package/dist/index.js +1 -2951
- package/dist/styles.css +1 -1
- package/package.json +42 -28
- package/src/components/accordion.js +18 -8
- package/src/components/accordion.test.js +78 -0
- package/src/components/button.stories.js +7 -3
- package/src/components/carousel.a11y.test.js +75 -0
- package/src/components/carousel.stories.js +48 -1
- package/src/components/carousel.test.js +177 -0
- package/src/components/form-elements.stories.js +8 -2
- package/src/components/label.test.js +44 -0
- package/src/components/link-list.scss +1 -1
- package/src/components/nav.test.js +50 -0
- package/src/components/pagination.test.js +67 -0
- package/src/components/person-card.js +2 -0
- package/src/components/pullquote.test.js +44 -0
- package/src/components/quote.test.js +47 -0
- package/src/components/reveal.test.js +61 -0
- package/src/components/slide.stories.js +0 -4
- package/src/components/tab-list.a11y.test.js +87 -0
- package/src/components/tab-list.js +35 -3
- package/src/components/tab-list.stories.js +36 -0
- package/src/components/tab-list.test.js +134 -0
- package/src/components/tab.js +23 -15
- package/src/components/transcript.js +2 -2
- package/src/components/transcript.test.js +53 -0
|
@@ -1,692 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tab-list.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var t={227(t,e,i){i.d(e,{V:()=>n});const n=i(161).AH`
|
|
3
|
-
.cfa-button,
|
|
4
|
-
a.cfa-button,
|
|
5
|
-
.cfa-button > a,
|
|
6
|
-
.wp-block-button > * {
|
|
7
|
-
--bg-color: var(--white);
|
|
8
|
-
--border-color: transparent;
|
|
9
|
-
--font-family: var(--font-family-sans-serif);
|
|
10
|
-
--font-size: var(--base-font-size);
|
|
11
|
-
--hover-bg-color: var(--blue-20);
|
|
12
|
-
--hover-border-color: var(--border-color);
|
|
13
|
-
--line-height: var(--base-line-height);
|
|
14
|
-
--text-color: var(--purple-80);
|
|
15
|
-
|
|
16
|
-
background-color: var(--bg-color);
|
|
17
|
-
border: var(--hairline) solid var(--border-color);
|
|
18
|
-
border-radius: var(--rounded-corners);
|
|
19
|
-
box-shadow: var(--shadow-small);
|
|
20
|
-
color: var(--text-color);
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
display: block;
|
|
23
|
-
font-family: var(--font-family);
|
|
24
|
-
font-size: var(--font-size);
|
|
25
|
-
font-weight: bold;
|
|
26
|
-
padding: var(--spacing-component-2) var(--spacing-component-3);
|
|
27
|
-
text-align: center;
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
transition: background-color 0.5s, box-shadow 0.5s;
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
background-color: var(--hover-bg-color);
|
|
33
|
-
border-color: var(--hover-border-color);
|
|
34
|
-
box-shadow: var(--shadow-medium);
|
|
35
|
-
color: var(--text-color);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@media (max-width: 768px) {
|
|
40
|
-
.cfa-button,
|
|
41
|
-
a.cfa-button,
|
|
42
|
-
.cfa-button > a,
|
|
43
|
-
.wp-block-button > * {
|
|
44
|
-
width: 100%;
|
|
45
|
-
|
|
46
|
-
& + & {
|
|
47
|
-
margin-block-start: var(--spacing-layout-half);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.wp-block-button {
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (min-width: 768px) {
|
|
57
|
-
.cfa-button,
|
|
58
|
-
a.cfa-button,
|
|
59
|
-
.cfa-button > a,
|
|
60
|
-
.wp-block-button > * {
|
|
61
|
-
display: inline-block;
|
|
62
|
-
|
|
63
|
-
& {
|
|
64
|
-
margin-block: var(--spacing-component-2);
|
|
65
|
-
margin-inline-end: var(--spacing-component-2);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Themes / variants
|
|
71
|
-
|
|
72
|
-
.cfa-button--primary,
|
|
73
|
-
a.cfa-button--primary,
|
|
74
|
-
.cfa-button--primary > a,
|
|
75
|
-
.wp-block-button.is-style-primary > * {
|
|
76
|
-
--bg-color: var(--red-60);
|
|
77
|
-
--hover-bg-color: var(--red-80);
|
|
78
|
-
--text-color: var(--white,);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.cfa-button--outline,
|
|
82
|
-
a.cfa-button--outline,
|
|
83
|
-
.cfa-button--outline > a,
|
|
84
|
-
.wp-block-button.is-style-outline > * {
|
|
85
|
-
--border-color: var(--black-20);
|
|
86
|
-
--bg-color: transparent;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.cfa-button--outline-white,
|
|
90
|
-
a.cfa-button--outline-white,
|
|
91
|
-
.cfa-button--outline-white > a,
|
|
92
|
-
.wp-block-button.is-style-outline-white > * {
|
|
93
|
-
--border-color: var(--white);
|
|
94
|
-
--bg-color: transparent;
|
|
95
|
-
--hover-bg-color: var(--black-20);
|
|
96
|
-
--shadow-color: var(--white-20);
|
|
97
|
-
--text-color: var(--white);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.cfa-button--prominent-link,
|
|
101
|
-
a.cfa-button--prominent-link,
|
|
102
|
-
.cfa-button--prominent-link > a,
|
|
103
|
-
.wp-block-button.is-style-prominent-link > * {
|
|
104
|
-
--accent-color: var(--purple-60);
|
|
105
|
-
|
|
106
|
-
background: unset;
|
|
107
|
-
box-shadow: unset;
|
|
108
|
-
color: inherit;
|
|
109
|
-
font-weight: bold;
|
|
110
|
-
padding: 0;
|
|
111
|
-
text-decoration: underline;
|
|
112
|
-
text-decoration-color: var(--accent-color);
|
|
113
|
-
text-decoration-thickness: var(--medium);
|
|
114
|
-
text-underline-offset: 0.4em;
|
|
115
|
-
transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
|
116
|
-
|
|
117
|
-
&:hover {
|
|
118
|
-
--accent-color: var(--red-60);
|
|
119
|
-
|
|
120
|
-
background: unset;
|
|
121
|
-
box-shadow: unset;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&::after {
|
|
125
|
-
@include icon.icon;
|
|
126
|
-
|
|
127
|
-
content: "arrow_right_alt";
|
|
128
|
-
display: inline-block;
|
|
129
|
-
padding-inline-start: 0.1em;
|
|
130
|
-
text-decoration: none;
|
|
131
|
-
transition: transform 0.2s ease-in-out;
|
|
132
|
-
width: 1em;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&:hover::after {
|
|
136
|
-
transform: translateX(0.3em);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
cfa-icon {
|
|
140
|
-
text-decoration: none;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Sizes
|
|
145
|
-
|
|
146
|
-
.cfa-button--sm,
|
|
147
|
-
a.cfa-button--sm,
|
|
148
|
-
.cfa-button--sm > a {
|
|
149
|
-
--font-size: var(--font-size-small);
|
|
150
|
-
--line-height: var(--line-height-small);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.cfa-button--md,
|
|
154
|
-
a.cfa-button--md,
|
|
155
|
-
.cfa-button--md > a {
|
|
156
|
-
--font-size: var(--base-font-size);
|
|
157
|
-
--line-height: var(--base-line-height);
|
|
158
|
-
}
|
|
159
|
-
`},36(t,e,i){var n=i(161),o=i(601),r=i(205);class s extends n.WF{static properties=(()=>({active:{type:Boolean},panelId:{type:String}}))();static styles=(()=>[o.s,r.g,n.AH`
|
|
160
|
-
button {
|
|
161
|
-
background: none;
|
|
162
|
-
border: 0;
|
|
163
|
-
box-shadow: inset 0 calc(-1 * var(--hairline)) 0 0 var(--gray-40);
|
|
164
|
-
color: var(--gray-80);
|
|
165
|
-
cursor: pointer;
|
|
166
|
-
font-family: var(--font-family-sans-serif);
|
|
167
|
-
font-size: var(--font-size-small);
|
|
168
|
-
font-weight: normal;
|
|
169
|
-
padding: var(--spacing-component-2) var(--spacing-component-3)
|
|
170
|
-
calc(var(--spacing-component-2) + var(--medium));
|
|
171
|
-
}
|
|
172
|
-
button:focus {
|
|
173
|
-
background-color: var(--focus-color);
|
|
174
|
-
outline: none;
|
|
175
|
-
}
|
|
176
|
-
button:not(.active):hover {
|
|
177
|
-
box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-40);
|
|
178
|
-
color: var(--black);
|
|
179
|
-
}
|
|
180
|
-
button.active {
|
|
181
|
-
box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-60);
|
|
182
|
-
color: var(--black);
|
|
183
|
-
font-weight: bold;
|
|
184
|
-
}
|
|
185
|
-
`])();constructor(){super(),this.active=!1,this.panelId=""}firstUpdated(){this.addEventListener("keydown",this._onKeyDown)}_onKeyDown(t){const e=Array.from(this.parentElement.querySelectorAll("cfa-tab")),i=e.indexOf(this);let n;switch(t.key){case"ArrowLeft":n=(i-1+e.length)%e.length,e[n].shadowRoot.querySelector("button").focus();break;case"ArrowRight":n=(i+1)%e.length,e[n].shadowRoot.querySelector("button").focus();break;case"Home":e[0].shadowRoot.querySelector("button").focus();break;case"End":e[e.length-1].shadowRoot.querySelector("button").focus()}}render(){return n.qy`
|
|
186
|
-
<button
|
|
187
|
-
role="tab"
|
|
188
|
-
aria-selected="${this.active?"true":"false"}"
|
|
189
|
-
aria-controls="${this.panelId}"
|
|
190
|
-
class="${this.active?"active":""}"
|
|
191
|
-
tabindex="${this.active?"0":"-1"}"
|
|
192
|
-
>
|
|
193
|
-
<slot></slot>
|
|
194
|
-
</button>
|
|
195
|
-
`}}customElements.get("cfa-tab")||customElements.define("cfa-tab",s)},601(t,e,i){i.d(e,{s:()=>n});const n=i(161).AH`
|
|
196
|
-
*:focus-visible,
|
|
197
|
-
*:target {
|
|
198
|
-
outline: var(--focus-outline);
|
|
199
|
-
position: relative;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// RESET
|
|
203
|
-
|
|
204
|
-
// Use a more-intuitive box-sizing model.
|
|
205
|
-
*, *::before, *::after {
|
|
206
|
-
box-sizing: border-box;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// Remove default margin
|
|
210
|
-
* {
|
|
211
|
-
margin: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Set default text-wrap of 'pretty'
|
|
215
|
-
* {
|
|
216
|
-
text-wrap: pretty;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Wrap overly long words
|
|
220
|
-
* {
|
|
221
|
-
overflow-wrap: break-word;
|
|
222
|
-
text-overflow: ellipsis;
|
|
223
|
-
word-break: break-word;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// Fix Safari antialiasing for variable fonts
|
|
227
|
-
* {
|
|
228
|
-
font-synthesis: none !important;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Improve text rendering
|
|
232
|
-
body {
|
|
233
|
-
-webkit-font-smoothing: antialiased;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// Reasonable media defaults
|
|
237
|
-
img, picture, video, canvas, svg {
|
|
238
|
-
display: block;
|
|
239
|
-
height: auto;
|
|
240
|
-
max-width: 100%;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// Remove built-in form typography styles
|
|
244
|
-
input, button, textarea, select {
|
|
245
|
-
font: inherit;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// Avoid text overflows
|
|
249
|
-
p, h1, h2, h3, h4, h5, h6 {
|
|
250
|
-
overflow-wrap: break-word;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// Create a root stacking context
|
|
254
|
-
#root, #__next {
|
|
255
|
-
isolation: isolate;
|
|
256
|
-
}
|
|
257
|
-
`},205(t,e,i){i.d(e,{g:()=>n});const n=i(161).AH`
|
|
258
|
-
// =====
|
|
259
|
-
|
|
260
|
-
// Typography spacing
|
|
261
|
-
|
|
262
|
-
// Add a single space around paragraphs, blockquotes, and lists
|
|
263
|
-
p, ul, ol, blockquote {
|
|
264
|
-
& + * {
|
|
265
|
-
margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
|
|
266
|
-
}
|
|
267
|
-
* + & {
|
|
268
|
-
margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {
|
|
273
|
-
// Add a single line space after headings
|
|
274
|
-
& + * {
|
|
275
|
-
margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// Add two line spaces before headings
|
|
279
|
-
* + & {
|
|
280
|
-
--spacing: var(--spacing-layout-2);
|
|
281
|
-
|
|
282
|
-
margin-block-start: --spacing;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// Only add a single space between headings and other headings
|
|
286
|
-
& + & {
|
|
287
|
-
--spacing: var(--spacing-layout-1);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// Reduce space after breadcrumbs and eyebrows
|
|
291
|
-
cfa-breadcrumbs + & {
|
|
292
|
-
margin-block-start: var(--spacing-layout-half) !important;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.eyebrow + & {
|
|
296
|
-
margin-block-start: 0 !important;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
h1, .h1, .display-1, .display-2 {
|
|
301
|
-
text-wrap: balance;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// =====
|
|
305
|
-
|
|
306
|
-
// Font styles
|
|
307
|
-
|
|
308
|
-
.regular {
|
|
309
|
-
font-family: var(--font-family-base);
|
|
310
|
-
font-size: var(--font-size);
|
|
311
|
-
line-height: var(--line-height);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.display-1 {
|
|
315
|
-
font-family: var(--font-family-heading);
|
|
316
|
-
font-size: var(--font-size-display-1);
|
|
317
|
-
font-weight: bold;
|
|
318
|
-
line-height: var(--line-height-display-1);
|
|
319
|
-
letter-spacing: var(--letter-spacing-display-1);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.display-2 {
|
|
323
|
-
font-family: var(--font-family-heading);
|
|
324
|
-
font-size: var(--font-size-display-2);
|
|
325
|
-
font-weight: bold;
|
|
326
|
-
line-height: var(--line-height-display-2);
|
|
327
|
-
letter-spacing: var(--letter-spacing-display-2);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
h1,
|
|
331
|
-
.h1 {
|
|
332
|
-
font-family: var(--font-family-heading);
|
|
333
|
-
font-size: var(--font-size-h1);
|
|
334
|
-
font-weight: bold;
|
|
335
|
-
line-height: var(--line-height-h1);
|
|
336
|
-
letter-spacing: var(--letter-spacing-h1);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
h2,
|
|
340
|
-
.h2 {
|
|
341
|
-
font-family: var(--font-family-heading);
|
|
342
|
-
font-size: var(--font-size-h2);
|
|
343
|
-
font-weight: bold;
|
|
344
|
-
line-height: var(--line-height-h2);
|
|
345
|
-
letter-spacing: var(--letter-spacing-h2);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
h3,
|
|
349
|
-
.h3 {
|
|
350
|
-
font-family: var(--font-family-heading);
|
|
351
|
-
font-size: var(--font-size-h3);
|
|
352
|
-
font-weight: bold;
|
|
353
|
-
line-height: var(--line-height-h3);
|
|
354
|
-
letter-spacing: var(--letter-spacing-h3);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
h4,
|
|
358
|
-
.h4 {
|
|
359
|
-
font-family: var(--font-family-heading);
|
|
360
|
-
font-size: var(--font-size-h4);
|
|
361
|
-
font-weight: bold;
|
|
362
|
-
line-height: var(--line-height-h4);
|
|
363
|
-
letter-spacing: var(--letter-spacing-h4);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.extra-large {
|
|
367
|
-
font-size: var(--font-size-extra-large);
|
|
368
|
-
line-height: var(--line-height-extra-large);
|
|
369
|
-
letter-spacing: var(--letter-spacing-extra-large);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.large {
|
|
373
|
-
font-size: var(--font-size-large);
|
|
374
|
-
line-height: var(--line-height-large);
|
|
375
|
-
letter-spacing: var(--letter-spacing-large);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.small {
|
|
379
|
-
font-size: var(--font-size-small);
|
|
380
|
-
line-height: var(--line-height-small);
|
|
381
|
-
letter-spacing: var(--letter-spacing-small);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.eyebrow {
|
|
385
|
-
font-family: var(--font-family-sans-serif);
|
|
386
|
-
font-size: var(--font-size-eyebrow);
|
|
387
|
-
font-weight: var(--font-weight-eyebrow);
|
|
388
|
-
letter-spacing: var(--letter-spacing-eyebrow);
|
|
389
|
-
line-height: var(--line-height-eyebrow);
|
|
390
|
-
text-transform: uppercase;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.eyebrow-with-line {
|
|
394
|
-
align-items: center;
|
|
395
|
-
color: var(--text-color);
|
|
396
|
-
display: flex;
|
|
397
|
-
font-family: var(--font-family-eyebrow);
|
|
398
|
-
font-size: var(--font-size-eyebrow);
|
|
399
|
-
font-weight: var(--font-weight-eyebrow);
|
|
400
|
-
letter-spacing: var(--letter-spacing-eyebrow);
|
|
401
|
-
line-height: var(--line-height-eyebrow);
|
|
402
|
-
margin-block-end: var(--spacing-layout-half);
|
|
403
|
-
position: relative;
|
|
404
|
-
text-transform: uppercase;
|
|
405
|
-
|
|
406
|
-
&::after {
|
|
407
|
-
border-block-end: var(--hairline) solid currentColor;
|
|
408
|
-
content: "";
|
|
409
|
-
flex-grow: 1;
|
|
410
|
-
margin-left: var(--spacing-component-3);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.subtle {
|
|
415
|
-
opacity: 0.6;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.serif {
|
|
419
|
-
font-family: var(--font-family-serif);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.sans-serif {
|
|
423
|
-
font-family: var(--font-family-sans-serif);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
i,
|
|
427
|
-
em,
|
|
428
|
-
.italic {
|
|
429
|
-
font-style: italic;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
b,
|
|
433
|
-
strong,
|
|
434
|
-
.strong {
|
|
435
|
-
font-weight: bold;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.normal {
|
|
439
|
-
font-weight: normal;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.balance {
|
|
443
|
-
text-wrap: balance;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.prominent-link,
|
|
447
|
-
a.prominent-link {
|
|
448
|
-
--accent-color: var(--purple-60);
|
|
449
|
-
|
|
450
|
-
font-weight: bold;
|
|
451
|
-
text-decoration: underline;
|
|
452
|
-
text-decoration-color: var(--accent-color);
|
|
453
|
-
text-decoration-thickness: var(--medium);
|
|
454
|
-
text-underline-offset: 0.4em;
|
|
455
|
-
transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
|
456
|
-
|
|
457
|
-
&:hover {
|
|
458
|
-
--accent-color: var(--red-60);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
&:not(:has(cfa-icon))::after {
|
|
462
|
-
@include icon.icon;
|
|
463
|
-
|
|
464
|
-
content: "arrow_right_alt";
|
|
465
|
-
display: inline-block;
|
|
466
|
-
padding-inline-start: 0.1em;
|
|
467
|
-
text-decoration: none;
|
|
468
|
-
transition: padding 0.2s ease-in-out;
|
|
469
|
-
width: 1em;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
&:not(:has(cfa-icon)):hover::after {
|
|
473
|
-
padding-inline-start: 0.3em;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
cfa-icon {
|
|
477
|
-
text-decoration: none;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.white-text,
|
|
482
|
-
.text-light /* fallback */ {
|
|
483
|
-
-moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background
|
|
484
|
-
-webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background
|
|
485
|
-
color: var(--white);
|
|
486
|
-
--link-color: var(--white);
|
|
487
|
-
--link-hover-color: var(--white);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
// =====
|
|
491
|
-
|
|
492
|
-
// Highlights
|
|
493
|
-
|
|
494
|
-
.highlight {
|
|
495
|
-
--highlight-offset: 0.2em;
|
|
496
|
-
|
|
497
|
-
box-decoration-break: clone;
|
|
498
|
-
display: inline;
|
|
499
|
-
background: linear-gradient(to top, transparent 0%, transparent var(--highlight-offset), var(--highlight-color) var(--highlight-offset), var(--highlight-color) calc(var(--highlight-offset) + var(--highlight-thickness)), transparent calc(var(--highlight-offset) + var(--highlight-thickness)), transparent 100%);
|
|
500
|
-
padding-inline: 0.1em;
|
|
501
|
-
-webkit-box-decoration-break: clone;
|
|
502
|
-
margin-inline-start: -0.1em;
|
|
503
|
-
margin-inline-end: -0.1em;
|
|
504
|
-
word-wrap: break-word;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
// ======
|
|
508
|
-
|
|
509
|
-
// Lists
|
|
510
|
-
|
|
511
|
-
.ul {
|
|
512
|
-
list-style-type: disc;
|
|
513
|
-
padding-left: var(--spacing-layout-1);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.ul > li {
|
|
517
|
-
margin-inline-start: 0;
|
|
518
|
-
padding-left: var(--spacing-component-2);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
.ul > li + li {
|
|
522
|
-
margin-block-start: var(--spacing-layout-half);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.ul > li > ul {
|
|
526
|
-
margin-block-start: var(--spacing-layout-half);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.ol {
|
|
530
|
-
list-style-type: decimal;
|
|
531
|
-
padding-left: var(--spacing-layout-1);
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.ol > li {
|
|
535
|
-
margin-inline-start: 0;
|
|
536
|
-
padding-inline-start: var(--spacing-component-2);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
.ol > li + li {
|
|
540
|
-
margin-block-start: var(--spacing-layout-half);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.ol > li > ul {
|
|
544
|
-
margin-block-start: var(--spacing-layout-half);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
.ul--unstyled {
|
|
548
|
-
list-style: none;
|
|
549
|
-
padding: 0;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.ul--unstyled > li {
|
|
553
|
-
margin-inline: 0;
|
|
554
|
-
padding: 0;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.ul--line-separators > li + li::before {
|
|
558
|
-
border-block-start: 1px solid var(--gray-20);
|
|
559
|
-
content: "";
|
|
560
|
-
display: block;
|
|
561
|
-
margin-block: var(--spacing-layout-half);
|
|
562
|
-
width: 100%;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.ul--inline,
|
|
566
|
-
.ul--inline-with-separators,
|
|
567
|
-
.ul--inline-with-line-separators {
|
|
568
|
-
display: inline;
|
|
569
|
-
list-style: none;
|
|
570
|
-
padding-inline: 0 !important;
|
|
571
|
-
padding-left: 0 !important;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.ul--inline > li,
|
|
575
|
-
.ul--inline-with-separators > li,
|
|
576
|
-
.ul--inline-with-line-separators > li {
|
|
577
|
-
display: inline-block;
|
|
578
|
-
margin-inline-end: var(--spacing-component-3);
|
|
579
|
-
padding: 0 !important;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.ul--inline li:last-child,
|
|
583
|
-
.ul--inline-with-separators li:last-child,
|
|
584
|
-
.ul--inline-with-line-separators li:last-child {
|
|
585
|
-
margin-inline-end: 0;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.ul--inline > li + li,
|
|
589
|
-
.ul--inline-with-separators > li + li,
|
|
590
|
-
.ul--inline-with-line-separators > li + li {
|
|
591
|
-
margin-block-start: 0;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.ul--inline-with-separators li,
|
|
595
|
-
.ul--inline-with-line-separators li {
|
|
596
|
-
margin-inline-end: 0;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
.ul--inline-with-separators > li::after {
|
|
600
|
-
content: "•";
|
|
601
|
-
margin-inline: var(--spacing-component-2);
|
|
602
|
-
opacity: 0.5;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.ul--inline-with-separators > li:last-child::after {
|
|
606
|
-
content: "";
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.ul--inline-with-line-separators > li::after {
|
|
610
|
-
content: "|";
|
|
611
|
-
margin-inline: var(--spacing-component-2);
|
|
612
|
-
opacity: 0.5;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.ul--inline-with-line-separators > li:last-child::after {
|
|
616
|
-
content: "";
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
// ===
|
|
620
|
-
|
|
621
|
-
// Horizontal rule
|
|
622
|
-
|
|
623
|
-
hr {
|
|
624
|
-
--color: currentColor;
|
|
625
|
-
|
|
626
|
-
background-color: var(--color);
|
|
627
|
-
border: 0;
|
|
628
|
-
color: var(--color);
|
|
629
|
-
display: block;
|
|
630
|
-
font-size: 0;
|
|
631
|
-
height: var(--hairline);
|
|
632
|
-
margin-block: var(--spacing-layout-1);
|
|
633
|
-
opacity: 0.4;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
// ===
|
|
637
|
-
|
|
638
|
-
// Icons
|
|
639
|
-
|
|
640
|
-
.icon {
|
|
641
|
-
-webkit-font-feature-settings: 'liga';
|
|
642
|
-
direction: ltr;
|
|
643
|
-
display: inline-block;
|
|
644
|
-
font-family: 'Material Symbols Rounded';
|
|
645
|
-
font-feature-settings: 'liga';
|
|
646
|
-
font-size: 1.4em;
|
|
647
|
-
font-style: normal;
|
|
648
|
-
font-weight: normal;
|
|
649
|
-
letter-spacing: normal;
|
|
650
|
-
text-transform: none;
|
|
651
|
-
vertical-align: middle;
|
|
652
|
-
white-space: nowrap;
|
|
653
|
-
word-wrap: normal;
|
|
654
|
-
}
|
|
655
|
-
`},826(t,e,i){i.d(e,{AH:()=>l,Rf:()=>h,sk:()=>c});const n=globalThis,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]);return new a(i,t,r)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),o=n.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,r))(e)})(t):t},760(t,e,i){i.d(e,{AH:()=>n.AH,mN:()=>m});var n=i(826);const{is:o,defineProperty:r,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:l,getPrototypeOf:h}=Object,c=globalThis,d=c.trustedTypes,p=d?d.emptyScript:"",u=c.reactiveElementPolyfillSupport,f=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},b=(t,e)=>!o(t,e),v={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),c.litPropertyMetadata??=new WeakMap;class m extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){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){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&r(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){const{get:n,set:o}=s(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){const r=n?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...a(t),...l(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift((0,n.sk)(t))}else void 0!==t&&e.push((0,n.sk)(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,n.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:g).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,n=i._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=i.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=n;const r=o.fromAttribute(e,t.type);this[n]=r??this._$Ej?.get(n)??r,this._$Em=null}}requestUpdate(t,e,i,n=!1,o){if(void 0!==t){const r=this.constructor;if(!1===n&&(o=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??b)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[f("elementProperties")]=new Map,m[f("finalized")]=new Map,u?.({ReactiveElement:m}),(c.reactiveElementVersions??=[]).push("2.1.2")},228(t,e,i){i.d(e,{AH:()=>n.AH,WF:()=>s,qy:()=>o.qy});var n=i(760),o=i(752);const r=globalThis;class s extends n.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}s._$litElement$=!0,s.finalized=!0,r.litElementHydrateSupport?.({LitElement:s});const a=r.litElementPolyfillSupport;a?.({LitElement:s}),(r.litElementVersions??=[]).push("4.2.2")},752(t,e,i){i.d(e,{XX:()=>L,c0:()=>k,qy:()=>x});const n=globalThis,o=t=>t,r=n.trustedTypes,s=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+l,c=`<${h}>`,d=document,p=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,m=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),w=/'/g,$=/"/g,_=/^(?:script|style|textarea|title)$/i,A=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),x=A(1),k=(A(2),A(3),Symbol.for("lit-noChange")),E=Symbol.for("lit-nothing"),S=new WeakMap,C=d.createTreeWalker(d,129);function z(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const P=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":3===e?"<math>":"",s=b;for(let e=0;e<i;e++){const i=t[e];let h,d,p=-1,u=0;for(;u<i.length&&(s.lastIndex=u,d=s.exec(i),null!==d);)u=s.lastIndex,s===b?"!--"===d[1]?s=v:void 0!==d[1]?s=m:void 0!==d[2]?(_.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=y):void 0!==d[3]&&(s=y):s===y?">"===d[0]?(s=o??b,p=-1):void 0===d[1]?p=-2:(p=s.lastIndex-d[2].length,h=d[1],s=void 0===d[3]?y:'"'===d[3]?$:w):s===$||s===w?s=y:s===v||s===m?s=b:(s=y,o=void 0);const f=s===y&&t[e+1].startsWith("/>")?" ":"";r+=s===b?i+c:p>=0?(n.push(h),i.slice(0,p)+a+i.slice(p)+l+f):i+l+(-2===p?e:f)}return[z(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class H{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const c=t.length-1,d=this.parts,[u,f]=P(t,e);if(this.el=H.createElement(u,i),C.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=C.nextNode())&&d.length<c;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(a)){const e=f[s++],i=n.getAttribute(t).split(l),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:o,name:r[2],strings:i,ctor:"."===r[1]?M:"?"===r[1]?N:"@"===r[1]?q:T}),n.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:o}),n.removeAttribute(t));if(_.test(n.tagName)){const t=n.textContent.split(l),e=t.length-1;if(e>0){n.textContent=r?r.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],p()),C.nextNode(),d.push({type:2,index:++o});n.append(t[e],p())}}}else if(8===n.nodeType)if(n.data===h)d.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(l,t+1));)d.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function U(t,e,i=t,n){if(e===k)return e;let o=void 0!==n?i._$Co?.[n]:i._$Cl;const r=u(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,n)),void 0!==n?(i._$Co??=[])[n]=o:i._$Cl=o),void 0!==o&&(e=U(t,o._$AS(t,e.values),o,n)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??d).importNode(e,!0);C.currentNode=n;let o=C.nextNode(),r=0,s=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new O(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new I(o,this,t)),this._$AV.push(e),a=i[++s]}r!==a?.index&&(o=C.nextNode(),r++)}return C.currentNode=d,n}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class O{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),u(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>f(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=H.createElement(z(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{const t=new R(n,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=S.get(t.strings);return void 0===e&&S.set(t.strings,e=new H(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new O(this.O(p()),this.O(p()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class T{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,o){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=U(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=U(this,n[i+s],e,s),a===k&&(a=this._$AH[s]),r||=!u(a)||a!==this._$AH[s],a===E?t=E:t!==E&&(t+=(a??"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class N extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class q extends T{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??E)===k)return;const i=this._$AH,n=t===E&&i!==E||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==E&&(i===E||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class I{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const D=n.litHtmlPolyfillSupport;D?.(H,O),(n.litHtmlVersions??=[]).push("3.3.2");const L=(t,e,i)=>{const n=i?.renderBefore??e;let o=n._$litPart$;if(void 0===o){const t=i?.renderBefore??null;n._$litPart$=o=new O(e.insertBefore(p(),t),t,void 0,i??{})}return o._$AI(t),o}},161(t,e,i){i.d(e,{AH:()=>n.AH,WF:()=>n.WF,qy:()=>n.qy}),i(760),i(752);var n=i(228)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n=i(161),o=i(601),r=i(227);i(36);class s extends n.WF{static properties={};static styles=(()=>[o.s,r.V,n.AH`
|
|
656
|
-
:host {
|
|
657
|
-
display: block;
|
|
658
|
-
width: calc(100% + var(--outer-margin));
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.tab-list {
|
|
662
|
-
display: flex;
|
|
663
|
-
flex-direction: row;
|
|
664
|
-
line-height: 1;
|
|
665
|
-
margin-inline-start: calc(-1 * var(--outer-margin));
|
|
666
|
-
overflow-x: auto;
|
|
667
|
-
overflow-y: hidden;
|
|
668
|
-
scrollbar-width: none;
|
|
669
|
-
white-space: nowrap;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
.tab-list::before {
|
|
673
|
-
content: "";
|
|
674
|
-
min-width: var(--outer-margin);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
.tab-list::after {
|
|
678
|
-
border-bottom: var(--hairline) solid var(--gray-40);
|
|
679
|
-
content: "";
|
|
680
|
-
flex-grow: 1;
|
|
681
|
-
margin-right: var(--outer-margin);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
::slotted(*) {
|
|
685
|
-
max-width: none !important;
|
|
686
|
-
white-space: nowrap !important;
|
|
687
|
-
}
|
|
688
|
-
`])();constructor(){super()}firstUpdated(){this.addEventListener("click",this._onTabClick),this.setAttribute("role","tablist"),this._setInitialAriaAttributes()}_setInitialAriaAttributes(){this.querySelectorAll("cfa-tab").forEach((t,e)=>{t.setAttribute("role","tab"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),0===e&&(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"))})}_onTabClick(t){const e=t.target.closest("cfa-tab");e&&this._setActiveTab(e)}_setActiveTab(t){this.querySelectorAll("cfa-tab").forEach(t=>{t.removeAttribute("active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}),t.setAttribute("active",""),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");let e=t.id;e&&e.startsWith("tab-")&&(e=e.substring(4)),console.log("Tab changed event dispatched with ID:",e),this.dispatchEvent(new CustomEvent("tab-changed",{detail:{id:e},bubbles:!0,composed:!0}))}render(){return n.qy`
|
|
689
|
-
<div class="tab-list" role="tablist">
|
|
690
|
-
<slot></slot>
|
|
691
|
-
</div>
|
|
692
|
-
`}}customElements.get("cfa-tab-list")||customElements.define("cfa-tab-list",s)})();
|
|
2
|
+
(()=>{"use strict";var t={227(t,n,e){var i;e.d(n,{V:()=>r});const r=(0,e(161).AH)(i||(o=['\n .cfa-button,\n a.cfa-button, \n .cfa-button > a,\n .wp-block-button > * {\n --bg-color: var(--white);\n --border-color: transparent;\n --font-family: var(--font-family-sans-serif);\n --font-size: var(--base-font-size);\n --hover-bg-color: var(--blue-20);\n --hover-border-color: var(--border-color);\n --line-height: var(--base-line-height);\n --text-color: var(--purple-80);\n\n background-color: var(--bg-color);\n border: var(--hairline) solid var(--border-color);\n border-radius: var(--rounded-corners);\n box-shadow: var(--shadow-small);\n color: var(--text-color);\n cursor: pointer;\n display: block;\n font-family: var(--font-family);\n font-size: var(--font-size);\n font-weight: bold;\n padding: var(--spacing-component-2) var(--spacing-component-3);\n text-align: center;\n text-decoration: none;\n transition: background-color 0.5s, box-shadow 0.5s;\n\n &:hover {\n background-color: var(--hover-bg-color);\n border-color: var(--hover-border-color);\n box-shadow: var(--shadow-medium);\n color: var(--text-color);\n }\n }\n\n @media (max-width: 768px) {\n .cfa-button, \n a.cfa-button, \n .cfa-button > a,\n .wp-block-button > * {\n width: 100%;\n \n & + & {\n margin-block-start: var(--spacing-layout-half);\n }\n }\n\n .wp-block-button {\n width: 100%;\n }\n }\n\n @media (min-width: 768px) {\n .cfa-button, \n a.cfa-button, \n .cfa-button > a,\n .wp-block-button > * {\n display: inline-block;\n\n & {\n margin-block: var(--spacing-component-2);\n margin-inline-end: var(--spacing-component-2);\n }\n }\n }\n\n // Themes / variants\n\n .cfa-button--primary,\n a.cfa-button--primary,\n .cfa-button--primary > a,\n .wp-block-button.is-style-primary > * {\n --bg-color: var(--red-60);\n --hover-bg-color: var(--red-80);\n --text-color: var(--white,);\n }\n\n .cfa-button--outline,\n a.cfa-button--outline,\n .cfa-button--outline > a,\n .wp-block-button.is-style-outline > * {\n --border-color: var(--black-20);\n --bg-color: transparent;\n }\n\n .cfa-button--outline-white,\n a.cfa-button--outline-white,\n .cfa-button--outline-white > a,\n .wp-block-button.is-style-outline-white > * {\n --border-color: var(--white);\n --bg-color: transparent;\n --hover-bg-color: var(--black-20);\n --shadow-color: var(--white-20);\n --text-color: var(--white);\n }\n\n .cfa-button--prominent-link,\n a.cfa-button--prominent-link,\n .cfa-button--prominent-link > a,\n .wp-block-button.is-style-prominent-link > * {\n --accent-color: var(--purple-60);\n\n background: unset;\n box-shadow: unset;\n color: inherit;\n font-weight: bold;\n padding: 0;\n text-decoration: underline;\n text-decoration-color: var(--accent-color);\n text-decoration-thickness: var(--medium);\n text-underline-offset: 0.4em;\n transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out; \n\n &:hover {\n --accent-color: var(--red-60);\n \n background: unset;\n box-shadow: unset;\n }\n\n &::after {\n @include icon.icon;\n \n content: "arrow_right_alt";\n display: inline-block;\n padding-inline-start: 0.1em;\n text-decoration: none;\n transition: transform 0.2s ease-in-out;\n width: 1em;\n }\n\n &:hover::after {\n transform: translateX(0.3em);\n }\n\n cfa-icon {\n text-decoration: none;\n }\n }\n\n // Sizes\n\n .cfa-button--sm,\n a.cfa-button--sm,\n .cfa-button--sm > a {\n --font-size: var(--font-size-small);\n --line-height: var(--line-height-small);\n }\n\n .cfa-button--md,\n a.cfa-button--md,\n .cfa-button--md > a {\n --font-size: var(--base-font-size);\n --line-height: var(--base-line-height);\n }\n'],s||(s=o.slice(0)),i=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(s)}}))));var o,s},36(t,n,e){var i,r,o=e(161),s=e(601),a=e(205);function l(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function c(t,n,e){return(n=function(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class h extends o.WF{constructor(){super(),this.active=!1,this.panelId=""}firstUpdated(){this.addEventListener("keydown",this._onKeyDown)}_onKeyDown(t){const n=Array.from(this.parentElement.querySelectorAll("cfa-tab")),e=n.indexOf(this);let i;switch(t.key){case"ArrowLeft":t.preventDefault(),i=(e-1+n.length)%n.length,n[i].focus();break;case"ArrowRight":t.preventDefault(),i=(e+1)%n.length,n[i].focus();break;case"Home":t.preventDefault(),n[0].focus();break;case"End":t.preventDefault(),n[n.length-1].focus()}}render(){return(0,o.qy)(i||(i=l(['\n <span\n class="tab ','"\n >\n <slot></slot>\n </span>\n '])),this.active?"active":"")}}c(h,"properties",{active:{type:Boolean},panelId:{type:String}}),c(h,"styles",[s.s,a.g,(0,o.AH)(r||(r=l(["\n .tab {\n background: none;\n border: 0;\n box-shadow: inset 0 calc(-1 * var(--hairline)) 0 0 var(--gray-40);\n color: var(--gray-80);\n cursor: pointer;\n display: block;\n font-family: var(--font-family-sans-serif);\n font-size: var(--font-size-small);\n font-weight: normal;\n padding: var(--spacing-component-2) var(--spacing-component-3)\n calc(var(--spacing-component-2) + var(--medium));\n }\n\n :host(:focus) .tab {\n background-color: var(--focus-color);\n outline: none;\n }\n\n .tab:not(.active):hover {\n box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-40);\n color: var(--black);\n }\n\n .tab.active {\n box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-60);\n color: var(--black);\n font-weight: bold;\n }\n\n :host {\n display: inline-block;\n }\n "])))]),customElements.get("cfa-tab")||customElements.define("cfa-tab",h)},601(t,n,e){var i;e.d(n,{s:()=>r});const r=(0,e(161).AH)(i||(o=["\n *:focus-visible,\n *:target {\n outline: var(--focus-outline);\n position: relative;\n }\n\n // RESET\n\n // Use a more-intuitive box-sizing model.\n *, *::before, *::after {\n box-sizing: border-box;\n }\n\n // Remove default margin\n * {\n margin: 0;\n }\n\n // Set default text-wrap of 'pretty'\n * {\n text-wrap: pretty;\n }\n\n // Wrap overly long words\n * {\n overflow-wrap: break-word;\n text-overflow: ellipsis;\n word-break: break-word;\n }\n\n // Fix Safari antialiasing for variable fonts\n * {\n font-synthesis: none !important;\n }\n\n // Improve text rendering\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n // Reasonable media defaults\n img, picture, video, canvas, svg {\n display: block;\n height: auto;\n max-width: 100%;\n }\n\n // Remove built-in form typography styles\n input, button, textarea, select {\n font: inherit;\n }\n\n // Avoid text overflows\n p, h1, h2, h3, h4, h5, h6 {\n overflow-wrap: break-word;\n }\n\n // Create a root stacking context\n #root, #__next {\n isolation: isolate;\n }\n"],s||(s=o.slice(0)),i=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(s)}}))));var o,s},205(t,n,e){var i;e.d(n,{g:()=>r});const r=(0,e(161).AH)(i||(o=['\n // =====\n\n // Typography spacing\n\n // Add a single space around paragraphs, blockquotes, and lists\n p, ul, ol, blockquote {\n & + * {\n margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));\n }\n * + & {\n margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));\n }\n }\n\n h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {\n // Add a single line space after headings\n & + * {\n margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));\n }\n\n // Add two line spaces before headings\n * + & {\n --spacing: var(--spacing-layout-2);\n\n margin-block-start: --spacing;\n }\n\n // Only add a single space between headings and other headings\n & + & {\n --spacing: var(--spacing-layout-1);\n }\n\n // Reduce space after breadcrumbs and eyebrows\n cfa-breadcrumbs + & {\n margin-block-start: var(--spacing-layout-half) !important;\n }\n\n .eyebrow + & {\n margin-block-start: 0 !important;\n }\n }\n\n h1, .h1, .display-1, .display-2 {\n text-wrap: balance;\n }\n\n // =====\n\n // Font styles\n\n .regular {\n font-family: var(--font-family-base);\n font-size: var(--font-size);\n line-height: var(--line-height);\n }\n\n .display-1 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-display-1);\n font-weight: bold;\n line-height: var(--line-height-display-1);\n letter-spacing: var(--letter-spacing-display-1);\n }\n\n .display-2 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-display-2);\n font-weight: bold;\n line-height: var(--line-height-display-2);\n letter-spacing: var(--letter-spacing-display-2);\n }\n\n h1, \n .h1 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-h1);\n font-weight: bold;\n line-height: var(--line-height-h1);\n letter-spacing: var(--letter-spacing-h1);\n }\n\n h2, \n .h2 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-h2);\n font-weight: bold;\n line-height: var(--line-height-h2);\n letter-spacing: var(--letter-spacing-h2);\n }\n\n h3, \n .h3 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-h3);\n font-weight: bold;\n line-height: var(--line-height-h3);\n letter-spacing: var(--letter-spacing-h3);\n }\n\n h4, \n .h4 {\n font-family: var(--font-family-heading);\n font-size: var(--font-size-h4);\n font-weight: bold;\n line-height: var(--line-height-h4);\n letter-spacing: var(--letter-spacing-h4);\n }\n\n .extra-large {\n font-size: var(--font-size-extra-large);\n line-height: var(--line-height-extra-large);\n letter-spacing: var(--letter-spacing-extra-large);\n }\n\n .large {\n font-size: var(--font-size-large);\n line-height: var(--line-height-large);\n letter-spacing: var(--letter-spacing-large);\n }\n\n .small {\n font-size: var(--font-size-small);\n line-height: var(--line-height-small);\n letter-spacing: var(--letter-spacing-small);\n }\n\n .eyebrow {\n font-family: var(--font-family-sans-serif);\n font-size: var(--font-size-eyebrow);\n font-weight: var(--font-weight-eyebrow);\n letter-spacing: var(--letter-spacing-eyebrow);\n line-height: var(--line-height-eyebrow);\n text-transform: uppercase;\n }\n\n .eyebrow-with-line {\n align-items: center;\n color: var(--text-color);\n display: flex;\n font-family: var(--font-family-eyebrow);\n font-size: var(--font-size-eyebrow);\n font-weight: var(--font-weight-eyebrow);\n letter-spacing: var(--letter-spacing-eyebrow);\n line-height: var(--line-height-eyebrow);\n margin-block-end: var(--spacing-layout-half);\n position: relative;\n text-transform: uppercase;\n\n &::after {\n border-block-end: var(--hairline) solid currentColor;\n content: "";\n flex-grow: 1;\n margin-left: var(--spacing-component-3);\n }\n }\n\n .subtle {\n opacity: 0.6;\n }\n\n .serif {\n font-family: var(--font-family-serif);\n }\n\n .sans-serif {\n font-family: var(--font-family-sans-serif);\n }\n\n i,\n em,\n .italic {\n font-style: italic;\n }\n\n b,\n strong,\n .strong {\n font-weight: bold;\n }\n\n .normal {\n font-weight: normal;\n }\n\n .balance {\n text-wrap: balance;\n }\n\n .prominent-link,\n a.prominent-link {\n --accent-color: var(--purple-60);\n\n font-weight: bold;\n text-decoration: underline;\n text-decoration-color: var(--accent-color);\n text-decoration-thickness: var(--medium);\n text-underline-offset: 0.4em;\n transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out; \n\n &:hover {\n --accent-color: var(--red-60);\n }\n\n &:not(:has(cfa-icon))::after {\n @include icon.icon;\n \n content: "arrow_right_alt";\n display: inline-block;\n padding-inline-start: 0.1em;\n text-decoration: none;\n transition: padding 0.2s ease-in-out;\n width: 1em;\n }\n\n &:not(:has(cfa-icon)):hover::after {\n padding-inline-start: 0.3em;\n }\n\n cfa-icon {\n text-decoration: none;\n }\n }\n\n .white-text,\n .text-light /* fallback */ {\n -moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background\n -webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background\n color: var(--white);\n --link-color: var(--white);\n --link-hover-color: var(--white);\n }\n\n // =====\n\n // Highlights\n\n .highlight { \n --highlight-offset: 0.2em;\n\n box-decoration-break: clone;\n display: inline;\n background: linear-gradient(to top, transparent 0%, transparent var(--highlight-offset), var(--highlight-color) var(--highlight-offset), var(--highlight-color) calc(var(--highlight-offset) + var(--highlight-thickness)), transparent calc(var(--highlight-offset) + var(--highlight-thickness)), transparent 100%);\n padding-inline: 0.1em;\n -webkit-box-decoration-break: clone;\n margin-inline-start: -0.1em;\n margin-inline-end: -0.1em;\n word-wrap: break-word;\n }\n\n // ======\n\n // Lists\n\n .ul {\n list-style-type: disc;\n padding-left: var(--spacing-layout-1);\n }\n\n .ul > li {\n margin-inline-start: 0;\n padding-left: var(--spacing-component-2);\n }\n\n .ul > li + li {\n margin-block-start: var(--spacing-layout-half);\n }\n\n .ul > li > ul {\n margin-block-start: var(--spacing-layout-half);\n }\n\n .ol {\n list-style-type: decimal;\n padding-left: var(--spacing-layout-1);\n }\n\n .ol > li {\n margin-inline-start: 0;\n padding-inline-start: var(--spacing-component-2);\n }\n\n .ol > li + li {\n margin-block-start: var(--spacing-layout-half);\n }\n\n .ol > li > ul {\n margin-block-start: var(--spacing-layout-half);\n }\n\n .ul--unstyled {\n list-style: none;\n padding: 0;\n }\n\n .ul--unstyled > li {\n margin-inline: 0;\n padding: 0;\n }\n\n .ul--line-separators > li + li::before {\n border-block-start: 1px solid var(--gray-20);\n content: "";\n display: block;\n margin-block: var(--spacing-layout-half);\n width: 100%;\n }\n\n .ul--inline,\n .ul--inline-with-separators,\n .ul--inline-with-line-separators {\n display: inline;\n list-style: none;\n padding-inline: 0 !important;\n padding-left: 0 !important;\n }\n\n .ul--inline > li,\n .ul--inline-with-separators > li,\n .ul--inline-with-line-separators > li {\n display: inline-block;\n margin-inline-end: var(--spacing-component-3);\n padding: 0 !important;\n }\n\n .ul--inline li:last-child,\n .ul--inline-with-separators li:last-child,\n .ul--inline-with-line-separators li:last-child {\n margin-inline-end: 0;\n }\n\n .ul--inline > li + li,\n .ul--inline-with-separators > li + li,\n .ul--inline-with-line-separators > li + li {\n margin-block-start: 0;\n }\n\n .ul--inline-with-separators li,\n .ul--inline-with-line-separators li {\n margin-inline-end: 0;\n }\n\n .ul--inline-with-separators > li::after {\n content: "•";\n margin-inline: var(--spacing-component-2);\n opacity: 0.5;\n }\n\n .ul--inline-with-separators > li:last-child::after {\n content: "";\n }\n\n .ul--inline-with-line-separators > li::after {\n content: "|";\n margin-inline: var(--spacing-component-2);\n opacity: 0.5;\n }\n\n .ul--inline-with-line-separators > li:last-child::after {\n content: "";\n }\n\n // ===\n\n // Horizontal rule\n\n hr {\n --color: currentColor;\n\n background-color: var(--color);\n border: 0;\n color: var(--color);\n display: block;\n font-size: 0;\n height: var(--hairline);\n margin-block: var(--spacing-layout-1);\n opacity: 0.4;\n }\n\n // ===\n\n // Icons\n\n .icon {\n -webkit-font-feature-settings: \'liga\';\n direction: ltr;\n display: inline-block;\n font-family: \'Material Symbols Rounded\';\n font-feature-settings: \'liga\';\n font-size: 1.4em; \n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n text-transform: none;\n vertical-align: middle;\n white-space: nowrap;\n word-wrap: normal;\n }\n'],s||(s=o.slice(0)),i=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(s)}}))));var o,s},826(t,n,e){e.d(n,{AH:()=>l,Rf:()=>c,sk:()=>h});const i=globalThis,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class a{constructor(t,n,e){if(this._$cssResult$=!0,e!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(r&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=s.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(n,t))}return t}toString(){return this.cssText}}const l=(t,...n)=>{const e=1===t.length?t[0]:n.reduce((n,e,i)=>n+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[i+1],t[0]);return new a(e,t,o)},c=(t,n)=>{if(r)t.adoptedStyleSheets=n.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of n){const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}},h=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let n="";for(const e of t.cssRules)n+=e.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(n)})(t):t},760(t,n,e){e.d(n,{AH:()=>i.AH,mN:()=>m});var i=e(826);const{is:r,defineProperty:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:l,getPrototypeOf:c}=Object,h=globalThis,d=h.trustedTypes,p=d?d.emptyScript:"",u=h.reactiveElementPolyfillSupport,f=(t,n)=>t,g={toAttribute(t,n){switch(n){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,n){let e=t;switch(n){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},b=(t,n)=>!r(t,n),v={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),h.litPropertyMetadata??=new WeakMap;class m extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=v){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(t,n),!n.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,n);void 0!==i&&o(this.prototype,t,i)}}static getPropertyDescriptor(t,n,e){const{get:i,set:r}=s(this.prototype,t)??{get(){return this[n]},set(t){this[n]=t}};return{get:i,set(n){const o=i?.call(this);r?.call(this,n),this.requestUpdate(t,o,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=c(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,n=[...a(t),...l(t)];for(const e of n)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const n=litPropertyMetadata.get(t);if(void 0!==n)for(const[t,e]of n)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const e=this._$Eu(t,n);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)n.unshift((0,i.sk)(t))}else void 0!==t&&n.push((0,i.sk)(t));return n}static _$Eu(t,n){const e=n.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const e of n.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,i.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,n,e){this._$AK(t,e)}_$ET(t,n){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:g).toAttribute(n,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,n){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=i;const o=r.fromAttribute(n,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,n,e,i=!1,r){if(void 0!==t){const o=this.constructor;if(!1===i&&(r=this[t]),e??=o.getPropertyOptions(t),!((e.hasChanged??b)(r,n)||e.useDefault&&e.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,e))))return;this.C(t,n,e)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,n,{useDefault:e,reflect:i,wrapped:r},o){e&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??n??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||e||(n=void 0),this._$AL.set(t,n)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,n]of this._$Ep)this[t]=n;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[n,e]of t){const{wrapped:t}=e,i=this[n];!0!==t||this._$AL.has(n)||void 0===i||this.C(n,void 0,e,i)}}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(n)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(n)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[f("elementProperties")]=new Map,m[f("finalized")]=new Map,u?.({ReactiveElement:m}),(h.reactiveElementVersions??=[]).push("2.1.2")},228(t,n,e){e.d(n,{AH:()=>i.AH,WF:()=>s,qy:()=>r.qy});var i=e(760),r=e(752);const o=globalThis;class s extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,r.XX)(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r.c0}}s._$litElement$=!0,s.finalized=!0,o.litElementHydrateSupport?.({LitElement:s});const a=o.litElementPolyfillSupport;a?.({LitElement:s}),(o.litElementVersions??=[]).push("4.2.2")},752(t,n,e){e.d(n,{XX:()=>L,c0:()=>k,qy:()=>x});const i=globalThis,r=t=>t,o=i.trustedTypes,s=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,h=`<${c}>`,d=document,p=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,m=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),w=/'/g,_=/"/g,$=/^(?:script|style|textarea|title)$/i,A=t=>(n,...e)=>({_$litType$:t,strings:n,values:e}),x=A(1),k=(A(2),A(3),Symbol.for("lit-noChange")),E=Symbol.for("lit-nothing"),S=new WeakMap,C=d.createTreeWalker(d,129);function z(t,n){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(n):n}const P=(t,n)=>{const e=t.length-1,i=[];let r,o=2===n?"<svg>":3===n?"<math>":"",s=b;for(let n=0;n<e;n++){const e=t[n];let c,d,p=-1,u=0;for(;u<e.length&&(s.lastIndex=u,d=s.exec(e),null!==d);)u=s.lastIndex,s===b?"!--"===d[1]?s=v:void 0!==d[1]?s=m:void 0!==d[2]?($.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=y):void 0!==d[3]&&(s=y):s===y?">"===d[0]?(s=r??b,p=-1):void 0===d[1]?p=-2:(p=s.lastIndex-d[2].length,c=d[1],s=void 0===d[3]?y:'"'===d[3]?_:w):s===_||s===w?s=y:s===v||s===m?s=b:(s=y,r=void 0);const f=s===y&&t[n+1].startsWith("/>")?" ":"";o+=s===b?e+h:p>=0?(i.push(c),e.slice(0,p)+a+e.slice(p)+l+f):e+l+(-2===p?n:f)}return[z(t,o+(t[e]||"<?>")+(2===n?"</svg>":3===n?"</math>":"")),i]};class O{constructor({strings:t,_$litType$:n},e){let i;this.parts=[];let r=0,s=0;const h=t.length-1,d=this.parts,[u,f]=P(t,n);if(this.el=O.createElement(u,e),C.currentNode=this.el.content,2===n||3===n){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=C.nextNode())&&d.length<h;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(a)){const n=f[s++],e=i.getAttribute(t).split(l),o=/([.?@])?(.*)/.exec(n);d.push({type:1,index:r,name:o[2],strings:e,ctor:"."===o[1]?j:"?"===o[1]?N:"@"===o[1]?M:R}),i.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:r}),i.removeAttribute(t));if($.test(i.tagName)){const t=i.textContent.split(l),n=t.length-1;if(n>0){i.textContent=o?o.emptyScript:"";for(let e=0;e<n;e++)i.append(t[e],p()),C.nextNode(),d.push({type:2,index:++r});i.append(t[n],p())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(l,t+1));)d.push({type:7,index:r}),t+=l.length-1}r++}}static createElement(t,n){const e=d.createElement("template");return e.innerHTML=t,e}}function T(t,n,e=t,i){if(n===k)return n;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const o=u(n)?void 0:n._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(n=T(t,r._$AS(t,n.values),r,i)),n}class H{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:e}=this._$AD,i=(t?.creationScope??d).importNode(n,!0);C.currentNode=i;let r=C.nextNode(),o=0,s=0,a=e[0];for(;void 0!==a;){if(o===a.index){let n;2===a.type?n=new U(r,r.nextSibling,this,t):1===a.type?n=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(n=new D(r,this,t)),this._$AV.push(n),a=e[++s]}o!==a?.index&&(r=C.nextNode(),o++)}return C.currentNode=d,i}p(t){let n=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,n),n+=e.strings.length-2):e._$AI(t[n])),n++}}class U{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,n,e,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===t?.nodeType&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=T(this,t,n),u(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>f(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:n,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=O.createElement(z(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(n);else{const t=new H(i,this),e=t.u(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let n=S.get(t.strings);return void 0===n&&S.set(t.strings,n=new O(t)),n}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let e,i=0;for(const r of t)i===n.length?n.push(e=new U(this.O(p()),this.O(p()),this,this.options)):e=n[i],e._$AI(r),i++;i<n.length&&(this._$AR(e&&e._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);t!==this._$AB;){const n=r(t).nextSibling;r(t).remove(),t=n}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,e,i,r){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=E}_$AI(t,n=this,e,i){const r=this.strings;let o=!1;if(void 0===r)t=T(this,t,n,0),o=!u(t)||t!==this._$AH&&t!==k,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=T(this,i[e+s],n,s),a===k&&(a=this._$AH[s]),o||=!u(a)||a!==this._$AH[s],a===E?t=E:t!==E&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}o&&!i&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class j extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class N extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class M extends R{constructor(t,n,e,i,r){super(t,n,e,i,r),this.type=5}_$AI(t,n=this){if((t=T(this,t,n,0)??E)===k)return;const e=this._$AH,i=t===E&&e!==E||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==E&&(e===E||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class D{constructor(t,n,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const I=i.litHtmlPolyfillSupport;I?.(O,U),(i.litHtmlVersions??=[]).push("3.3.3");const L=(t,n,e)=>{const i=e?.renderBefore??n;let r=i._$litPart$;if(void 0===r){const t=e?.renderBefore??null;i._$litPart$=r=new U(n.insertBefore(p(),t),t,void 0,e??{})}return r._$AI(t),r}},161(t,n,e){e.d(n,{AH:()=>i.AH,WF:()=>i.WF,qy:()=>i.qy}),e(760),e(752);var i=e(228)}},n={};function e(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return t[i](o,o.exports,e),o.exports}e.d=(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var i,r,o=e(161),s=e(601),a=e(227);function l(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function c(t,n,e){return(n=function(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e(36);class h extends o.WF{constructor(){super(),this._idCounter=0}firstUpdated(){this.addEventListener("click",this._onTabClick),this.addEventListener("keydown",this._onTabKeydown),this.setAttribute("role","tablist"),this._setInitialAriaAttributes()}_getTabPanelId(t){return t.getAttribute("panelid")||t.getAttribute("panel-id")||""}_ensureTabId(t){t.id||(this._idCounter+=1,t.id="tab-".concat(this._idCounter))}_setInitialAriaAttributes(){this.querySelectorAll("cfa-tab").forEach((t,n)=>{const e=this._getTabPanelId(t);this._ensureTabId(t),t.setAttribute("role","tab"),e&&t.setAttribute("aria-controls",e),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),t.active=!1,0===n&&(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.active=!0)})}_onTabClick(t){const n=t.composedPath().find(t=>"CFA-TAB"===(null==t?void 0:t.tagName));n&&this._setActiveTab(n)}_onTabKeydown(t){var n;"Enter"!==t.key&&" "!==t.key||"CFA-TAB"!==(null===(n=t.target)||void 0===n?void 0:n.tagName)||(t.preventDefault(),this._setActiveTab(t.target))}_setActiveTab(t){this.querySelectorAll("cfa-tab").forEach(t=>{t.removeAttribute("active"),t.active=!1,t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}),t.setAttribute("active",""),t.active=!0,t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");let n=t.id;n&&n.startsWith("tab-")&&(n=n.substring(4)),console.log("Tab changed event dispatched with ID:",n),this.dispatchEvent(new CustomEvent("tab-changed",{detail:{id:n},bubbles:!0,composed:!0}))}render(){return(0,o.qy)(i||(i=l(['\n <div class="tab-list">\n <slot></slot>\n </div>\n '])))}}c(h,"properties",{_idCounter:{state:!0}}),c(h,"styles",[s.s,a.V,(0,o.AH)(r||(r=l(['\n :host {\n display: block;\n width: calc(100% + var(--outer-margin));\n }\n\n .tab-list {\n display: flex;\n flex-direction: row;\n line-height: 1;\n margin-inline-start: calc(-1 * var(--outer-margin));\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: none;\n white-space: nowrap;\n }\n\n .tab-list::before {\n content: "";\n min-width: var(--outer-margin);\n }\n\n .tab-list::after {\n border-bottom: var(--hairline) solid var(--gray-40);\n content: "";\n flex-grow: 1;\n margin-right: var(--outer-margin);\n }\n\n ::slotted(*) {\n max-width: none !important;\n white-space: nowrap !important;\n }\n '])))]),customElements.get("cfa-tab-list")||customElements.define("cfa-tab-list",h)})();
|