@brad-frost-web/eddie-recipes 0.49.0 → 0.50.1

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.
Files changed (50) hide show
  1. package/cdn/chunks/EdElement.C2CWERWn.js +181 -0
  2. package/cdn/chunks/{EdFormElement.DxDbDIOi.js → EdFormElement.BEtP_6bx.js} +1 -1
  3. package/cdn/chunks/band.DXcBQMis.js +57 -0
  4. package/cdn/chunks/{button.UtF8xc8z.js → button.CsKs0v7w.js} +2 -2
  5. package/cdn/chunks/card.Cgf0ozTt.js +52 -0
  6. package/cdn/chunks/{header.CoOwmnr7.js → header.DlthlfEG.js} +28 -28
  7. package/cdn/chunks/heading.BDqIh1Ct.js +103 -0
  8. package/cdn/chunks/{icon.mc7zUxp5.js → icon.Bcn-TTgO.js} +1 -1
  9. package/cdn/chunks/{layout-container.C8MYJcgw.js → layout-container.D3SLP2g3.js} +1 -1
  10. package/cdn/chunks/{select-field.DLVUo7yk.js → select-field.BBPQUqaF.js} +3 -3
  11. package/cdn/chunks/{single-field-form.BX6ynWNg.js → single-field-form.ZlgjHZA4.js} +2 -2
  12. package/cdn/chunks/{text-passage.BEu9bNtm.js → text-passage.Bi6_f8A2.js} +1 -1
  13. package/cdn/chunks/{timeline-node.CmEn0wf_.js → timeline-node.BclP-x_D.js} +1 -1
  14. package/cdn/eddie-recipes-autoloader.js +7 -6
  15. package/cdn/recipes/common/ad/ad.js +1 -1
  16. package/cdn/recipes/common/article-card/article-card.js +3 -3
  17. package/cdn/recipes/common/audio-player/audio-player.js +1 -1
  18. package/cdn/recipes/common/example-form/example-form.js +6 -6
  19. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +2 -2
  20. package/cdn/recipes/common/page-banner/page-banner.js +49 -43
  21. package/cdn/recipes/common/project-card/project-card.js +3 -3
  22. package/cdn/recipes/common/promo-block/promo-block.js +3 -3
  23. package/cdn/recipes/common/search-form/search-form.js +2 -2
  24. package/cdn/recipes/common/site-footer/site-footer.js +30 -20
  25. package/cdn/recipes/common/site-header/site-header.js +4 -4
  26. package/cdn/recipes/common/speaking-card/speaking-card.js +3 -3
  27. package/cdn/recipes/common/stat-card/stat-card.js +4 -4
  28. package/cdn/recipes/common/theme-switcher/theme-switcher.js +2 -2
  29. package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +3 -3
  30. package/cdn/recipes/common/timeline-node/timeline-node.js +3 -3
  31. package/cdn/recipes/common/transport-button/transport-button.js +2 -2
  32. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +3 -3
  33. package/cdn/recipes/common/video-embed/video-embed.js +48 -0
  34. package/cdn/recipes/common/visualzzz/visualzzz.js +1 -1
  35. package/cdn/recipes/eddie-slides/template-card/template-card.js +1 -1
  36. package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +2 -2
  37. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +3 -3
  38. package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +1 -1
  39. package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +1 -1
  40. package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +1 -1
  41. package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +2 -2
  42. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +3 -3
  43. package/package.json +1 -1
  44. package/recipes/common/video-embed/video-embed.d.ts +112 -0
  45. package/recipes/common/video-embed/video-embed.d.ts.map +1 -0
  46. package/recipes/common/video-embed/video-embed.js +50 -0
  47. package/cdn/chunks/EdElement.Dqh0Nrbq.js +0 -127
  48. package/cdn/chunks/band.B0ez0GMJ.js +0 -42
  49. package/cdn/chunks/card.peqD1u-M.js +0 -39
  50. package/cdn/chunks/heading.Ca_LYMne.js +0 -64
@@ -0,0 +1,181 @@
1
+ import { c as l } from "./vendor.lY5z9hnC.js";
2
+ import { i as d, b as h, n as a } from "./lit.EWazi_Sp.js";
3
+ var p = Object.defineProperty, c = (i, e, t, r) => {
4
+ for (var n = void 0, s = i.length - 1, o; s >= 0; s--)
5
+ (o = i[s]) && (n = o(e, t, n) || n);
6
+ return n && p(e, t, n), n;
7
+ };
8
+ class u extends d {
9
+ static get observedAttributes() {
10
+ const e = super.observedAttributes ?? [], t = /* @__PURE__ */ new Map();
11
+ for (const r of e) {
12
+ const n = this.__attributeToPropertyMap?.get(r);
13
+ if (typeof n != "string") continue;
14
+ const s = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
15
+ s === r || e.includes(s) || t.set(s, r);
16
+ }
17
+ return this.__kebabAliases = t, [...e, ...t.keys()];
18
+ }
19
+ attributeChangedCallback(e, t, r) {
20
+ const n = this.constructor.__kebabAliases?.get(e);
21
+ super.attributeChangedCallback(n ?? e, t, r);
22
+ }
23
+ /**
24
+ * Whether this instance is rendering in enhance (light-DOM) mode. Reads the
25
+ * attribute directly rather than the reactive property so it is reliable at
26
+ * `createRenderRoot()` time, before property hydration is guaranteed.
27
+ */
28
+ get isEnhanceMode() {
29
+ return typeof this.hasAttribute == "function" && this.hasAttribute("enhance");
30
+ }
31
+ /**
32
+ * In enhance mode, render Lit's (unused) template into a detached fragment
33
+ * rather than a shadow root. This keeps Lit's update lifecycle fully intact —
34
+ * so `updated()` fires and the cycle is marked complete — while leaving the
35
+ * element's own light-DOM children untouched (we decorate them in `updated()`
36
+ * instead). The element therefore has no shadow root, and the author's markup
37
+ * is never clobbered. Classic mode keeps the default encapsulated shadow root.
38
+ */
39
+ createRenderRoot() {
40
+ return typeof document > "u" ? super.createRenderRoot() : this.isEnhanceMode ? document.createDocumentFragment() : super.createRenderRoot();
41
+ }
42
+ /**
43
+ * After each render, enhance-mode components decorate the author's light DOM.
44
+ * `enhanceLightDom()` is written to be idempotent so reactive property
45
+ * changes keep the author's modifier classes in sync. Classic mode is
46
+ * unaffected (the hook defaults to a no-op).
47
+ */
48
+ updated(e) {
49
+ super.updated(e), this.isEnhanceMode && this.enhanceLightDom();
50
+ }
51
+ /**
52
+ * Hook for enhance-mode components: decorate the author's existing light-DOM
53
+ * children in place (apply `.ed-c-*` classes, wire behaviour to author
54
+ * nodes). Must be idempotent — it runs after every update. Subclasses
55
+ * override; the default is a no-op so classic-only components are unaffected.
56
+ */
57
+ enhanceLightDom() {
58
+ }
59
+ /**
60
+ * Inject a component's global stylesheet into the document head exactly once,
61
+ * keyed by `id`. This is the runtime bridge for enhance mode until a global
62
+ * CSS build target ships (#813, Tier 0); the pattern is lifted from
63
+ * `ed-text-passage`, the system's first light-DOM-styled component.
64
+ */
65
+ injectGlobalStyles(e, t) {
66
+ if (typeof document > "u" || document.getElementById(e))
67
+ return;
68
+ const r = document.createElement("style");
69
+ r.id = e, r.textContent = t, document.head.appendChild(r);
70
+ }
71
+ /**
72
+ * Abstraction of `classnames` that automatically includes any style modifier
73
+ * as well as any set variants.
74
+ *
75
+ * It is expected that `variant` would be overridden in a subclass with more
76
+ * specific types, `@property() variant?: 'foo' | 'bar'`
77
+ *
78
+ * @param baseClassName
79
+ */
80
+ componentClassNames(e, t = {}) {
81
+ return l(e, this.styleModifier, t);
82
+ }
83
+ /**
84
+ * Whether this instance can inspect its own light DOM.
85
+ *
86
+ * Lit SSR runs components against `@lit-labs/ssr-dom-shim`, which implements
87
+ * attributes and a shadow root but **no light-DOM query API** — an element
88
+ * being server-rendered has no children to query, because its light DOM is
89
+ * still further down the template's token stream. Any `render()` that calls
90
+ * `this.querySelector()` therefore throws `this.querySelector is not a
91
+ * function` and takes the SSR worker down with it (#1360).
92
+ */
93
+ get canQueryLightDom() {
94
+ return typeof this.querySelector == "function";
95
+ }
96
+ /**
97
+ * Check if a slot is empty.
98
+ *
99
+ * **This is a client-side answer.** During SSR there is no light DOM to
100
+ * inspect and no API in Lit SSR that exposes one — element renderers receive
101
+ * a tag name, a constructor and an attribute map, never children — so the
102
+ * server can only guess, and `ssrEmpty` is that guess.
103
+ *
104
+ * The default guess is `false`, "assume the slot is populated", because the
105
+ * two ways of being wrong are not symmetrical: rendering a wrapper that
106
+ * turns out to be empty leaves a little extra space until the component
107
+ * upgrades, while *not* rendering it drops the author's slotted content from
108
+ * the server-rendered markup entirely. Extra space is recoverable; missing
109
+ * content is not. This is the failure that kept ed-hero / ed-card /
110
+ * ed-media-block / ed-band out of bradfrost.com's SSR component set.
111
+ *
112
+ * Pass `ssrEmpty: true` where the *opposite* is cheaper — a wrapper whose
113
+ * absence costs nothing but whose presence changes page-level layout, e.g.
114
+ * ed-hero's `--has-background` min-height. Prefer neither: the durable fix
115
+ * is to render the wrapper unconditionally and give it no cost when empty,
116
+ * which is what ed-card, ed-media-block, ed-header and ed-footer now do.
117
+ *
118
+ * @param slotName - The slot to test.
119
+ * @param ssrEmpty - What to report when the light DOM cannot be inspected.
120
+ */
121
+ slotEmpty(e, t = !1) {
122
+ return this.canQueryLightDom ? !this.querySelector(`[slot="${e}"]`) : t;
123
+ }
124
+ /**
125
+ * Check if a slot is not empty. Returns `true` or `undefined` (never
126
+ * `false`) so templates can gate on it with `&&` and render nothing.
127
+ *
128
+ * @param slotName - The slot to test.
129
+ * @param ssrEmpty - See {@link slotEmpty}.
130
+ */
131
+ slotNotEmpty(e, t = !1) {
132
+ if (!this.slotEmpty(e, t))
133
+ return !this.slotEmpty(e, t);
134
+ }
135
+ /**
136
+ * Check if the *default* slot is empty: no element child without a `slot`
137
+ * attribute, and no non-whitespace text node.
138
+ *
139
+ * `slotEmpty('')` cannot answer this — it queries `[slot=""]`, which default
140
+ * -slot content by definition does not carry. This lived as a private helper
141
+ * on ed-section and as ad-hoc `this.children` walks elsewhere; sharing it
142
+ * puts the SSR guard in one place (#1360).
143
+ *
144
+ * @param ssrEmpty - See {@link slotEmpty}.
145
+ */
146
+ defaultSlotEmpty(e = !1) {
147
+ if (!this.canQueryLightDom)
148
+ return e;
149
+ const t = Array.from(this.children).some((n) => !n.hasAttribute("slot")), r = Array.from(this.childNodes).some(
150
+ (n) => n.nodeType === Node.TEXT_NODE && n.textContent?.trim() !== ""
151
+ );
152
+ return !t && !r;
153
+ }
154
+ /**
155
+ * Dispatch a custom event.
156
+ */
157
+ dispatch({ e, eventName: t, detailObj: r = {}, optionsObj: n = {} }) {
158
+ const s = {
159
+ bubbles: !0,
160
+ composed: !0,
161
+ ...n,
162
+ detail: { ...e && { originalEvent: e }, ...r }
163
+ }, o = new CustomEvent(t, s);
164
+ return this.dispatchEvent(o), o;
165
+ }
166
+ /**
167
+ * Example render, should not be used
168
+ */
169
+ render() {
170
+ return h`<slot></slot>`;
171
+ }
172
+ }
173
+ c([
174
+ a()
175
+ ], u.prototype, "styleModifier");
176
+ c([
177
+ a({ type: Boolean })
178
+ ], u.prototype, "enhance");
179
+ export {
180
+ u as E
181
+ };
@@ -1,5 +1,5 @@
1
1
  import { n as r } from "./lit.EWazi_Sp.js";
2
- import { E as u } from "./EdElement.Dqh0Nrbq.js";
2
+ import { E as u } from "./EdElement.C2CWERWn.js";
3
3
  var h = Object.defineProperty, d = Object.getOwnPropertyDescriptor, o = (s, t, i, p) => {
4
4
  for (var e = d(t, i), a = s.length - 1, l; a >= 0; a--)
5
5
  (l = s[a]) && (e = l(t, i, e) || e);
@@ -0,0 +1,57 @@
1
+ import { r as i, b, n as c } from "./lit.EWazi_Sp.js";
2
+ import { E as l } from "./EdElement.C2CWERWn.js";
3
+ const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-band{position:relative;isolation:isolate;background:var(--ed-theme-color-background-subtle);padding:1.5rem 0}@media all and (min-width:75rem){.ed-c-band{padding:2rem 0}}.ed-c-band--brand{background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{color:var(--ed-theme-color-content-brand-knockout);background:var(--ed-theme-color-background-brand-knockout)}.ed-c-band--knockout{color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-band__background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.ed-c-band__background ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-c-band__content{position:relative;z-index:1}.ed-c-band--scrim{color:var(--ed-theme-color-content-knockout)}.ed-c-band--scrim:after{content:"";position:absolute;inset:0;z-index:0;background:color-mix(in srgb,var(--ed-theme-color-background-knockout) var(--ed-c-band-scrim-strength, 65%),transparent);pointer-events:none}';
4
+ var k = Object.defineProperty, s = (o, n, d, m) => {
5
+ for (var e = void 0, t = o.length - 1, a; t >= 0; t--)
6
+ (a = o[t]) && (e = a(n, d, e) || e);
7
+ return e && k(n, d, e), e;
8
+ };
9
+ class r extends l {
10
+ constructor() {
11
+ super(...arguments), this.scrim = !1;
12
+ }
13
+ static get styles() {
14
+ return i(u);
15
+ }
16
+ /**
17
+ * Nothing here inspects the light DOM any more (#1360), so a band renders
18
+ * identically on the server and in the browser.
19
+ *
20
+ * The background layer renders unconditionally: it is absolutely positioned
21
+ * and out of flow, so an empty one costs nothing, whereas gating it crashed
22
+ * under Lit SSR and — once guarded — dropped the author's slotted backdrop
23
+ * from the server-rendered markup.
24
+ *
25
+ * `--has-background` is gone entirely rather than guessed. Everything it did
26
+ * is either harmless on a plain band and now lives on the base class
27
+ * (`position`, `isolation`, the content layer's stacking), or belongs on the
28
+ * background layer itself (`overflow: hidden`, which clips the backdrop to
29
+ * the same box it always did). `--scrim` keys off the `scrim` property
30
+ * alone, which the server can read.
31
+ */
32
+ render() {
33
+ const n = this.componentClassNames("ed-c-band", {
34
+ "ed-c-band--brand": this.variant === "brand",
35
+ "ed-c-band--brand-knockout": this.variant === "brand-knockout",
36
+ "ed-c-band--knockout": this.variant === "knockout",
37
+ "ed-c-band--scrim": this.scrim
38
+ });
39
+ return b`
40
+ <div class="${n}">
41
+ <div class="ed-c-band__background" part="background" aria-hidden="true">
42
+ <slot name="background"></slot>
43
+ </div>
44
+ <div class="ed-c-band__content" part="content">
45
+ <slot></slot>
46
+ </div>
47
+ </div>
48
+ `;
49
+ }
50
+ }
51
+ s([
52
+ c()
53
+ ], r.prototype, "variant");
54
+ s([
55
+ c({ type: Boolean, reflect: !0 })
56
+ ], r.prototype, "scrim");
57
+ customElements.get("ed-band") === void 0 && customElements.define("ed-band", r);
@@ -1,6 +1,6 @@
1
- import { E as s } from "./EdFormElement.DxDbDIOi.js";
1
+ import { E as s } from "./EdFormElement.BEtP_6bx.js";
2
2
  import { r as h, A as n, b as c, o as m, n as r, e as p } from "./lit.EWazi_Sp.js";
3
- import "./icon.mc7zUxp5.js";
3
+ import "./icon.Bcn-TTgO.js";
4
4
  const g = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-u-is-hidden{display:none!important;visibility:hidden!important}.ed-u-is-vishidden{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}@media all and (min-width:23.4375rem){.ed-u-hide-sm{display:none!important}}@media all and (min-width:48rem){.ed-u-hide-md{display:none!important}}@media all and (min-width:60rem){.ed-u-hide-lg{display:none!important}}@media all and (min-width:75rem){.ed-u-hide-xl{display:none!important}}@media all and (max-width:23.4375rem){.ed-u-show-sm{display:none!important}}@media all and (max-width:48rem){.ed-u-show-md{display:none!important}}@media all and (max-width:60rem){.ed-u-show-lg{display:none!important}}@media all and (max-width:75rem){.ed-u-show-xl{display:none!important}}.ed-c-button{font-family:var(--ed-theme-typography-button-default-font-family);font-weight:var(--ed-theme-typography-button-default-font-weight);font-size:var(--ed-theme-typography-button-default-font-size);line-height:var(--ed-theme-typography-button-default-line-height);letter-spacing:var(--ed-theme-typography-button-default-letter-spacing);text-transform:var(--ed-theme-typography-button-default-text-transform);--ed-button-padding-block: .75rem;--ed-button-padding-inline: 1.75rem;--ed-button-padding-inline-icon: .75rem;display:inline-flex;align-items:center;justify-content:center;gap:var(--ed-button-gap, .25em);padding:var(--ed-button-padding-block) var(--ed-button-padding-inline);margin:0;background:var(--ed-theme-button-color-background-default);border-width:var(--ed-theme-border-width-md);border-style:solid;border-color:var(--ed-theme-button-color-border-default);border-radius:var(--ed-theme-border-radius-md);color:var(--ed-theme-button-color-content-default);cursor:pointer;white-space:nowrap;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-button:hover,.ed-c-button:focus{color:var(--ed-theme-button-color-content-hover);border-color:var(--ed-theme-button-color-border-hover);background:var(--ed-theme-button-color-background-hover);text-decoration:none}.ed-c-button:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-button:active{background-color:var(--ed-theme-button-color-background-active);border-color:var(--ed-theme-button-color-border-active);color:var(--ed-theme-button-color-content-active)}a.ed-c-button{text-decoration:none}.ed-c-button:disabled{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled);cursor:not-allowed}.ed-c-button:disabled:hover,.ed-c-button:disabled:focus,.ed-c-button:disabled:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button--primary{background-color:var(--ed-theme-button-primary-color-background-default);border-color:var(--ed-theme-button-primary-color-border-default);color:var(--ed-theme-button-primary-color-content-default)}.ed-c-button--primary:hover,.ed-c-button--primary:focus{background-color:var(--ed-theme-button-primary-color-background-hover);border-color:var(--ed-theme-button-primary-color-border-hover);color:var(--ed-theme-button-primary-color-content-hover)}.ed-c-button--primary:active{background-color:var(--ed-theme-button-primary-color-background-active);border-color:var(--ed-theme-button-primary-color-border-active);color:var(--ed-theme-button-primary-color-content-active)}.ed-c-button--primary:disabled{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--primary:disabled:hover,.ed-c-button--primary:disabled:focus,.ed-c-button--primary:disabled:active{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--danger{background-color:var(--ed-theme-button-danger-color-background-default, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-default, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-default, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:hover,.ed-c-button--danger:focus{background-color:var(--ed-theme-button-danger-color-background-hover, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-hover, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-hover, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:active{background-color:var(--ed-theme-button-danger-color-background-active, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-active, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-active, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:disabled{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--danger:disabled:hover,.ed-c-button--danger:disabled:focus,.ed-c-button--danger:disabled:active{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--link{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);background-color:transparent;border:none;color:var(--ed-theme-link-color-content-default);padding:0}.ed-c-button--link:hover,.ed-c-button--link:focus{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-hover);text-decoration:underline}.ed-c-button--link:active{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-active)}.ed-c-button--link:visited{color:var(--ed-theme-link-color-content-visited)}.ed-c-button--link:disabled{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link:disabled:hover,.ed-c-button--link:disabled:focus,.ed-c-button--link:disabled:active{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link.ed-c-button--sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-button--link.ed-c-button--lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-button--bare{padding:0;border:0;background:none;color:var(--ed-theme-color-content-default)}.ed-c-button--bare:hover,.ed-c-button--bare:focus{color:var(--ed-theme-color-content-hover);background:none}.ed-c-button--bare:disabled{color:var(--ed-theme-button-bare-color-content-disabled);background:none;cursor:not-allowed}.ed-c-button--bare:disabled:hover,.ed-c-button--bare:disabled:focus{background:none;color:var(--ed-theme-button-bare-color-content-disabled)}.ed-c-button--knockout:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-knockout);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-button--bare.ed-c-button--knockout{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:hover,.ed-c-button--bare.ed-c-button--knockout:focus{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:active{color:var(--ed-theme-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout{color:var(--ed-theme-link-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout:hover,.ed-c-button--link.ed-c-button--knockout:focus{color:var(--ed-theme-link-color-content-knockout-hover)}.ed-c-button--link.ed-c-button--knockout:active{color:var(--ed-theme-link-color-content-knockout-active)}.ed-c-button--link.ed-c-button--knockout:visited{color:var(--ed-theme-link-color-content-knockout-visited)}.ed-c-button--full-width{width:100%;justify-content:center;text-align:center}.ed-c-button--loading{cursor:not-allowed}a.ed-c-button--loading{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}a.ed-c-button--loading:hover,a.ed-c-button--loading:focus,a.ed-c-button--loading:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button__spinner{display:inline-flex;align-self:center;animation:ed-c-button-spin .7s linear infinite}@media(prefers-reduced-motion:reduce){.ed-c-button__spinner{animation:none}}@keyframes ed-c-button-spin{to{transform:rotate(360deg)}}.ed-c-button--sm{font-family:var(--ed-theme-typography-button-sm-font-family);font-weight:var(--ed-theme-typography-button-sm-font-weight);font-size:var(--ed-theme-typography-button-sm-font-size);line-height:var(--ed-theme-typography-button-sm-line-height);letter-spacing:var(--ed-theme-typography-button-sm-letter-spacing);text-transform:var(--ed-theme-typography-button-sm-text-transform);--ed-button-padding-block: .5rem;--ed-button-padding-inline: 1rem;--ed-button-padding-inline-icon: .75rem}.ed-c-button--sm.ed-c-button--bare{padding:0}.ed-c-button--lg{font-family:var(--ed-theme-typography-button-lg-font-family);font-weight:var(--ed-theme-typography-button-lg-font-weight);font-size:var(--ed-theme-typography-button-lg-font-size);line-height:var(--ed-theme-typography-button-lg-line-height);letter-spacing:var(--ed-theme-typography-button-lg-letter-spacing);text-transform:var(--ed-theme-typography-button-lg-text-transform);--ed-button-padding-block: 1rem;--ed-button-padding-inline: 2.25rem;--ed-button-padding-inline-icon: 1rem}.ed-c-button--lg.ed-c-button--bare{padding:0}ed-icon{--ed-icon-height: 1em;--ed-icon-width: 1em;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease);transform:var(--ed-button-icon-transform, none)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:first-child){padding-inline-start:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:last-child){padding-inline-end:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>.ed-c-button__text.ed-u-is-vishidden){padding-inline:var(--ed-button-padding-inline-icon)}';
5
5
  var v = Object.defineProperty, o = (l, e, d, i) => {
6
6
  for (var a = void 0, b = l.length - 1, u; b >= 0; b--)
@@ -0,0 +1,52 @@
1
+ import { r as i, b as l, n as s } from "./lit.EWazi_Sp.js";
2
+ import { E as m } from "./EdElement.C2CWERWn.js";
3
+ const b = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-card{display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--bare{border:0;padding:0;color:var(--ed-theme-color-content-default);box-shadow:none}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__body{display:block;padding:1rem;flex:1 0 auto}.ed-c-card--bare .ed-c-card__body{padding:0}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:1rem!important}.ed-c-card--bare .ed-c-card__footer ::slotted(*){margin:0!important}';
4
+ var h = Object.defineProperty, n = (d, r, a, f) => {
5
+ for (var e = void 0, o = d.length - 1, c; o >= 0; o--)
6
+ (c = d[o]) && (e = c(r, a, e) || e);
7
+ return e && h(r, a, e), e;
8
+ };
9
+ class t extends m {
10
+ static get styles() {
11
+ return i(b);
12
+ }
13
+ /**
14
+ * The header and footer regions render unconditionally.
15
+ *
16
+ * They were gated behind `slotNotEmpty()`, which crashes under Lit SSR
17
+ * (#1360): the server has no light DOM to inspect and no Lit SSR API exposes
18
+ * one, so the gate could only ever guess — and guessing "empty" dropped the
19
+ * author's slotted media and actions from the server-rendered markup.
20
+ *
21
+ * Rendering them always is safe because neither costs anything when empty:
22
+ * `__header` has no padding, and `__footer`'s padding moved onto its slotted
23
+ * content (see `card.scss`), so an empty region is a zero-height block. The
24
+ * server and the browser produce the same shadow tree.
25
+ */
26
+ render() {
27
+ const r = this.componentClassNames("ed-c-card", {
28
+ "ed-c-card--bare": this.variant === "bare",
29
+ "ed-c-card--align-center": this.align === "center"
30
+ });
31
+ return l`
32
+ <div class="${r}">
33
+ <div class="ed-c-card__header">
34
+ <slot name="header"></slot>
35
+ </div>
36
+ <div class="ed-c-card__body">
37
+ <slot></slot>
38
+ </div>
39
+ <div class="ed-c-card__footer">
40
+ <slot name="footer"></slot>
41
+ </div>
42
+ </div>
43
+ `;
44
+ }
45
+ }
46
+ n([
47
+ s()
48
+ ], t.prototype, "variant");
49
+ n([
50
+ s()
51
+ ], t.prototype, "align");
52
+ customElements.get("ed-card") === void 0 && customElements.define("ed-card", t);
@@ -1,51 +1,51 @@
1
- import { a as s, r as v, b as o, n as h } from "./lit.EWazi_Sp.js";
2
- import { E as m } from "./EdElement.Dqh0Nrbq.js";
3
- import "./layout-container.C8MYJcgw.js";
1
+ import { a as s, r as v, b as l, n as h } from "./lit.EWazi_Sp.js";
2
+ import { E as m } from "./EdElement.C2CWERWn.js";
3
+ import "./layout-container.D3SLP2g3.js";
4
4
  const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-header{--ed-header-color-content: var(--ed-theme-color-content-knockout);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-knockout);background:var(--ed-theme-color-background-knockout);color:var(--ed-header-color-content);position:relative;z-index:3}@media all and (min-width:60rem){.ed-c-header--vertical{inline-size:var(--ed-sidebar-width, 18rem);min-block-size:100vh}}.ed-c-header__top{position:relative;inset-block-start:0;width:100%;z-index:3}.ed-c-header__top-inner{width:100%}.ed-c-header__middle{width:100%;display:flex;align-items:center}@media all and (min-width:60rem){.ed-c-header--vertical .ed-c-header__middle{flex-direction:column;align-items:flex-start;gap:1rem}}.ed-c-header--bare{--ed-header-color-content: var(--ed-theme-color-content-default);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-default);background:transparent;color:var(--ed-header-color-content)}.ed-c-header--brand{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand);color:var(--ed-header-color-content)}.ed-c-header--brand-knockout{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand-knockout);color:var(--ed-header-color-content)}.ed-c-header--accent-1{--ed-header-color-content: var(--ed-theme-color-content-on-accent-1);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-1);background:var(--ed-theme-color-background-accent-1);color:var(--ed-header-color-content)}.ed-c-header--accent-2{--ed-header-color-content: var(--ed-theme-color-content-on-accent-2);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-2);background:var(--ed-theme-color-background-accent-2);color:var(--ed-header-color-content)}.ed-c-header--accent-3{--ed-header-color-content: var(--ed-theme-color-content-on-accent-3);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-3);background:var(--ed-theme-color-background-accent-3);color:var(--ed-header-color-content)}.ed-c-header--accent-4{--ed-header-color-content: var(--ed-theme-color-content-on-accent-4);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-4);background:var(--ed-theme-color-background-accent-4);color:var(--ed-header-color-content)}.ed-c-header--accent-5{--ed-header-color-content: var(--ed-theme-color-content-on-accent-5);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-5);background:var(--ed-theme-color-background-accent-5);color:var(--ed-header-color-content)}.ed-c-header--accent-6{--ed-header-color-content: var(--ed-theme-color-content-on-accent-6);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-6);background:var(--ed-theme-color-background-accent-6);color:var(--ed-header-color-content)}.ed-c-header--accent-7{--ed-header-color-content: var(--ed-theme-color-content-on-accent-7);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-7);background:var(--ed-theme-color-background-accent-7);color:var(--ed-header-color-content)}.ed-c-header--accent-8{--ed-header-color-content: var(--ed-theme-color-content-on-accent-8);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-8);background:var(--ed-theme-color-background-accent-8);color:var(--ed-header-color-content)}';
5
- var b = Object.defineProperty, d = (a, c, t, n) => {
6
- for (var e = void 0, l = a.length - 1, i; l >= 0; l--)
7
- (i = a[l]) && (e = i(c, t, e) || e);
8
- return e && b(c, t, e), e;
5
+ var b = Object.defineProperty, t = (d, r, c, a) => {
6
+ for (var e = void 0, n = d.length - 1, i; n >= 0; n--)
7
+ (i = d[n]) && (e = i(r, c, e) || e);
8
+ return e && b(r, c, e), e;
9
9
  };
10
- class r extends m {
10
+ class o extends m {
11
11
  static get styles() {
12
12
  return v(u);
13
13
  }
14
14
  render() {
15
- const c = this.variant ? `ed-c-header--${this.variant}` : "", t = this.componentClassNames("ed-c-header", {
15
+ const r = this.variant ? `ed-c-header--${this.variant}` : "", c = this.componentClassNames("ed-c-header", {
16
16
  "ed-is-active": this.isActive === !0,
17
17
  "ed-c-header--vertical": this.orientation === "vertical",
18
- [c]: !!this.variant
19
- }), n = o`
20
- ${this.slotNotEmpty("top") && o`<div class="ed-c-header__top">
18
+ [r]: !!this.variant
19
+ }), a = l`
20
+ <div class="ed-c-header__top">
21
21
  <slot name="top"></slot>
22
- </div>`}
22
+ </div>
23
23
  <div class="ed-c-header__middle">
24
24
  <slot></slot>
25
25
  </div>
26
- ${this.slotNotEmpty("bottom") && o`<div class="ed-c-header__bottom">
26
+ <div class="ed-c-header__bottom">
27
27
  <slot name="bottom"></slot>
28
- </div>`}
28
+ </div>
29
29
  `;
30
- return o`
31
- <header role="banner" class="${t}">
32
- ${this.fullWidth ? n : o`<ed-layout-container class="ed-c-header__layout-container">
33
- ${n}
30
+ return l`
31
+ <header role="banner" class="${c}">
32
+ ${this.fullWidth ? a : l`<ed-layout-container class="ed-c-header__layout-container">
33
+ ${a}
34
34
  </ed-layout-container>`}
35
35
  </header>
36
36
  `;
37
37
  }
38
38
  }
39
- d([
39
+ t([
40
40
  s()
41
- ], r.prototype, "isActive");
42
- d([
41
+ ], o.prototype, "isActive");
42
+ t([
43
43
  h()
44
- ], r.prototype, "variant");
45
- d([
44
+ ], o.prototype, "variant");
45
+ t([
46
46
  h({ type: Boolean })
47
- ], r.prototype, "fullWidth");
48
- d([
47
+ ], o.prototype, "fullWidth");
48
+ t([
49
49
  h()
50
- ], r.prototype, "orientation");
51
- customElements.get("ed-header") === void 0 && customElements.define("ed-header", r);
50
+ ], o.prototype, "orientation");
51
+ customElements.get("ed-header") === void 0 && customElements.define("ed-header", o);
@@ -0,0 +1,103 @@
1
+ import { r as y, b as a, n } from "./lit.EWazi_Sp.js";
2
+ import { E as p } from "./EdElement.C2CWERWn.js";
3
+ const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-heading{text-wrap:var(--ed-heading-text-wrap, balance);margin:0}.ed-c-heading--wrap-balance{--ed-heading-text-wrap: balance}.ed-c-heading--wrap-pretty{--ed-heading-text-wrap: pretty}.ed-c-heading--wrap-normal{--ed-heading-text-wrap: normal}::slotted(a){color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}::slotted(a:hover),::slotted(a:focus-visible){color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}::slotted(a:focus-visible){outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-mobile-font-family);font-weight:var(--ed-theme-typography-display-xl-mobile-font-weight);font-size:var(--ed-theme-typography-display-xl-mobile-font-size);line-height:var(--ed-theme-typography-display-xl-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-xl-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-tablet-font-family);font-weight:var(--ed-theme-typography-display-xl-tablet-font-weight);font-size:var(--ed-theme-typography-display-xl-tablet-font-size);line-height:var(--ed-theme-typography-display-xl-tablet-line-height);letter-spacing:var(--ed-theme-typography-display-xl-tablet-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-tablet-text-transform)}}@media all and (min-width:75rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-font-family);font-weight:var(--ed-theme-typography-display-xl-font-weight);font-size:var(--ed-theme-typography-display-xl-font-size);line-height:var(--ed-theme-typography-display-xl-line-height);letter-spacing:var(--ed-theme-typography-display-xl-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-text-transform)}}.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-mobile-font-family);font-weight:var(--ed-theme-typography-display-lg-mobile-font-weight);font-size:var(--ed-theme-typography-display-lg-mobile-font-size);line-height:var(--ed-theme-typography-display-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-font-family);font-weight:var(--ed-theme-typography-display-lg-font-weight);font-size:var(--ed-theme-typography-display-lg-font-size);line-height:var(--ed-theme-typography-display-lg-line-height);letter-spacing:var(--ed-theme-typography-display-lg-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-text-transform)}}.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-mobile-font-family);font-weight:var(--ed-theme-typography-display-default-mobile-font-weight);font-size:var(--ed-theme-typography-display-default-mobile-font-size);line-height:var(--ed-theme-typography-display-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-font-family);font-weight:var(--ed-theme-typography-display-default-font-weight);font-size:var(--ed-theme-typography-display-default-font-size);line-height:var(--ed-theme-typography-display-default-line-height);letter-spacing:var(--ed-theme-typography-display-default-letter-spacing);text-transform:var(--ed-theme-typography-display-default-text-transform)}}.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}.ed-c-heading--title-default{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}.ed-c-heading--title-sm{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}.ed-c-heading--label-lg{font-family:var(--ed-theme-typography-label-lg-font-family);font-weight:var(--ed-theme-typography-label-lg-font-weight);font-size:var(--ed-theme-typography-label-lg-font-size);line-height:var(--ed-theme-typography-label-lg-line-height);letter-spacing:var(--ed-theme-typography-label-lg-letter-spacing);text-transform:var(--ed-theme-typography-label-lg-text-transform)}.ed-c-heading--label-default{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform)}.ed-c-heading--label-sm{font-family:var(--ed-theme-typography-label-sm-font-family);font-weight:var(--ed-theme-typography-label-sm-font-weight);font-size:var(--ed-theme-typography-label-sm-font-size);line-height:var(--ed-theme-typography-label-sm-line-height);letter-spacing:var(--ed-theme-typography-label-sm-letter-spacing);text-transform:var(--ed-theme-typography-label-sm-text-transform)}.ed-c-heading--body-lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-heading--body-default{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform)}.ed-c-heading--body-sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-heading--meta-default{font-family:var(--ed-theme-typography-meta-default-font-family);font-weight:var(--ed-theme-typography-meta-default-font-weight);font-size:var(--ed-theme-typography-meta-default-font-size);line-height:var(--ed-theme-typography-meta-default-line-height);letter-spacing:var(--ed-theme-typography-meta-default-letter-spacing);text-transform:var(--ed-theme-typography-meta-default-text-transform)}.ed-c-heading--meta-sm{font-family:var(--ed-theme-typography-meta-sm-font-family);font-weight:var(--ed-theme-typography-meta-sm-font-weight);font-size:var(--ed-theme-typography-meta-sm-font-size);line-height:var(--ed-theme-typography-meta-sm-line-height);letter-spacing:var(--ed-theme-typography-meta-sm-letter-spacing);text-transform:var(--ed-theme-typography-meta-sm-text-transform)}', f = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading{text-wrap:var(--ed-heading-text-wrap, balance);margin:0}ed-heading[enhance]:not([variant])>h1{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance]:not([variant])>h1{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}ed-heading[enhance]:not([variant])>h2{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance]:not([variant])>h2{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}ed-heading[enhance]:not([variant])>h3{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance]:not([variant])>h3{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}ed-heading[enhance]:not([variant])>h4{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance]:not([variant])>h4{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}ed-heading[enhance]:not([variant])>h5{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}ed-heading[enhance]:not([variant])>h6{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}ed-heading[enhance][wrap=balance]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-balance{--ed-heading-text-wrap: balance}ed-heading[enhance][wrap=pretty]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-pretty{--ed-heading-text-wrap: pretty}ed-heading[enhance][wrap=normal]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-normal{--ed-heading-text-wrap: normal}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a,.ed-c-heading a{color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:hover,ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:focus-visible,.ed-c-heading a:hover,.ed-c-heading a:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:focus-visible,.ed-c-heading a:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}ed-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-mobile-font-family);font-weight:var(--ed-theme-typography-display-xl-mobile-font-weight);font-size:var(--ed-theme-typography-display-xl-mobile-font-size);line-height:var(--ed-theme-typography-display-xl-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-xl-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-tablet-font-family);font-weight:var(--ed-theme-typography-display-xl-tablet-font-weight);font-size:var(--ed-theme-typography-display-xl-tablet-font-size);line-height:var(--ed-theme-typography-display-xl-tablet-line-height);letter-spacing:var(--ed-theme-typography-display-xl-tablet-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-tablet-text-transform)}}@media all and (min-width:75rem){ed-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-font-family);font-weight:var(--ed-theme-typography-display-xl-font-weight);font-size:var(--ed-theme-typography-display-xl-font-size);line-height:var(--ed-theme-typography-display-xl-line-height);letter-spacing:var(--ed-theme-typography-display-xl-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-text-transform)}}ed-heading[enhance][variant=display-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-mobile-font-family);font-weight:var(--ed-theme-typography-display-lg-mobile-font-weight);font-size:var(--ed-theme-typography-display-lg-mobile-font-size);line-height:var(--ed-theme-typography-display-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=display-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-font-family);font-weight:var(--ed-theme-typography-display-lg-font-weight);font-size:var(--ed-theme-typography-display-lg-font-size);line-height:var(--ed-theme-typography-display-lg-line-height);letter-spacing:var(--ed-theme-typography-display-lg-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-text-transform)}}ed-heading[enhance][variant=display-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-mobile-font-family);font-weight:var(--ed-theme-typography-display-default-mobile-font-weight);font-size:var(--ed-theme-typography-display-default-mobile-font-size);line-height:var(--ed-theme-typography-display-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-default-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=display-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-font-family);font-weight:var(--ed-theme-typography-display-default-font-weight);font-size:var(--ed-theme-typography-display-default-font-size);line-height:var(--ed-theme-typography-display-default-line-height);letter-spacing:var(--ed-theme-typography-display-default-letter-spacing);text-transform:var(--ed-theme-typography-display-default-text-transform)}}ed-heading[enhance][variant=headline-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=headline-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}ed-heading[enhance][variant=headline-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=headline-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}ed-heading[enhance][variant=headline-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=headline-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}ed-heading[enhance][variant=title-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){ed-heading[enhance][variant=title-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}ed-heading[enhance][variant=title-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--title-default{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}ed-heading[enhance][variant=title-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--title-sm{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}ed-heading[enhance][variant=label-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--label-lg{font-family:var(--ed-theme-typography-label-lg-font-family);font-weight:var(--ed-theme-typography-label-lg-font-weight);font-size:var(--ed-theme-typography-label-lg-font-size);line-height:var(--ed-theme-typography-label-lg-line-height);letter-spacing:var(--ed-theme-typography-label-lg-letter-spacing);text-transform:var(--ed-theme-typography-label-lg-text-transform)}ed-heading[enhance][variant=label-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--label-default{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform)}ed-heading[enhance][variant=label-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--label-sm{font-family:var(--ed-theme-typography-label-sm-font-family);font-weight:var(--ed-theme-typography-label-sm-font-weight);font-size:var(--ed-theme-typography-label-sm-font-size);line-height:var(--ed-theme-typography-label-sm-line-height);letter-spacing:var(--ed-theme-typography-label-sm-letter-spacing);text-transform:var(--ed-theme-typography-label-sm-text-transform)}ed-heading[enhance][variant=body-lg]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--body-lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}ed-heading[enhance][variant=body-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--body-default{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform)}ed-heading[enhance][variant=body-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--body-sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}ed-heading[enhance][variant=meta-default]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--meta-default{font-family:var(--ed-theme-typography-meta-default-font-family);font-weight:var(--ed-theme-typography-meta-default-font-weight);font-size:var(--ed-theme-typography-meta-default-font-size);line-height:var(--ed-theme-typography-meta-default-line-height);letter-spacing:var(--ed-theme-typography-meta-default-letter-spacing);text-transform:var(--ed-theme-typography-meta-default-text-transform)}ed-heading[enhance][variant=meta-sm]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--meta-sm{font-family:var(--ed-theme-typography-meta-sm-font-family);font-weight:var(--ed-theme-typography-meta-sm-font-weight);font-size:var(--ed-theme-typography-meta-sm-font-size);line-height:var(--ed-theme-typography-meta-sm-line-height);letter-spacing:var(--ed-theme-typography-meta-sm-letter-spacing);text-transform:var(--ed-theme-typography-meta-sm-text-transform)}';
4
+ var s = Object.defineProperty, d = (l, e, h, o) => {
5
+ for (var t = void 0, r = l.length - 1, g; r >= 0; r--)
6
+ (g = l[r]) && (t = g(e, h, t) || t);
7
+ return t && s(e, h, t), t;
8
+ };
9
+ class i extends p {
10
+ constructor() {
11
+ super(...arguments), this.tagName = "h2";
12
+ }
13
+ static get styles() {
14
+ return y(m);
15
+ }
16
+ /**
17
+ * The modifier-class map for a heading at semantic level `level`.
18
+ *
19
+ * Shared by both authoring modes so they cannot drift: `render()` passes the
20
+ * `tagName` property, and `enhanceLightDom()` passes the author's real tag —
21
+ * which is the whole reason the level is a parameter rather than read from
22
+ * `this`. An explicit `variant` always wins; the `level` only decides the
23
+ * default when `variant` is unset.
24
+ */
25
+ headingModifiers(e) {
26
+ return {
27
+ "ed-c-heading--display-xl": this.variant === "display-xl",
28
+ "ed-c-heading--display-lg": this.variant === "display-lg",
29
+ "ed-c-heading--display-default": this.variant === "display-default",
30
+ "ed-c-heading--headline-lg": this.variant ? this.variant === "headline-lg" : e === "h1",
31
+ "ed-c-heading--headline-default": this.variant ? this.variant === "headline-default" : e === "h2",
32
+ "ed-c-heading--headline-sm": this.variant ? this.variant === "headline-sm" : e === "h3",
33
+ "ed-c-heading--title-lg": this.variant ? this.variant === "title-lg" : e === "h4",
34
+ "ed-c-heading--title-default": this.variant ? this.variant === "title-default" : e === "h5",
35
+ "ed-c-heading--title-sm": this.variant ? this.variant === "title-sm" : e === "h6",
36
+ "ed-c-heading--label-lg": this.variant === "label-lg",
37
+ "ed-c-heading--label-default": this.variant === "label-default",
38
+ "ed-c-heading--label-sm": this.variant === "label-sm",
39
+ "ed-c-heading--body-lg": this.variant === "body-lg",
40
+ "ed-c-heading--body-default": this.variant === "body-default",
41
+ "ed-c-heading--body-sm": this.variant === "body-sm",
42
+ "ed-c-heading--meta-default": this.variant === "meta-default",
43
+ "ed-c-heading--meta-sm": this.variant === "meta-sm",
44
+ "ed-c-heading--wrap-balance": this.wrap === "balance",
45
+ "ed-c-heading--wrap-pretty": this.wrap === "pretty",
46
+ "ed-c-heading--wrap-normal": this.wrap === "normal"
47
+ };
48
+ }
49
+ /**
50
+ * Enhance mode (#1484): style the author's real heading in place instead of
51
+ * rendering one into a shadow root.
52
+ *
53
+ * Authored form:
54
+ * ```html
55
+ * <ed-heading enhance variant="display-lg">
56
+ * <h1 class="p-name">How I build design systems</h1>
57
+ * </ed-heading>
58
+ * ```
59
+ *
60
+ * The point is that the `<h1>` is in the document before this component (or
61
+ * any JS) runs: it is in the accessibility tree and the heading outline with
62
+ * scripting off, and microformat and SEO parsers can read it — none of which
63
+ * is true of a heading rendered into a shadow root.
64
+ *
65
+ * `tagName` is inert here. The author's own element decides the semantic
66
+ * level, which is the entire point of the mode; this method reads that level
67
+ * to pick the default typography preset when `variant` is unset.
68
+ */
69
+ enhanceLightDom() {
70
+ this.injectGlobalStyles("ed-heading-styles", f);
71
+ const e = this.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
72
+ e && (e.classList.add("ed-c-heading"), this.styleModifier && e.classList.add(this.styleModifier), Object.entries(this.headingModifiers(e.localName)).forEach(([h, o]) => {
73
+ e.classList.toggle(h, o);
74
+ }));
75
+ }
76
+ render() {
77
+ const e = this.componentClassNames("ed-c-heading", this.headingModifiers(this.tagName));
78
+ switch (this.tagName) {
79
+ case "h1":
80
+ return a` <h1 class="${e}"><slot></slot></h1> `;
81
+ case "h2":
82
+ return a` <h2 class="${e}"><slot></slot></h2> `;
83
+ case "h3":
84
+ return a` <h3 class="${e}"><slot></slot></h3> `;
85
+ case "h4":
86
+ return a` <h4 class="${e}"><slot></slot></h4> `;
87
+ case "h5":
88
+ return a` <h5 class="${e}"><slot></slot></h5> `;
89
+ case "h6":
90
+ return a` <h6 class="${e}"><slot></slot></h6> `;
91
+ }
92
+ }
93
+ }
94
+ d([
95
+ n()
96
+ ], i.prototype, "variant");
97
+ d([
98
+ n()
99
+ ], i.prototype, "tagName");
100
+ d([
101
+ n()
102
+ ], i.prototype, "wrap");
103
+ customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", i);