@atomic-ui/blocks 0.12.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +201 -7
- package/dist/{chunk-WGDMORWT.js → chunk-EGNQHWY6.js} +3 -1
- package/dist/chunk-EGNQHWY6.js.map +1 -0
- package/dist/{chunk-XNRFZCNB.js → chunk-JIITZUGI.js} +10 -7
- package/dist/chunk-JIITZUGI.js.map +1 -0
- package/dist/{chunk-7X4WGV6K.js → chunk-KDDXCGEZ.js} +4 -2
- package/dist/{chunk-7X4WGV6K.js.map → chunk-KDDXCGEZ.js.map} +1 -1
- package/dist/{chunk-SYTQIQT2.js → chunk-KOYQRJKY.js} +24 -5
- package/dist/chunk-KOYQRJKY.js.map +1 -0
- package/dist/{chunk-I2DL3DRU.js → chunk-W3MK3EEO.js} +4 -3
- package/dist/chunk-W3MK3EEO.js.map +1 -0
- package/dist/chunk-X3U2SOVV.js +461 -0
- package/dist/chunk-X3U2SOVV.js.map +1 -0
- package/dist/components/g2-case.js +2 -2
- package/dist/components/g2-shared.d.ts +2 -0
- package/dist/components/g2-shared.js +3 -1
- package/dist/components/g2-site.js +2 -2
- package/dist/components/g2-tools.js +2 -2
- package/dist/components/journey.d.ts +85 -16
- package/dist/components/journey.js +7 -3
- package/dist/components/site.js +1 -1
- package/dist/index.js +6 -6
- package/dist/standalone/atomic-ui-blocks.js +1030 -983
- package/dist/standalone/atomic-ui-blocks.js.map +3 -3
- package/package.json +3 -3
- package/dist/chunk-GRKPKJZH.js +0 -275
- package/dist/chunk-GRKPKJZH.js.map +0 -1
- package/dist/chunk-I2DL3DRU.js.map +0 -1
- package/dist/chunk-SYTQIQT2.js.map +0 -1
- package/dist/chunk-WGDMORWT.js.map +0 -1
- package/dist/chunk-XNRFZCNB.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* @atomic-ui/blocks version 0.
|
|
2
|
-
import"./atomic-ui.js";import{css as
|
|
3
|
-
.h { margin: 0; color: ${w.textHeading}; font-family: ${w.fontHeading}; font-weight: ${
|
|
4
|
-
.eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${w.brand})); ${
|
|
5
|
-
.body { margin: 0; line-height: ${
|
|
6
|
-
`,
|
|
1
|
+
/* @atomic-ui/blocks version 0.13.1, standalone. Load atomic-ui.js from @atomic-ui/ui first, from the same folder. */
|
|
2
|
+
import"./atomic-ui.js";import{css as ot,html as j,nothing as ae}from"./atomic-ui.js";import{ImpaktElement as ze,fontSize as Ke,fontWeight as Be,lineHeight as Xt,space as y,spaceAround as ai,t as w,token as Pr,type as Qe,iconSvg as Jt}from"./atomic-ui.js";var ya=(n,i,e)=>j`<div class=${e} role="heading" aria-level=${n}>${i}</div>`,Ua=ot`
|
|
3
|
+
.h { margin: 0; color: ${w.textHeading}; font-family: ${w.fontHeading}; font-weight: ${Be("bold")}; line-height: ${Xt("tight")}; }
|
|
4
|
+
.eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${w.brand})); ${Qe("sm")} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${w.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${Be("semibold")}); letter-spacing: ${w.trackingWide}; text-transform: uppercase; }
|
|
5
|
+
.body { margin: 0; line-height: ${Xt("normal")}; max-inline-size: 65ch; }
|
|
6
|
+
`,Qt=class extends ze{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=[...ze.styles,ai,Ua,ot`
|
|
7
7
|
:host { display: block; container-type: inline-size; }
|
|
8
8
|
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: ${y(8)}; align-items: center; }
|
|
9
9
|
.hero.pictured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
|
|
10
10
|
.words { display: flex; flex-direction: column; gap: ${y(4)}; }
|
|
11
11
|
:host([align='center']) .words { align-items: center; text-align: center; margin-inline: auto; max-inline-size: 48rem; }
|
|
12
|
-
.h { ${
|
|
13
|
-
.body { ${
|
|
14
|
-
@container (max-width: 40rem) { .h { ${
|
|
12
|
+
.h { ${Qe("5xl")} letter-spacing: ${w.trackingTight}; text-wrap: balance; }
|
|
13
|
+
.body { ${Qe("lg")} color: ${w.textMuted}; text-wrap: pretty; }
|
|
14
|
+
@container (max-width: 40rem) { .h { ${Qe("4xl")} } }
|
|
15
15
|
.actions { display: flex; flex-wrap: wrap; gap: ${y(3)} ${y(4)}; align-items: center; margin-block-start: ${y(2)}; }
|
|
16
16
|
:host([align='center']) .actions { justify-content: center; }
|
|
17
17
|
img { display: block; inline-size: 100%; block-size: auto; border-radius: ${w.radius2xl}; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: ${w.shadowLg}; }
|
|
@@ -23,32 +23,32 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
23
23
|
.cover .words { position: relative; z-index: 1; max-inline-size: 48rem; }
|
|
24
24
|
.cover .eyebrow { display: inline-flex; align-items: center; gap: ${y(2)}; align-self: flex-start; padding: ${y(2)} ${y(3.5)}; color: #fff; background: rgb(255 255 255 / 0.16); border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); text-transform: none; letter-spacing: 0; }
|
|
25
25
|
.chip-line { position: relative; z-index: 1; block-size: 0; }
|
|
26
|
-
.chip { position: absolute; inset-block-start: ${y(14)}; inset-inline-end: ${y(9)}; display: inline-flex; align-items: center; gap: ${y(2.5)}; padding: ${y(3)} ${y(4.5)}; ${
|
|
26
|
+
.chip { position: absolute; inset-block-start: ${y(14)}; inset-inline-end: ${y(9)}; display: inline-flex; align-items: center; gap: ${y(2.5)}; padding: ${y(3)} ${y(4.5)}; ${Qe("sm")} font-weight: ${Be("semibold")}; white-space: nowrap; color: #fff; background: rgb(255 255 255 / 0.16); border-radius: ${w.radiusXl}; }
|
|
27
27
|
.finder { position: relative; z-index: 1; margin-block-start: ${y(12)}; }
|
|
28
28
|
.cover .h { font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 1; }
|
|
29
29
|
.cover .body { color: rgb(255 255 255 / 0.92); max-inline-size: 40rem; }
|
|
30
30
|
@container (max-width: 64rem) { .chip { display: none; } }
|
|
31
31
|
@container (max-width: 30rem) { .finder { display: none; } }
|
|
32
32
|
@container (max-width: 48rem) { .finder { margin-block-start: ${y(6)}; } .cover { justify-content: flex-end; min-block-size: 43.75rem; padding-block: ${y(32)} ${y(10)}; } .cover::after { background: linear-gradient(180deg, rgb(18 31 26 / 0.1) 0%, rgb(18 31 26 / 0.3) 42%, rgb(18 31 26 / 0.86) 100%); } .cover .h { font-size: 3rem; } }
|
|
33
|
-
`]}render(){if(this.treatment==="cover"&&this.imageSrc)return
|
|
34
|
-
${this.ratingText?
|
|
33
|
+
`]}render(){if(this.treatment==="cover"&&this.imageSrc)return j`<div class="cover" part="hero">
|
|
34
|
+
${this.ratingText?j`<div class="chip-line"><div class="chip">${Jt("star","20px")}${this.ratingText}</div></div>`:ae}
|
|
35
35
|
<img src=${this.imageSrc} alt=${this.imageAlt} part="image" />
|
|
36
36
|
<div class="words">
|
|
37
|
-
${this.eyebrow?
|
|
38
|
-
${
|
|
39
|
-
${this.lead?
|
|
37
|
+
${this.eyebrow?j`<p class="eyebrow" part="eyebrow">${this.eyebrowIcon!=="none"?Jt(this.eyebrowIcon,"16px"):ae}${this.eyebrow}</p>`:ae}
|
|
38
|
+
${ya(this.level,j`<slot name="heading">${this.heading}</slot>`,"h")}
|
|
39
|
+
${this.lead?j`<p class="body">${this.lead}</p>`:ae}
|
|
40
40
|
<div class="actions"><slot name="actions"></slot></div>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="finder"><slot name="search"></slot></div>
|
|
43
|
-
</div>`;let
|
|
43
|
+
</div>`;let i=!!this.imageSrc&&this.align!=="center";return j`<div class="hero ${i?"pictured":""}" part="hero">
|
|
44
44
|
<div class="words">
|
|
45
|
-
${this.eyebrow?
|
|
46
|
-
${
|
|
47
|
-
${this.lead?
|
|
45
|
+
${this.eyebrow?j`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:ae}
|
|
46
|
+
${ya(this.level,j`<slot name="heading">${this.heading}</slot>`,"h")}
|
|
47
|
+
${this.lead?j`<p class="body">${this.lead}</p>`:ae}
|
|
48
48
|
<div class="actions"><slot name="actions"></slot></div>
|
|
49
49
|
</div>
|
|
50
|
-
${
|
|
51
|
-
</div>`}},
|
|
50
|
+
${i?j`<img src=${this.imageSrc} alt=${this.imageAlt} part="image" />`:ae}
|
|
51
|
+
</div>`}},Kt=class extends ze{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},layout:{type:String,reflect:!0},look:{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.look="icons",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ze.styles,ai,Ua,ot`
|
|
52
52
|
:host { display: block; container-type: inline-size; }
|
|
53
53
|
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${y(8)} ${y(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
54
54
|
:host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
@@ -58,253 +58,277 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
58
58
|
:host([layout='inline']) .words { display: flex; flex-direction: column; gap: ${y(1)}; }
|
|
59
59
|
.icon { display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; border-radius: ${w.radiusLg}; background: ${w.brandSubtle}; color: ${w.brand}; margin-block-end: ${y(2)}; }
|
|
60
60
|
:host([layout='inline']) .icon { margin: 0; }
|
|
61
|
-
.h { font-size: ${
|
|
61
|
+
.h { font-size: ${Ke("lg")}; }
|
|
62
62
|
.body { color: ${w.text}; }
|
|
63
63
|
/* Ruled: a 1px ink rule above each item, no icon, the heading at 24px and the words muted. */
|
|
64
64
|
:host([look='ruled']) li { gap: ${y(3)}; padding-block-start: ${y(5)}; border-block-start: ${w.borderThin} solid ${w.text}; }
|
|
65
65
|
:host(:is([look='ruled'], [look='numbered'])) .icon { display: none; }
|
|
66
|
-
:host(:is([look='ruled'], [look='numbered'])) .h { font-size: clamp(1.25rem, 3cqi, 1.5rem); font-weight: ${
|
|
66
|
+
:host(:is([look='ruled'], [look='numbered'])) .h { font-size: clamp(1.25rem, 3cqi, 1.5rem); font-weight: ${Be("semibold")}; letter-spacing: -0.02em; line-height: 1.2; }
|
|
67
67
|
:host(:is([look='ruled'], [look='numbered'])) .body { color: ${w.textMuted}; }
|
|
68
68
|
:host(:is([look='ruled'], [look='numbered'])) .words { display: flex; flex-direction: column; gap: ${y(3)}; }
|
|
69
69
|
/* Numbered: a card with a 1px ink border, its number at the top left and a status dot at the top right. */
|
|
70
70
|
:host([look='numbered']) ul { gap: ${y(3)}; }
|
|
71
71
|
:host([look='numbered']) li { gap: ${y(4)}; padding: ${y(6)}; background: ${w.surfaceCard}; border: ${w.borderThin} solid ${w.text}; border-radius: ${w.radiusSm}; }
|
|
72
|
-
.top { display: flex; align-items: center; justify-content: space-between; font-family: ${w.fontMono}; font-size: ${
|
|
72
|
+
.top { display: flex; align-items: center; justify-content: space-between; font-family: ${w.fontMono}; font-size: ${Ke("sm")}; color: ${w.text}; }
|
|
73
73
|
.dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: ${w.text}; }
|
|
74
|
-
.dot.attention { background: ${
|
|
74
|
+
.dot.attention { background: ${Pr("color.accent.default","#ffd43b")}; box-shadow: inset 0 0 0 1px ${w.text}; }
|
|
75
75
|
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
76
76
|
@media (forced-colors: active) { .dot { background: CanvasText; } .dot.attention { background: Highlight; } :host([look='numbered']) li { border-color: CanvasText; } }
|
|
77
77
|
@container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
78
78
|
@container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
79
|
-
`]}render(){let
|
|
80
|
-
${
|
|
81
|
-
${e.icon&&this.look!=="ruled"&&!
|
|
82
|
-
<div class="words">${
|
|
83
|
-
</li>`)}</ul>`}},
|
|
79
|
+
`]}render(){let i=this.look==="numbered";return j`<ul part="list">${(this.items??[]).map((e,t)=>j`<li part="item">
|
|
80
|
+
${i?j`<div class="top" aria-hidden="true"><span>${String(t+1).padStart(2,"0")}</span><span class=${e.attention?"dot attention":"dot"}></span></div>`:ae}
|
|
81
|
+
${e.icon&&this.look!=="ruled"&&!i?j`<span class="icon">${Jt(e.icon,"24px")}</span>`:ae}
|
|
82
|
+
<div class="words">${ya(this.headingLevel,j`${e.heading}${i&&e.attention?j`<span class="sr"> (${e.attention})</span>`:ae}`,"h")}${e.text?j`<p class="body">${e.text}</p>`:ae}</div>
|
|
83
|
+
</li>`)}</ul>`}},Zt=class extends ze{static{this.properties={quote:{type:String},person:{type:String},about:{type:String},imageSrc:{type:String,attribute:"image-src"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.quote="",this.person="",this.about="",this.imageSrc="",this.size="md",this.align="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ze.styles,ai,ot`
|
|
84
84
|
:host { display: block; }
|
|
85
85
|
figure { margin: 0; display: flex; flex-direction: column; gap: ${y(4)}; max-inline-size: 48rem; }
|
|
86
86
|
:host([align='center']) figure { margin-inline: auto; align-items: center; text-align: center; }
|
|
87
|
-
blockquote { margin: 0; font-family: ${w.fontHeading}; font-size: ${
|
|
88
|
-
:host([size='lg']) blockquote { font-size: ${
|
|
87
|
+
blockquote { margin: 0; font-family: ${w.fontHeading}; font-size: ${Ke("lg")}; line-height: ${Xt("normal")}; color: inherit; }
|
|
88
|
+
:host([size='lg']) blockquote { font-size: ${Ke("2xl")}; line-height: ${Xt("tight")}; }
|
|
89
89
|
blockquote::before { content: '\\201C'; } blockquote::after { content: '\\201D'; }
|
|
90
90
|
figcaption { display: flex; align-items: center; gap: ${y(3)}; }
|
|
91
91
|
img { inline-size: 48px; block-size: 48px; border-radius: 50%; object-fit: cover; }
|
|
92
|
-
.name { font-weight: ${
|
|
93
|
-
.detail { color: ${w.textMuted}; font-size: ${
|
|
94
|
-
`]}render(){return
|
|
92
|
+
.name { font-weight: ${Be("semibold")}; }
|
|
93
|
+
.detail { color: ${w.textMuted}; font-size: ${Ke("sm")}; }
|
|
94
|
+
`]}render(){return j`<figure part="figure">
|
|
95
95
|
<blockquote part="quote">${this.quote}</blockquote>
|
|
96
|
-
${this.person?
|
|
97
|
-
</figure>`}},
|
|
96
|
+
${this.person?j`<figcaption>${this.imageSrc?j`<img src=${this.imageSrc} alt="" />`:ae}<span><span class="name">${this.person}</span>${this.about?j`<br /><span class="detail">${this.about}</span>`:ae}</span></figcaption>`:ae}
|
|
97
|
+
</figure>`}},ei=class extends ze{static{this.properties={figure:{type:String},label:{type:String},note:{type:String},size:{type:String,reflect:!0},align:{type:String,reflect:!0}}}constructor(){super(),this.figure="",this.label="",this.note="",this.size="md",this.align="start"}static{this.styles=[...ze.styles,ot`
|
|
98
98
|
:host { display: block; }
|
|
99
99
|
.stat { display: flex; flex-direction: column; gap: ${y(1)}; }
|
|
100
100
|
:host([align='center']) .stat { align-items: center; text-align: center; }
|
|
101
|
-
.value { font-family: ${w.fontHeading}; font-size: ${
|
|
102
|
-
:host([size='lg']) .value { font-size: ${
|
|
101
|
+
.value { font-family: ${w.fontHeading}; font-size: ${Ke("3xl")}; font-weight: ${Be("bold")}; line-height: 1; color: ${w.textHeading}; }
|
|
102
|
+
:host([size='lg']) .value { font-size: ${Ke("5xl")}; }
|
|
103
103
|
:host([size='xl']) .value { font-size: clamp(2.75rem, 6vw, 4rem); }
|
|
104
|
-
.label { font-weight: ${
|
|
105
|
-
.detail { color: ${w.textMuted}; font-size: ${
|
|
106
|
-
`]}render(){return
|
|
104
|
+
.label { font-weight: ${Be("semibold")}; }
|
|
105
|
+
.detail { color: ${w.textMuted}; font-size: ${Ke("sm")}; }
|
|
106
|
+
`]}render(){return j`<p class="stat" part="stat" style="margin:0"><span class="value">${this.figure}</span> <span class="label">${this.label}</span>${this.note?j` <span class="detail">${this.note}</span>`:ae}</p>`}},ti=class extends ze{static{this.properties={message:{type:String},linkText:{type:String,attribute:"link-text"},href:{type:String}}}constructor(){super(),this.message="",this.linkText="",this.href=""}static{this.styles=[...ze.styles,ot`
|
|
107
107
|
:host { display: block; }
|
|
108
|
-
.bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: ${y(2)} ${y(3)}; padding: ${y(2.5)} ${y(5)}; ${
|
|
108
|
+
.bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: ${y(2)} ${y(3)}; padding: ${y(2.5)} ${y(5)}; ${Qe("sm")} text-align: center; color: ${w.onBrand}; background: ${w.brand}; }
|
|
109
109
|
:host { margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); }
|
|
110
|
-
a { display: inline-flex; align-items: center; gap: ${y(1)}; min-block-size: ${w.targetMin}; color: inherit; font-weight: ${
|
|
111
|
-
`]}render(){return
|
|
110
|
+
a { display: inline-flex; align-items: center; gap: ${y(1)}; min-block-size: ${w.targetMin}; color: inherit; font-weight: ${Be("semibold")}; }
|
|
111
|
+
`]}render(){return j`<div class="bar" part="bar"><span>${this.message}</span>${this.linkText&&this.href?j`<a href=${this.href}>${this.linkText}${Jt("arrow-right","14px")}</a>`:ae}</div>`}},ii=class extends ze{static{this.properties={items:{type:Array},buttonText:{type:String,attribute:"button-text"},action:{type:String},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.buttonText="Search",this.action="",this.label="Search",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ze.styles,ai,ot`
|
|
112
112
|
:host { display: block; container-type: inline-size; }
|
|
113
113
|
form { display: flex; align-items: center; padding: ${y(3)}; background: ${w.surfaceCard}; color: ${w.text}; border-radius: ${w.radius2xl}; box-shadow: ${w.shadowXl}; }
|
|
114
114
|
.field { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${y(1)}; padding: ${y(1.5)} ${y(5)}; }
|
|
115
|
-
label { ${
|
|
116
|
-
select { inline-size: 100%; min-block-size: 28px; padding: 0; font: inherit; ${
|
|
115
|
+
label { ${Qe("sm")} color: ${w.textMuted}; }
|
|
116
|
+
select { inline-size: 100%; min-block-size: 28px; padding: 0; font: inherit; ${Qe("sm")} font-weight: ${Be("semibold")}; color: ${w.text}; background: transparent; border: 0; border-radius: ${w.radiusSm}; cursor: pointer; }
|
|
117
117
|
select:focus-visible, button:focus-visible { outline: 2px solid ${w.brand}; outline-offset: 2px; }
|
|
118
|
-
button { flex: none; min-block-size: 48px; padding: ${y(3)} ${y(6)}; font: inherit; font-weight: ${
|
|
118
|
+
button { flex: none; min-block-size: 48px; padding: ${y(3)} ${y(6)}; font: inherit; font-weight: ${Be("semibold")}; color: ${w.onBrand}; background: ${w.brand}; border: 0; border-radius: ${w.radiusLg}; cursor: pointer; }
|
|
119
119
|
button:hover { background: ${w.brandHover}; }
|
|
120
120
|
@container (max-width: 56rem) { form { flex-wrap: wrap; } .field { flex: 1 1 40%; } button { inline-size: 100%; } }
|
|
121
121
|
@container (max-width: 30rem) { form { flex-direction: column; align-items: stretch; gap: ${y(2)}; } .field { flex: none; } }
|
|
122
|
-
`]}submit(
|
|
123
|
-
${(this.items??[]).map((
|
|
124
|
-
<option value="">${
|
|
122
|
+
`]}submit(i){let e=new FormData(i.currentTarget),t={};e.forEach((a,r)=>{a!==""&&(t[r]=String(a))}),this.dispatchEvent(new CustomEvent("impakt-submit",{detail:{values:t},bubbles:!0,composed:!0})),this.action||i.preventDefault()}render(){return j`<form role="search" aria-label=${this.label} method="get" action=${this.action||ae} @submit=${this.submit} part="form">
|
|
123
|
+
${(this.items??[]).map((i,e)=>{let t=this.id_(`field-${e}`),a=String(i.options??"").split(",").map(r=>r.trim()).filter(Boolean);return j`<div class="field"><label for=${t}>${i.label}</label><select id=${t} name=${i.name||i.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}>
|
|
124
|
+
<option value="">${i.placeholder||"Any"}</option>${a.map(r=>j`<option value=${r}>${r}</option>`)}
|
|
125
125
|
</select></div>`})}
|
|
126
126
|
<button type="submit">${this.buttonText}</button>
|
|
127
|
-
</form>`}};customElements.define("impakt-search-bar",
|
|
127
|
+
</form>`}};customElements.define("impakt-search-bar",ii);customElements.define("impakt-announcement",ti);customElements.define("impakt-hero",Qt);customElements.define("impakt-feature-list",Kt);customElements.define("impakt-quote",Zt);customElements.define("impakt-stat",ei);import{css as Or,html as lt,nothing as ri}from"./atomic-ui.js";import{ImpaktElement as Ga,focusRing as Wr,fontSize as Fr,fontWeight as va,lineHeight as Ya,space as At,spaceAround as Dr,t as oe,iconSvg as _r}from"./atomic-ui.js";var si=class extends Ga{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=[...Ga.styles,Wr,Dr,Or`
|
|
128
128
|
:host { display: block; container-type: inline-size; --ratio: 4 / 3; }
|
|
129
129
|
:host([ratio='16:9']) { --ratio: 16 / 9; }
|
|
130
130
|
:host([ratio='3:2']) { --ratio: 3 / 2; }
|
|
131
131
|
:host([ratio='1:1']) { --ratio: 1 / 1; }
|
|
132
|
-
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${
|
|
132
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${At(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
133
133
|
:host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
134
134
|
:host([columns='four']) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
135
135
|
/* A card is drawn as impakt-card is: a 1px border in the text colour and no shadow. */
|
|
136
|
-
li { position: relative; display: flex; flex-direction: column; background: ${
|
|
137
|
-
img { border-block-end: ${
|
|
136
|
+
li { position: relative; display: flex; flex-direction: column; background: ${oe.surfaceCard}; border: ${oe.borderThin} solid ${oe.text}; border-radius: ${oe.radiusXl}; box-shadow: none; overflow: hidden; }
|
|
137
|
+
img { border-block-end: ${oe.borderThin} solid ${oe.text}; }
|
|
138
138
|
img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
|
|
139
|
-
.words { display: flex; flex-direction: column; gap: ${
|
|
140
|
-
.h { margin: 0; color: ${
|
|
141
|
-
.h a { color: inherit; text-decoration: none; border-radius: ${
|
|
139
|
+
.words { display: flex; flex-direction: column; gap: ${At(2)}; padding: ${At(5)}; flex: 1; }
|
|
140
|
+
.h { margin: 0; color: ${oe.textHeading}; font-family: ${oe.fontHeading}; font-size: ${Fr("lg")}; font-weight: ${va("bold")}; line-height: ${Ya("tight")}; }
|
|
141
|
+
.h a { color: inherit; text-decoration: none; border-radius: ${oe.radiusSm}; }
|
|
142
142
|
.h a::after { content: ''; position: absolute; inset: 0; }
|
|
143
143
|
li.linked:hover .h a { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
144
|
-
.body { margin: 0; line-height: ${
|
|
144
|
+
.body { margin: 0; line-height: ${Ya("normal")}; }
|
|
145
145
|
/* A marketing badge: monospace capitals at 11px in a 1px outline. */
|
|
146
|
-
.badge { align-self: flex-start; padding: 2px ${
|
|
146
|
+
.badge { align-self: flex-start; padding: 2px ${At(2)}; border-radius: ${oe.radiusSm}; font-family: ${oe.fontMono}; font-size: 0.6875rem; font-weight: ${va("medium")}; line-height: 1.4; letter-spacing: ${oe.trackingWide}; text-transform: uppercase; color: ${oe.text}; background: transparent; border: ${oe.borderThin} solid ${oe.text}; }
|
|
147
147
|
@media (forced-colors: active) { li, img, .badge { border-color: CanvasText; } }
|
|
148
|
-
.more { margin-block-start: auto; display: inline-flex; align-items: center; gap: ${
|
|
148
|
+
.more { margin-block-start: auto; display: inline-flex; align-items: center; gap: ${At(1)}; color: ${oe.link}; font-weight: ${va("semibold")}; }
|
|
149
149
|
@container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
150
150
|
@container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
151
|
-
`]}render(){return
|
|
152
|
-
${
|
|
151
|
+
`]}render(){return lt`<ul part="list">${(this.items??[]).map(i=>lt`<li class=${i.href?"linked":""} part="card">
|
|
152
|
+
${i.imageSrc?lt`<img src=${i.imageSrc} alt=${i.imageAlt??""} loading="lazy" />`:ri}
|
|
153
153
|
<div class="words">
|
|
154
|
-
${
|
|
155
|
-
<div class="h" role="heading" aria-level=${this.headingLevel}>${
|
|
156
|
-
${
|
|
157
|
-
${
|
|
154
|
+
${i.badge?lt`<span class="badge">${i.badge}</span>`:ri}
|
|
155
|
+
<div class="h" role="heading" aria-level=${this.headingLevel}>${i.href?lt`<a href=${i.href}>${i.heading}</a>`:i.heading}</div>
|
|
156
|
+
${i.text?lt`<p class="body">${i.text}</p>`:ri}
|
|
157
|
+
${i.href?lt`<span class="more" aria-hidden="true">${_r("arrow-right","1em")}</span>`:ri}
|
|
158
158
|
</div>
|
|
159
|
-
</li>`)}</ul>`}};customElements.define("impakt-card-grid",
|
|
159
|
+
</li>`)}</ul>`}};customElements.define("impakt-card-grid",si);import{css as Ur,html as ye,nothing as Va,unsafeCSS as B}from"./atomic-ui.js";import{ImpaktElement as Xa,focusRing as Gr,fontWeight as Fe,say as De,space as Ja,t as I,token as Qa}from"./atomic-ui.js";var Lt=["note","wireframe","component","code","live"],ni=n=>Lt.includes(n),ka=n=>Lt.indexOf(n),Yr=ye`<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">
|
|
160
160
|
<path d="M0 6h18M13 1l5 5-5 5" />
|
|
161
|
-
</svg>`,
|
|
161
|
+
</svg>`,Vr=ye`<svg class="pointer" viewBox="0 0 16 20" width="16" height="20" aria-hidden="true" focusable="false">
|
|
162
162
|
<path d="M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z" stroke-width="1.2" stroke-linejoin="round" />
|
|
163
|
-
</svg>`,
|
|
163
|
+
</svg>`,oi=(n,i,e)=>B(`--jt: var(--impakt-motion-journey-${n}-duration, ${i}ms); --je: var(--impakt-motion-journey-${n}-easing, ${e});`),Sa=[{name:"flatten",ms:640,easing:[.65,0,.35,1]},{name:"ink-in",ms:560,easing:[.22,1,.36,1]},{name:"compile",ms:720,easing:[.83,0,.17,1]},{name:"ship",ms:600,easing:[.34,1.56,.64,1]}],le="--impakt-journey-p",za=8,ci=n=>`--impakt-journey-g${n}`,li;function Ka(){if(li!==void 0)return li;let n=typeof CSS<"u"?CSS:void 0;if(!n?.registerProperty)return li=!1;for(let i of[le,...Array.from({length:za},(e,t)=>ci(t))])try{n.registerProperty({name:i,syntax:"<number>",inherits:!0,initialValue:"0"})}catch{}return li=!0}function Xr([n,i,e,t]){let a=(r,s,o)=>3*r*(1-o)**2*o+3*s*(1-o)*o**2+o**3;return r=>{if(r<=0)return 0;if(r>=1)return 1;let s=0,o=1,h=r;for(let m=0;m<30;m+=1){let u=a(n,e,h);if(Math.abs(u-r)<1e-5)break;u<r?s=h:o=h,h=(s+o)/2}return a(i,t,h)}}var Za=(n,i)=>Sa[Math.max(0,Math.min(3,Math.max(n,i)-1))],re=n=>`clamp(0, min(calc(1 + var(${le}) - ${n}), calc(1 - var(${le}) + ${n})), 1)`,wa=`clamp(0, calc(1 - var(${le})), 1)`,er=`max(0, calc(var(${le}) - 3))`,tr=`max(0, calc(var(${le}) - 4))`,di=class extends Xa{constructor(){super();this.sections=[];this.frameRequest=0;this.easings=[];this.onScroll=()=>{this.frameRequest||(this.frameRequest=requestAnimationFrame(()=>{this.frameRequest=0,this.scrub()}))};this.onResize=()=>{this.getAttribute("scrub")==="timeline"?this.timeline():this.onScroll()};this.stage="live",this.label="",this.href="",this.decorative=!1,this.track="",this.travel=!1,this.code={},this.annotations=!1,this.captions=[],this.marginNote="",this.specs=[],this.markWidth="400",this.markHeight="96"}static{this.properties={stage:{type:String,reflect:!0},label:{type:String},href:{type:String},decorative:{type:Boolean,reflect:!0},track:{type:String},travel:{type:Boolean,reflect:!0},code:{type:Array},annotations:{type:Boolean,reflect:!0},captions:{type:Array},marginNote:{type:String,attribute:"margin-note"},specs:{type:Array},markWidth:{type:String,attribute:"mark-width"},markHeight:{type:String,attribute:"mark-height"}}}static{this.styles=[...Xa.styles,Gr,Ur`
|
|
164
164
|
:host {
|
|
165
165
|
display: block; inline-size: min(100%, 35rem); container-type: inline-size;
|
|
166
|
-
--impakt-journey-accent: ${
|
|
167
|
-
--hand: var(--impakt-font-family-hand, ${
|
|
168
|
-
|
|
166
|
+
--impakt-journey-accent: ${Qa("color.accent.default","#ffd43b")}; --impakt-journey-on-accent: ${Qa("color.accent.on","#1a1a1a")};
|
|
167
|
+
--hand: var(--impakt-font-family-hand, ${I.fontBody});
|
|
168
|
+
/* The stage as a number. Set by hand, it moves on the timing of the move into the new stage, and back out of a
|
|
169
|
+
stage the same move runs in reverse. A tracked button sets it on the frame instead, from the scroll. */
|
|
170
|
+
${B(le)}: 4;
|
|
171
|
+
transition: ${B(le)} var(--jt) var(--je);
|
|
172
|
+
${oi("flatten",640,"cubic-bezier(0.65, 0, 0.35, 1)")}
|
|
169
173
|
}
|
|
170
|
-
|
|
171
|
-
:host([stage='
|
|
172
|
-
:host([stage='
|
|
173
|
-
:host([stage='
|
|
174
|
+
:host([stage='note']) { ${B(le)}: 0; }
|
|
175
|
+
:host([stage='wireframe']) { ${B(le)}: 1; }
|
|
176
|
+
:host([stage='component']) { ${B(le)}: 2; ${oi("ink-in",560,"cubic-bezier(0.22, 1, 0.36, 1)")} }
|
|
177
|
+
:host([stage='code']) { ${B(le)}: 3; ${oi("compile",720,"cubic-bezier(0.83, 0, 0.17, 1)")} }
|
|
178
|
+
:host([stage='live']) { ${B(le)}: 4; ${oi("ship",600,"cubic-bezier(0.34, 1.56, 0.64, 1)")} }
|
|
179
|
+
/* Travelling: it stays in view while its sections scroll past, in a column as tall as they are. */
|
|
180
|
+
:host([travel]) { position: sticky; inset-block-start: var(--impakt-journey-travel-top, 20vh); }
|
|
181
|
+
|
|
174
182
|
/* About 14 wide to 9 tall at any width. Every size inside is a share of the width (cqi). */
|
|
175
183
|
.frame { position: relative; aspect-ratio: 14 / 9; }
|
|
176
|
-
/* Each plate is one stage's shape.
|
|
177
|
-
|
|
184
|
+
/* Each plate is one stage's shape with that stage's words in it. Every one is drawn from the stage number, so
|
|
185
|
+
its opacity and its shape follow the stage wherever it is between two. Nothing here changes the layout. */
|
|
186
|
+
.plate { position: absolute; box-sizing: border-box; pointer-events: none; }
|
|
178
187
|
.bar { inset-inline-start: 14.29cqi; inline-size: 71.43cqi; inset-block-start: calc(50% - 8.57cqi); block-size: 17.14cqi; }
|
|
179
|
-
.note { inset-inline-start: 22cqi; inset-block-start: 9cqi; inline-size: 46cqi; block-size: 46cqi; background: var(--impakt-journey-accent); box-shadow: 0 1.1rem 2.2rem rgb(0 0 0 / 0.18);
|
|
180
|
-
.wire { background: ${
|
|
181
|
-
.wire svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; color: ${
|
|
182
|
-
.solid { background: var(--impakt-journey-accent);
|
|
183
|
-
.shadow { box-shadow: 0 0.9rem 1.75rem rgb(0 0 0 / 0.22);
|
|
184
|
-
:host(:is([stage='component'], [stage='live'])) .solid, :host([stage='live']) .shadow { transform: none; }
|
|
188
|
+
.note { inset-inline-start: 22cqi; inset-block-start: 9cqi; inline-size: 46cqi; block-size: 46cqi; background: var(--impakt-journey-accent); box-shadow: 0 1.1rem 2.2rem rgb(0 0 0 / 0.18); }
|
|
189
|
+
.wire { background: ${I.surfaceCard}; border: ${I.borderThin} dashed ${I.textMuted}; }
|
|
190
|
+
.wire svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; color: ${I.rule}; }
|
|
191
|
+
.solid { background: var(--impakt-journey-accent); }
|
|
192
|
+
.shadow { box-shadow: 0 0.9rem 1.75rem rgb(0 0 0 / 0.22); }
|
|
185
193
|
/* The code window is the raised ink and its muted words, a pair the theme measures, so it stays a dark window on paper and on an ink band alike. */
|
|
186
|
-
.window { inset-inline: 14.29cqi; inset-block: 8cqi; padding: 4cqi; background: var(--impakt-color-surface-ink-raised, ${
|
|
194
|
+
.window { inset-inline: 14.29cqi; inset-block: 8cqi; padding: 4cqi; background: var(--impakt-color-surface-ink-raised, ${I.text}); border: ${I.borderThin} solid var(--impakt-color-line-inverse, transparent); border-radius: ${I.radius}; font-family: ${I.fontMono}; font-size: clamp(0.625rem, 2.15cqi, 0.8125rem); line-height: 1.6; color: var(--impakt-color-text-inverse-muted, color-mix(in srgb, ${I.surfaceCard} 78%, ${I.text})); white-space: pre; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) 44px minmax(0, 1fr); }
|
|
187
195
|
/* On a small button the lines furthest from the words are cut off, so a line never runs under the words. */
|
|
188
196
|
.window .before { align-self: end; display: flex; flex-direction: column; justify-content: flex-end; max-block-size: 100%; overflow: hidden; }
|
|
189
197
|
.window .after { align-self: start; display: flex; flex-direction: column; max-block-size: 100%; overflow: hidden; }
|
|
190
198
|
.window .comment { font-style: italic; }
|
|
191
199
|
.window .rule { display: block; block-size: 0.5em; margin-block: 0.55em; background: currentColor; opacity: 0.35; }
|
|
192
200
|
|
|
193
|
-
/*
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
:
|
|
202
|
-
:
|
|
203
|
-
:
|
|
204
|
-
|
|
205
|
-
:host([scrub]) .window { opacity: ${it(ut(3))}; }
|
|
206
|
-
:host([scrub]) .shadow { opacity: ${it(ut(4))}; }
|
|
201
|
+
/*
|
|
202
|
+
* The morph. Each plate shows at its own stage and fades one stage either side. The note flattens as it goes,
|
|
203
|
+
* without growing wider, so a shape that is not showing never reaches past the block (1.4.10); the wireframe
|
|
204
|
+
* comes out of the flattened note; the component is inked in from a slightly smaller box; the code window opens
|
|
205
|
+
* from a strip; and the live button's shadow and fill grow to full size, past it for a moment where ship's
|
|
206
|
+
* easing overshoots.
|
|
207
|
+
*/
|
|
208
|
+
.note { opacity: ${B(re(0))}; transform: rotate(calc(-4deg * ${B(re(0))})) scale(1, calc(0.45 + 0.55 * ${B(re(0))})); }
|
|
209
|
+
.wire { opacity: ${B(re(1))}; transform: rotate(calc(-4deg * ${B(wa)})) scale(calc(1 - 0.4 * ${B(wa)}), calc(1 + 0.9 * ${B(wa)})); }
|
|
210
|
+
.solid { opacity: max(${B(re(2))}, ${B(re(4))}); transform: scale(calc(0.92 + 0.08 * max(${B(re(2))}, min(1, ${B(er)})) + 0.4 * ${B(tr)})); }
|
|
211
|
+
.window { opacity: ${B(re(3))}; transform: scale(calc(0.94 + 0.06 * ${B(re(3))}), calc(0.5 + 0.5 * ${B(re(3))})); }
|
|
212
|
+
.shadow { opacity: ${B(re(4))}; transform: scale(calc(0.9 + 0.1 * min(1, ${B(er)}) + 0.4 * ${B(tr)})); }
|
|
207
213
|
|
|
208
|
-
/* The words
|
|
209
|
-
.
|
|
214
|
+
/* The words as each stage draws them, inside that stage's plate, so they morph and fade with it. All decoration: the link below carries the name. */
|
|
215
|
+
.said { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: ${Ja(4)}; padding-inline: 4.3cqi; font-family: ${I.fontBody}; font-size: clamp(0.9375rem, 3.57cqi, 1.25rem); font-weight: ${Fe("medium")}; line-height: 1.2; color: var(--impakt-journey-on-accent); }
|
|
210
216
|
.arrow { flex: none; }
|
|
211
217
|
/* At the note stage the words are handwritten, bold, with a line drawn under them. */
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
/* Live, it answers a pointer: it lifts when pointed at and sits when pressed, and its fill deepens a little. */
|
|
219
|
-
:host([stage='live']) .frame:has(a.words:hover) .solid { background: color-mix(in srgb, var(--impakt-journey-accent) 90%, ${j.text}); }
|
|
220
|
-
:host([stage='live']) a.words:hover { transform: translateY(-2px); transition: color 180ms, transform var(--impakt-motion-journey-lift-duration, 180ms) var(--impakt-motion-journey-lift-easing, cubic-bezier(0.2, 0, 0, 1)); }
|
|
221
|
-
:host([stage='live']) a.words:active { transform: translateY(1px); transition: color 140ms, transform var(--impakt-motion-journey-press-duration, 140ms) var(--impakt-motion-journey-press-easing, cubic-bezier(0.4, 0, 0.2, 1)); }
|
|
222
|
-
a.words:focus-visible { outline: none; box-shadow: ${j.focusShadow}; }
|
|
218
|
+
.note .said { flex-direction: column; align-items: flex-start; padding: 4.5cqi; font-family: var(--hand); font-size: clamp(1.25rem, 5.4cqi, 2rem); font-weight: ${Fe("bold")}; line-height: 1.1; letter-spacing: -0.01em; }
|
|
219
|
+
.note .said .text::after { content: ''; display: block; block-size: 0.28em; margin-block-start: 0.12em; inline-size: 92%; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
|
|
220
|
+
.note .said .arrow { align-self: flex-end; }
|
|
221
|
+
.wire .said { justify-content: center; font-family: ${I.fontMono}; font-size: clamp(0.6875rem, 2.5cqi, 0.875rem); font-weight: ${Fe("regular")}; color: ${I.textMuted}; }
|
|
222
|
+
.window .said { position: static; padding-inline: 3ch 0; justify-content: flex-start; font-family: ${I.fontMono}; font-size: inherit; font-weight: ${Fe("regular")}; color: var(--impakt-journey-code-words, var(--ik-ink-inverse, ${I.surfaceCard})); }
|
|
223
|
+
.window .said .arrow { display: none; }
|
|
223
224
|
|
|
224
|
-
/*
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
.
|
|
230
|
-
.
|
|
225
|
+
/*
|
|
226
|
+
* The link. One element at every stage, sized to the shape the stage draws, so the keyboard, a pointer and a
|
|
227
|
+
* screen reader meet an ordinary link with the button's words. Its own words are not painted: the plates paint
|
|
228
|
+
* them, so they can morph. In forced colours the plates step aside and the link draws its words itself.
|
|
229
|
+
*/
|
|
230
|
+
.words { position: absolute; inset-inline-start: 14.29cqi; inline-size: 71.43cqi; inset-block-start: calc(50% - 8.57cqi); box-sizing: border-box; min-block-size: max(44px, 17.14cqi); display: flex; align-items: center; justify-content: space-between; gap: ${Ja(4)}; padding-inline: 4.3cqi; font-family: ${I.fontBody}; font-size: clamp(0.9375rem, 3.57cqi, 1.25rem); font-weight: ${Fe("medium")}; line-height: 1.2; color: transparent; text-decoration: none; }
|
|
231
|
+
:host([stage='note']) .words { inset-inline-start: 22cqi; inset-block-start: 9cqi; inline-size: 46cqi; min-block-size: 46cqi; align-items: flex-start; padding: 4.5cqi; font-family: var(--hand); font-size: clamp(1.25rem, 5.4cqi, 2rem); font-weight: ${Fe("bold")}; line-height: 1.1; transform: rotate(-4deg); }
|
|
232
|
+
:host([stage='wireframe']) .words { justify-content: center; font-family: ${I.fontMono}; font-size: clamp(0.6875rem, 2.5cqi, 0.875rem); font-weight: ${Fe("regular")}; }
|
|
233
|
+
:host([stage='code']) .words { min-block-size: 44px; inset-block-start: calc(50% - 22px); justify-content: flex-start; padding-inline: calc(4cqi + 3ch) 4cqi; font-family: ${I.fontMono}; font-size: clamp(0.625rem, 2.15cqi, 0.8125rem); font-weight: ${Fe("regular")}; }
|
|
234
|
+
a.words:focus-visible { outline: none; box-shadow: ${I.focusShadow}; }
|
|
235
|
+
|
|
236
|
+
/* Live, it answers a pointer: the button lifts when pointed at and sits when pressed, and its fill deepens a little. */
|
|
237
|
+
.solid { transition: background-color 180ms, translate var(--impakt-motion-journey-lift-duration, 180ms) var(--impakt-motion-journey-lift-easing, cubic-bezier(0.2, 0, 0, 1)); }
|
|
238
|
+
:host([stage='live']) .frame:has(a.words:hover) .solid { background: color-mix(in srgb, var(--impakt-journey-accent) 90%, ${I.text}); translate: 0 -2px; }
|
|
239
|
+
:host([stage='live']) .frame:has(a.words:active) .solid { translate: 0 1px; transition: background-color 140ms, translate var(--impakt-motion-journey-press-duration, 140ms) var(--impakt-motion-journey-press-easing, cubic-bezier(0.4, 0, 0.2, 1)); }
|
|
240
|
+
|
|
241
|
+
/* The design notes. Each shows at its own stages, follows the stage number with the shapes, and none is read. */
|
|
242
|
+
.ann { position: absolute; pointer-events: none; color: ${I.text}; }
|
|
243
|
+
.caption { inset-block-start: 0; inset-inline-start: 0; font-family: ${I.fontMono}; font-size: 0.6875rem; letter-spacing: ${I.trackingWide}; text-transform: uppercase; color: ${I.textMuted}; white-space: nowrap; }
|
|
244
|
+
.caption span { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
|
|
245
|
+
${B(Lt.map((e,t)=>`.caption span:nth-child(${t+1}) { opacity: ${re(t)}; }`).join(`
|
|
246
|
+
`))}
|
|
247
|
+
.margin { inset-inline-start: 71cqi; inset-block-start: 10cqi; inline-size: 27cqi; font-family: var(--hand); font-size: clamp(0.75rem, 2.9cqi, 1rem); line-height: 1.25; transform: rotate(4deg); opacity: ${B(re(0))}; }
|
|
231
248
|
.width { inset-inline-start: 14.29cqi; inline-size: 71.43cqi; inset-block-start: calc(50% - 8.57cqi - 5cqi); block-size: 2cqi; border-inline: 1px solid currentColor; }
|
|
232
249
|
.width::before { content: ''; position: absolute; inset-inline: 0; inset-block-start: 50%; border-block-start: 1px solid currentColor; }
|
|
233
|
-
.width b, .height b { position: absolute; font-family: ${
|
|
250
|
+
.width b, .height b { position: absolute; font-family: ${I.fontMono}; font-size: 0.6875rem; font-weight: ${Fe("regular")}; line-height: 1; background: var(--impakt-journey-mark-ground, ${I.surfaceCard}); padding-inline: 0.4em; }
|
|
234
251
|
.width b { inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); }
|
|
235
252
|
.height { inset-inline-start: calc(14.29cqi + 71.43cqi + 2.5cqi); inline-size: 2cqi; inset-block-start: calc(50% - 8.57cqi); block-size: 17.14cqi; border-block: 1px solid currentColor; }
|
|
236
253
|
.height::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 50%; border-inline-start: 1px solid currentColor; }
|
|
237
254
|
.height b { inset-block-start: 50%; inset-inline-start: calc(100% + 0.2em); transform: translateY(-50%); background: none; }
|
|
238
|
-
.
|
|
239
|
-
.specs
|
|
240
|
-
.
|
|
241
|
-
.
|
|
242
|
-
|
|
255
|
+
.width, .height { opacity: max(${B(re(1))}, ${B(re(2))}); }
|
|
256
|
+
.specs { inset-inline-start: 14.29cqi; inset-block-start: calc(50% + 8.57cqi + 3cqi); display: flex; flex-wrap: wrap; gap: 1.5cqi; inline-size: 75cqi; opacity: ${B(re(2))}; }
|
|
257
|
+
.specs span { padding: 0.15em 0.6em; font-family: ${I.fontMono}; font-size: clamp(0.5625rem, 1.9cqi, 0.6875rem); letter-spacing: ${I.trackingWide}; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; background: ${I.surfaceCard}; }
|
|
258
|
+
.cursor { inset-inline-start: calc(14.29cqi + 71.43cqi - 4cqi); inset-block-start: calc(50% + 8.57cqi - 4cqi); opacity: ${B(re(4))}; }
|
|
259
|
+
.pointer { display: block; fill: ${I.text}; stroke: ${I.surfaceCard}; }
|
|
260
|
+
|
|
261
|
+
/* The gaps a scroll timeline drives, one keyframe set each. */
|
|
262
|
+
${B(Array.from({length:za},(e,t)=>`@keyframes impakt-journey-g${t} { from { ${ci(t)}: 0; } to { ${ci(t)}: 1; } }`).join(`
|
|
263
|
+
`))}
|
|
243
264
|
|
|
265
|
+
/* Reduced motion: each stage cuts to its final state, and the live button changes colour only. */
|
|
244
266
|
@media (prefers-reduced-motion: reduce) {
|
|
245
|
-
|
|
246
|
-
|
|
267
|
+
:host { transition: none; }
|
|
268
|
+
.solid { transition: background-color 180ms; }
|
|
269
|
+
:host([stage='live']) .frame:has(a.words:is(:hover, :active)) .solid { translate: none; }
|
|
247
270
|
}
|
|
248
271
|
@media (forced-colors: active) {
|
|
249
272
|
.plate { forced-color-adjust: none; }
|
|
273
|
+
.plate .said { display: none; }
|
|
250
274
|
.note, .solid { background: Highlight; }
|
|
251
275
|
.window { background: Canvas; border: 1px solid CanvasText; color: CanvasText; }
|
|
252
276
|
.wire { background: Canvas; border-color: CanvasText; }
|
|
253
|
-
.words
|
|
254
|
-
:host(:is([stage='note'], [stage='component'], [stage='live'])) .words { color: HighlightText; }
|
|
277
|
+
.words { color: LinkText; }
|
|
278
|
+
:host(:is([stage='note'], [stage='component'], [stage='live'])) .words { color: HighlightText; forced-color-adjust: none; }
|
|
255
279
|
.ann { color: CanvasText; }
|
|
256
280
|
}
|
|
257
|
-
`]}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.watch()}disconnectedCallback(){super.disconnectedCallback(),this.
|
|
258
|
-
<span class="ann margin" part="margin-note">${this.marginNote||
|
|
281
|
+
`]}connectedCallback(){super.connectedCallback(),Ka(),this.hasUpdated&&this.watch()}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}willUpdate(e){e.has("stage")&&!ni(this.stage)&&(this.stage="live")}updated(e){e.has("track")&&this.watch()}get frameEl(){return this.renderRoot.querySelector(".frame")}reduced(){return!!this.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches}unwatch(){this.observer?.disconnect(),this.observer=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0;let e=this.ownerDocument?.defaultView;e?.removeEventListener("scroll",this.onScroll),e?.removeEventListener("resize",this.onResize),this.frameRequest&&cancelAnimationFrame(this.frameRequest),this.frameRequest=0,this.removeAttribute("scrub");let t=this.frameEl;if(t)for(let a of[le,"animation-name","animation-duration","animation-timing-function","animation-fill-mode","animation-timeline","animation-range"])t.style.removeProperty(a)}watch(){if(this.unwatch(),this.sections=[],!this.track||!this.isConnected||typeof IntersectionObserver!="function")return;let e;try{e=Array.from(this.ownerDocument.querySelectorAll(this.track)).filter(t=>ni(t.getAttribute("data-journey-stage")))}catch{return}if(e.length){this.sections=e,this.reduced()?this.observer=new IntersectionObserver(()=>this.entered(),{threshold:0}):this.observer=new IntersectionObserver(t=>this.crossed(t),{rootMargin:"-50% 0px -50% 0px",threshold:0});for(let t of e)this.observer.observe(t);this.reduced()||this.startScrub()}}crossed(e){let a=e.find(r=>r.isIntersecting)?.target.getAttribute("data-journey-stage");ni(a)&&this.become(a)}entered(){let e=this.ownerDocument.defaultView;if(!e)return;let t=null;for(let a of this.sections)a.getBoundingClientRect().top<e.innerHeight&&(t=a.getAttribute("data-journey-stage"));ni(t)&&this.become(t)}become(e){e!==this.stage&&(this.stage=e,this.dispatchEvent(new CustomEvent("impakt-journey-stage",{detail:{stage:e},bubbles:!0,composed:!0})))}startScrub(){let e=this.ownerDocument.defaultView;if(!e)return;let a=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: scroll()")&&CSS.supports("animation-range: 0px 1px")&&Ka()&&this.sections.length-1<=za&&this.rootScrolls();if(e.addEventListener("resize",this.onResize,{passive:!0}),typeof ResizeObserver=="function"){this.resizeObserver=new ResizeObserver(this.onResize),this.resizeObserver.observe(this.ownerDocument.documentElement);for(let r of this.sections)this.resizeObserver.observe(r)}this.easings=Sa.map(r=>Xr(this.easingOf(r.name,r.easing))),a?(this.setAttribute("scrub","timeline"),this.timeline()):typeof e.requestAnimationFrame=="function"&&(this.setAttribute("scrub","frame"),e.addEventListener("scroll",this.onScroll,{passive:!0}),this.scrub())}rootScrolls(){let e=this.ownerDocument.defaultView;for(let t=this.sections[0]?.parentElement;t&&t!==this.ownerDocument.body&&t!==this.ownerDocument.documentElement;t=t.parentElement){let{overflowY:a}=e.getComputedStyle(t);if((a==="auto"||a==="scroll")&&t.scrollHeight>t.clientHeight)return!1}return!0}easingOf(e,t){let a=this.ownerDocument.defaultView?.getComputedStyle(this).getPropertyValue(`--impakt-motion-journey-${e}-easing`)??"",r=/cubic-bezier\(([^)]+)\)/.exec(a)?.[1]?.split(",").map(Number);return r?.length===4&&r.every(Number.isFinite)?r:t}gaps(){let e=this.ownerDocument.defaultView,t=e.innerHeight/2,a=this.sections.map(s=>s.getBoundingClientRect().top+e.scrollY),r=this.sections.map(s=>ka(s.getAttribute("data-journey-stage")));return a.slice(1).map((s,o)=>({from:r[o],to:r[o+1],start:a[o]-t,end:s-t}))}timeline(){let e=this.frameEl;if(!e||!this.sections.length)return;let t=this.gaps().filter(o=>o.end>o.start),a=ka(this.sections[0].getAttribute("data-journey-stage")),r=t.map((o,h)=>o.to===o.from?"":` + ${o.to-o.from} * var(${ci(h)})`).join("");e.style.setProperty(le,`calc(${a}${r})`);let s=o=>t.map(o).join(", ")||"none";e.style.setProperty("animation-name",t.length?s((o,h)=>`impakt-journey-g${h}`):"none"),e.style.setProperty("animation-duration",s(()=>"1ms")),e.style.setProperty("animation-timing-function",s(o=>{let h=Za(o.from,o.to);return`var(--impakt-motion-journey-${h.name}-easing, cubic-bezier(${h.easing.join(", ")}))`})),e.style.setProperty("animation-fill-mode",s(()=>"both")),e.style.setProperty("animation-timeline",s(()=>"scroll(root block)")),e.style.setProperty("animation-range",s(o=>`${Math.round(o.start)}px ${Math.round(o.end)}px`))}scrub(){let e=this.ownerDocument.defaultView,t=this.frameEl;if(!e||!t||!this.sections.length)return;let a=e.innerHeight/2,r=this.sections.map(We=>We.getBoundingClientRect().top),s=0;r.forEach((We,xa)=>{We<=a&&(s=xa)});let o=We=>ka(this.sections[We].getAttribute("data-journey-stage")),h=s+1<this.sections.length?s+1:s,m=r[h]-r[s],u=h===s||m<=0?0:Math.min(1,Math.max(0,(a-r[s])/m)),[N,ne]=[o(s),o(h)],Je=N===ne?0:this.easings[Sa.indexOf(Za(N,ne))](u),$a=N+Je*(ne-N);t.style.setProperty(le,$a.toFixed(4))}lines(e,t){return e?.length?e.map(a=>ye`<span class=${a.trim().startsWith("//")?"comment":""}>${a}</span>`):Array.from({length:t},(a,r)=>ye`<span class="rule" style=${`inline-size:${[58,72,44][r%3]}%`}></span>`)}notes(){let e=this.captions?.length?this.captions:[De("Note \u2014 Discover"),De("Wireframe \u2014 Design low-fi"),De("Component \u2014 Design hi-fi"),De("Code \u2014 Build"),De("Live \u2014 Launch")],t=this.specs?.length?this.specs:[De("Fill \xB7 Accent/Signal"),De("Radius \xB7 0"),De("Type \xB7 Archivo 20")];return ye`<span class="ann caption" part="caption">${Lt.map((a,r)=>ye`<span>${String(r+1).padStart(2,"0")} · ${e[r]??""}</span>`)}</span>
|
|
282
|
+
<span class="ann margin" part="margin-note">${this.marginNote||De("make it the biggest thing on the page")}</span>
|
|
259
283
|
<span class="ann width"><b>${this.markWidth}</b></span>
|
|
260
284
|
<span class="ann height"><b>${this.markHeight}</b></span>
|
|
261
|
-
<span class="ann specs" part="specs">${
|
|
262
|
-
<span class="ann cursor">${
|
|
263
|
-
<span class="plate note" aria-hidden="true"
|
|
264
|
-
<span class="plate bar wire" aria-hidden="true"><svg viewBox="0 0 100 100" preserveAspectRatio="none" fill="none" stroke="currentColor" focusable="false"><path d="M0 0 100 100M0 100 100 0" vector-effect="non-scaling-stroke" /></svg
|
|
285
|
+
<span class="ann specs" part="specs">${t.map(a=>ye`<span>${a}</span>`)}</span>
|
|
286
|
+
<span class="ann cursor">${Vr}</span>`}render(){let e=ye`<span class="said"><span class="text">${this.label}</span>${Yr}</span>`,t=ye`<span class="text">${this.label}</span>`;return ye`<div class="frame" part="frame" aria-hidden=${this.decorative?"true":Va}>
|
|
287
|
+
<span class="plate note" aria-hidden="true">${e}</span>
|
|
288
|
+
<span class="plate bar wire" aria-hidden="true"><svg viewBox="0 0 100 100" preserveAspectRatio="none" fill="none" stroke="currentColor" focusable="false"><path d="M0 0 100 100M0 100 100 0" vector-effect="non-scaling-stroke" /></svg>${e}</span>
|
|
265
289
|
<span class="plate bar shadow" aria-hidden="true"></span>
|
|
266
|
-
<span class="plate bar solid" aria-hidden="true"
|
|
267
|
-
<span class="plate window" aria-hidden="true"><span class="before">${this.lines(this.code?.before,3)}</span
|
|
268
|
-
${this.annotations?
|
|
269
|
-
${this.decorative||!this.href?
|
|
270
|
-
</div>`}};customElements.define("impakt-journey-button",
|
|
290
|
+
<span class="plate bar solid" aria-hidden="true">${e}</span>
|
|
291
|
+
<span class="plate window" aria-hidden="true"><span class="before">${this.lines(this.code?.before,3)}</span>${e}<span class="after">${this.lines(this.code?.after,2)}</span></span>
|
|
292
|
+
${this.annotations?ye`<span class="notes" aria-hidden="true">${this.notes()}</span>`:Va}
|
|
293
|
+
${this.decorative||!this.href?ye`<span class="words" part="button">${t}</span>`:ye`<a class="words" part="button" href=${this.href}>${t}</a>`}
|
|
294
|
+
</div>`}};customElements.define("impakt-journey-button",di);import{css as ct,html as v,nothing as O}from"./atomic-ui.js";import{ImpaktElement as ue,focusRing as Ta,fontSize as Z,fontWeight as pe,lineHeight as xt,lockScroll as Jr,space as z,spaceAround as $i,t as l,token as $t,unlockScroll as ir}from"./atomic-ui.js";var Qr=v`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
|
|
271
295
|
<path d="M5 17 17 5M8 5h9v9" />
|
|
272
|
-
</svg>`,
|
|
273
|
-
:host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${
|
|
274
|
-
ol { list-style: none; margin: 0; padding: 0; border-block-start: ${
|
|
296
|
+
</svg>`,pi=class extends ue{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},start:{type:Number},label:{type:String},columns:{type:Array},preview:{state:!0},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.columns=[],this.spaceAbove="none",this.spaceBelow="none",this.preview=null}static{this.styles=[...ue.styles,Ta,$i,ct`
|
|
297
|
+
:host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${$t("color.accent.default","#ffd43b")}; --impakt-work-on-accent: ${$t("color.accent.on","#111111")}; }
|
|
298
|
+
ol { list-style: none; margin: 0; padding: 0; border-block-start: ${l.borderThin} solid ${l.text}; }
|
|
275
299
|
.columns + ol { border-block-start: 0; }
|
|
276
300
|
li, .columns { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${z(6)}; padding: ${z(5)} ${z(8)}; }
|
|
277
301
|
.texts li, .texts.columns { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) auto 22px; }
|
|
278
|
-
li { position: relative; border-block-end: ${
|
|
279
|
-
.columns { padding-block: ${z(3)}; border-block-end: ${
|
|
302
|
+
li { position: relative; border-block-end: ${l.borderThin} solid ${l.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
303
|
+
.columns { padding-block: ${z(3)}; border-block-end: ${l.borderThin} solid ${l.text}; font-family: ${l.fontMono}; font-size: 0.6875rem; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.textMuted}; }
|
|
280
304
|
.columns .last { grid-column: -3; text-align: end; }
|
|
281
|
-
.number { font-family: ${
|
|
282
|
-
.name { font-family: ${
|
|
305
|
+
.number { font-family: ${l.fontMono}; font-size: ${Z("sm")}; font-variant-numeric: tabular-nums; color: ${l.textMuted}; }
|
|
306
|
+
.name { font-family: ${l.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${pe("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${l.text}; overflow-wrap: anywhere; }
|
|
283
307
|
.texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }
|
|
284
308
|
.name a { color: inherit; text-decoration: none; }
|
|
285
309
|
/* The link is stretched over the row, so the row is one target. */
|
|
286
310
|
.name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
|
|
287
311
|
.name a:focus-visible { outline: none; }
|
|
288
|
-
.name a:focus-visible::after { box-shadow: ${
|
|
289
|
-
.text { margin: 0; font-size: ${
|
|
312
|
+
.name a:focus-visible::after { box-shadow: ${l.focusShadow}; }
|
|
313
|
+
.text { margin: 0; font-size: ${Z("md")}; line-height: ${xt("normal")}; color: ${l.textMuted}; }
|
|
290
314
|
.side { display: flex; flex-direction: column; align-items: flex-end; gap: ${z(2)}; text-align: end; }
|
|
291
|
-
.meta, .price { font-family: ${
|
|
315
|
+
.meta, .price { font-family: ${l.fontMono}; font-size: ${Z("sm")}; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.textMuted}; }
|
|
292
316
|
.price { font-size: 0.6875rem; }
|
|
293
317
|
/* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */
|
|
294
|
-
.badge { display: inline-block; padding: ${z(1)} ${z(2.5)}; font-family: ${
|
|
295
|
-
li:not(:has(a)) .badge { color: ${
|
|
296
|
-
.arrow { display: flex; color: ${
|
|
318
|
+
.badge { display: inline-block; padding: ${z(1)} ${z(2.5)}; font-family: ${l.fontMono}; font-size: 0.6875rem; font-weight: ${pe("medium")}; line-height: 1.4; letter-spacing: ${l.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${l.surfaceCard}; background: ${l.text}; border: ${l.borderThin} solid ${l.text}; border-radius: ${l.radiusSm}; }
|
|
319
|
+
li:not(:has(a)) .badge { color: ${l.text}; background: transparent; }
|
|
320
|
+
.arrow { display: flex; color: ${l.text}; }
|
|
297
321
|
/* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */
|
|
298
|
-
li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${
|
|
299
|
-
li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${
|
|
300
|
-
li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${
|
|
301
|
-
li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${
|
|
322
|
+
li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${l.text}; }
|
|
323
|
+
li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${l.surfaceCard}; }
|
|
324
|
+
li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${l.surfaceCard} 78%, ${l.text}); }
|
|
325
|
+
li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${l.text}; background: ${l.surfaceCard}; border-color: ${l.surfaceCard}; }
|
|
302
326
|
li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }
|
|
303
327
|
li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }
|
|
304
328
|
/* The preview card follows the pointer. Only its transform changes, so it costs no layout. */
|
|
305
|
-
.preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${z(2)}; background: ${
|
|
329
|
+
.preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${z(2)}; background: ${l.surfaceCard}; border: ${l.borderThin} solid ${l.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }
|
|
306
330
|
.preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
|
|
307
|
-
.preview span { display: block; padding-block-end: ${z(2)}; font-family: ${
|
|
331
|
+
.preview span { display: block; padding-block-end: ${z(2)}; font-family: ${l.fontMono}; font-size: 0.6875rem; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.textMuted}; }
|
|
308
332
|
@container impakt-work-list (max-width: 40rem) {
|
|
309
333
|
li, .texts li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${z(3)}; padding-inline: ${z(4)}; }
|
|
310
334
|
.text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${z(2)}; }
|
|
@@ -319,72 +343,72 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
319
343
|
li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }
|
|
320
344
|
.badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }
|
|
321
345
|
}
|
|
322
|
-
`]}point(
|
|
323
|
-
<span>${
|
|
324
|
-
</div>`}render(){let
|
|
325
|
-
${
|
|
326
|
-
<span class="number" aria-hidden="true">${
|
|
346
|
+
`]}point(i,e){if(!e.preview||i.pointerType!=="mouse"||window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){this.preview&&(this.preview=null);return}let t=this.getBoundingClientRect();this.preview={src:e.preview,label:e.previewLabel??"",x:i.clientX-t.left,y:i.clientY-t.top}}columnRow(i){let e=this.columns??[];if(!e.length)return O;let[t,a,...r]=e;return v`<div class=${i?"columns texts":"columns"} part="columns" aria-hidden="true">
|
|
347
|
+
<span>${t??""}</span><span>${a??""}</span>${r.length?v`<span class="last">${r.join(" \xB7 ")}</span>`:O}
|
|
348
|
+
</div>`}render(){let i=this.items??[],e=i.some(a=>!!a.text),t=this.preview;return v`${this.columnRow(e)}<ol role="list" part="list" class=${e?"texts":""} aria-label=${this.label||O} @pointerleave=${()=>this.preview=null}>
|
|
349
|
+
${i.map((a,r)=>{let s=String(this.start+r).padStart(2,"0"),o=a.badge||a.price||a.meta;return v`<li part="row" class=${a.featured?"featured":""} @pointermove=${h=>this.point(h,a)}>
|
|
350
|
+
<span class="number" aria-hidden="true">${s}</span>
|
|
327
351
|
<div class="name" part="name" role="heading" aria-level=${this.headingLevel}>
|
|
328
352
|
${a.href?v`<a href=${a.href} part="link">${a.name}</a>`:a.name}
|
|
329
353
|
</div>
|
|
330
|
-
${e?v`<p class="text" part="text">${a.text??""}</p>`:
|
|
331
|
-
${
|
|
332
|
-
${a.badge?v`<span class="badge" part="badge">${a.badge}</span>`:
|
|
333
|
-
${a.price?v`<span class="price" part="price">${a.price}</span>`:
|
|
334
|
-
${a.meta?v`<span class="meta" part="meta">${a.meta}</span>`:
|
|
354
|
+
${e?v`<p class="text" part="text">${a.text??""}</p>`:O}
|
|
355
|
+
${o?v`<span class="side">
|
|
356
|
+
${a.badge?v`<span class="badge" part="badge">${a.badge}</span>`:O}
|
|
357
|
+
${a.price?v`<span class="price" part="price">${a.price}</span>`:O}
|
|
358
|
+
${a.meta?v`<span class="meta" part="meta">${a.meta}</span>`:O}
|
|
335
359
|
</span>`:v`<span></span>`}
|
|
336
|
-
${a.href?v`<span class="arrow">${
|
|
360
|
+
${a.href?v`<span class="arrow">${Qr}</span>`:v`<span></span>`}
|
|
337
361
|
</li>`})}
|
|
338
|
-
</ol>${
|
|
339
|
-
${
|
|
340
|
-
</div>`:
|
|
362
|
+
</ol>${t?v`<div class="preview" part="preview" aria-hidden="true" style=${`--x:${t.x}px;--y:${t.y}px`}>
|
|
363
|
+
${t.label?v`<span>${t.label}</span>`:O}<img src=${t.src} alt="" />
|
|
364
|
+
</div>`:O}`}},mi=class extends ue{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=[...ue.styles,$i,ct`
|
|
341
365
|
:host { display: block; container: impakt-stat-row / inline-size; }
|
|
342
366
|
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${z(6)}; }
|
|
343
|
-
li { border-block-start: ${
|
|
367
|
+
li { border-block-start: ${l.borderThin} solid ${l.rule}; padding-block-start: ${z(5)}; }
|
|
344
368
|
p { margin: 0; display: flex; flex-direction: column; gap: ${z(2)}; }
|
|
345
|
-
.value { font-family: ${
|
|
346
|
-
.label { font-size: ${
|
|
369
|
+
.value { font-family: ${l.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${pe("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${l.textHeading}; }
|
|
370
|
+
.label { font-size: ${Z("sm")}; line-height: ${xt("normal")}; color: ${l.textMuted}; }
|
|
347
371
|
/* The note is meta: monospace capitals at 11px. */
|
|
348
|
-
.note { font-family: ${
|
|
349
|
-
`]}render(){return v`<ul role="list" part="list" aria-label=${this.label||
|
|
350
|
-
${this.items.map(
|
|
351
|
-
<p><span class="value" part="value">${
|
|
372
|
+
.note { font-family: ${l.fontMono}; font-size: 0.6875rem; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.textMuted}; }
|
|
373
|
+
`]}render(){return v`<ul role="list" part="list" aria-label=${this.label||O}>
|
|
374
|
+
${this.items.map(i=>v`<li part="stat">
|
|
375
|
+
<p><span class="value" part="value">${i.figure}</span> <span class="label" part="label">${i.label}</span>${i.note?v` <span class="note">${i.note}</span>`:O}</p>
|
|
352
376
|
</li>`)}
|
|
353
|
-
</ul>`}},
|
|
377
|
+
</ul>`}},hi=class extends ue{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=[...ue.styles,$i,ct`
|
|
354
378
|
:host { display: block; container: impakt-faq / inline-size; }
|
|
355
379
|
.head { display: flex; flex-direction: column; gap: ${z(4)}; margin-block-end: ${z(10)}; max-inline-size: 44rem; }
|
|
356
|
-
.eyebrow { margin: 0; font-family: ${
|
|
357
|
-
.heading { font-family: ${
|
|
358
|
-
.lead { margin: 0; font-size: ${
|
|
380
|
+
.eyebrow { margin: 0; font-family: ${l.fontEyebrow}; font-size: ${Z("sm")}; color: var(--impakt-eyebrow, ${l.textMuted}); }
|
|
381
|
+
.heading { font-family: ${l.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${pe("semibold")}; line-height: 1.04; letter-spacing: -0.04em; color: ${l.textHeading}; }
|
|
382
|
+
.lead { margin: 0; font-size: ${Z("md")}; line-height: ${xt("normal")}; color: ${l.textMuted}; }
|
|
359
383
|
/* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */
|
|
360
|
-
impakt-accordion { border-block-start: ${
|
|
361
|
-
impakt-accordion::part(item) { border-block-end: ${
|
|
362
|
-
impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${z(5)}; font-family: ${
|
|
363
|
-
impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${
|
|
384
|
+
impakt-accordion { border-block-start: ${l.borderThin} solid ${l.text}; }
|
|
385
|
+
impakt-accordion::part(item) { border-block-end: ${l.borderThin} solid ${l.text}; }
|
|
386
|
+
impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${z(5)}; font-family: ${l.fontHeading}; font-size: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${pe("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
|
|
387
|
+
impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${l.textMuted}; line-height: ${xt("normal")}; }
|
|
364
388
|
@media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }
|
|
365
|
-
`]}render(){let
|
|
366
|
-
${this.eyebrow?v`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:
|
|
367
|
-
${this.heading?v`<div id=${
|
|
368
|
-
${this.lead?v`<p class="lead" part="lead">${this.lead}</p>`:
|
|
369
|
-
</div>`:
|
|
389
|
+
`]}render(){let i=this.id_("heading"),e=Math.min(Math.max(this.headingLevel,1),5),t=this.eyebrow||this.heading||this.lead?v`<div class="head" part="head">
|
|
390
|
+
${this.eyebrow?v`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:O}
|
|
391
|
+
${this.heading?v`<div id=${i} class="heading" part="heading" role="heading" aria-level=${e}>${this.heading}</div>`:O}
|
|
392
|
+
${this.lead?v`<p class="lead" part="lead">${this.lead}</p>`:O}
|
|
393
|
+
</div>`:O,a=v`<impakt-accordion part="questions" marker="plus" .items=${this.items} .headingLevel=${e+1} .open=${this.open} .multiple=${this.multiple}>
|
|
370
394
|
${this.items.map(r=>v`<slot name=${`panel-${r.id}`} slot=${`panel-${r.id}`}>${r.body}</slot>`)}
|
|
371
|
-
</impakt-accordion>`;return this.heading?v`<section aria-labelledby=${
|
|
395
|
+
</impakt-accordion>`;return this.heading?v`<section aria-labelledby=${i}>${t}${a}</section>`:v`<div>${t}${a}</div>`}},ui=class extends ue{constructor(){super();this.hasFooter=!1;this.open=!1,this.links=[],this.current="",this.brand="",this.mark="",this.home="/",this.label="Menu",this.closeText="Close",this.currentText=""}static{this.properties={open:{type:Boolean,reflect:!0},links:{type:Array},current:{type:String},brand:{type:String},mark:{type:String},home:{type:String},label:{type:String},closeText:{type:String,attribute:"close-text"},currentText:{type:String,attribute:"current-text"}}}static{this.styles=[...ue.styles,Ta,ct`
|
|
372
396
|
/* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */
|
|
373
|
-
:host { --impakt-menu: ${
|
|
397
|
+
:host { --impakt-menu: ${l.text}; --impakt-menu-on: ${l.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${l.surfaceCard} 78%, ${l.text}); --impakt-menu-rule: color-mix(in srgb, ${l.surfaceCard} 18%, ${l.text}); }
|
|
374
398
|
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); }
|
|
375
399
|
dialog[open] { display: flex; }
|
|
376
400
|
dialog::backdrop { background: var(--impakt-menu); }
|
|
377
|
-
.bar { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding: ${z(2)} ${z(4)}; border-block-end: ${
|
|
378
|
-
.brand { color: inherit; text-decoration: none; font-family: ${
|
|
379
|
-
.brand.marked { display: inline-flex; align-items: center; gap: ${z(3)}; min-block-size: 44px; font-weight: ${
|
|
380
|
-
.mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${
|
|
381
|
-
.close { display: inline-flex; align-items: center; gap: ${z(2)}; min-block-size: 44px; padding: 0 ${z(4)}; font: inherit; font-size: ${
|
|
401
|
+
.bar { display: flex; align-items: center; justify-content: space-between; gap: ${z(4)}; padding: ${z(2)} ${z(4)}; border-block-end: ${l.borderThin} solid var(--impakt-menu-rule); }
|
|
402
|
+
.brand { color: inherit; text-decoration: none; font-family: ${l.fontHeading}; font-size: ${Z("md")}; font-weight: ${pe("semibold")}; border-radius: ${l.radiusSm}; }
|
|
403
|
+
.brand.marked { display: inline-flex; align-items: center; gap: ${z(3)}; min-block-size: 44px; font-weight: ${pe("medium")}; }
|
|
404
|
+
.mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${Z("sm")}; }
|
|
405
|
+
.close { display: inline-flex; align-items: center; gap: ${z(2)}; min-block-size: 44px; padding: 0 ${z(4)}; font: inherit; font-size: ${Z("sm")}; font-weight: ${pe("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${l.radius}; cursor: pointer; }
|
|
382
406
|
nav { flex: 1; padding: ${z(6)} ${z(5)} 0; }
|
|
383
407
|
ol { list-style: none; margin: 0; padding: 0; }
|
|
384
|
-
li { border-block-end: ${
|
|
385
|
-
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: ${
|
|
408
|
+
li { border-block-end: ${l.borderThin} solid var(--impakt-menu-rule); }
|
|
409
|
+
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: ${l.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${pe("semibold")}; line-height: 1; letter-spacing: -0.05em; }
|
|
386
410
|
li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
|
|
387
|
-
.number { font-family: ${
|
|
411
|
+
.number { font-family: ${l.fontMono}; font-size: ${Z("sm")}; font-weight: ${pe("regular")}; letter-spacing: 0; color: var(--impakt-menu-muted); }
|
|
388
412
|
/*
|
|
389
413
|
* The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets
|
|
390
414
|
* --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).
|
|
@@ -397,9 +421,9 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
397
421
|
/* What is slotted at the foot is read on ink too. */
|
|
398
422
|
::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }
|
|
399
423
|
@media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }
|
|
400
|
-
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(e){if(!e.has("open"))return;let
|
|
424
|
+
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(e){if(!e.has("open"))return;let t=this.dialog;t&&(this.open?(typeof t.showModal=="function"?t.showModal():t.setAttribute("open",""),Jr(this)):(typeof t.close=="function"&&t.open?t.close():t.removeAttribute("open"),ir(this)))}disconnectedCallback(){super.disconnectedCallback(),ir(this)}close(){this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}footerChanged(e){this.hasFooter=e.target.assignedNodes().length>0,this.requestUpdate()}render(){return v`<dialog part="dialog" aria-label=${this.label} @cancel=${()=>this.close()} @close=${()=>this.close()}>
|
|
401
425
|
<div class="bar" part="bar">
|
|
402
|
-
${this.brand?v`<a class=${this.mark?"brand marked":"brand"} href=${this.home||"/"} part="brand">${this.mark?v`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>`:
|
|
426
|
+
${this.brand?v`<a class=${this.mark?"brand marked":"brand"} href=${this.home||"/"} part="brand">${this.mark?v`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>`:O}${this.brand}</a>`:v`<span></span>`}
|
|
403
427
|
<button class="close" type="button" part="close" @click=${()=>this.close()}>
|
|
404
428
|
<span>${this.closeText}</span>
|
|
405
429
|
<svg viewBox="0 0 12 12" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M1 1l10 10M11 1 1 11" /></svg>
|
|
@@ -407,117 +431,117 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
407
431
|
</div>
|
|
408
432
|
<nav aria-label=${this.label} part="nav">
|
|
409
433
|
<ol role="list">
|
|
410
|
-
${(this.links??[]).map((e,
|
|
411
|
-
<a href=${e.href} class=${
|
|
412
|
-
<span class="words">${e.label}</span><span class="number" aria-hidden="true">${
|
|
434
|
+
${(this.links??[]).map((e,t)=>{let a=!!this.current&&e.href===this.current,r=String(t+1).padStart(2,"0"),s=a&&!!this.currentText;return v`<li>
|
|
435
|
+
<a href=${e.href} class=${s?"worded":""} aria-current=${a?"page":O} part="link" @click=${()=>this.close()}>
|
|
436
|
+
<span class="words">${e.label}</span><span class="number" aria-hidden="true">${s?`${this.currentText} \xB7 ${r}`:r}</span>
|
|
413
437
|
</a>
|
|
414
438
|
</li>`})}
|
|
415
439
|
</ol>
|
|
416
440
|
</nav>
|
|
417
441
|
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
418
|
-
</dialog>`}},
|
|
442
|
+
</dialog>`}},gi=class extends ue{static{this.properties={eyebrow:{type:String},heading:{type:String},lead:{type:String},points:{type:Array},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.eyebrow="",this.heading="",this.lead="",this.points=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ue.styles,$i,ct`
|
|
419
443
|
:host { display: block; container: impakt-offer / inline-size; }
|
|
420
444
|
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: ${z(12)}; row-gap: ${z(5)}; align-items: start; }
|
|
421
445
|
.copy { grid-area: copy; }
|
|
422
446
|
.actions { grid-area: actions; }
|
|
423
447
|
ol { grid-area: points; }
|
|
424
448
|
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${z(5)}; }
|
|
425
|
-
.eyebrow { margin: 0; font-family: ${
|
|
426
|
-
.heading { font-family: ${
|
|
427
|
-
.lead { margin: 0; max-inline-size: 32rem; font-size: ${
|
|
449
|
+
.eyebrow { margin: 0; font-family: ${l.fontEyebrow}; font-size: ${Z("sm")}; color: var(--impakt-eyebrow, ${l.textMuted}); }
|
|
450
|
+
.heading { font-family: ${l.fontHeading}; font-size: clamp(2rem, 7cqi, 4rem); font-weight: ${pe("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${l.textHeading}; }
|
|
451
|
+
.lead { margin: 0; max-inline-size: 32rem; font-size: ${Z("md")}; line-height: ${xt("normal")}; color: ${l.text}; }
|
|
428
452
|
ol { list-style: none; margin: 0; padding: 0; }
|
|
429
|
-
li { display: flex; gap: ${z(5)}; padding-block: ${z(5)}; border-block-start: ${
|
|
430
|
-
.number { flex: none; font-family: ${
|
|
453
|
+
li { display: flex; gap: ${z(5)}; padding-block: ${z(5)}; border-block-start: ${l.borderThin} solid ${l.text}; font-size: ${Z("lg")}; font-weight: ${pe("medium")}; line-height: 1.2; color: ${l.text}; }
|
|
454
|
+
.number { flex: none; font-family: ${l.fontMono}; font-size: ${Z("sm")}; font-weight: ${pe("regular")}; line-height: 1.6; }
|
|
431
455
|
@container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${z(8)}; } }
|
|
432
|
-
`]}render(){let
|
|
456
|
+
`]}render(){let i=Math.min(Math.max(this.headingLevel,1),6);return v`<div class="offer" part="offer">
|
|
433
457
|
<div class="copy">
|
|
434
|
-
${this.eyebrow?v`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:
|
|
435
|
-
${this.heading?v`<div class="heading" part="heading" role="heading" aria-level=${
|
|
436
|
-
${this.lead?v`<p class="lead" part="lead">${this.lead}</p>`:
|
|
458
|
+
${this.eyebrow?v`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:O}
|
|
459
|
+
${this.heading?v`<div class="heading" part="heading" role="heading" aria-level=${i}>${this.heading}</div>`:O}
|
|
460
|
+
${this.lead?v`<p class="lead" part="lead">${this.lead}</p>`:O}
|
|
437
461
|
</div>
|
|
438
462
|
<div class="actions" part="actions"><slot name="actions"></slot></div>
|
|
439
463
|
${(this.points??[]).length?v`<ol role="list" part="points">
|
|
440
|
-
${this.points.map((e,
|
|
441
|
-
</ol>`:
|
|
442
|
-
</div>`}},
|
|
464
|
+
${this.points.map((e,t)=>v`<li><span class="number" aria-hidden="true">${String(t+1).padStart(2,"0")}</span><span>${e}</span></li>`)}
|
|
465
|
+
</ol>`:O}
|
|
466
|
+
</div>`}},bi=class extends ue{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=[...ue.styles,Ta,ct`
|
|
443
467
|
:host { display: block; block-size: 100%; }
|
|
444
|
-
article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${z(4)}; padding: ${z(6)}; background: ${
|
|
445
|
-
.meta { margin: 0; font-family: ${
|
|
446
|
-
.heading { font-family: ${
|
|
468
|
+
article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${z(4)}; padding: ${z(6)}; background: ${l.surfaceCard}; border: ${l.borderThin} solid ${l.text}; border-radius: ${l.radius}; transition: background-color 140ms ease-out; }
|
|
469
|
+
.meta { margin: 0; font-family: ${l.fontMono}; font-size: ${Z("sm")}; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.textMuted}; }
|
|
470
|
+
.heading { font-family: ${l.fontHeading}; font-size: ${Z("xl")}; font-weight: ${pe("semibold")}; line-height: 1.15; letter-spacing: -0.025em; color: ${l.text}; }
|
|
447
471
|
.heading a { color: inherit; text-decoration: none; }
|
|
448
472
|
.heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
|
|
449
473
|
.heading a:focus-visible { outline: none; }
|
|
450
|
-
.heading a:focus-visible::after { box-shadow: ${
|
|
474
|
+
.heading a:focus-visible::after { box-shadow: ${l.focusShadow}; }
|
|
451
475
|
article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
|
|
452
|
-
.text { margin: 0; font-size: ${
|
|
453
|
-
.more { margin-block-start: auto; font-family: ${
|
|
476
|
+
.text { margin: 0; font-size: ${Z("sm")}; line-height: ${xt("normal")}; color: ${l.textMuted}; }
|
|
477
|
+
.more { margin-block-start: auto; font-family: ${l.fontMono}; font-size: ${Z("sm")}; letter-spacing: ${l.trackingWide}; text-transform: uppercase; color: ${l.text}; }
|
|
454
478
|
@media (forced-colors: active) { article { border-color: CanvasText; } }
|
|
455
|
-
`]}render(){let
|
|
456
|
-
${this.meta?v`<p class="meta" part="meta">${this.meta}</p>`:
|
|
457
|
-
<div class="heading" part="heading" role="heading" aria-level=${
|
|
458
|
-
${this.text?v`<p class="text" part="text">${this.text}</p>`:
|
|
459
|
-
${this.linkText&&this.href?v`<span class="more" aria-hidden="true">${this.linkText} →</span>`:
|
|
460
|
-
</article>`}},
|
|
461
|
-
:host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${
|
|
462
|
-
.handle { position: absolute; inline-size: 6px; block-size: 6px; box-sizing: border-box; background: ${
|
|
479
|
+
`]}render(){let i=Math.min(Math.max(this.headingLevel,1),6);return v`<article part="card">
|
|
480
|
+
${this.meta?v`<p class="meta" part="meta">${this.meta}</p>`:O}
|
|
481
|
+
<div class="heading" part="heading" role="heading" aria-level=${i}>${this.href?v`<a href=${this.href} part="link">${this.heading}</a>`:this.heading}</div>
|
|
482
|
+
${this.text?v`<p class="text" part="text">${this.text}</p>`:O}
|
|
483
|
+
${this.linkText&&this.href?v`<span class="more" aria-hidden="true">${this.linkText} →</span>`:O}
|
|
484
|
+
</article>`}},fi=class extends ue{static{this.properties={label:{type:String},cursor:{type:String},hideLabelOn:{type:String,reflect:!0,attribute:"hide-label-on"}}}constructor(){super(),this.label="",this.cursor=null,this.hideLabelOn=""}static{this.styles=[...ue.styles,ct`
|
|
485
|
+
:host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${$t("color.accent.default","#ffd43b")}; color: ${$t("color.accent.on","#1a1a1a")}; outline: 1.5px solid ${$t("color.accent.on","#1a1a1a")}; outline-offset: -1px; }
|
|
486
|
+
.handle { position: absolute; inline-size: 6px; block-size: 6px; box-sizing: border-box; background: ${l.surfaceCard}; border: 1px solid ${$t("color.accent.on","#1a1a1a")}; }
|
|
463
487
|
.handle:nth-of-type(1) { inset-block-start: -3px; inset-inline-start: -3px; }
|
|
464
488
|
.handle:nth-of-type(2) { inset-block-start: -3px; inset-inline-end: -3px; }
|
|
465
489
|
.handle:nth-of-type(3) { inset-block-end: -3px; inset-inline-start: -3px; }
|
|
466
490
|
.handle:nth-of-type(4) { inset-block-end: -3px; inset-inline-end: -3px; }
|
|
467
491
|
/* The label is meta: monospace capitals at 11px, square. */
|
|
468
|
-
.label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${
|
|
492
|
+
.label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${l.fontMono}; font-size: 0.6875rem; font-weight: ${pe("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${l.surfaceCard}; background: ${l.text}; border-radius: ${l.radiusSm}; }
|
|
469
493
|
@media (max-width: 40rem) { :host([hide-label-on='phone']) .label { display: none; } }
|
|
470
494
|
/* The pointer's tip sits on the bottom-right handle. */
|
|
471
495
|
.cursor { position: absolute; inset-block-start: calc(100% - 1px); inset-inline-start: calc(100% - 1px); display: flex; align-items: flex-start; gap: 2px; pointer-events: none; line-height: 1; }
|
|
472
|
-
.cursor svg { display: block; flex: none; color: ${
|
|
473
|
-
.tag { margin-block-start: 14px; padding: 3px 6px; white-space: nowrap; font-family: ${
|
|
496
|
+
.cursor svg { display: block; flex: none; color: ${l.text}; stroke: ${l.surfaceCard}; }
|
|
497
|
+
.tag { margin-block-start: 14px; padding: 3px 6px; white-space: nowrap; font-family: ${l.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${l.surfaceCard}; background: ${l.text}; }
|
|
474
498
|
@media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }
|
|
475
|
-
`]}render(){return v`<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?v`<span class="label" part="label" aria-hidden="true">${this.label}</span>`:
|
|
499
|
+
`]}render(){return v`<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?v`<span class="label" part="label" aria-hidden="true">${this.label}</span>`:O}${this.cursor!=null?v`<span class="cursor" part="cursor" aria-hidden="true"
|
|
476
500
|
><svg viewBox="0 0 16 20" width="16" height="20" focusable="false"><path d="M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z" fill="currentColor" stroke-width="1.2" stroke-linejoin="round" /></svg
|
|
477
|
-
>${this.cursor?v`<span class="tag">${this.cursor}</span>`:
|
|
478
|
-
>`:
|
|
479
|
-
.round { ${
|
|
501
|
+
>${this.cursor?v`<span class="tag">${this.cursor}</span>`:O}</span
|
|
502
|
+
>`:O}`}};customElements.define("impakt-work-list",pi);customElements.define("impakt-stat-row",mi);customElements.define("impakt-faq",hi);customElements.define("impakt-site-menu",ui);customElements.define("impakt-offer",gi);customElements.define("impakt-post-card",bi);customElements.define("impakt-highlight",fi);import{css as Re,html as M,nothing as U}from"./atomic-ui.js";import{say as ve,ImpaktElement as ce,focusRing as Mi,targetSize as Ma,visuallyHidden as Kr,fontWeight as Ie,lineHeight as sr,space as g,spaceAround as Ze,t as p,token as Zr,type as D,iconSvg as dt}from"./atomic-ui.js";var es=Zr("color.accent.default","#c8a15a"),ar=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,nr=Re`
|
|
503
|
+
.round { ${Ma} 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; }
|
|
480
504
|
.round:hover:not(:disabled) { box-shadow: ${p.shadowMd}; }
|
|
481
505
|
.round:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
|
|
482
|
-
`,
|
|
483
|
-
.eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${p.brand})); ${
|
|
484
|
-
.h { margin: 0; color: ${p.textHeading}; font-family: ${p.fontHeading}; font-weight: ${
|
|
506
|
+
`,Ci=Re`
|
|
507
|
+
.eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${p.brand})); ${D("sm")} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${p.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${Ie("semibold")}); letter-spacing: ${p.trackingWide}; text-transform: uppercase; }
|
|
508
|
+
.h { margin: 0; color: ${p.textHeading}; font-family: ${p.fontHeading}; font-weight: ${Ie("bold")}; letter-spacing: ${p.trackingTight}; text-wrap: balance; }
|
|
485
509
|
.lead { margin: 0; color: ${p.textMuted}; text-wrap: pretty; }
|
|
486
|
-
`,
|
|
487
|
-
:host { display: block; container-type: inline-size; --most: 1; --gap: ${
|
|
510
|
+
`,xi=class extends ce{constructor(){super();this.index=0;this.count=0;this.visible=null;this.heading=null;this.paused=!1;this.held=!1;this.label="Slides",this.perView="1",this.arrows="below",this.autoplay=!1,this.seconds=6,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={label:{type:String},perView:{type:String,reflect:!0,attribute:"per-view"},arrows:{type:String,reflect:!0},autoplay:{type:Boolean,reflect:!0},seconds:{type:Number},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ce.styles,Mi,Ze,nr,Re`
|
|
511
|
+
:host { display: block; container-type: inline-size; --most: 1; --gap: ${g(6)}; }
|
|
488
512
|
:host([per-view='2']) { --most: 2; }
|
|
489
513
|
:host([per-view='3']) { --most: 3; }
|
|
490
|
-
.track { --per: var(--most); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: ${
|
|
514
|
+
.track { --per: var(--most); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: ${g(1)} ${g(2)}; border-radius: ${p.radiusLg}; }
|
|
491
515
|
.track::-webkit-scrollbar { display: none; }
|
|
492
516
|
::slotted(*) { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-inline-size: 0; scroll-snap-align: start; box-sizing: border-box; }
|
|
493
517
|
/* Whole slides only: a slice of the next one reads as content spilling out of the page. */
|
|
494
518
|
@container (max-width: 60rem) { .track { --per: min(var(--most), 2); } }
|
|
495
|
-
@container (max-width: 40rem) { .track { --per: 1; --gap: ${
|
|
496
|
-
.controls { display: flex; align-items: center; justify-content: space-between; gap: ${
|
|
497
|
-
.dots { display: flex; flex-wrap: wrap; gap: ${
|
|
498
|
-
.dot { ${
|
|
519
|
+
@container (max-width: 40rem) { .track { --per: 1; --gap: ${g(4)}; } }
|
|
520
|
+
.controls { display: flex; align-items: center; justify-content: space-between; gap: ${g(4)}; margin-block-start: ${g(4)}; }
|
|
521
|
+
.dots { display: flex; flex-wrap: wrap; gap: ${g(1)}; }
|
|
522
|
+
.dot { ${Ma} display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; cursor: pointer; border-radius: ${p.radiusSm}; }
|
|
499
523
|
.dot span { display: block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${p.rule}; transition: inline-size 150ms ease-in-out, background-color 150ms ease-in-out; }
|
|
500
524
|
.dot[aria-current='true'] span { inline-size: 24px; background: ${p.brand}; }
|
|
501
|
-
.buttons { display: flex; gap: ${
|
|
525
|
+
.buttons { display: flex; gap: ${g(2)}; }
|
|
502
526
|
section { position: relative; }
|
|
503
|
-
@container (min-width: 40.01rem) { :host([arrows='top']) .buttons { position: absolute; inset-block-end: calc(100% + ${
|
|
504
|
-
.sr-only { ${
|
|
527
|
+
@container (min-width: 40.01rem) { :host([arrows='top']) .buttons { position: absolute; inset-block-end: calc(100% + ${g(4)}); inset-inline-end: 0; } }
|
|
528
|
+
.sr-only { ${Kr} }
|
|
505
529
|
@media (forced-colors: active) { .dot span { background: CanvasText; } .dot[aria-current='true'] span { background: Highlight; } }
|
|
506
|
-
`]}get track(){return this.renderRoot.querySelector(".track")}get slides(){return Array.from(this.children)}get last(){return Math.max(0,this.count-(this.visible??Number(this.perView||1)))}measure(){let e=this.track,
|
|
530
|
+
`]}get track(){return this.renderRoot.querySelector(".track")}get slides(){return Array.from(this.children)}get last(){return Math.max(0,this.count-(this.visible??Number(this.perView||1)))}measure(){let e=this.track,t=this.slides[0];if(!e||!t)return;let a=t.getBoundingClientRect().width;if(a<=0)return;let r=Number.parseFloat(getComputedStyle(e).columnGap)||0,s=Math.max(1,Math.round((e.clientWidth+r)/(a+r)));if(s===this.visible)return;this.visible=s,this.index=Math.min(this.index,this.last);let o=this.slides[this.index];o&&typeof e.scrollTo=="function"&&e.scrollTo({left:o.offsetLeft-e.offsetLeft,behavior:"auto"}),this.requestUpdate()}onSlots(){let e=this.slides;this.count=e.length,e.forEach((t,a)=>{t.setAttribute("role","group"),t.setAttribute("aria-roledescription",ve("slide")),t.setAttribute("aria-label",ve("{slide} of {slides}",{slide:a+1,slides:e.length}))}),this.measure(),this.requestUpdate()}go(e){let t=Math.min(this.last,Math.max(0,e));this.index=t,this.heading=t,clearTimeout(this.settle),this.settle=setTimeout(()=>{let s=this.heading===null;this.heading=null;let o=this.track,h=this.slides[this.index];!s&&o&&h&&typeof o.scrollTo=="function"&&o.scrollTo({left:h.offsetLeft-o.offsetLeft,behavior:"auto"})},900),this.requestUpdate();let a=this.track,r=this.slides[t];a&&r&&typeof a.scrollTo=="function"&&a.scrollTo({left:r.offsetLeft-a.offsetLeft,behavior:ar()?"auto":"smooth"})}onScroll(){let e=this.track,t=this.slides;if(!e||!t.length)return;let a=0,r=1/0;if(t.forEach((s,o)=>{let h=Math.abs(s.offsetLeft-e.offsetLeft-e.scrollLeft);h<r&&(r=h,a=o)}),this.heading!==null){a===this.heading&&r<2&&(this.heading=null,clearTimeout(this.settle));return}a!==this.index&&(this.index=Math.min(a,this.last),this.requestUpdate())}onKey(e){e.key==="ArrowRight"&&(e.preventDefault(),this.go(this.index+1)),e.key==="ArrowLeft"&&(e.preventDefault(),this.go(this.index-1))}get canPlay(){return this.autoplay&&!ar()}restart(){clearInterval(this.timer),this.timer=void 0,!(!this.canPlay||this.paused||this.held)&&(this.timer=setInterval(()=>this.go(this.index>=this.last?0:this.index+1),Math.max(2,this.seconds)*1e3))}hold(e){this.held=e,this.restart()}togglePause(){this.paused=!this.paused,this.restart(),this.requestUpdate()}firstUpdated(){typeof ResizeObserver=="function"&&this.track&&(this.observer=new ResizeObserver(()=>this.measure()),this.observer.observe(this.track))}updated(e){(e.has("autoplay")||e.has("seconds"))&&this.restart(),e.has("perView")&&this.measure()}connectedCallback(){super.connectedCallback(),this.track&&this.observer?.observe(this.track),this.restart()}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),clearInterval(this.timer),clearTimeout(this.settle)}render(){let e=Array.from({length:this.last+1},(t,a)=>a);return M`<section aria-roledescription=${ve("carousel")} aria-label=${this.label} part="carousel" @keydown=${this.onKey}
|
|
507
531
|
@mouseenter=${()=>this.hold(!0)} @mouseleave=${()=>this.hold(!1)} @focusin=${()=>this.hold(!0)} @focusout=${()=>this.hold(!1)}>
|
|
508
532
|
<div class="track" part="track" tabindex="0" @scroll=${this.onScroll}><slot @slotchange=${this.onSlots}></slot></div>
|
|
509
533
|
<div class="controls" part="controls">
|
|
510
|
-
<div class="dots">${e.length>1?e.map(
|
|
534
|
+
<div class="dots">${e.length>1?e.map(t=>M`<button class="dot" type="button" aria-label=${ve("Go to slide {slide}",{slide:t+1})} aria-current=${t===this.index?"true":"false"} @click=${()=>this.go(t)}><span></span></button>`):U}</div>
|
|
511
535
|
<div class="buttons">
|
|
512
|
-
${this.canPlay?M`<button class="round" type="button" aria-label=${
|
|
513
|
-
<button class="round" type="button" aria-label=${
|
|
514
|
-
<button class="round" type="button" aria-label=${
|
|
536
|
+
${this.canPlay?M`<button class="round" type="button" aria-label=${ve(this.paused?"Play the slides":"Pause the slides")} @click=${this.togglePause}>${this.paused?dt("arrow-right","18px"):M`<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>`:U}
|
|
537
|
+
<button class="round" type="button" aria-label=${ve("Previous slide")} ?disabled=${this.index===0} @click=${()=>this.go(this.index-1)}>${dt("arrow-left","18px")}</button>
|
|
538
|
+
<button class="round" type="button" aria-label=${ve("Next slide")} ?disabled=${this.index>=this.last} @click=${()=>this.go(this.index+1)}>${dt("arrow-right","18px")}</button>
|
|
515
539
|
</div>
|
|
516
540
|
</div>
|
|
517
|
-
<p class="sr-only" aria-live="polite">${
|
|
518
|
-
</section>`}};function
|
|
541
|
+
<p class="sr-only" aria-live="polite">${ve("Slide {slide} of {slides}",{slide:this.index+1,slides:this.count})}</p>
|
|
542
|
+
</section>`}};function or(n,i,e){let t=n===i-1,a={wide:1,narrow:1,rows:1};if(e==="grid")return t&&(a.wide=i%3?4-i%3:1,a.narrow=i%2?2:1),a;if(n===0)return a;if(i===2)return{wide:2,narrow:2,rows:2};if(i===3)return{...a,wide:2};if(t){let r=(i-5)%4;a.wide=i===4?2:i>5&&r?5-r:1,a.narrow=i%2?1:2}return a}var yi=class extends ce{constructor(){super();this.shown=-1;this.opener=null;this.items=[],this.layout="feature",this.label="Gallery",this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},layout:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...ce.styles,Mi,Ze,nr,Re`
|
|
519
543
|
:host { display: block; container-type: inline-size; }
|
|
520
|
-
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${
|
|
544
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${g(3)}; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; }
|
|
521
545
|
:host([layout='grid']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; }
|
|
522
546
|
li { grid-column: span var(--span-wide, 1); grid-row: span var(--span-rows, 1); }
|
|
523
547
|
:host([layout='feature']) li:first-child { grid-column: span 2; grid-row: span 2; }
|
|
@@ -527,114 +551,114 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
527
551
|
@container (max-width: 40rem) { ul, :host([layout='grid']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; } li { grid-column: span var(--span-narrow, 1); } }
|
|
528
552
|
dialog { padding: 0; border: 0; background: transparent; max-inline-size: none; max-block-size: none; inline-size: 100vw; block-size: 100dvh; }
|
|
529
553
|
dialog::backdrop { background: rgb(10 14 12 / 0.9); }
|
|
530
|
-
.stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; block-size: 100%; box-sizing: border-box; padding: ${
|
|
531
|
-
.bar { display: flex; align-items: center; justify-content: space-between; ${
|
|
532
|
-
.middle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: ${
|
|
554
|
+
.stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; block-size: 100%; box-sizing: border-box; padding: ${g(4)}; gap: ${g(3)}; color: #fff; }
|
|
555
|
+
.bar { display: flex; align-items: center; justify-content: space-between; ${D("sm")} }
|
|
556
|
+
.middle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: ${g(3)}; min-block-size: 0; }
|
|
533
557
|
.middle img { display: block; margin: auto; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; border-radius: ${p.radiusLg}; }
|
|
534
558
|
figure { margin: 0; display: flex; min-block-size: 0; block-size: 100%; }
|
|
535
|
-
.caption { margin: 0; text-align: center; ${
|
|
536
|
-
`]}get dialog(){return this.renderRoot.querySelector("dialog")}open(e,
|
|
537
|
-
<button class="open" type="button" aria-label=${
|
|
559
|
+
.caption { margin: 0; text-align: center; ${D("sm")} }
|
|
560
|
+
`]}get dialog(){return this.renderRoot.querySelector("dialog")}open(e,t){this.opener=t.currentTarget,this.shown=e,this.requestUpdate(),this.updateComplete.then(()=>{let a=this.dialog;a&&!a.open&&(typeof a.showModal=="function"?a.showModal():a.setAttribute("open",""))})}close(){let e=this.dialog;e?.open&&(typeof e.close=="function"?e.close():e.removeAttribute("open")),this.onClosed()}onClosed(){this.shown!==-1&&(this.shown=-1,this.requestUpdate(),this.opener?.focus())}step(e){let t=(this.items??[]).length;!t||this.shown<0||(this.shown=(this.shown+e+t)%t,this.requestUpdate())}onKey(e){e.key==="ArrowRight"&&(e.preventDefault(),this.step(1)),e.key==="ArrowLeft"&&(e.preventDefault(),this.step(-1))}render(){let e=this.items??[],t=this.shown>=0?e[this.shown]:void 0;return M`<ul aria-label=${this.label} part="list">${e.map((a,r)=>{let s=or(r,e.length,this.layout);return M`<li style=${`--span-wide:${s.wide};--span-narrow:${s.narrow};--span-rows:${s.rows}`}>
|
|
561
|
+
<button class="open" type="button" aria-label=${ve("View larger: {picture}",{picture:a.alt})} @click=${o=>this.open(r,o)}><img src=${a.src} alt=${a.alt} loading="lazy" /></button>
|
|
538
562
|
</li>`})}</ul>
|
|
539
563
|
<dialog aria-label=${this.label} @keydown=${this.onKey} @close=${this.onClosed}>
|
|
540
|
-
${
|
|
541
|
-
<div class="bar"><span>${this.shown+1} of ${e.length}</span><button class="round" type="button" aria-label=${
|
|
564
|
+
${t?M`<div class="stage">
|
|
565
|
+
<div class="bar"><span>${this.shown+1} of ${e.length}</span><button class="round" type="button" aria-label=${ve("Close")} @click=${this.close}>${dt("close","18px")}</button></div>
|
|
542
566
|
<div class="middle">
|
|
543
|
-
<button class="round" type="button" aria-label=${
|
|
544
|
-
<figure><img src=${
|
|
545
|
-
<button class="round" type="button" aria-label=${
|
|
567
|
+
<button class="round" type="button" aria-label=${ve("Previous picture")} @click=${()=>this.step(-1)}>${dt("arrow-left","18px")}</button>
|
|
568
|
+
<figure><img src=${t.src} alt=${t.alt} /></figure>
|
|
569
|
+
<button class="round" type="button" aria-label=${ve("Next picture")} @click=${()=>this.step(1)}>${dt("arrow-right","18px")}</button>
|
|
546
570
|
</div>
|
|
547
|
-
<p class="caption">${
|
|
548
|
-
</div>`:
|
|
549
|
-
</dialog>`}},
|
|
571
|
+
<p class="caption">${t.caption??t.alt}</p>
|
|
572
|
+
</div>`:U}
|
|
573
|
+
</dialog>`}},vi=class extends ce{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=[...ce.styles,Mi,Ze,Re`
|
|
550
574
|
:host { display: block; }
|
|
551
|
-
p { margin: 0 0 ${
|
|
552
|
-
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: ${
|
|
575
|
+
p { margin: 0 0 ${g(6)}; text-align: center; color: ${p.textMuted}; ${D("sm")} font-weight: ${Ie("medium")}; }
|
|
576
|
+
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: ${g(8)} ${g(12)}; }
|
|
553
577
|
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; }
|
|
554
578
|
li:hover img { filter: none; opacity: 1; }
|
|
555
579
|
a { display: block; border-radius: ${p.radiusSm}; }
|
|
556
|
-
`]}render(){return M`${this.heading?M`<p part="heading">${this.heading}</p>`:
|
|
557
|
-
<ul part="list">${(this.items??[]).map(
|
|
580
|
+
`]}render(){return M`${this.heading?M`<p part="heading">${this.heading}</p>`:U}
|
|
581
|
+
<ul part="list">${(this.items??[]).map(i=>M`<li>${i.href?M`<a href=${i.href}><img src=${i.src} alt=${i.alt} /></a>`:M`<img src=${i.src} alt=${i.alt} />`}</li>`)}</ul>`}},ki=class extends ce{static{this.properties={items:{type:Array},orientation:{type:String,reflect:!0},look:{type:String,reflect:!0},tones:{type:Boolean,reflect:!0},current:{type:Number},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.tones=!1,this.current=-1,this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ce.styles,Ze,Ci,Re`
|
|
558
582
|
:host { display: block; container-type: inline-size; }
|
|
559
|
-
ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: ${
|
|
560
|
-
li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: ${
|
|
561
|
-
li::before { content: counter(step); display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: ${p.brand}; color: ${p.onBrand}; ${
|
|
562
|
-
li:not(:last-child)::after { content: ''; position: absolute; inset-block-start: 20px; inset-inline-start: 48px; inset-inline-end: calc(-1 * ${
|
|
563
|
-
.h { ${
|
|
564
|
-
.meta { margin: 0; ${
|
|
565
|
-
.body { margin: 0; color: ${p.textMuted}; line-height: ${
|
|
583
|
+
ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: ${g(6)}; }
|
|
584
|
+
li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: ${g(2)}; }
|
|
585
|
+
li::before { content: counter(step); display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: ${p.brand}; color: ${p.onBrand}; ${D("sm")} font-weight: ${Ie("bold")}; position: relative; z-index: 1; margin-block-end: ${g(2)}; }
|
|
586
|
+
li:not(:last-child)::after { content: ''; position: absolute; inset-block-start: 20px; inset-inline-start: 48px; inset-inline-end: calc(-1 * ${g(6)} + 8px); block-size: 2px; background: ${p.rule}; }
|
|
587
|
+
.h { ${D("lg")} letter-spacing: 0; }
|
|
588
|
+
.meta { margin: 0; ${D("sm")} color: ${p.textMuted}; font-family: ${p.fontMono}; letter-spacing: 0.02em; }
|
|
589
|
+
.body { margin: 0; color: ${p.textMuted}; line-height: ${sr("normal")}; text-wrap: pretty; }
|
|
566
590
|
:host([orientation='vertical']) ol { grid-auto-flow: row; }
|
|
567
591
|
:host([orientation='vertical']) li { padding-inline-start: 56px; min-block-size: 56px; }
|
|
568
592
|
:host([orientation='vertical']) li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }
|
|
569
|
-
:host([orientation='vertical']) li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${
|
|
593
|
+
:host([orientation='vertical']) li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${g(6)} + 8px); inset-inline-start: 19px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }
|
|
570
594
|
@container (max-width: 40rem) {
|
|
571
595
|
ol { grid-auto-flow: row; }
|
|
572
596
|
li { padding-inline-start: 56px; min-block-size: 56px; }
|
|
573
597
|
li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }
|
|
574
|
-
li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${
|
|
598
|
+
li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${g(6)} + 8px); inset-inline-start: 19px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }
|
|
575
599
|
}
|
|
576
600
|
/* Ruled: a 1px rule in the band's text colour, or in the chart colours with tones. */
|
|
577
|
-
:host([look='ruled']) li { --rule: currentColor; padding-block-start: ${
|
|
601
|
+
:host([look='ruled']) li { --rule: currentColor; padding-block-start: ${g(5)}; border-block-start: 1px solid var(--rule); }
|
|
578
602
|
:host([look='ruled'][tones]) li { --rule: var(--chart); border-block-start-width: 3px; }
|
|
579
603
|
:host([look='ruled']:not([tones])) .meta { font-size: 0.6875rem; letter-spacing: ${p.trackingWide}; text-transform: uppercase; }
|
|
580
604
|
:host([look='ruled']:not([tones])) .meta::before { content: counter(step, decimal-leading-zero) ' · '; }
|
|
581
|
-
:host([look='ruled']:not([tones])) li[aria-current] { --rule: var(--impakt-steps-current, currentColor); border-block-start-width: 2px; padding-block-start: calc(${
|
|
605
|
+
:host([look='ruled']:not([tones])) li[aria-current] { --rule: var(--impakt-steps-current, currentColor); border-block-start-width: 2px; padding-block-start: calc(${g(5)} - 1px); }
|
|
582
606
|
:host([look='ruled']:not([tones])) li[aria-current] .meta { color: var(--impakt-steps-current, currentColor); }
|
|
583
607
|
:host([look='ruled']) li::before, :host([look='ruled']) li::after { display: none; }
|
|
584
|
-
:host([look='ruled']) ol { gap: ${
|
|
608
|
+
:host([look='ruled']) ol { gap: ${g(5)}; }
|
|
585
609
|
/* On a phone the ruled steps hang off a rail: a 1.5px line down the left and a hollow 10px ring at each step, the current one filled. */
|
|
586
610
|
@container (max-width: 40rem) {
|
|
587
611
|
:host([look='ruled']) ol { gap: 0; }
|
|
588
|
-
:host([look='ruled']) li, :host([look='ruled']:not([tones])) li[aria-current] { padding-inline-start: 40px; padding-block: ${
|
|
612
|
+
:host([look='ruled']) li, :host([look='ruled']:not([tones])) li[aria-current] { padding-inline-start: 40px; padding-block: ${g(6)}; min-block-size: 0; border-block-start: 0; }
|
|
589
613
|
:host([look='ruled']) li::before { display: block; content: ''; position: absolute; inset-block: 0; inset-inline-start: 4px; inline-size: 1.5px; block-size: auto; border-radius: 0; margin: 0; background: currentColor; }
|
|
590
|
-
:host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block-start: calc(${
|
|
591
|
-
:host([look='ruled']) li:first-child::before { inset-block-start: calc(${
|
|
592
|
-
:host([look='ruled']) li:last-child::before { inset-block-end: auto; block-size: calc(${
|
|
614
|
+
:host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block-start: calc(${g(6)} + 2px); inset-inline-start: 0; inline-size: 10px; block-size: 10px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; background: ${p.surfaceCard}; }
|
|
615
|
+
:host([look='ruled']) li:first-child::before { inset-block-start: calc(${g(6)} + 7px); }
|
|
616
|
+
:host([look='ruled']) li:last-child::before { inset-block-end: auto; block-size: calc(${g(6)} + 7px); }
|
|
593
617
|
:host([look='ruled']:not([tones])) li[aria-current]::after { background: var(--impakt-steps-current, currentColor); }
|
|
594
618
|
/* With tones: a branch graph, one trunk down the left and each step a coloured branch off it with a dot. */
|
|
595
619
|
:host([look='ruled'][tones]) li::before { inset-block: 0; inset-inline-start: 0; inline-size: 2px; block-size: auto; background: ${p.text}; }
|
|
596
|
-
:host([look='ruled'][tones]) li::after { inset-block: ${
|
|
620
|
+
:host([look='ruled'][tones]) li::after { inset-block: ${g(3)}; inset-inline-start: 2px; 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; }
|
|
597
621
|
}
|
|
598
622
|
@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; } :host([look='ruled']) li[aria-current]::after { background: Highlight; } }
|
|
599
|
-
`]}render(){return M`<ol part="list">${(this.items??[]).map((
|
|
600
|
-
${
|
|
601
|
-
<div class="h" role="heading" aria-level=${this.headingLevel}>${
|
|
602
|
-
${
|
|
603
|
-
</li>`)}</ol>`}},
|
|
623
|
+
`]}render(){return M`<ol part="list">${(this.items??[]).map((i,e)=>M`<li part="step" aria-current=${e===this.current?"step":U} style=${this.look==="ruled"?`--chart:var(--impakt-color-chart-${e%5+1}, var(--impakt-color-brand-default, #1f4ed8))`:U}>
|
|
624
|
+
${i.meta?M`<p class="meta">${i.meta}</p>`:U}
|
|
625
|
+
<div class="h" role="heading" aria-level=${this.headingLevel}>${i.heading}</div>
|
|
626
|
+
${i.text?M`<p class="body">${i.text}</p>`:U}
|
|
627
|
+
</li>`)}</ol>`}},wi=class extends ce{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=[...ce.styles,Ze,Ci,Re`
|
|
604
628
|
:host { display: block; container-type: inline-size; --ratio: 4 / 3; }
|
|
605
629
|
:host([ratio='1:1']) { --ratio: 1 / 1; }
|
|
606
630
|
:host([ratio='3:2']) { --ratio: 3 / 2; }
|
|
607
631
|
:host([ratio='16:9']) { --ratio: 16 / 9; }
|
|
608
|
-
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${
|
|
632
|
+
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${g(16)}; align-items: center; }
|
|
609
633
|
:host([image-side='start']) .picture { order: -1; }
|
|
610
|
-
.words { display: flex; flex-direction: column; gap: ${
|
|
611
|
-
.h { ${
|
|
612
|
-
.lead { ${
|
|
613
|
-
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: ${
|
|
614
|
-
li { display: flex; gap: ${
|
|
634
|
+
.words { display: flex; flex-direction: column; gap: ${g(4)}; }
|
|
635
|
+
.h { ${D("4xl")} }
|
|
636
|
+
.lead { ${D("lg")} }
|
|
637
|
+
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: ${g(3)}; }
|
|
638
|
+
li { display: flex; gap: ${g(3)}; align-items: flex-start; line-height: ${sr("normal")}; }
|
|
615
639
|
.tick { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: ${p.brandSubtle}; color: ${p.brand}; }
|
|
616
|
-
.actions { display: flex; flex-wrap: wrap; gap: ${
|
|
640
|
+
.actions { display: flex; flex-wrap: wrap; gap: ${g(3)} ${g(4)}; align-items: center; margin-block-start: ${g(2)}; }
|
|
617
641
|
img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; border-radius: ${p.radius2xl}; box-shadow: ${p.shadowXl}; }
|
|
618
642
|
.picture { position: relative; }
|
|
619
643
|
.picture.has-inset { padding-block-end: 8%; padding-inline-end: 4%; }
|
|
620
644
|
.inset { position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: 42%; aspect-ratio: 10 / 7; border: 6px solid ${p.surfaceCard}; border-radius: ${p.radiusXl}; box-sizing: border-box; }
|
|
621
645
|
@container (max-width: 48rem) {
|
|
622
|
-
.split { grid-template-columns: minmax(0, 1fr); gap: ${
|
|
646
|
+
.split { grid-template-columns: minmax(0, 1fr); gap: ${g(8)}; }
|
|
623
647
|
:host([image-side='start']) .picture { order: 0; }
|
|
624
|
-
.h { ${
|
|
648
|
+
.h { ${D("3xl")} }
|
|
625
649
|
}
|
|
626
650
|
`]}render(){return M`<div class="split" part="split">
|
|
627
651
|
<div class="words">
|
|
628
|
-
${this.eyebrow?M`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:
|
|
652
|
+
${this.eyebrow?M`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:U}
|
|
629
653
|
<div class="h" role="heading" aria-level=${this.level}>${this.heading}</div>
|
|
630
|
-
${this.lead?M`<p class="lead">${this.lead}</p>`:
|
|
631
|
-
${this.points?.length?M`<ul>${this.points.map(
|
|
654
|
+
${this.lead?M`<p class="lead">${this.lead}</p>`:U}
|
|
655
|
+
${this.points?.length?M`<ul>${this.points.map(i=>M`<li><span class="tick">${dt("check","14px")}</span><span>${i}</span></li>`)}</ul>`:U}
|
|
632
656
|
<div class="actions"><slot name="actions"></slot></div>
|
|
633
657
|
</div>
|
|
634
|
-
${this.imageSrc?M`<div class="picture ${this.insetSrc?"has-inset":""}"><img src=${this.imageSrc} alt=${this.imageAlt} loading="lazy" part="image" />${this.insetSrc?M`<img class="inset" src=${this.insetSrc} alt=${this.insetAlt} loading="lazy" />`:
|
|
635
|
-
</div>`}}
|
|
658
|
+
${this.imageSrc?M`<div class="picture ${this.insetSrc?"has-inset":""}"><img src=${this.imageSrc} alt=${this.imageAlt} loading="lazy" part="image" />${this.insetSrc?M`<img class="inset" src=${this.insetSrc} alt=${this.insetAlt} loading="lazy" />`:U}</div>`:U}
|
|
659
|
+
</div>`}},Si=class extends ce{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=[...ce.styles,Ze,Ci,Re`
|
|
636
660
|
:host { display: block; container-type: inline-size; }
|
|
637
|
-
.panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: ${
|
|
661
|
+
.panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: ${g(8)}; padding: ${g(16)}; border-radius: ${p.radius2xl}; background: ${p.surfaceCard}; box-shadow: ${p.shadowSm}, inset 0 0 0 1px ${p.hairline}; }
|
|
638
662
|
:host([tone='subtle']) .panel { background: ${p.surfaceSubtle}; box-shadow: none; }
|
|
639
663
|
:host([tone='brand']) .panel { background: ${p.brand}; color: ${p.onBrand}; box-shadow: ${p.shadowMd};
|
|
640
664
|
/* A primary button on the brand panel turns over, as it does on an ink band, so it keeps an edge against the panel. */
|
|
@@ -648,103 +672,103 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
648
672
|
.panel.pictured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 31 26 / 0.8) 0%, rgb(18 31 26 / 0.1) 75%); }
|
|
649
673
|
.panel.pictured .words, .panel.pictured .actions { z-index: 1; }
|
|
650
674
|
@container (max-width: 48rem) { .panel.pictured { justify-content: flex-end; } .panel.pictured::after { background: linear-gradient(180deg, rgb(18 31 26 / 0.15) 0%, rgb(18 31 26 / 0.85) 100%); } }
|
|
651
|
-
.words { position: relative; display: flex; flex-direction: column; gap: ${
|
|
652
|
-
.h { ${
|
|
653
|
-
.lead { ${
|
|
654
|
-
.actions { position: relative; flex: none; display: flex; flex-wrap: wrap; gap: ${
|
|
675
|
+
.words { position: relative; display: flex; flex-direction: column; gap: ${g(3)}; max-inline-size: 40rem; }
|
|
676
|
+
.h { ${D("4xl")} }
|
|
677
|
+
.lead { ${D("lg")} }
|
|
678
|
+
.actions { position: relative; flex: none; display: flex; flex-wrap: wrap; gap: ${g(3)}; }
|
|
655
679
|
:host([align='stacked']) .panel { flex-direction: column; align-items: flex-start; justify-content: center; }
|
|
656
680
|
:host([align='center']) .panel { flex-direction: column; text-align: center; }
|
|
657
681
|
:host([align='center']) .words { align-items: center; }
|
|
658
|
-
@container (max-width: 48rem) { .panel { flex-direction: column; align-items: flex-start; padding: ${
|
|
682
|
+
@container (max-width: 48rem) { .panel { flex-direction: column; align-items: flex-start; padding: ${g(8)} ${g(6)}; } .h { ${D("3xl")} } :host([align='center']) .panel { align-items: center; } }
|
|
659
683
|
@media (forced-colors: active) { .panel { border: 1px solid CanvasText; } }
|
|
660
684
|
`]}render(){return M`<div class="panel ${this.imageSrc?"pictured":""}" part="panel">
|
|
661
|
-
${this.imageSrc?M`<img class="photo" src=${this.imageSrc} alt=${this.imageAlt} />`:
|
|
685
|
+
${this.imageSrc?M`<img class="photo" src=${this.imageSrc} alt=${this.imageAlt} />`:U}
|
|
662
686
|
<div class="words">
|
|
663
687
|
<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>
|
|
664
|
-
${this.lead?M`<p class="lead">${this.lead}</p>`:
|
|
688
|
+
${this.lead?M`<p class="lead">${this.lead}</p>`:U}
|
|
665
689
|
</div>
|
|
666
690
|
<div class="actions"><slot name="actions"></slot></div>
|
|
667
|
-
</div>`}},
|
|
691
|
+
</div>`}},rr=n=>M`<span class="stars" role="img" aria-label=${ve("Rated {rating} out of 5",{rating:n})}>${[1,2,3,4,5].map(i=>M`<svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true" fill=${i<=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>`,ts=n=>n.split(/\s+/).filter(i=>/^[A-Za-z]/.test(i)&&i.toLowerCase()!=="and").slice(0,2).map(i=>i[0].toUpperCase()).join(""),zi=class extends ce{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=[...ce.styles,Ze,Re`
|
|
668
692
|
:host { display: block; container-type: inline-size; }
|
|
669
|
-
.top { display: flex; align-items: center; gap: ${
|
|
670
|
-
.stars { display: inline-flex; gap: 2px; color: ${
|
|
671
|
-
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${
|
|
693
|
+
.top { display: flex; align-items: center; gap: ${g(3)}; margin-block-end: ${g(6)}; ${D("sm")} font-weight: ${Ie("medium")}; }
|
|
694
|
+
.stars { display: inline-flex; gap: 2px; color: ${es}; }
|
|
695
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${g(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
672
696
|
:host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
673
|
-
li { display: flex; flex-direction: column; gap: ${
|
|
674
|
-
blockquote { margin: 0; flex: 1; ${
|
|
675
|
-
.who { display: flex; align-items: center; gap: ${
|
|
676
|
-
.face { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border-radius: 50%; overflow: hidden; background: ${p.brandSubtle}; color: ${p.brand}; ${
|
|
697
|
+
li { display: flex; flex-direction: column; gap: ${g(4)}; padding: ${g(6)}; background: ${p.surfaceCard}; border-radius: ${p.radiusXl}; box-shadow: ${p.shadowSm}, inset 0 0 0 1px ${p.hairline}; }
|
|
698
|
+
blockquote { margin: 0; flex: 1; ${D("md")} text-wrap: pretty; }
|
|
699
|
+
.who { display: flex; align-items: center; gap: ${g(3)}; }
|
|
700
|
+
.face { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border-radius: 50%; overflow: hidden; background: ${p.brandSubtle}; color: ${p.brand}; ${D("sm")} font-weight: ${Ie("bold")}; }
|
|
677
701
|
.face img { inline-size: 100%; block-size: 100%; object-fit: cover; }
|
|
678
|
-
.name { font-weight: ${
|
|
679
|
-
.about { color: ${p.textMuted}; ${
|
|
702
|
+
.name { font-weight: ${Ie("semibold")}; ${D("sm")} }
|
|
703
|
+
.about { color: ${p.textMuted}; ${D("sm")} }
|
|
680
704
|
@container (max-width: 56rem) { ul, :host([columns='two']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
681
|
-
`]}render(){return M`${this.summary||this.rating?M`<p class="top" part="summary" style="margin-block-start:0">${this.rating?
|
|
682
|
-
<ul part="list">${(this.items??[]).map(
|
|
683
|
-
${
|
|
684
|
-
<blockquote>${
|
|
685
|
-
<div class="who"><span class="face" aria-hidden="true">${
|
|
686
|
-
</li>`)}</ul>`}},
|
|
705
|
+
`]}render(){return M`${this.summary||this.rating?M`<p class="top" part="summary" style="margin-block-start:0">${this.rating?rr(Math.round(this.rating)):U}<span>${this.summary}</span></p>`:U}
|
|
706
|
+
<ul part="list">${(this.items??[]).map(i=>M`<li part="review">
|
|
707
|
+
${i.rating?rr(i.rating):U}
|
|
708
|
+
<blockquote>${i.quote}</blockquote>
|
|
709
|
+
<div class="who"><span class="face" aria-hidden="true">${i.avatarSrc?M`<img src=${i.avatarSrc} alt="" />`:ts(i.person)}</span><span><span class="name">${i.person}</span>${i.about?M`<br /><span class="about">${i.about}</span>`:U}</span></div>
|
|
710
|
+
</li>`)}</ul>`}},Ti=class extends ce{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=[...ce.styles,Mi,Ze,Ci,Re`
|
|
687
711
|
:host { display: block; container-type: inline-size; }
|
|
688
|
-
.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${
|
|
689
|
-
.words { display: flex; flex-direction: column; gap: ${
|
|
690
|
-
.h { ${
|
|
691
|
-
form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: ${
|
|
692
|
-
label { grid-column: 1 / -1; ${
|
|
693
|
-
input { min-block-size: 44px; box-sizing: border-box; inline-size: 100%; padding: ${
|
|
694
|
-
button { ${
|
|
712
|
+
.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${g(8)}; align-items: center; }
|
|
713
|
+
.words { display: flex; flex-direction: column; gap: ${g(2)}; }
|
|
714
|
+
.h { ${D("2xl")} }
|
|
715
|
+
form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: ${g(1)} ${g(3)}; }
|
|
716
|
+
label { grid-column: 1 / -1; ${D("sm")} font-weight: ${Ie("semibold")}; }
|
|
717
|
+
input { min-block-size: 44px; box-sizing: border-box; inline-size: 100%; padding: ${g(2.5)} ${g(3)}; font: inherit; color: ${p.text}; background: ${p.surfaceCard}; border: ${p.borderThin} solid ${p.border}; border-radius: ${p.radiusLg}; box-shadow: ${p.shadowXs}; }
|
|
718
|
+
button { ${Ma} min-block-size: 44px; padding: ${g(2)} ${g(5)}; font: inherit; ${D("sm")} font-weight: ${Ie("semibold")}; color: ${p.onBrand}; background: ${p.brand}; border: 0; border-radius: ${p.radiusLg}; box-shadow: ${p.shadowXs}; cursor: pointer; }
|
|
695
719
|
button:hover { background: ${p.brandHover}; }
|
|
696
|
-
.note { grid-column: 1 / -1; margin: ${
|
|
697
|
-
.done { margin: 0; ${
|
|
720
|
+
.note { grid-column: 1 / -1; margin: ${g(1)} 0 0; color: ${p.textMuted}; ${D("sm")} }
|
|
721
|
+
.done { margin: 0; ${D("md")} font-weight: ${Ie("semibold")}; }
|
|
698
722
|
@container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }
|
|
699
|
-
`]}submit(e){e.preventDefault();let
|
|
723
|
+
`]}submit(e){e.preventDefault();let t=e.currentTarget;if(typeof t.reportValidity=="function"&&!t.reportValidity())return;let a=t.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 M`<div class="wrap" part="wrap">
|
|
700
724
|
<div class="words">
|
|
701
|
-
${this.heading?M`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
702
|
-
${this.lead?M`<p class="lead">${this.lead}</p>`:
|
|
725
|
+
${this.heading?M`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:U}
|
|
726
|
+
${this.lead?M`<p class="lead">${this.lead}</p>`:U}
|
|
703
727
|
</div>
|
|
704
728
|
<div aria-live="polite">${this.done?M`<p class="done">${this.doneText}</p>`:M`<form @submit=${this.submit}>
|
|
705
729
|
<label for=${e}>${this.label}</label>
|
|
706
730
|
<input id=${e} type="email" name="email" autocomplete="email" required />
|
|
707
731
|
<button type="submit">${this.buttonText}</button>
|
|
708
|
-
${this.smallPrint?M`<p class="note">${this.smallPrint}</p>`:
|
|
732
|
+
${this.smallPrint?M`<p class="note">${this.smallPrint}</p>`:U}
|
|
709
733
|
</form>`}</div>
|
|
710
|
-
</div>`}};customElements.define("impakt-carousel",
|
|
734
|
+
</div>`}};customElements.define("impakt-carousel",xi);customElements.define("impakt-gallery",yi);customElements.define("impakt-logo-cloud",vi);customElements.define("impakt-steps",ki);customElements.define("impakt-media-split",wi);customElements.define("impakt-cta-banner",Si);customElements.define("impakt-reviews",zi);customElements.define("impakt-newsletter",Ti);import{css as Et,html as _,nothing as ge}from"./atomic-ui.js";import{say as et,pageLocale as is,ImpaktElement as He,focusRing as Bt,targetSize as lr,fontWeight as be,space as $,spaceAround as Ri,t as c,type as ee,iconSvg as pt}from"./atomic-ui.js";var Ai=class extends He{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=[...He.styles,Bt,Ri,Et`
|
|
711
735
|
:host { display: block; container-type: inline-size; }
|
|
712
736
|
.wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: ${$(6)}; align-items: start; }
|
|
713
|
-
.plan { position: relative; overflow: hidden; border-radius: ${
|
|
737
|
+
.plan { position: relative; overflow: hidden; border-radius: ${c.radius2xl}; background: ${c.surfaceSubtle}; box-shadow: ${c.shadowMd}; line-height: 0; }
|
|
714
738
|
.plan img { inline-size: 100%; block-size: auto; }
|
|
715
|
-
.pin { position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: 34px; block-size: 34px; margin: -17px 0 0 -17px; padding: 0; font: inherit; ${
|
|
739
|
+
.pin { position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: 34px; block-size: 34px; margin: -17px 0 0 -17px; padding: 0; font: inherit; ${ee("xs")} line-height: 1; font-weight: ${be("bold")}; color: ${c.onBrand}; background: ${c.brand}; border: 2px solid ${c.surfaceCard}; border-radius: 50%; box-shadow: ${c.shadowMd}; cursor: pointer; transition: transform 120ms ease-in-out; }
|
|
716
740
|
.pin:hover { transform: scale(1.12); }
|
|
717
|
-
.pin.reserved { color: ${
|
|
718
|
-
.pin.sold { color: ${
|
|
719
|
-
.pin[aria-pressed='true'] { transform: scale(1.22); box-shadow: ${
|
|
720
|
-
.panel { display: flex; flex-direction: column; gap: ${$(3)}; padding: ${$(6)}; background: ${
|
|
721
|
-
.hint { margin: 0; color: ${
|
|
722
|
-
.name { margin: 0; font-family: ${
|
|
723
|
-
.sub { margin: 0; color: ${
|
|
724
|
-
.price { margin: 0; ${
|
|
725
|
-
.status { align-self: flex-start; padding: ${$(.5)} ${$(2.5)}; ${
|
|
726
|
-
.status.reserved { color: ${
|
|
727
|
-
.status.sold { color: ${
|
|
728
|
-
.go { ${
|
|
729
|
-
.go:hover { background: ${
|
|
730
|
-
.legend { display: flex; flex-wrap: wrap; gap: ${$(4)}; margin: ${$(3)} 0 0; padding: 0; list-style: none; ${
|
|
741
|
+
.pin.reserved { color: ${c.text}; background: ${c.warningSubtle}; border-color: ${c.warning}; border-style: dashed; }
|
|
742
|
+
.pin.sold { color: ${c.textMuted}; background: ${c.surfaceCard}; border-color: ${c.border}; border-radius: ${c.radius}; }
|
|
743
|
+
.pin[aria-pressed='true'] { transform: scale(1.22); box-shadow: ${c.shadowLg}, 0 0 0 3px ${c.brand}; }
|
|
744
|
+
.panel { display: flex; flex-direction: column; gap: ${$(3)}; padding: ${$(6)}; background: ${c.surfaceCard}; border-radius: ${c.radius2xl}; box-shadow: ${c.shadowSm}, 0 0 0 1px color-mix(in srgb, ${c.text} 6%, transparent); }
|
|
745
|
+
.hint { margin: 0; color: ${c.textMuted}; }
|
|
746
|
+
.name { margin: 0; font-family: ${c.fontHeading}; ${ee("2xl")} font-weight: ${be("bold")}; color: ${c.textHeading}; }
|
|
747
|
+
.sub { margin: 0; color: ${c.textMuted}; }
|
|
748
|
+
.price { margin: 0; ${ee("xl")} font-weight: ${be("semibold")}; }
|
|
749
|
+
.status { align-self: flex-start; padding: ${$(.5)} ${$(2.5)}; ${ee("xs")} font-weight: ${be("semibold")}; color: ${c.successText}; background: ${c.successSubtle}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); }
|
|
750
|
+
.status.reserved { color: ${c.warningText}; background: ${c.warningSubtle}; }
|
|
751
|
+
.status.sold { color: ${c.text}; background: ${c.surfaceSubtle}; }
|
|
752
|
+
.go { ${lr} display: inline-flex; align-items: center; justify-content: center; gap: ${$(2)}; padding: ${$(2)} ${$(4)}; ${ee("sm")} font-weight: ${be("semibold")}; color: ${c.onBrand}; text-decoration: none; background: ${c.brand}; border-radius: ${c.radiusLg}; }
|
|
753
|
+
.go:hover { background: ${c.brandHover}; }
|
|
754
|
+
.legend { display: flex; flex-wrap: wrap; gap: ${$(4)}; margin: ${$(3)} 0 0; padding: 0; list-style: none; ${ee("sm")} color: ${c.textMuted}; }
|
|
731
755
|
.legend li { display: inline-flex; align-items: center; gap: ${$(2)}; }
|
|
732
|
-
.key { box-sizing: border-box; inline-size: 14px; block-size: 14px; background: ${
|
|
733
|
-
.key.reserved { background: ${
|
|
734
|
-
.key.sold { background: ${
|
|
735
|
-
:host { --plan-card: var(--impakt-solid-card, ${
|
|
756
|
+
.key { box-sizing: border-box; inline-size: 14px; block-size: 14px; background: ${c.brand}; border: 2px solid ${c.surfaceCard}; border-radius: 50%; outline: 1px solid color-mix(in srgb, currentColor 55%, transparent); }
|
|
757
|
+
.key.reserved { background: ${c.warningSubtle}; border: 2px dashed ${c.warning}; }
|
|
758
|
+
.key.sold { background: ${c.surfaceCard}; border: 2px solid ${c.border}; border-radius: 3px; }
|
|
759
|
+
:host { --plan-card: var(--impakt-solid-card, ${c.surfaceCard}); --plan-text: var(--impakt-solid-text, ${c.text}); --plan-heading: var(--impakt-solid-heading, ${c.text}); --plan-muted: var(--impakt-solid-muted, ${c.textMuted}); }
|
|
736
760
|
:host([panel='over']) .panel { background: var(--plan-card); color: var(--plan-text); --impakt-color-surface-card: var(--plan-card); --impakt-color-text-default: var(--plan-text); --impakt-color-text-heading: var(--plan-heading); --impakt-color-text-muted: var(--plan-muted); }
|
|
737
|
-
@container (min-width: 44.01rem) { :host([panel='over']) .wrap { position: relative; grid-template-columns: minmax(0, 1fr); } :host([panel='over']) .panel { position: absolute; inset-block-start: 32%; inset-inline-end: ${$(8)}; inline-size: 22.5rem; box-sizing: border-box; box-shadow: ${
|
|
761
|
+
@container (min-width: 44.01rem) { :host([panel='over']) .wrap { position: relative; grid-template-columns: minmax(0, 1fr); } :host([panel='over']) .panel { position: absolute; inset-block-start: 32%; inset-inline-end: ${$(8)}; inline-size: 22.5rem; box-sizing: border-box; box-shadow: ${c.shadowXl}; } }
|
|
738
762
|
@container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }
|
|
739
|
-
`]}willUpdate(
|
|
740
|
-
<p class="name">${this.plotWord} ${
|
|
741
|
-
${
|
|
742
|
-
${
|
|
743
|
-
${
|
|
763
|
+
`]}willUpdate(i){(i.has("selectedPlot")||i.has("plots"))&&this.selectedPlot&&!this.chosen&&(this.chosen=this.plots.find(e=>String(e.number)===this.selectedPlot))}word(i){return i==="sold"?this.soldText:i==="reserved"?this.reservedText:this.availableText}choose(i){this.chosen=i,this.requestUpdate(),this.dispatchEvent(new CustomEvent("impakt-select",{detail:{plot:i},bubbles:!0,composed:!0}))}renderPanel(){let i=this.chosen;if(!i)return _`<p class="hint">${this.hint}</p>`;let e=i.status??"available";return _`<span class="status ${e}">${this.word(e)}</span>
|
|
764
|
+
<p class="name">${this.plotWord} ${i.number}</p>
|
|
765
|
+
${i.name||i.beds?_`<p class="sub">${[i.name,i.beds].filter(Boolean).join(" \xB7 ")}</p>`:ge}
|
|
766
|
+
${i.price?_`<p class="price">${i.price}</p>`:ge}
|
|
767
|
+
${i.href&&e!=="sold"?_`<a class="go" href=${i.href}>${this.actionText}${pt("arrow-right","16px")}</a>`:ge}`}render(){return _`<div class="wrap" part="wrap">
|
|
744
768
|
<div>
|
|
745
769
|
<div class="plan" part="plan">
|
|
746
770
|
<img src=${this.imageSrc} alt=${this.imageAlt} />
|
|
747
|
-
${this.plots.map(
|
|
771
|
+
${this.plots.map(i=>{let e=i.status??"available",t=[`${this.plotWord} ${i.number}`,i.name,this.word(e),i.price].filter(Boolean).join(", ");return _`<button class="pin ${e}" type="button" style="left:${Number(i.x)}%;top:${Number(i.y)}%" aria-label=${t} aria-pressed=${String(this.chosen===i)} @click=${()=>this.choose(i)}>${i.number}</button>`})}
|
|
748
772
|
</div>
|
|
749
773
|
<ul class="legend">
|
|
750
774
|
<li><span class="key"></span>${this.availableText}</li>
|
|
@@ -753,153 +777,153 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
753
777
|
</ul>
|
|
754
778
|
</div>
|
|
755
779
|
<div class="panel" part="panel" aria-live="polite">${this.renderPanel()}</div>
|
|
756
|
-
</div>`}};function
|
|
780
|
+
</div>`}};function cr(n,i,e){let t=e*12;if(n<=0||t<=0)return 0;let a=i/100/12;return a===0?n/t:n*a/(1-(1+a)**-t)}var Li=class extends He{static{this.properties={heading:{type:String},price:{type:Number},depositPercent:{type:Number,attribute:"deposit-percent"},rate:{type:Number},years:{type:Number},currency:{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="What would it cost each month?",this.price=385e3,this.depositPercent=10,this.rate=4.5,this.years=30,this.currency="GBP",this.smallPrint="This is an estimate, not a mortgage offer. 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=[...He.styles,Bt,Ri,Et`
|
|
757
781
|
:host { display: block; container-type: inline-size; }
|
|
758
|
-
.wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; background: ${
|
|
782
|
+
.wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; background: ${c.surfaceCard}; border-radius: ${c.radius2xl}; box-shadow: ${c.shadowMd}, 0 0 0 1px color-mix(in srgb, ${c.text} 6%, transparent); }
|
|
759
783
|
.inputs { display: flex; flex-direction: column; gap: ${$(5)}; padding: ${$(8)}; }
|
|
760
|
-
.h { margin: 0; font-family: ${
|
|
761
|
-
label { display: flex; justify-content: space-between; gap: ${$(3)}; ${
|
|
762
|
-
.read { font-weight: ${
|
|
763
|
-
input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${$(2)} ${$(3)}; font: inherit; color: ${
|
|
764
|
-
input[type='range'] { inline-size: 100%; min-block-size: 24px; margin: 0; accent-color: ${
|
|
784
|
+
.h { margin: 0; font-family: ${c.fontHeading}; ${ee("2xl")} font-weight: ${be("bold")}; color: ${c.textHeading}; }
|
|
785
|
+
label { display: flex; justify-content: space-between; gap: ${$(3)}; ${ee("sm")} font-weight: ${be("semibold")}; margin-block-end: ${$(1.5)}; }
|
|
786
|
+
.read { font-weight: ${be("regular")}; color: ${c.textMuted}; }
|
|
787
|
+
input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${$(2)} ${$(3)}; font: inherit; color: ${c.text}; background: ${c.surfaceCard}; border: ${c.borderThin} solid ${c.border}; border-radius: ${c.radiusLg}; }
|
|
788
|
+
input[type='range'] { inline-size: 100%; min-block-size: 24px; margin: 0; accent-color: ${c.brand}; }
|
|
765
789
|
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${$(4)}; }
|
|
766
|
-
.result { display: flex; flex-direction: column; justify-content: center; gap: ${$(2)}; padding: ${$(8)}; color: ${
|
|
767
|
-
.caption { margin: 0; ${
|
|
768
|
-
output { display: block; font-family: ${
|
|
769
|
-
dl { display: grid; gap: ${$(2)}; margin: ${$(4)} 0 0; padding-block-start: ${$(4)}; border-block-start: 1px solid color-mix(in srgb, ${
|
|
790
|
+
.result { display: flex; flex-direction: column; justify-content: center; gap: ${$(2)}; padding: ${$(8)}; color: ${c.onBrand}; background: ${c.brand}; }
|
|
791
|
+
.caption { margin: 0; ${ee("sm")} opacity: 0.85; }
|
|
792
|
+
output { display: block; font-family: ${c.fontHeading}; ${ee("4xl")} font-weight: ${be("bold")}; }
|
|
793
|
+
dl { display: grid; gap: ${$(2)}; margin: ${$(4)} 0 0; padding-block-start: ${$(4)}; border-block-start: 1px solid color-mix(in srgb, ${c.onBrand} 25%, transparent); ${ee("sm")} }
|
|
770
794
|
dl div { display: flex; justify-content: space-between; gap: ${$(3)}; }
|
|
771
795
|
dt { opacity: 0.85; }
|
|
772
|
-
dd { margin: 0; font-weight: ${
|
|
796
|
+
dd { margin: 0; font-weight: ${be("semibold")}; }
|
|
773
797
|
/* Muted text is proved against the card colour, not this band, so the small print here is in the text colour (1.4.3). */
|
|
774
|
-
.small { grid-column: 1 / -1; margin: 0; padding: ${$(4)} ${$(8)}; ${
|
|
798
|
+
.small { grid-column: 1 / -1; margin: 0; padding: ${$(4)} ${$(8)}; ${ee("xs")} color: ${c.text}; background: ${c.surfaceSubtle}; }
|
|
775
799
|
@container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${$(5)}; } .small { padding: ${$(4)} ${$(5)}; } }
|
|
776
|
-
`]}money(
|
|
800
|
+
`]}money(i){try{return new Intl.NumberFormat(is(this),{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(i)}catch{return String(Math.round(i))}}field(i){return e=>{this[i]=Number(e.target.value)||0}}render(){let i=this.price*this.depositPercent/100,e=Math.max(this.price-i,0),t=cr(e,this.rate,this.years);return _`<div class="wrap" part="wrap">
|
|
777
801
|
<div class="inputs">
|
|
778
|
-
${this.heading?
|
|
779
|
-
<div><label for=${this.id_("price")}>${
|
|
780
|
-
<div><label for=${this.id_("deposit")}>${
|
|
802
|
+
${this.heading?_`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:ge}
|
|
803
|
+
<div><label for=${this.id_("price")}>${et("Home price")}</label><input id=${this.id_("price")} type="number" min="0" step="1000" inputmode="numeric" .value=${String(this.price)} @input=${this.field("price")} /></div>
|
|
804
|
+
<div><label for=${this.id_("deposit")}>${et("Deposit")} <span class="read">${this.depositPercent}% · ${this.money(i)}</span></label><input id=${this.id_("deposit")} type="range" min="5" max="60" step="1" .value=${String(this.depositPercent)} @input=${this.field("depositPercent")} /></div>
|
|
781
805
|
<div class="two">
|
|
782
|
-
<div><label for=${this.id_("years")}>${
|
|
783
|
-
<div><label for=${this.id_("rate")}>${
|
|
806
|
+
<div><label for=${this.id_("years")}>${et("Term")} <span class="read">${et("{years} years",{years:this.years})}</span></label><input id=${this.id_("years")} type="range" min="5" max="40" step="1" .value=${String(this.years)} @input=${this.field("years")} /></div>
|
|
807
|
+
<div><label for=${this.id_("rate")}>${et("Interest rate (%)")}</label><input id=${this.id_("rate")} type="number" min="0" max="20" step="0.05" inputmode="decimal" .value=${String(this.rate)} @input=${this.field("rate")} /></div>
|
|
784
808
|
</div>
|
|
785
809
|
</div>
|
|
786
810
|
<div class="result">
|
|
787
|
-
<p class="caption">${
|
|
788
|
-
<output for=${`${this.id_("price")} ${this.id_("deposit")} ${this.id_("years")} ${this.id_("rate")}`}>${this.money(
|
|
811
|
+
<p class="caption">${et("Estimated monthly repayment")}</p>
|
|
812
|
+
<output for=${`${this.id_("price")} ${this.id_("deposit")} ${this.id_("years")} ${this.id_("rate")}`}>${this.money(t)}</output>
|
|
789
813
|
<dl>
|
|
790
|
-
<div><dt>${
|
|
791
|
-
<div><dt>${
|
|
814
|
+
<div><dt>${et("You would borrow")}</dt><dd>${this.money(e)}</dd></div>
|
|
815
|
+
<div><dt>${et("Total repayable")}</dt><dd>${this.money(t*this.years*12)}</dd></div>
|
|
792
816
|
</dl>
|
|
793
817
|
</div>
|
|
794
|
-
${this.smallPrint?
|
|
795
|
-
</div>`}},
|
|
796
|
-
.frame { position: relative; overflow: hidden; border-radius: ${
|
|
818
|
+
${this.smallPrint?_`<p class="small">${this.smallPrint}</p>`:ge}
|
|
819
|
+
</div>`}},Ei=class extends He{static{this.properties={beforeSrc:{type:String,attribute:"before-src"},beforeAlt:{type:String,attribute:"before-alt"},afterSrc:{type:String,attribute:"after-src"},afterAlt:{type:String,attribute:"after-alt"},beforeLabel:{type:String,attribute:"before-label"},afterLabel:{type:String,attribute:"after-label"},label:{type:String},position:{type:Number},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.beforeSrc="",this.beforeAlt="",this.afterSrc="",this.afterAlt="",this.beforeLabel="Before",this.afterLabel="After",this.label="Compare the two pictures",this.position=50,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...He.styles,Bt,Ri,Et`
|
|
820
|
+
.frame { position: relative; overflow: hidden; border-radius: ${c.radius2xl}; box-shadow: ${c.shadowLg}; line-height: 0; --at: 50%; }
|
|
797
821
|
img { display: block; inline-size: 100%; block-size: auto; }
|
|
798
822
|
.after { position: absolute; inset: 0; block-size: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--at)); }
|
|
799
|
-
.tag { position: absolute; inset-block-start: ${$(3)}; padding: ${$(1)} ${$(3)}; ${
|
|
823
|
+
.tag { position: absolute; inset-block-start: ${$(3)}; padding: ${$(1)} ${$(3)}; ${ee("xs")} line-height: 1.4; font-weight: ${be("semibold")}; color: ${c.text}; background: ${c.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); box-shadow: ${c.shadowSm}; }
|
|
800
824
|
.tag.b { inset-inline-start: ${$(3)}; }
|
|
801
825
|
.tag.a { inset-inline-end: ${$(3)}; }
|
|
802
|
-
.line { position: absolute; inset-block: 0; inset-inline-start: var(--at); inline-size: 2px; margin-inline-start: -1px; background: ${
|
|
803
|
-
.grip { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; display: flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; color: ${
|
|
826
|
+
.line { position: absolute; inset-block: 0; inset-inline-start: var(--at); inline-size: 2px; margin-inline-start: -1px; background: ${c.surfaceCard}; pointer-events: none; }
|
|
827
|
+
.grip { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; display: flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; color: ${c.text}; background: ${c.surfaceCard}; border-radius: 50%; box-shadow: ${c.shadowMd}; }
|
|
804
828
|
input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
|
|
805
|
-
.frame:has(input:focus-visible) .grip { box-shadow: ${
|
|
806
|
-
`]}render(){return
|
|
829
|
+
.frame:has(input:focus-visible) .grip { box-shadow: ${c.focusShadow}; }
|
|
830
|
+
`]}render(){return _`<div class="frame" part="frame" style="--at:${this.position}%">
|
|
807
831
|
<img src=${this.beforeSrc} alt=${this.beforeAlt} />
|
|
808
832
|
<img class="after" src=${this.afterSrc} alt=${this.afterAlt} />
|
|
809
833
|
<span class="tag b" aria-hidden="true">${this.beforeLabel}</span>
|
|
810
834
|
<span class="tag a" aria-hidden="true">${this.afterLabel}</span>
|
|
811
|
-
<span class="line"><span class="grip">${
|
|
812
|
-
<input type="range" min="0" max="100" aria-label=${this.label} .value=${String(this.position)} @input=${
|
|
813
|
-
</div>`}},
|
|
835
|
+
<span class="line"><span class="grip">${pt("arrow-left","14px")}${pt("arrow-right","14px")}</span></span>
|
|
836
|
+
<input type="range" min="0" max="100" aria-label=${this.label} .value=${String(this.position)} @input=${i=>{this.position=Number(i.target.value)}} />
|
|
837
|
+
</div>`}},Bi=class extends He{constructor(){super();this.shown=!1;this.check=()=>{let e=window.scrollY>=this.revealAfter;e!==this.shown&&(this.shown=e,this.requestUpdate(),this.clearance(e))};this.label="Quick actions",this.heading="",this.lead="",this.showOn="phones",this.revealAfter=400}static{this.properties={label:{type:String},heading:{type:String},lead:{type:String},showOn:{type:String,reflect:!0,attribute:"show-on"},revealAfter:{type:Number,attribute:"reveal-after"}}}static{this.styles=[...He.styles,Bt,Et`
|
|
814
838
|
:host { display: block; }
|
|
815
|
-
.bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: ${$(4)}; padding: ${$(3)} ${$(4)} calc(${$(3)} + env(safe-area-inset-bottom)); background: ${
|
|
839
|
+
.bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: ${$(4)}; padding: ${$(3)} ${$(4)} calc(${$(3)} + env(safe-area-inset-bottom)); background: ${c.surfaceCard}; box-shadow: ${c.shadowXl}, 0 -1px 0 color-mix(in srgb, ${c.text} 8%, transparent); transform: translateY(110%); visibility: hidden; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms; }
|
|
816
840
|
.bar.on { transform: none; visibility: visible; }
|
|
817
841
|
.spacer { block-size: 5rem; }
|
|
818
|
-
.h { font-family: ${
|
|
819
|
-
.t { ${
|
|
842
|
+
.h { font-family: ${c.fontHeading}; ${ee("md")} font-weight: ${be("bold")}; color: ${c.textHeading}; }
|
|
843
|
+
.t { ${ee("xs")} color: ${c.textMuted}; }
|
|
820
844
|
.words { min-inline-size: 0; }
|
|
821
845
|
.actions { display: flex; flex: none; gap: ${$(2)}; }
|
|
822
846
|
@media (min-width: 48rem) { :host([show-on='phones']) { display: none; } }
|
|
823
|
-
`]}clearance(e){let a=e&&getComputedStyle(this).display!=="none"?`${this.renderRoot.querySelector(".bar")?.getBoundingClientRect().height??80}px`:"",r=document.documentElement.style;r.scrollPaddingBlockEnd=a,a?r.setProperty("--impakt-bottom-bar",a):r.removeProperty("--impakt-bottom-bar")}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.check,{passive:!0}),this.check()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.check),this.clearance(!1)}render(){return
|
|
847
|
+
`]}clearance(e){let a=e&&getComputedStyle(this).display!=="none"?`${this.renderRoot.querySelector(".bar")?.getBoundingClientRect().height??80}px`:"",r=document.documentElement.style;r.scrollPaddingBlockEnd=a,a?r.setProperty("--impakt-bottom-bar",a):r.removeProperty("--impakt-bottom-bar")}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.check,{passive:!0}),this.check()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.check),this.clearance(!1)}render(){return _`<div class="spacer"></div>
|
|
824
848
|
<section class="bar ${this.shown?"on":""}" part="bar" aria-label=${this.label}>
|
|
825
849
|
<div class="words">
|
|
826
|
-
${this.heading?
|
|
827
|
-
${this.lead?
|
|
850
|
+
${this.heading?_`<div class="h">${this.heading}</div>`:ge}
|
|
851
|
+
${this.lead?_`<div class="t">${this.lead}</div>`:ge}
|
|
828
852
|
</div>
|
|
829
853
|
<div class="actions"><slot name="actions"></slot></div>
|
|
830
|
-
</section>`}},
|
|
854
|
+
</section>`}},Ii=class extends He{static{this.properties={heading:{type:String},address:{type:String},hours:{type:String},phone:{type:String},mapSrc:{type:String,attribute:"map-src"},mapAlt:{type:String,attribute:"map-alt"},directionsText:{type:String,attribute:"directions-text"},directionsHref:{type:String,attribute:"directions-href"},nearby:{type:Array},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.address="",this.hours="",this.phone="",this.mapSrc="",this.mapAlt="",this.directionsText="Get directions",this.directionsHref="",this.nearby=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...He.styles,Bt,Ri,Et`
|
|
831
855
|
:host { display: block; container-type: inline-size; }
|
|
832
|
-
.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: ${
|
|
856
|
+
.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: ${c.surfaceCard}; border-radius: ${c.radius2xl}; box-shadow: ${c.shadowMd}, 0 0 0 1px color-mix(in srgb, ${c.text} 6%, transparent); }
|
|
833
857
|
.wrap.solo { grid-template-columns: minmax(0, 1fr); }
|
|
834
|
-
.map { min-block-size: 16rem; background: ${
|
|
858
|
+
.map { min-block-size: 16rem; background: ${c.surfaceSubtle}; }
|
|
835
859
|
.map img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
|
|
836
860
|
.info { display: flex; flex-direction: column; gap: ${$(3)}; padding: ${$(8)}; }
|
|
837
|
-
.h { margin: 0; font-family: ${
|
|
861
|
+
.h { margin: 0; font-family: ${c.fontHeading}; ${ee("2xl")} font-weight: ${be("bold")}; color: ${c.textHeading}; }
|
|
838
862
|
.row { display: flex; gap: ${$(3)}; margin: 0; white-space: pre-line; }
|
|
839
|
-
.row svg { flex: none; margin-block-start: ${$(.5)}; color: ${
|
|
840
|
-
.row a { display: inline-flex; align-items: center; min-block-size: ${
|
|
841
|
-
a { color: ${
|
|
842
|
-
ul { display: grid; gap: ${$(1.5)}; margin: ${$(1)} 0; padding: ${$(3)} 0 0; list-style: none; border-block-start: 1px solid color-mix(in srgb, ${
|
|
863
|
+
.row svg { flex: none; margin-block-start: ${$(.5)}; color: ${c.brand}; }
|
|
864
|
+
.row a { display: inline-flex; align-items: center; min-block-size: ${c.targetMin}; margin-block-start: -2px; }
|
|
865
|
+
a { color: ${c.link}; }
|
|
866
|
+
ul { display: grid; gap: ${$(1.5)}; margin: ${$(1)} 0; padding: ${$(3)} 0 0; list-style: none; border-block-start: 1px solid color-mix(in srgb, ${c.text} 10%, transparent); ${ee("sm")} }
|
|
843
867
|
li { display: flex; justify-content: space-between; gap: ${$(3)}; }
|
|
844
|
-
li span:last-child { color: ${
|
|
845
|
-
.go { ${
|
|
846
|
-
.go:hover { background: ${
|
|
868
|
+
li span:last-child { color: ${c.textMuted}; text-align: end; }
|
|
869
|
+
.go { ${lr} align-self: flex-start; display: inline-flex; align-items: center; gap: ${$(2)}; padding: ${$(2)} ${$(4)}; ${ee("sm")} font-weight: ${be("semibold")}; color: ${c.onBrand}; text-decoration: none; background: ${c.brand}; border-radius: ${c.radiusLg}; }
|
|
870
|
+
.go:hover { background: ${c.brandHover}; }
|
|
847
871
|
@container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .info { padding: ${$(5)}; } }
|
|
848
|
-
`]}render(){let
|
|
849
|
-
${this.mapSrc?
|
|
872
|
+
`]}render(){let i=this.directionsHref||(this.address?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(this.address)}`:"");return _`<div class="wrap ${this.mapSrc?"":"solo"}" part="wrap">
|
|
873
|
+
${this.mapSrc?_`<div class="map"><img src=${this.mapSrc} alt=${this.mapAlt} /></div>`:ge}
|
|
850
874
|
<div class="info">
|
|
851
|
-
${this.heading?
|
|
852
|
-
${this.address?
|
|
853
|
-
${this.hours?
|
|
854
|
-
${this.phone?
|
|
855
|
-
${this.nearby.length?
|
|
856
|
-
${
|
|
875
|
+
${this.heading?_`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:ge}
|
|
876
|
+
${this.address?_`<p class="row">${pt("map-pin","20px")}<span>${this.address}</span></p>`:ge}
|
|
877
|
+
${this.hours?_`<p class="row">${pt("clock","20px")}<span>${this.hours}</span></p>`:ge}
|
|
878
|
+
${this.phone?_`<p class="row">${pt("phone","20px")}<a href=${`tel:${this.phone.replace(/\s+/g,"")}`}>${this.phone}</a></p>`:ge}
|
|
879
|
+
${this.nearby.length?_`<ul>${this.nearby.map(e=>_`<li><span>${e.place}</span><span>${e.distance}</span></li>`)}</ul>`:ge}
|
|
880
|
+
${i?_`<a class="go" href=${i}>${this.directionsText}${pt("arrow-right","16px")}</a>`:ge}
|
|
857
881
|
</div>
|
|
858
|
-
</div>`}};customElements.define("impakt-site-plan",
|
|
882
|
+
</div>`}};customElements.define("impakt-site-plan",Ai);customElements.define("impakt-mortgage-calculator",Li);customElements.define("impakt-before-after",Ei);customElements.define("impakt-sticky-bar",Bi);customElements.define("impakt-location-card",Ii);import{css as vt,html as k,nothing as F}from"./atomic-ui.js";import{say as P,pageLocale as mr,ImpaktElement as Te,focusRing as Ht,targetSize as hr,visuallyHidden as as,fontWeight as de,space as b,spaceAround as kt,t as d,token as yt,type as te}from"./atomic-ui.js";var Nt=vt`
|
|
859
883
|
.card { background: ${d.surfaceCard}; border-radius: ${d.radiusXl}; box-shadow: ${d.shadowSm}, 0 0 0 1px ${d.hairline}; }
|
|
860
|
-
.h { margin: 0; font-family: ${d.fontHeading}; ${
|
|
861
|
-
.btn { display: inline-flex; justify-content: center; align-items: center; min-block-size: 44px; padding: ${
|
|
884
|
+
.h { margin: 0; font-family: ${d.fontHeading}; ${te("2xl")} font-weight: ${de("bold")}; color: ${d.textHeading}; }
|
|
885
|
+
.btn { display: inline-flex; justify-content: center; align-items: center; min-block-size: 44px; padding: ${b(2.5)} ${b(5)}; font: inherit; font-weight: ${de("semibold")}; color: ${d.onBrand}; text-decoration: none; background: ${d.brand}; border: 0; border-radius: ${d.radiusLg}; cursor: pointer; }
|
|
862
886
|
.btn:hover { background: ${d.brandHover}; }
|
|
863
887
|
.btn.quiet { color: ${d.link}; background: transparent; box-shadow: inset 0 0 0 ${d.borderThin} ${d.border}; }
|
|
864
|
-
.small { margin: 0; ${
|
|
865
|
-
.visually-hidden { ${
|
|
866
|
-
`,
|
|
888
|
+
.small { margin: 0; ${te("xs")} color: ${d.textMuted}; }
|
|
889
|
+
.visually-hidden { ${as} }
|
|
890
|
+
`,Hi=(n,i="GBP",e=0)=>{try{return new Intl.NumberFormat(mr(),{style:"currency",currency:i,maximumFractionDigits:e,minimumFractionDigits:e}).format(n)}catch{return String(Math.round(n))}},dr=k`<svg viewBox="0 0 20 12" width="20" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M0 6h18M13 1l5 5-5 5" /></svg>`,Ni=class extends Te{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=[...Te.styles,Ht,hr,kt,Nt,vt`
|
|
867
891
|
:host { display: block; container-type: inline-size; }
|
|
868
|
-
.h { margin-block-end: ${
|
|
869
|
-
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: ${
|
|
870
|
-
.plan { --plan-accent: ${
|
|
892
|
+
.h { margin-block-end: ${b(5)}; }
|
|
893
|
+
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: ${b(4)}; }
|
|
894
|
+
.plan { --plan-accent: ${yt("color.accent.default","#ffd43b")}; --plan-on-accent: ${yt("color.accent.on","#111111")}; position: relative; display: flex; flex-direction: column; gap: ${b(3)}; padding: ${b(6)}; color: ${d.text}; border: ${d.borderThin} solid ${d.text}; border-radius: ${d.radiusSm}; box-shadow: none; }
|
|
871
895
|
/* The featured plan is filled with ink: the card colour on it, and the accent for its badge, price, ticks and button. */
|
|
872
896
|
.plan.top { background: ${d.text}; color: ${d.surfaceCard}; --plan-muted: color-mix(in srgb, ${d.surfaceCard} 72%, ${d.text}); }
|
|
873
|
-
.badge { align-self: flex-start; padding: 2px ${
|
|
874
|
-
.name { margin: 0; ${
|
|
875
|
-
.price { margin: 0; font-family: ${d.fontHeading}; ${
|
|
897
|
+
.badge { align-self: flex-start; padding: 2px ${b(2)}; font-family: ${d.fontMono}; font-size: 0.6875rem; font-weight: ${de("medium")}; line-height: 1.4; letter-spacing: ${d.trackingWide}; text-transform: uppercase; color: var(--plan-on-accent); background: var(--plan-accent); white-space: nowrap; }
|
|
898
|
+
.name { margin: 0; ${te("lg")} font-weight: ${de("medium")}; color: inherit; }
|
|
899
|
+
.price { margin: 0; font-family: ${d.fontHeading}; ${te("4xl")} font-weight: ${de("bold")}; letter-spacing: -0.03em; color: inherit; }
|
|
876
900
|
/* Accent words on ink only where the theme says the pair reads: in light. In dark the ink turns to paper and the price keeps the card's words. */
|
|
877
901
|
.top .price { color: var(--impakt-color-accent-on-ink, var(--impakt-site-menu-current, currentColor)); }
|
|
878
|
-
.period { margin-inline-start: ${
|
|
879
|
-
.note { margin: 0; ${
|
|
880
|
-
ul { flex: 1; margin: 0; padding: ${
|
|
881
|
-
li { display: flex; gap: ${
|
|
902
|
+
.period { margin-inline-start: ${b(1)}; font-family: ${d.fontMono}; font-size: 0.8125rem; font-weight: ${de("regular")}; letter-spacing: 0; color: var(--plan-muted, ${d.textMuted}); }
|
|
903
|
+
.note { margin: 0; ${te("sm")} color: var(--plan-muted, ${d.textMuted}); }
|
|
904
|
+
ul { flex: 1; margin: 0; padding: ${b(3)} 0 0; list-style: none; display: grid; gap: ${b(2)}; align-content: start; }
|
|
905
|
+
li { display: flex; gap: ${b(2)}; ${te("sm")} }
|
|
882
906
|
li[data-has='false'] { color: var(--plan-muted, ${d.textMuted}); }
|
|
883
907
|
.mark { flex-shrink: 0; inline-size: 1em; text-align: start; }
|
|
884
908
|
.top li[data-has='true'] .mark { color: var(--plan-accent); }
|
|
885
|
-
.plan .btn { justify-content: space-between; gap: ${
|
|
909
|
+
.plan .btn { justify-content: space-between; gap: ${b(4)}; color: ${d.surfaceCard}; background: ${d.text}; border-radius: ${d.radiusSm}; box-shadow: none; }
|
|
886
910
|
.plan .btn:hover { background: ${d.brandHover}; }
|
|
887
911
|
.plan.top .btn { color: var(--plan-on-accent); background: var(--plan-accent); }
|
|
888
912
|
.plan.top .btn:hover { background: color-mix(in srgb, var(--plan-accent) 88%, ${d.surfaceCard}); }
|
|
889
913
|
@media (forced-colors: active) { .plan { border-color: CanvasText; } .badge { border: 1px solid CanvasText; } }
|
|
890
|
-
@container (max-width: 40rem) { .grid { grid-template-columns: minmax(0, 1fr); gap: ${
|
|
891
|
-
`]}has(
|
|
892
|
-
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
914
|
+
@container (max-width: 40rem) { .grid { grid-template-columns: minmax(0, 1fr); gap: ${b(6)}; } }
|
|
915
|
+
`]}has(i,e){return i.includes.split(",").map(t=>t.trim().toLowerCase()).includes(e.label.trim().toLowerCase())}choose(i,e){this.dispatchEvent(new CustomEvent("impakt-select",{detail:{plan:i},bubbles:!0,composed:!0,cancelable:!0}))||e.preventDefault()}render(){return k`
|
|
916
|
+
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:F}
|
|
893
917
|
<div class="grid" style=${`--cols: ${Math.max(1,this.plans.length)}`}>
|
|
894
|
-
${this.plans.map(
|
|
895
|
-
${
|
|
896
|
-
<h3 class="name" id=${this.id_(`n-${
|
|
897
|
-
<p class="price">${
|
|
898
|
-
${
|
|
899
|
-
<ul>${this.rows.map(e=>{let
|
|
900
|
-
${
|
|
918
|
+
${this.plans.map(i=>k`<section class="card plan ${i.badge?"top":""}" aria-labelledby=${this.id_(`n-${i.id}`)}>
|
|
919
|
+
${i.badge?k`<span class="badge">${i.badge}</span>`:F}
|
|
920
|
+
<h3 class="name" id=${this.id_(`n-${i.id}`)}>${i.name}</h3>
|
|
921
|
+
<p class="price">${i.price}${i.period?k` <span class="period">${i.period}</span>`:F}</p>
|
|
922
|
+
${i.note?k`<p class="note">${i.note}</p>`:F}
|
|
923
|
+
<ul>${this.rows.map(e=>{let t=this.has(i,e);return k`<li data-has=${String(t)}><span class="mark" aria-hidden="true">${t?"\u221A":"\u2013"}</span><span>${e.label}${t?k`<span class="visually-hidden">: ${P("included")}</span>`:k`<span class="not"> · ${P("not included")}</span>`}</span></li>`})}</ul>
|
|
924
|
+
${i.href?k`<a class="btn" href=${i.href} @click=${e=>this.choose(i,e)}><span>${this.buttonText}<span class="visually-hidden"> ${i.name}</span></span>${dr}</a>`:k`<button class="btn" type="button" @click=${e=>this.choose(i,e)}><span>${this.buttonText}<span class="visually-hidden"> ${i.name}</span></span>${dr}</button>`}
|
|
901
925
|
</section>`)}
|
|
902
|
-
</div>`}};function
|
|
926
|
+
</div>`}};function ur(n,i){let e=/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]{6,})/.exec(n),t=i&&!/^en\b/i.test(i)?`&hl=${encodeURIComponent(i.split("-")[0])}&cc_lang_pref=${encodeURIComponent(i.split("-")[0])}`:"";if(e)return`https://www.youtube-nocookie.com/embed/${e[1]}?autoplay=1&rel=0${t}`;let a=/vimeo\.com\/(?:video\/)?(\d+)/.exec(n);return a?`https://player.vimeo.com/video/${a[1]}?autoplay=1&dnt=1`:null}var It=class extends Te{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},look:{type:String,reflect:!0},caption:{type:String},duration:{type:String},transcript:{type:String},transcriptText:{type:String,attribute:"transcript-text"},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.look="plain",this.caption="",this.duration="",this.transcript="",this.transcriptText="",this.playing=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Te.styles,Ht,kt,Nt,vt`
|
|
903
927
|
:host { display: block; }
|
|
904
928
|
.frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: ${d.radiusXl}; background: #111; }
|
|
905
929
|
:host([ratio='4:3']) .frame { aspect-ratio: 4 / 3; }
|
|
@@ -909,182 +933,182 @@ import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui
|
|
|
909
933
|
.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; }
|
|
910
934
|
.disc { display: grid; place-items: center; inline-size: 72px; block-size: 72px; border-radius: 50%; background: ${d.brand}; box-shadow: ${d.shadowLg}; }
|
|
911
935
|
/* Held inside the frame at both edges, so loosened or long words wrap rather than run out of it (1.4.12). */
|
|
912
|
-
.label { position: absolute; inset-inline: ${
|
|
913
|
-
.foot { margin: ${
|
|
936
|
+
.label { position: absolute; inset-inline: ${b(5)}; inset-block-end: ${b(4)}; ${te("lg")} font-weight: ${de("semibold")}; text-align: start; }
|
|
937
|
+
.foot { margin: ${b(2)} 0 0; ${te("sm")} }
|
|
914
938
|
.foot a { color: ${d.link}; }
|
|
915
939
|
.empty { display: grid; place-items: center; block-size: 100%; color: #ccc; }
|
|
916
940
|
/* The window: a bar with three dots and a caption over an ink stage. It stays ink in both themes. */
|
|
917
941
|
.window { --stage: var(--impakt-video-stage, #111111); --stage-on: var(--impakt-video-stage-on, #efefed); --stage-rule: color-mix(in srgb, var(--stage-on) 14%, var(--stage)); background: var(--stage); color: var(--stage-on); border: ${d.borderThin} solid var(--stage-rule); }
|
|
918
|
-
.bar { display: flex; align-items: center; gap: ${
|
|
942
|
+
.bar { display: flex; align-items: center; gap: ${b(1.5)}; padding: ${b(3)} ${b(4)}; border-block-end: ${d.borderThin} solid var(--stage-rule); background: color-mix(in srgb, var(--stage-on) 6%, var(--stage)); }
|
|
919
943
|
.bar .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--stage-rule); }
|
|
920
|
-
.bar .dot:first-child { background: ${
|
|
921
|
-
.bar .caption { margin-inline-start: ${
|
|
944
|
+
.bar .dot:first-child { background: ${yt("color.accent.default","#ffd43b")}; }
|
|
945
|
+
.bar .caption { margin-inline-start: ${b(1.5)}; font-family: ${d.fontMono}; font-size: 0.6875rem; letter-spacing: ${d.trackingWide}; text-transform: uppercase; color: color-mix(in srgb, var(--stage-on) 78%, var(--stage)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
922
946
|
:host([look='window']) .frame { border-radius: 0; background: var(--stage); }
|
|
923
947
|
:host([look='window']) .play { background: none; color: inherit; }
|
|
924
948
|
:host([look='window']) .disc { display: none; }
|
|
925
|
-
:host([look='window']) .label { position: static; display: inline-flex; align-items: baseline; gap: ${
|
|
926
|
-
:host([look='window']) .play:hover .label { background: color-mix(in srgb, ${
|
|
949
|
+
:host([look='window']) .label { position: static; display: inline-flex; align-items: baseline; gap: ${b(3)}; max-inline-size: calc(100% - 2 * ${b(5)}); box-sizing: border-box; padding: ${b(3)} ${b(5)}; ${te("md")} font-weight: ${de("medium")}; color: ${yt("color.accent.on","#111111")}; background: ${yt("color.accent.default","#ffd43b")}; }
|
|
950
|
+
:host([look='window']) .play:hover .label { background: color-mix(in srgb, ${yt("color.accent.default","#ffd43b")} 88%, #ffffff); }
|
|
927
951
|
:host([look='window']) .play:focus-visible { outline: none; }
|
|
928
952
|
:host([look='window']) .play:focus-visible .label { box-shadow: ${d.focusShadow}; }
|
|
929
953
|
.length { font-family: ${d.fontMono}; font-size: 0.6875rem; letter-spacing: ${d.trackingWide}; text-transform: uppercase; }
|
|
930
|
-
.transcript { margin-block-start: ${
|
|
931
|
-
.transcript summary { ${
|
|
954
|
+
.transcript { margin-block-start: ${b(3)}; border-block: ${d.borderThin} solid ${d.text}; }
|
|
955
|
+
.transcript summary { ${hr} display: flex; align-items: center; gap: ${b(2)}; padding-block: ${b(3)}; cursor: pointer; font-weight: ${de("medium")}; list-style: none; }
|
|
932
956
|
.transcript summary::-webkit-details-marker { display: none; }
|
|
933
957
|
.transcript summary::before { content: '+'; inline-size: 1ch; font-family: ${d.fontMono}; }
|
|
934
958
|
.transcript[open] summary::before { content: '−'; }
|
|
935
|
-
.transcript .words { padding-block-end: ${
|
|
959
|
+
.transcript .words { padding-block-end: ${b(4)}; color: ${d.textMuted}; display: grid; gap: ${b(3)}; max-inline-size: 65ch; }
|
|
936
960
|
.transcript p { margin: 0; }
|
|
937
961
|
@media (forced-colors: active) { .window, .bar { border-color: CanvasText; } :host([look='window']) .label { border: 1px solid ButtonText; } }
|
|
938
|
-
`]}render(){let
|
|
962
|
+
`]}render(){let i=ur(this.videoSrc,mr(this)),e;this.videoSrc?i&&this.playing?e=k`<iframe src=${i} title=${this.label} allow="autoplay; encrypted-media; picture-in-picture; fullscreen" allowfullscreen></iframe>`:i?e=k`${this.posterSrc?k`<img src=${this.posterSrc} alt="" />`:F}
|
|
939
963
|
<button class="play" type="button" @click=${()=>{this.playing=!0}}>
|
|
940
964
|
<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>
|
|
941
|
-
<span class="label">${this.playText}${this.duration?k` <span class="length">${this.duration}</span>`:
|
|
942
|
-
</button>`:e=k`<video controls preload="metadata" poster=${this.posterSrc||
|
|
965
|
+
<span class="label">${this.playText}${this.duration?k` <span class="length">${this.duration}</span>`:F}<span class="visually-hidden">: ${this.label}</span></span>
|
|
966
|
+
</button>`:e=k`<video controls preload="metadata" poster=${this.posterSrc||F} aria-label=${this.label}>
|
|
943
967
|
<source src=${this.videoSrc} />
|
|
944
|
-
${this.captionsSrc?k`<track kind="captions" src=${this.captionsSrc} srclang="en" label="English" default />`:
|
|
945
|
-
</video>`:e=k`<div class="empty">${
|
|
946
|
-
<div class="bar" aria-hidden="true"><span class="dot"></span><span class="dot"></span><span class="dot"></span>${this.caption?k`<span class="caption">${this.caption}</span>`:
|
|
947
|
-
${
|
|
948
|
-
</div>`:
|
|
949
|
-
${a.length?k`<details class="transcript" part="transcript"><summary>${this.transcriptText||
|
|
950
|
-
${this.transcriptHref?k`<p class="foot"><a href=${this.transcriptHref}>${
|
|
968
|
+
${this.captionsSrc?k`<track kind="captions" src=${this.captionsSrc} srclang="en" label="English" default />`:F}
|
|
969
|
+
</video>`:e=k`<div class="empty">${P("Add a video address")}</div>`;let t=k`<div class="frame" part="frame">${e}</div>`,a=(this.transcript??"").split(/\n\s*\n/).map(r=>r.trim()).filter(Boolean);return k`${this.look==="window"?k`<div class="window" part="window">
|
|
970
|
+
<div class="bar" aria-hidden="true"><span class="dot"></span><span class="dot"></span><span class="dot"></span>${this.caption?k`<span class="caption">${this.caption}</span>`:F}</div>
|
|
971
|
+
${t}
|
|
972
|
+
</div>`:t}
|
|
973
|
+
${a.length?k`<details class="transcript" part="transcript"><summary>${this.transcriptText||P("Read the transcript")}</summary><div class="words">${a.map(r=>k`<p>${r}</p>`)}</div></details>`:F}
|
|
974
|
+
${this.transcriptHref?k`<p class="foot"><a href=${this.transcriptHref}>${P("Read the transcript")}<span class="visually-hidden">${P(" of {video}",{video:this.label})}</span></a></p>`:F}`}},pr={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:""}},qi=class extends Te{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=[...Te.styles,kt,vt`
|
|
951
975
|
:host { display: block; }
|
|
952
|
-
.box { padding: ${
|
|
976
|
+
.box { padding: ${b(5)}; border-inline-start: 6px solid ${d.warning}; border-radius: ${d.radiusLg}; background: ${d.warningSubtle}; }
|
|
953
977
|
:host([kind='insurance']) .box { border-color: ${d.info}; background: ${d.infoSubtle}; }
|
|
954
|
-
strong { display: block; margin-block-end: ${
|
|
978
|
+
strong { display: block; margin-block-end: ${b(1)}; ${te("md")} color: ${d.text}; }
|
|
955
979
|
p { margin: 0; color: ${d.text}; }
|
|
956
980
|
/* 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). */
|
|
957
|
-
.firm { margin-block-start: ${
|
|
958
|
-
`]}render(){let
|
|
959
|
-
${e?k`<strong>${e}</strong>`:
|
|
960
|
-
${
|
|
961
|
-
${this.firm?k`<p class="firm">${this.firm}</p>`:
|
|
962
|
-
</aside>`}},
|
|
981
|
+
.firm { margin-block-start: ${b(3)}; ${te("sm")} color: ${d.text}; }
|
|
982
|
+
`]}render(){let i=pr[this.kind]??pr.custom,e=this.heading||(i.heading?P(i.heading):""),t=this.text||(i.text?P(i.text):"");return k`<aside class="box" part="box" aria-label=${e||P("Important information")}>
|
|
983
|
+
${e?k`<strong>${e}</strong>`:F}
|
|
984
|
+
${t?k`<p>${t}</p>`:F}
|
|
985
|
+
${this.firm?k`<p class="firm">${this.firm}</p>`:F}
|
|
986
|
+
</aside>`}},tt={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 Ca(n,i,e=0){let t=0;return i.forEach((a,r)=>{let s=i[r+1]?.from??1/0;n>a.from&&(t+=(Math.min(n,s)-a.from)*(a.rate+e)/100)}),Math.round(t)}function gr(n,i){return n<=0?0:i==="first-time"&&n<=tt.firstTimeLimit?Ca(n,tt.firstTime):i==="additional"?n<4e4?0:Ca(n,tt.standard,tt.additionalSurcharge):Ca(n,tt.standard)}var br=vt`
|
|
963
987
|
:host { display: block; container-type: inline-size; }
|
|
964
988
|
.wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; }
|
|
965
|
-
.inputs { display: flex; flex-direction: column; gap: ${
|
|
966
|
-
label, legend { display: block; ${
|
|
989
|
+
.inputs { display: flex; flex-direction: column; gap: ${b(5)}; padding: ${b(8)}; }
|
|
990
|
+
label, legend { display: block; ${te("sm")} font-weight: ${de("semibold")}; margin-block-end: ${b(1.5)}; padding: 0; }
|
|
967
991
|
fieldset { margin: 0; padding: 0; border: 0; }
|
|
968
|
-
.choices { display: flex; flex-wrap: wrap; gap: ${
|
|
969
|
-
.choices label { display: inline-flex; align-items: center; gap: ${
|
|
992
|
+
.choices { display: flex; flex-wrap: wrap; gap: ${b(2)}; }
|
|
993
|
+
.choices label { display: inline-flex; align-items: center; gap: ${b(2)}; margin: 0; padding: ${b(2)} ${b(3)}; font-weight: ${de("regular")}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; cursor: pointer; }
|
|
970
994
|
.choices input { accent-color: ${d.brand}; }
|
|
971
|
-
input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${
|
|
972
|
-
.result { display: flex; flex-direction: column; justify-content: center; gap: ${
|
|
973
|
-
.caption { margin: 0; ${
|
|
974
|
-
output { display: block; font-family: ${d.fontHeading}; ${
|
|
975
|
-
.line { margin: 0; ${
|
|
976
|
-
.foot { grid-column: 1 / -1; padding: ${
|
|
995
|
+
input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${b(2)} ${b(3)}; font: inherit; color: ${d.text}; background: ${d.surfaceCard}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; }
|
|
996
|
+
.result { display: flex; flex-direction: column; justify-content: center; gap: ${b(2)}; padding: ${b(8)}; color: ${d.onBrand}; background: ${d.brand}; }
|
|
997
|
+
.caption { margin: 0; ${te("sm")} opacity: 0.85; }
|
|
998
|
+
output { display: block; font-family: ${d.fontHeading}; ${te("4xl")} font-weight: ${de("bold")}; }
|
|
999
|
+
.line { margin: 0; ${te("sm")} }
|
|
1000
|
+
.foot { grid-column: 1 / -1; padding: ${b(4)} ${b(8)}; background: ${d.surfaceSubtle}; }
|
|
977
1001
|
/* Muted text is proved against the card colour, not this band, so the small print here is in the text colour (1.4.3). */
|
|
978
1002
|
.foot .small { color: ${d.text}; }
|
|
979
|
-
@container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${
|
|
980
|
-
`,
|
|
1003
|
+
@container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${b(5)}; } .foot { padding: ${b(4)} ${b(5)}; } }
|
|
1004
|
+
`,ji=class extends Te{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=[...Te.styles,Ht,kt,Nt,br]}render(){let i=gr(this.price,this.buyer),e=this.price>0?i/this.price*100:0,t=[["first-time",P("First home")],["mover",P("Moving home")],["additional",P("Second home")]];return k`<div class="card wrap" part="wrap">
|
|
981
1005
|
<div class="inputs">
|
|
982
|
-
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
983
|
-
<div><label for=${this.id_("price")}>${
|
|
1006
|
+
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:F}
|
|
1007
|
+
<div><label for=${this.id_("price")}>${P("Price of the home (\xA3)")}</label>
|
|
984
1008
|
<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>
|
|
985
|
-
<fieldset><legend>${
|
|
986
|
-
${
|
|
1009
|
+
<fieldset><legend>${P("Are you buying")}</legend><div class="choices">
|
|
1010
|
+
${t.map(([a,r])=>k`<label><input type="radio" name=${this.id_("buyer")} .checked=${this.buyer===a} @change=${()=>{this.buyer=a}} />${r}</label>`)}
|
|
987
1011
|
</div></fieldset>
|
|
988
1012
|
</div>
|
|
989
1013
|
<div class="result" aria-live="polite">
|
|
990
|
-
<p class="caption">${
|
|
991
|
-
<output for=${this.id_("price")}>${
|
|
992
|
-
<p class="line">${
|
|
993
|
-
${this.buyer==="first-time"&&this.price>
|
|
1014
|
+
<p class="caption">${P("Stamp duty to pay")}</p>
|
|
1015
|
+
<output for=${this.id_("price")}>${Hi(i)}</output>
|
|
1016
|
+
<p class="line">${i?P("About {rate}% of the price",{rate:e.toFixed(1)}):P("Nothing to pay at this price")}</p>
|
|
1017
|
+
${this.buyer==="first-time"&&this.price>tt.firstTimeLimit?k`<p class="line">${P("First-time buyer relief stops above {limit}, so the usual rates apply.",{limit:Hi(tt.firstTimeLimit)})}</p>`:F}
|
|
994
1018
|
</div>
|
|
995
|
-
${this.smallPrint?k`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:
|
|
996
|
-
</div>`}},
|
|
997
|
-
<input id=${this.id_(
|
|
1019
|
+
${this.smallPrint?k`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:F}
|
|
1020
|
+
</div>`}},Pi=class extends Te{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=[...Te.styles,Ht,kt,Nt,br]}field(i){return e=>{this[i]=Number(e.target.value)||0}}render(){let i=Math.max(0,(this.income+this.secondIncome)*this.timesIncome),e=(t,a)=>k`<div><label for=${this.id_(t)}>${a}</label>
|
|
1021
|
+
<input id=${this.id_(t)} type="number" min="0" step="1000" inputmode="numeric" .value=${String(this[t])} @input=${this.field(t)} /></div>`;return k`<div class="card wrap" part="wrap">
|
|
998
1022
|
<div class="inputs">
|
|
999
|
-
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
1000
|
-
${e("income",
|
|
1001
|
-
${e("secondIncome",
|
|
1002
|
-
${e("deposit",
|
|
1023
|
+
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:F}
|
|
1024
|
+
${e("income",P("Your yearly income before tax (\xA3)"))}
|
|
1025
|
+
${e("secondIncome",P("A second person\u2019s income, if buying together (\xA3)"))}
|
|
1026
|
+
${e("deposit",P("Your deposit (\xA3)"))}
|
|
1003
1027
|
</div>
|
|
1004
1028
|
<div class="result" aria-live="polite">
|
|
1005
|
-
<p class="caption">${
|
|
1006
|
-
<output>${
|
|
1007
|
-
<p class="line">${
|
|
1029
|
+
<p class="caption">${P("You could borrow about")}</p>
|
|
1030
|
+
<output>${Hi(i)}</output>
|
|
1031
|
+
<p class="line">${P("With your deposit, that\u2019s a home of about {amount}.",{amount:Hi(i+this.deposit)})}</p>
|
|
1008
1032
|
</div>
|
|
1009
|
-
${this.smallPrint?k`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:
|
|
1010
|
-
</div>`}},
|
|
1011
|
-
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=[...
|
|
1033
|
+
${this.smallPrint?k`<div class="foot"><p class="small">${this.smallPrint}</p></div>`:F}
|
|
1034
|
+
</div>`}},Rt=class extends Te{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
|
|
1035
|
+
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=[...Te.styles,Ht,kt,Nt,vt`
|
|
1012
1036
|
:host { display: block; container-type: inline-size; }
|
|
1013
|
-
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${
|
|
1014
|
-
.phone { display: inline-block; margin: ${
|
|
1037
|
+
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${b(6)}; padding: ${b(8)}; }
|
|
1038
|
+
.phone { display: inline-block; margin: ${b(3)} 0; font-family: ${d.fontHeading}; ${te("3xl")} font-weight: ${de("bold")}; color: ${d.link}; text-decoration: none; }
|
|
1015
1039
|
.hours { margin: 0; white-space: pre-line; color: ${d.textMuted}; }
|
|
1016
|
-
.email { display: inline-flex; align-items: center; min-block-size: ${d.targetMin}; margin-block-start: ${
|
|
1017
|
-
form { display: grid; gap: ${
|
|
1018
|
-
.sub { margin: 0; ${
|
|
1019
|
-
label { display: block; ${
|
|
1020
|
-
input, select { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${
|
|
1021
|
-
.done { margin: 0; padding: ${
|
|
1022
|
-
@container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); padding: ${
|
|
1023
|
-
`]}submit(
|
|
1040
|
+
.email { display: inline-flex; align-items: center; min-block-size: ${d.targetMin}; margin-block-start: ${b(3)}; color: ${d.link}; overflow-wrap: anywhere; }
|
|
1041
|
+
form { display: grid; gap: ${b(3)}; padding: ${b(5)}; border-radius: ${d.radiusLg}; background: ${d.surfaceInset}; }
|
|
1042
|
+
.sub { margin: 0; ${te("lg")} font-weight: ${de("bold")}; color: ${d.text}; }
|
|
1043
|
+
label { display: block; ${te("sm")} font-weight: ${de("semibold")}; margin-block-end: ${b(1)}; }
|
|
1044
|
+
input, select { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${b(2)} ${b(3)}; font: inherit; color: ${d.text}; background: ${d.surfaceCard}; border: ${d.borderThin} solid ${d.border}; border-radius: ${d.radiusLg}; }
|
|
1045
|
+
.done { margin: 0; padding: ${b(5)}; border-radius: ${d.radiusLg}; background: ${d.successSubtle}; color: ${d.successText}; font-weight: ${de("semibold")}; }
|
|
1046
|
+
@container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); padding: ${b(5)}; } }
|
|
1047
|
+
`]}submit(i){i.preventDefault();let e=new FormData(i.target),t={name:String(e.get("name")??""),phone:String(e.get("phone")??""),when:String(e.get("when")??"")};this.dispatchEvent(new CustomEvent("impakt-submit",{detail:t,bubbles:!0,composed:!0})),this.sent=!0}render(){return k`<div class="card wrap" part="wrap">
|
|
1024
1048
|
<div>
|
|
1025
|
-
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:
|
|
1026
|
-
${this.phone?k`<a class="phone" href=${`tel:${this.phone.replace(/[^\d+]/g,"")}`}>${this.phone}</a>`:
|
|
1027
|
-
${this.hours?k`<p class="hours">${this.hours}</p>`:
|
|
1028
|
-
${this.email?k`<a class="email" href=${`mailto:${this.email}`}>${this.email}</a>`:
|
|
1049
|
+
${this.heading?k`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:F}
|
|
1050
|
+
${this.phone?k`<a class="phone" href=${`tel:${this.phone.replace(/[^\d+]/g,"")}`}>${this.phone}</a>`:F}
|
|
1051
|
+
${this.hours?k`<p class="hours">${this.hours}</p>`:F}
|
|
1052
|
+
${this.email?k`<a class="email" href=${`mailto:${this.email}`}>${this.email}</a>`:F}
|
|
1029
1053
|
</div>
|
|
1030
1054
|
${this.callbackHeading?this.sent?k`<p class="done" role="status">${this.doneText}</p>`:k`<form @submit=${this.submit} aria-labelledby=${this.id_("cb")}>
|
|
1031
1055
|
<p class="sub" id=${this.id_("cb")}>${this.callbackHeading}</p>
|
|
1032
|
-
<div><label for=${this.id_("name")}>${
|
|
1033
|
-
<div><label for=${this.id_("tel")}>${
|
|
1034
|
-
<div><label for=${this.id_("when")}>${
|
|
1056
|
+
<div><label for=${this.id_("name")}>${P("Your name")}</label><input id=${this.id_("name")} name="name" autocomplete="name" required /></div>
|
|
1057
|
+
<div><label for=${this.id_("tel")}>${P("Phone number")}</label><input id=${this.id_("tel")} name="phone" type="tel" autocomplete="tel" required /></div>
|
|
1058
|
+
<div><label for=${this.id_("when")}>${P("Best time to call")}</label><select id=${this.id_("when")} name="when"><option value="Morning">${P("Morning")}</option><option value="Afternoon">${P("Afternoon")}</option><option value="Evening">${P("Evening")}</option></select></div>
|
|
1035
1059
|
<button class="btn" type="submit">${this.buttonText}</button>
|
|
1036
|
-
</form>`:
|
|
1037
|
-
</div>`}};
|
|
1060
|
+
</form>`:F}
|
|
1061
|
+
</div>`}};It.createProperty("playing",{state:!0});Rt.createProperty("sent",{state:!0});customElements.define("impakt-plan-comparison",Ni);customElements.define("impakt-video",It);customElements.define("impakt-regulatory-notice",qi);customElements.define("impakt-stamp-duty-calculator",ji);customElements.define("impakt-affordability-calculator",Pi);customElements.define("impakt-contact-block",Rt);import{css as rs,html as W,nothing as me,unsafeCSS as fr}from"./atomic-ui.js";import{ImpaktElement as $r,pageLocale as xr,say as Q,focusRing as ss,targetSize as Aa,visuallyHidden as yr,fontSize as La,fontWeight as it,space as x,spaceAround as ns,t as f,token as vr,type as Ae,toneOf as Oi}from"./atomic-ui.js";var Wi=n=>n.reduce((i,e)=>i+e,0),kr=(n,i)=>n.find(e=>typeof e.below=="number"&&i<e.below)??n.at(-1);function qt(n,i,e){let t=n.flatMap(o=>(i[o.id]??[]).flatMap(h=>o.choices.filter(m=>m.id===h))),a=Wi(t.map(o=>o.cost??0)),r=Wi(t.map(o=>o.weeks??0));for(let o of t)a*=o.costFactor??1,r*=o.weeksFactor??1;let s=(kr(e.teams,a)?.engineers??1)+Wi(t.map(o=>o.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:s,way:kr(e.ways,a)?.text??""}}function Ea(n,i){let e=n.map(a=>typeof a.share=="number"?Math.max(1,Math.round(i*a.share)):0),t=Math.max(1,i-Wi(e));return n.map((a,r)=>typeof a.share=="number"?e[r]:t)}var Fi=class extends $r{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.layout="wizard",this.wayLabel="",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"},layout:{type:String,reflect:!0},wayLabel:{type:String,attribute:"way-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=[...$r.styles,ns,ss,rs`
|
|
1038
1062
|
:host { display: block; container-type: inline-size; }
|
|
1039
1063
|
[hidden] { display: none !important; }
|
|
1040
1064
|
.wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: ${x(10)}; align-items: start; }
|
|
1041
|
-
.mono { font-family: ${
|
|
1042
|
-
.sr-only { ${
|
|
1065
|
+
.mono { font-family: ${f.fontMono}; font-size: ${La("xs")}; letter-spacing: 0.04em; text-transform: uppercase; color: ${f.textMuted}; margin: 0; }
|
|
1066
|
+
.sr-only { ${yr} }
|
|
1043
1067
|
|
|
1044
1068
|
.progress { display: grid; gap: ${x(2)}; margin-block-end: ${x(6)}; }
|
|
1045
1069
|
.bar { block-size: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
|
|
1046
|
-
.bar i { display: block; block-size: 100%; background: ${
|
|
1070
|
+
.bar i { display: block; block-size: 100%; background: ${f.brand}; transition: inline-size 300ms ease; }
|
|
1047
1071
|
|
|
1048
1072
|
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
|
|
1049
1073
|
legend { padding: 0; margin-block-end: ${x(2)}; }
|
|
1050
|
-
.q { margin: 0; font-family: ${
|
|
1051
|
-
.hint { margin: 0 0 ${x(6)}; color: ${
|
|
1074
|
+
.q { margin: 0; font-family: ${f.fontHeading}; font-weight: ${it("bold")}; ${Ae("3xl")} letter-spacing: ${f.trackingTight}; color: ${f.textHeading}; outline: none; }
|
|
1075
|
+
.hint { margin: 0 0 ${x(6)}; color: ${f.textMuted}; }
|
|
1052
1076
|
|
|
1053
1077
|
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${x(3)}; }
|
|
1054
1078
|
.choices.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1055
|
-
.choice { position: relative; display: grid; gap: ${x(1)}; align-content: start; padding: ${x(4)}; border: ${
|
|
1056
|
-
.choice:hover { border-color: ${
|
|
1057
|
-
.choice input { ${
|
|
1058
|
-
.choice:has(input:checked) { border-color: ${
|
|
1059
|
-
.choice:has(input:focus-visible) { box-shadow: ${
|
|
1079
|
+
.choice { position: relative; display: grid; gap: ${x(1)}; align-content: start; padding: ${x(4)}; border: ${f.borderThin} solid ${f.border}; border-radius: ${f.radiusLg}; background: ${f.surfaceCard}; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
|
|
1080
|
+
.choice:hover { border-color: ${f.borderStrong}; }
|
|
1081
|
+
.choice input { ${yr} }
|
|
1082
|
+
.choice:has(input:checked) { border-color: ${f.brand}; box-shadow: inset 0 0 0 1px ${f.brand}; background: ${f.brandSubtle}; }
|
|
1083
|
+
.choice:has(input:focus-visible) { box-shadow: ${f.focusShadow}; }
|
|
1060
1084
|
.many .choice { padding: ${x(3)}; }
|
|
1061
|
-
.label { font-weight: ${
|
|
1062
|
-
.small { ${
|
|
1085
|
+
.label { font-weight: ${it("semibold")}; }
|
|
1086
|
+
.small { ${Ae("sm")} color: ${f.textMuted}; }
|
|
1063
1087
|
/* A tick for a picked feature, drawn in the corner. */
|
|
1064
|
-
.many .choice:has(input:checked)::after { content: '✓'; position: absolute; inset-block-start: ${x(2)}; inset-inline-end: ${x(3)}; color: ${
|
|
1088
|
+
.many .choice:has(input:checked)::after { content: '✓'; position: absolute; inset-block-start: ${x(2)}; inset-inline-end: ${x(3)}; color: ${f.brand}; font-weight: ${it("bold")}; }
|
|
1065
1089
|
|
|
1066
1090
|
.scale { display: grid; gap: ${x(3)}; }
|
|
1067
|
-
.scale input { inline-size: 100%; accent-color: ${
|
|
1068
|
-
.ticks { display: flex; justify-content: space-between; ${
|
|
1069
|
-
.ticks span[aria-current] { color: ${
|
|
1091
|
+
.scale input { inline-size: 100%; accent-color: ${f.brand}; ${Aa} }
|
|
1092
|
+
.ticks { display: flex; justify-content: space-between; ${Ae("sm")} color: ${f.textMuted}; }
|
|
1093
|
+
.ticks span[aria-current] { color: ${f.text}; font-weight: ${it("semibold")}; }
|
|
1070
1094
|
.now { margin: 0; }
|
|
1071
1095
|
|
|
1072
1096
|
.nav { display: flex; gap: ${x(3)}; margin-block-start: ${x(8)}; }
|
|
1073
|
-
button, .send { ${
|
|
1074
|
-
.primary, .send { background: ${
|
|
1075
|
-
.primary:hover, .send:hover { background: ${
|
|
1076
|
-
.secondary { background: transparent; color: ${
|
|
1077
|
-
.secondary:hover { background: ${
|
|
1097
|
+
button, .send { ${Aa} display: inline-flex; align-items: center; justify-content: center; gap: ${x(2)}; padding: ${x(2.5)} ${x(5)}; border-radius: ${f.radiusLg}; font: inherit; font-weight: ${it("semibold")}; cursor: pointer; text-decoration: none; border: ${f.borderThin} solid transparent; }
|
|
1098
|
+
.primary, .send { background: ${f.brand}; color: ${f.onBrand}; }
|
|
1099
|
+
.primary:hover, .send:hover { background: ${f.brandHover}; }
|
|
1100
|
+
.secondary { background: transparent; color: ${f.text}; border-color: ${f.borderStrong}; }
|
|
1101
|
+
.secondary:hover { background: ${f.surfaceSubtle}; }
|
|
1078
1102
|
|
|
1079
|
-
.panel { position: sticky; inset-block-start: ${x(6)}; overflow: hidden; isolation: isolate; padding: ${x(8)}; border-radius: ${
|
|
1103
|
+
.panel { position: sticky; inset-block-start: ${x(6)}; overflow: hidden; isolation: isolate; padding: ${x(8)}; border-radius: ${f.radiusXl}; background: ${f.surfaceCard}; box-shadow: ${f.shadowMd}; display: grid; gap: ${x(2)}; }
|
|
1080
1104
|
/* The glow behind the budget grows as the product does. */
|
|
1081
|
-
.glow { position: absolute; z-index: -1; inset-block-start: -40%; inset-inline-end: -30%; inline-size: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, ${
|
|
1082
|
-
.range { margin: 0; font-family: ${
|
|
1083
|
-
.weeks { margin: 0; ${
|
|
1084
|
-
.tip { margin: ${x(4)} 0 0; padding-block-start: ${x(4)}; border-block-start: 1px solid color-mix(in srgb, currentColor 15%, transparent); color: ${
|
|
1105
|
+
.glow { position: absolute; z-index: -1; inset-block-start: -40%; inset-inline-end: -30%; inline-size: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, ${fr(Oi(1,0))} 45%, transparent), color-mix(in srgb, ${fr(Oi(2,1))} 25%, transparent) 45%, transparent 70%); transform: scale(var(--s, 0.7)); transform-origin: 70% 30%; transition: transform 500ms cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
|
|
1106
|
+
.range { margin: 0; font-family: ${f.fontHeading}; font-weight: ${it("bold")}; font-size: ${La("5xl")}; line-height: 1; letter-spacing: ${f.trackingTight}; color: ${f.textHeading}; }
|
|
1107
|
+
.weeks { margin: 0; ${Ae("lg")} }
|
|
1108
|
+
.tip { margin: ${x(4)} 0 0; padding-block-start: ${x(4)}; border-block-start: 1px solid color-mix(in srgb, currentColor 15%, transparent); color: ${f.textMuted}; }
|
|
1085
1109
|
|
|
1086
1110
|
.result { display: grid; gap: ${x(6)}; }
|
|
1087
|
-
.summary { margin: 0; ${
|
|
1111
|
+
.summary { margin: 0; ${Ae("xl")} text-wrap: pretty; }
|
|
1088
1112
|
.phases { display: flex; gap: 3px; block-size: 14px; border-radius: 7px; overflow: hidden; }
|
|
1089
1113
|
.phases i { display: block; }
|
|
1090
1114
|
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: ${x(2)} ${x(5)}; }
|
|
@@ -1092,10 +1116,10 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1092
1116
|
.legend li::before { content: ''; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--c); }
|
|
1093
1117
|
dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${x(4)}; }
|
|
1094
1118
|
dt { margin: 0 0 ${x(1)}; }
|
|
1095
|
-
dd { margin: 0; font-weight: ${
|
|
1119
|
+
dd { margin: 0; font-weight: ${it("semibold")}; }
|
|
1096
1120
|
.actions { display: flex; flex-wrap: wrap; gap: ${x(3)}; }
|
|
1097
|
-
.note { margin: 0; ${
|
|
1098
|
-
.status { margin: 0; ${
|
|
1121
|
+
.note { margin: 0; ${Ae("sm")} color: ${f.textMuted}; }
|
|
1122
|
+
.status { margin: 0; ${Ae("sm")} }
|
|
1099
1123
|
|
|
1100
1124
|
@container (max-width: 48rem) {
|
|
1101
1125
|
.wrap { grid-template-columns: minmax(0, 1fr); gap: ${x(8)}; }
|
|
@@ -1106,28 +1130,28 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1106
1130
|
}
|
|
1107
1131
|
@container (max-width: 30rem) {
|
|
1108
1132
|
.choices { grid-template-columns: minmax(0, 1fr); }
|
|
1109
|
-
.range { font-size: ${
|
|
1133
|
+
.range { font-size: ${La("4xl")}; }
|
|
1110
1134
|
}
|
|
1111
1135
|
/* layout="all": every question at once, and the result as an ink panel beside them. */
|
|
1112
|
-
.all { --accent: ${
|
|
1113
|
-
.all .questions { grid-area: questions; display: grid; gap: ${x(6)}; padding: ${x(8)} ${x(8)} ${x(4)}; background: ${
|
|
1114
|
-
.all .foot { grid-area: note; padding: 0 ${x(8)} ${x(8)}; background: ${
|
|
1115
|
-
.all .foot .note { ${
|
|
1116
|
-
.all .ink { grid-area: panel; display: flex; flex-direction: column; gap: ${x(3)}; padding: ${x(8)}; background: ${
|
|
1117
|
-
.all .ink .mono { color: var(--muted); font-size: 0.6875rem; letter-spacing: ${
|
|
1136
|
+
.all { --accent: ${vr("color.accent.default","#ffd43b")}; --on-accent: ${vr("color.accent.on","#111111")}; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'questions panel' 'note panel'; grid-template-rows: auto 1fr; column-gap: ${x(2.5)}; align-items: stretch; }
|
|
1137
|
+
.all .questions { grid-area: questions; display: grid; gap: ${x(6)}; padding: ${x(8)} ${x(8)} ${x(4)}; background: ${f.surfaceCard}; border: ${f.borderThin} solid ${f.text}; border-block-end: 0; }
|
|
1138
|
+
.all .foot { grid-area: note; padding: 0 ${x(8)} ${x(8)}; background: ${f.surfaceCard}; border: ${f.borderThin} solid ${f.text}; border-block-start: 0; }
|
|
1139
|
+
.all .foot .note { ${Ae("md")} }
|
|
1140
|
+
.all .ink { grid-area: panel; display: flex; flex-direction: column; gap: ${x(3)}; padding: ${x(8)}; background: ${f.text}; color: ${f.surfaceCard}; --muted: color-mix(in srgb, ${f.surfaceCard} 72%, ${f.text}); --line: color-mix(in srgb, ${f.surfaceCard} 18%, ${f.text}); }
|
|
1141
|
+
.all .ink .mono { color: var(--muted); font-size: 0.6875rem; letter-spacing: ${f.trackingWide}; }
|
|
1118
1142
|
/* The accent on ink only where the theme says the pair reads; in dark the panel turns to paper and the range keeps its words. */
|
|
1119
1143
|
.all .ink .range { color: var(--impakt-color-accent-on-ink, var(--impakt-site-menu-current, currentColor)); font-size: clamp(2.5rem, 7cqi, 3.5rem); letter-spacing: -0.04em; }
|
|
1120
1144
|
.all .ink .weeks { font-size: 1.25rem; line-height: 1.3; padding-block-end: ${x(3)}; }
|
|
1121
1145
|
.all .rows { list-style: none; margin: 0; padding: 0; }
|
|
1122
|
-
.all .rows li { display: flex; justify-content: space-between; align-items: baseline; gap: ${x(4)}; padding-block: ${x(3.5)}; border-block-start: ${
|
|
1123
|
-
.all .rows .length { font-family: ${
|
|
1124
|
-
.all .cta { ${
|
|
1146
|
+
.all .rows li { display: flex; justify-content: space-between; align-items: baseline; gap: ${x(4)}; padding-block: ${x(3.5)}; border-block-start: ${f.borderThin} solid var(--line); }
|
|
1147
|
+
.all .rows .length { font-family: ${f.fontMono}; ${Ae("sm")} color: var(--muted); white-space: nowrap; }
|
|
1148
|
+
.all .cta { ${Aa} display: flex; align-items: center; justify-content: space-between; gap: ${x(4)}; min-block-size: 44px; padding: ${x(3)} ${x(5)}; ${Ae("md")} font-weight: ${it("medium")}; color: var(--on-accent); background: var(--accent); text-decoration: none; }
|
|
1125
1149
|
.all .cta:hover { background: color-mix(in srgb, var(--accent) 88%, #ffffff); }
|
|
1126
|
-
.all .cta:focus-visible { outline: none; box-shadow: 0 0 0 2px ${
|
|
1127
|
-
.all .way { margin: 0; ${
|
|
1150
|
+
.all .cta:focus-visible { outline: none; box-shadow: 0 0 0 2px ${f.text}, 0 0 0 4px ${f.surfaceCard}; }
|
|
1151
|
+
.all .way { margin: 0; ${Ae("sm")} color: var(--muted); }
|
|
1128
1152
|
@container (max-width: 48rem) {
|
|
1129
1153
|
.all { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'questions' 'panel' 'note'; grid-template-rows: auto; column-gap: 0; }
|
|
1130
|
-
.all .questions { padding: ${x(6)} ${x(5)}; border-block-end: ${
|
|
1154
|
+
.all .questions { padding: ${x(6)} ${x(5)}; border-block-end: ${f.borderThin} solid ${f.text}; }
|
|
1131
1155
|
.all .foot { padding: ${x(4)} 0 0; background: none; border: 0; }
|
|
1132
1156
|
.all .ink { padding: ${x(6)} ${x(5)}; }
|
|
1133
1157
|
}
|
|
@@ -1138,168 +1162,187 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1138
1162
|
.bar i, .phases i, .legend li::before { background: CanvasText !important; }
|
|
1139
1163
|
.glow { display: none; }
|
|
1140
1164
|
}
|
|
1141
|
-
`]}reset(){this.answers=Object.fromEntries((this.questions??[]).map(e=>{let
|
|
1165
|
+
`]}reset(){this.answers=Object.fromEntries((this.questions??[]).map(e=>{let t=(e.start??[]).filter(a=>e.choices.some(r=>r.id===a));return e.kind==="many"?[e.id,t]:[e.id,[t[0]??e.choices[0]?.id].filter(a=>!!a)]})),this.at=0,this.tip="",this.copied=""}willUpdate(e){(e.has("questions")||!this.started)&&(this.reset(),this.started=!0)}get rules(){return{low:this.low,high:this.high,minWeeks:this.minWeeks,teams:this.teams??[],ways:this.ways??[]}}money(e){try{return new Intl.NumberFormat(xr(this),{style:"currency",currency:this.currency||"GBP",notation:"compact",maximumFractionDigits:0}).format(e*(this.unit||1))}catch{return String(e*(this.unit||1))}}listOf(e){try{return new Intl.ListFormat(xr(this),{type:"conjunction"}).format(e)}catch{return e.join(", ")}}weeksWord(e){return e===1?Q("{n} week",{n:e}):Q("{n} weeks",{n:e})}get most(){let e=this.questions??[],t=Object.fromEntries(e.map(a=>{if(a.kind==="many")return[a.id,a.choices.map(s=>s.id)];let r=[...a.choices].sort((s,o)=>(o.cost??0)*(o.costFactor??1)-(s.cost??0)*(s.costFactor??1))[0];return[a.id,r?[r.id]:[]]}));return qt(e,t,this.rules).high||1}summaryOf(e){let t=this.questions??[],a=t.find(u=>u.kind==="one"),r=a?a.choices.find(u=>u.id===this.answers[a.id]?.[0]):void 0,s=t.filter(u=>u.kind==="many"&&u.inSummary!==!1).flatMap(u=>(this.answers[u.id]??[]).map(N=>{let ne=u.choices.find(Je=>Je.id===N);return ne?ne.phrase||ne.label:N})),o=r?r.phrase||r.label:"",h=o?s.length?Q("You are building {thing} with {list}.",{thing:o,list:this.listOf(s)}):Q("You are building {thing}.",{thing:o}):"",m=Q("Expect {range} and about {weeks} to a first release.",{range:this.rangeOf(e),weeks:this.weeksWord(e.weeks)});return h?`${h} ${m}`:m}rangeOf(e){return Q("{low} to {high}",{low:this.money(e.low),high:this.money(e.high)})}teamOf(e){return e===1?this.teamTextOne:this.teamText.replace("{n}",String(e))}pick(e,t,a){let r=this.answers[e.id]??[];this.answers={...this.answers,[e.id]:e.kind==="many"?a?[...r.filter(s=>s!==t.id),t.id]:r.filter(s=>s!==t.id):[t.id]},a&&t.tip&&(this.tip=t.tip),this.requestUpdate()}go(e){let t=(this.questions??[]).length;this.at=Math.max(0,Math.min(t,e)),this.copied="",this.requestUpdate(),this.updateComplete.then(()=>this.renderRoot.querySelector(".current .q")?.focus({preventScroll:!0}))}result(){let e=qt(this.questions??[],this.answers,this.rules);return{low:e.low*(this.unit||1),high:e.high*(this.unit||1),weeks:e.weeks,engineers:e.engineers,way:e.way,summary:this.textOf(e),answers:this.answers}}textOf(e){let t=[this.summaryOf(e),`${this.teamOf(e.engineers)}.`];e.way&&t.push(`${e.way}.`);let a=(this.questions??[]).filter(s=>s.short&&s.kind!=="many").map(s=>{let o=s.choices.find(h=>h.id===this.answers[s.id]?.[0]);return o?`${s.short}: ${o.label}.`:""}).filter(Boolean),r=(this.questions??[]).filter(s=>s.short&&s.kind==="many"&&s.inSummary===!1).map(s=>{let o=(this.answers[s.id]??[]).map(h=>s.choices.find(m=>m.id===h)?.label??h);return o.length?`${s.short}: ${this.listOf(o)}.`:""}).filter(Boolean);return[...t,...r,...a].join(" ")}send(e){let t=this.result();try{sessionStorage.setItem("impakt.estimate",t.summary)}catch{}this.dispatchEvent(new CustomEvent("impakt-estimate",{detail:t,bubbles:!0,composed:!0,cancelable:!0}))||e.preventDefault()}async copy(){let e=this.result().summary;try{await navigator.clipboard.writeText(e),this.copied=Q("Summary copied.")}catch{this.copied=Q("Copying is blocked here. Select the summary above instead.")}this.requestUpdate()}heading(e){let t=Math.min(Math.max(this.headingLevel||2,2),6);return W`<div class="q" role="heading" aria-level=${t} tabindex="-1">${e}</div>`}renderQuestion(e,t){let a=this.answers[e.id]??[],r=t===this.at;if(e.kind==="scale"){let o=Math.max(0,e.choices.findIndex(m=>m.id===a[0])),h=e.choices[o];return W`<fieldset class=${r?"current":""} ?hidden=${!r}>
|
|
1142
1166
|
<legend>${this.heading(e.heading)}</legend>
|
|
1143
|
-
${e.hint?
|
|
1167
|
+
${e.hint?W`<p class="hint">${e.hint}</p>`:me}
|
|
1144
1168
|
<div class="scale">
|
|
1145
|
-
<input type="range" min="0" max=${Math.max(0,e.choices.length-1)} step="1" .value=${String(
|
|
1146
|
-
@input=${m=>{let
|
|
1147
|
-
<div class="ticks" aria-hidden="true">${e.choices.map((m,
|
|
1148
|
-
${
|
|
1169
|
+
<input type="range" min="0" max=${Math.max(0,e.choices.length-1)} step="1" .value=${String(o)} aria-label=${e.heading} aria-valuetext=${h?.label??""}
|
|
1170
|
+
@input=${m=>{let u=e.choices[Number(m.target.value)];u&&this.pick(e,u,!0)}}>
|
|
1171
|
+
<div class="ticks" aria-hidden="true">${e.choices.map((m,u)=>W`<span aria-current=${u===o?"true":me}>${m.label}</span>`)}</div>
|
|
1172
|
+
${h?.hint?W`<p class="now">${h.hint}</p>`:me}
|
|
1149
1173
|
</div>
|
|
1150
|
-
</fieldset>`}let
|
|
1174
|
+
</fieldset>`}let s=e.kind==="many";return W`<fieldset class=${r?"current":""} ?hidden=${!r}>
|
|
1151
1175
|
<legend>${this.heading(e.heading)}</legend>
|
|
1152
|
-
${e.hint?
|
|
1153
|
-
<div class="choices ${
|
|
1154
|
-
${e.choices.map(
|
|
1155
|
-
<input type=${
|
|
1156
|
-
@change=${
|
|
1157
|
-
<span class="label">${
|
|
1158
|
-
${
|
|
1176
|
+
${e.hint?W`<p class="hint">${e.hint}</p>`:me}
|
|
1177
|
+
<div class="choices ${s?"many":""}">
|
|
1178
|
+
${e.choices.map(o=>W`<label class="choice">
|
|
1179
|
+
<input type=${s?"checkbox":"radio"} name=${`${this.uid}-${e.id}`} value=${o.id} .checked=${a.includes(o.id)}
|
|
1180
|
+
@change=${h=>this.pick(e,o,h.target.checked)}>
|
|
1181
|
+
<span class="label">${o.label}</span>
|
|
1182
|
+
${o.hint?W`<span class="small">${o.hint}</span>`:me}
|
|
1159
1183
|
</label>`)}
|
|
1160
1184
|
</div>
|
|
1161
|
-
</fieldset>`}renderResult(e){let
|
|
1185
|
+
</fieldset>`}renderResult(e){let t=Ea(this.phases??[],e.weeks),a=this.at===(this.questions??[]).length;return W`<div class="result ${a?"current":""}" ?hidden=${!a}>
|
|
1162
1186
|
${this.heading(this.resultHeading)}
|
|
1163
1187
|
<p class="summary">${this.summaryOf(e)}</p>
|
|
1164
|
-
${(this.phases??[]).length?
|
|
1165
|
-
<div class="phases" aria-hidden="true">${(this.phases??[]).map((r,
|
|
1166
|
-
<ul class="legend">${(this.phases??[]).map((r,
|
|
1188
|
+
${(this.phases??[]).length?W`
|
|
1189
|
+
<div class="phases" aria-hidden="true">${(this.phases??[]).map((r,s)=>W`<i style=${`flex-grow:${t[s]};background:${Oi(void 0,s)}`}></i>`)}</div>
|
|
1190
|
+
<ul class="legend">${(this.phases??[]).map((r,s)=>W`<li style=${`--c:${Oi(void 0,s)}`}>${r.label} <b>${this.weeksWord(t[s])}</b></li>`)}</ul>`:me}
|
|
1167
1191
|
<dl>
|
|
1168
|
-
<div><dt class="mono">${
|
|
1169
|
-
${e.way?
|
|
1192
|
+
<div><dt class="mono">${Q("Your team")}</dt><dd>${this.teamOf(e.engineers)}</dd></div>
|
|
1193
|
+
${e.way?W`<div><dt class="mono">${Q("Way of working")}</dt><dd>${e.way}</dd></div>`:me}
|
|
1170
1194
|
</dl>
|
|
1171
1195
|
<div class="actions">
|
|
1172
|
-
${this.contactHref?
|
|
1173
|
-
<button type="button" class="secondary" @click=${()=>this.copy()}>${
|
|
1174
|
-
<button type="button" class="secondary" @click=${()=>{this.reset(),this.go(0)}}>${
|
|
1196
|
+
${this.contactHref?W`<a class="send" href=${this.contactHref} @click=${r=>this.send(r)}>${this.sendLabel} <span aria-hidden="true">→</span></a>`:me}
|
|
1197
|
+
<button type="button" class="secondary" @click=${()=>this.copy()}>${Q("Copy summary")}</button>
|
|
1198
|
+
<button type="button" class="secondary" @click=${()=>{this.reset(),this.go(0)}}>${Q("Start again")}</button>
|
|
1175
1199
|
</div>
|
|
1176
1200
|
<p class="status" role="status">${this.copied}</p>
|
|
1177
|
-
${this.note?
|
|
1178
|
-
</div>`}renderAll(e){let
|
|
1201
|
+
${this.note?W`<p class="note">${this.note}</p>`:me}
|
|
1202
|
+
</div>`}renderAll(e){let t=this.questions??[],a=Ea(this.phases??[],e.weeks),r=W`<svg viewBox="0 0 20 12" width="20" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M0 6h18M13 1l5 5-5 5" /></svg>`;return W`<div class="all">
|
|
1179
1203
|
<div class="questions" part="questions">
|
|
1180
|
-
${
|
|
1181
|
-
.options=${
|
|
1182
|
-
@impakt-change=${
|
|
1204
|
+
${t.map((s,o)=>{let h=this.answers[s.id]??[],m=s.kind==="many",u=s.choices.map(N=>({value:N.id,label:N.label}));return W`<impakt-chip-group look="site" part="question" .label=${`${String(o+1).padStart(2,"0")} \xB7 ${s.heading}`} .description=${s.hint??""}
|
|
1205
|
+
.options=${u} ?multiple=${m} .values=${m?h:[]} .value=${m?"":h[0]??""}
|
|
1206
|
+
@impakt-change=${N=>this.chipsChanged(s,N)}></impakt-chip-group>`})}
|
|
1183
1207
|
</div>
|
|
1184
1208
|
<aside class="ink" part="panel">
|
|
1185
1209
|
<p class="mono">${this.budgetLabel}</p>
|
|
1186
1210
|
<p class="range" aria-live="polite" aria-atomic="true">${this.rangeOf(e)}</p>
|
|
1187
|
-
<p class="weeks">${
|
|
1188
|
-
${(this.phases??[]).length?
|
|
1189
|
-
${this.contactHref?
|
|
1190
|
-
${e.way?
|
|
1211
|
+
<p class="weeks">${Q("About {weeks} to a first release",{weeks:this.weeksWord(e.weeks)})}</p>
|
|
1212
|
+
${(this.phases??[]).length?W`<ul class="rows" role="list">${(this.phases??[]).map((s,o)=>W`<li><span>${s.label}</span><span class="length">${this.weeksWord(a[o])}</span></li>`)}</ul>`:me}
|
|
1213
|
+
${this.contactHref?W`<a class="cta" href=${this.contactHref} part="send" @click=${s=>this.send(s)}><span>${this.sendLabel}</span>${r}</a>`:me}
|
|
1214
|
+
${e.way?W`<p class="way">${this.wayLabel||Q("Way of working")}: ${e.way}</p>`:me}
|
|
1191
1215
|
</aside>
|
|
1192
|
-
${this.note?
|
|
1193
|
-
</div>`}chipsChanged(e,
|
|
1216
|
+
${this.note?W`<div class="foot"><p class="note">${this.note}</p></div>`:me}
|
|
1217
|
+
</div>`}chipsChanged(e,t){let a=t.target,r=e.kind==="many"?[...a.values??[]]:[t.detail?.value].filter(h=>!!h);this.answers={...this.answers,[e.id]:r};let s=r.at(-1),o=e.choices.find(h=>h.id===s)?.tip;o&&(this.tip=o),this.requestUpdate()}render(){let e=this.questions??[];if(this.layout==="all")return this.renderAll(qt(e,this.answers,this.rules));let t=e.length,a=qt(e,this.answers,this.rules),r=this.at>=t,s=(.6+Math.min(1,a.high/this.most)*1.1).toFixed(2);return W`<div class="wrap">
|
|
1194
1218
|
<div>
|
|
1195
1219
|
<div class="progress">
|
|
1196
|
-
<p class="mono">${r?this.resultHeading:
|
|
1197
|
-
<div class="bar" aria-hidden="true"><i style=${`inline-size:${
|
|
1220
|
+
<p class="mono">${r?this.resultHeading:Q("Step {step} of {steps}",{step:this.at+1,steps:t})}</p>
|
|
1221
|
+
<div class="bar" aria-hidden="true"><i style=${`inline-size:${t?r?100:(this.at+1)/(t+1)*100:0}%`}></i></div>
|
|
1198
1222
|
</div>
|
|
1199
|
-
${e.map((
|
|
1223
|
+
${e.map((o,h)=>this.renderQuestion(o,h))}
|
|
1200
1224
|
${this.renderResult(a)}
|
|
1201
|
-
${r?
|
|
1202
|
-
${this.at>0?
|
|
1203
|
-
<button type="button" class="primary" @click=${()=>this.go(this.at+1)}>${this.at===
|
|
1225
|
+
${r?me:W`<div class="nav">
|
|
1226
|
+
${this.at>0?W`<button type="button" class="secondary" @click=${()=>this.go(this.at-1)}>${Q("Back")}</button>`:me}
|
|
1227
|
+
<button type="button" class="primary" @click=${()=>this.go(this.at+1)}>${this.at===t-1?Q("See my estimate"):Q("Next")} <span aria-hidden="true">→</span></button>
|
|
1204
1228
|
</div>`}
|
|
1205
1229
|
</div>
|
|
1206
|
-
<aside class="panel" part="panel" style=${`--s:${
|
|
1230
|
+
<aside class="panel" part="panel" style=${`--s:${s}`}>
|
|
1207
1231
|
<div class="glow" aria-hidden="true"></div>
|
|
1208
1232
|
<p class="mono">${this.budgetLabel}</p>
|
|
1209
1233
|
<p class="range" aria-live="polite" aria-atomic="true">${this.rangeOf(a)}</p>
|
|
1210
|
-
<p class="weeks">${
|
|
1234
|
+
<p class="weeks">${Q("About {weeks} to a first release",{weeks:this.weeksWord(a.weeks)})}</p>
|
|
1211
1235
|
<p class="tip" aria-live="polite">${this.tip||this.intro}</p>
|
|
1212
1236
|
</aside>
|
|
1213
|
-
</div>`}};customElements.define("impakt-estimator",
|
|
1237
|
+
</div>`}};customElements.define("impakt-estimator",Fi);import{css as Ia,html as A,nothing as V}from"./atomic-ui.js";import{ImpaktElement as wt,focusRing as Ra,hideOn as os,fontSize as Ne,fontWeight as mt,space as H,t as G,token as wr,type as jt,toneOf as Ba}from"./atomic-ui.js";var ls=[0,1,2,3,4],at=G.fontMono,Di=class extends wt{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"},fold:{type:String,reflect:!0},mark:{type:String},context:{type:String},statusAt:{type:String,reflect:!0,attribute:"status-at"},navLook:{type:String,attribute:"nav-look"},current:{type:String},presence:{type:Array}}}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="",this.fold="measure",this.mark="",this.context="",this.statusAt="end",this.navLook="",this.current="",this.presence=[]}static{this.styles=[...wt.styles,Ra,Ia`
|
|
1214
1238
|
:host { display: block; container-type: inline-size; }
|
|
1215
1239
|
/* With a mark, the name is set small beside it, as in the canvas header. */
|
|
1216
|
-
.brand.marked { gap: ${
|
|
1217
|
-
.mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: ${
|
|
1218
|
-
.context { font-size: ${
|
|
1219
|
-
.context .slash { margin-inline-end: ${
|
|
1240
|
+
.brand.marked { gap: ${H(3)}; font-size: ${Ne("md")}; letter-spacing: -0.01em; }
|
|
1241
|
+
.mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: ${G.text}; color: ${G.surfaceCard}; font-size: ${Ne("sm")}; font-weight: ${mt("medium")}; }
|
|
1242
|
+
.context { font-size: ${Ne("sm")}; white-space: nowrap; }
|
|
1243
|
+
.context .slash { margin-inline-end: ${H(2)}; opacity: 0.72; }
|
|
1220
1244
|
.presence { display: flex; }
|
|
1221
|
-
.presence .avatar { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; box-sizing: border-box; margin-inline-start: -6px; border-radius: 50%; border: ${
|
|
1245
|
+
.presence .avatar { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; box-sizing: border-box; margin-inline-start: -6px; border-radius: 50%; border: ${G.borderThin} solid ${G.text}; background: ${G.surfaceCard}; color: ${G.text}; font-family: ${at}; font-size: 0.625rem; line-height: 1; }
|
|
1222
1246
|
.presence .avatar:first-child { margin-inline-start: 0; }
|
|
1223
|
-
.presence .avatar.accent { background: ${
|
|
1224
|
-
.bar { display: flex; align-items: center; gap: ${
|
|
1225
|
-
.start { display: flex; align-items: center; gap: ${
|
|
1247
|
+
.presence .avatar.accent { background: ${wr("color.accent.default","#ffd43b")}; color: ${wr("color.accent.on","#111111")}; }
|
|
1248
|
+
.bar { display: flex; align-items: center; gap: ${H(6)}; }
|
|
1249
|
+
.start { display: flex; align-items: center; gap: ${H(3)}; flex: none; }
|
|
1226
1250
|
.middle { flex: 1 1 8rem; min-inline-size: 0; display: flex; align-items: center; justify-content: center; }
|
|
1227
1251
|
.middle ::slotted(*) { flex: 1 1 auto; min-inline-size: 0; }
|
|
1228
1252
|
slot { display: contents; }
|
|
1229
|
-
.brand { display: inline-flex; align-items: center; min-block-size: ${
|
|
1253
|
+
.brand { display: inline-flex; align-items: center; min-block-size: ${G.targetMin}; color: inherit; text-decoration: none; font-family: ${G.fontHeading}; font-weight: ${mt("semibold")}; ${jt("2xl")} letter-spacing: -0.02em; line-height: 1; border-radius: ${G.radiusSm}; }
|
|
1230
1254
|
.brand img { display: block; block-size: 32px; inline-size: auto; }
|
|
1231
|
-
.chip { display: inline-flex; align-items: center; gap: ${
|
|
1255
|
+
.chip { display: inline-flex; align-items: center; gap: ${H(1)}; padding: 2px ${H(2)}; border-radius: ${G.radius}; background: color-mix(in srgb, currentColor 7%, transparent); font-family: ${at}; font-size: ${Ne("xs")}; }
|
|
1232
1256
|
.chip svg { inline-size: 12px; block-size: 12px; }
|
|
1233
|
-
.meta { font-family: ${
|
|
1257
|
+
.meta { font-family: ${at}; font-size: ${Ne("xs")}; opacity: 0.72; }
|
|
1234
1258
|
.middle impakt-nav { flex: 1 1 8rem; }
|
|
1235
1259
|
/* File tabs sit in one box as wide as the tabs, centred between the name and the action. */
|
|
1236
1260
|
:host([fold='narrow']) .middle impakt-nav[look='tabs'] { flex: 0 1 auto; }
|
|
1237
|
-
.end { display: flex; align-items: center; gap: ${
|
|
1261
|
+
.end { display: flex; align-items: center; gap: ${H(3)}; flex: none; }
|
|
1238
1262
|
.end:empty, .start:empty { display: none; }
|
|
1239
|
-
.status { display: inline-flex; align-items: center; gap: ${
|
|
1263
|
+
.status { display: inline-flex; align-items: center; gap: ${H(2)}; padding: ${H(1)} ${H(3)}; border: ${G.borderThin} solid ${G.border}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); background: ${G.surfaceCard}; font-family: ${at}; font-size: ${Ne("xs")}; white-space: nowrap; }
|
|
1240
1264
|
/* Beside the name it is a small square chip: an ink outline, a dot, and the word in monospace capitals. */
|
|
1241
|
-
.start .status { padding: 2px ${
|
|
1265
|
+
.start .status { padding: 2px ${H(2)}; border-color: ${G.text}; border-radius: ${G.radius}; font-size: 0.6875rem; letter-spacing: ${G.trackingWide}; text-transform: uppercase; }
|
|
1242
1266
|
.start .status .dot { inline-size: 6px; block-size: 6px; }
|
|
1243
1267
|
.status .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }
|
|
1244
1268
|
.status .hash { opacity: 0.72; }
|
|
1245
|
-
@container (max-width: 22rem) { :host(:not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${
|
|
1246
|
-
@container (max-width: 56rem) { .chip, .meta, .status, .context, .presence { display: none; } .bar { gap: ${
|
|
1269
|
+
@container (max-width: 22rem) { :host(:not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${H(2)}; } :host(:not([fold='narrow'])) .end { flex: 1 1 100%; } }
|
|
1270
|
+
@container (max-width: 56rem) { .chip, .meta, .status, .context, .presence { display: none; } .bar { gap: ${H(3)}; } }
|
|
1247
1271
|
/* With no script the links cannot fold behind a Menu button. On a narrow screen they take a
|
|
1248
1272
|
line of their own under the name and the action, and wrap there. */
|
|
1249
1273
|
@container (max-width: 40rem) {
|
|
1250
|
-
:host(:not(:defined):not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${
|
|
1274
|
+
:host(:not(:defined):not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${H(1)}; }
|
|
1251
1275
|
:host(:not(:defined):not([fold='narrow'])) .start { flex: 1 1 auto; }
|
|
1252
|
-
|
|
1276
|
+
/* Its row may be narrower than the links, which then wrap: the max-content floor below is for the measured header only. */
|
|
1277
|
+
:host(:not(:defined):not([fold='narrow'])) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; min-inline-size: 0; }
|
|
1253
1278
|
/* fold="narrow": the links are behind the Menu button, which sits at the end, and the action moves into the menu. */
|
|
1254
1279
|
:host([fold='narrow']) .middle { justify-content: flex-end; }
|
|
1255
|
-
/*
|
|
1256
|
-
|
|
1280
|
+
/*
|
|
1281
|
+
* The measured links get only the room left beside the brand and the end slot, whatever the end slot holds, so
|
|
1282
|
+
* they fold behind the Menu button when they do not fit there (#55). A floor at the links' own width would give
|
|
1283
|
+
* them the room they ask for and push the end slot off the screen instead. Once folded, the Menu button keeps
|
|
1284
|
+
* its whole width, so it never spills over the brand.
|
|
1285
|
+
*/
|
|
1286
|
+
:host(:not([fold='narrow'])) .middle { justify-content: flex-end; min-inline-size: 0; }
|
|
1287
|
+
:host(:not([fold='narrow'])) .middle:has(impakt-nav[folded]) { min-inline-size: max-content; }
|
|
1288
|
+
:host(:not([fold='narrow'])) .middle ::slotted(impakt-nav[folded]) { flex: none; min-inline-size: max-content; }
|
|
1257
1289
|
:host([fold='narrow']) .end > slot > impakt-button { display: none; }
|
|
1258
1290
|
}
|
|
1259
|
-
`]}act(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0}))}render(){let
|
|
1291
|
+
`]}act(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0}))}render(){let i=this.logoSrc?A`<img src=${this.logoSrc} alt=${this.logoAlt||this.brand} />`:A`${this.brand}`,e=this.status?A`<span class="status" part="status" style=${`--tone:${Ba(this.statusTone,0)}`}><span class="dot" aria-hidden="true"></span>${this.status}${this.statusMeta?A` <span class="hash">${this.statusMeta}</span>`:V}</span>`:V,t=this.presence??[];return A`<div class="bar" part="bar">
|
|
1260
1292
|
<div class="start"><slot name="start">
|
|
1261
|
-
${this.brand||this.logoSrc?A`<a class=${this.mark?"brand marked":"brand"} href=${this.home||"/"} part="brand">${this.mark?A`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>`:
|
|
1262
|
-
${this.context?A`<span class="context" part="context"><span class="slash" aria-hidden="true">/</span>${this.context}</span>`:
|
|
1263
|
-
${this.statusAt==="start"?e:
|
|
1264
|
-
${this.badge?A`<span class="chip" part="badge"><svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>${this.badge}</span>`:
|
|
1265
|
-
${this.meta?A`<span class="meta" part="meta">${this.meta}</span>`:
|
|
1293
|
+
${this.brand||this.logoSrc?A`<a class=${this.mark?"brand marked":"brand"} href=${this.home||"/"} part="brand">${this.mark?A`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>`:V}${i}</a>`:V}
|
|
1294
|
+
${this.context?A`<span class="context" part="context"><span class="slash" aria-hidden="true">/</span>${this.context}</span>`:V}
|
|
1295
|
+
${this.statusAt==="start"?e:V}
|
|
1296
|
+
${this.badge?A`<span class="chip" part="badge"><svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>${this.badge}</span>`:V}
|
|
1297
|
+
${this.meta?A`<span class="meta" part="meta">${this.meta}</span>`:V}
|
|
1266
1298
|
</slot></div>
|
|
1267
|
-
<div class="middle"><slot name="middle">${(this.links??[]).length?A`<impakt-nav align="center" size="sm" fold=${this.fold} look=${this.navLook||
|
|
1268
|
-
<div class="end"><slot name="presence">${
|
|
1269
|
-
${this.statusAt==="start"?
|
|
1270
|
-
${this.actionText?A`<impakt-button variant="primary" size="sm" icon-after="arrow-right" href=${this.actionHref||
|
|
1299
|
+
<div class="middle"><slot name="middle">${(this.links??[]).length?A`<impakt-nav align="center" size="sm" fold=${this.fold} look=${this.navLook||V} .current=${this.current} .links=${this.links} .label=${this.label} .menuText=${this.menuText} .actionText=${this.fold==="narrow"?this.actionText:""} .actionHref=${this.actionHref}></impakt-nav>`:V}</slot></div>
|
|
1300
|
+
<div class="end"><slot name="presence">${t.length?A`<span class="presence" part="presence">${t.map(a=>A`<span class=${a.accent?"avatar accent":"avatar"} role="img" aria-label=${a.name}>${a.initials??a.name.slice(0,1).toUpperCase()}</span>`)}</span>`:V}</slot><slot name="end">
|
|
1301
|
+
${this.statusAt==="start"?V:e}
|
|
1302
|
+
${this.actionText?A`<impakt-button variant="primary" size="sm" icon-after="arrow-right" href=${this.actionHref||V} @click=${this.act}>${this.actionText}</impakt-button>`:V}
|
|
1271
1303
|
</slot></div>
|
|
1272
|
-
</div>`}},
|
|
1304
|
+
</div>`}},_i=class extends wt{static{this.properties={text:{type:String},src:{type:String},alt:{type:String},href:{type:String},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.text="",this.src="",this.alt="",this.href="/",this.size="md",this.hideOn="never"}static{this.styles=[...wt.styles,Ra,os,Ia`
|
|
1273
1305
|
:host { display: inline-flex; align-items: center; flex: none; }
|
|
1274
|
-
a { color: inherit; text-decoration: none; font-family: ${
|
|
1275
|
-
:host([size='sm']) a { ${
|
|
1306
|
+
a { color: inherit; text-decoration: none; font-family: ${G.fontHeading}; font-weight: ${mt("semibold")}; letter-spacing: -0.02em; line-height: 1; border-radius: ${G.radiusSm}; }
|
|
1307
|
+
:host([size='sm']) a { ${jt("xl")} } :host([size='md']) a { ${jt("2xl")} } :host([size='lg']) a { ${jt("3xl")} }
|
|
1276
1308
|
img { display: block; block-size: 32px; inline-size: auto; }
|
|
1277
|
-
@media (max-width: 40rem) { :host([size='md']) a, :host([size='lg']) a { ${
|
|
1278
|
-
`]}render(){return A`<a href=${this.href||"/"} part="link">${this.src?A`<img src=${this.src} alt=${this.alt||this.text||this.textContent?.trim()||""} />`:A`<slot>${this.text}</slot>`}</a>`}},
|
|
1309
|
+
@media (max-width: 40rem) { :host([size='md']) a, :host([size='lg']) a { ${jt("xl")} } }
|
|
1310
|
+
`]}render(){return A`<a href=${this.href||"/"} part="link">${this.src?A`<img src=${this.src} alt=${this.alt||this.text||this.textContent?.trim()||""} />`:A`<slot>${this.text}</slot>`}</a>`}},Ui=class extends wt{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"},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},tagline:{type:String}}}constructor(){super(),this.brand="",this.brandSize="lg",this.log=[],this.columns=[],this.columnsOnPhone="shown",this.legal="",this.stripe=!1,this.headingLevel=2,this.actionText="",this.actionHref="",this.tagline=""}static{this.styles=[...wt.styles,Ra,Ia`
|
|
1279
1311
|
/* The page frame's footer band gives the colours; this sits flush with its foot so the stripe meets the edge. */
|
|
1280
|
-
:host { display: block; container-type: inline-size; position: relative; padding-block: ${
|
|
1281
|
-
.top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: ${
|
|
1282
|
-
.brand { margin: 0; font-family: ${
|
|
1312
|
+
:host { display: block; container-type: inline-size; position: relative; padding-block: ${H(8)} ${H(4)}; margin-block-end: calc(-1 * ${H(8)}); }
|
|
1313
|
+
.top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: ${H(10)}; }
|
|
1314
|
+
.brand { margin: 0; font-family: ${G.fontHeading}; font-weight: ${mt("bold")}; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
|
|
1283
1315
|
/* The name as a wordmark across the whole footer, under the columns. */
|
|
1284
1316
|
:host([brand-size='display']) .top { grid-template-columns: 1fr; }
|
|
1285
1317
|
:host([brand-size='display']) .top > div:first-child { order: 2; }
|
|
1286
|
-
|
|
1318
|
+
/*
|
|
1319
|
+
* The G2 footer (10:728, 15:1099): a 1px rule across the top of the columns, the wordmark straight under them as wide as
|
|
1320
|
+
* the content (350px on a 1080px column, 343px of glyphs on a 350px phone column), and the legal line and the tagline
|
|
1321
|
+
* on one row under it in the 13px code face (#52).
|
|
1322
|
+
*/
|
|
1323
|
+
:host([brand-size='display']) .top { gap: 0; }
|
|
1324
|
+
:host([brand-size='display']) .row { padding-block: 28px 40px; border-block-start: ${G.borderThin} solid currentColor; }
|
|
1325
|
+
:host([brand-size='display']) .brand { font-weight: ${mt("semibold")}; font-size: clamp(3rem, 32.3cqi, 24rem); line-height: 0.9; letter-spacing: -0.06em; overflow-wrap: anywhere; }
|
|
1326
|
+
:host([brand-size='display']) :is(.legal, .tagline) { font-size: 0.8125rem; line-height: 1.5; }
|
|
1327
|
+
:host([brand-size='display']) .legal, :host([brand-size='display']) .foot { margin-block-start: ${H(6)}; }
|
|
1328
|
+
:host([brand-size='display']) .foot .legal { margin: 0; }
|
|
1329
|
+
@container (min-width: 48rem) { :host([brand-size='display']) .foot { flex-wrap: nowrap; } :host([brand-size='display']) .foot .legal { flex: 0 1 auto; min-inline-size: 0; } :host([brand-size='display']) .tagline { flex: none; } }
|
|
1287
1330
|
ul { list-style: none; margin: 0; padding: 0; }
|
|
1288
|
-
.log { margin-block-start: ${
|
|
1289
|
-
.log li { display: flex; align-items: center; gap: ${
|
|
1331
|
+
.log { margin-block-start: ${H(8)}; display: grid; gap: ${H(3)}; font-family: ${at}; font-size: ${Ne("sm")}; }
|
|
1332
|
+
.log li { display: flex; align-items: center; gap: ${H(3)}; opacity: 0.72; }
|
|
1290
1333
|
.log li:first-child { opacity: 1; }
|
|
1291
1334
|
.log .dot { flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--tone); }
|
|
1292
|
-
.log .code { margin-inline-end: ${
|
|
1293
|
-
.columns { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: ${
|
|
1294
|
-
.h { margin: 0 0 ${
|
|
1295
|
-
.columns ul { display: grid; gap: ${
|
|
1296
|
-
a { color: inherit; text-decoration: none; font-weight: ${
|
|
1335
|
+
.log .code { margin-inline-end: ${H(3)}; }
|
|
1336
|
+
.columns { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: ${H(8)}; }
|
|
1337
|
+
.h { margin: 0 0 ${H(4)}; font-family: ${at}; font-size: ${Ne("xs")}; font-weight: ${mt("medium")}; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
|
|
1338
|
+
.columns ul { display: grid; gap: ${H(3)}; }
|
|
1339
|
+
a { color: inherit; text-decoration: none; font-weight: ${mt("medium")}; border-radius: ${G.radiusSm}; }
|
|
1297
1340
|
a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
|
|
1298
|
-
.legal { margin: ${
|
|
1299
|
-
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: ${
|
|
1341
|
+
.legal { margin: ${H(16)} 0 0; font-family: ${at}; font-size: ${Ne("xs")}; opacity: 0.72; }
|
|
1342
|
+
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: ${H(2)} ${H(6)}; margin-block-start: ${H(16)}; }
|
|
1300
1343
|
.foot .legal { margin: 0; }
|
|
1301
|
-
.tagline { margin: 0; font-family: ${
|
|
1302
|
-
.row { display: flex; align-items: flex-start; gap: ${
|
|
1344
|
+
.tagline { margin: 0; font-family: ${at}; font-size: ${Ne("xs")}; opacity: 0.72; text-align: end; }
|
|
1345
|
+
.row { display: flex; align-items: flex-start; gap: ${H(8)}; }
|
|
1303
1346
|
.row .columns { flex: 1; }
|
|
1304
1347
|
.row impakt-button { flex: none; }
|
|
1305
1348
|
.stripe { position: absolute; inset-inline: -100vmax; inset-block-end: 0; block-size: 6px; display: flex; }
|
|
@@ -1307,22 +1350,22 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1307
1350
|
@container (max-width: 48rem) { .top { grid-template-columns: 1fr; } .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row { flex-direction: column; } }
|
|
1308
1351
|
@container (max-width: 40rem) { :host([columns-on-phone='hidden']) .columns { display: none; } }
|
|
1309
1352
|
@media (forced-colors: active) { :host { border-block-start: 1px solid CanvasText; } .log .dot { border: 1px solid CanvasText; } }
|
|
1310
|
-
`]}heading(
|
|
1353
|
+
`]}heading(i){let e=Math.min(Math.max(this.headingLevel||2,2),4);return e===3?A`<h3 class="h">${i}</h3>`:e===4?A`<h4 class="h">${i}</h4>`:A`<h2 class="h">${i}</h2>`}render(){let i=this.log??[];return A`<div part="footer">
|
|
1311
1354
|
<div class="top">
|
|
1312
1355
|
<div>
|
|
1313
|
-
${this.brand?A`<p class="brand" part="brand">${this.brand}</p>`:
|
|
1314
|
-
${
|
|
1356
|
+
${this.brand?A`<p class="brand" part="brand">${this.brand}</p>`:V}
|
|
1357
|
+
${i.length?A`<ul class="log" part="log">${i.map((e,t)=>A`<li style=${`--tone:${Ba(e.tone??(t===0?"success":"accent"),t)}`}><span class="dot" aria-hidden="true"></span><span>${e.meta?A`<span class="code">${e.meta}</span>`:V}${e.text}</span></li>`)}</ul>`:V}
|
|
1315
1358
|
</div>
|
|
1316
1359
|
<div class="row">
|
|
1317
1360
|
<div class="columns" part="columns" style=${`--count:${Math.max(1,(this.columns??[]).length)}`}>
|
|
1318
|
-
${(this.columns??[]).map(e=>A`<div>${this.heading(e.heading)}<ul>${(e.links??[]).map(
|
|
1361
|
+
${(this.columns??[]).map(e=>A`<div>${this.heading(e.heading)}<ul>${(e.links??[]).map(t=>A`<li><a href=${t.href}>${t.label}</a></li>`)}</ul></div>`)}
|
|
1319
1362
|
</div>
|
|
1320
|
-
${this.actionText?A`<impakt-button variant="outline" icon-after="arrow-right" href=${this.actionHref||
|
|
1363
|
+
${this.actionText?A`<impakt-button variant="outline" icon-after="arrow-right" href=${this.actionHref||V} part="action">${this.actionText}</impakt-button>`:V}
|
|
1321
1364
|
</div>
|
|
1322
1365
|
</div>
|
|
1323
|
-
${this.tagline?A`<div class="foot">${this.legal?A`<p class="legal" part="legal">${this.legal}</p>`:A`<span></span>`}<p class="tagline" part="tagline">${this.tagline}</p></div>`:this.legal?A`<p class="legal" part="legal">${this.legal}</p>`:
|
|
1324
|
-
${this.stripe?A`<div class="stripe" aria-hidden="true">${
|
|
1325
|
-
</div>`}};customElements.define("impakt-site-header",
|
|
1366
|
+
${this.tagline?A`<div class="foot">${this.legal?A`<p class="legal" part="legal">${this.legal}</p>`:A`<span></span>`}<p class="tagline" part="tagline">${this.tagline}</p></div>`:this.legal?A`<p class="legal" part="legal">${this.legal}</p>`:V}
|
|
1367
|
+
${this.stripe?A`<div class="stripe" aria-hidden="true">${ls.map(e=>A`<span style=${`background:${Ba(void 0,e)}`}></span>`)}</div>`:V}
|
|
1368
|
+
</div>`}};customElements.define("impakt-site-header",Di);customElements.define("impakt-wordmark",_i);customElements.define("impakt-site-footer",Ui);import{html as St,css as cs,nothing as Ha}from"./atomic-ui.js";import{say as Sr,ImpaktElement as zr,fontSize as ds,fontWeight as ps,space as rt,t as Na,token as qa}from"./atomic-ui.js";var Gi=n=>Math.min(1,Math.max(0,n)),Yi=class extends zr{constructor(){super();this.paused=!1;this.frame=0;this.started=0;this.reduced=!1;this.seekFrom=0;this.seekTo=0;this.seekStart=0;this.seekMs=0;this.onScroll=()=>{(this.drive==="view"||this.drive==="page")&&this.schedule()};this.tick=e=>{if(this.frame=0,this.seekMs){this.seekStart||(this.seekStart=e);let t=Math.min(1,(e-this.seekStart)/this.seekMs),a=t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;this.progress=this.seekFrom+(this.seekTo-this.seekFrom)*a,t<1?this.schedule():this.seekMs=0;return}if(this.drive==="view"){let t=this.getBoundingClientRect(),a=window.innerHeight||1;this.progress=Gi(-t.top/Math.max(1,t.height-a))}else if(this.drive==="page"){let t=document.documentElement;this.progress=Gi(window.scrollY/Math.max(1,t.scrollHeight-(window.innerHeight||0)))}else this.drive==="loop"&&!this.paused&&!this.reduced&&(this.started||(this.started=e-this.progress*this.duration*1e3),this.progress=(e-this.started)/(this.duration*1e3)%1,this.schedule())};this.togglePause=()=>this.setPaused(!this.paused);this.drive="view",this.layout="stage",this.length=3,this.duration=8,this.label="Animation",this.progress=0,this.controls="below",this.bleed=!1,this.hideOn="never"}static{this.properties={drive:{type:String,reflect:!0},layout:{type:String,reflect:!0},length:{type:Number},duration:{type:Number},label:{type:String},progress:{type:Number},controls:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}static{this.styles=[...zr.styles,cs`
|
|
1326
1369
|
:host {
|
|
1327
1370
|
display: block;
|
|
1328
1371
|
position: relative;
|
|
@@ -1336,7 +1379,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1336
1379
|
}
|
|
1337
1380
|
:host([layout='split']) .frame {
|
|
1338
1381
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
1339
|
-
gap: ${
|
|
1382
|
+
gap: ${rt(8)};
|
|
1340
1383
|
}
|
|
1341
1384
|
.stage {
|
|
1342
1385
|
position: sticky;
|
|
@@ -1361,34 +1404,34 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1361
1404
|
}
|
|
1362
1405
|
.controls {
|
|
1363
1406
|
display: flex;
|
|
1364
|
-
gap: ${
|
|
1407
|
+
gap: ${rt(3)};
|
|
1365
1408
|
align-items: center;
|
|
1366
1409
|
justify-content: center;
|
|
1367
|
-
padding-block: ${
|
|
1410
|
+
padding-block: ${rt(3)};
|
|
1368
1411
|
}
|
|
1369
1412
|
:host([bleed]) { margin-inline: calc(50% - 50vw); }
|
|
1370
1413
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
|
|
1371
1414
|
@media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none; } }
|
|
1372
1415
|
/* Over the stage, the controls float at its foot, above the layers and clear of its edges. */
|
|
1373
|
-
.stage > .controls { position: absolute; inset-inline: ${
|
|
1416
|
+
.stage > .controls { position: absolute; inset-inline: ${rt(6)}; inset-block-end: ${rt(6)}; z-index: 2; padding: 0; }
|
|
1374
1417
|
.stage > .controls ::slotted(*) { box-shadow: 0 12px 32px rgb(16 19 23 / 14%); border-radius: 16px; background: var(--impakt-color-surface-card, #fff); }
|
|
1375
1418
|
/* A control takes the row, so a graph scrubber spans the stage; a narrower one centres itself. */
|
|
1376
1419
|
.controls ::slotted(*) { flex: 1 1 auto; min-width: 0; }
|
|
1377
1420
|
.pause {
|
|
1378
|
-
min-width: ${
|
|
1379
|
-
min-height: ${
|
|
1380
|
-
padding: ${
|
|
1421
|
+
min-width: ${qa("target.min","24px")};
|
|
1422
|
+
min-height: ${qa("target.min","24px")};
|
|
1423
|
+
padding: ${rt(2)} ${rt(4)};
|
|
1381
1424
|
border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999));
|
|
1382
|
-
border: 1px solid ${
|
|
1383
|
-
background: ${
|
|
1384
|
-
color: ${
|
|
1385
|
-
font-size: ${
|
|
1386
|
-
font-weight: ${
|
|
1425
|
+
border: 1px solid ${Na.border};
|
|
1426
|
+
background: ${Na.surfaceCard};
|
|
1427
|
+
color: ${Na.text};
|
|
1428
|
+
font-size: ${ds("sm")};
|
|
1429
|
+
font-weight: ${ps("medium")};
|
|
1387
1430
|
cursor: pointer;
|
|
1388
1431
|
}
|
|
1389
1432
|
.pause:focus-visible {
|
|
1390
1433
|
outline: none;
|
|
1391
|
-
box-shadow: ${
|
|
1434
|
+
box-shadow: ${qa("focus.ring.shadow","0 0 0 2px #fff, 0 0 0 4px #1a1a1a")};
|
|
1392
1435
|
}
|
|
1393
1436
|
@media (max-width: 48rem) {
|
|
1394
1437
|
:host([layout='split']) .frame {
|
|
@@ -1406,7 +1449,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1406
1449
|
.stage {
|
|
1407
1450
|
position: relative;
|
|
1408
1451
|
height: auto;
|
|
1409
|
-
gap: ${
|
|
1452
|
+
gap: ${rt(6)};
|
|
1410
1453
|
}
|
|
1411
1454
|
/* With less motion the layers are shown one after another, so every
|
|
1412
1455
|
state the scene would have moved through can still be seen. */
|
|
@@ -1414,17 +1457,17 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1414
1457
|
grid-area: auto;
|
|
1415
1458
|
}
|
|
1416
1459
|
}
|
|
1417
|
-
`]}connectedCallback(){super.connectedCallback();try{this.reduced=window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{this.reduced=!1}window.addEventListener("scroll",this.onScroll,{passive:!0,capture:!0}),window.addEventListener("resize",this.onScroll),this.schedule()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.onScroll,{capture:!0}),window.removeEventListener("resize",this.onScroll),this.frame&&cancelAnimationFrame(this.frame),this.frame=0}updated(e){e.has("length")&&this.style.setProperty("--impakt-scene-length",String(this.length)),e.has("progress")&&this.publish(),e.has("drive")&&(this.started=0,this.schedule())}seek(e,
|
|
1460
|
+
`]}connectedCallback(){super.connectedCallback();try{this.reduced=window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{this.reduced=!1}window.addEventListener("scroll",this.onScroll,{passive:!0,capture:!0}),window.addEventListener("resize",this.onScroll),this.schedule()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.onScroll,{capture:!0}),window.removeEventListener("resize",this.onScroll),this.frame&&cancelAnimationFrame(this.frame),this.frame=0}updated(e){e.has("length")&&this.style.setProperty("--impakt-scene-length",String(this.length)),e.has("progress")&&this.publish(),e.has("drive")&&(this.started=0,this.schedule())}seek(e,t=0){if(t<=0||this.reduced){this.progress=Gi(e);return}this.seekFrom=this.progress,this.seekTo=Gi(e),this.seekStart=0,this.seekMs=t,this.schedule()}schedule(){!this.frame&&typeof requestAnimationFrame=="function"&&(this.frame=requestAnimationFrame(this.tick))}publish(){this.style.setProperty("--impakt-scene-progress",this.progress.toFixed(4)),this.dispatchEvent(new CustomEvent("impakt-scene-progress",{detail:{progress:this.progress},bubbles:!0,composed:!0}))}setPaused(e){this.paused!==e&&(this.paused=e,this.started=0,this.schedule(),this.requestUpdate())}pause(){this.setPaused(!0)}render(){let e=this.drive==="loop",t=this.controls==="over"&&!this.reduced,a=St`<div class="controls" part="controls">
|
|
1418
1461
|
<slot name="controls"></slot>
|
|
1419
|
-
${e&&!this.reduced?
|
|
1420
|
-
${this.paused?
|
|
1421
|
-
</button>`:
|
|
1422
|
-
</div>`,r=
|
|
1462
|
+
${e&&!this.reduced?St`<button class="pause" type="button" aria-pressed=${this.paused?"true":"false"} @click=${this.togglePause}>
|
|
1463
|
+
${this.paused?Sr("Play {name}",{name:this.label}):Sr("Pause {name}",{name:this.label})}
|
|
1464
|
+
</button>`:Ha}
|
|
1465
|
+
</div>`,r=St`<div class="stage" part="stage"><slot name="stage"></slot>${t?a:Ha}</div>`;return St`
|
|
1423
1466
|
<div class="frame" part="frame" role="region" aria-label=${this.label}>
|
|
1424
|
-
${this.layout==="split"?
|
|
1467
|
+
${this.layout==="split"?St`<div class="content" part="content"><slot></slot></div>${r}`:St`${r}<div class="content" part="content"><slot></slot></div>`}
|
|
1425
1468
|
</div>
|
|
1426
|
-
${
|
|
1427
|
-
`}};customElements.define("impakt-scene",
|
|
1469
|
+
${t?Ha:a}
|
|
1470
|
+
`}};customElements.define("impakt-scene",Yi);import{html as qe,css as ms}from"./atomic-ui.js";import{say as Tr,ImpaktElement as Mr,visuallyHidden as hs,fontSize as ja,fontWeight as Cr,space as ke,t as X,token as ht}from"./atomic-ui.js";var Pa={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)"},Vi=class extends Mr{constructor(){super();this.scene=null;this.onProgress=e=>{this.value=e.detail.progress};this.onInput=e=>{let t=Number(e.target.value)/1e3;this.value=t,this.scene?.seek(t)};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=[...Mr.styles,ms`
|
|
1428
1471
|
:host {
|
|
1429
1472
|
display: block;
|
|
1430
1473
|
width: 100%;
|
|
@@ -1433,16 +1476,16 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1433
1476
|
}
|
|
1434
1477
|
.wrap {
|
|
1435
1478
|
display: grid;
|
|
1436
|
-
gap: ${
|
|
1437
|
-
padding: ${
|
|
1438
|
-
border-radius: ${
|
|
1479
|
+
gap: ${ke(2)};
|
|
1480
|
+
padding: ${ke(3)} ${ke(4)};
|
|
1481
|
+
border-radius: ${ht("radius.xl","16px")};
|
|
1439
1482
|
background: ${X.surfaceCard};
|
|
1440
|
-
box-shadow: ${
|
|
1483
|
+
box-shadow: ${ht("shadow.lg","0 10px 15px -3px rgba(0,0,0,.1)")};
|
|
1441
1484
|
border: 1px solid ${X.border};
|
|
1442
1485
|
}
|
|
1443
1486
|
input {
|
|
1444
1487
|
width: 100%;
|
|
1445
|
-
min-height: ${
|
|
1488
|
+
min-height: ${ht("target.min","24px")};
|
|
1446
1489
|
accent-color: ${X.brand};
|
|
1447
1490
|
margin: 0;
|
|
1448
1491
|
}
|
|
@@ -1450,20 +1493,20 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1450
1493
|
position: relative;
|
|
1451
1494
|
display: flex;
|
|
1452
1495
|
flex-wrap: wrap;
|
|
1453
|
-
gap: ${
|
|
1496
|
+
gap: ${ke(2)};
|
|
1454
1497
|
list-style: none;
|
|
1455
1498
|
margin: 0;
|
|
1456
1499
|
padding: 0;
|
|
1457
1500
|
}
|
|
1458
1501
|
button {
|
|
1459
|
-
min-height: ${
|
|
1460
|
-
padding: ${
|
|
1502
|
+
min-height: ${ht("target.min","24px")};
|
|
1503
|
+
padding: ${ke(1)} ${ke(3)};
|
|
1461
1504
|
border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999));
|
|
1462
1505
|
border: 1px solid ${X.border};
|
|
1463
1506
|
background: transparent;
|
|
1464
1507
|
color: ${X.textMuted};
|
|
1465
|
-
font-size: ${
|
|
1466
|
-
font-weight: ${
|
|
1508
|
+
font-size: ${ja("xs")};
|
|
1509
|
+
font-weight: ${Cr("medium")};
|
|
1467
1510
|
cursor: pointer;
|
|
1468
1511
|
}
|
|
1469
1512
|
button[aria-current='true'] {
|
|
@@ -1471,15 +1514,15 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1471
1514
|
border-color: ${X.text};
|
|
1472
1515
|
}
|
|
1473
1516
|
.sr-only {
|
|
1474
|
-
${
|
|
1517
|
+
${hs}
|
|
1475
1518
|
}
|
|
1476
1519
|
/* The graph look: the code of where you are, the line of stops, where you are. */
|
|
1477
1520
|
:host([look='graph']) { max-width: none; }
|
|
1478
|
-
.graph { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto; gap: ${
|
|
1479
|
-
.mono { font-family: ${X.fontMono}; font-size: ${
|
|
1521
|
+
.graph { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto; gap: ${ke(6)}; align-items: center; padding: ${ke(4)} ${ke(6)}; border-radius: ${ht("radius.xl","16px")}; background: ${X.surfaceCard}; box-shadow: ${ht("shadow.lg","0 10px 15px -3px rgba(0,0,0,.1)")}; border: 1px solid ${X.border}; }
|
|
1522
|
+
.mono { font-family: ${X.fontMono}; font-size: ${ja("xs")}; letter-spacing: 0.04em; }
|
|
1480
1523
|
.head { display: grid; gap: 2px; }
|
|
1481
1524
|
.head .k { color: ${X.textMuted}; text-transform: uppercase; }
|
|
1482
|
-
.head .code { font-size: ${
|
|
1525
|
+
.head .code { font-size: ${ja("md")}; color: ${X.text}; }
|
|
1483
1526
|
.head .note { color: ${X.textMuted}; }
|
|
1484
1527
|
.line { position: relative; block-size: 48px; }
|
|
1485
1528
|
.track, .fill { position: absolute; inset-inline: 0; inset-block-start: 14px; block-size: 3px; border-radius: 3px; background: ${X.border}; opacity: 0.5; }
|
|
@@ -1489,11 +1532,11 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1489
1532
|
.dot[data-passed] { background: var(--c); }
|
|
1490
1533
|
.dot[aria-current='true'] { inline-size: 24px; block-size: 24px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
|
|
1491
1534
|
.dot-label { position: absolute; inset-block-start: 30px; translate: -50% 0; white-space: nowrap; color: ${X.textMuted}; text-transform: uppercase; pointer-events: none; }
|
|
1492
|
-
.dot-label[data-current] { color: ${X.text}; font-weight: ${
|
|
1535
|
+
.dot-label[data-current] { color: ${X.text}; font-weight: ${Cr("bold")}; }
|
|
1493
1536
|
.line input { position: absolute; inset: 0 0 auto; block-size: 30px; opacity: 0; cursor: grab; }
|
|
1494
1537
|
.line input:focus-visible { opacity: 1; }
|
|
1495
|
-
.where { display: grid; gap: ${
|
|
1496
|
-
.chip { display: inline-flex; align-items: center; gap: ${
|
|
1538
|
+
.where { display: grid; gap: ${ke(2)}; justify-items: end; }
|
|
1539
|
+
.chip { display: inline-flex; align-items: center; gap: ${ke(2)}; padding: ${ke(1)} ${ke(3)}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); border: 1px solid ${X.border}; color: ${X.text}; text-transform: uppercase; }
|
|
1497
1540
|
.chip::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--c); }
|
|
1498
1541
|
.hint { color: ${X.textMuted}; text-transform: uppercase; }
|
|
1499
1542
|
/* Muted by colour, not opacity, so the code keeps its contrast (1.4.3). */
|
|
@@ -1506,29 +1549,29 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1506
1549
|
button:focus-visible,
|
|
1507
1550
|
input:focus-visible {
|
|
1508
1551
|
outline: none;
|
|
1509
|
-
box-shadow: ${
|
|
1552
|
+
box-shadow: ${ht("focus.ring.shadow","0 0 0 2px #fff, 0 0 0 4px #1a1a1a")};
|
|
1510
1553
|
}
|
|
1511
|
-
`]}connectedCallback(){super.connectedCallback(),this.scene=this.closest("impakt-scene"),this.scene?.addEventListener("impakt-scene-progress",this.onProgress),this.scene&&(this.value=this.scene.progress)}disconnectedCallback(){super.disconnectedCallback(),this.scene?.removeEventListener("impakt-scene-progress",this.onProgress),this.scene=null}goTo(e){this.scene?.seek(e.at,600)}nearest(){let e=-1,
|
|
1554
|
+
`]}connectedCallback(){super.connectedCallback(),this.scene=this.closest("impakt-scene"),this.scene?.addEventListener("impakt-scene-progress",this.onProgress),this.scene&&(this.value=this.scene.progress)}disconnectedCallback(){super.disconnectedCallback(),this.scene?.removeEventListener("impakt-scene-progress",this.onProgress),this.scene=null}goTo(e){this.scene?.seek(e.at,600)}nearest(){let e=-1,t=1/0;return this.stops.forEach((a,r)=>{let s=Math.abs(a.at-this.value);s<t&&(t=s,e=r)}),e}renderGraph(e,t){let a=e,r=[...this.stops??[]].sort((m,u)=>m.at-u.at);a=r.indexOf(this.stops[a]);let s=m=>{let u=m?.tone??"brand";return typeof u=="number"?`var(--impakt-color-chart-${u}, ${Pa.brand})`:Pa[u]??Pa.brand},o=r[a]??r[0],h=r.map((m,u)=>{let N=u===0?0:r[u-1].at,ne=Math.min(m.at,this.value);return{width:Math.round(Math.max(0,ne-N)*1e4)/100,c:s(m)}});return qe`<div class="graph" part="wrap">
|
|
1512
1555
|
<div class="head mono" aria-hidden="true">
|
|
1513
1556
|
<span class="k">HEAD</span>
|
|
1514
|
-
<span class="code">${
|
|
1515
|
-
${
|
|
1557
|
+
<span class="code">${o?.meta??o?.label??""}</span>
|
|
1558
|
+
${o?.note?qe`<span class="note">${o.note}</span>`:null}
|
|
1516
1559
|
</div>
|
|
1517
1560
|
<div class="line">
|
|
1518
1561
|
<div class="track"></div>
|
|
1519
|
-
<div class="fill" aria-hidden="true">${
|
|
1520
|
-
${r.map((m,
|
|
1521
|
-
<button type="button" class="dot" style=${`left:${m.at*100}%;--c:${
|
|
1522
|
-
<span class="sr-only">${
|
|
1562
|
+
<div class="fill" aria-hidden="true">${h.map(m=>qe`<span style=${`width:${m.width}%;background:${m.c}`}></span>`)}</div>
|
|
1563
|
+
${r.map((m,u)=>qe`
|
|
1564
|
+
<button type="button" class="dot" style=${`left:${m.at*100}%;--c:${s(m)}`} ?data-passed=${m.at<=this.value+1e-4} aria-current=${u===a?"true":"false"} @click=${()=>this.goTo(m)}>
|
|
1565
|
+
<span class="sr-only">${Tr("Go to {name}",{name:m.label})}</span>
|
|
1523
1566
|
</button>
|
|
1524
|
-
<span class="dot-label mono" style=${`left:${m.at*100}%`} ?data-current=${
|
|
1525
|
-
<input type="range" min="0" max="1000" step="1" .value=${String(Math.round(this.value*1e3))} aria-label=${this.label} aria-valuetext=${
|
|
1567
|
+
<span class="dot-label mono" style=${`left:${m.at*100}%`} ?data-current=${u===a} aria-hidden="true">${m.label}</span>`)}
|
|
1568
|
+
<input type="range" min="0" max="1000" step="1" .value=${String(Math.round(this.value*1e3))} aria-label=${this.label} aria-valuetext=${t} @input=${this.onInput} />
|
|
1526
1569
|
</div>
|
|
1527
1570
|
<div class="where" aria-hidden="true">
|
|
1528
|
-
${
|
|
1529
|
-
${this.hint?
|
|
1571
|
+
${o?qe`<span class="chip mono" style=${`--c:${s(o)}`}>${o.label}${o.meta?qe` <span class="meta">${o.meta}</span>`:null}</span>`:null}
|
|
1572
|
+
${this.hint?qe`<span class="hint mono">${this.hint}</span>`:null}
|
|
1530
1573
|
</div>
|
|
1531
|
-
</div>`}render(){let e=this.nearest(),
|
|
1574
|
+
</div>`}render(){let e=this.nearest(),t=e>=0?this.stops[e].label:`${Math.round(this.value*100)}%`;return this.look==="graph"?this.renderGraph(e,t):qe`
|
|
1532
1575
|
<div class="wrap" part="wrap">
|
|
1533
1576
|
<input
|
|
1534
1577
|
type="range"
|
|
@@ -1537,55 +1580,55 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1537
1580
|
step="1"
|
|
1538
1581
|
.value=${String(Math.round(this.value*1e3))}
|
|
1539
1582
|
aria-label=${this.label}
|
|
1540
|
-
aria-valuetext=${
|
|
1583
|
+
aria-valuetext=${t}
|
|
1541
1584
|
@input=${this.onInput}
|
|
1542
1585
|
/>
|
|
1543
|
-
${this.stops.length?
|
|
1544
|
-
${this.stops.map((a,r)=>
|
|
1586
|
+
${this.stops.length?qe`<ul class="stops" part="stops">
|
|
1587
|
+
${this.stops.map((a,r)=>qe`<li>
|
|
1545
1588
|
<button type="button" aria-current=${r===e?"true":"false"} @click=${()=>this.goTo(a)}>
|
|
1546
|
-
<span aria-hidden="true">${a.label}</span><span class="sr-only">${
|
|
1589
|
+
<span aria-hidden="true">${a.label}</span><span class="sr-only">${Tr("Go to {name}",{name:a.label})}</span>
|
|
1547
1590
|
</button>
|
|
1548
1591
|
</li>`)}
|
|
1549
1592
|
</ul>`:null}
|
|
1550
1593
|
</div>
|
|
1551
|
-
`}};customElements.define("impakt-scrubber",
|
|
1552
|
-
.h { margin: 0; color: var(--impakt-heading, ${
|
|
1594
|
+
`}};customElements.define("impakt-scrubber",Vi);import{css as ut,html as C,nothing as fe,svg as zt}from"./atomic-ui.js";import{say as Me,ImpaktElement as je,focusRing as us,visuallyHidden as gs,fontSize as Tt,fontWeight as ea,space as L,spaceAround as Pt,t as R,token as bs,type as fs,iconSvg as $s,toneOf as Wa,TONE as Ar}from"./atomic-ui.js";function Fa(n,i){let e=()=>{n.setAttribute("shown",""),i?.()};if(typeof IntersectionObserver!="function")return e(),()=>{};let t=new IntersectionObserver(a=>{a.some(r=>r.isIntersecting)&&(e(),t.disconnect())},{threshold:.25});return t.observe(n),()=>t.disconnect()}var Lr=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,ta=ut`.mono { font-family: ${R.fontMono}; font-size: ${Tt("xs")}; letter-spacing: 0.04em; }`,xs=(n,i,e)=>{switch(Math.min(Math.max(n||3,2),6)){case 2:return C`<h2 class=${e}>${i}</h2>`;case 4:return C`<h4 class=${e}>${i}</h4>`;case 5:return C`<h5 class=${e}>${i}</h5>`;case 6:return C`<h6 class=${e}>${i}</h6>`;default:return C`<h3 class=${e}>${i}</h3>`}},ia=ut`
|
|
1595
|
+
.h { margin: 0; color: var(--impakt-heading, ${R.textHeading}); font-family: ${R.fontHeading}; font-weight: ${ea("bold")}; letter-spacing: ${R.trackingTight}; text-wrap: balance; }
|
|
1553
1596
|
.body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }
|
|
1554
1597
|
.meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }
|
|
1555
|
-
.sr-only { ${
|
|
1556
|
-
`,
|
|
1598
|
+
.sr-only { ${gs} }
|
|
1599
|
+
`,Xi=class extends je{constructor(){super();this.raf=0;this.label="",this.heading="",this.text="",this.beforeSrc="",this.beforeAlt="",this.afterSrc="",this.afterAlt="",this.items=[],this.href="",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={label:{type:String},heading:{type:String},text:{type:String},beforeSrc:{type:String,attribute:"before-src"},beforeAlt:{type:String,attribute:"before-alt"},afterSrc:{type:String,attribute:"after-src"},afterAlt:{type:String,attribute:"after-alt"},items:{type:Array},href:{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=[...je.styles,Pt,ta,ia,ut`
|
|
1557
1600
|
:host { display: block; }
|
|
1558
1601
|
article { display: flex; flex-direction: column; gap: ${L(3)}; }
|
|
1559
|
-
.media { border-radius: ${
|
|
1602
|
+
.media { border-radius: ${R.radiusXl}; overflow: clip; background: ${R.surfaceInset}; }
|
|
1560
1603
|
.media img { display: block; inline-size: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
|
|
1561
1604
|
impakt-before-after { display: block; }
|
|
1562
|
-
.h { font-size: ${
|
|
1605
|
+
.h { font-size: ${Tt("3xl")}; }
|
|
1563
1606
|
.h a { color: inherit; text-decoration: none; }
|
|
1564
1607
|
.h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
|
|
1565
|
-
.h a:focus-visible { outline: none; box-shadow: ${
|
|
1608
|
+
.h a:focus-visible { outline: none; box-shadow: ${R.focusShadow}; border-radius: ${R.radiusSm}; }
|
|
1566
1609
|
ul { list-style: none; margin: ${L(1)} 0 0; padding: 0; display: grid; gap: ${L(1)}; }
|
|
1567
|
-
li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${L(2)}; padding: ${L(1)} ${L(3)}; border-radius: ${
|
|
1568
|
-
li[data-change='added'] { background: ${
|
|
1569
|
-
li[data-change='removed'] { background: ${
|
|
1570
|
-
li[data-change='same'] { color: ${
|
|
1571
|
-
.sign { font-weight: ${
|
|
1572
|
-
`]}wipe(e){let
|
|
1573
|
-
${e?C`<div class="media" @pointerenter=${
|
|
1574
|
-
${this.label?C`<p class="meta mono">${this.label}</p>`:
|
|
1575
|
-
${this.heading?
|
|
1576
|
-
${this.text?C`<p class="body">${this.text}</p>`:
|
|
1577
|
-
${(this.items??[]).length?C`<ul class="mono" part="diff">${this.items.map(
|
|
1578
|
-
</article>`}},
|
|
1610
|
+
li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${L(2)}; padding: ${L(1)} ${L(3)}; border-radius: ${R.radius}; }
|
|
1611
|
+
li[data-change='added'] { background: ${R.successSubtle}; color: ${R.successText}; }
|
|
1612
|
+
li[data-change='removed'] { background: ${R.dangerSubtle}; color: ${R.dangerText}; }
|
|
1613
|
+
li[data-change='same'] { color: ${R.textMuted}; }
|
|
1614
|
+
.sign { font-weight: ${ea("bold")}; }
|
|
1615
|
+
`]}wipe(e){let t=this.renderRoot.querySelector("impakt-before-after");if(!t)return;if(cancelAnimationFrame(this.raf),Lr()){t.position=e;return}let a=t.position??Oa,r=performance.now(),s=h=>h<.5?4*h*h*h:1-Math.pow(-2*h+2,3)/2,o=h=>{let m=Math.min(1,(h-r)/450);t.position=a+(e-a)*s(m),m<1&&(this.raf=requestAnimationFrame(o))};this.raf=requestAnimationFrame(o)}disconnectedCallback(){super.disconnectedCallback(),cancelAnimationFrame(this.raf)}render(){let e=this.beforeSrc&&this.afterSrc,t=this.href?C`<a href=${this.href}>${this.heading}</a>`:this.heading,a={added:"+",removed:"\u2212",same:" "},r={added:Me("Added"),removed:Me("Removed"),same:Me("Kept")};return C`<article part="card">
|
|
1616
|
+
${e?C`<div class="media" @pointerenter=${s=>s.pointerType==="mouse"&&this.wipe(0)} @pointerleave=${s=>s.pointerType==="mouse"&&this.wipe(Oa)}><impakt-before-after .position=${Oa} .beforeSrc=${this.beforeSrc} .beforeAlt=${this.beforeAlt} .afterSrc=${this.afterSrc} .afterAlt=${this.afterAlt} .beforeLabel=${Me("Before")} .afterLabel=${Me("Shipped")} .label=${Me("Compare {name} before and after",{name:this.heading})}></impakt-before-after></div>`:this.afterSrc||this.beforeSrc?C`<div class="media"><img src=${this.afterSrc||this.beforeSrc} alt=${this.afterSrc?this.afterAlt:this.beforeAlt} loading="lazy" /></div>`:fe}
|
|
1617
|
+
${this.label?C`<p class="meta mono">${this.label}</p>`:fe}
|
|
1618
|
+
${this.heading?ys(this.headingLevel,t):fe}
|
|
1619
|
+
${this.text?C`<p class="body">${this.text}</p>`:fe}
|
|
1620
|
+
${(this.items??[]).length?C`<ul class="mono" part="diff">${this.items.map(s=>C`<li data-change=${s.change}><span class="sign" aria-hidden="true">${a[s.change]??" "}</span><span><span class="sr-only">${r[s.change]??""}: </span>${s.text}</span></li>`)}</ul>`:fe}
|
|
1621
|
+
</article>`}},Ji=class extends je{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=[...je.styles,Pt,ut`
|
|
1579
1622
|
:host { display: block; container-type: inline-size; }
|
|
1580
1623
|
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${L(12)} ${L(10)}; }
|
|
1581
1624
|
:host([columns='one']) ul { grid-template-columns: minmax(0, 1fr); }
|
|
1582
1625
|
:host([columns='three']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1583
1626
|
@container (max-width: 44rem) { ul, :host([columns='three']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
1584
|
-
`]}render(){let
|
|
1585
|
-
.label=${
|
|
1586
|
-
.beforeSrc=${
|
|
1587
|
-
.afterSrc=${
|
|
1588
|
-
.items=${
|
|
1627
|
+
`]}render(){let i=typeof location>"u"?"":location.pathname.replace(/\/$/,""),e=(this.items??[]).filter(t=>!t.href||t.href.replace(/\/$/,"")!==i);return C`<ul part="list">${e.map(t=>{let a=t.heading??t.title??"";return C`<li><impakt-release-card
|
|
1628
|
+
.label=${t.label??""} .heading=${a} .text=${t.text??""} .href=${t.href??""}
|
|
1629
|
+
.beforeSrc=${t.beforeSrc??""} .beforeAlt=${t.beforeAlt||Me("{name} as a wireframe",{name:a})}
|
|
1630
|
+
.afterSrc=${t.afterSrc??""} .afterAlt=${t.afterAlt||Me("{name} as it shipped",{name:a})}
|
|
1631
|
+
.items=${t.items??[]} .headingLevel=${this.headingLevel}></impakt-release-card></li>`})}</ul>`}},Oa=42;function ys(n,i){let e=Math.min(Math.max(n||3,2),6);return e===2?C`<h2 class="h">${i}</h2>`:e===4?C`<h4 class="h">${i}</h4>`:e===5?C`<h5 class="h">${i}</h5>`:e===6?C`<h6 class="h">${i}</h6>`:C`<h3 class="h">${i}</h3>`}var Qi=class extends je{constructor(){super();this.unwatch=()=>{};this.items=[],this.trunk="",this.look="tones",this.current=-1,this.currentText="",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},trunk:{type:String},look:{type:String,reflect:!0},current:{type:Number},currentText:{type:String,attribute:"current-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=[...je.styles,Pt,ta,ia,ut`
|
|
1589
1632
|
:host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }
|
|
1590
1633
|
ul { list-style: none; margin: 0; padding: 0; position: relative; }
|
|
1591
1634
|
ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }
|
|
@@ -1594,10 +1637,10 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1594
1637
|
.graph svg { position: absolute; inset-block-start: -${L(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${L(12)}); overflow: visible; }
|
|
1595
1638
|
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${L(4)} ${L(10)}; align-items: start; }
|
|
1596
1639
|
.path { margin: 0 0 ${L(2)}; opacity: 0.72; }
|
|
1597
|
-
.h { font-size: ${
|
|
1640
|
+
.h { font-size: ${Tt("3xl")}; line-height: 1.05; }
|
|
1598
1641
|
.h a { color: inherit; text-decoration: none; }
|
|
1599
1642
|
.h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
|
|
1600
|
-
.h a:focus-visible { outline: none; box-shadow: ${
|
|
1643
|
+
.h a:focus-visible { outline: none; box-shadow: ${R.focusShadow}; border-radius: ${R.radiusSm}; }
|
|
1601
1644
|
.detail { display: flex; flex-direction: column; gap: ${L(3)}; padding-block-start: ${L(1)}; }
|
|
1602
1645
|
.tags { margin: 0; opacity: 0.7; text-transform: uppercase; }
|
|
1603
1646
|
.end { position: relative; display: flex; align-items: center; gap: ${L(3)}; padding-block-start: ${L(4)}; }
|
|
@@ -1606,21 +1649,21 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1606
1649
|
li { grid-template-columns: 56px minmax(0, 1fr); }
|
|
1607
1650
|
.graph svg { inline-size: 56px; }
|
|
1608
1651
|
.row { grid-template-columns: minmax(0, 1fr); }
|
|
1609
|
-
.h { font-size: ${
|
|
1652
|
+
.h { font-size: ${Tt("2xl")}; }
|
|
1610
1653
|
}
|
|
1611
1654
|
/* The mono look: thin ink lines, hollow rings, a hairline under each row and monospace capitals. */
|
|
1612
1655
|
:host([look='mono']) { --trunk: currentColor; --gx: 60px; }
|
|
1613
1656
|
:host([look='mono']) ul::before { inline-size: 1px; border-radius: 0; }
|
|
1614
1657
|
:host([look='mono']) .graph svg path { stroke-width: 1.5; }
|
|
1615
|
-
:host([look='mono']) .ring { position: absolute; inset-inline-start: calc(var(--gx) - 5px); inset-block-start: calc(-1 * ${L(6)} + 0.43 * (100% + 2 * ${L(6)}) - 5px); inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${
|
|
1616
|
-
:host([look='mono']) .ring.current { background: ${
|
|
1617
|
-
:host([look='mono']) .text { padding-block-end: ${L(6)}; border-block-end: ${
|
|
1658
|
+
:host([look='mono']) .ring { position: absolute; inset-inline-start: calc(var(--gx) - 5px); inset-block-start: calc(-1 * ${L(6)} + 0.43 * (100% + 2 * ${L(6)}) - 5px); inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${R.surfaceCard}; }
|
|
1659
|
+
:host([look='mono']) .ring.current { background: ${bs("color.accent.default","#ffd43b")}; }
|
|
1660
|
+
:host([look='mono']) .text { padding-block-end: ${L(6)}; border-block-end: ${R.borderThin} solid ${R.rule}; }
|
|
1618
1661
|
:host([look='mono']) li { padding-block-end: 0; }
|
|
1619
|
-
:host([look='mono']) .path { font-size: 0.6875rem; letter-spacing: ${
|
|
1620
|
-
:host([look='mono']) .h { font-size: clamp(1.5rem, 4cqi, 2rem); font-weight: ${
|
|
1621
|
-
:host([look='mono']) .tags { font-size: 0.6875rem; letter-spacing: ${
|
|
1622
|
-
:host([look='mono']) .body { color: ${
|
|
1623
|
-
:host([look='mono']) .end { font-size: 0.6875rem; letter-spacing: ${
|
|
1662
|
+
:host([look='mono']) .path { font-size: 0.6875rem; letter-spacing: ${R.trackingWide}; text-transform: uppercase; opacity: 1; color: ${R.textMuted}; }
|
|
1663
|
+
:host([look='mono']) .h { font-size: clamp(1.5rem, 4cqi, 2rem); font-weight: ${ea("semibold")}; letter-spacing: -0.03em; }
|
|
1664
|
+
:host([look='mono']) .tags { font-size: 0.6875rem; letter-spacing: ${R.trackingWide}; opacity: 1; color: ${R.textMuted}; }
|
|
1665
|
+
:host([look='mono']) .body { color: ${R.textMuted}; opacity: 1; }
|
|
1666
|
+
:host([look='mono']) .end { font-size: 0.6875rem; letter-spacing: ${R.trackingWide}; text-transform: uppercase; }
|
|
1624
1667
|
/* The trunk runs on into its end dot, which sits on the trunk; the words line up with the rows' words. */
|
|
1625
1668
|
:host([look='mono']) .end::before { flex: none; inline-size: 8px; block-size: 8px; margin-inline: 7.5px calc(96px - 15.5px - ${L(3)}); }
|
|
1626
1669
|
:host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: -${L(10)}; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${L(14)} + (100% - ${L(4)}) / 2); background: var(--trunk); }
|
|
@@ -1640,26 +1683,26 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1640
1683
|
:host([shown]) .graph svg { clip-path: inset(0); }
|
|
1641
1684
|
:host([shown]) .graph circle, :host([shown]) .ring { transform: scale(1); }
|
|
1642
1685
|
}
|
|
1643
|
-
`]}connectedCallback(){super.connectedCallback(),this.unwatch=
|
|
1686
|
+
`]}connectedCallback(){super.connectedCallback(),this.unwatch=Fa(this)}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}render(){let e=this.look==="mono",t=a=>zt`<svg viewBox="0 0 96 200" preserveAspectRatio="none" aria-hidden="true" focusable="false">
|
|
1644
1687
|
<path d="M12 0 C12 40 60 30 60 70 L60 120 C60 160 12 160 12 200" fill="none" stroke=${a} stroke-width="3" vector-effect="non-scaling-stroke" />
|
|
1645
|
-
${e?
|
|
1646
|
-
</svg>`;return C`<ul part="list">${(this.items??[]).map((a,r)=>{let
|
|
1647
|
-
<div class="graph">${
|
|
1688
|
+
${e?fe:zt`<circle cx="60" cy="86" r="8" fill=${a} />`}
|
|
1689
|
+
</svg>`;return C`<ul part="list">${(this.items??[]).map((a,r)=>{let s=r===this.current,o=C`${a.heading}${s&&this.currentText?C`<span class="sr-only"> (${this.currentText})</span>`:fe}`;return C`<li part="item" style=${`--i:${r}`}>
|
|
1690
|
+
<div class="graph">${t(e?"currentColor":Wa(a.tone,r))}${e?C`<span class=${s?"ring current":"ring"} aria-hidden="true"></span>`:fe}</div>
|
|
1648
1691
|
<div class="text">
|
|
1649
|
-
${a.path?C`<p class="path mono">${a.path}</p>`:
|
|
1692
|
+
${a.path?C`<p class="path mono">${a.path}</p>`:fe}
|
|
1650
1693
|
<div class="row">
|
|
1651
|
-
${
|
|
1694
|
+
${xs(this.headingLevel,a.href?C`<a href=${a.href}>${o}</a>`:o,"h")}
|
|
1652
1695
|
<div class="detail">
|
|
1653
|
-
${a.text?C`<p class="body">${a.text}</p>`:
|
|
1654
|
-
${a.tags?.length?C`<p class="tags mono">${a.tags.join(" \xB7 ")}</p>`:
|
|
1696
|
+
${a.text?C`<p class="body">${a.text}</p>`:fe}
|
|
1697
|
+
${a.tags?.length?C`<p class="tags mono">${a.tags.join(" \xB7 ")}</p>`:fe}
|
|
1655
1698
|
</div>
|
|
1656
1699
|
</div>
|
|
1657
1700
|
</div>
|
|
1658
1701
|
</li>`})}</ul>
|
|
1659
|
-
${this.trunk?C`<p class="end mono" part="trunk">${this.trunk}</p>`:
|
|
1702
|
+
${this.trunk?C`<p class="end mono" part="trunk">${this.trunk}</p>`:fe}`}},Ki=class extends je{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=[...je.styles,Pt,ta,ia,ut`
|
|
1660
1703
|
:host { display: block; container-type: inline-size; }
|
|
1661
|
-
.summary { display: inline-flex; align-items: center; gap: ${L(2)}; margin: 0 0 ${L(6)}; padding: ${L(1)} ${L(3)}; border-radius: ${
|
|
1662
|
-
.summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${
|
|
1704
|
+
.summary { display: inline-flex; align-items: center; gap: ${L(2)}; margin: 0 0 ${L(6)}; padding: ${L(1)} ${L(3)}; border-radius: ${R.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
|
|
1705
|
+
.summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${R.success}; }
|
|
1663
1706
|
/* The rows share one grid, so the figure column fits the widest figure and every row lines up. */
|
|
1664
1707
|
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 32px max-content minmax(0, 1fr) auto; column-gap: ${L(6)}; }
|
|
1665
1708
|
li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-block: ${L(5)}; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
|
|
@@ -1670,28 +1713,28 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1670
1713
|
}
|
|
1671
1714
|
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1672
1715
|
/* A passed check is a filled disc with a tick cut out of it, as a CI run shows one. */
|
|
1673
|
-
.tick { display: inline-flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: ${
|
|
1674
|
-
.figure { margin: 0; font-family: ${
|
|
1675
|
-
.label { margin: 0; ${
|
|
1716
|
+
.tick { display: inline-flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: ${R.success}; color: var(--impakt-color-status-success-on, #fff); }
|
|
1717
|
+
.figure { margin: 0; font-family: ${R.fontHeading}; font-weight: ${ea("bold")}; font-size: ${Tt("5xl")}; line-height: 1; letter-spacing: ${R.trackingTight}; white-space: nowrap; }
|
|
1718
|
+
.label { margin: 0; ${fs("xl")} }
|
|
1676
1719
|
.status { margin: 0; opacity: 0.72; }
|
|
1677
1720
|
@container (max-width: 40rem) {
|
|
1678
1721
|
ul { grid-template-columns: 28px minmax(0, 1fr); }
|
|
1679
1722
|
li { row-gap: ${L(1)}; }
|
|
1680
1723
|
.label, .status { grid-column: 2; }
|
|
1681
|
-
.figure { font-size: ${
|
|
1724
|
+
.figure { font-size: ${Tt("4xl")}; }
|
|
1682
1725
|
}
|
|
1683
|
-
`]}connectedCallback(){super.connectedCallback(),this.unwatch=
|
|
1684
|
-
<ul part="list">${(this.items??[]).map((
|
|
1685
|
-
<span class="tick" aria-hidden="true">${
|
|
1686
|
-
<p class="figure">${e(
|
|
1687
|
-
<p class="label">${
|
|
1688
|
-
${
|
|
1689
|
-
</li>`)}</ul>`}},
|
|
1726
|
+
`]}connectedCallback(){super.connectedCallback(),this.unwatch=Fa(this,()=>this.run())}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}run(){if(Lr())return;let e=this.items??[],t=performance.now(),a=r=>{this.counted=e.map((s,o)=>Math.min(1,Math.max(0,(r-t-o*150)/1200))),this.requestUpdate(),this.counted.some(s=>s<1)?requestAnimationFrame(a):this.counted=null};requestAnimationFrame(a)}render(){let e=(t,a)=>{let r=this.counted?.[a],s=/^(\d+)(.*)$/.exec(t);if(r===void 0||r>=1||!s)return C`${t}`;let o=1-Math.pow(1-r,3);return C`<span aria-hidden="true">${Math.round(Number(s[1])*o)}${s[2]}</span><span class="sr-only">${t}</span>`};return C`${this.summary?C`<p class="summary mono" part="summary">${this.summary}</p>`:fe}
|
|
1727
|
+
<ul part="list">${(this.items??[]).map((t,a)=>C`<li part="item" style=${`--i:${a}`}>
|
|
1728
|
+
<span class="tick" aria-hidden="true">${$s("check","16px")}</span>
|
|
1729
|
+
<p class="figure">${e(t.figure,a)}</p>
|
|
1730
|
+
<p class="label">${t.label}</p>
|
|
1731
|
+
${t.status?C`<p class="status mono">${t.status}</p>`:C`<span></span>`}
|
|
1732
|
+
</li>`)}</ul>`}},Zi=class extends je{constructor(){super();this.unwatch=()=>{};this.lanes=[],this.marks=[],this.span=20,this.unit="",this.every=2,this.release="",this.releaseAt=0,this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={lanes:{type:Array},marks:{type:Array},span:{type:Number},unit:{type:String},every:{type:Number},release:{type:String},releaseAt:{type:Number,attribute:"release-at"},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...je.styles,us,Pt,ta,ia,ut`
|
|
1690
1733
|
:host { display: block; }
|
|
1691
1734
|
/* On a narrow screen the graph scrolls sideways, so the scroller takes focus and the arrow keys move it (2.1.1). */
|
|
1692
|
-
figure { margin: 0; overflow-x: auto; border-radius: ${
|
|
1735
|
+
figure { margin: 0; overflow-x: auto; border-radius: ${R.radiusSm}; }
|
|
1693
1736
|
svg { display: block; inline-size: 100%; min-inline-size: 640px; block-size: auto; overflow: visible; }
|
|
1694
|
-
text { font-family: ${
|
|
1737
|
+
text { font-family: ${R.fontMono}; font-size: 12px; fill: currentColor; }
|
|
1695
1738
|
.faint { opacity: 0.5; }
|
|
1696
1739
|
/* A lane's label keeps a band of the page colour around it, so a line crossing it stays legible. */
|
|
1697
1740
|
.halo { paint-order: stroke; stroke: var(--impakt-color-surface-card, #fff); stroke-width: 5px; stroke-linejoin: round; }
|
|
@@ -1700,50 +1743,52 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1700
1743
|
svg { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms cubic-bezier(.25, 1, .5, 1); }
|
|
1701
1744
|
:host([shown]) svg { clip-path: inset(0 -40px 0 0); }
|
|
1702
1745
|
}
|
|
1703
|
-
`]}connectedCallback(){super.connectedCallback(),this.unwatch=
|
|
1704
|
-
<svg viewBox="0 0 ${1200} ${m}" role="img" aria-label=${`${
|
|
1705
|
-
<line x1=${24} y1=${
|
|
1706
|
-
<path d="M${1168} ${
|
|
1707
|
-
${
|
|
1708
|
-
<path d="M${
|
|
1709
|
-
<circle cx=${
|
|
1710
|
-
<text x=${
|
|
1746
|
+
`]}connectedCallback(){super.connectedCallback(),this.unwatch=Fa(this)}disconnectedCallback(){super.disconnectedCallback(),this.unwatch()}render(){let r=this.span>0?this.span:20,s=q=>24+Math.min(Math.max(q,0),r)/r*1116,o=this.lanes??[],h=52,m=40+(o.length+1)*h+40,u=40,N=q=>u+(q+1)*h,ne=[];for(let q=0;q<=r;q+=Math.max(1,this.every||2))ne.push(q);let Je=q=>o.findIndex(he=>q>=he.from&&q<=he.to),$a=q=>(this.marks??[]).some(he=>Je(he.at)===q),We=this.unit||Me("wk"),xa=this.label||Me("Project timeline"),jr=o.map(q=>`${q.label}: ${Me("{unit} {from} to {to}",{unit:We,from:q.from,to:q.to})}`).join("; ");return C`<figure part="figure" tabindex="0">
|
|
1747
|
+
<svg viewBox="0 0 ${1200} ${m}" role="img" aria-label=${`${xa}. ${jr}${this.release?`. ${Me("{name} at {unit} {at}",{name:this.release,unit:We,at:this.releaseAt})}`:""}`}>
|
|
1748
|
+
<line x1=${24} y1=${u} x2=${1180} y2=${u} stroke="currentColor" stroke-width="3" stroke-linecap="round" />
|
|
1749
|
+
<path d="M${1168} ${u-7} L${1180} ${u} L${1168} ${u+7}" fill="none" stroke="currentColor" stroke-width="3" />
|
|
1750
|
+
${o.map((q,he)=>{let ft=Wa(q.tone,he),Ee=N(he),nt=s(q.from),Mt=s(q.to),Ct=Math.min(36,(Mt-nt)/3);return zt`<g>
|
|
1751
|
+
<path d="M${nt} ${u} C${nt} ${(u+Ee)/2} ${nt+Ct} ${Ee} ${nt+Ct*1.6} ${Ee} L${Mt-Ct*1.6} ${Ee} C${Mt-Ct} ${Ee} ${Mt} ${(u+Ee)/2} ${Mt} ${u}" fill="none" stroke=${ft} stroke-width="3" />
|
|
1752
|
+
<circle cx=${nt} cy=${u} r="7" fill=${ft} />
|
|
1753
|
+
<text x=${nt+Ct*1.6} y=${$a(he)?Ee-10:Ee+20} class="halo" style=${`fill:${ft}`}>${q.label}</text>
|
|
1711
1754
|
</g>`})}
|
|
1712
|
-
${(this.marks??[]).map(
|
|
1713
|
-
${this.release?
|
|
1714
|
-
<circle cx=${
|
|
1715
|
-
<rect x=${
|
|
1716
|
-
<text x=${
|
|
1717
|
-
</g>`:
|
|
1718
|
-
${
|
|
1755
|
+
${(this.marks??[]).map(q=>{let he=Je(q.at),ft=he>=0?N(he):u,Ee=he>=0?Wa(o[he].tone,he):"currentColor";return zt`<g><circle cx=${s(q.at)} cy=${ft} r="6" fill="var(--impakt-color-surface-card, #fff)" stroke=${Ee} stroke-width="3" /><text x=${s(q.at)} y=${ft+22} text-anchor="middle" class="faint">${q.label}</text></g>`})}
|
|
1756
|
+
${this.release?zt`<g>
|
|
1757
|
+
<circle cx=${s(this.releaseAt)} cy=${u} r="10" fill=${Ar.success} />
|
|
1758
|
+
<rect x=${s(this.releaseAt)-8} y=${u-36} rx="4" width=${this.release.length*7.6+16} height="22" fill=${Ar.success} />
|
|
1759
|
+
<text x=${s(this.releaseAt)} y=${u-21} style="fill:var(--impakt-color-surface-card, #fff)">${this.release}</text>
|
|
1760
|
+
</g>`:fe}
|
|
1761
|
+
${ne.map(q=>zt`<text x=${s(q)} y=${m-10} text-anchor="middle" class="faint">${We} ${q}</text>`)}
|
|
1719
1762
|
</svg>
|
|
1720
|
-
</figure>`}};customElements.define("impakt-release-card",
|
|
1763
|
+
</figure>`}};customElements.define("impakt-release-card",Xi);customElements.define("impakt-release-list",Ji);customElements.define("impakt-branch-list",Qi);customElements.define("impakt-check-list",Ki);customElements.define("impakt-branch-timeline",Zi);import{css as Xe,html as S,nothing as K}from"./atomic-ui.js";import{ImpaktElement as ie,focusRing as ks,fontWeight as Ve,say as Ir,space as E,spaceAround as ws,t as T}from"./atomic-ui.js";import{css as vs,unsafeCSS as Ot}from"./atomic-ui.js";import{token as st}from"./atomic-ui.js";var we=st("color.ink","#111111"),_e=st("color.paper","#EFEFED"),Er=st("color.ink-raised","#1C1C1C"),gt=st("color.ink-line","#2E2E2E"),Wt=st("color.ink-muted","#A8A8A6"),$e=st("color.accent.default","#FFD43B"),Se=st("color.accent.on","#111111"),Ft=st("color.accent.on-ink","#FFD43B"),Dt=Ot("var(--impakt-band, var(--impakt-color-ink, #111111))"),Ce=Ot("var(--impakt-band-on, var(--impakt-color-paper, #EFEFED))"),Ue=Ot("var(--impakt-band-muted, var(--impakt-color-ink-muted, #A8A8A6))"),_t=Ot("var(--impakt-color-band-raised, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 6%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),Ge=Ot("var(--impakt-color-band-line, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 16%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),J=vs`
|
|
1721
1764
|
font-family: var(--impakt-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
1722
1765
|
font-size: 0.6875rem;
|
|
1723
1766
|
font-weight: 400;
|
|
1724
1767
|
line-height: 1.4;
|
|
1725
1768
|
letter-spacing: 0.06em;
|
|
1726
1769
|
text-transform: uppercase;
|
|
1727
|
-
`,
|
|
1770
|
+
`,Ye=(n,i=3)=>Math.min(Math.max(Number(n)||i,1),6),Br=n=>String(n).padStart(2,"0");var Da={note:["01","Discover","Note"],wireframe:["02","Design low-fi","Wireframe"],component:["03","Design hi-fi","Component"],code:["04","Build","Code"],live:["05","Launch","Live"]},aa=class extends ie{static{this.properties={stage:{type:String,reflect:!0},index:{type:String},phase:{type:String},label:{type:String},onInk:{type:Boolean,reflect:!0,attribute:"on-ink"},announce:{type:Boolean}}}constructor(){super(),this.stage="",this.index="",this.phase="",this.label="",this.onInk=!1,this.announce=!1}static{this.styles=[...ie.styles,Xe`
|
|
1728
1771
|
:host { display: inline-block; vertical-align: middle; }
|
|
1729
|
-
.tag { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 6px 10px; background: ${
|
|
1730
|
-
:host([on-ink]) .tag { background: ${
|
|
1731
|
-
.index { color: ${
|
|
1732
|
-
.phase { color: ${
|
|
1733
|
-
.label { color: ${
|
|
1734
|
-
@media (prefers-color-scheme: dark) { .tag { border-color: ${
|
|
1772
|
+
.tag { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 6px 10px; background: ${we}; border: 1px solid ${we}; ${J}; font-size: 0.75rem; font-weight: ${Ve("medium")}; white-space: nowrap; }
|
|
1773
|
+
:host([on-ink]) .tag { background: ${Er}; border-color: ${gt}; }
|
|
1774
|
+
.index { color: ${Ft}; }
|
|
1775
|
+
.phase { color: ${_e}; }
|
|
1776
|
+
.label { color: ${Wt}; }
|
|
1777
|
+
@media (prefers-color-scheme: dark) { .tag { border-color: ${gt}; } }
|
|
1735
1778
|
@media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }
|
|
1736
|
-
`]}render(){let
|
|
1737
|
-
>${e?S`<span class="index" part="index">${e}</span>`:
|
|
1738
|
-
>`}},
|
|
1779
|
+
`]}render(){let i=this.stage&&this.stage in Da?Da[this.stage]:void 0,e=this.index||i?.[0]||"",t=this.phase||(i?Ir(i[1]):""),a=this.label||(i?Ir(i[2]):"");return!e&&!t&&!a?S``:S`<span class="tag" part="tag" aria-hidden=${this.announce?K:"true"}
|
|
1780
|
+
>${e?S`<span class="index" part="index">${e}</span>`:K}${t?S`<span class="phase" part="phase">${t}</span>`:K}${a?S`<span class="label" part="label">${a}</span>`:K}</span
|
|
1781
|
+
>`}},ra=class extends ie{static{this.properties={label:{type:String},heading:{type:String},lead:{type:String},size:{type:String,reflect:!0},level:{type:Number,reflect:!0},leadPosition:{type:String,reflect:!0,attribute:"lead-position"},stage:{type:String},stageOnInk:{type:Boolean,attribute:"stage-on-ink"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.label="",this.heading="",this.lead="",this.size="m",this.level=2,this.leadPosition="below",this.stage="",this.stageOnInk=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...ie.styles,ws,Xe`
|
|
1739
1782
|
:host { display: block; container-type: inline-size; color: ${T.text}; }
|
|
1740
|
-
.top { display: flex; align-items: center; justify-content: space-between; gap: ${E(4)}; min-block-size: 29px; }
|
|
1741
|
-
|
|
1783
|
+
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: ${E(2)} ${E(4)}; min-block-size: 29px; }
|
|
1784
|
+
/* The label row in G2 Mono M: IBM Plex Mono 13px at 1.5 (14:728). */
|
|
1785
|
+
.label { margin: 0; font-family: ${T.fontMono}; font-size: var(--impakt-type-mono-m-size, 0.8125rem); line-height: var(--impakt-type-mono-m-line-height, 1.5); color: ${T.textMuted}; }
|
|
1742
1786
|
.body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${E(10)}; row-gap: ${E(6)}; align-items: end; margin-block-start: ${E(6)}; }
|
|
1743
|
-
.heading { margin: 0; font-family: ${T.fontHeading}; font-weight: ${
|
|
1787
|
+
.heading { margin: 0; font-family: ${T.fontHeading}; font-weight: ${Ve("semibold")}; color: var(--impakt-color-text-heading, ${T.text}); text-wrap: balance; overflow-wrap: anywhere; }
|
|
1744
1788
|
:host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
|
|
1745
1789
|
:host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
|
|
1746
|
-
:
|
|
1790
|
+
/* Display XL: 120px on a 1080px column and 52px on a 350px phone column, line height 1 and -5% (9:303, 14:734). */
|
|
1791
|
+
:host([size='xl']) .heading { font-size: clamp(3.25rem, 1.2128rem + 9.315cqi, 7.5rem); line-height: var(--impakt-type-display-xl-line-height, 1); letter-spacing: var(--impakt-type-display-xl-tracking, -0.05em); }
|
|
1747
1792
|
.lead { margin: ${E(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${T.textMuted}; }
|
|
1748
1793
|
.side { display: grid; gap: ${E(6)}; justify-items: end; }
|
|
1749
1794
|
/* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */
|
|
@@ -1756,64 +1801,64 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1756
1801
|
.side { justify-items: stretch; }
|
|
1757
1802
|
.side .lead { inline-size: auto; }
|
|
1758
1803
|
}
|
|
1759
|
-
`]}render(){let
|
|
1804
|
+
`]}render(){let i=S`<p class="lead" part="lead"><slot name="lead">${this.lead}</slot></p>`,e=!!this.lead||this.hasSlot("lead"),t=S`<slot name="heading">${this.heading}</slot>`,a=Number(this.level)===1?S`<h1 class="heading" part="heading">${t}</h1>`:S`<h2 class="heading" part="heading">${t}</h2>`,r=this.leadPosition==="side";return S`<header part="head">
|
|
1760
1805
|
<div class="top">
|
|
1761
1806
|
${this.label?S`<p class="label" part="label"><span aria-hidden="true"># </span>${this.label}</p>`:S`<span></span>`}
|
|
1762
|
-
<slot name="tag">${this.stage?S`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>`:
|
|
1807
|
+
<slot name="tag">${this.stage?S`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>`:K}</slot>
|
|
1763
1808
|
</div>
|
|
1764
1809
|
<div class=${this.hasSlot("aside")?"body aside":"body"}>
|
|
1765
|
-
<div class="main">${a}${e&&!r?
|
|
1766
|
-
<div class="side">${e&&r?
|
|
1810
|
+
<div class="main">${a}${e&&!r?i:K}</div>
|
|
1811
|
+
<div class="side">${e&&r?i:K}<slot name="aside"></slot></div>
|
|
1767
1812
|
</div>
|
|
1768
|
-
</header>`}hasSlot(
|
|
1813
|
+
</header>`}hasSlot(i){let e=this.children;return e?Array.from(e).some(t=>t.getAttribute("slot")===i):!1}},sa=class extends ie{static{this.properties={number:{type:String},heading:{type:String},text:{type:String},tags:{type:String},href:{type:String},linkText:{type:String,attribute:"link-text"},headingLevel:{type:Number,attribute:"heading-level"},featured:{type:Boolean,reflect:!0}}}constructor(){super(),this.featured=!1,this.number="",this.heading="",this.text="",this.tags="",this.href="",this.linkText="Learn more",this.headingLevel=3}static{this.styles=[...ie.styles,Xe`
|
|
1769
1814
|
:host { display: block; block-size: 100%; }
|
|
1770
1815
|
article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${E(6)}; padding: ${E(6)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
1771
1816
|
.top { display: flex; align-items: center; justify-content: space-between; }
|
|
1772
1817
|
.number { font-family: ${T.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
|
|
1773
1818
|
.dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }
|
|
1774
1819
|
.foot { display: grid; gap: ${E(3)}; }
|
|
1775
|
-
.heading { margin: 0; font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${
|
|
1820
|
+
.heading { margin: 0; font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${Ve("semibold")}; line-height: 1.15; letter-spacing: -0.02em; }
|
|
1776
1821
|
.heading a { color: inherit; text-decoration: none; }
|
|
1777
1822
|
.heading a::after { content: ''; position: absolute; inset: 0; }
|
|
1778
1823
|
.heading a:focus-visible { outline: none; }
|
|
1779
1824
|
.heading a:focus-visible::after { box-shadow: ${T.focusShadow}; }
|
|
1780
1825
|
.text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: ${T.textMuted}; }
|
|
1781
|
-
.tags { margin: ${E(1)} 0 0; ${
|
|
1782
|
-
.more { margin-block-start: ${E(2)}; ${
|
|
1783
|
-
article:has(a):hover, article:focus-within, :host([featured]) article { background: ${
|
|
1784
|
-
article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${
|
|
1785
|
-
article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${
|
|
1826
|
+
.tags { margin: ${E(1)} 0 0; ${J}; color: ${T.textMuted}; }
|
|
1827
|
+
.more { margin-block-start: ${E(2)}; ${J}; font-weight: ${Ve("medium")}; }
|
|
1828
|
+
article:has(a):hover, article:focus-within, :host([featured]) article { background: ${we}; color: ${_e}; border-color: ${we}; }
|
|
1829
|
+
article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${Wt}; }
|
|
1830
|
+
article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${Ft}; }
|
|
1786
1831
|
@media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }
|
|
1787
1832
|
@media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } }
|
|
1788
|
-
`]}render(){let
|
|
1833
|
+
`]}render(){let i=Ye(this.headingLevel);return S`<article part="card">
|
|
1789
1834
|
<div class="top" aria-hidden="true">
|
|
1790
1835
|
<span class="number" part="number">${this.number}</span>
|
|
1791
1836
|
<span class="dot" part="dot"></span>
|
|
1792
1837
|
</div>
|
|
1793
1838
|
<div class="foot">
|
|
1794
|
-
<div class="heading" part="heading" role="heading" aria-level=${
|
|
1839
|
+
<div class="heading" part="heading" role="heading" aria-level=${i}>
|
|
1795
1840
|
${this.href?S`<a href=${this.href} part="link">${this.heading}</a>`:this.heading}
|
|
1796
1841
|
</div>
|
|
1797
|
-
${this.text?S`<p class="text" part="text">${this.text}</p>`:
|
|
1798
|
-
${this.tags?S`<p class="tags" part="tags">${this.tags}</p>`:
|
|
1799
|
-
${this.href&&this.linkText?S`<span class="more" part="more" aria-hidden="true">${this.linkText} →</span>`:
|
|
1842
|
+
${this.text?S`<p class="text" part="text">${this.text}</p>`:K}
|
|
1843
|
+
${this.tags?S`<p class="tags" part="tags">${this.tags}</p>`:K}
|
|
1844
|
+
${this.href&&this.linkText?S`<span class="more" part="more" aria-hidden="true">${this.linkText} →</span>`:K}
|
|
1800
1845
|
</div>
|
|
1801
|
-
</article>`}},
|
|
1846
|
+
</article>`}},na=class extends ie{static{this.properties={name:{type:String},variant:{type:String,reflect:!0},drift:{type:Boolean,reflect:!0}}}constructor(){super(),this.name="",this.variant="ink",this.drift=!1}static{this.styles=[...ie.styles,Xe`
|
|
1802
1847
|
:host { display: inline-block; position: relative; pointer-events: none; }
|
|
1803
1848
|
.cursor { display: inline-flex; align-items: flex-start; }
|
|
1804
1849
|
svg { display: block; flex: none; }
|
|
1805
|
-
.arrow { fill: ${
|
|
1806
|
-
.name { margin: 16px 0 0 -2px; padding: 4px 7px; ${
|
|
1850
|
+
.arrow { fill: ${we}; stroke: ${_e}; }
|
|
1851
|
+
.name { margin: 16px 0 0 -2px; padding: 4px 7px; ${J}; font-weight: ${Ve("medium")}; white-space: nowrap; background: ${we}; color: ${_e}; border: 1px solid ${we}; }
|
|
1807
1852
|
:host([variant='outline']) .name { background: ${T.surfaceCard}; color: ${T.text}; border-color: ${T.text}; }
|
|
1808
|
-
:host([variant='accent']) .name { background: ${
|
|
1853
|
+
:host([variant='accent']) .name { background: ${$e}; color: ${Se}; border-color: ${Se}; }
|
|
1809
1854
|
:host([drift]) .cursor { animation: drift 7s ease-in-out infinite alternate; }
|
|
1810
1855
|
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-3px, 4px); } }
|
|
1811
1856
|
@media (prefers-reduced-motion: reduce) { :host([drift]) .cursor { animation: none; } }
|
|
1812
1857
|
@media (forced-colors: active) { .arrow { fill: CanvasText; stroke: Canvas; } .name { border-color: CanvasText; } }
|
|
1813
1858
|
`]}render(){return S`<span class="cursor" part="cursor" aria-hidden="true">
|
|
1814
1859
|
<svg viewBox="0 0 16 22" width="16" height="22" focusable="false"><path class="arrow" d="M1.5 1.5v16.2l4.3-4.1 3 6.6 2.6-1.2-3-6.5h6z" stroke-width="1.25" stroke-linejoin="round" /></svg>
|
|
1815
|
-
${this.name?S`<span class="name" part="name">${this.name}</span>`:
|
|
1816
|
-
</span>`}},
|
|
1860
|
+
${this.name?S`<span class="name" part="name">${this.name}</span>`:K}
|
|
1861
|
+
</span>`}},oa=class extends ie{static{this.properties={text:{type:String},arrow:{type:String,reflect:!0},decorative:{type:Boolean,reflect:!0}}}constructor(){super(),this.text="",this.arrow="none",this.decorative=!1}static{this.styles=[...ie.styles,Xe`
|
|
1817
1862
|
:host { display: inline-block; max-inline-size: 18rem; }
|
|
1818
1863
|
.note { display: inline-flex; align-items: center; gap: ${E(2)}; }
|
|
1819
1864
|
:host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }
|
|
@@ -1824,12 +1869,12 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1824
1869
|
:host([arrow='down']) svg { transform: rotate(90deg); }
|
|
1825
1870
|
:host([arrow='up']) svg { transform: rotate(-90deg); }
|
|
1826
1871
|
@media (forced-colors: active) { p, svg { color: CanvasText; } }
|
|
1827
|
-
`]}render(){let
|
|
1872
|
+
`]}render(){let i=this.arrow&&this.arrow!=="none"?S`<svg viewBox="0 0 40 24" width="40" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M2 16c8-10 20-12 34-6M30 4l6 6-7 4" /></svg>`:K;return S`<div class="note" part="note" aria-hidden=${this.decorative?"true":K}><p part="text"><slot>${this.text}</slot></p>${i}</div>`}},la=class extends ie{static{this.properties={items:{type:Array},layout:{type:String,reflect:!0},size:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=[],this.layout="columns",this.size="md",this.label=""}static{this.styles=[...ie.styles,ks,Xe`
|
|
1828
1873
|
:host { display: block; color: ${T.text}; }
|
|
1829
1874
|
dl { margin: 0; display: grid; gap: ${E(5)}; }
|
|
1830
1875
|
:host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${E(5)}; row-gap: ${E(6)}; }
|
|
1831
1876
|
:host([layout='columns']) .fact { border-block-start: 1px solid ${T.text}; padding-block-start: ${E(4)}; }
|
|
1832
|
-
dt { ${
|
|
1877
|
+
dt { ${J}; color: ${T.textMuted}; }
|
|
1833
1878
|
dd { margin: ${E(2)} 0 0; font-family: ${T.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }
|
|
1834
1879
|
:host([layout='columns']) dd { margin-block-start: ${E(3)}; }
|
|
1835
1880
|
.sm { font-size: 1rem; }
|
|
@@ -1839,81 +1884,81 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1839
1884
|
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
|
|
1840
1885
|
a:hover { text-decoration-thickness: 2px; }
|
|
1841
1886
|
@media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }
|
|
1842
|
-
`]}render(){return this.items.length?S`<dl part="list" aria-label=${this.label||
|
|
1843
|
-
${this.items.map(
|
|
1844
|
-
<dt part="label">${
|
|
1845
|
-
<dd part="value" class=${
|
|
1887
|
+
`]}render(){return this.items.length?S`<dl part="list" aria-label=${this.label||K}>
|
|
1888
|
+
${this.items.map(i=>S`<div class="fact" part="fact">
|
|
1889
|
+
<dt part="label">${i.label}</dt>
|
|
1890
|
+
<dd part="value" class=${i.size??this.size}>${i.href?S`<a href=${i.href}>${i.value}</a>`:i.value}</dd>
|
|
1846
1891
|
</div>`)}
|
|
1847
|
-
</dl>`:S``}},
|
|
1892
|
+
</dl>`:S``}},ca=class extends ie{static{this.properties={items:{type:Array},start:{type:Number},headingLevel:{type:Number,attribute:"heading-level"},label:{type:String}}}constructor(){super(),this.items=[],this.start=1,this.headingLevel=3,this.label=""}static{this.styles=[...ie.styles,Xe`
|
|
1848
1893
|
:host { display: block; container-type: inline-size; color: ${T.text}; }
|
|
1849
1894
|
ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${T.text}; }
|
|
1850
1895
|
li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${E(10)}; align-items: center; padding-block: ${E(6)}; border-block-end: 1px solid ${T.rule}; }
|
|
1851
1896
|
.n { font-family: ${T.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${T.textMuted}; }
|
|
1852
|
-
.heading { margin: 0; font-family: ${T.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${
|
|
1897
|
+
.heading { margin: 0; font-family: ${T.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${Ve("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
|
|
1853
1898
|
.text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${T.textMuted}; }
|
|
1854
1899
|
@container (max-width: 47.99rem) {
|
|
1855
1900
|
li { grid-template-columns: minmax(0, 1fr); row-gap: ${E(2)}; }
|
|
1856
1901
|
}
|
|
1857
1902
|
@media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }
|
|
1858
|
-
`]}render(){if(!this.items.length)return S``;let
|
|
1859
|
-
${this.items.map((
|
|
1860
|
-
<span class="n" aria-hidden="true">${
|
|
1861
|
-
<div class="heading" role="heading" aria-level=${
|
|
1862
|
-
${
|
|
1903
|
+
`]}render(){if(!this.items.length)return S``;let i=Ye(this.headingLevel),e=Number.isFinite(Number(this.start))?Number(this.start):1;return S`<ol part="list" role="list" start=${e} aria-label=${this.label||K}>
|
|
1904
|
+
${this.items.map((t,a)=>S`<li part="item">
|
|
1905
|
+
<span class="n" aria-hidden="true">${Br(e+a)}</span>
|
|
1906
|
+
<div class="heading" role="heading" aria-level=${i} part="heading">${t.heading}</div>
|
|
1907
|
+
${t.text?S`<p class="text" part="text">${t.text}</p>`:S`<span></span>`}
|
|
1863
1908
|
</li>`)}
|
|
1864
|
-
</ol>`}},
|
|
1909
|
+
</ol>`}},da=class extends ie{static{this.properties={columns:{type:Array},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.columns=[],this.headingLevel=3}static{this.styles=[...ie.styles,Xe`
|
|
1865
1910
|
:host { display: block; color: ${T.text}; }
|
|
1866
1911
|
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${E(8)} ${E(5)}; }
|
|
1867
1912
|
section { border-block-start: 1px solid ${T.text}; padding-block-start: ${E(4)}; }
|
|
1868
|
-
.heading { margin: 0; ${
|
|
1913
|
+
.heading { margin: 0; ${J}; color: ${T.textMuted}; }
|
|
1869
1914
|
ul { margin: ${E(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${E(2)}; }
|
|
1870
|
-
li { font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${
|
|
1915
|
+
li { font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${Ve("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
|
|
1871
1916
|
@media (forced-colors: active) { section { border-color: CanvasText; } }
|
|
1872
|
-
`]}render(){if(!this.columns.length)return S``;let
|
|
1917
|
+
`]}render(){if(!this.columns.length)return S``;let i=Ye(this.headingLevel);return S`<div class="grid" part="grid">
|
|
1873
1918
|
${this.columns.map(e=>S`<section part="column">
|
|
1874
|
-
<div class="heading" role="heading" aria-level=${
|
|
1875
|
-
<ul role="list" part="list">${(e.items??[]).map(
|
|
1919
|
+
<div class="heading" role="heading" aria-level=${i} part="heading">${e.heading}</div>
|
|
1920
|
+
<ul role="list" part="list">${(e.items??[]).map(t=>S`<li part="item">${t}</li>`)}</ul>
|
|
1876
1921
|
</section>`)}
|
|
1877
|
-
</div>`}},
|
|
1922
|
+
</div>`}},pa=class extends ie{static{this.properties={hours:{type:String},name:{type:String},region:{type:String},text:{type:String},tag:{type:String},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.hours="",this.name="",this.region="",this.text="",this.tag="",this.headingLevel=3}static{this.styles=[...ie.styles,Xe`
|
|
1878
1923
|
:host { display: block; block-size: 100%; container-type: inline-size; }
|
|
1879
1924
|
article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${E(2)}; padding: ${E(8)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; }
|
|
1880
1925
|
.top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${E(2)}; }
|
|
1881
|
-
.hours { margin: 0; ${
|
|
1882
|
-
.tag { margin: 0; padding: 3px 6px; ${
|
|
1883
|
-
.name { margin: ${E(2)} 0 0; font-family: ${T.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${
|
|
1926
|
+
.hours { margin: 0; ${J}; color: ${T.textMuted}; }
|
|
1927
|
+
.tag { margin: 0; padding: 3px 6px; ${J}; font-weight: ${Ve("medium")}; background: ${$e}; color: ${Se}; }
|
|
1928
|
+
.name { margin: ${E(2)} 0 0; font-family: ${T.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${Ve("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
|
|
1884
1929
|
.region { margin: ${E(2)} 0 0; font-size: 1rem; line-height: 1.4; }
|
|
1885
1930
|
.text { margin: ${E(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${T.textMuted}; }
|
|
1886
1931
|
@container (max-width: 22rem) { article { padding: ${E(5)}; } }
|
|
1887
1932
|
@media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }
|
|
1888
|
-
`]}render(){let
|
|
1889
|
-
${this.hours||this.tag?S`<div class="top">${this.hours?S`<p class="hours" part="hours">${this.hours}</p>`:S`<span></span>`}${this.tag?S`<p class="tag" part="tag">${this.tag}</p>`:
|
|
1890
|
-
<div class="name" role="heading" aria-level=${
|
|
1891
|
-
${this.region?S`<p class="region" part="region">${this.region}</p>`:
|
|
1892
|
-
${this.text?S`<p class="text" part="text">${this.text}</p>`:
|
|
1893
|
-
</article>`}};customElements.define("impakt-stage-tag",
|
|
1894
|
-
:host { display: block; container-type: inline-size; background: ${
|
|
1933
|
+
`]}render(){let i=Ye(this.headingLevel);return S`<article part="card">
|
|
1934
|
+
${this.hours||this.tag?S`<div class="top">${this.hours?S`<p class="hours" part="hours">${this.hours}</p>`:S`<span></span>`}${this.tag?S`<p class="tag" part="tag">${this.tag}</p>`:K}</div>`:K}
|
|
1935
|
+
<div class="name" role="heading" aria-level=${i} part="name">${this.name}</div>
|
|
1936
|
+
${this.region?S`<p class="region" part="region">${this.region}</p>`:K}
|
|
1937
|
+
${this.text?S`<p class="text" part="text">${this.text}</p>`:K}
|
|
1938
|
+
</article>`}};customElements.define("impakt-stage-tag",aa);customElements.define("impakt-section-head",ra);customElements.define("impakt-service-card",sa);customElements.define("impakt-cursor",na);customElements.define("impakt-hand-note",oa);customElements.define("impakt-facts",la);customElements.define("impakt-numbered-list",ca);customElements.define("impakt-column-list",da);customElements.define("impakt-office-card",pa);import{css as Gt,html as Y,nothing as xe,svg as Ss}from"./atomic-ui.js";import{ImpaktElement as Oe,fontWeight as Ut,say as Rr,space as se,t as Pe,visuallyHidden as zs}from"./atomic-ui.js";var Hr=40,_a=72,ma=class extends Oe{static{this.properties={nodes:{type:Array},lineLabel:{type:String,attribute:"line-label"},label:{type:String}}}constructor(){super(),this.nodes=[],this.lineLabel="",this.label=""}static{this.styles=[...Oe.styles,Gt`
|
|
1939
|
+
:host { display: block; container-type: inline-size; background: ${Dt}; color: ${Ce}; }
|
|
1895
1940
|
.visual { display: none; position: relative; }
|
|
1896
1941
|
.visual svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
|
|
1897
|
-
.visual path { fill: none; stroke: ${
|
|
1898
|
-
.ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${
|
|
1899
|
-
.ring.current { inline-size: 12px; block-size: 12px; background: ${
|
|
1942
|
+
.visual path { fill: none; stroke: ${Ce}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
|
|
1943
|
+
.ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${Ce}; background: ${Dt}; transform: translate(-50%, -50%); }
|
|
1944
|
+
.ring.current { inline-size: 12px; block-size: 12px; background: ${$e}; }
|
|
1900
1945
|
/* Each label keeps to the space between its point and the next, wrapping rather than running into its neighbour. */
|
|
1901
|
-
.vlabel { position: absolute; transform: translateX(-50%); ${
|
|
1902
|
-
.lineLabel { position: absolute; inset-inline-start: 0; ${
|
|
1903
|
-
.flag { display: inline-block; padding: 4px 8px; ${
|
|
1946
|
+
.vlabel { position: absolute; transform: translateX(-50%); ${J}; color: ${Ue}; inline-size: max-content; max-inline-size: var(--slot); text-align: center; text-wrap: balance; }
|
|
1947
|
+
.lineLabel { position: absolute; inset-inline-start: 0; ${J}; color: ${Ue}; }
|
|
1948
|
+
.flag { display: inline-block; padding: 4px 8px; ${J}; font-weight: ${Ut("medium")}; background: ${$e}; color: ${Se}; white-space: nowrap; }
|
|
1904
1949
|
.visual .flag { position: absolute; transform: translate(-50%, -100%); }
|
|
1905
1950
|
|
|
1906
|
-
ol { margin: 0; padding: ${
|
|
1907
|
-
li { position: relative; padding: 0 0 ${
|
|
1908
|
-
li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 4px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${
|
|
1909
|
-
li[aria-current]::before { background: ${
|
|
1910
|
-
li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 4.25px; inset-block-start: 14px; inset-block-end: -4px; inline-size: 1.5px; background: ${
|
|
1911
|
-
.rlabel { ${
|
|
1912
|
-
li .flag { margin-inline-start: ${
|
|
1951
|
+
ol { margin: 0; padding: ${se(6)} ${se(4)}; list-style: none; }
|
|
1952
|
+
li { position: relative; padding: 0 0 ${se(5)} 28px; }
|
|
1953
|
+
li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 4px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${Ce}; background: ${Dt}; }
|
|
1954
|
+
li[aria-current]::before { background: ${$e}; }
|
|
1955
|
+
li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 4.25px; inset-block-start: 14px; inset-block-end: -4px; inline-size: 1.5px; background: ${Ce}; }
|
|
1956
|
+
.rlabel { ${J}; font-size: 0.75rem; color: ${Ce}; }
|
|
1957
|
+
li .flag { margin-inline-start: ${se(2)}; }
|
|
1913
1958
|
|
|
1914
1959
|
@container (min-width: 60rem) {
|
|
1915
1960
|
.visual { display: block; }
|
|
1916
|
-
ol { ${
|
|
1961
|
+
ol { ${zs} }
|
|
1917
1962
|
}
|
|
1918
1963
|
@media (forced-colors: active) {
|
|
1919
1964
|
.visual path { stroke: CanvasText; }
|
|
@@ -1922,120 +1967,122 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
|
|
|
1922
1967
|
li::after { background: CanvasText; }
|
|
1923
1968
|
.flag { border: 1px solid CanvasText; }
|
|
1924
1969
|
}
|
|
1925
|
-
`]}render(){let
|
|
1926
|
-
<svg viewBox="0 0 1000 ${r}" preserveAspectRatio="none" focusable="false">${
|
|
1927
|
-
${this.lineLabel?
|
|
1928
|
-
${
|
|
1929
|
-
${
|
|
1930
|
-
${m.flag?
|
|
1970
|
+
`]}render(){let i=this.nodes??[];if(!i.length)return Y``;let e=i.length,t=m=>Math.max(0,Math.min(4,Number(m.depth)||0)),a=Math.max(...i.map(t)),r=_a+a*Hr+44,s=i.map((m,u)=>({x:(u+.5)/e*1e3,y:_a+t(m)*Hr})),o=`M0 ${s[0].y} L${s[0].x} ${s[0].y}`;for(let m=1;m<e;m++){let u=s[m-1],N=s[m];if(u.y===N.y)o+=` L${N.x} ${N.y}`;else{let ne=(u.x+N.x)/2;o+=` C${ne} ${u.y} ${ne} ${N.y} ${N.x} ${N.y}`}}o+=` L1000 ${s[e-1].y}`;let h=m=>`${(m+.5)/e*100}%`;return Y`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${r}px;--slot:calc(${100/e}% - 0.5rem)">
|
|
1971
|
+
<svg viewBox="0 0 1000 ${r}" preserveAspectRatio="none" focusable="false">${Ss`<path d=${o} />`}</svg>
|
|
1972
|
+
${this.lineLabel?Y`<span class="lineLabel" style="inset-block-start:${_a-64}px">${this.lineLabel}</span>`:xe}
|
|
1973
|
+
${i.map((m,u)=>{let N=s[u].y,Je=t(m)===0?m.flag?xe:Y`<span class="vlabel" style="inset-inline-start:${h(u)};inset-block-end:${r-N+12}px">${m.label}</span>`:Y`<span class="vlabel" style="inset-inline-start:${h(u)};inset-block-start:${N+14}px">${m.label}</span>`;return Y`<span class="ring ${m.current?"current":""}" style="inset-inline-start:${h(u)};inset-block-start:${N}px"></span>
|
|
1974
|
+
${Je}
|
|
1975
|
+
${m.flag?Y`<span class="flag" style="inset-inline-start:${h(u)};inset-block-start:${N-12}px">${m.flag}</span>`:xe}`})}
|
|
1931
1976
|
</div>
|
|
1932
|
-
<ol part="list" role="list" aria-label=${this.label||
|
|
1933
|
-
${
|
|
1934
|
-
<span class="rlabel">${m.label}</span>${m.flag?
|
|
1977
|
+
<ol part="list" role="list" aria-label=${this.label||xe}>
|
|
1978
|
+
${i.map(m=>Y`<li part="item" aria-current=${m.current?"step":xe}>
|
|
1979
|
+
<span class="rlabel">${m.label}</span>${m.flag?Y`<span class="flag">${m.flag}</span>`:xe}
|
|
1935
1980
|
</li>`)}
|
|
1936
|
-
</ol>`}},
|
|
1981
|
+
</ol>`}},ha=class extends Oe{static{this.properties={days:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},label:{type:String}}}constructor(){super(),this.days=[],this.headingLevel=3,this.label=""}static{this.styles=[...Oe.styles,Gt`
|
|
1937
1982
|
:host { display: block; }
|
|
1938
1983
|
ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; }
|
|
1939
|
-
li { box-sizing: border-box; min-block-size: 150px; padding: ${
|
|
1940
|
-
li.highlight { background: ${
|
|
1941
|
-
.day { margin: 0; ${
|
|
1942
|
-
.heading { margin: ${
|
|
1943
|
-
.text { margin: ${
|
|
1944
|
-
li.highlight :is(.day, .text) { color: ${
|
|
1984
|
+
li { box-sizing: border-box; min-block-size: 150px; padding: ${se(5)}; background: ${_t}; border: 1px solid ${Ge}; color: ${Ce}; }
|
|
1985
|
+
li.highlight { background: ${$e}; border-color: ${$e}; color: ${Se}; }
|
|
1986
|
+
.day { margin: 0; ${J}; color: ${Ue}; }
|
|
1987
|
+
.heading { margin: ${se(2)} 0 0; font-family: ${Pe.fontHeading}; font-size: 2rem; font-weight: ${Ut("semibold")}; line-height: 1.1; letter-spacing: -0.03em; }
|
|
1988
|
+
.text { margin: ${se(3)} 0 0; font-size: 0.875rem; line-height: 1.45; color: ${Ue}; }
|
|
1989
|
+
li.highlight :is(.day, .text) { color: ${Se}; }
|
|
1945
1990
|
@media (forced-colors: active) { li, li.highlight { border-color: CanvasText; } li.highlight { border-width: 3px; } }
|
|
1946
|
-
`]}render(){if(!this.days?.length)return
|
|
1947
|
-
${this.days.map(e=>
|
|
1991
|
+
`]}render(){if(!this.days?.length)return Y``;let i=Ye(this.headingLevel);return Y`<ol part="list" role="list" aria-label=${this.label||xe}>
|
|
1992
|
+
${this.days.map(e=>Y`<li part="day" class=${e.highlight?"highlight":""}>
|
|
1948
1993
|
<p class="day">${e.day}</p>
|
|
1949
|
-
<div class="heading" role="heading" aria-level=${
|
|
1950
|
-
${e.text?
|
|
1994
|
+
<div class="heading" role="heading" aria-level=${i}>${e.heading}</div>
|
|
1995
|
+
${e.text?Y`<p class="text">${e.text}</p>`:xe}
|
|
1951
1996
|
</li>`)}
|
|
1952
|
-
</ol>`}},
|
|
1997
|
+
</ol>`}},ua=class extends Oe{static{this.properties={label:{type:String},text:{type:String}}}constructor(){super(),this.label="",this.text=""}static{this.styles=[...Oe.styles,Gt`
|
|
1953
1998
|
:host { display: block; }
|
|
1954
|
-
.panel { padding: ${
|
|
1955
|
-
.label { margin: 0 0 ${
|
|
1956
|
-
.text { margin: 0; max-inline-size: 26em; font-family: ${
|
|
1957
|
-
@media (prefers-color-scheme: dark) { .panel { border-color: ${
|
|
1958
|
-
@media (max-width: 30rem) { .panel { padding: ${
|
|
1999
|
+
.panel { padding: ${se(8)} ${se(8)} ${se(10)}; background: ${we}; color: ${_e}; border: 1px solid ${we}; }
|
|
2000
|
+
.label { margin: 0 0 ${se(4)}; ${J}; font-weight: ${Ut("medium")}; color: ${Ft}; }
|
|
2001
|
+
.text { margin: 0; max-inline-size: 26em; font-family: ${Pe.fontHeading}; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); font-weight: ${Ut("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
|
|
2002
|
+
@media (prefers-color-scheme: dark) { .panel { border-color: ${gt}; } }
|
|
2003
|
+
@media (max-width: 30rem) { .panel { padding: ${se(6)}; } }
|
|
1959
2004
|
@media (forced-colors: active) { .panel { border-color: CanvasText; } }
|
|
1960
|
-
`]}render(){return
|
|
1961
|
-
${this.label?
|
|
2005
|
+
`]}render(){return Y`<div class="panel" part="panel">
|
|
2006
|
+
${this.label?Y`<p class="label" part="label">${this.label}</p>`:xe}
|
|
1962
2007
|
<p class="text" part="text"><slot>${this.text}</slot></p>
|
|
1963
|
-
</div>`}},
|
|
2008
|
+
</div>`}},ga=class extends Oe{static{this.properties={number:{type:String},statement:{type:String},metric:{type:String},impact:{type:String,reflect:!0},impactLabel:{type:String,attribute:"impact-label"}}}constructor(){super(),this.number="",this.statement="",this.metric="",this.impact="",this.impactLabel=""}static{this.styles=[...Oe.styles,Gt`
|
|
1964
2009
|
:host { display: block; block-size: 100%; }
|
|
1965
|
-
article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${
|
|
1966
|
-
.top { display: flex; justify-content: space-between; align-items: center; gap: ${
|
|
1967
|
-
.number { font-family: ${
|
|
1968
|
-
.impact { margin: 0; padding: 3px 7px; ${
|
|
1969
|
-
:host([impact='high']) .impact { background: ${
|
|
1970
|
-
.statement { margin: 0; font-family: ${
|
|
1971
|
-
.metric { margin: 0; ${
|
|
2010
|
+
article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${se(4)}; padding: ${se(6)}; background: ${Pe.surfaceCard}; color: ${Pe.text}; border: 1px solid ${Pe.text}; }
|
|
2011
|
+
.top { display: flex; justify-content: space-between; align-items: center; gap: ${se(2)}; flex-wrap: wrap; min-block-size: 22px; }
|
|
2012
|
+
.number { font-family: ${Pe.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
|
|
2013
|
+
.impact { margin: 0; padding: 3px 7px; ${J}; font-weight: ${Ut("medium")}; border: 1px solid ${Pe.text}; color: ${Pe.text}; }
|
|
2014
|
+
:host([impact='high']) .impact { background: ${$e}; color: ${Se}; border-color: ${Se}; }
|
|
2015
|
+
.statement { margin: 0; font-family: ${Pe.fontHeading}; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
|
|
2016
|
+
.metric { margin: 0; ${J}; color: ${Pe.textMuted}; }
|
|
1972
2017
|
@media (forced-colors: active) { article, .impact { border-color: CanvasText; } }
|
|
1973
|
-
`]}render(){let
|
|
1974
|
-
${this.number||e?
|
|
2018
|
+
`]}render(){let i={high:"High impact",medium:"Medium impact",low:"Low impact"},e=this.impactLabel||(this.impact&&i[this.impact]?Rr(i[this.impact]):"");return Y`<article part="card">
|
|
2019
|
+
${this.number||e?Y`<div class="top">
|
|
1975
2020
|
<span class="number" part="number">${this.number}</span>
|
|
1976
|
-
${e?
|
|
1977
|
-
</div>`:
|
|
1978
|
-
${this.statement?
|
|
1979
|
-
${this.metric?
|
|
1980
|
-
</article>`}},
|
|
2021
|
+
${e?Y`<p class="impact" part="impact">${e}</p>`:xe}
|
|
2022
|
+
</div>`:xe}
|
|
2023
|
+
${this.statement?Y`<p class="statement" part="statement">${this.statement}</p>`:xe}
|
|
2024
|
+
${this.metric?Y`<p class="metric" part="metric">${Rr("Metric")} · ${this.metric}</p>`:xe}
|
|
2025
|
+
</article>`}},ba=class extends Oe{static{this.properties={caption:{type:String},ratio:{type:String},filled:{state:!0}}}constructor(){super(),this.caption="",this.ratio="16 / 9",this.filled=!1}static{this.styles=[...Oe.styles,Gt`
|
|
1981
2026
|
:host { display: block; }
|
|
1982
|
-
.frame { border: 1px solid ${
|
|
1983
|
-
.bar { display: flex; align-items: center; gap: 6px; block-size: 40px; padding-inline: ${
|
|
1984
|
-
.dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${
|
|
1985
|
-
.dot:first-child { background: ${
|
|
1986
|
-
.caption { margin-inline-start: ${
|
|
2027
|
+
.frame { border: 1px solid ${Ge}; background: ${Dt}; color: ${Ce}; }
|
|
2028
|
+
.bar { display: flex; align-items: center; gap: 6px; block-size: 40px; padding-inline: ${se(3)}; background: ${_t}; border-block-end: 1px solid ${Ge}; overflow: hidden; }
|
|
2029
|
+
.dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${Ge}; }
|
|
2030
|
+
.dot:first-child { background: ${$e}; }
|
|
2031
|
+
.caption { margin-inline-start: ${se(1.5)}; ${J}; color: ${Ue}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1987
2032
|
.canvas { position: relative; }
|
|
1988
|
-
.canvas.empty { background-image: linear-gradient(to right, ${
|
|
2033
|
+
.canvas.empty { background-image: linear-gradient(to right, ${Ge} 1px, transparent 1px), linear-gradient(to bottom, ${Ge} 1px, transparent 1px); background-size: 28px 28px; }
|
|
1989
2034
|
::slotted(img), ::slotted(picture), ::slotted(video) { display: block; inline-size: 100%; block-size: auto; }
|
|
1990
2035
|
@media (forced-colors: active) { .frame, .bar { border-color: CanvasText; } .dot { background: CanvasText; } }
|
|
1991
|
-
`]}render(){return
|
|
2036
|
+
`]}render(){return Y`<div class="frame" part="frame">
|
|
1992
2037
|
<div class="bar" part="bar" aria-hidden="true">
|
|
1993
2038
|
<span class="dot"></span><span class="dot"></span><span class="dot"></span>
|
|
1994
|
-
${this.caption?
|
|
2039
|
+
${this.caption?Y`<span class="caption" part="caption">${this.caption}</span>`:xe}
|
|
1995
2040
|
</div>
|
|
1996
2041
|
<div class="canvas ${this.filled?"":"empty"}" part="canvas" style=${this.filled?"":`aspect-ratio: ${this.ratio||"16 / 9"}`}>
|
|
1997
2042
|
<slot @slotchange=${this.onSlot}></slot>
|
|
1998
2043
|
</div>
|
|
1999
|
-
</div>`}onSlot(
|
|
2044
|
+
</div>`}onSlot(i){this.filled=i.target.assignedElements().length>0}};customElements.define("impakt-process-line",ma);customElements.define("impakt-week-strip",ha);customElements.define("impakt-callout",ua);customElements.define("impakt-hypothesis-card",ga);customElements.define("impakt-browser-frame",ba);import{css as Ts,html as bt,nothing as Yt}from"./atomic-ui.js";import{ImpaktElement as Nr,fontWeight as qr,space as Vt,t as Le}from"./atomic-ui.js";var fa=class extends Nr{static{this.properties={steps:{type:Array},size:{type:String,reflect:!0},onInk:{type:Boolean,reflect:!0,attribute:"on-ink"},headingLevel:{type:Number,attribute:"heading-level"},label:{type:String}}}constructor(){super(),this.steps=[],this.size="md",this.onInk=!1,this.headingLevel=3,this.label=""}static{this.styles=[...Nr.styles,Ts`
|
|
2000
2045
|
:host { display: block; container-type: inline-size; }
|
|
2001
2046
|
ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; }
|
|
2002
2047
|
li { flex: 1 1 0; min-inline-size: 0; display: flex; align-items: stretch; }
|
|
2003
2048
|
li:not(:first-child) { flex-basis: 56px; }
|
|
2004
|
-
.arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; inline-size: 56px; color: ${
|
|
2005
|
-
:host([on-ink]) .arrow { color: ${
|
|
2049
|
+
.arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; inline-size: 56px; color: ${Le.text}; }
|
|
2050
|
+
:host([on-ink]) .arrow { color: ${Ce}; }
|
|
2006
2051
|
.arrow svg { display: block; }
|
|
2007
|
-
.via { font-size: 0.75rem; line-height: 1.2; color: ${
|
|
2008
|
-
:host([on-ink]) .via { color: ${
|
|
2009
|
-
.box { flex: 1 1 auto; min-inline-size: 0; box-sizing: border-box; padding: ${
|
|
2010
|
-
:host([size='lg']) .box { padding: ${
|
|
2011
|
-
.box.soft { background: ${
|
|
2012
|
-
:host([on-ink]) .box.card, :host([on-ink]) .box.soft { background: ${
|
|
2013
|
-
.box.ink { background: ${
|
|
2014
|
-
.box.accent { background: ${
|
|
2015
|
-
.label { margin: 0 0 ${
|
|
2016
|
-
.text { margin: ${
|
|
2017
|
-
|
|
2018
|
-
.
|
|
2019
|
-
.
|
|
2020
|
-
.
|
|
2021
|
-
|
|
2052
|
+
.via { font-size: 0.75rem; line-height: 1.2; color: ${Le.textMuted}; }
|
|
2053
|
+
:host([on-ink]) .via { color: ${Ue}; }
|
|
2054
|
+
.box { flex: 1 1 auto; min-inline-size: 0; box-sizing: border-box; padding: ${Vt(4)} ${Vt(5)}; border: 1px solid ${Le.text}; background: ${Le.surfaceCard}; color: ${Le.text}; }
|
|
2055
|
+
:host([size='lg']) .box { padding: ${Vt(6)}; }
|
|
2056
|
+
.box.soft { background: ${Le.surfaceSubtle}; }
|
|
2057
|
+
:host([on-ink]) .box.card, :host([on-ink]) .box.soft { background: ${_t}; border-color: ${Ge}; color: ${Ce}; }
|
|
2058
|
+
.box.ink { background: ${we}; border-color: ${gt}; color: ${_e}; }
|
|
2059
|
+
.box.accent { background: ${$e}; border-color: ${$e}; color: ${Se}; }
|
|
2060
|
+
.label { margin: 0 0 ${Vt(2)}; ${J}; color: ${Le.textMuted}; }
|
|
2061
|
+
.text { margin: ${Vt(2)} 0 0; font-size: 0.875rem; line-height: 1.5; color: ${Le.textMuted}; }
|
|
2062
|
+
/* On the soft fill the muted words are drawn a step toward the ink, so they read at 4.5:1 for a brand whose soft fill is its own tint. */
|
|
2063
|
+
.soft :is(.label, .text) { color: color-mix(in srgb, ${Le.textMuted} 80%, ${Le.text}); }
|
|
2064
|
+
:host([on-ink]) :is(.card, .soft) :is(.label, .text) { color: ${Ue}; }
|
|
2065
|
+
.ink :is(.label, .text) { color: ${Wt}; }
|
|
2066
|
+
.accent :is(.label, .text) { color: ${Se}; }
|
|
2067
|
+
.heading { margin: 0; font-family: ${Le.fontHeading}; font-size: 1.125rem; font-weight: ${qr("medium")}; line-height: 1.25; letter-spacing: -0.01em; }
|
|
2068
|
+
:host([size='lg']) .heading { font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${qr("semibold")}; line-height: 1.1; letter-spacing: -0.03em; }
|
|
2022
2069
|
@container (max-width: 47.99rem) {
|
|
2023
2070
|
ol, li { flex-direction: column; }
|
|
2024
2071
|
.arrow { inline-size: auto; block-size: 48px; flex-direction: row; }
|
|
2025
2072
|
.arrow svg { transform: rotate(90deg); }
|
|
2026
2073
|
}
|
|
2027
2074
|
@media (forced-colors: active) { .box { border-color: CanvasText; } .accent { border-width: 3px; } }
|
|
2028
|
-
`]}render(){if(!this.steps?.length)return
|
|
2029
|
-
${this.steps.map((e,
|
|
2030
|
-
${
|
|
2075
|
+
`]}render(){if(!this.steps?.length)return bt``;let i=Ye(this.headingLevel);return bt`<ol part="list" role="list" aria-label=${this.label||Yt}>
|
|
2076
|
+
${this.steps.map((e,t)=>bt`<li part="step">
|
|
2077
|
+
${t>0?bt`<span class="arrow" part="arrow">
|
|
2031
2078
|
<svg viewBox="0 0 36 12" width="36" height="12" fill="none" stroke="currentColor" stroke-width="1.25" aria-hidden="true" focusable="false"><path d="M0 6h34M29 1l5 5-5 5" /></svg>
|
|
2032
|
-
${e.connector?
|
|
2033
|
-
</span>`:
|
|
2079
|
+
${e.connector?bt`<span class="via">${e.connector}</span>`:Yt}
|
|
2080
|
+
</span>`:Yt}
|
|
2034
2081
|
<div class="box ${e.tone??"card"}" part="box">
|
|
2035
|
-
${e.label?
|
|
2036
|
-
<div class="heading" role="heading" aria-level=${
|
|
2037
|
-
${e.text?
|
|
2082
|
+
${e.label?bt`<p class="label">${e.label}</p>`:Yt}
|
|
2083
|
+
<div class="heading" role="heading" aria-level=${i}>${e.heading}</div>
|
|
2084
|
+
${e.text?bt`<p class="text">${e.text}</p>`:Yt}
|
|
2038
2085
|
</div>
|
|
2039
2086
|
</li>`)}
|
|
2040
|
-
</ol>`}};customElements.define("impakt-flow",
|
|
2087
|
+
</ol>`}};customElements.define("impakt-flow",fa);export{Pi as ImpaktAffordabilityCalculator,ti as ImpaktAnnouncement,Ei as ImpaktBeforeAfter,Qi as ImpaktBranchList,Zi as ImpaktBranchTimeline,ba as ImpaktBrowserFrame,ua as ImpaktCallout,si as ImpaktCardGrid,xi as ImpaktCarousel,Ki as ImpaktCheckList,da as ImpaktColumnList,Rt as ImpaktContactBlock,Si as ImpaktCtaBanner,na as ImpaktCursor,Fi as ImpaktEstimator,la as ImpaktFacts,hi as ImpaktFaq,Kt as ImpaktFeatureList,fa as ImpaktFlow,yi as ImpaktGallery,oa as ImpaktHandNote,Qt as ImpaktHero,fi as ImpaktHighlight,ga as ImpaktHypothesisCard,di as ImpaktJourneyButton,Ii as ImpaktLocationCard,vi as ImpaktLogoCloud,wi as ImpaktMediaSplit,Li as ImpaktMortgageCalculator,Ti as ImpaktNewsletter,ca as ImpaktNumberedList,gi as ImpaktOffer,pa as ImpaktOfficeCard,Ni as ImpaktPlanComparison,bi as ImpaktPostCard,ma as ImpaktProcessLine,Zt as ImpaktQuote,qi as ImpaktRegulatoryNotice,Xi as ImpaktReleaseCard,Ji as ImpaktReleaseList,zi as ImpaktReviews,Yi as ImpaktScene,Vi as ImpaktScrubber,ii as ImpaktSearchBar,ra as ImpaktSectionHead,sa as ImpaktServiceCard,Ui as ImpaktSiteFooter,Di as ImpaktSiteHeader,ui as ImpaktSiteMenu,Ai as ImpaktSitePlan,aa as ImpaktStageTag,ji as ImpaktStampDutyCalculator,ei as ImpaktStat,mi as ImpaktStatRow,ki as ImpaktSteps,Bi as ImpaktStickyBar,It as ImpaktVideo,ha as ImpaktWeekStrip,_i as ImpaktWordmark,pi as ImpaktWorkList,Lt as JOURNEY_STAGES,tt as SDLT,Da as STAGE_WORDS,ur as embedOf,qt as estimate,or as gallerySpan,cr as monthlyPayment,Ea as phaseWeeks,gr as stampDuty};
|
|
2041
2088
|
//# sourceMappingURL=atomic-ui-blocks.js.map
|