@atomic-ui/blocks 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CPOCQURG.js → chunk-LJ6AQO26.js} +8 -1
- package/dist/chunk-LJ6AQO26.js.map +1 -0
- package/dist/{chunk-PTQDYIC5.js → chunk-QGVIJNTD.js} +2 -2
- package/dist/{chunk-PTQDYIC5.js.map → chunk-QGVIJNTD.js.map} +1 -1
- package/dist/{chunk-YMSFOS3H.js → chunk-SOFMXF32.js} +2 -2
- package/dist/{chunk-YMSFOS3H.js.map → chunk-SOFMXF32.js.map} +1 -1
- package/dist/components/journey.js +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/studio.js +1 -1
- package/dist/index.js +3 -3
- package/dist/standalone/atomic-ui-blocks.js +168 -161
- package/dist/standalone/atomic-ui-blocks.js.map +2 -2
- package/package.json +10 -7
- package/dist/chunk-CPOCQURG.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* @atomic-ui/blocks version 0.
|
|
1
|
+
/* @atomic-ui/blocks version 0.10.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
|
-
`,
|
|
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>`}},
|
|
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",
|
|
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","#
|
|
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
|
|
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: ${
|
|
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: ${
|
|
204
|
-
.number { font-family: ${
|
|
205
|
-
.name { font-family: ${
|
|
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: ${
|
|
211
|
-
.meta { font-family: ${
|
|
212
|
-
.arrow { display: flex; color: ${
|
|
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: ${
|
|
215
|
-
li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${
|
|
216
|
-
li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${
|
|
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: ${
|
|
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: ${
|
|
242
|
-
.label { font-size: ${_("sm")}; line-height: ${At("normal")}; color: ${
|
|
243
|
-
.note { font-size: ${_("sm")}; color: ${
|
|
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: ${
|
|
252
|
-
.heading { font-family: ${
|
|
253
|
-
.lead { margin: 0; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${
|
|
254
|
-
impakt-accordion { border-block-start: ${
|
|
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: ${
|
|
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: ${
|
|
268
|
-
.brand { color: inherit; text-decoration: none; font-family: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
310
|
-
.heading { font-family: ${
|
|
311
|
-
.lead { margin: 0; max-inline-size: 32rem; font-size: ${_("md")}; line-height: ${At("normal")}; color: ${
|
|
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: ${
|
|
314
|
-
.number { flex: none; font-family: ${
|
|
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: ${
|
|
329
|
-
.meta { margin: 0; font-family: ${
|
|
330
|
-
.heading { font-family: ${
|
|
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: ${
|
|
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: ${
|
|
337
|
-
.more { margin-block-start: auto; font-family: ${
|
|
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,15 +342,15 @@ 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","#
|
|
346
|
-
.handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${
|
|
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: ${
|
|
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
|
-
`]}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
|
|
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 P}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; }
|
|
355
355
|
.round:hover:not(:disabled) { box-shadow: ${p.shadowMd}; }
|
|
356
356
|
.round:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
|
|
@@ -382,9 +382,9 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
382
382
|
@mouseenter=${()=>this.hold(!0)} @mouseleave=${()=>this.hold(!1)} @focusin=${()=>this.hold(!0)} @focusout=${()=>this.hold(!1)}>
|
|
383
383
|
<div class="track" part="track" tabindex="0" @scroll=${this.onScroll}><slot @slotchange=${this.onSlots}></slot></div>
|
|
384
384
|
<div class="controls" part="controls">
|
|
385
|
-
<div class="dots">${e.length>1?e.map(i=>f`<button class="dot" type="button" aria-label=${ee("Go to slide {slide}",{slide:i+1})} aria-current=${i===this.index?"true":"false"} @click=${()=>this.go(i)}><span></span></button>`):
|
|
385
|
+
<div class="dots">${e.length>1?e.map(i=>f`<button class="dot" type="button" aria-label=${ee("Go to slide {slide}",{slide:i+1})} aria-current=${i===this.index?"true":"false"} @click=${()=>this.go(i)}><span></span></button>`):P}</div>
|
|
386
386
|
<div class="buttons">
|
|
387
|
-
${this.canPlay?f`<button class="round" type="button" aria-label=${ee(this.paused?"Play the slides":"Pause the slides")} @click=${this.togglePause}>${this.paused?Ce("arrow-right","18px"):f`<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="5" width="4" height="14" rx="1"/><rect x="14" y="5" width="4" height="14" rx="1"/></svg>`}</button>`:
|
|
387
|
+
${this.canPlay?f`<button class="round" type="button" aria-label=${ee(this.paused?"Play the slides":"Pause the slides")} @click=${this.togglePause}>${this.paused?Ce("arrow-right","18px"):f`<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="5" width="4" height="14" rx="1"/><rect x="14" y="5" width="4" height="14" rx="1"/></svg>`}</button>`:P}
|
|
388
388
|
<button class="round" type="button" aria-label=${ee("Previous slide")} ?disabled=${this.index===0} @click=${()=>this.go(this.index-1)}>${Ce("arrow-left","18px")}</button>
|
|
389
389
|
<button class="round" type="button" aria-label=${ee("Next slide")} ?disabled=${this.index>=this.last} @click=${()=>this.go(this.index+1)}>${Ce("arrow-right","18px")}</button>
|
|
390
390
|
</div>
|
|
@@ -420,7 +420,7 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
420
420
|
<button class="round" type="button" aria-label=${ee("Next picture")} @click=${()=>this.step(1)}>${Ce("arrow-right","18px")}</button>
|
|
421
421
|
</div>
|
|
422
422
|
<p class="caption">${i.caption??i.alt}</p>
|
|
423
|
-
</div>`:
|
|
423
|
+
</div>`:P}
|
|
424
424
|
</dialog>`}},Ct=class extends Y{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="",this.items=[],this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Y.styles,Nt,xe,he`
|
|
425
425
|
:host { display: block; }
|
|
426
426
|
p { margin: 0 0 ${h(6)}; text-align: center; color: ${p.textMuted}; ${B("sm")} font-weight: ${pe("medium")}; }
|
|
@@ -428,7 +428,7 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
428
428
|
img { display: block; block-size: 40px; inline-size: auto; max-inline-size: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 200ms ease-in-out, opacity 200ms ease-in-out; }
|
|
429
429
|
li:hover img { filter: none; opacity: 1; }
|
|
430
430
|
a { display: block; border-radius: ${p.radiusSm}; }
|
|
431
|
-
`]}render(){return f`${this.heading?f`<p part="heading">${this.heading}</p>`:
|
|
431
|
+
`]}render(){return f`${this.heading?f`<p part="heading">${this.heading}</p>`:P}
|
|
432
432
|
<ul part="list">${(this.items??[]).map(t=>f`<li>${t.href?f`<a href=${t.href}><img src=${t.src} alt=${t.alt} /></a>`:f`<img src=${t.src} alt=${t.alt} />`}</li>`)}</ul>`}},Bt=class extends Y{static{this.properties={items:{type:Array},orientation:{type:String,reflect:!0},look:{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.orientation="horizontal",this.look="numbered",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Y.styles,xe,jt,he`
|
|
433
433
|
:host { display: block; container-type: inline-size; }
|
|
434
434
|
ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: ${h(6)}; }
|
|
@@ -459,10 +459,10 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
459
459
|
:host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block: ${h(3)}; inset-inline-start: 2px; inset-inline-end: auto; inline-size: 12px; block-size: auto; background: radial-gradient(circle at 100% 34px, var(--rule) 4px, transparent 4.5px); border: 2px solid var(--rule); border-inline-start: 0; border-radius: 0 14px 14px 0; }
|
|
460
460
|
}
|
|
461
461
|
@media (forced-colors: active) { li::before { border: 1px solid CanvasText; } li:not(:last-child)::after { background: CanvasText; } :host([look='ruled']) li { border-block-start-color: CanvasText; } }
|
|
462
|
-
`]}render(){return f`<ol part="list">${(this.items??[]).map((t,e)=>f`<li part="step" style=${this.look==="ruled"?`--rule:var(--impakt-color-chart-${e%5+1}, var(--impakt-color-brand-default, #1f4ed8))`:
|
|
463
|
-
${t.meta?f`<p class="meta">${t.meta}</p>`:
|
|
462
|
+
`]}render(){return f`<ol part="list">${(this.items??[]).map((t,e)=>f`<li part="step" style=${this.look==="ruled"?`--rule:var(--impakt-color-chart-${e%5+1}, var(--impakt-color-brand-default, #1f4ed8))`:P}>
|
|
463
|
+
${t.meta?f`<p class="meta">${t.meta}</p>`:P}
|
|
464
464
|
<div class="h" role="heading" aria-level=${this.headingLevel}>${t.heading}</div>
|
|
465
|
-
${t.text?f`<p class="body">${t.text}</p>`:
|
|
465
|
+
${t.text?f`<p class="body">${t.text}</p>`:P}
|
|
466
466
|
</li>`)}</ol>`}},It=class extends Y{static{this.properties={eyebrow:{type:String},heading:{type:String},lead:{type:String},points:{type:Array},level:{type:Number,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},imageSide:{type:String,reflect:!0,attribute:"image-side"},insetSrc:{type:String,attribute:"inset-src"},insetAlt:{type:String,attribute:"inset-alt"},ratio:{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.points=[],this.level=2,this.imageSrc="",this.imageAlt="",this.imageSide="end",this.insetSrc="",this.insetAlt="",this.ratio="4:3",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Y.styles,xe,jt,he`
|
|
467
467
|
:host { display: block; container-type: inline-size; --ratio: 4 / 3; }
|
|
468
468
|
:host([ratio='1:1']) { --ratio: 1 / 1; }
|
|
@@ -488,13 +488,13 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
488
488
|
}
|
|
489
489
|
`]}render(){return f`<div class="split" part="split">
|
|
490
490
|
<div class="words">
|
|
491
|
-
${this.eyebrow?f`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:
|
|
491
|
+
${this.eyebrow?f`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:P}
|
|
492
492
|
<div class="h" role="heading" aria-level=${this.level}>${this.heading}</div>
|
|
493
|
-
${this.lead?f`<p class="lead">${this.lead}</p>`:
|
|
494
|
-
${this.points?.length?f`<ul>${this.points.map(t=>f`<li><span class="tick">${Ce("check","14px")}</span><span>${t}</span></li>`)}</ul>`:
|
|
493
|
+
${this.lead?f`<p class="lead">${this.lead}</p>`:P}
|
|
494
|
+
${this.points?.length?f`<ul>${this.points.map(t=>f`<li><span class="tick">${Ce("check","14px")}</span><span>${t}</span></li>`)}</ul>`:P}
|
|
495
495
|
<div class="actions"><slot name="actions"></slot></div>
|
|
496
496
|
</div>
|
|
497
|
-
${this.imageSrc?f`<div class="picture ${this.insetSrc?"has-inset":""}"><img src=${this.imageSrc} alt=${this.imageAlt} loading="lazy" part="image" />${this.insetSrc?f`<img class="inset" src=${this.insetSrc} alt=${this.insetAlt} loading="lazy" />`:
|
|
497
|
+
${this.imageSrc?f`<div class="picture ${this.insetSrc?"has-inset":""}"><img src=${this.imageSrc} alt=${this.imageAlt} loading="lazy" part="image" />${this.insetSrc?f`<img class="inset" src=${this.insetSrc} alt=${this.insetAlt} loading="lazy" />`:P}</div>`:P}
|
|
498
498
|
</div>`}},Ht=class extends Y{static{this.properties={heading:{type:String},lead:{type:String},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},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="",this.lead="",this.tone="brand",this.align="split",this.imageSrc="",this.imageAlt="",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Y.styles,xe,jt,he`
|
|
499
499
|
:host { display: block; container-type: inline-size; }
|
|
500
500
|
.panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: ${h(8)}; padding: ${h(16)}; border-radius: ${p.radius2xl}; background: ${p.surfaceCard}; box-shadow: ${p.shadowSm}, inset 0 0 0 1px ${p.hairline}; }
|
|
@@ -519,10 +519,10 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
519
519
|
@container (max-width: 48rem) { .panel { flex-direction: column; align-items: flex-start; padding: ${h(8)} ${h(6)}; } .h { ${B("3xl")} } :host([align='center']) .panel { align-items: center; } }
|
|
520
520
|
@media (forced-colors: active) { .panel { border: 1px solid CanvasText; } }
|
|
521
521
|
`]}render(){return f`<div class="panel ${this.imageSrc?"pictured":""}" part="panel">
|
|
522
|
-
${this.imageSrc?f`<img class="photo" src=${this.imageSrc} alt=${this.imageAlt} />`:
|
|
522
|
+
${this.imageSrc?f`<img class="photo" src=${this.imageSrc} alt=${this.imageAlt} />`:P}
|
|
523
523
|
<div class="words">
|
|
524
524
|
<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>
|
|
525
|
-
${this.lead?f`<p class="lead">${this.lead}</p>`:
|
|
525
|
+
${this.lead?f`<p class="lead">${this.lead}</p>`:P}
|
|
526
526
|
</div>
|
|
527
527
|
<div class="actions"><slot name="actions"></slot></div>
|
|
528
528
|
</div>`}},qi=n=>f`<span class="stars" role="img" aria-label=${ee("Rated {rating} out of 5",{rating:n})}>${[1,2,3,4,5].map(t=>f`<svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true" fill=${t<=n?"currentColor":"none"} stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M12 3.5l2.6 5.4 5.9.7-4.4 4 1.2 5.8L12 16.5l-5.3 2.9 1.2-5.8-4.4-4 5.9-.7z"/></svg>`)}</span>`,La=n=>n.split(/\s+/).filter(t=>/^[A-Za-z]/.test(t)&&t.toLowerCase()!=="and").slice(0,2).map(t=>t[0].toUpperCase()).join(""),Rt=class extends Y{static{this.properties={summary:{type:String},rating:{type:Number},items:{type:Array},columns:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.summary="",this.rating=void 0,this.items=[],this.columns="three",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Y.styles,xe,he`
|
|
@@ -539,11 +539,11 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
539
539
|
.name { font-weight: ${pe("semibold")}; ${B("sm")} }
|
|
540
540
|
.about { color: ${p.textMuted}; ${B("sm")} }
|
|
541
541
|
@container (max-width: 56rem) { ul, :host([columns='two']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
542
|
-
`]}render(){return f`${this.summary||this.rating?f`<p class="top" part="summary" style="margin-block-start:0">${this.rating?qi(Math.round(this.rating)):
|
|
542
|
+
`]}render(){return f`${this.summary||this.rating?f`<p class="top" part="summary" style="margin-block-start:0">${this.rating?qi(Math.round(this.rating)):P}<span>${this.summary}</span></p>`:P}
|
|
543
543
|
<ul part="list">${(this.items??[]).map(t=>f`<li part="review">
|
|
544
|
-
${t.rating?qi(t.rating):
|
|
544
|
+
${t.rating?qi(t.rating):P}
|
|
545
545
|
<blockquote>${t.quote}</blockquote>
|
|
546
|
-
<div class="who"><span class="face" aria-hidden="true">${t.avatarSrc?f`<img src=${t.avatarSrc} alt="" />`:La(t.person)}</span><span><span class="name">${t.person}</span>${t.about?f`<br /><span class="about">${t.about}</span>`:
|
|
546
|
+
<div class="who"><span class="face" aria-hidden="true">${t.avatarSrc?f`<img src=${t.avatarSrc} alt="" />`:La(t.person)}</span><span><span class="name">${t.person}</span>${t.about?f`<br /><span class="about">${t.about}</span>`:P}</span></div>
|
|
547
547
|
</li>`)}</ul>`}},Pt=class extends Y{constructor(){super();this.done=!1;this.heading="",this.lead="",this.label="Email address",this.buttonText="Sign up",this.smallPrint="",this.doneText="Thank you. You\u2019re on the list.",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={heading:{type:String},lead:{type:String},label:{type:String},buttonText:{type:String,attribute:"button-text"},smallPrint:{type:String,attribute:"small-print"},doneText:{type:String,attribute:"done-text"},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=[...Y.styles,Nt,xe,jt,he`
|
|
548
548
|
:host { display: block; container-type: inline-size; }
|
|
549
549
|
.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${h(8)}; align-items: center; }
|
|
@@ -559,14 +559,14 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
559
559
|
@container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }
|
|
560
560
|
`]}submit(e){e.preventDefault();let i=e.currentTarget;if(typeof i.reportValidity=="function"&&!i.reportValidity())return;let a=i.querySelector("input").value.trim();this.dispatchEvent(new CustomEvent("impakt-submit",{detail:{email:a},bubbles:!0,composed:!0})),this.done=!0,this.requestUpdate()}render(){let e=this.id_("email");return f`<div class="wrap" part="wrap">
|
|
561
561
|
<div class="words">
|
|
562
|
-
${this.heading?f`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
563
|
-
${this.lead?f`<p class="lead">${this.lead}</p>`:
|
|
562
|
+
${this.heading?f`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:P}
|
|
563
|
+
${this.lead?f`<p class="lead">${this.lead}</p>`:P}
|
|
564
564
|
</div>
|
|
565
565
|
<div aria-live="polite">${this.done?f`<p class="done">${this.doneText}</p>`:f`<form @submit=${this.submit}>
|
|
566
566
|
<label for=${e}>${this.label}</label>
|
|
567
567
|
<input id=${e} type="email" name="email" autocomplete="email" required />
|
|
568
568
|
<button type="submit">${this.buttonText}</button>
|
|
569
|
-
${this.smallPrint?f`<p class="note">${this.smallPrint}</p>`:
|
|
569
|
+
${this.smallPrint?f`<p class="note">${this.smallPrint}</p>`:P}
|
|
570
570
|
</form>`}</div>
|
|
571
571
|
</div>`}};customElements.define("impakt-carousel",Lt);customElements.define("impakt-gallery",Et);customElements.define("impakt-logo-cloud",Ct);customElements.define("impakt-steps",Bt);customElements.define("impakt-media-split",It);customElements.define("impakt-cta-banner",Ht);customElements.define("impakt-reviews",Rt);customElements.define("impakt-newsletter",Pt);import{css as Je,html as I,nothing as K}from"./atomic-ui.js";import{say as ve,pageLocale as Ea,ImpaktElement as me,focusRing as Ke,targetSize as Yi,fontWeight as Z,space as m,spaceAround as Dt,t as s,type as W,iconSvg as Be}from"./atomic-ui.js";var Ot=class extends me{static{this.properties={imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},plots:{type:Array},hint:{type:String},selectedPlot:{type:String,attribute:"selected-plot"},panel:{type:String,reflect:!0},plotWord:{type:String,attribute:"plot-word"},actionText:{type:String,attribute:"action-text"},availableText:{type:String,attribute:"available-text"},reservedText:{type:String,attribute:"reserved-text"},soldText:{type:String,attribute:"sold-text"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.imageSrc="",this.imageAlt="",this.plots=[],this.hint="Choose a plot to see its price and availability.",this.selectedPlot="",this.panel="beside",this.plotWord="Plot",this.actionText="View this home",this.availableText="Available",this.reservedText="Reserved",this.soldText="Sold",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...me.styles,Ke,Dt,Je`
|
|
572
572
|
:host { display: block; container-type: inline-size; }
|
|
@@ -716,76 +716,76 @@ 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
|
|
720
|
-
.card { background: ${
|
|
721
|
-
.h { margin: 0; font-family: ${
|
|
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: ${
|
|
723
|
-
.btn:hover { background: ${
|
|
724
|
-
.btn.quiet { color: ${
|
|
725
|
-
.small { margin: 0; ${O("xs")} color: ${
|
|
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 N}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 ${
|
|
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: ${
|
|
734
|
-
.name { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${
|
|
735
|
-
.price { margin: 0; font-family: ${
|
|
736
|
-
.period { ${O("sm")} font-weight: ${X("regular")}; color: ${
|
|
737
|
-
.note { margin: 0; ${O("sm")} color: ${
|
|
738
|
-
ul { flex: 1; margin: 0; padding: ${u(3)} 0 0; list-style: none; display: grid; gap: ${u(2)}; border-block-start: 1px solid ${
|
|
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: ${
|
|
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: ${
|
|
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
|
-
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
745
|
+
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:N}
|
|
746
746
|
<div class="grid" style=${`--cols: ${Math.max(1,this.plans.length)}`}>
|
|
747
747
|
${this.plans.map(t=>$`<section class="card plan ${t.badge?"top":""}" aria-labelledby=${this.id_(`n-${t.id}`)}>
|
|
748
|
-
${t.badge?$`<span class="badge">${t.badge}</span>`:
|
|
748
|
+
${t.badge?$`<span class="badge">${t.badge}</span>`:N}
|
|
749
749
|
<h3 class="name" id=${this.id_(`n-${t.id}`)}>${t.name}</h3>
|
|
750
|
-
<p class="price">${t.price}${t.period?$` <span class="period">${t.period}</span>`:
|
|
751
|
-
${t.note?$`<p class="note">${t.note}</p>`:
|
|
750
|
+
<p class="price">${t.price}${t.period?$` <span class="period">${t.period}</span>`:N}</p>
|
|
751
|
+
${t.note?$`<p class="note">${t.note}</p>`:N}
|
|
752
752
|
<ul>${this.rows.map(e=>{let i=this.has(t,e);return $`<li data-has=${String(i)}><span class="mark" aria-hidden="true">${i?"\u2713":"\u2013"}</span><span>${e.label}<span class="visually-hidden">: ${M(i?"included":"not included")}</span></span></li>`})}</ul>
|
|
753
753
|
${t.href?$`<a class="btn ${t.badge?"":"quiet"}" href=${t.href} @click=${e=>this.choose(t,e)}>${this.buttonText}<span class="visually-hidden"> ${t.name}</span></a>`:$`<button class="btn ${t.badge?"":"quiet"}" type="button" @click=${e=>this.choose(t,e)}>${this.buttonText}<span class="visually-hidden"> ${t.name}</span></button>`}
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
767
|
+
.foot a { color: ${c.link}; }
|
|
768
768
|
.empty { display: grid; place-items: center; block-size: 100%; color: #ccc; }
|
|
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="" />`:
|
|
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="" />`:N}
|
|
770
770
|
<button class="play" type="button" @click=${()=>{this.playing=!0}}>
|
|
771
771
|
<span class="disc" aria-hidden="true"><svg width="28" height="28" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></span>
|
|
772
772
|
<span class="label">${this.playText}<span class="visually-hidden">: ${this.label}</span></span>
|
|
773
|
-
</button>`:e=$`<video controls preload="metadata" poster=${this.posterSrc||
|
|
773
|
+
</button>`:e=$`<video controls preload="metadata" poster=${this.posterSrc||N} aria-label=${this.label}>
|
|
774
774
|
<source src=${this.videoSrc} />
|
|
775
|
-
${this.captionsSrc?$`<track kind="captions" src=${this.captionsSrc} srclang="en" label="English" default />`:
|
|
775
|
+
${this.captionsSrc?$`<track kind="captions" src=${this.captionsSrc} srclang="en" label="English" default />`:N}
|
|
776
776
|
</video>`:e=$`<div class="empty">${M("Add a video address")}</div>`,$`<div class="frame" part="frame">${e}</div>
|
|
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>`:
|
|
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>`:N}`}},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 ${
|
|
780
|
-
:host([kind='insurance']) .box { border-color: ${
|
|
781
|
-
strong { display: block; margin-block-end: ${u(1)}; ${O("md")} color: ${
|
|
782
|
-
p { margin: 0; color: ${
|
|
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: ${
|
|
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
|
-
${e?$`<strong>${e}</strong>`:
|
|
787
|
-
${i?$`<p>${i}</p>`:
|
|
788
|
-
${this.firm?$`<p class="firm">${this.firm}</p>`:
|
|
786
|
+
${e?$`<strong>${e}</strong>`:N}
|
|
787
|
+
${i?$`<p>${i}</p>`:N}
|
|
788
|
+
${this.firm?$`<p class="firm">${this.firm}</p>`:N}
|
|
789
789
|
</aside>`}},ke={standard:[{from:0,rate:0},{from:125e3,rate:2},{from:25e4,rate:5},{from:925e3,rate:10},{from:15e5,rate:12}],firstTime:[{from:0,rate:0},{from:3e5,rate:5}],firstTimeLimit:5e5,additionalSurcharge:5};function xi(n,t,e=0){let i=0;return t.forEach((a,r)=>{let o=t[r+1]?.from??1/0;n>a.from&&(i+=(Math.min(n,o)-a.from)*(a.rate+e)/100)}),Math.round(i)}function Ji(n,t){return n<=0?0:t==="first-time"&&n<=ke.firstTimeLimit?xi(n,ke.firstTime):t==="additional"?n<4e4?0:xi(n,ke.standard,ke.additionalSurcharge):xi(n,ke.standard)}var Ki=je`
|
|
790
790
|
:host { display: block; container-type: inline-size; }
|
|
791
791
|
.wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; }
|
|
@@ -793,20 +793,20 @@ 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: ${
|
|
797
|
-
.choices input { accent-color: ${
|
|
798
|
-
input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${u(2)} ${u(3)}; font: inherit; color: ${
|
|
799
|
-
.result { display: flex; flex-direction: column; justify-content: center; gap: ${u(2)}; padding: ${u(8)}; color: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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">
|
|
809
|
-
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
809
|
+
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:N}
|
|
810
810
|
<div><label for=${this.id_("price")}>${M("Price of the home (\xA3)")}</label>
|
|
811
811
|
<input id=${this.id_("price")} type="number" min="0" step="1000" inputmode="numeric" .value=${String(this.price)} @input=${a=>{this.price=Number(a.target.value)||0}} /></div>
|
|
812
812
|
<fieldset><legend>${M("Are you buying")}</legend><div class="choices">
|
|
@@ -817,13 +817,13 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
817
817
|
<p class="caption">${M("Stamp duty to pay")}</p>
|
|
818
818
|
<output for=${this.id_("price")}>${Ut(t)}</output>
|
|
819
819
|
<p class="line">${t?M("About {rate}% of the price",{rate:e.toFixed(1)}):M("Nothing to pay at this price")}</p>
|
|
820
|
-
${this.buyer==="first-time"&&this.price>ke.firstTimeLimit?$`<p class="line">${M("First-time buyer relief stops above {limit}, so the usual rates apply.",{limit:Ut(ke.firstTimeLimit)})}</p>`:
|
|
820
|
+
${this.buyer==="first-time"&&this.price>ke.firstTimeLimit?$`<p class="line">${M("First-time buyer relief stops above {limit}, so the usual rates apply.",{limit:Ut(ke.firstTimeLimit)})}</p>`:N}
|
|
821
821
|
</div>
|
|
822
|
-
${this.smallPrint?$`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:
|
|
822
|
+
${this.smallPrint?$`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:N}
|
|
823
823
|
</div>`}},Vt=class extends se{static{this.properties={heading:{type:String},income:{type:Number},secondIncome:{type:Number,attribute:"second-income"},deposit:{type:Number},timesIncome:{type:Number,attribute:"times-income"},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 could you borrow?",this.income=45e3,this.secondIncome=0,this.deposit=3e4,this.timesIncome=4.5,this.smallPrint="This is a guide, not a mortgage offer. What a lender offers depends on your circumstances. Your home may be repossessed if you do not keep up repayments on your mortgage.",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...se.styles,tt,Oe,it,Ki]}field(t){return e=>{this[t]=Number(e.target.value)||0}}render(){let t=Math.max(0,(this.income+this.secondIncome)*this.timesIncome),e=(i,a)=>$`<div><label for=${this.id_(i)}>${a}</label>
|
|
824
824
|
<input id=${this.id_(i)} type="number" min="0" step="1000" inputmode="numeric" .value=${String(this[i])} @input=${this.field(i)} /></div>`;return $`<div class="card wrap" part="wrap">
|
|
825
825
|
<div class="inputs">
|
|
826
|
-
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
826
|
+
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:N}
|
|
827
827
|
${e("income",M("Your yearly income before tax (\xA3)"))}
|
|
828
828
|
${e("secondIncome",M("A second person\u2019s income, if buying together (\xA3)"))}
|
|
829
829
|
${e("deposit",M("Your deposit (\xA3)"))}
|
|
@@ -833,26 +833,26 @@ import"./atomic-ui.js";import{css as Ae,html as C,nothing as G}from"./atomic-ui.
|
|
|
833
833
|
<output>${Ut(t)}</output>
|
|
834
834
|
<p class="line">${M("With your deposit, that\u2019s a home of about {amount}.",{amount:Ut(t+this.deposit)})}</p>
|
|
835
835
|
</div>
|
|
836
|
-
${this.smallPrint?$`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:
|
|
836
|
+
${this.smallPrint?$`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:N}
|
|
837
837
|
</div>`}},et=class extends se{static{this.properties={heading:{type:String},phone:{type:String},hours:{type:String},email:{type:String},callbackHeading:{type:String,attribute:"callback-heading"},buttonText:{type:String,attribute:"button-text"},doneText:{type:String,attribute:"done-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="Talk to us",this.phone="0800 000 0000",this.hours=`Monday to Friday, 9am to 6pm
|
|
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: ${
|
|
842
|
-
.hours { margin: 0; white-space: pre-line; color: ${
|
|
843
|
-
.email { display: inline-flex; align-items: center; min-block-size: ${
|
|
844
|
-
form { display: grid; gap: ${u(3)}; padding: ${u(5)}; border-radius: ${
|
|
845
|
-
.sub { margin: 0; ${O("lg")} font-weight: ${X("bold")}; color: ${
|
|
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: ${
|
|
848
|
-
.done { margin: 0; padding: ${u(5)}; border-radius: ${
|
|
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>
|
|
852
|
-
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
853
|
-
${this.phone?$`<a class="phone" href=${`tel:${this.phone.replace(/[^\d+]/g,"")}`}>${this.phone}</a>`:
|
|
854
|
-
${this.hours?$`<p class="hours">${this.hours}</p>`:
|
|
855
|
-
${this.email?$`<a class="email" href=${`mailto:${this.email}`}>${this.email}</a>`:
|
|
852
|
+
${this.heading?$`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:N}
|
|
853
|
+
${this.phone?$`<a class="phone" href=${`tel:${this.phone.replace(/[^\d+]/g,"")}`}>${this.phone}</a>`:N}
|
|
854
|
+
${this.hours?$`<p class="hours">${this.hours}</p>`:N}
|
|
855
|
+
${this.email?$`<a class="email" href=${`mailto:${this.email}`}>${this.email}</a>`:N}
|
|
856
856
|
</div>
|
|
857
857
|
${this.callbackHeading?this.sent?$`<p class="done" role="status">${this.doneText}</p>`:$`<form @submit=${this.submit} aria-labelledby=${this.id_("cb")}>
|
|
858
858
|
<p class="sub" id=${this.id_("cb")}>${this.callbackHeading}</p>
|
|
@@ -860,7 +860,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
860
860
|
<div><label for=${this.id_("tel")}>${M("Phone number")}</label><input id=${this.id_("tel")} name="phone" type="tel" autocomplete="tel" required /></div>
|
|
861
861
|
<div><label for=${this.id_("when")}>${M("Best time to call")}</label><select id=${this.id_("when")} name="when"><option value="Morning">${M("Morning")}</option><option value="Afternoon">${M("Afternoon")}</option><option value="Evening">${M("Evening")}</option></select></div>
|
|
862
862
|
<button class="btn" type="submit">${this.buttonText}</button>
|
|
863
|
-
</form>`:
|
|
863
|
+
</form>`:N}
|
|
864
864
|
</div>`}};Ze.createProperty("playing",{state:!0});et.createProperty("sent",{state:!0});customElements.define("impakt-plan-comparison",Yt);customElements.define("impakt-video",Ze);customElements.define("impakt-regulatory-notice",Gt);customElements.define("impakt-stamp-duty-calculator",Xt);customElements.define("impakt-affordability-calculator",Vt);customElements.define("impakt-contact-block",et);import{css as Ia,html as F,nothing as le,unsafeCSS as Zi}from"./atomic-ui.js";import{ImpaktElement as ea,pageLocale as ta,say as D,focusRing as Ha,targetSize as ia,visuallyHidden as aa,fontSize as vi,fontWeight as Ie,space as T,spaceAround as Ra,t as y,type as He,toneOf as Qt}from"./atomic-ui.js";var Jt=n=>n.reduce((t,e)=>t+e,0),ra=(n,t)=>n.find(e=>typeof e.below=="number"&&t<e.below)??n.at(-1);function Kt(n,t,e){let i=n.flatMap(l=>(t[l.id]??[]).flatMap(x=>l.choices.filter(v=>v.id===x))),a=Jt(i.map(l=>l.cost??0)),r=Jt(i.map(l=>l.weeks??0));for(let l of i)a*=l.costFactor??1,r*=l.weeksFactor??1;let o=(ra(e.teams,a)?.engineers??1)+Jt(i.map(l=>l.engineers??0));return{cost:a,low:Math.round(a*e.low),high:Math.round(a*e.high),weeks:Math.max(e.minWeeks,Math.round(r)),engineers:o,way:ra(e.ways,a)?.text??""}}function sa(n,t){let e=n.map(a=>typeof a.share=="number"?Math.max(1,Math.round(t*a.share)):0),i=Math.max(1,t-Jt(e));return n.map((a,r)=>typeof a.share=="number"?e[r]:i)}var Zt=class extends ea{constructor(){super();this.at=0;this.answers={};this.tip="";this.copied="";this.started=!1;this.questions=[],this.teams=[],this.ways=[],this.phases=[],this.low=.85,this.high=1.25,this.minWeeks=1,this.currency="GBP",this.unit=1,this.intro="",this.budgetLabel="Indicative budget",this.resultHeading="Your estimate",this.teamText="{n} engineers",this.teamTextOne="1 engineer",this.note="",this.contactHref="",this.sendLabel="Send this to us",this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={questions:{type:Array},teams:{type:Array},ways:{type:Array},phases:{type:Array},low:{type:Number},high:{type:Number},minWeeks:{type:Number,attribute:"min-weeks"},currency:{type:String},unit:{type:Number},intro:{type:String},budgetLabel:{type:String,attribute:"budget-label"},resultHeading:{type:String,attribute:"result-heading"},teamText:{type:String,attribute:"team-text"},teamTextOne:{type:String,attribute:"team-text-one"},note:{type:String},contactHref:{type:String,attribute:"contact-href"},sendLabel:{type:String,attribute:"send-label"},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=[...ea.styles,Ra,Ha,Ia`
|
|
865
865
|
:host { display: block; container-type: inline-size; }
|
|
866
866
|
[hidden] { display: none !important; }
|
|
@@ -997,25 +997,32 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
997
997
|
<p class="weeks">${D("About {weeks} to a first release",{weeks:this.weeksWord(a.weeks)})}</p>
|
|
998
998
|
<p class="tip" aria-live="polite">${this.tip||this.intro}</p>
|
|
999
999
|
</aside>
|
|
1000
|
-
</div>`}};customElements.define("impakt-estimator",Zt);import{css as wi,html as L,nothing as te}from"./atomic-ui.js";import{ImpaktElement as _e,focusRing as Si,hideOn as Pa,fontSize as We,fontWeight as Fe,space as
|
|
1000
|
+
</div>`}};customElements.define("impakt-estimator",Zt);import{css as wi,html as L,nothing as te}from"./atomic-ui.js";import{ImpaktElement as _e,focusRing as Si,hideOn as Pa,fontSize as We,fontWeight as Fe,space as R,t as ne,type as at,toneOf as ki}from"./atomic-ui.js";var Na=[0,1,2,3,4],qe=ne.fontMono,ei=class extends _e{static{this.properties={brand:{type:String},logoSrc:{type:String,attribute:"logo-src"},logoAlt:{type:String,attribute:"logo-alt"},home:{type:String},badge:{type:String},meta:{type:String},links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},status:{type:String},statusMeta:{type:String,attribute:"status-meta"},statusTone:{type:String,attribute:"status-tone"},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"}}}constructor(){super(),this.brand="",this.logoSrc="",this.logoAlt="",this.home="/",this.badge="",this.meta="",this.links=[],this.label="Main",this.menuText="Menu",this.status="",this.statusMeta="",this.statusTone="success",this.actionText="",this.actionHref=""}static{this.styles=[..._e.styles,Si,wi`
|
|
1001
1001
|
:host { display: block; container-type: inline-size; }
|
|
1002
|
-
.bar { display: flex; align-items: center; gap: ${
|
|
1003
|
-
.start { display: flex; align-items: center; gap: ${
|
|
1002
|
+
.bar { display: flex; align-items: center; gap: ${R(6)}; }
|
|
1003
|
+
.start { display: flex; align-items: center; gap: ${R(3)}; flex: none; }
|
|
1004
1004
|
.middle { flex: 1 1 8rem; min-inline-size: 0; display: flex; align-items: center; justify-content: center; }
|
|
1005
1005
|
.middle ::slotted(*) { flex: 1 1 auto; min-inline-size: 0; }
|
|
1006
1006
|
slot { display: contents; }
|
|
1007
1007
|
.brand { display: inline-flex; align-items: center; min-block-size: ${ne.targetMin}; color: inherit; text-decoration: none; font-family: ${ne.fontHeading}; font-weight: ${Fe("semibold")}; ${at("2xl")} letter-spacing: -0.02em; line-height: 1; border-radius: ${ne.radiusSm}; }
|
|
1008
1008
|
.brand img { display: block; block-size: 32px; inline-size: auto; }
|
|
1009
|
-
.chip { display: inline-flex; align-items: center; gap: ${
|
|
1009
|
+
.chip { display: inline-flex; align-items: center; gap: ${R(1)}; padding: 2px ${R(2)}; border-radius: ${ne.radius}; background: color-mix(in srgb, currentColor 7%, transparent); font-family: ${qe}; font-size: ${We("xs")}; }
|
|
1010
1010
|
.chip svg { inline-size: 12px; block-size: 12px; }
|
|
1011
1011
|
.meta { font-family: ${qe}; font-size: ${We("xs")}; opacity: 0.72; }
|
|
1012
1012
|
.middle impakt-nav { flex: 1 1 8rem; }
|
|
1013
|
-
.end { display: flex; align-items: center; gap: ${
|
|
1013
|
+
.end { display: flex; align-items: center; gap: ${R(3)}; flex: none; }
|
|
1014
1014
|
.end:empty, .start:empty { display: none; }
|
|
1015
|
-
.status { display: inline-flex; align-items: center; gap: ${
|
|
1015
|
+
.status { display: inline-flex; align-items: center; gap: ${R(2)}; padding: ${R(1)} ${R(3)}; border: ${ne.borderThin} solid ${ne.border}; border-radius: 999px; background: ${ne.surfaceCard}; font-family: ${qe}; font-size: ${We("xs")}; white-space: nowrap; }
|
|
1016
1016
|
.status .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }
|
|
1017
1017
|
.status .hash { opacity: 0.72; }
|
|
1018
|
-
@container (max-width: 56rem) { .chip, .meta, .status { display: none; } .bar { gap: ${
|
|
1018
|
+
@container (max-width: 56rem) { .chip, .meta, .status { display: none; } .bar { gap: ${R(3)}; } }
|
|
1019
|
+
/* With no script the links cannot fold behind a Menu button. On a narrow screen they take a
|
|
1020
|
+
line of their own under the name and the action, and wrap there. */
|
|
1021
|
+
@container (max-width: 40rem) {
|
|
1022
|
+
:host(:not(:defined)) .bar { flex-wrap: wrap; row-gap: ${R(1)}; }
|
|
1023
|
+
:host(:not(:defined)) .start { flex: 1 1 auto; }
|
|
1024
|
+
:host(:not(:defined)) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; }
|
|
1025
|
+
}
|
|
1019
1026
|
`]}act(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0}))}render(){let t=this.logoSrc?L`<img src=${this.logoSrc} alt=${this.logoAlt||this.brand} />`:L`${this.brand}`;return L`<div class="bar" part="bar">
|
|
1020
1027
|
<div class="start"><slot name="start">
|
|
1021
1028
|
${this.brand||this.logoSrc?L`<a class="brand" href=${this.home||"/"} part="brand">${t}</a>`:te}
|
|
@@ -1035,25 +1042,25 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1035
1042
|
@media (max-width: 40rem) { :host([size='md']) a, :host([size='lg']) a { ${at("xl")} } }
|
|
1036
1043
|
`]}render(){return L`<a href=${this.href||"/"} part="link">${this.src?L`<img src=${this.src} alt=${this.alt||this.text||this.textContent?.trim()||""} />`:L`<slot>${this.text}</slot>`}</a>`}},ii=class extends _e{static{this.properties={brand:{type:String},brandSize:{type:String,reflect:!0,attribute:"brand-size"},log:{type:Array},columns:{type:Array},columnsOnPhone:{type:String,attribute:"columns-on-phone",reflect:!0},legal:{type:String},stripe:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.brand="",this.brandSize="lg",this.log=[],this.columns=[],this.columnsOnPhone="shown",this.legal="",this.stripe=!1,this.headingLevel=2}static{this.styles=[..._e.styles,Si,wi`
|
|
1037
1044
|
/* The page frame's footer band gives the colours; this sits flush with its foot so the stripe meets the edge. */
|
|
1038
|
-
:host { display: block; container-type: inline-size; position: relative; padding-block: ${
|
|
1039
|
-
.top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: ${
|
|
1045
|
+
:host { display: block; container-type: inline-size; position: relative; padding-block: ${R(8)} ${R(4)}; margin-block-end: calc(-1 * ${R(8)}); }
|
|
1046
|
+
.top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: ${R(10)}; }
|
|
1040
1047
|
.brand { margin: 0; font-family: ${ne.fontHeading}; font-weight: ${Fe("bold")}; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
|
|
1041
1048
|
/* The name as a wordmark across the whole footer, under the columns. */
|
|
1042
1049
|
:host([brand-size='display']) .top { grid-template-columns: 1fr; }
|
|
1043
1050
|
:host([brand-size='display']) .top > div:first-child { order: 2; }
|
|
1044
1051
|
:host([brand-size='display']) .brand { font-weight: ${Fe("semibold")}; font-size: clamp(3rem, 27cqi, 24rem); line-height: 0.9; letter-spacing: -0.06em; overflow-wrap: anywhere; }
|
|
1045
1052
|
ul { list-style: none; margin: 0; padding: 0; }
|
|
1046
|
-
.log { margin-block-start: ${
|
|
1047
|
-
.log li { display: flex; align-items: center; gap: ${
|
|
1053
|
+
.log { margin-block-start: ${R(8)}; display: grid; gap: ${R(3)}; font-family: ${qe}; font-size: ${We("sm")}; }
|
|
1054
|
+
.log li { display: flex; align-items: center; gap: ${R(3)}; opacity: 0.72; }
|
|
1048
1055
|
.log li:first-child { opacity: 1; }
|
|
1049
1056
|
.log .dot { flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--tone); }
|
|
1050
|
-
.log .code { margin-inline-end: ${
|
|
1051
|
-
.columns { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: ${
|
|
1052
|
-
.h { margin: 0 0 ${
|
|
1053
|
-
.columns ul { display: grid; gap: ${
|
|
1057
|
+
.log .code { margin-inline-end: ${R(3)}; }
|
|
1058
|
+
.columns { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: ${R(8)}; }
|
|
1059
|
+
.h { margin: 0 0 ${R(4)}; font-family: ${qe}; font-size: ${We("xs")}; font-weight: ${Fe("medium")}; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
|
|
1060
|
+
.columns ul { display: grid; gap: ${R(3)}; }
|
|
1054
1061
|
a { color: inherit; text-decoration: none; font-weight: ${Fe("medium")}; border-radius: ${ne.radiusSm}; }
|
|
1055
1062
|
a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
|
|
1056
|
-
.legal { margin: ${
|
|
1063
|
+
.legal { margin: ${R(16)} 0 0; font-family: ${qe}; font-size: ${We("xs")}; opacity: 0.72; }
|
|
1057
1064
|
.stripe { position: absolute; inset-inline: -100vmax; inset-block-end: 0; block-size: 6px; display: flex; }
|
|
1058
1065
|
.stripe span { flex: 1; }
|
|
1059
1066
|
@container (max-width: 48rem) { .top { grid-template-columns: 1fr; } .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
@@ -1173,7 +1180,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1173
1180
|
${this.layout==="split"?De`<div class="content" part="content"><slot></slot></div>${r}`:De`${r}<div class="content" part="content"><slot></slot></div>`}
|
|
1174
1181
|
</div>
|
|
1175
1182
|
${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
|
|
1183
|
+
`}};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
1184
|
:host {
|
|
1178
1185
|
display: block;
|
|
1179
1186
|
width: 100%;
|
|
@@ -1212,7 +1219,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1212
1219
|
background: transparent;
|
|
1213
1220
|
color: ${j.textMuted};
|
|
1214
1221
|
font-size: ${Ai("xs")};
|
|
1215
|
-
font-weight: ${
|
|
1222
|
+
font-weight: ${ca("medium")};
|
|
1216
1223
|
cursor: pointer;
|
|
1217
1224
|
}
|
|
1218
1225
|
button[aria-current='true'] {
|
|
@@ -1238,7 +1245,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1238
1245
|
.dot[data-passed] { background: var(--c); }
|
|
1239
1246
|
.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
1247
|
.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: ${
|
|
1248
|
+
.dot-label[data-current] { color: ${j.text}; font-weight: ${ca("bold")}; }
|
|
1242
1249
|
.line input { position: absolute; inset: 0 0 auto; block-size: 30px; opacity: 0; cursor: grab; }
|
|
1243
1250
|
.line input:focus-visible { opacity: 1; }
|
|
1244
1251
|
.where { display: grid; gap: ${ie(2)}; justify-items: end; }
|
|
@@ -1297,7 +1304,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1297
1304
|
</li>`)}
|
|
1298
1305
|
</ul>`:null}
|
|
1299
1306
|
</div>
|
|
1300
|
-
`}};customElements.define("impakt-scrubber",ni);import{css as Re,html as w,nothing as
|
|
1307
|
+
`}};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
1308
|
.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
1309
|
.body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }
|
|
1303
1310
|
.meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }
|
|
@@ -1319,11 +1326,11 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1319
1326
|
li[data-change='same'] { color: ${H.textMuted}; }
|
|
1320
1327
|
.sign { font-weight: ${Ci("bold")}; }
|
|
1321
1328
|
`]}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>`:
|
|
1323
|
-
${this.label?w`<p class="meta mono">${this.label}</p>`:
|
|
1324
|
-
${this.heading?Xa(this.headingLevel,i):
|
|
1325
|
-
${this.text?w`<p class="body">${this.text}</p>`:
|
|
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>`:
|
|
1329
|
+
${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}
|
|
1330
|
+
${this.label?w`<p class="meta mono">${this.label}</p>`:de}
|
|
1331
|
+
${this.heading?Xa(this.headingLevel,i):de}
|
|
1332
|
+
${this.text?w`<p class="body">${this.text}</p>`:de}
|
|
1333
|
+
${(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
1334
|
</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
1335
|
:host { display: block; container-type: inline-size; }
|
|
1329
1336
|
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 +1341,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1334
1341
|
.label=${i.label??""} .heading=${a} .text=${i.text??""} .href=${i.href??""}
|
|
1335
1342
|
.beforeSrc=${i.beforeSrc??""} .beforeAlt=${i.beforeAlt||oe("{name} as a wireframe",{name:a})}
|
|
1336
1343
|
.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
|
|
1344
|
+
.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
1345
|
:host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }
|
|
1339
1346
|
ul { list-style: none; margin: 0; padding: 0; position: relative; }
|
|
1340
1347
|
ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }
|
|
@@ -1370,17 +1377,17 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1370
1377
|
</svg>`;return w`<ul part="list">${(this.items??[]).map((i,a)=>w`<li part="item" style=${`--i:${a}`}>
|
|
1371
1378
|
<div class="graph">${e(Ei(i.tone,a))}</div>
|
|
1372
1379
|
<div>
|
|
1373
|
-
${i.path?w`<p class="path mono">${i.path}</p>`:
|
|
1380
|
+
${i.path?w`<p class="path mono">${i.path}</p>`:de}
|
|
1374
1381
|
<div class="row">
|
|
1375
1382
|
${Ga(this.headingLevel,i.href?w`<a href=${i.href}>${i.heading}</a>`:i.heading,"h")}
|
|
1376
1383
|
<div class="detail">
|
|
1377
|
-
${i.text?w`<p class="body">${i.text}</p>`:
|
|
1378
|
-
${i.tags?.length?w`<p class="tags mono">${i.tags.join(" \xB7 ")}</p>`:
|
|
1384
|
+
${i.text?w`<p class="body">${i.text}</p>`:de}
|
|
1385
|
+
${i.tags?.length?w`<p class="tags mono">${i.tags.join(" \xB7 ")}</p>`:de}
|
|
1379
1386
|
</div>
|
|
1380
1387
|
</div>
|
|
1381
1388
|
</div>
|
|
1382
1389
|
</li>`)}</ul>
|
|
1383
|
-
${this.trunk?w`<p class="end mono" part="trunk">${this.trunk}</p>`:
|
|
1390
|
+
${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
1391
|
:host { display: block; container-type: inline-size; }
|
|
1385
1392
|
.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
1393
|
.summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${H.success}; }
|
|
@@ -1404,7 +1411,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1404
1411
|
.label, .status { grid-column: 2; }
|
|
1405
1412
|
.figure { font-size: ${Ue("4xl")}; }
|
|
1406
1413
|
}
|
|
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>`:
|
|
1414
|
+
`]}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
1415
|
<ul part="list">${(this.items??[]).map((i,a)=>w`<li part="item" style=${`--i:${a}`}>
|
|
1409
1416
|
<span class="tick" aria-hidden="true">${Ya("check","16px")}</span>
|
|
1410
1417
|
<p class="figure">${e(i.figure,a)}</p>
|
|
@@ -1428,18 +1435,18 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1428
1435
|
<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
1436
|
<line x1=${24} y1=${g} x2=${1180} y2=${g} stroke="currentColor" stroke-width="3" stroke-linecap="round" />
|
|
1430
1437
|
<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),
|
|
1432
|
-
<path d="M${ze} ${g} C${ze} ${(g+
|
|
1438
|
+
${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>
|
|
1439
|
+
<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
1440
|
<circle cx=${ze} cy=${g} r="7" fill=${Pe} />
|
|
1434
|
-
<text x=${ze+Ge*1.6} y=${ma(V)?
|
|
1441
|
+
<text x=${ze+Ge*1.6} y=${ma(V)?ce-10:ce+20} class="halo" style=${`fill:${Pe}`}>${A.label}</text>
|
|
1435
1442
|
</g>`})}
|
|
1436
|
-
${(this.marks??[]).map(A=>{let V=nt(A.at),Pe=V>=0?Se(V):g,
|
|
1443
|
+
${(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
1444
|
${this.release?rt`<g>
|
|
1438
1445
|
<circle cx=${o(this.releaseAt)} cy=${g} r="10" fill=${pa.success} />
|
|
1439
1446
|
<rect x=${o(this.releaseAt)-8} y=${g-36} rx="4" width=${this.release.length*7.6+16} height="22" fill=${pa.success} />
|
|
1440
1447
|
<text x=${o(this.releaseAt)} y=${g-21} style="fill:var(--impakt-color-surface-card, #fff)">${this.release}</text>
|
|
1441
|
-
</g>`:
|
|
1448
|
+
</g>`:de}
|
|
1442
1449
|
${$e.map(A=>rt`<text x=${o(A)} y=${v-10} text-anchor="middle" class="faint">${ui} ${A}</text>`)}
|
|
1443
1450
|
</svg>
|
|
1444
|
-
</figure>`}};customElements.define("impakt-release-card",oi);customElements.define("impakt-release-list",li);customElements.define("impakt-branch-list",
|
|
1451
|
+
</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
1452
|
//# sourceMappingURL=atomic-ui-blocks.js.map
|