@atomic-ui/blocks 0.8.0 → 0.9.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.
@@ -1,9 +1,9 @@
1
- /* @atomic-ui/blocks version 0.8.0, standalone. Load atomic-ui.js from @atomic-ui/ui first, from the same folder. */
1
+ /* @atomic-ui/blocks version 0.9.0, standalone. Load atomic-ui.js from @atomic-ui/ui first, from the same folder. */
2
2
  import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.js";import{ImpaktElement as ae,fontSize as Te,fontWeight as be,lineHeight as ot,space as b,spaceAround as gt,t as S,type as ye,iconSvg as lt}from"./atomic-ui.js";var gi=(n,t,e)=>C`<div class=${e} role="heading" aria-level=${n}>${t}</div>`,Ii=Ae`
3
3
  .h { margin: 0; color: ${S.textHeading}; font-family: ${S.fontHeading}; font-weight: ${be("bold")}; line-height: ${ot("tight")}; }
4
4
  .eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${S.brand})); ${ye("sm")} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${S.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${be("semibold")}); letter-spacing: ${S.trackingWide}; text-transform: uppercase; }
5
5
  .body { margin: 0; line-height: ${ot("normal")}; max-inline-size: 65ch; }
6
- `,ct=class extends ae{static{this.properties={eyebrow:{type:String},heading:{type:String},lead:{type:String},level:{type:Number,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},treatment:{type:String,reflect:!0},ratingText:{type:String,attribute:"rating-text"},eyebrowIcon:{type:String,attribute:"eyebrow-icon"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.eyebrow="",this.heading="",this.lead="",this.level=1,this.imageSrc="",this.imageAlt="",this.treatment="split",this.ratingText="",this.eyebrowIcon="none",this.align="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ae.styles,gt,Ii,Ae`
6
+ `,dt=class extends ae{static{this.properties={eyebrow:{type:String},heading:{type:String},lead:{type:String},level:{type:Number,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},treatment:{type:String,reflect:!0},ratingText:{type:String,attribute:"rating-text"},eyebrowIcon:{type:String,attribute:"eyebrow-icon"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.eyebrow="",this.heading="",this.lead="",this.level=1,this.imageSrc="",this.imageAlt="",this.treatment="split",this.ratingText="",this.eyebrowIcon="none",this.align="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ae.styles,gt,Ii,Ae`
7
7
  :host { display: block; container-type: inline-size; }
8
8
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: ${b(8)}; align-items: center; }
9
9
  .hero.pictured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@@ -48,7 +48,7 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
48
48
  <div class="actions"><slot name="actions"></slot></div>
49
49
  </div>
50
50
  ${t?C`<img src=${this.imageSrc} alt=${this.imageAlt} part="image" />`:G}
51
- </div>`}},dt=class extends ae{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},layout:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="three",this.headingLevel=3,this.layout="stacked",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ae.styles,gt,Ii,Ae`
51
+ </div>`}},ct=class extends ae{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},layout:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="three",this.headingLevel=3,this.layout="stacked",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ae.styles,gt,Ii,Ae`
52
52
  :host { display: block; container-type: inline-size; }
53
53
  ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${b(8)} ${b(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
54
54
  :host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@@ -109,7 +109,7 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
109
109
  <option value="">${t.placeholder||"Any"}</option>${a.map(r=>C`<option value=${r}>${r}</option>`)}
110
110
  </select></div>`})}
111
111
  <button type="submit">${this.buttonText}</button>
112
- </form>`}};customElements.define("impakt-search-bar",ut);customElements.define("impakt-announcement",mt);customElements.define("impakt-hero",ct);customElements.define("impakt-feature-list",dt);customElements.define("impakt-quote",pt);customElements.define("impakt-stat",ht);import{css as ba,html as Me,nothing as bt}from"./atomic-ui.js";import{ImpaktElement as Hi,focusRing as fa,fontSize as Ri,fontWeight as bi,lineHeight as Pi,space as Ne,spaceAround as $a,t as Q,iconSvg as ya}from"./atomic-ui.js";var ft=class extends Hi{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},ratio:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="three",this.headingLevel=3,this.ratio="4:3",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Hi.styles,fa,$a,ba`
112
+ </form>`}};customElements.define("impakt-search-bar",ut);customElements.define("impakt-announcement",mt);customElements.define("impakt-hero",dt);customElements.define("impakt-feature-list",ct);customElements.define("impakt-quote",pt);customElements.define("impakt-stat",ht);import{css as ba,html as Me,nothing as bt}from"./atomic-ui.js";import{ImpaktElement as Hi,focusRing as fa,fontSize as Ri,fontWeight as bi,lineHeight as Pi,space as Ne,spaceAround as $a,t as Q,iconSvg as ya}from"./atomic-ui.js";var ft=class extends Hi{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},ratio:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="three",this.headingLevel=3,this.ratio="4:3",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Hi.styles,fa,$a,ba`
113
113
  :host { display: block; container-type: inline-size; --ratio: 4 / 3; }
114
114
  :host([ratio='16:9']) { --ratio: 16 / 9; }
115
115
  :host([ratio='3:2']) { --ratio: 3 / 2; }
@@ -141,7 +141,7 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
141
141
  </li>`)}</ul>`}};customElements.define("impakt-card-grid",ft);import{css as xa,html as Le,nothing as va}from"./atomic-ui.js";import{ImpaktElement as Ni,focusRing as ka,fontSize as Xe,fontWeight as $t,space as Ve,t as q,token as ji}from"./atomic-ui.js";var Oi=["note","wireframe","component","code","live"],fi=n=>Oi.includes(n),wa=Le`<svg class="arrow" viewBox="0 0 20 12" width="20" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false">
142
142
  <path d="M0 6h18M13 1l5 5-5 5" />
143
143
  </svg>`,yt=class extends Ni{static{this.properties={stage:{type:String,reflect:!0},label:{type:String},href:{type:String},decorative:{type:Boolean,reflect:!0},track:{type:String},code:{type:Array}}}constructor(){super(),this.stage="live",this.label="",this.href="",this.decorative=!1,this.track="",this.code={}}static{this.styles=[...Ni.styles,ka,xa`
144
- :host { display: block; inline-size: min(100%, 26rem); --impakt-journey-accent: ${ji("color.accent.default","#e2cc40")}; --impakt-journey-on-accent: ${ji("color.accent.on","#1a1a1a")}; --impakt-journey-ease: cubic-bezier(0.65, 0, 0.35, 1); --impakt-journey-time: 600ms; }
144
+ :host { display: block; inline-size: min(100%, 26rem); --impakt-journey-accent: ${ji("color.accent.default","#ffd43b")}; --impakt-journey-on-accent: ${ji("color.accent.on","#1a1a1a")}; --impakt-journey-ease: cubic-bezier(0.65, 0, 0.35, 1); --impakt-journey-time: 600ms; }
145
145
  .frame { position: relative; block-size: 15rem; }
146
146
  /* Each plate is one stage's shape. Only its opacity and transform ever change. */
147
147
  .plate { position: absolute; box-sizing: border-box; opacity: 0; pointer-events: none; transition: opacity var(--impakt-journey-time) var(--impakt-journey-ease), transform var(--impakt-journey-time) var(--impakt-journey-ease); }
@@ -195,25 +195,25 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
195
195
  <span class="plate window" aria-hidden="true"><span class="before">${this.lines(this.code?.before,3)}</span><span></span><span class="after">${this.lines(this.code?.after,2)}</span></span>
196
196
  <span class="plate marks" aria-hidden="true"></span>
197
197
  ${this.decorative||!this.href?Le`<span class="words" part="button">${t}</span>`:Le`<a class="words" part="button" href=${this.href}>${t}</a>`}
198
- </div>`}};customElements.define("impakt-journey-button",yt);import{css as Ee,html as k,nothing as U}from"./atomic-ui.js";import{ImpaktElement as J,focusRing as $i,fontSize as _,fontWeight as re,lineHeight as At,lockScroll as Sa,space as z,spaceAround as Mt,t as c,token as Qe,unlockScroll as Fi}from"./atomic-ui.js";var za=k`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
198
+ </div>`}};customElements.define("impakt-journey-button",yt);import{css as Ee,html as k,nothing as U}from"./atomic-ui.js";import{ImpaktElement as J,focusRing as $i,fontSize as _,fontWeight as re,lineHeight as At,lockScroll as Sa,space as z,spaceAround as Mt,t as d,token as Qe,unlockScroll as Fi}from"./atomic-ui.js";var za=k`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
199
199
  <path d="M5 17 17 5M8 5h9v9" />
200
200
  </svg>`,xt=class extends J{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},start:{type:Number},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.headingLevel=3,this.start=1,this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...J.styles,$i,Mt,Ee`
201
201
  :host { display: block; container: impakt-work-list / inline-size; }
202
- ol { list-style: none; margin: 0; padding: 0; border-block-start: ${c.borderThin} solid ${c.text}; }
203
- li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; column-gap: ${z(6)}; padding: ${z(5)} ${z(8)}; border-block-end: ${c.borderThin} solid ${c.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
204
- .number { font-family: ${c.fontMono}; font-size: ${_("sm")}; font-variant-numeric: tabular-nums; color: ${c.textMuted}; }
205
- .name { font-family: ${c.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${c.text}; overflow-wrap: anywhere; }
202
+ ol { list-style: none; margin: 0; padding: 0; border-block-start: ${d.borderThin} solid ${d.text}; }
203
+ li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; column-gap: ${z(6)}; padding: ${z(5)} ${z(8)}; border-block-end: ${d.borderThin} solid ${d.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
204
+ .number { font-family: ${d.fontMono}; font-size: ${_("sm")}; font-variant-numeric: tabular-nums; color: ${d.textMuted}; }
205
+ .name { font-family: ${d.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${d.text}; overflow-wrap: anywhere; }
206
206
  .name a { color: inherit; text-decoration: none; }
207
207
  /* The link is stretched over the row, so the row is one target. */
208
208
  .name a::after { content: ''; position: absolute; inset: 0; }
209
209
  .name a:focus-visible { outline: none; }
210
- .name a:focus-visible::after { box-shadow: ${c.focusShadow}; }
211
- .meta { font-family: ${c.fontMono}; font-size: ${_("sm")}; letter-spacing: ${c.trackingWide}; text-transform: uppercase; color: ${c.textMuted}; }
212
- .arrow { display: flex; color: ${c.text}; }
210
+ .name a:focus-visible::after { box-shadow: ${d.focusShadow}; }
211
+ .meta { font-family: ${d.fontMono}; font-size: ${_("sm")}; letter-spacing: ${d.trackingWide}; text-transform: uppercase; color: ${d.textMuted}; }
212
+ .arrow { display: flex; color: ${d.text}; }
213
213
  /* 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. */
214
- li:has(a):hover, li:has(a:focus-visible) { background: ${c.text}; }
215
- li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${c.surfaceCard}; }
216
- li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${c.surfaceCard} 78%, ${c.text}); }
214
+ li:has(a):hover, li:has(a:focus-visible) { background: ${d.text}; }
215
+ li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${d.surfaceCard}; }
216
+ li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${d.surfaceCard} 78%, ${d.text}); }
217
217
  li:has(a):hover .arrow, li:has(a:focus-visible) .arrow { color: ${Qe("color.accent.default","currentColor")}; }
218
218
  @container impakt-work-list (max-width: 40rem) {
219
219
  li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${z(3)}; padding-inline: ${z(4)}; }
@@ -236,11 +236,11 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
236
236
  </ol>`}},vt=class extends J{static{this.properties={items:{type:Array},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...J.styles,Mt,Ee`
237
237
  :host { display: block; container: impakt-stat-row / inline-size; }
238
238
  ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: ${z(6)}; }
239
- li { border-block-start: ${c.borderThin} solid ${c.rule}; padding-block-start: ${z(5)}; }
239
+ li { border-block-start: ${d.borderThin} solid ${d.rule}; padding-block-start: ${z(5)}; }
240
240
  p { margin: 0; display: flex; flex-direction: column; gap: ${z(2)}; }
241
- .value { font-family: ${c.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${c.textHeading}; }
242
- .label { font-size: ${_("sm")}; line-height: ${At("normal")}; color: ${c.textMuted}; }
243
- .note { font-size: ${_("sm")}; color: ${c.textMuted}; }
241
+ .value { font-family: ${d.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${d.textHeading}; }
242
+ .label { font-size: ${_("sm")}; line-height: ${At("normal")}; color: ${d.textMuted}; }
243
+ .note { font-size: ${_("sm")}; color: ${d.textMuted}; }
244
244
  `]}render(){return k`<ul role="list" part="list" aria-label=${this.label||U}>
245
245
  ${this.items.map(t=>k`<li part="stat">
246
246
  <p><span class="value" part="value">${t.figure}</span> <span class="label" part="label">${t.label}</span>${t.note?k` <span class="note">${t.note}</span>`:U}</p>
@@ -248,10 +248,10 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
248
248
  </ul>`}},kt=class extends J{static{this.properties={eyebrow:{type:String},heading:{type:String},lead:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.eyebrow="",this.heading="",this.lead="",this.items=[],this.headingLevel=2,this.open=[],this.multiple=!0,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...J.styles,Mt,Ee`
249
249
  :host { display: block; container: impakt-faq / inline-size; }
250
250
  .head { display: flex; flex-direction: column; gap: ${z(4)}; margin-block-end: ${z(10)}; max-inline-size: 44rem; }
251
- .eyebrow { margin: 0; font-family: ${c.fontEyebrow}; font-size: ${_("sm")}; color: var(--impakt-eyebrow, ${c.textMuted}); }
252
- .heading { font-family: ${c.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${re("semibold")}; line-height: 1.04; letter-spacing: -0.04em; color: ${c.textHeading}; }
253
- .lead { margin: 0; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${c.textMuted}; }
254
- impakt-accordion { border-block-start: ${c.borderThin} solid ${c.rule}; }
251
+ .eyebrow { margin: 0; font-family: ${d.fontEyebrow}; font-size: ${_("sm")}; color: var(--impakt-eyebrow, ${d.textMuted}); }
252
+ .heading { font-family: ${d.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${re("semibold")}; line-height: 1.04; letter-spacing: -0.04em; color: ${d.textHeading}; }
253
+ .lead { margin: 0; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${d.textMuted}; }
254
+ impakt-accordion { border-block-start: ${d.borderThin} solid ${d.rule}; }
255
255
  `]}render(){let t=this.id_("heading"),e=Math.min(Math.max(this.headingLevel,1),5),i=this.eyebrow||this.heading||this.lead?k`<div class="head" part="head">
256
256
  ${this.eyebrow?k`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:U}
257
257
  ${this.heading?k`<div id=${t} class="heading" part="heading" role="heading" aria-level=${e}>${this.heading}</div>`:U}
@@ -260,19 +260,19 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
260
260
  ${this.items.map(r=>k`<slot name=${`panel-${r.id}`} slot=${`panel-${r.id}`}>${r.body}</slot>`)}
261
261
  </impakt-accordion>`;return this.heading?k`<section aria-labelledby=${t}>${i}${a}</section>`:k`<div>${i}${a}</div>`}},wt=class extends J{constructor(){super();this.hasFooter=!1;this.open=!1,this.links=[],this.current="",this.brand="",this.home="/",this.label="Menu",this.closeText="Close"}static{this.properties={open:{type:Boolean,reflect:!0},links:{type:Array},current:{type:String},brand:{type:String},home:{type:String},label:{type:String},closeText:{type:String,attribute:"close-text"}}}static{this.styles=[...J.styles,$i,Ee`
262
262
  /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */
263
- :host { --impakt-menu: ${c.text}; --impakt-menu-on: ${c.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${c.surfaceCard} 78%, ${c.text}); --impakt-menu-rule: color-mix(in srgb, ${c.surfaceCard} 18%, ${c.text}); }
263
+ :host { --impakt-menu: ${d.text}; --impakt-menu-on: ${d.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${d.surfaceCard} 78%, ${d.text}); --impakt-menu-rule: color-mix(in srgb, ${d.surfaceCard} 18%, ${d.text}); }
264
264
  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); }
265
265
  dialog[open] { display: flex; }
266
266
  dialog::backdrop { background: var(--impakt-menu); }
267
- .bar { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding: ${z(2)} ${z(4)}; border-block-end: ${c.borderThin} solid var(--impakt-menu-rule); }
268
- .brand { color: inherit; text-decoration: none; font-family: ${c.fontHeading}; font-size: ${_("md")}; font-weight: ${re("semibold")}; border-radius: ${c.radiusSm}; }
269
- .close { display: inline-flex; align-items: center; gap: ${z(2)}; min-block-size: 44px; padding: 0 ${z(4)}; font: inherit; font-size: ${_("sm")}; font-weight: ${re("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${c.radius}; cursor: pointer; }
267
+ .bar { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding: ${z(2)} ${z(4)}; border-block-end: ${d.borderThin} solid var(--impakt-menu-rule); }
268
+ .brand { color: inherit; text-decoration: none; font-family: ${d.fontHeading}; font-size: ${_("md")}; font-weight: ${re("semibold")}; border-radius: ${d.radiusSm}; }
269
+ .close { display: inline-flex; align-items: center; gap: ${z(2)}; min-block-size: 44px; padding: 0 ${z(4)}; font: inherit; font-size: ${_("sm")}; font-weight: ${re("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${d.radius}; cursor: pointer; }
270
270
  nav { flex: 1; padding: ${z(6)} ${z(5)} 0; }
271
271
  ol { list-style: none; margin: 0; padding: 0; }
272
- li { border-block-end: ${c.borderThin} solid var(--impakt-menu-rule); }
273
- li a { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding-block: ${z(4)}; color: inherit; text-decoration: none; font-family: ${c.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.05em; }
272
+ li { border-block-end: ${d.borderThin} solid var(--impakt-menu-rule); }
273
+ li a { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding-block: ${z(4)}; color: inherit; text-decoration: none; font-family: ${d.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.05em; }
274
274
  li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
275
- .number { font-family: ${c.fontMono}; font-size: ${_("sm")}; font-weight: ${re("regular")}; letter-spacing: 0; color: var(--impakt-menu-muted); }
275
+ .number { font-family: ${d.fontMono}; font-size: ${_("sm")}; font-weight: ${re("regular")}; letter-spacing: 0; color: var(--impakt-menu-muted); }
276
276
  /*
277
277
  * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets
278
278
  * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).
@@ -306,12 +306,12 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
306
306
  :host { display: block; container: impakt-offer / inline-size; }
307
307
  .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${z(12)}; align-items: start; }
308
308
  .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${z(5)}; }
309
- .eyebrow { margin: 0; font-family: ${c.fontEyebrow}; font-size: ${_("sm")}; color: var(--impakt-eyebrow, ${c.textMuted}); }
310
- .heading { font-family: ${c.fontHeading}; font-size: clamp(2rem, 6cqi, 3.75rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${c.textHeading}; }
311
- .lead { margin: 0; max-inline-size: 32rem; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${c.text}; }
309
+ .eyebrow { margin: 0; font-family: ${d.fontEyebrow}; font-size: ${_("sm")}; color: var(--impakt-eyebrow, ${d.textMuted}); }
310
+ .heading { font-family: ${d.fontHeading}; font-size: clamp(2rem, 6cqi, 3.75rem); font-weight: ${re("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${d.textHeading}; }
311
+ .lead { margin: 0; max-inline-size: 32rem; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${d.text}; }
312
312
  ol { list-style: none; margin: 0; padding: 0; }
313
- li { display: flex; gap: ${z(5)}; padding-block: ${z(5)}; border-block-start: ${c.borderThin} solid ${c.text}; font-size: ${_("lg")}; font-weight: ${re("medium")}; line-height: 1.2; color: ${c.text}; }
314
- .number { flex: none; font-family: ${c.fontMono}; font-size: ${_("sm")}; font-weight: ${re("regular")}; line-height: 1.6; }
313
+ li { display: flex; gap: ${z(5)}; padding-block: ${z(5)}; border-block-start: ${d.borderThin} solid ${d.text}; font-size: ${_("lg")}; font-weight: ${re("medium")}; line-height: 1.2; color: ${d.text}; }
314
+ .number { flex: none; font-family: ${d.fontMono}; font-size: ${_("sm")}; font-weight: ${re("regular")}; line-height: 1.6; }
315
315
  @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; gap: ${z(8)}; } }
316
316
  `]}render(){let t=Math.min(Math.max(this.headingLevel,1),6);return k`<div class="offer" part="offer">
317
317
  <div class="copy">
@@ -325,16 +325,16 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
325
325
  </ol>`:U}
326
326
  </div>`}},zt=class extends J{static{this.properties={heading:{type:String},text:{type:String},meta:{type:String},href:{type:String},linkText:{type:String,attribute:"link-text"},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.heading="",this.text="",this.meta="",this.href="",this.linkText="",this.headingLevel=3}static{this.styles=[...J.styles,$i,Ee`
327
327
  :host { display: block; block-size: 100%; }
328
- article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${z(4)}; padding: ${z(6)}; background: ${c.surfaceCard}; border: ${c.borderThin} solid ${c.text}; border-radius: ${c.radius}; transition: background-color 140ms ease-out; }
329
- .meta { margin: 0; font-family: ${c.fontMono}; font-size: ${_("sm")}; letter-spacing: ${c.trackingWide}; text-transform: uppercase; color: ${c.textMuted}; }
330
- .heading { font-family: ${c.fontHeading}; font-size: ${_("xl")}; font-weight: ${re("semibold")}; line-height: 1.15; letter-spacing: -0.025em; color: ${c.text}; }
328
+ article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${z(4)}; padding: ${z(6)}; background: ${d.surfaceCard}; border: ${d.borderThin} solid ${d.text}; border-radius: ${d.radius}; transition: background-color 140ms ease-out; }
329
+ .meta { margin: 0; font-family: ${d.fontMono}; font-size: ${_("sm")}; letter-spacing: ${d.trackingWide}; text-transform: uppercase; color: ${d.textMuted}; }
330
+ .heading { font-family: ${d.fontHeading}; font-size: ${_("xl")}; font-weight: ${re("semibold")}; line-height: 1.15; letter-spacing: -0.025em; color: ${d.text}; }
331
331
  .heading a { color: inherit; text-decoration: none; }
332
332
  .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
333
333
  .heading a:focus-visible { outline: none; }
334
- .heading a:focus-visible::after { box-shadow: ${c.focusShadow}; }
334
+ .heading a:focus-visible::after { box-shadow: ${d.focusShadow}; }
335
335
  article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
336
- .text { margin: 0; font-size: ${_("sm")}; line-height: ${At("normal")}; color: ${c.textMuted}; }
337
- .more { margin-block-start: auto; font-family: ${c.fontMono}; font-size: ${_("sm")}; letter-spacing: ${c.trackingWide}; text-transform: uppercase; color: ${c.text}; }
336
+ .text { margin: 0; font-size: ${_("sm")}; line-height: ${At("normal")}; color: ${d.textMuted}; }
337
+ .more { margin-block-start: auto; font-family: ${d.fontMono}; font-size: ${_("sm")}; letter-spacing: ${d.trackingWide}; text-transform: uppercase; color: ${d.text}; }
338
338
  @media (forced-colors: active) { article { border-color: CanvasText; } }
339
339
  `]}render(){let t=Math.min(Math.max(this.headingLevel,1),6);return k`<article part="card">
340
340
  ${this.meta?k`<p class="meta" part="meta">${this.meta}</p>`:U}
@@ -342,13 +342,13 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
342
342
  ${this.text?k`<p class="text" part="text">${this.text}</p>`:U}
343
343
  ${this.linkText&&this.href?k`<span class="more" aria-hidden="true">${this.linkText} →</span>`:U}
344
344
  </article>`}},Tt=class extends J{static{this.properties={label:{type:String}}}constructor(){super(),this.label=""}static{this.styles=[...J.styles,Ee`
345
- :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${Qe("color.accent.default","#e2cc40")}; color: ${Qe("color.accent.on","#1a1a1a")}; outline: 1.5px solid ${Qe("color.accent.on","#1a1a1a")}; outline-offset: -1px; }
346
- .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${c.surfaceCard}; border: 1.5px solid ${Qe("color.accent.on","#1a1a1a")}; }
345
+ :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${Qe("color.accent.default","#ffd43b")}; color: ${Qe("color.accent.on","#1a1a1a")}; outline: 1.5px solid ${Qe("color.accent.on","#1a1a1a")}; outline-offset: -1px; }
346
+ .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${d.surfaceCard}; border: 1.5px solid ${Qe("color.accent.on","#1a1a1a")}; }
347
347
  .handle:nth-of-type(1) { inset-block-start: -4px; inset-inline-start: -4px; }
348
348
  .handle:nth-of-type(2) { inset-block-start: -4px; inset-inline-end: -4px; }
349
349
  .handle:nth-of-type(3) { inset-block-end: -4px; inset-inline-start: -4px; }
350
350
  .handle:nth-of-type(4) { inset-block-end: -4px; inset-inline-end: -4px; }
351
- .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${c.fontMono}; font-size: 0.6875rem; font-weight: ${re("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${c.surfaceCard}; background: ${c.text}; border-radius: 3px; }
351
+ .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${d.fontMono}; font-size: 0.6875rem; font-weight: ${re("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${d.surfaceCard}; background: ${d.text}; border-radius: 3px; }
352
352
  @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; } }
353
353
  `]}render(){return k`<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?k`<span class="label" part="label" aria-hidden="true">${this.label}</span>`:U}`}};customElements.define("impakt-work-list",xt);customElements.define("impakt-stat-row",vt);customElements.define("impakt-faq",kt);customElements.define("impakt-site-menu",wt);customElements.define("impakt-offer",St);customElements.define("impakt-post-card",zt);customElements.define("impakt-highlight",Tt);import{css as he,html as f,nothing as R}from"./atomic-ui.js";import{say as ee,ImpaktElement as Y,focusRing as Nt,targetSize as yi,visuallyHidden as Ta,fontWeight as pe,lineHeight as _i,space as h,spaceAround as xe,t as p,token as Aa,type as B,iconSvg as Ce}from"./atomic-ui.js";var Ma=Aa("color.accent.default","#c8a15a"),Wi=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,Di=he`
354
354
  .round { ${yi} display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; padding: 0; color: ${p.text}; background: ${p.surfaceCard}; border: ${p.borderThin} solid ${p.rule}; border-radius: 50%; box-shadow: ${p.shadowSm}; cursor: pointer; transition: box-shadow 120ms ease-in-out, background-color 120ms ease-in-out; }
@@ -716,30 +716,30 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
716
716
  ${this.nearby.length?I`<ul>${this.nearby.map(e=>I`<li><span>${e.place}</span><span>${e.distance}</span></li>`)}</ul>`:K}
717
717
  ${t?I`<a class="go" href=${t}>${this.directionsText}${Be("arrow-right","16px")}</a>`:K}
718
718
  </div>
719
- </div>`}};customElements.define("impakt-site-plan",Ot);customElements.define("impakt-mortgage-calculator",Ft);customElements.define("impakt-before-after",Wt);customElements.define("impakt-sticky-bar",qt);customElements.define("impakt-location-card",_t);import{css as je,html as $,nothing as P}from"./atomic-ui.js";import{say as M,pageLocale as Vi,ImpaktElement as se,focusRing as tt,targetSize as Ca,visuallyHidden as Ba,fontWeight as X,space as u,spaceAround as Oe,t as d,type as O}from"./atomic-ui.js";var it=je`
720
- .card { background: ${d.surfaceCard}; border-radius: ${d.radiusXl}; box-shadow: ${d.shadowSm}, 0 0 0 1px ${d.hairline}; }
721
- .h { margin: 0; font-family: ${d.fontHeading}; ${O("2xl")} font-weight: ${X("bold")}; color: ${d.textHeading}; }
722
- .btn { display: inline-flex; justify-content: center; align-items: center; min-block-size: 44px; padding: ${u(2.5)} ${u(5)}; font: inherit; font-weight: ${X("semibold")}; color: ${d.onBrand}; text-decoration: none; background: ${d.brand}; border: 0; border-radius: ${d.radiusLg}; cursor: pointer; }
723
- .btn:hover { background: ${d.brandHover}; }
724
- .btn.quiet { color: ${d.link}; background: transparent; box-shadow: inset 0 0 0 ${d.borderThin} ${d.border}; }
725
- .small { margin: 0; ${O("xs")} color: ${d.textMuted}; }
719
+ </div>`}};customElements.define("impakt-site-plan",Ot);customElements.define("impakt-mortgage-calculator",Ft);customElements.define("impakt-before-after",Wt);customElements.define("impakt-sticky-bar",qt);customElements.define("impakt-location-card",_t);import{css as je,html as $,nothing as P}from"./atomic-ui.js";import{say as M,pageLocale as Vi,ImpaktElement as se,focusRing as tt,targetSize as Ca,visuallyHidden as Ba,fontWeight as X,space as u,spaceAround as Oe,t as c,type as O}from"./atomic-ui.js";var it=je`
720
+ .card { background: ${c.surfaceCard}; border-radius: ${c.radiusXl}; box-shadow: ${c.shadowSm}, 0 0 0 1px ${c.hairline}; }
721
+ .h { margin: 0; font-family: ${c.fontHeading}; ${O("2xl")} font-weight: ${X("bold")}; color: ${c.textHeading}; }
722
+ .btn { display: inline-flex; justify-content: center; align-items: center; min-block-size: 44px; padding: ${u(2.5)} ${u(5)}; font: inherit; font-weight: ${X("semibold")}; color: ${c.onBrand}; text-decoration: none; background: ${c.brand}; border: 0; border-radius: ${c.radiusLg}; cursor: pointer; }
723
+ .btn:hover { background: ${c.brandHover}; }
724
+ .btn.quiet { color: ${c.link}; background: transparent; box-shadow: inset 0 0 0 ${c.borderThin} ${c.border}; }
725
+ .small { margin: 0; ${O("xs")} color: ${c.textMuted}; }
726
726
  .visually-hidden { ${Ba} }
727
727
  `,Ut=(n,t="GBP",e=0)=>{try{return new Intl.NumberFormat(Vi(),{style:"currency",currency:t,maximumFractionDigits:e,minimumFractionDigits:e}).format(n)}catch{return String(Math.round(n))}},Yt=class extends se{static{this.properties={heading:{type:String},plans:{type:Array},rows:{type:Array},buttonText:{type:String,attribute:"button-text"},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Compare cover",this.plans=[],this.rows=[],this.buttonText="Choose",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,tt,Ca,Oe,it,je`
728
728
  :host { display: block; container-type: inline-size; }
729
729
  .h { margin-block-end: ${u(5)}; }
730
730
  .grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: ${u(4)}; }
731
731
  .plan { position: relative; display: flex; flex-direction: column; gap: ${u(3)}; padding: ${u(6)}; }
732
- .plan.top { box-shadow: 0 0 0 2px ${d.brand}, ${d.shadowMd}; }
733
- .badge { position: absolute; inset-block-start: 0; inset-inline-start: 50%; transform: translate(-50%, -50%); padding: ${u(1)} ${u(3)}; border-radius: 999px; ${O("xs")} font-weight: ${X("bold")}; color: ${d.onBrand}; background: ${d.brand}; white-space: nowrap; }
734
- .name { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${d.text}; }
735
- .price { margin: 0; font-family: ${d.fontHeading}; ${O("3xl")} font-weight: ${X("bold")}; color: ${d.text}; }
736
- .period { ${O("sm")} font-weight: ${X("regular")}; color: ${d.textMuted}; }
737
- .note { margin: 0; ${O("sm")} color: ${d.textMuted}; }
738
- ul { flex: 1; margin: 0; padding: ${u(3)} 0 0; list-style: none; display: grid; gap: ${u(2)}; border-block-start: 1px solid ${d.rule}; align-content: start; }
732
+ .plan.top { box-shadow: 0 0 0 2px ${c.brand}, ${c.shadowMd}; }
733
+ .badge { position: absolute; inset-block-start: 0; inset-inline-start: 50%; transform: translate(-50%, -50%); padding: ${u(1)} ${u(3)}; border-radius: 999px; ${O("xs")} font-weight: ${X("bold")}; color: ${c.onBrand}; background: ${c.brand}; white-space: nowrap; }
734
+ .name { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${c.text}; }
735
+ .price { margin: 0; font-family: ${c.fontHeading}; ${O("3xl")} font-weight: ${X("bold")}; color: ${c.text}; }
736
+ .period { ${O("sm")} font-weight: ${X("regular")}; color: ${c.textMuted}; }
737
+ .note { margin: 0; ${O("sm")} color: ${c.textMuted}; }
738
+ ul { flex: 1; margin: 0; padding: ${u(3)} 0 0; list-style: none; display: grid; gap: ${u(2)}; border-block-start: 1px solid ${c.rule}; align-content: start; }
739
739
  li { display: flex; gap: ${u(2)}; ${O("sm")} }
740
- li[data-has='false'] { color: ${d.textMuted}; }
740
+ li[data-has='false'] { color: ${c.textMuted}; }
741
741
  .mark { flex-shrink: 0; inline-size: 1.25em; font-weight: ${X("bold")}; text-align: center; }
742
- li[data-has='true'] .mark { color: ${d.successText}; }
742
+ li[data-has='true'] .mark { color: ${c.successText}; }
743
743
  @container (max-width: 40rem) { .grid { grid-template-columns: minmax(0, 1fr); gap: ${u(6)}; } }
744
744
  `]}has(t,e){return t.includes.split(",").map(i=>i.trim().toLowerCase()).includes(e.label.trim().toLowerCase())}choose(t,e){this.dispatchEvent(new CustomEvent("impakt-select",{detail:{plan:t},bubbles:!0,composed:!0,cancelable:!0}))||e.preventDefault()}render(){return $`
745
745
  ${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:P}
@@ -754,17 +754,17 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
754
754
  </section>`)}
755
755
  </div>`}};function Qi(n,t){let e=/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]{6,})/.exec(n),i=t&&!/^en\b/i.test(t)?`&hl=${encodeURIComponent(t.split("-")[0])}&cc_lang_pref=${encodeURIComponent(t.split("-")[0])}`:"";if(e)return`https://www.youtube-nocookie.com/embed/${e[1]}?autoplay=1&rel=0${i}`;let a=/vimeo\.com\/(?:video\/)?(\d+)/.exec(n);return a?`https://player.vimeo.com/video/${a[1]}?autoplay=1&dnt=1`:null}var Ze=class extends se{static{this.properties={videoSrc:{type:String,attribute:"video-src"},label:{type:String},posterSrc:{type:String,attribute:"poster-src"},captionsSrc:{type:String,attribute:"captions-src"},transcriptHref:{type:String,attribute:"transcript-href"},playText:{type:String,attribute:"play-text"},ratio:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.videoSrc="",this.label="Video",this.posterSrc="",this.captionsSrc="",this.transcriptHref="",this.playText="Play video",this.ratio="16:9",this.playing=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,tt,Oe,it,je`
756
756
  :host { display: block; }
757
- .frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: ${d.radiusXl}; background: #111; }
757
+ .frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: ${c.radiusXl}; background: #111; }
758
758
  :host([ratio='4:3']) .frame { aspect-ratio: 4 / 3; }
759
759
  :host([ratio='1:1']) .frame { aspect-ratio: 1; }
760
760
  :host([ratio='9:16']) .frame { aspect-ratio: 9 / 16; max-inline-size: 420px; }
761
761
  iframe, video, img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; object-fit: cover; }
762
762
  .play { position: absolute; inset: 0; display: grid; place-items: center; inline-size: 100%; padding: 0; color: #fff; background: linear-gradient(transparent 40%, rgb(0 0 0 / 0.55)); border: 0; cursor: pointer; }
763
- .disc { display: grid; place-items: center; inline-size: 72px; block-size: 72px; border-radius: 50%; background: ${d.brand}; box-shadow: ${d.shadowLg}; }
763
+ .disc { display: grid; place-items: center; inline-size: 72px; block-size: 72px; border-radius: 50%; background: ${c.brand}; box-shadow: ${c.shadowLg}; }
764
764
  /* Held inside the frame at both edges, so loosened or long words wrap rather than run out of it (1.4.12). */
765
765
  .label { position: absolute; inset-inline: ${u(5)}; inset-block-end: ${u(4)}; ${O("lg")} font-weight: ${X("semibold")}; text-align: start; }
766
766
  .foot { margin: ${u(2)} 0 0; ${O("sm")} }
767
- .foot a { color: ${d.link}; }
767
+ .foot a { color: ${c.link}; }
768
768
  .empty { display: grid; place-items: center; block-size: 100%; color: #ccc; }
769
769
  `]}render(){let t=Qi(this.videoSrc,Vi(this)),e;return this.videoSrc?t&&this.playing?e=$`<iframe src=${t} title=${this.label} allow="autoplay; encrypted-media; picture-in-picture; fullscreen" allowfullscreen></iframe>`:t?e=$`${this.posterSrc?$`<img src=${this.posterSrc} alt="" />`:P}
770
770
  <button class="play" type="button" @click=${()=>{this.playing=!0}}>
@@ -776,12 +776,12 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
776
776
  </video>`:e=$`<div class="empty">${M("Add a video address")}</div>`,$`<div class="frame" part="frame">${e}</div>
777
777
  ${this.transcriptHref?$`<p class="foot"><a href=${this.transcriptHref}>${M("Read the transcript")}<span class="visually-hidden">${M(" of {video}",{video:this.label})}</span></a></p>`:P}`}},Xi={mortgage:{heading:"Your home may be repossessed",text:"Your home may be repossessed if you do not keep up repayments on your mortgage."},"secured-loan":{heading:"Think carefully before securing other debts against your home",text:"Your home may be repossessed if you do not keep up repayments on a mortgage or any other debt secured on it."},investment:{heading:"Capital at risk",text:"The value of investments can go down as well as up, and you may get back less than you put in."},insurance:{heading:"Important information",text:"Read the policy documents to check the cover suits your needs. Limits and exclusions apply."},custom:{heading:"",text:""}},Gt=class extends se{static{this.properties={kind:{type:String,reflect:!0},heading:{type:String},text:{type:String},firm:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.kind="mortgage",this.heading="",this.text="",this.firm="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,Oe,je`
778
778
  :host { display: block; }
779
- .box { padding: ${u(5)}; border-inline-start: 6px solid ${d.warning}; border-radius: ${d.radiusLg}; background: ${d.warningSubtle}; }
780
- :host([kind='insurance']) .box { border-color: ${d.info}; background: ${d.infoSubtle}; }
781
- strong { display: block; margin-block-end: ${u(1)}; ${O("md")} color: ${d.text}; }
782
- p { margin: 0; color: ${d.text}; }
779
+ .box { padding: ${u(5)}; border-inline-start: 6px solid ${c.warning}; border-radius: ${c.radiusLg}; background: ${c.warningSubtle}; }
780
+ :host([kind='insurance']) .box { border-color: ${c.info}; background: ${c.infoSubtle}; }
781
+ strong { display: block; margin-block-end: ${u(1)}; ${O("md")} color: ${c.text}; }
782
+ p { margin: 0; color: ${c.text}; }
783
783
  /* Muted text is proved against the card colour, not the notice's, so the firm's line is in the text colour (1.4.3). */
784
- .firm { margin-block-start: ${u(3)}; ${O("sm")} color: ${d.text}; }
784
+ .firm { margin-block-start: ${u(3)}; ${O("sm")} color: ${c.text}; }
785
785
  `]}render(){let t=Xi[this.kind]??Xi.custom,e=this.heading||(t.heading?M(t.heading):""),i=this.text||(t.text?M(t.text):"");return $`<aside class="box" part="box" aria-label=${e||M("Important information")}>
786
786
  ${e?$`<strong>${e}</strong>`:P}
787
787
  ${i?$`<p>${i}</p>`:P}
@@ -793,16 +793,16 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
793
793
  label, legend { display: block; ${O("sm")} font-weight: ${X("semibold")}; margin-block-end: ${u(1.5)}; padding: 0; }
794
794
  fieldset { margin: 0; padding: 0; border: 0; }
795
795
  .choices { display: flex; flex-wrap: wrap; gap: ${u(2)}; }
796
- .choices label { display: inline-flex; align-items: center; gap: ${u(2)}; margin: 0; padding: ${u(2)} ${u(3)}; font-weight: ${X("regular")}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; cursor: pointer; }
797
- .choices input { accent-color: ${d.brand}; }
798
- input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${u(2)} ${u(3)}; font: inherit; color: ${d.text}; background: ${d.surfaceCard}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; }
799
- .result { display: flex; flex-direction: column; justify-content: center; gap: ${u(2)}; padding: ${u(8)}; color: ${d.onBrand}; background: ${d.brand}; }
796
+ .choices label { display: inline-flex; align-items: center; gap: ${u(2)}; margin: 0; padding: ${u(2)} ${u(3)}; font-weight: ${X("regular")}; border: ${c.borderThin} solid ${c.border}; border-radius: ${c.radiusLg}; cursor: pointer; }
797
+ .choices input { accent-color: ${c.brand}; }
798
+ input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${u(2)} ${u(3)}; font: inherit; color: ${c.text}; background: ${c.surfaceCard}; border: ${c.borderThin} solid ${c.border}; border-radius: ${c.radiusLg}; }
799
+ .result { display: flex; flex-direction: column; justify-content: center; gap: ${u(2)}; padding: ${u(8)}; color: ${c.onBrand}; background: ${c.brand}; }
800
800
  .caption { margin: 0; ${O("sm")} opacity: 0.85; }
801
- output { display: block; font-family: ${d.fontHeading}; ${O("4xl")} font-weight: ${X("bold")}; }
801
+ output { display: block; font-family: ${c.fontHeading}; ${O("4xl")} font-weight: ${X("bold")}; }
802
802
  .line { margin: 0; ${O("sm")} }
803
- .foot { grid-column: 1 / -1; padding: ${u(4)} ${u(8)}; background: ${d.surfaceSubtle}; }
803
+ .foot { grid-column: 1 / -1; padding: ${u(4)} ${u(8)}; background: ${c.surfaceSubtle}; }
804
804
  /* Muted text is proved against the card colour, not this band, so the small print here is in the text colour (1.4.3). */
805
- .foot .small { color: ${d.text}; }
805
+ .foot .small { color: ${c.text}; }
806
806
  @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${u(5)}; } .foot { padding: ${u(4)} ${u(5)}; } }
807
807
  `,Xt=class extends se{static{this.properties={heading:{type:String},price:{type:Number},buyer:{type:String},smallPrint:{type:String,attribute:"small-print"},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="How much stamp duty would you pay?",this.price=385e3,this.buyer="first-time",this.smallPrint="Based on Stamp Duty Land Tax rates in England and Northern Ireland from 1 April 2025. Scotland and Wales have their own taxes. Check what you would pay on GOV.UK.",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,tt,Oe,it,Ki]}render(){let t=Ji(this.price,this.buyer),e=this.price>0?t/this.price*100:0,i=[["first-time",M("First home")],["mover",M("Moving home")],["additional",M("Second home")]];return $`<div class="card wrap" part="wrap">
808
808
  <div class="inputs">
@@ -838,14 +838,14 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
838
838
  Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",this.buttonText="Ask for a call back",this.doneText="Thanks. We\u2019ll call you at the time you chose.",this.headingLevel=2,this.sent=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,tt,Oe,it,je`
839
839
  :host { display: block; container-type: inline-size; }
840
840
  .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${u(6)}; padding: ${u(8)}; }
841
- .phone { display: inline-block; margin: ${u(3)} 0; font-family: ${d.fontHeading}; ${O("3xl")} font-weight: ${X("bold")}; color: ${d.link}; text-decoration: none; }
842
- .hours { margin: 0; white-space: pre-line; color: ${d.textMuted}; }
843
- .email { display: inline-flex; align-items: center; min-block-size: ${d.targetMin}; margin-block-start: ${u(3)}; color: ${d.link}; overflow-wrap: anywhere; }
844
- form { display: grid; gap: ${u(3)}; padding: ${u(5)}; border-radius: ${d.radiusLg}; background: ${d.surfaceInset}; }
845
- .sub { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${d.text}; }
841
+ .phone { display: inline-block; margin: ${u(3)} 0; font-family: ${c.fontHeading}; ${O("3xl")} font-weight: ${X("bold")}; color: ${c.link}; text-decoration: none; }
842
+ .hours { margin: 0; white-space: pre-line; color: ${c.textMuted}; }
843
+ .email { display: inline-flex; align-items: center; min-block-size: ${c.targetMin}; margin-block-start: ${u(3)}; color: ${c.link}; overflow-wrap: anywhere; }
844
+ form { display: grid; gap: ${u(3)}; padding: ${u(5)}; border-radius: ${c.radiusLg}; background: ${c.surfaceInset}; }
845
+ .sub { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${c.text}; }
846
846
  label { display: block; ${O("sm")} font-weight: ${X("semibold")}; margin-block-end: ${u(1)}; }
847
- input, select { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${u(2)} ${u(3)}; font: inherit; color: ${d.text}; background: ${d.surfaceCard}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; }
848
- .done { margin: 0; padding: ${u(5)}; border-radius: ${d.radiusLg}; background: ${d.successSubtle}; color: ${d.successText}; font-weight: ${X("semibold")}; }
847
+ input, select { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${u(2)} ${u(3)}; font: inherit; color: ${c.text}; background: ${c.surfaceCard}; border: ${c.borderThin} solid ${c.border}; border-radius: ${c.radiusLg}; }
848
+ .done { margin: 0; padding: ${u(5)}; border-radius: ${c.radiusLg}; background: ${c.successSubtle}; color: ${c.successText}; font-weight: ${X("semibold")}; }
849
849
  @container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); padding: ${u(5)}; } }
850
850
  `]}submit(t){t.preventDefault();let e=new FormData(t.target),i={name:String(e.get("name")??""),phone:String(e.get("phone")??""),when:String(e.get("when")??"")};this.dispatchEvent(new CustomEvent("impakt-submit",{detail:i,bubbles:!0,composed:!0})),this.sent=!0}render(){return $`<div class="card wrap" part="wrap">
851
851
  <div>
@@ -1173,7 +1173,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1173
1173
  ${this.layout==="split"?De`<div class="content" part="content"><slot></slot></div>${r}`:De`${r}<div class="content" part="content"><slot></slot></div>`}
1174
1174
  </div>
1175
1175
  ${i?zi:a}
1176
- `}};customElements.define("impakt-scene",si);import{html as ue,css as Wa}from"./atomic-ui.js";import{say as la,ImpaktElement as ca,visuallyHidden as qa,fontSize as Ai,fontWeight as da,space as ie,t as j,token as fe}from"./atomic-ui.js";var Mi={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},ni=class extends ca{constructor(){super();this.scene=null;this.onProgress=e=>{this.value=e.detail.progress};this.onInput=e=>{let i=Number(e.target.value)/1e3;this.value=i,this.scene?.seek(i)};this.label="Scene progress",this.stops=[],this.look="buttons",this.hint="",this.value=0}static{this.properties={label:{type:String},stops:{type:Array},look:{type:String,reflect:!0},hint:{type:String},value:{type:Number,state:!0}}}static{this.styles=[...ca.styles,Wa`
1176
+ `}};customElements.define("impakt-scene",si);import{html as ue,css as Wa}from"./atomic-ui.js";import{say as la,ImpaktElement as da,visuallyHidden as qa,fontSize as Ai,fontWeight as ca,space as ie,t as j,token as fe}from"./atomic-ui.js";var Mi={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},ni=class extends da{constructor(){super();this.scene=null;this.onProgress=e=>{this.value=e.detail.progress};this.onInput=e=>{let i=Number(e.target.value)/1e3;this.value=i,this.scene?.seek(i)};this.label="Scene progress",this.stops=[],this.look="buttons",this.hint="",this.value=0}static{this.properties={label:{type:String},stops:{type:Array},look:{type:String,reflect:!0},hint:{type:String},value:{type:Number,state:!0}}}static{this.styles=[...da.styles,Wa`
1177
1177
  :host {
1178
1178
  display: block;
1179
1179
  width: 100%;
@@ -1212,7 +1212,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1212
1212
  background: transparent;
1213
1213
  color: ${j.textMuted};
1214
1214
  font-size: ${Ai("xs")};
1215
- font-weight: ${da("medium")};
1215
+ font-weight: ${ca("medium")};
1216
1216
  cursor: pointer;
1217
1217
  }
1218
1218
  button[aria-current='true'] {
@@ -1238,7 +1238,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1238
1238
  .dot[data-passed] { background: var(--c); }
1239
1239
  .dot[aria-current='true'] { inline-size: 24px; block-size: 24px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
1240
1240
  .dot-label { position: absolute; inset-block-start: 30px; translate: -50% 0; white-space: nowrap; color: ${j.textMuted}; text-transform: uppercase; pointer-events: none; }
1241
- .dot-label[data-current] { color: ${j.text}; font-weight: ${da("bold")}; }
1241
+ .dot-label[data-current] { color: ${j.text}; font-weight: ${ca("bold")}; }
1242
1242
  .line input { position: absolute; inset: 0 0 auto; block-size: 30px; opacity: 0; cursor: grab; }
1243
1243
  .line input:focus-visible { opacity: 1; }
1244
1244
  .where { display: grid; gap: ${ie(2)}; justify-items: end; }
@@ -1297,7 +1297,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1297
1297
  </li>`)}
1298
1298
  </ul>`:null}
1299
1299
  </div>
1300
- `}};customElements.define("impakt-scrubber",ni);import{css as Re,html as w,nothing as ce,svg as rt}from"./atomic-ui.js";import{say as oe,ImpaktElement as ge,focusRing as _a,visuallyHidden as Da,fontSize as Ue,fontWeight as Ci,space as E,spaceAround as st,t as H,type as Ua,iconSvg as Ya,toneOf as Ei,TONE as pa}from"./atomic-ui.js";function Bi(n,t){let e=()=>{n.setAttribute("shown",""),t?.()};if(typeof IntersectionObserver!="function")return e(),()=>{};let i=new IntersectionObserver(a=>{a.some(r=>r.isIntersecting)&&(e(),i.disconnect())},{threshold:.25});return i.observe(n),()=>i.disconnect()}var ha=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,hi=Re`.mono { font-family: ${H.fontMono}; font-size: ${Ue("xs")}; letter-spacing: 0.04em; }`,Ga=(n,t,e)=>{switch(Math.min(Math.max(n||3,2),6)){case 2:return w`<h2 class=${e}>${t}</h2>`;case 4:return w`<h4 class=${e}>${t}</h4>`;case 5:return w`<h5 class=${e}>${t}</h5>`;case 6:return w`<h6 class=${e}>${t}</h6>`;default:return w`<h3 class=${e}>${t}</h3>`}},mi=Re`
1300
+ `}};customElements.define("impakt-scrubber",ni);import{css as Re,html as w,nothing as de,svg as rt}from"./atomic-ui.js";import{say as oe,ImpaktElement as ge,focusRing as _a,visuallyHidden as Da,fontSize as Ue,fontWeight as Ci,space as E,spaceAround as st,t as H,type as Ua,iconSvg as Ya,toneOf as Ei,TONE as pa}from"./atomic-ui.js";function Bi(n,t){let e=()=>{n.setAttribute("shown",""),t?.()};if(typeof IntersectionObserver!="function")return e(),()=>{};let i=new IntersectionObserver(a=>{a.some(r=>r.isIntersecting)&&(e(),i.disconnect())},{threshold:.25});return i.observe(n),()=>i.disconnect()}var ha=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,hi=Re`.mono { font-family: ${H.fontMono}; font-size: ${Ue("xs")}; letter-spacing: 0.04em; }`,Ga=(n,t,e)=>{switch(Math.min(Math.max(n||3,2),6)){case 2:return w`<h2 class=${e}>${t}</h2>`;case 4:return w`<h4 class=${e}>${t}</h4>`;case 5:return w`<h5 class=${e}>${t}</h5>`;case 6:return w`<h6 class=${e}>${t}</h6>`;default:return w`<h3 class=${e}>${t}</h3>`}},mi=Re`
1301
1301
  .h { margin: 0; color: var(--impakt-heading, ${H.textHeading}); font-family: ${H.fontHeading}; font-weight: ${Ci("bold")}; letter-spacing: ${H.trackingTight}; text-wrap: balance; }
1302
1302
  .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }
1303
1303
  .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }
@@ -1319,11 +1319,11 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1319
1319
  li[data-change='same'] { color: ${H.textMuted}; }
1320
1320
  .sign { font-weight: ${Ci("bold")}; }
1321
1321
  `]}wipe(e){let i=this.renderRoot.querySelector("impakt-before-after");if(!i)return;if(cancelAnimationFrame(this.raf),ha()){i.position=e;return}let a=i.position??Li,r=performance.now(),o=x=>x<.5?4*x*x*x:1-Math.pow(-2*x+2,3)/2,l=x=>{let v=Math.min(1,(x-r)/450);i.position=a+(e-a)*o(v),v<1&&(this.raf=requestAnimationFrame(l))};this.raf=requestAnimationFrame(l)}disconnectedCallback(){super.disconnectedCallback(),cancelAnimationFrame(this.raf)}render(){let e=this.beforeSrc&&this.afterSrc,i=this.href?w`<a href=${this.href}>${this.heading}</a>`:this.heading,a={added:"+",removed:"\u2212",same:" "},r={added:oe("Added"),removed:oe("Removed"),same:oe("Kept")};return w`<article part="card">
1322
- ${e?w`<div class="media" @pointerenter=${o=>o.pointerType==="mouse"&&this.wipe(0)} @pointerleave=${o=>o.pointerType==="mouse"&&this.wipe(Li)}><impakt-before-after .position=${Li} .beforeSrc=${this.beforeSrc} .beforeAlt=${this.beforeAlt} .afterSrc=${this.afterSrc} .afterAlt=${this.afterAlt} .beforeLabel=${oe("Before")} .afterLabel=${oe("Shipped")} .label=${oe("Compare {name} before and after",{name:this.heading})}></impakt-before-after></div>`:this.afterSrc||this.beforeSrc?w`<div class="media"><img src=${this.afterSrc||this.beforeSrc} alt=${this.afterSrc?this.afterAlt:this.beforeAlt} loading="lazy" /></div>`:ce}
1323
- ${this.label?w`<p class="meta mono">${this.label}</p>`:ce}
1324
- ${this.heading?Xa(this.headingLevel,i):ce}
1325
- ${this.text?w`<p class="body">${this.text}</p>`:ce}
1326
- ${(this.items??[]).length?w`<ul class="mono" part="diff">${this.items.map(o=>w`<li data-change=${o.change}><span class="sign" aria-hidden="true">${a[o.change]??" "}</span><span><span class="sr-only">${r[o.change]??""}: </span>${o.text}</span></li>`)}</ul>`:ce}
1322
+ ${e?w`<div class="media" @pointerenter=${o=>o.pointerType==="mouse"&&this.wipe(0)} @pointerleave=${o=>o.pointerType==="mouse"&&this.wipe(Li)}><impakt-before-after .position=${Li} .beforeSrc=${this.beforeSrc} .beforeAlt=${this.beforeAlt} .afterSrc=${this.afterSrc} .afterAlt=${this.afterAlt} .beforeLabel=${oe("Before")} .afterLabel=${oe("Shipped")} .label=${oe("Compare {name} before and after",{name:this.heading})}></impakt-before-after></div>`:this.afterSrc||this.beforeSrc?w`<div class="media"><img src=${this.afterSrc||this.beforeSrc} alt=${this.afterSrc?this.afterAlt:this.beforeAlt} loading="lazy" /></div>`:de}
1323
+ ${this.label?w`<p class="meta mono">${this.label}</p>`:de}
1324
+ ${this.heading?Xa(this.headingLevel,i):de}
1325
+ ${this.text?w`<p class="body">${this.text}</p>`:de}
1326
+ ${(this.items??[]).length?w`<ul class="mono" part="diff">${this.items.map(o=>w`<li data-change=${o.change}><span class="sign" aria-hidden="true">${a[o.change]??" "}</span><span><span class="sr-only">${r[o.change]??""}: </span>${o.text}</span></li>`)}</ul>`:de}
1327
1327
  </article>`}},li=class extends ge{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="two",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ge.styles,st,Re`
1328
1328
  :host { display: block; container-type: inline-size; }
1329
1329
  ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${E(12)} ${E(10)}; }
@@ -1334,7 +1334,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1334
1334
  .label=${i.label??""} .heading=${a} .text=${i.text??""} .href=${i.href??""}
1335
1335
  .beforeSrc=${i.beforeSrc??""} .beforeAlt=${i.beforeAlt||oe("{name} as a wireframe",{name:a})}
1336
1336
  .afterSrc=${i.afterSrc??""} .afterAlt=${i.afterAlt||oe("{name} as it shipped",{name:a})}
1337
- .items=${i.items??[]} .headingLevel=${this.headingLevel}></impakt-release-card></li>`})}</ul>`}},Li=42;function Xa(n,t){let e=Math.min(Math.max(n||3,2),6);return e===2?w`<h2 class="h">${t}</h2>`:e===4?w`<h4 class="h">${t}</h4>`:e===5?w`<h5 class="h">${t}</h5>`:e===6?w`<h6 class="h">${t}</h6>`:w`<h3 class="h">${t}</h3>`}var ci=class extends ge{constructor(){super();this.unwatch=()=>{};this.items=[],this.trunk="",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},trunk:{type:String},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ge.styles,st,hi,mi,Re`
1337
+ .items=${i.items??[]} .headingLevel=${this.headingLevel}></impakt-release-card></li>`})}</ul>`}},Li=42;function Xa(n,t){let e=Math.min(Math.max(n||3,2),6);return e===2?w`<h2 class="h">${t}</h2>`:e===4?w`<h4 class="h">${t}</h4>`:e===5?w`<h5 class="h">${t}</h5>`:e===6?w`<h6 class="h">${t}</h6>`:w`<h3 class="h">${t}</h3>`}var di=class extends ge{constructor(){super();this.unwatch=()=>{};this.items=[],this.trunk="",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},trunk:{type:String},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ge.styles,st,hi,mi,Re`
1338
1338
  :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }
1339
1339
  ul { list-style: none; margin: 0; padding: 0; position: relative; }
1340
1340
  ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }
@@ -1370,17 +1370,17 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1370
1370
  </svg>`;return w`<ul part="list">${(this.items??[]).map((i,a)=>w`<li part="item" style=${`--i:${a}`}>
1371
1371
  <div class="graph">${e(Ei(i.tone,a))}</div>
1372
1372
  <div>
1373
- ${i.path?w`<p class="path mono">${i.path}</p>`:ce}
1373
+ ${i.path?w`<p class="path mono">${i.path}</p>`:de}
1374
1374
  <div class="row">
1375
1375
  ${Ga(this.headingLevel,i.href?w`<a href=${i.href}>${i.heading}</a>`:i.heading,"h")}
1376
1376
  <div class="detail">
1377
- ${i.text?w`<p class="body">${i.text}</p>`:ce}
1378
- ${i.tags?.length?w`<p class="tags mono">${i.tags.join(" \xB7 ")}</p>`:ce}
1377
+ ${i.text?w`<p class="body">${i.text}</p>`:de}
1378
+ ${i.tags?.length?w`<p class="tags mono">${i.tags.join(" \xB7 ")}</p>`:de}
1379
1379
  </div>
1380
1380
  </div>
1381
1381
  </div>
1382
1382
  </li>`)}</ul>
1383
- ${this.trunk?w`<p class="end mono" part="trunk">${this.trunk}</p>`:ce}`}},di=class extends ge{constructor(){super();this.unwatch=()=>{};this.counted=null;this.items=[],this.summary="",this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},summary:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ge.styles,st,hi,mi,Re`
1383
+ ${this.trunk?w`<p class="end mono" part="trunk">${this.trunk}</p>`:de}`}},ci=class extends ge{constructor(){super();this.unwatch=()=>{};this.counted=null;this.items=[],this.summary="",this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},summary:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ge.styles,st,hi,mi,Re`
1384
1384
  :host { display: block; container-type: inline-size; }
1385
1385
  .summary { display: inline-flex; align-items: center; gap: ${E(2)}; margin: 0 0 ${E(6)}; padding: ${E(1)} ${E(3)}; border-radius: ${H.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
1386
1386
  .summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${H.success}; }
@@ -1404,7 +1404,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1404
1404
  .label, .status { grid-column: 2; }
1405
1405
  .figure { font-size: ${Ue("4xl")}; }
1406
1406
  }
1407
- `]}connectedCallback(){super.connectedCallback(),this.unwatch=Bi(this,()=>this.run())}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}run(){if(ha())return;let e=this.items??[],i=performance.now(),a=r=>{this.counted=e.map((o,l)=>Math.min(1,Math.max(0,(r-i-l*150)/1200))),this.requestUpdate(),this.counted.some(o=>o<1)?requestAnimationFrame(a):this.counted=null};requestAnimationFrame(a)}render(){let e=(i,a)=>{let r=this.counted?.[a],o=/^(\d+)(.*)$/.exec(i);if(r===void 0||r>=1||!o)return w`${i}`;let l=1-Math.pow(1-r,3);return w`<span aria-hidden="true">${Math.round(Number(o[1])*l)}${o[2]}</span><span class="sr-only">${i}</span>`};return w`${this.summary?w`<p class="summary mono" part="summary">${this.summary}</p>`:ce}
1407
+ `]}connectedCallback(){super.connectedCallback(),this.unwatch=Bi(this,()=>this.run())}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}run(){if(ha())return;let e=this.items??[],i=performance.now(),a=r=>{this.counted=e.map((o,l)=>Math.min(1,Math.max(0,(r-i-l*150)/1200))),this.requestUpdate(),this.counted.some(o=>o<1)?requestAnimationFrame(a):this.counted=null};requestAnimationFrame(a)}render(){let e=(i,a)=>{let r=this.counted?.[a],o=/^(\d+)(.*)$/.exec(i);if(r===void 0||r>=1||!o)return w`${i}`;let l=1-Math.pow(1-r,3);return w`<span aria-hidden="true">${Math.round(Number(o[1])*l)}${o[2]}</span><span class="sr-only">${i}</span>`};return w`${this.summary?w`<p class="summary mono" part="summary">${this.summary}</p>`:de}
1408
1408
  <ul part="list">${(this.items??[]).map((i,a)=>w`<li part="item" style=${`--i:${a}`}>
1409
1409
  <span class="tick" aria-hidden="true">${Ya("check","16px")}</span>
1410
1410
  <p class="figure">${e(i.figure,a)}</p>
@@ -1428,18 +1428,18 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1428
1428
  <svg viewBox="0 0 ${1200} ${v}" role="img" aria-label=${`${ua}. ${ga}${this.release?`. ${oe("{name} at {unit} {at}",{name:this.release,unit:ui,at:this.releaseAt})}`:""}`}>
1429
1429
  <line x1=${24} y1=${g} x2=${1180} y2=${g} stroke="currentColor" stroke-width="3" stroke-linecap="round" />
1430
1430
  <path d="M${1168} ${g-7} L${1180} ${g} L${1168} ${g+7}" fill="none" stroke="currentColor" stroke-width="3" />
1431
- ${l.map((A,V)=>{let Pe=Ei(A.tone,V),de=Se(V),ze=o(A.from),Ye=o(A.to),Ge=Math.min(36,(Ye-ze)/3);return rt`<g>
1432
- <path d="M${ze} ${g} C${ze} ${(g+de)/2} ${ze+Ge} ${de} ${ze+Ge*1.6} ${de} L${Ye-Ge*1.6} ${de} C${Ye-Ge} ${de} ${Ye} ${(g+de)/2} ${Ye} ${g}" fill="none" stroke=${Pe} stroke-width="3" />
1431
+ ${l.map((A,V)=>{let Pe=Ei(A.tone,V),ce=Se(V),ze=o(A.from),Ye=o(A.to),Ge=Math.min(36,(Ye-ze)/3);return rt`<g>
1432
+ <path d="M${ze} ${g} C${ze} ${(g+ce)/2} ${ze+Ge} ${ce} ${ze+Ge*1.6} ${ce} L${Ye-Ge*1.6} ${ce} C${Ye-Ge} ${ce} ${Ye} ${(g+ce)/2} ${Ye} ${g}" fill="none" stroke=${Pe} stroke-width="3" />
1433
1433
  <circle cx=${ze} cy=${g} r="7" fill=${Pe} />
1434
- <text x=${ze+Ge*1.6} y=${ma(V)?de-10:de+20} class="halo" style=${`fill:${Pe}`}>${A.label}</text>
1434
+ <text x=${ze+Ge*1.6} y=${ma(V)?ce-10:ce+20} class="halo" style=${`fill:${Pe}`}>${A.label}</text>
1435
1435
  </g>`})}
1436
- ${(this.marks??[]).map(A=>{let V=nt(A.at),Pe=V>=0?Se(V):g,de=V>=0?Ei(l[V].tone,V):"currentColor";return rt`<g><circle cx=${o(A.at)} cy=${Pe} r="6" fill="var(--impakt-color-surface-card, #fff)" stroke=${de} stroke-width="3" /><text x=${o(A.at)} y=${Pe+22} text-anchor="middle" class="faint">${A.label}</text></g>`})}
1436
+ ${(this.marks??[]).map(A=>{let V=nt(A.at),Pe=V>=0?Se(V):g,ce=V>=0?Ei(l[V].tone,V):"currentColor";return rt`<g><circle cx=${o(A.at)} cy=${Pe} r="6" fill="var(--impakt-color-surface-card, #fff)" stroke=${ce} stroke-width="3" /><text x=${o(A.at)} y=${Pe+22} text-anchor="middle" class="faint">${A.label}</text></g>`})}
1437
1437
  ${this.release?rt`<g>
1438
1438
  <circle cx=${o(this.releaseAt)} cy=${g} r="10" fill=${pa.success} />
1439
1439
  <rect x=${o(this.releaseAt)-8} y=${g-36} rx="4" width=${this.release.length*7.6+16} height="22" fill=${pa.success} />
1440
1440
  <text x=${o(this.releaseAt)} y=${g-21} style="fill:var(--impakt-color-surface-card, #fff)">${this.release}</text>
1441
- </g>`:ce}
1441
+ </g>`:de}
1442
1442
  ${$e.map(A=>rt`<text x=${o(A)} y=${v-10} text-anchor="middle" class="faint">${ui} ${A}</text>`)}
1443
1443
  </svg>
1444
- </figure>`}};customElements.define("impakt-release-card",oi);customElements.define("impakt-release-list",li);customElements.define("impakt-branch-list",ci);customElements.define("impakt-check-list",di);customElements.define("impakt-branch-timeline",pi);export{Vt as ImpaktAffordabilityCalculator,mt as ImpaktAnnouncement,Wt as ImpaktBeforeAfter,ci as ImpaktBranchList,pi as ImpaktBranchTimeline,ft as ImpaktCardGrid,Lt as ImpaktCarousel,di as ImpaktCheckList,et as ImpaktContactBlock,Ht as ImpaktCtaBanner,Zt as ImpaktEstimator,kt as ImpaktFaq,dt as ImpaktFeatureList,Et as ImpaktGallery,ct as ImpaktHero,Tt as ImpaktHighlight,yt as ImpaktJourneyButton,_t as ImpaktLocationCard,Ct as ImpaktLogoCloud,It as ImpaktMediaSplit,Ft as ImpaktMortgageCalculator,Pt as ImpaktNewsletter,St as ImpaktOffer,Yt as ImpaktPlanComparison,zt as ImpaktPostCard,pt as ImpaktQuote,Gt as ImpaktRegulatoryNotice,oi as ImpaktReleaseCard,li as ImpaktReleaseList,Rt as ImpaktReviews,si as ImpaktScene,ni as ImpaktScrubber,ut as ImpaktSearchBar,ii as ImpaktSiteFooter,ei as ImpaktSiteHeader,wt as ImpaktSiteMenu,Ot as ImpaktSitePlan,Xt as ImpaktStampDutyCalculator,ht as ImpaktStat,vt as ImpaktStatRow,Bt as ImpaktSteps,qt as ImpaktStickyBar,Ze as ImpaktVideo,ti as ImpaktWordmark,xt as ImpaktWorkList,Oi as JOURNEY_STAGES,ke as SDLT,Qi as embedOf,Kt as estimate,Ui as gallerySpan,Gi as monthlyPayment,sa as phaseWeeks,Ji as stampDuty};
1444
+ </figure>`}};customElements.define("impakt-release-card",oi);customElements.define("impakt-release-list",li);customElements.define("impakt-branch-list",di);customElements.define("impakt-check-list",ci);customElements.define("impakt-branch-timeline",pi);export{Vt as ImpaktAffordabilityCalculator,mt as ImpaktAnnouncement,Wt as ImpaktBeforeAfter,di as ImpaktBranchList,pi as ImpaktBranchTimeline,ft as ImpaktCardGrid,Lt as ImpaktCarousel,ci as ImpaktCheckList,et as ImpaktContactBlock,Ht as ImpaktCtaBanner,Zt as ImpaktEstimator,kt as ImpaktFaq,ct as ImpaktFeatureList,Et as ImpaktGallery,dt as ImpaktHero,Tt as ImpaktHighlight,yt as ImpaktJourneyButton,_t as ImpaktLocationCard,Ct as ImpaktLogoCloud,It as ImpaktMediaSplit,Ft as ImpaktMortgageCalculator,Pt as ImpaktNewsletter,St as ImpaktOffer,Yt as ImpaktPlanComparison,zt as ImpaktPostCard,pt as ImpaktQuote,Gt as ImpaktRegulatoryNotice,oi as ImpaktReleaseCard,li as ImpaktReleaseList,Rt as ImpaktReviews,si as ImpaktScene,ni as ImpaktScrubber,ut as ImpaktSearchBar,ii as ImpaktSiteFooter,ei as ImpaktSiteHeader,wt as ImpaktSiteMenu,Ot as ImpaktSitePlan,Xt as ImpaktStampDutyCalculator,ht as ImpaktStat,vt as ImpaktStatRow,Bt as ImpaktSteps,qt as ImpaktStickyBar,Ze as ImpaktVideo,ti as ImpaktWordmark,xt as ImpaktWorkList,Oi as JOURNEY_STAGES,ke as SDLT,Qi as embedOf,Kt as estimate,Ui as gallerySpan,Gi as monthlyPayment,sa as phaseWeeks,Ji as stampDuty};
1445
1445
  //# sourceMappingURL=atomic-ui-blocks.js.map