@atomic-ui/blocks 0.7.1 → 0.8.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 +7 -7
- package/custom-elements.json +1375 -3
- package/dist/{chunk-XHFUTZGU.js → chunk-CC2U2L2H.js} +5 -3
- package/dist/{chunk-XHFUTZGU.js.map → chunk-CC2U2L2H.js.map} +1 -1
- package/dist/{chunk-MYTYMOH6.js → chunk-CPOCQURG.js} +26 -7
- package/dist/chunk-CPOCQURG.js.map +1 -0
- package/dist/{chunk-OTOFULMT.js → chunk-FLOKZ7O3.js} +72 -22
- package/dist/chunk-FLOKZ7O3.js.map +1 -0
- package/dist/{chunk-WHENVU5E.js → chunk-HNCJLMQB.js} +41 -15
- package/dist/chunk-HNCJLMQB.js.map +1 -0
- package/dist/{chunk-4JW2CHWS.js → chunk-NLHFBIGQ.js} +67 -21
- package/dist/chunk-NLHFBIGQ.js.map +1 -0
- package/dist/{chunk-AFN7IAG2.js → chunk-OR4U4UJQ.js} +70 -24
- package/dist/chunk-OR4U4UJQ.js.map +1 -0
- package/dist/{chunk-T7U4OPTW.js → chunk-PALYJCLC.js} +37 -12
- package/dist/chunk-PALYJCLC.js.map +1 -0
- package/dist/chunk-PTQDYIC5.js +447 -0
- package/dist/chunk-PTQDYIC5.js.map +1 -0
- package/dist/{chunk-XJMKAK2I.js → chunk-TT2PTEQO.js} +72 -26
- package/dist/chunk-TT2PTEQO.js.map +1 -0
- package/dist/{chunk-PORKVHAX.js → chunk-UVHQY3QJ.js} +1 -1
- package/dist/{chunk-PORKVHAX.js.map → chunk-UVHQY3QJ.js.map} +1 -1
- package/dist/{chunk-F4BTXUYP.js → chunk-YC6KXE6O.js} +12 -5
- package/dist/chunk-YC6KXE6O.js.map +1 -0
- package/dist/chunk-YMSFOS3H.js +142 -0
- package/dist/chunk-YMSFOS3H.js.map +1 -0
- package/dist/components/card-grid.js +1 -1
- package/dist/components/changelog.js +2 -2
- package/dist/components/estimator.js +1 -1
- package/dist/components/journey.d.ts +106 -0
- package/dist/components/journey.js +9 -0
- package/dist/components/journey.js.map +1 -0
- package/dist/components/marketing.js +1 -1
- package/dist/components/organisms.js +1 -1
- package/dist/components/property.js +1 -1
- package/dist/components/scene.js +1 -1
- package/dist/components/scrubber.js +1 -1
- package/dist/components/selling.js +1 -1
- package/dist/components/site.d.ts +11 -0
- package/dist/components/site.js +1 -1
- package/dist/components/studio.d.ts +430 -0
- package/dist/components/studio.js +19 -0
- package/dist/components/studio.js.map +1 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.js +34 -12
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +893 -677
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +85 -63
- package/package.json +3 -3
- package/scripts/copy-to-product.mjs +8 -7
- package/specimen/index.html +85 -63
- package/dist/chunk-4JW2CHWS.js.map +0 -1
- package/dist/chunk-AFN7IAG2.js.map +0 -1
- package/dist/chunk-F4BTXUYP.js.map +0 -1
- package/dist/chunk-MYTYMOH6.js.map +0 -1
- package/dist/chunk-OTOFULMT.js.map +0 -1
- package/dist/chunk-T7U4OPTW.js.map +0 -1
- package/dist/chunk-WHENVU5E.js.map +0 -1
- package/dist/chunk-XJMKAK2I.js.map +0 -1
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
// packages/blocks/src/components/studio.ts
|
|
2
|
+
import { css, html, nothing } from "lit";
|
|
3
|
+
import {
|
|
4
|
+
ImpaktElement,
|
|
5
|
+
focusRing,
|
|
6
|
+
fontSize,
|
|
7
|
+
fontWeight,
|
|
8
|
+
lineHeight,
|
|
9
|
+
lockScroll,
|
|
10
|
+
space,
|
|
11
|
+
spaceAround,
|
|
12
|
+
t,
|
|
13
|
+
token,
|
|
14
|
+
unlockScroll
|
|
15
|
+
} from "@atomic-ui/ui";
|
|
16
|
+
var arrow = html`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
|
|
17
|
+
<path d="M5 17 17 5M8 5h9v9" />
|
|
18
|
+
</svg>`;
|
|
19
|
+
var ImpaktWorkList = class extends ImpaktElement {
|
|
20
|
+
static {
|
|
21
|
+
this.properties = {
|
|
22
|
+
items: { type: Array },
|
|
23
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
24
|
+
start: { type: Number },
|
|
25
|
+
label: { type: String },
|
|
26
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
27
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this.items = [];
|
|
33
|
+
this.headingLevel = 3;
|
|
34
|
+
this.start = 1;
|
|
35
|
+
this.label = "";
|
|
36
|
+
this.spaceAbove = "none";
|
|
37
|
+
this.spaceBelow = "none";
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.styles = [
|
|
41
|
+
...ImpaktElement.styles,
|
|
42
|
+
focusRing,
|
|
43
|
+
spaceAround,
|
|
44
|
+
css`
|
|
45
|
+
:host { display: block; container: impakt-work-list / inline-size; }
|
|
46
|
+
ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }
|
|
47
|
+
li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
48
|
+
.number { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
|
|
49
|
+
.name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }
|
|
50
|
+
.name a { color: inherit; text-decoration: none; }
|
|
51
|
+
/* The link is stretched over the row, so the row is one target. */
|
|
52
|
+
.name a::after { content: ''; position: absolute; inset: 0; }
|
|
53
|
+
.name a:focus-visible { outline: none; }
|
|
54
|
+
.name a:focus-visible::after { box-shadow: ${t.focusShadow}; }
|
|
55
|
+
.meta { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
|
|
56
|
+
.arrow { display: flex; color: ${t.text}; }
|
|
57
|
+
/* Pointed at or focused, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */
|
|
58
|
+
li:has(a):hover, li:has(a:focus-visible) { background: ${t.text}; }
|
|
59
|
+
li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${t.surfaceCard}; }
|
|
60
|
+
li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }
|
|
61
|
+
li:has(a):hover .arrow, li:has(a:focus-visible) .arrow { color: ${token("color.accent.default", "currentColor")}; }
|
|
62
|
+
@container impakt-work-list (max-width: 40rem) {
|
|
63
|
+
li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }
|
|
64
|
+
.meta { grid-column: 2; grid-row: 2; margin-block-start: ${space(2)}; }
|
|
65
|
+
.arrow { grid-column: 3; grid-row: 1; }
|
|
66
|
+
}
|
|
67
|
+
@media (forced-colors: active) {
|
|
68
|
+
li:has(a):hover, li:has(a:focus-visible) { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }
|
|
69
|
+
li:has(a):hover :is(.name, .number, .meta, .arrow), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow) { color: CanvasText; }
|
|
70
|
+
}
|
|
71
|
+
`
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
return html`<ol role="list" part="list" aria-label=${this.label || nothing}>
|
|
76
|
+
${this.items.map((item, index) => {
|
|
77
|
+
const number = String(this.start + index).padStart(2, "0");
|
|
78
|
+
return html`<li part="row">
|
|
79
|
+
<span class="number" aria-hidden="true">${number}</span>
|
|
80
|
+
<div class="name" part="name" role="heading" aria-level=${this.headingLevel}>
|
|
81
|
+
${item.href ? html`<a href=${item.href} part="link">${item.name}</a>` : item.name}
|
|
82
|
+
</div>
|
|
83
|
+
${item.meta ? html`<span class="meta" part="meta">${item.meta}</span>` : html`<span></span>`}
|
|
84
|
+
${item.href ? html`<span class="arrow">${arrow}</span>` : html`<span></span>`}
|
|
85
|
+
</li>`;
|
|
86
|
+
})}
|
|
87
|
+
</ol>`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var ImpaktStatRow = class extends ImpaktElement {
|
|
91
|
+
static {
|
|
92
|
+
this.properties = {
|
|
93
|
+
items: { type: Array },
|
|
94
|
+
label: { type: String },
|
|
95
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
96
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
constructor() {
|
|
100
|
+
super();
|
|
101
|
+
this.items = [];
|
|
102
|
+
this.label = "";
|
|
103
|
+
this.spaceAbove = "none";
|
|
104
|
+
this.spaceBelow = "none";
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
this.styles = [
|
|
108
|
+
...ImpaktElement.styles,
|
|
109
|
+
spaceAround,
|
|
110
|
+
css`
|
|
111
|
+
:host { display: block; container: impakt-stat-row / inline-size; }
|
|
112
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: ${space(6)}; }
|
|
113
|
+
li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }
|
|
114
|
+
p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }
|
|
115
|
+
.value { font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
|
|
116
|
+
.label { font-size: ${fontSize("sm")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
|
|
117
|
+
.note { font-size: ${fontSize("sm")}; color: ${t.textMuted}; }
|
|
118
|
+
`
|
|
119
|
+
];
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
return html`<ul role="list" part="list" aria-label=${this.label || nothing}>
|
|
123
|
+
${this.items.map(
|
|
124
|
+
(item) => html`<li part="stat">
|
|
125
|
+
<p><span class="value" part="value">${item.figure}</span> <span class="label" part="label">${item.label}</span>${item.note ? html` <span class="note">${item.note}</span>` : nothing}</p>
|
|
126
|
+
</li>`
|
|
127
|
+
)}
|
|
128
|
+
</ul>`;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var ImpaktFaq = class extends ImpaktElement {
|
|
132
|
+
static {
|
|
133
|
+
this.properties = {
|
|
134
|
+
eyebrow: { type: String },
|
|
135
|
+
heading: { type: String },
|
|
136
|
+
lead: { type: String },
|
|
137
|
+
items: { type: Array },
|
|
138
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
139
|
+
open: { type: Array },
|
|
140
|
+
multiple: { type: Boolean },
|
|
141
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
142
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
constructor() {
|
|
146
|
+
super();
|
|
147
|
+
this.eyebrow = "";
|
|
148
|
+
this.heading = "";
|
|
149
|
+
this.lead = "";
|
|
150
|
+
this.items = [];
|
|
151
|
+
this.headingLevel = 2;
|
|
152
|
+
this.open = [];
|
|
153
|
+
this.multiple = true;
|
|
154
|
+
this.spaceAbove = "none";
|
|
155
|
+
this.spaceBelow = "none";
|
|
156
|
+
}
|
|
157
|
+
static {
|
|
158
|
+
this.styles = [
|
|
159
|
+
...ImpaktElement.styles,
|
|
160
|
+
spaceAround,
|
|
161
|
+
css`
|
|
162
|
+
:host { display: block; container: impakt-faq / inline-size; }
|
|
163
|
+
.head { display: flex; flex-direction: column; gap: ${space(4)}; margin-block-end: ${space(10)}; max-inline-size: 44rem; }
|
|
164
|
+
.eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize("sm")}; color: var(--impakt-eyebrow, ${t.textMuted}); }
|
|
165
|
+
.heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }
|
|
166
|
+
.lead { margin: 0; font-size: ${fontSize("md")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
|
|
167
|
+
impakt-accordion { border-block-start: ${t.borderThin} solid ${t.rule}; }
|
|
168
|
+
`
|
|
169
|
+
];
|
|
170
|
+
}
|
|
171
|
+
render() {
|
|
172
|
+
const headingId = this.id_("heading");
|
|
173
|
+
const level = Math.min(Math.max(this.headingLevel, 1), 5);
|
|
174
|
+
const head = this.eyebrow || this.heading || this.lead ? html`<div class="head" part="head">
|
|
175
|
+
${this.eyebrow ? html`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>` : nothing}
|
|
176
|
+
${this.heading ? html`<div id=${headingId} class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
|
|
177
|
+
${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
|
|
178
|
+
</div>` : nothing;
|
|
179
|
+
const accordion = html`<impakt-accordion part="questions" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
|
|
180
|
+
${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}
|
|
181
|
+
</impakt-accordion>`;
|
|
182
|
+
return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
var ImpaktSiteMenu = class extends ImpaktElement {
|
|
186
|
+
constructor() {
|
|
187
|
+
super();
|
|
188
|
+
this.hasFooter = false;
|
|
189
|
+
this.open = false;
|
|
190
|
+
this.links = [];
|
|
191
|
+
this.current = "";
|
|
192
|
+
this.brand = "";
|
|
193
|
+
this.home = "/";
|
|
194
|
+
this.label = "Menu";
|
|
195
|
+
this.closeText = "Close";
|
|
196
|
+
}
|
|
197
|
+
static {
|
|
198
|
+
this.properties = {
|
|
199
|
+
open: { type: Boolean, reflect: true },
|
|
200
|
+
links: { type: Array },
|
|
201
|
+
current: { type: String },
|
|
202
|
+
brand: { type: String },
|
|
203
|
+
home: { type: String },
|
|
204
|
+
label: { type: String },
|
|
205
|
+
closeText: { type: String, attribute: "close-text" }
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
static {
|
|
209
|
+
this.styles = [
|
|
210
|
+
...ImpaktElement.styles,
|
|
211
|
+
focusRing,
|
|
212
|
+
css`
|
|
213
|
+
/* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */
|
|
214
|
+
:host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }
|
|
215
|
+
dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }
|
|
216
|
+
dialog[open] { display: flex; }
|
|
217
|
+
dialog::backdrop { background: var(--impakt-menu); }
|
|
218
|
+
.bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }
|
|
219
|
+
.brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize("md")}; font-weight: ${fontWeight("semibold")}; border-radius: ${t.radiusSm}; }
|
|
220
|
+
.close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }
|
|
221
|
+
nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }
|
|
222
|
+
ol { list-style: none; margin: 0; padding: 0; }
|
|
223
|
+
li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }
|
|
224
|
+
li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; }
|
|
225
|
+
li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
|
|
226
|
+
.number { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("regular")}; letter-spacing: 0; color: var(--impakt-menu-muted); }
|
|
227
|
+
/*
|
|
228
|
+
* The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets
|
|
229
|
+
* --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).
|
|
230
|
+
*/
|
|
231
|
+
a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }
|
|
232
|
+
a[aria-current] .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }
|
|
233
|
+
.foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }
|
|
234
|
+
.foot[hidden] { display: none; }
|
|
235
|
+
/* What is slotted at the foot is read on ink too. */
|
|
236
|
+
::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }
|
|
237
|
+
@media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }
|
|
238
|
+
`
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
get dialog() {
|
|
242
|
+
return this.renderRoot.querySelector("dialog");
|
|
243
|
+
}
|
|
244
|
+
updated(changed) {
|
|
245
|
+
if (!changed.has("open")) return;
|
|
246
|
+
const dialog = this.dialog;
|
|
247
|
+
if (!dialog) return;
|
|
248
|
+
if (this.open) {
|
|
249
|
+
if (typeof dialog.showModal === "function") dialog.showModal();
|
|
250
|
+
else dialog.setAttribute("open", "");
|
|
251
|
+
lockScroll(this);
|
|
252
|
+
} else {
|
|
253
|
+
if (typeof dialog.close === "function" && dialog.open) dialog.close();
|
|
254
|
+
else dialog.removeAttribute("open");
|
|
255
|
+
unlockScroll(this);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
disconnectedCallback() {
|
|
259
|
+
super.disconnectedCallback();
|
|
260
|
+
unlockScroll(this);
|
|
261
|
+
}
|
|
262
|
+
close() {
|
|
263
|
+
if (!this.open) return;
|
|
264
|
+
this.open = false;
|
|
265
|
+
this.dispatchEvent(new CustomEvent("impakt-close", { bubbles: true, composed: true }));
|
|
266
|
+
}
|
|
267
|
+
footerChanged(event) {
|
|
268
|
+
this.hasFooter = event.target.assignedNodes().length > 0;
|
|
269
|
+
this.requestUpdate();
|
|
270
|
+
}
|
|
271
|
+
render() {
|
|
272
|
+
return html`<dialog part="dialog" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>
|
|
273
|
+
<div class="bar" part="bar">
|
|
274
|
+
${this.brand ? html`<a class="brand" href=${this.home || "/"} part="brand">${this.brand}</a>` : html`<span></span>`}
|
|
275
|
+
<button class="close" type="button" part="close" @click=${() => this.close()}>
|
|
276
|
+
<span>${this.closeText}</span>
|
|
277
|
+
<svg viewBox="0 0 12 12" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M1 1l10 10M11 1 1 11" /></svg>
|
|
278
|
+
</button>
|
|
279
|
+
</div>
|
|
280
|
+
<nav aria-label=${this.label} part="nav">
|
|
281
|
+
<ol role="list">
|
|
282
|
+
${(this.links ?? []).map((link, index) => {
|
|
283
|
+
const current = !!this.current && link.href === this.current;
|
|
284
|
+
return html`<li>
|
|
285
|
+
<a href=${link.href} aria-current=${current ? "page" : nothing} part="link" @click=${() => this.close()}>
|
|
286
|
+
<span class="words">${link.label}</span><span class="number" aria-hidden="true">${String(index + 1).padStart(2, "0")}</span>
|
|
287
|
+
</a>
|
|
288
|
+
</li>`;
|
|
289
|
+
})}
|
|
290
|
+
</ol>
|
|
291
|
+
</nav>
|
|
292
|
+
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
293
|
+
</dialog>`;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
var ImpaktOffer = class extends ImpaktElement {
|
|
297
|
+
static {
|
|
298
|
+
this.properties = {
|
|
299
|
+
eyebrow: { type: String },
|
|
300
|
+
heading: { type: String },
|
|
301
|
+
lead: { type: String },
|
|
302
|
+
points: { type: Array },
|
|
303
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
304
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
305
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
constructor() {
|
|
309
|
+
super();
|
|
310
|
+
this.eyebrow = "";
|
|
311
|
+
this.heading = "";
|
|
312
|
+
this.lead = "";
|
|
313
|
+
this.points = [];
|
|
314
|
+
this.headingLevel = 2;
|
|
315
|
+
this.spaceAbove = "none";
|
|
316
|
+
this.spaceBelow = "none";
|
|
317
|
+
}
|
|
318
|
+
static {
|
|
319
|
+
this.styles = [
|
|
320
|
+
...ImpaktElement.styles,
|
|
321
|
+
spaceAround,
|
|
322
|
+
css`
|
|
323
|
+
:host { display: block; container: impakt-offer / inline-size; }
|
|
324
|
+
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(12)}; align-items: start; }
|
|
325
|
+
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(5)}; }
|
|
326
|
+
.eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize("sm")}; color: var(--impakt-eyebrow, ${t.textMuted}); }
|
|
327
|
+
.heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.75rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
|
|
328
|
+
.lead { margin: 0; max-inline-size: 32rem; font-size: ${fontSize("md")}; line-height: ${lineHeight("normal")}; color: ${t.text}; }
|
|
329
|
+
ol { list-style: none; margin: 0; padding: 0; }
|
|
330
|
+
li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: ${fontSize("lg")}; font-weight: ${fontWeight("medium")}; line-height: 1.2; color: ${t.text}; }
|
|
331
|
+
.number { flex: none; font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("regular")}; line-height: 1.6; }
|
|
332
|
+
@container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; gap: ${space(8)}; } }
|
|
333
|
+
`
|
|
334
|
+
];
|
|
335
|
+
}
|
|
336
|
+
render() {
|
|
337
|
+
const level = Math.min(Math.max(this.headingLevel, 1), 6);
|
|
338
|
+
return html`<div class="offer" part="offer">
|
|
339
|
+
<div class="copy">
|
|
340
|
+
${this.eyebrow ? html`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>` : nothing}
|
|
341
|
+
${this.heading ? html`<div class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
|
|
342
|
+
${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
|
|
343
|
+
<slot name="actions"></slot>
|
|
344
|
+
</div>
|
|
345
|
+
${(this.points ?? []).length ? html`<ol role="list" part="points">
|
|
346
|
+
${this.points.map((point, index) => html`<li><span class="number" aria-hidden="true">${String(index + 1).padStart(2, "0")}</span><span>${point}</span></li>`)}
|
|
347
|
+
</ol>` : nothing}
|
|
348
|
+
</div>`;
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
var ImpaktPostCard = class extends ImpaktElement {
|
|
352
|
+
static {
|
|
353
|
+
this.properties = {
|
|
354
|
+
heading: { type: String },
|
|
355
|
+
text: { type: String },
|
|
356
|
+
meta: { type: String },
|
|
357
|
+
href: { type: String },
|
|
358
|
+
linkText: { type: String, attribute: "link-text" },
|
|
359
|
+
headingLevel: { type: Number, attribute: "heading-level" }
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
constructor() {
|
|
363
|
+
super();
|
|
364
|
+
this.heading = "";
|
|
365
|
+
this.text = "";
|
|
366
|
+
this.meta = "";
|
|
367
|
+
this.href = "";
|
|
368
|
+
this.linkText = "";
|
|
369
|
+
this.headingLevel = 3;
|
|
370
|
+
}
|
|
371
|
+
static {
|
|
372
|
+
this.styles = [
|
|
373
|
+
...ImpaktElement.styles,
|
|
374
|
+
focusRing,
|
|
375
|
+
css`
|
|
376
|
+
:host { display: block; block-size: 100%; }
|
|
377
|
+
article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }
|
|
378
|
+
.meta { margin: 0; font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
|
|
379
|
+
.heading { font-family: ${t.fontHeading}; font-size: ${fontSize("xl")}; font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }
|
|
380
|
+
.heading a { color: inherit; text-decoration: none; }
|
|
381
|
+
.heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
|
|
382
|
+
.heading a:focus-visible { outline: none; }
|
|
383
|
+
.heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }
|
|
384
|
+
article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
|
|
385
|
+
.text { margin: 0; font-size: ${fontSize("sm")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
|
|
386
|
+
.more { margin-block-start: auto; font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.text}; }
|
|
387
|
+
@media (forced-colors: active) { article { border-color: CanvasText; } }
|
|
388
|
+
`
|
|
389
|
+
];
|
|
390
|
+
}
|
|
391
|
+
render() {
|
|
392
|
+
const level = Math.min(Math.max(this.headingLevel, 1), 6);
|
|
393
|
+
return html`<article part="card">
|
|
394
|
+
${this.meta ? html`<p class="meta" part="meta">${this.meta}</p>` : nothing}
|
|
395
|
+
<div class="heading" part="heading" role="heading" aria-level=${level}>${this.href ? html`<a href=${this.href} part="link">${this.heading}</a>` : this.heading}</div>
|
|
396
|
+
${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
|
|
397
|
+
${this.linkText && this.href ? html`<span class="more" aria-hidden="true">${this.linkText} →</span>` : nothing}
|
|
398
|
+
</article>`;
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
var ImpaktHighlight = class extends ImpaktElement {
|
|
402
|
+
static {
|
|
403
|
+
this.properties = {
|
|
404
|
+
label: { type: String }
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
constructor() {
|
|
408
|
+
super();
|
|
409
|
+
this.label = "";
|
|
410
|
+
}
|
|
411
|
+
static {
|
|
412
|
+
this.styles = [
|
|
413
|
+
...ImpaktElement.styles,
|
|
414
|
+
css`
|
|
415
|
+
:host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${token("color.accent.default", "#e2cc40")}; color: ${token("color.accent.on", "#1a1a1a")}; outline: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; outline-offset: -1px; }
|
|
416
|
+
.handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
|
|
417
|
+
.handle:nth-of-type(1) { inset-block-start: -4px; inset-inline-start: -4px; }
|
|
418
|
+
.handle:nth-of-type(2) { inset-block-start: -4px; inset-inline-end: -4px; }
|
|
419
|
+
.handle:nth-of-type(3) { inset-block-end: -4px; inset-inline-start: -4px; }
|
|
420
|
+
.handle:nth-of-type(4) { inset-block-end: -4px; inset-inline-end: -4px; }
|
|
421
|
+
.label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: 3px; }
|
|
422
|
+
@media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label { background: CanvasText; color: Canvas; } }
|
|
423
|
+
`
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
render() {
|
|
427
|
+
return html`<slot></slot><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span>${this.label ? html`<span class="label" part="label" aria-hidden="true">${this.label}</span>` : nothing}`;
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
customElements.define("impakt-work-list", ImpaktWorkList);
|
|
431
|
+
customElements.define("impakt-stat-row", ImpaktStatRow);
|
|
432
|
+
customElements.define("impakt-faq", ImpaktFaq);
|
|
433
|
+
customElements.define("impakt-site-menu", ImpaktSiteMenu);
|
|
434
|
+
customElements.define("impakt-offer", ImpaktOffer);
|
|
435
|
+
customElements.define("impakt-post-card", ImpaktPostCard);
|
|
436
|
+
customElements.define("impakt-highlight", ImpaktHighlight);
|
|
437
|
+
|
|
438
|
+
export {
|
|
439
|
+
ImpaktWorkList,
|
|
440
|
+
ImpaktStatRow,
|
|
441
|
+
ImpaktFaq,
|
|
442
|
+
ImpaktSiteMenu,
|
|
443
|
+
ImpaktOffer,
|
|
444
|
+
ImpaktPostCard,
|
|
445
|
+
ImpaktHighlight
|
|
446
|
+
};
|
|
447
|
+
//# sourceMappingURL=chunk-PTQDYIC5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/studio.ts"],"sourcesContent":["/**\n * The blocks a studio's own site is built from: the numbered list of work, a\n * row of figures, and the questions at the foot of a page.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport {\n ImpaktElement,\n focusRing,\n fontSize,\n fontWeight,\n lineHeight,\n lockScroll,\n space,\n spaceAround,\n t,\n token,\n unlockScroll,\n type NavLink,\n} from '@atomic-ui/ui';\n\n/** One project in a list of work. */\nexport interface WorkItem {\n id?: string;\n /** The project's name, set large. */\n name: string;\n /** What it is and who it is for, such as \"Web platform · Automotive\". */\n meta?: string;\n /** Where the row goes when it is pressed. Leave empty for a row that goes nowhere. */\n href?: string;\n}\n\n/** The arrow at the end of a row that goes somewhere. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg viewBox=\"0 0 22 22\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M5 17 17 5M8 5h9v9\" />\n</svg>`;\n\n/**\n * A numbered list of projects, each name set large: the work on a studio's\n * home page, or the index on its work page.\n *\n * **Each row is one link.** The link sits on the project's name, which is a\n * heading, and is stretched over the row, so the whole row can be pressed\n * while a screen reader meets one link with one name (2.4.4, 2.5.8). The\n * number and the arrow are decoration and are hidden from it; the list itself\n * says how many projects there are and which one this is (1.3.1).\n *\n * **Pointing at a row and focusing it look the same.** The row turns to the\n * text colour with the card colour on it, a pair every brand's tokens already\n * hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,\n * 1.4.11). The focus ring is still drawn over it (2.4.7).\n *\n * The names shrink with the block's own width, not the window's, so the list\n * reads the same in a narrow column as on a phone (1.4.10).\n *\n * @category content\n * @icon list\n */\nexport class ImpaktWorkList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n start: { type: Number },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The projects, in order. */\n declare items: WorkItem[];\n /** The heading level of each project's name. It depends on what is above the list on the page. */\n declare headingLevel: number;\n /** The number the first project is given. */\n declare start: number;\n /** A name for the list, so a screen reader can tell it from other lists on the page. Leave empty for none. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.headingLevel = 3;\n this.start = 1;\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; container: impakt-work-list / inline-size; }\n ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }\n li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }\n .name a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n .name a::after { content: ''; position: absolute; inset: 0; }\n .name a:focus-visible { outline: none; }\n .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .meta { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .arrow { display: flex; color: ${t.text}; }\n /* Pointed at or focused, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */\n li:has(a):hover, li:has(a:focus-visible) { background: ${t.text}; }\n li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${t.surfaceCard}; }\n li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }\n li:has(a):hover .arrow, li:has(a:focus-visible) .arrow { color: ${token('color.accent.default', 'currentColor')}; }\n @container impakt-work-list (max-width: 40rem) {\n li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }\n .meta { grid-column: 2; grid-row: 2; margin-block-start: ${space(2)}; }\n .arrow { grid-column: 3; grid-row: 1; }\n }\n @media (forced-colors: active) {\n li:has(a):hover, li:has(a:focus-visible) { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }\n li:has(a):hover :is(.name, .number, .meta, .arrow), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow) { color: CanvasText; }\n }\n `,\n ];\n\n render(): TemplateResult {\n // role=\"list\" is set by hand: a list with its markers removed is not announced as a list by every screen reader.\n return html`<ol role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map((item, index) => {\n const number = String(this.start + index).padStart(2, '0');\n return html`<li part=\"row\">\n <span class=\"number\" aria-hidden=\"true\">${number}</span>\n <div class=\"name\" part=\"name\" role=\"heading\" aria-level=${this.headingLevel}>\n ${item.href ? html`<a href=${item.href} part=\"link\">${item.name}</a>` : item.name}\n </div>\n ${item.meta ? html`<span class=\"meta\" part=\"meta\">${item.meta}</span>` : html`<span></span>`}\n ${item.href ? html`<span class=\"arrow\">${arrow}</span>` : html`<span></span>`}\n </li>`;\n })}\n </ol>`;\n }\n}\n\n/** One figure in a row of them. */\nexport interface StatRowItem {\n /** The number, written as it should appear, such as \"161 ms\" or \"4\". */\n figure: string;\n /** What the number counts. */\n label: string;\n /** A line more, if the label needs it. */\n note?: string;\n}\n\n/**\n * A row of figures under a rule, each with what it counts: \"4 live products\",\n * \"161 ms response time\".\n *\n * The figures are a list, so a screen reader says how many there are, and each\n * is read as one phrase, \"161 ms response time\", not a bare number followed\n * some way off by its label (1.3.1). The row wraps by its own width: four\n * across, then two, then one, with nothing to scroll sideways at 320px\n * (1.4.10).\n *\n * @category content\n * @icon stat\n */\nexport class ImpaktStatRow extends ImpaktElement {\n static properties = {\n items: { type: Array },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The figures, in order. Four fit a row on a wide page. */\n declare items: StatRowItem[];\n /** A name for the row, such as \"Live products\", read before the figures. Leave empty for none. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-stat-row / inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: ${space(6)}; }\n li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }\n p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }\n .value { font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .label { font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .note { font-size: ${fontSize('sm')}; color: ${t.textMuted}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`<ul role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) =>\n html`<li part=\"stat\">\n <p><span class=\"value\" part=\"value\">${item.figure}</span> <span class=\"label\" part=\"label\">${item.label}</span>${item.note ? html` <span class=\"note\">${item.note}</span>` : nothing}</p>\n </li>`,\n )}\n </ul>`;\n }\n}\n\n/** One question and its answer. */\nexport interface FaqItem {\n id: string;\n /** The question. */\n heading: string;\n /** The answer, as plain text. An answer with links or a list is slotted as `panel-<id>` instead. */\n body: string;\n}\n\n/**\n * The questions at the foot of a page, under a heading: a title, a line of\n * introduction, and the questions as sections that open.\n *\n * It is `impakt-accordion` with the heading a page always writes above it, so\n * the levels cannot drift: the questions are always one level below the\n * block's own heading (1.3.1). With a heading, the block is a region named by\n * it, so a screen reader can jump straight to the questions (2.4.1).\n *\n * An answer that is more than words is slotted as `panel-<id>`, exactly as\n * on the accordion, and is passed through to it.\n *\n * @category content\n * @icon accordion\n */\nexport class ImpaktFaq extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n open: { type: Array },\n multiple: { type: Boolean },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Questions\". */\n declare eyebrow: string;\n /** The block's heading, such as \"Questions founders ask us first.\" */\n declare heading: string;\n /** A line under the heading. */\n declare lead: string;\n /** The questions, in order. */\n declare items: FaqItem[];\n /** The level of the block's heading. The questions are one level below it. */\n declare headingLevel: number;\n /** The ids of the questions that start open. */\n declare open: string[];\n /** Let more than one answer be open at once. */\n declare multiple: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.items = [];\n this.headingLevel = 2;\n this.open = [];\n this.multiple = true;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-faq / inline-size; }\n .head { display: flex; flex-direction: column; gap: ${space(4)}; margin-block-end: ${space(10)}; max-inline-size: 44rem; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n impakt-accordion { border-block-start: ${t.borderThin} solid ${t.rule}; }\n `,\n ];\n\n render(): TemplateResult {\n const headingId = this.id_('heading');\n const level = Math.min(Math.max(this.headingLevel, 1), 5);\n const head =\n this.eyebrow || this.heading || this.lead\n ? html`<div class=\"head\" part=\"head\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div id=${headingId} class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>`\n : nothing;\n // Each answer's slot is passed through to the accordion, with the plain answer as what shows when nothing is slotted.\n const accordion = html`<impakt-accordion part=\"questions\" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>\n ${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}\n </impakt-accordion>`;\n return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;\n }\n}\n\n/**\n * A site's menu as a whole screen: a few large links, for a phone or for a\n * site with only a handful of pages.\n *\n * **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so\n * the focus trap, Escape, the inert page behind it and the return of focus to\n * the button that opened it all come from the browser (2.1.2, 2.4.3). The page\n * behind does not scroll while it is open. The button that opens it is the\n * page's own; set `open` from it and listen for `impakt-close`.\n *\n * **The links are a navigation landmark with a name**, and the page the reader\n * is on carries `aria-current=\"page\"` and is marked with a square, so the mark\n * does not depend on colour (1.4.1). A brand whose ink is dark may also colour\n * it, by setting `--impakt-site-menu-current`.\n *\n * The menu is drawn in ink: the text colour as the background with the card\n * colour on it, a pair every brand already holds at 4.5:1. A component slotted\n * at its foot takes the same colours through its tokens; a plain link there\n * keeps the page's own link colour, so slot `impakt-link` instead.\n *\n * @category navigation\n * @icon menu\n * @slot footer - Under the links: a call to action, an email address.\n * @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.\n */\nexport class ImpaktSiteMenu extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n links: { type: Array },\n current: { type: String },\n brand: { type: String },\n home: { type: String },\n label: { type: String },\n closeText: { type: String, attribute: 'close-text' },\n };\n /** Whether the menu is showing. */\n declare open: boolean;\n /** The pages, in order. */\n declare links: NavLink[];\n /** The `href` of the page the reader is on, so its link is marked. */\n declare current: string;\n /** The site's name, at the top. */\n declare brand: string;\n /** Where the site's name goes. */\n declare home: string;\n /** The menu's name, read when it opens and as the name of its links. */\n declare label: string;\n /** The words on the button that closes it. */\n declare closeText: string;\n\n constructor() {\n super();\n this.open = false;\n this.links = [];\n this.current = '';\n this.brand = '';\n this.home = '/';\n this.label = 'Menu';\n this.closeText = 'Close';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */\n :host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }\n dialog[open] { display: flex; }\n dialog::backdrop { background: var(--impakt-menu); }\n .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('semibold')}; border-radius: ${t.radiusSm}; }\n .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }\n nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; letter-spacing: 0; color: var(--impakt-menu-muted); }\n /*\n * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets\n * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).\n */\n a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current] .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }\n .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }\n .foot[hidden] { display: none; }\n /* What is slotted at the foot is read on ink too. */\n ::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }\n @media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }\n `,\n ];\n\n private hasFooter = false;\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private close(): void {\n if (!this.open) return;\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n private footerChanged(event: Event): void {\n this.hasFooter = (event.target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n return html`<dialog part=\"dialog\" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>\n <div class=\"bar\" part=\"bar\">\n ${this.brand ? html`<a class=\"brand\" href=${this.home || '/'} part=\"brand\">${this.brand}</a>` : html`<span></span>`}\n <button class=\"close\" type=\"button\" part=\"close\" @click=${() => this.close()}>\n <span>${this.closeText}</span>\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l10 10M11 1 1 11\" /></svg>\n </button>\n </div>\n <nav aria-label=${this.label} part=\"nav\">\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const current = !!this.current && link.href === this.current;\n // Following a link closes the menu, so a link to a place on the same page does not leave it open over that place.\n return html`<li>\n <a href=${link.href} aria-current=${current ? 'page' : nothing} part=\"link\" @click=${() => this.close()}>\n <span class=\"words\">${link.label}</span><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span>\n </a>\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"foot\" part=\"footer\" ?hidden=${!this.hasFooter}><slot name=\"footer\" @slotchange=${this.footerChanged}></slot></div>\n </dialog>`;\n }\n}\n\n/**\n * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-offer / inline-size; }\n .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(12)}; align-items: start; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(5)}; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.75rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 32rem; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: ${fontSize('lg')}; font-weight: ${fontWeight('medium')}; line-height: 1.2; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; line-height: 1.6; }\n @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; gap: ${space(8)}; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n <slot name=\"actions\"></slot>\n </div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: ${fontSize('xl')}; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .more { margin-block-start: auto; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.text}; }\n @media (forced-colors: active) { article { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<article part=\"card\">\n ${this.meta ? html`<p class=\"meta\" part=\"meta\">${this.meta}</p>` : nothing}\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}</div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.linkText && this.href ? html`<span class=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A word or two of a heading picked out as if selected in a design tool: the\n * accent colour behind it, an outline and four handles.\n *\n * It is decoration round real text. The words stay in the heading, in the\n * page, so they are read, found and translated as the rest of it is; the\n * handles and the optional label are hidden from a screen reader (1.3.1).\n * The words on the accent are the colour the tokens measured against it\n * (1.4.3). Nothing moves, so there is nothing to stop for reduced motion.\n *\n * @category content\n * @icon text\n * @slot - The words to pick out.\n */\nexport class ImpaktHighlight extends ImpaktElement {\n static properties = {\n label: { type: String },\n };\n /** A small tag under the words, such as \"Design · H1 / 120\". It is decoration and is not read. */\n declare label: string;\n\n constructor() {\n super();\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${token('color.accent.default', '#e2cc40')}; color: ${token('color.accent.on', '#1a1a1a')}; outline: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; outline-offset: -1px; }\n .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle:nth-of-type(1) { inset-block-start: -4px; inset-inline-start: -4px; }\n .handle:nth-of-type(2) { inset-block-start: -4px; inset-inline-end: -4px; }\n .handle:nth-of-type(3) { inset-block-end: -4px; inset-inline-start: -4px; }\n .handle:nth-of-type(4) { inset-block-end: -4px; inset-inline-end: -4px; }\n .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: 3px; }\n @media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label { background: CanvasText; color: Canvas; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<slot></slot><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span>${\n this.label ? html`<span class=\"label\" part=\"label\" aria-hidden=\"true\">${this.label}</span>` : nothing\n }`;\n }\n}\n\ncustomElements.define('impakt-work-list', ImpaktWorkList);\ncustomElements.define('impakt-stat-row', ImpaktStatRow);\ncustomElements.define('impakt-faq', ImpaktFaq);\ncustomElements.define('impakt-site-menu', ImpaktSiteMenu);\ncustomElements.define('impakt-offer', ImpaktOffer);\ncustomElements.define('impakt-post-card', ImpaktPostCard);\ncustomElements.define('impakt-highlight', ImpaktHighlight);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-work-list': ImpaktWorkList;\n 'impakt-stat-row': ImpaktStatRow;\n 'impakt-faq': ImpaktFaq;\n 'impakt-site-menu': ImpaktSiteMenu;\n 'impakt-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAcP,IAAM,QAAQ;AAAA;AAAA;AAyBP,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAChD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,cAAc,EAAE,MAAM,QAAQ,WAAW,gBAAgB;AAAA,MACzD,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,YAAY,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,cAAc;AAAA,MAC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