@illinois-toolkit/ilw-hero 1.0.0-alpha1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,6 +15,7 @@ Attributes include:
15
15
  * focus: if the image has a focal point if it shrinks or not. Values are top, bottom, left, right. Default is center.
16
16
  * shadow: if the text should have a drop shadow on it.
17
17
  * collapse: if the image should disappear in mobile view (useful if the image is just a blank pattern or does not give relevant information)
18
+ * alwayson: if the text should always appear over the image in mobile view (useful if the image is just a blank pattern or does not give relevant information and there will always be sufficient color contrast between the text and image)
18
19
 
19
20
  ## Contact Team
20
21
 
@@ -5,7 +5,8 @@
5
5
  "type": "web component",
6
6
  "element-name": "ilw-hero",
7
7
  "description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
8
- "toolkit-version": "",
9
- "production-version": "",
10
- "development-version": "1.0.0-alpha1"
8
+ "purpose": "Draw a user's attention, set the page's tone.",
9
+ "toolkit-version": "1.0",
10
+ "production-version": "1.0",
11
+ "development-version": "1.0-beta"
11
12
  }
@@ -5,10 +5,11 @@
5
5
  "type": "web component",
6
6
  "element-name": "ilw-hero",
7
7
  "description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
8
- "version": "1.0.0-alpha1",
9
- "date": "5/22/2024",
10
- "css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha1/ilw-hero.css",
11
- "js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha1/ilw-hero.js",
8
+ "builder-version": "1.0-beta",
9
+ "version": "1.0.1-beta",
10
+ "date": "10/08/2024",
11
+ "css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.1-beta/ilw-hero.css",
12
+ "js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.1-beta/ilw-hero.js",
12
13
  "production": false,
13
14
  "notes": "",
14
15
  "parent-style": "",
@@ -97,6 +98,15 @@
97
98
  "",
98
99
  "true"
99
100
  ]
101
+ },
102
+ {
103
+ "name": "alwayson",
104
+ "description": "Whether or not to drop the text in mobile",
105
+ "depreciated": false,
106
+ "values": [
107
+ "",
108
+ "true"
109
+ ]
100
110
  }
101
111
  ],
102
112
  "classes-fixed": [],
@@ -0,0 +1,146 @@
1
+ {
2
+ "title": "Hero",
3
+ "tag": "ilw-hero",
4
+ "github": "https://github.com/web-illinois/ilw-hero/",
5
+ "type": "web component",
6
+ "element-name": "ilw-hero",
7
+ "description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
8
+ "builder-version": "1.0",
9
+ "version": "1.0.0",
10
+ "date": "10/22/2024",
11
+ "css": "https://cdn.toolkit.illinois.edu/ilw-hero/1.0.0/ilw-hero.css",
12
+ "js": "https://cdn.toolkit.illinois.edu/ilw-hero/1.0.0/ilw-hero.js",
13
+ "production": true,
14
+ "notes": "",
15
+ "parent-style": "",
16
+ "samples": [
17
+ {
18
+ "name": "default",
19
+ "description": "Default information with image",
20
+ "text": "<img src='https://picsum.photos/1920/1280' alt='' slot='background'><h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
21
+ },
22
+ {
23
+ "name": "noimage",
24
+ "description": "No image",
25
+ "text": "<h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
26
+ },
27
+ {
28
+ "name": "video",
29
+ "description": "Video background",
30
+ "text": "<video slot='background' autoplay='' loop='' muted='' poster='https://cdn-e.education.illinois.edu/video/first_image.png'><source src='https://cdn-e.education.illinois.edu/video/homepage8.mp4' type='video/mp4'>Your browser does not support the video tag.</video><h2>Innovating solutions every year</h2><ul class='ilw-buttons'><li><a href='#''>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#''>Link 3</a></li></ul>"
31
+ }
32
+ ],
33
+ "attributes-fixed": [],
34
+ "attributes-text": [],
35
+ "attributes": [
36
+ {
37
+ "name": "theme",
38
+ "description": "Color theme used",
39
+ "depreciated": false,
40
+ "values": [
41
+ "",
42
+ "blue",
43
+ "orange",
44
+ "white"
45
+ ]
46
+ },
47
+ {
48
+ "name": "align",
49
+ "description": "Text alignment, defaults to center",
50
+ "depreciated": false,
51
+ "values": [
52
+ "",
53
+ "top",
54
+ "bottom",
55
+ "left",
56
+ "right",
57
+ "top-left",
58
+ "top-right",
59
+ "bottom-left",
60
+ "bottom-right"
61
+ ]
62
+ },
63
+ {
64
+ "name": "focus",
65
+ "description": "Focus for the image, defaults to center",
66
+ "depreciated": false,
67
+ "values": [
68
+ "",
69
+ "top",
70
+ "bottom",
71
+ "left",
72
+ "right"
73
+ ]
74
+ },
75
+ {
76
+ "name": "width",
77
+ "description": "Whether or not this follows current borders or is full width",
78
+ "depreciated": false,
79
+ "values": [
80
+ "",
81
+ "full"
82
+ ]
83
+ },
84
+ {
85
+ "name": "shadow",
86
+ "description": "Whether or not to include a shadow",
87
+ "depreciated": false,
88
+ "values": [
89
+ "",
90
+ "true"
91
+ ]
92
+ },
93
+ {
94
+ "name": "collapse",
95
+ "description": "Whether or not to remove the image / background in mobile",
96
+ "depreciated": false,
97
+ "values": [
98
+ "",
99
+ "true"
100
+ ]
101
+ },
102
+ {
103
+ "name": "alwayson",
104
+ "description": "Whether or not to drop the text in mobile",
105
+ "depreciated": false,
106
+ "values": [
107
+ "",
108
+ "true"
109
+ ]
110
+ }
111
+ ],
112
+ "classes-fixed": [],
113
+ "classes": [],
114
+ "css-variables": [
115
+ {
116
+ "name": "--ilw-hero--height",
117
+ "depreciated": false,
118
+ "description": "Size of the hero image"
119
+ },
120
+ {
121
+ "name": "--ilw-hero--font",
122
+ "depreciated": false,
123
+ "description": "Font for heading"
124
+ },
125
+ {
126
+ "name": "--ilw-hero--background",
127
+ "depreciated": false,
128
+ "description": "Hex color for background"
129
+ },
130
+ {
131
+ "name": "--ilw-hero--text-width",
132
+ "depreciated": false,
133
+ "description": "Text width for heading"
134
+ },
135
+ {
136
+ "name": "--ilw-hero--shadow-color",
137
+ "depreciated": false,
138
+ "description": "Hex color for shadow in rgba format"
139
+ },
140
+ {
141
+ "name": "--ilw-hero--text-color",
142
+ "depreciated": false,
143
+ "description": "Hex color for heading"
144
+ }
145
+ ]
146
+ }
package/dist/ilw-hero.cjs CHANGED
@@ -2,21 +2,21 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D=Symbol(),I=new WeakMap;let Y=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==D)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=I.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&I.set(e,t))}return t}toString(){return this.cssText}};const ot=n=>new Y(typeof n=="string"?n:n+"",void 0,D),ht=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Y(e,n,D)},at=(n,t)=>{if(B)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=k.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},W=B?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ot(e)})(n):n;/**
5
+ */const T=globalThis,B=T.ShadowRoot&&(T.ShadyCSS===void 0||T.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D=Symbol(),I=new WeakMap;let Y=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==D)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=I.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&I.set(e,t))}return t}toString(){return this.cssText}};const ot=n=>new Y(typeof n=="string"?n:n+"",void 0,D),ht=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Y(e,n,D)},at=(n,t)=>{if(B)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=T.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},W=B?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ot(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:lt,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,_=globalThis,V=_.trustedTypes,gt=V?V.emptyScript:"",R=_.reactiveElementPolyfillSupport,x=(n,t)=>n,j={toAttribute(n,t){switch(t){case Boolean:n=n?gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},tt=(n,t)=>!lt(n,t),q={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&ct(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const l=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,i=[...pt(e),...ut(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(W(s))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:j).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:j;this._$Em=s,this[s]=l.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??tt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[x("elementProperties")]=new Map,y[x("finalized")]=new Map,R==null||R({ReactiveElement:y}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:lt,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,f=globalThis,V=f.trustedTypes,gt=V?V.emptyScript:"",R=f.reactiveElementPolyfillSupport,w=(n,t)=>n,j={toAttribute(n,t){switch(t){case Boolean:n=n?gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},tt=(n,t)=>!lt(n,t),q={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f.litPropertyMetadata??(f.litPropertyMetadata=new WeakMap);class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&ct(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const l=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const e=this.properties,i=[...pt(e),...ut(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(W(s))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:j).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:j;this._$Em=s,this[s]=l.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??tt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[w("elementProperties")]=new Map,A[w("finalized")]=new Map,R==null||R({ReactiveElement:A}),(f.reactiveElementVersions??(f.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const E=globalThis,N=E.trustedTypes,J=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,et="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+g,_t=`<${it}>`,A=document,C=()=>A.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",st=Array.isArray,ft=n=>st(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",M=`[
14
- \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,F=/>/g,f=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,G=/"/g,nt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),At=mt(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Q=new WeakMap,m=A.createTreeWalker(A,129);function rt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const yt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=S;for(let l=0;l<e;l++){const h=n[l];let c,p,a=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===S?p[1]==="!--"?r=K:p[1]!==void 0?r=F:p[2]!==void 0?(nt.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=f):p[3]!==void 0&&(r=f):r===f?p[0]===">"?(r=s??S,a=-1):p[1]===void 0?a=-2:(a=r.lastIndex-p[2].length,c=p[1],r=p[3]===void 0?f:p[3]==='"'?G:Z):r===G||r===Z?r=f:r===K||r===F?r=S:(r=f,s=void 0);const $=r===f&&n[l+1].startsWith("/>")?" ":"";o+=r===S?h+_t:a>=0?(i.push(c),h.slice(0,a)+et+h.slice(a)+g+$):h+g+(a===-2?l:$)}return[rt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[c,p]=yt(t,e);if(this.el=U.createElement(c,i),m.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(s=m.nextNode())!==null&&h.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const a of s.getAttributeNames())if(a.endsWith(et)){const u=p[r++],$=s.getAttribute(a).split(g),T=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:T[2],strings:$,ctor:T[1]==="."?bt:T[1]==="?"?St:T[1]==="@"?xt:O}),s.removeAttribute(a)}else a.startsWith(g)&&(h.push({type:6,index:o}),s.removeAttribute(a));if(nt.test(s.tagName)){const a=s.textContent.split(g),u=a.length-1;if(u>0){s.textContent=N?N.emptyScript:"";for(let $=0;$<u;$++)s.append(a[$],C()),m.nextNode(),h.push({type:2,index:++o});s.append(a[u],C())}}}else if(s.nodeType===8)if(s.data===it)h.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(g,a+1))!==-1;)h.push({type:7,index:o}),a+=g.length-1}o++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function b(n,t,e=n,i){var r,l;if(t===v)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=P(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=b(n,s._$AS(n,t.values),s,i)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??A).importNode(e,!0);m.currentNode=s;let o=m.nextNode(),r=0,l=0,h=i[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new H(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new Et(o,this,t)),this._$AV.push(c),h=i[++l]}r!==(h==null?void 0:h.index)&&(o=m.nextNode(),r++)}return m.currentNode=A,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),P(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ft(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(rt(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new vt(s,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=Q.get(t.strings);return e===void 0&&Q.set(t.strings,e=new U(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new H(this.S(C()),this.S(C()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class O{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=b(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const l=t;let h,c;for(t=o[0],h=0;h<o.length-1;h++)c=b(this,l[i+h],e,h),c===v&&(c=this._$AH[h]),r||(r=!P(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}r&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class St extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class xt extends O{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??d)===v)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}const z=E.litHtmlPolyfillSupport;z==null||z(U,H),(E.litHtmlVersions??(E.litHtmlVersions=[])).push("3.1.3");const wt=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new H(t.insertBefore(C(),o),o,void 0,e??{})}return s._$AI(n),s};/**
13
+ */const S=globalThis,N=S.trustedTypes,J=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,et="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+g,ft=`<${it}>`,y=document,C=()=>y.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",st=Array.isArray,_t=n=>st(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",M=`[
14
+ \f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,F=/>/g,_=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,G=/"/g,nt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),yt=mt(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Q=new WeakMap,m=y.createTreeWalker(y,129);function rt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const At=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=x;for(let l=0;l<e;l++){const h=n[l];let c,p,a=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===x?p[1]==="!--"?r=K:p[1]!==void 0?r=F:p[2]!==void 0?(nt.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=_):p[3]!==void 0&&(r=_):r===_?p[0]===">"?(r=s??x,a=-1):p[1]===void 0?a=-2:(a=r.lastIndex-p[2].length,c=p[1],r=p[3]===void 0?_:p[3]==='"'?G:Z):r===G||r===Z?r=_:r===K||r===F?r=x:(r=_,s=void 0);const $=r===_&&n[l+1].startsWith("/>")?" ":"";o+=r===x?h+ft:a>=0?(i.push(c),h.slice(0,a)+et+h.slice(a)+g+$):h+g+(a===-2?l:$)}return[rt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[c,p]=At(t,e);if(this.el=U.createElement(c,i),m.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(s=m.nextNode())!==null&&h.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const a of s.getAttributeNames())if(a.endsWith(et)){const u=p[r++],$=s.getAttribute(a).split(g),H=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:H[2],strings:$,ctor:H[1]==="."?bt:H[1]==="?"?xt:H[1]==="@"?wt:O}),s.removeAttribute(a)}else a.startsWith(g)&&(h.push({type:6,index:o}),s.removeAttribute(a));if(nt.test(s.tagName)){const a=s.textContent.split(g),u=a.length-1;if(u>0){s.textContent=N?N.emptyScript:"";for(let $=0;$<u;$++)s.append(a[$],C()),m.nextNode(),h.push({type:2,index:++o});s.append(a[u],C())}}}else if(s.nodeType===8)if(s.data===it)h.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(g,a+1))!==-1;)h.push({type:7,index:o}),a+=g.length-1}o++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function b(n,t,e=n,i){var r,l;if(t===v)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=P(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=b(n,s._$AS(n,t.values),s,i)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??y).importNode(e,!0);m.currentNode=s;let o=m.nextNode(),r=0,l=0,h=i[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new k(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new St(o,this,t)),this._$AV.push(c),h=i[++l]}r!==(h==null?void 0:h.index)&&(o=m.nextNode(),r++)}return m.currentNode=y,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class k{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),P(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_t(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(rt(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new vt(s,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=Q.get(t.strings);return e===void 0&&Q.set(t.strings,e=new U(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new k(this.S(C()),this.S(C()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class O{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=b(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const l=t;let h,c;for(t=o[0],h=0;h<o.length-1;h++)c=b(this,l[i+h],e,h),c===v&&(c=this._$AH[h]),r||(r=!P(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}r&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class xt extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class wt extends O{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??d)===v)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class St{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}const z=S.litHtmlPolyfillSupport;z==null||z(U,k),(S.litHtmlVersions??(S.litHtmlVersions=[])).push("3.1.3");const Et=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new k(t.insertBefore(C(),o),o,void 0,e??{})}return s._$AI(n),s};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */class w extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}}var X;w._$litElement$=!0,w.finalized=!0,(X=globalThis.litElementHydrateSupport)==null||X.call(globalThis,{LitElement:w});const L=globalThis.litElementPolyfillSupport;L==null||L({LitElement:w});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");const Ct=ht`
19
+ */class E extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Et(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}}var X;E._$litElement$=!0,E.finalized=!0,(X=globalThis.litElementHydrateSupport)==null||X.call(globalThis,{LitElement:E});const L=globalThis.litElementPolyfillSupport;L==null||L({LitElement:E});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");const Ct=ht`
20
20
 
21
21
  .hero {
22
22
  position: relative;
@@ -24,13 +24,14 @@
24
24
 
25
25
  .hero.fixed {
26
26
  left:50%;
27
- margin-left:-50vw;
28
- margin-right:-50vw;
29
- padding-left:0;
30
- padding-right:0;
31
- position:relative;
32
- right:50%;
33
- width:100vw;
27
+ margin-left: -50vw;
28
+ margin-right: -50vw;
29
+ padding-left: 0;
30
+ padding-right: 0;
31
+ right: 50%;
32
+ width: 100vw;
33
+ display: block;
34
+ container-type: inline-size;
34
35
  }
35
36
 
36
37
  .background {
@@ -40,6 +41,14 @@
40
41
  background-color: var(--ilw-hero--background);
41
42
  }
42
43
 
44
+ .always-over .background {
45
+ position: absolute;
46
+ width: 100%;
47
+ top: 0;
48
+ left: 0;
49
+ z-index: 1;
50
+ }
51
+
43
52
  .background.collapse {
44
53
  display: none;
45
54
  }
@@ -58,6 +67,18 @@ img {
58
67
  padding: 0 20px;
59
68
  }
60
69
 
70
+ .always-over .content-outer {
71
+ background: transparent;
72
+ height: var(--ilw-hero--height, 223px);
73
+ display: flex;
74
+ }
75
+
76
+ .always-over .content-outer .content-inner {
77
+ display: flex;
78
+ flex-direction: column;
79
+ max-width: 1200px;
80
+ }
81
+
61
82
  .content-inner {
62
83
  padding: 18px 0 36px 0;
63
84
  }
@@ -154,8 +175,8 @@ img {
154
175
  width: var(--ilw-hero--text-width);
155
176
  }
156
177
  }
157
- `;class Pt extends w{static get properties(){return{theme:{type:String,attribute:!0},focus:{type:String,attribute:!0},shadow:{type:Boolean,attribute:!0},collapse:{type:Boolean,attribute:!0},align:{type:String,attribute:!0},width:{type:String,attribute:!0}}}static get styles(){return Ct}constructor(){super(),this.align="",this.focus="",this.shadow=!1,this.collapse=!1,this.theme="",this.width=""}get outerWidth(){return this.width=="full"||this.width=="auto"?"fixed":""}render(){return At`
158
- <div class="hero ${this.outerWidth}">
178
+ `;class Pt extends E{static get properties(){return{theme:{type:String,attribute:!0},focus:{type:String,attribute:!0},shadow:{type:Boolean,attribute:!0},collapse:{type:Boolean,attribute:!0},alwayson:{type:Boolean,attribute:!0},align:{type:String,attribute:!0},width:{type:String,attribute:!0}}}static get styles(){return Ct}constructor(){super(),this.align="",this.focus="",this.shadow=!1,this.collapse=!1,this.alwayson=!1,this.theme="",this.width=""}get outerWidth(){return this.width=="full"||this.width=="auto"?"fixed":""}render(){return yt`
179
+ <div class="hero ${this.outerWidth} ${this.alwayson?"always-over":""}">
159
180
  <div role="presentation" class="background ${this.collapse?"collapse":""}">
160
181
  <slot name="background"></slot>
161
182
  </div>
package/dist/ilw-hero.css CHANGED
@@ -1 +1 @@
1
- :root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--il-blue);--ilw-hero--text-color: white;--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--il-orange);--ilw-hero--button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: var(--il-blue)}ilw-hero[theme=white]{--ilw-hero--background: white;--ilw-hero--button-background-color: white;--ilw-hero--button-foreground-color: var(--il-blue);--ilw-hero--button-border-color: var(--il-blue);--ilw-hero--focused-button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: white;--ilw-hero--focused-button-border-color: var(--il-blue);--ilw-hero--text-color: #252525;--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}ilw-hero[width=fixed]{container-type:inline-size}@media (min-width: 576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media (min-width: 767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media (min-width: 992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}
1
+ :root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--il-blue);--ilw-hero--text-color: white;--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block;container-type:inline-size}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--il-orange);--ilw-hero--button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: var(--il-blue)}ilw-hero[theme=white]{--ilw-hero--background: white;--ilw-hero--button-background-color: white;--ilw-hero--button-foreground-color: var(--il-blue);--ilw-hero--button-border-color: var(--il-blue);--ilw-hero--focused-button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: white;--ilw-hero--focused-button-border-color: var(--il-blue);--ilw-hero--text-color: #252525;--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}@media (min-width: 576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media (min-width: 767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media (min-width: 992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}
package/dist/ilw-hero.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const k = globalThis, B = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), I = /* @__PURE__ */ new WeakMap();
6
+ const T = globalThis, B = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), I = /* @__PURE__ */ new WeakMap();
7
7
  let Y = class {
8
8
  constructor(t, e, i) {
9
9
  if (this._$cssResult$ = !0, i !== D)
@@ -37,7 +37,7 @@ const ot = (n) => new Y(typeof n == "string" ? n : n + "", void 0, D), ht = (n,
37
37
  n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
- const i = document.createElement("style"), s = k.litNonce;
40
+ const i = document.createElement("style"), s = T.litNonce;
41
41
  s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
42
42
  }
43
43
  }, W = B ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
@@ -51,7 +51,7 @@ const ot = (n) => new Y(typeof n == "string" ? n : n + "", void 0, D), ht = (n,
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: lt, defineProperty: ct, getOwnPropertyDescriptor: dt, getOwnPropertyNames: pt, getOwnPropertySymbols: ut, getPrototypeOf: $t } = Object, _ = globalThis, V = _.trustedTypes, gt = V ? V.emptyScript : "", R = _.reactiveElementPolyfillSupport, x = (n, t) => n, j = { toAttribute(n, t) {
54
+ const { is: lt, defineProperty: ct, getOwnPropertyDescriptor: dt, getOwnPropertyNames: pt, getOwnPropertySymbols: ut, getPrototypeOf: $t } = Object, f = globalThis, V = f.trustedTypes, gt = V ? V.emptyScript : "", R = f.reactiveElementPolyfillSupport, w = (n, t) => n, j = { toAttribute(n, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
57
  n = n ? gt : null;
@@ -80,8 +80,8 @@ const { is: lt, defineProperty: ct, getOwnPropertyDescriptor: dt, getOwnProperty
80
80
  }
81
81
  return e;
82
82
  } }, tt = (n, t) => !lt(n, t), q = { attribute: !0, type: String, converter: j, reflect: !1, hasChanged: tt };
83
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
- class y extends HTMLElement {
83
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
+ class A extends HTMLElement {
85
85
  static addInitializer(t) {
86
86
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
87
  }
@@ -111,15 +111,15 @@ class y extends HTMLElement {
111
111
  return this.elementProperties.get(t) ?? q;
112
112
  }
113
113
  static _$Ei() {
114
- if (this.hasOwnProperty(x("elementProperties")))
114
+ if (this.hasOwnProperty(w("elementProperties")))
115
115
  return;
116
116
  const t = $t(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(x("finalized")))
120
+ if (this.hasOwnProperty(w("finalized")))
121
121
  return;
122
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(x("properties"))) {
122
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
123
123
  const e = this.properties, i = [...pt(e), ...ut(e)];
124
124
  for (const s of i)
125
125
  this.createProperty(s, e[s]);
@@ -292,30 +292,30 @@ class y extends HTMLElement {
292
292
  firstUpdated(t) {
293
293
  }
294
294
  }
295
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[x("elementProperties")] = /* @__PURE__ */ new Map(), y[x("finalized")] = /* @__PURE__ */ new Map(), R == null || R({ ReactiveElement: y }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
295
+ A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[w("elementProperties")] = /* @__PURE__ */ new Map(), A[w("finalized")] = /* @__PURE__ */ new Map(), R == null || R({ ReactiveElement: A }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
296
296
  /**
297
297
  * @license
298
298
  * Copyright 2017 Google LLC
299
299
  * SPDX-License-Identifier: BSD-3-Clause
300
300
  */
301
- const E = globalThis, N = E.trustedTypes, J = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, et = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + g, _t = `<${it}>`, A = document, C = () => A.createComment(""), P = (n) => n === null || typeof n != "object" && typeof n != "function", st = Array.isArray, ft = (n) => st(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", M = `[
302
- \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, F = />/g, f = RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, mt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), At = mt(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), m = A.createTreeWalker(A, 129);
301
+ const S = globalThis, N = S.trustedTypes, J = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, et = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + g, ft = `<${it}>`, y = document, C = () => y.createComment(""), P = (n) => n === null || typeof n != "object" && typeof n != "function", st = Array.isArray, _t = (n) => st(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", M = `[
302
+ \f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, F = />/g, _ = RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, mt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), yt = mt(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), m = y.createTreeWalker(y, 129);
304
304
  function rt(n, t) {
305
305
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
307
  return J !== void 0 ? J.createHTML(t) : t;
308
308
  }
309
- const yt = (n, t) => {
309
+ const At = (n, t) => {
310
310
  const e = n.length - 1, i = [];
311
- let s, o = t === 2 ? "<svg>" : "", r = S;
311
+ let s, o = t === 2 ? "<svg>" : "", r = x;
312
312
  for (let l = 0; l < e; l++) {
313
313
  const h = n[l];
314
314
  let c, p, a = -1, u = 0;
315
315
  for (; u < h.length && (r.lastIndex = u, p = r.exec(h), p !== null); )
316
- u = r.lastIndex, r === S ? p[1] === "!--" ? r = K : p[1] !== void 0 ? r = F : p[2] !== void 0 ? (nt.test(p[2]) && (s = RegExp("</" + p[2], "g")), r = f) : p[3] !== void 0 && (r = f) : r === f ? p[0] === ">" ? (r = s ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = r.lastIndex - p[2].length, c = p[1], r = p[3] === void 0 ? f : p[3] === '"' ? G : Z) : r === G || r === Z ? r = f : r === K || r === F ? r = S : (r = f, s = void 0);
317
- const $ = r === f && n[l + 1].startsWith("/>") ? " " : "";
318
- o += r === S ? h + _t : a >= 0 ? (i.push(c), h.slice(0, a) + et + h.slice(a) + g + $) : h + g + (a === -2 ? l : $);
316
+ u = r.lastIndex, r === x ? p[1] === "!--" ? r = K : p[1] !== void 0 ? r = F : p[2] !== void 0 ? (nt.test(p[2]) && (s = RegExp("</" + p[2], "g")), r = _) : p[3] !== void 0 && (r = _) : r === _ ? p[0] === ">" ? (r = s ?? x, a = -1) : p[1] === void 0 ? a = -2 : (a = r.lastIndex - p[2].length, c = p[1], r = p[3] === void 0 ? _ : p[3] === '"' ? G : Z) : r === G || r === Z ? r = _ : r === K || r === F ? r = x : (r = _, s = void 0);
317
+ const $ = r === _ && n[l + 1].startsWith("/>") ? " " : "";
318
+ o += r === x ? h + ft : a >= 0 ? (i.push(c), h.slice(0, a) + et + h.slice(a) + g + $) : h + g + (a === -2 ? l : $);
319
319
  }
320
320
  return [rt(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
321
321
  };
@@ -324,7 +324,7 @@ class U {
324
324
  let s;
325
325
  this.parts = [];
326
326
  let o = 0, r = 0;
327
- const l = t.length - 1, h = this.parts, [c, p] = yt(t, e);
327
+ const l = t.length - 1, h = this.parts, [c, p] = At(t, e);
328
328
  if (this.el = U.createElement(c, i), m.currentNode = this.el.content, e === 2) {
329
329
  const a = this.el.content.firstChild;
330
330
  a.replaceWith(...a.childNodes);
@@ -334,8 +334,8 @@ class U {
334
334
  if (s.hasAttributes())
335
335
  for (const a of s.getAttributeNames())
336
336
  if (a.endsWith(et)) {
337
- const u = p[r++], $ = s.getAttribute(a).split(g), T = /([.?@])?(.*)/.exec(u);
338
- h.push({ type: 1, index: o, name: T[2], strings: $, ctor: T[1] === "." ? bt : T[1] === "?" ? St : T[1] === "@" ? xt : O }), s.removeAttribute(a);
337
+ const u = p[r++], $ = s.getAttribute(a).split(g), H = /([.?@])?(.*)/.exec(u);
338
+ h.push({ type: 1, index: o, name: H[2], strings: $, ctor: H[1] === "." ? bt : H[1] === "?" ? xt : H[1] === "@" ? wt : O }), s.removeAttribute(a);
339
339
  } else
340
340
  a.startsWith(g) && (h.push({ type: 6, index: o }), s.removeAttribute(a));
341
341
  if (nt.test(s.tagName)) {
@@ -359,7 +359,7 @@ class U {
359
359
  }
360
360
  }
361
361
  static createElement(t, e) {
362
- const i = A.createElement("template");
362
+ const i = y.createElement("template");
363
363
  return i.innerHTML = t, i;
364
364
  }
365
365
  }
@@ -382,17 +382,17 @@ class vt {
382
382
  return this._$AM._$AU;
383
383
  }
384
384
  u(t) {
385
- const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
385
+ const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? y).importNode(e, !0);
386
386
  m.currentNode = s;
387
387
  let o = m.nextNode(), r = 0, l = 0, h = i[0];
388
388
  for (; h !== void 0; ) {
389
389
  if (r === h.index) {
390
390
  let c;
391
- h.type === 2 ? c = new H(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new Et(o, this, t)), this._$AV.push(c), h = i[++l];
391
+ h.type === 2 ? c = new k(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = i[++l];
392
392
  }
393
393
  r !== (h == null ? void 0 : h.index) && (o = m.nextNode(), r++);
394
394
  }
395
- return m.currentNode = A, s;
395
+ return m.currentNode = y, s;
396
396
  }
397
397
  p(t) {
398
398
  let e = 0;
@@ -400,7 +400,7 @@ class vt {
400
400
  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class H {
403
+ class k {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -420,7 +420,7 @@ class H {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = b(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ft(t) ? this.k(t) : this._(t);
423
+ t = b(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _t(t) ? this.k(t) : this._(t);
424
424
  }
425
425
  S(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -429,7 +429,7 @@ class H {
429
429
  this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
430
430
  }
431
431
  _(t) {
432
- this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
432
+ this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(y.createTextNode(t)), this._$AH = t;
433
433
  }
434
434
  $(t) {
435
435
  var o;
@@ -450,7 +450,7 @@ class H {
450
450
  const e = this._$AH;
451
451
  let i, s = 0;
452
452
  for (const o of t)
453
- s === e.length ? e.push(i = new H(this.S(C()), this.S(C()), this, this.options)) : i = e[s], i._$AI(o), s++;
453
+ s === e.length ? e.push(i = new k(this.S(C()), this.S(C()), this, this.options)) : i = e[s], i._$AI(o), s++;
454
454
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
@@ -500,7 +500,7 @@ class bt extends O {
500
500
  this.element[this.name] = t === d ? void 0 : t;
501
501
  }
502
502
  }
503
- class St extends O {
503
+ class xt extends O {
504
504
  constructor() {
505
505
  super(...arguments), this.type = 4;
506
506
  }
@@ -508,7 +508,7 @@ class St extends O {
508
508
  this.element.toggleAttribute(this.name, !!t && t !== d);
509
509
  }
510
510
  }
511
- class xt extends O {
511
+ class wt extends O {
512
512
  constructor(t, e, i, s, o) {
513
513
  super(t, e, i, s, o), this.type = 5;
514
514
  }
@@ -523,7 +523,7 @@ class xt extends O {
523
523
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
524
524
  }
525
525
  }
526
- class Et {
526
+ class St {
527
527
  constructor(t, e, i) {
528
528
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
529
529
  }
@@ -534,14 +534,14 @@ class Et {
534
534
  b(this, t);
535
535
  }
536
536
  }
537
- const z = E.litHtmlPolyfillSupport;
538
- z == null || z(U, H), (E.litHtmlVersions ?? (E.litHtmlVersions = [])).push("3.1.3");
539
- const wt = (n, t, e) => {
537
+ const z = S.litHtmlPolyfillSupport;
538
+ z == null || z(U, k), (S.litHtmlVersions ?? (S.litHtmlVersions = [])).push("3.1.3");
539
+ const Et = (n, t, e) => {
540
540
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
541
541
  let s = i._$litPart$;
542
542
  if (s === void 0) {
543
543
  const o = (e == null ? void 0 : e.renderBefore) ?? null;
544
- i._$litPart$ = s = new H(t.insertBefore(C(), o), o, void 0, e ?? {});
544
+ i._$litPart$ = s = new k(t.insertBefore(C(), o), o, void 0, e ?? {});
545
545
  }
546
546
  return s._$AI(n), s;
547
547
  };
@@ -550,7 +550,7 @@ const wt = (n, t, e) => {
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- class w extends y {
553
+ class E extends A {
554
554
  constructor() {
555
555
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
556
556
  }
@@ -561,7 +561,7 @@ class w extends y {
561
561
  }
562
562
  update(t) {
563
563
  const e = this.render();
564
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
564
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Et(e, this.renderRoot, this.renderOptions);
565
565
  }
566
566
  connectedCallback() {
567
567
  var t;
@@ -576,9 +576,9 @@ class w extends y {
576
576
  }
577
577
  }
578
578
  var X;
579
- w._$litElement$ = !0, w.finalized = !0, (X = globalThis.litElementHydrateSupport) == null || X.call(globalThis, { LitElement: w });
579
+ E._$litElement$ = !0, E.finalized = !0, (X = globalThis.litElementHydrateSupport) == null || X.call(globalThis, { LitElement: E });
580
580
  const L = globalThis.litElementPolyfillSupport;
581
- L == null || L({ LitElement: w });
581
+ L == null || L({ LitElement: E });
582
582
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
583
583
  const Ct = ht`
584
584
 
@@ -588,13 +588,14 @@ const Ct = ht`
588
588
 
589
589
  .hero.fixed {
590
590
  left:50%;
591
- margin-left:-50vw;
592
- margin-right:-50vw;
593
- padding-left:0;
594
- padding-right:0;
595
- position:relative;
596
- right:50%;
597
- width:100vw;
591
+ margin-left: -50vw;
592
+ margin-right: -50vw;
593
+ padding-left: 0;
594
+ padding-right: 0;
595
+ right: 50%;
596
+ width: 100vw;
597
+ display: block;
598
+ container-type: inline-size;
598
599
  }
599
600
 
600
601
  .background {
@@ -604,6 +605,14 @@ const Ct = ht`
604
605
  background-color: var(--ilw-hero--background);
605
606
  }
606
607
 
608
+ .always-over .background {
609
+ position: absolute;
610
+ width: 100%;
611
+ top: 0;
612
+ left: 0;
613
+ z-index: 1;
614
+ }
615
+
607
616
  .background.collapse {
608
617
  display: none;
609
618
  }
@@ -622,6 +631,18 @@ img {
622
631
  padding: 0 20px;
623
632
  }
624
633
 
634
+ .always-over .content-outer {
635
+ background: transparent;
636
+ height: var(--ilw-hero--height, 223px);
637
+ display: flex;
638
+ }
639
+
640
+ .always-over .content-outer .content-inner {
641
+ display: flex;
642
+ flex-direction: column;
643
+ max-width: 1200px;
644
+ }
645
+
625
646
  .content-inner {
626
647
  padding: 18px 0 36px 0;
627
648
  }
@@ -719,13 +740,14 @@ img {
719
740
  }
720
741
  }
721
742
  `;
722
- class Pt extends w {
743
+ class Pt extends E {
723
744
  static get properties() {
724
745
  return {
725
746
  theme: { type: String, attribute: !0 },
726
747
  focus: { type: String, attribute: !0 },
727
748
  shadow: { type: Boolean, attribute: !0 },
728
749
  collapse: { type: Boolean, attribute: !0 },
750
+ alwayson: { type: Boolean, attribute: !0 },
729
751
  align: { type: String, attribute: !0 },
730
752
  width: { type: String, attribute: !0 }
731
753
  };
@@ -734,14 +756,14 @@ class Pt extends w {
734
756
  return Ct;
735
757
  }
736
758
  constructor() {
737
- super(), this.align = "", this.focus = "", this.shadow = !1, this.collapse = !1, this.theme = "", this.width = "";
759
+ super(), this.align = "", this.focus = "", this.shadow = !1, this.collapse = !1, this.alwayson = !1, this.theme = "", this.width = "";
738
760
  }
739
761
  get outerWidth() {
740
762
  return this.width == "full" || this.width == "auto" ? "fixed" : "";
741
763
  }
742
764
  render() {
743
- return At`
744
- <div class="hero ${this.outerWidth}">
765
+ return yt`
766
+ <div class="hero ${this.outerWidth} ${this.alwayson ? "always-over" : ""}">
745
767
  <div role="presentation" class="background ${this.collapse ? "collapse" : ""}">
746
768
  <slot name="background"></slot>
747
769
  </div>
@@ -6,17 +6,17 @@
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:lt,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,$=globalThis,q=$.trustedTypes,gt=q?q.emptyScript:"",z=$.reactiveElementPolyfillSupport,x=(n,t)=>n,L={toAttribute(n,t){switch(t){case Boolean:n=n?gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},J=(n,t)=>!lt(n,t),K={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:J};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class v extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=K){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&ct(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const l=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??K}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,i=[...pt(e),...ut(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(V(s))}else t!==void 0&&e.push(V(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:L).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:L;this._$Em=s,this[s]=l.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??J)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[x("elementProperties")]=new Map,v[x("finalized")]=new Map,z==null||z({ReactiveElement:v}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:lt,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,$=globalThis,q=$.trustedTypes,gt=q?q.emptyScript:"",z=$.reactiveElementPolyfillSupport,w=(n,t)=>n,L={toAttribute(n,t){switch(t){case Boolean:n=n?gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},J=(n,t)=>!lt(n,t),K={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:J};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class v extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=K){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&ct(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const l=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??K}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const e=this.properties,i=[...pt(e),...ut(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(V(s))}else t!==void 0&&e.push(V(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:L).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:L;this._$Em=s,this[s]=l.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??J)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[w("elementProperties")]=new Map,v[w("finalized")]=new Map,z==null||z({ReactiveElement:v}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const E=globalThis,k=E.trustedTypes,F=k?k.createPolicy("lit-html",{createHTML:n=>n}):void 0,Z="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+g,ft=`<${G}>`,m=document,w=()=>m.createComment(""),C=n=>n===null||typeof n!="object"&&typeof n!="function",Q=Array.isArray,_t=n=>Q(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",j=`[
14
- \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,Y=/>/g,A=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),At=mt(1),b=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),st=new WeakMap,y=m.createTreeWalker(m,129);function nt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return F!==void 0?F.createHTML(t):t}const yt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=P;for(let l=0;l<e;l++){const h=n[l];let d,p,a=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===P?p[1]==="!--"?r=X:p[1]!==void 0?r=Y:p[2]!==void 0?(it.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=A):p[3]!==void 0&&(r=A):r===A?p[0]===">"?(r=s??P,a=-1):p[1]===void 0?a=-2:(a=r.lastIndex-p[2].length,d=p[1],r=p[3]===void 0?A:p[3]==='"'?et:tt):r===et||r===tt?r=A:r===X||r===Y?r=P:(r=A,s=void 0);const f=r===A&&n[l+1].startsWith("/>")?" ":"";o+=r===P?h+ft:a>=0?(i.push(d),h.slice(0,a)+Z+h.slice(a)+g+f):h+g+(a===-2?l:f)}return[nt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[d,p]=yt(t,e);if(this.el=U.createElement(d,i),y.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(s=y.nextNode())!==null&&h.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const a of s.getAttributeNames())if(a.endsWith(Z)){const u=p[r++],f=s.getAttribute(a).split(g),O=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:O[2],strings:f,ctor:O[1]==="."?bt:O[1]==="?"?St:O[1]==="@"?xt:N}),s.removeAttribute(a)}else a.startsWith(g)&&(h.push({type:6,index:o}),s.removeAttribute(a));if(it.test(s.tagName)){const a=s.textContent.split(g),u=a.length-1;if(u>0){s.textContent=k?k.emptyScript:"";for(let f=0;f<u;f++)s.append(a[f],w()),y.nextNode(),h.push({type:2,index:++o});s.append(a[u],w())}}}else if(s.nodeType===8)if(s.data===G)h.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(g,a+1))!==-1;)h.push({type:7,index:o}),a+=g.length-1}o++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function S(n,t,e=n,i){var r,l;if(t===b)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=C(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=S(n,s._$AS(n,t.values),s,i)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??m).importNode(e,!0);y.currentNode=s;let o=y.nextNode(),r=0,l=0,h=i[0];for(;h!==void 0;){if(r===h.index){let d;h.type===2?d=new H(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new Et(o,this,t)),this._$AV.push(d),h=i[++l]}r!==(h==null?void 0:h.index)&&(o=y.nextNode(),r++)}return y.currentNode=m,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),C(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==b&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_t(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==c&&C(this._$AH)?this._$AA.nextSibling.data=t:this.T(m.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(nt(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new vt(s,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=st.get(t.strings);return e===void 0&&st.set(t.strings,e=new U(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new H(this.S(w()),this.S(w()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=S(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==b,r&&(this._$AH=t);else{const l=t;let h,d;for(t=o[0],h=0;h<o.length-1;h++)d=S(this,l[i+h],e,h),d===b&&(d=this._$AH[h]),r||(r=!C(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+o[h+1]),this._$AH[h]=d}r&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class St extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class xt extends N{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??c)===b)return;const i=this._$AH,s=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==c&&(i===c||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const B=E.litHtmlPolyfillSupport;B==null||B(U,H),(E.litHtmlVersions??(E.litHtmlVersions=[])).push("3.1.3");const wt=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new H(t.insertBefore(w(),o),o,void 0,e??{})}return s._$AI(n),s};/**
13
+ */const S=globalThis,T=S.trustedTypes,F=T?T.createPolicy("lit-html",{createHTML:n=>n}):void 0,Z="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+g,ft=`<${G}>`,m=document,E=()=>m.createComment(""),C=n=>n===null||typeof n!="object"&&typeof n!="function",Q=Array.isArray,_t=n=>Q(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",j=`[
14
+ \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,Y=/>/g,y=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),yt=mt(1),b=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),st=new WeakMap,A=m.createTreeWalker(m,129);function nt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return F!==void 0?F.createHTML(t):t}const At=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=P;for(let l=0;l<e;l++){const h=n[l];let d,p,a=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===P?p[1]==="!--"?r=X:p[1]!==void 0?r=Y:p[2]!==void 0?(it.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=y):p[3]!==void 0&&(r=y):r===y?p[0]===">"?(r=s??P,a=-1):p[1]===void 0?a=-2:(a=r.lastIndex-p[2].length,d=p[1],r=p[3]===void 0?y:p[3]==='"'?et:tt):r===et||r===tt?r=y:r===X||r===Y?r=P:(r=y,s=void 0);const f=r===y&&n[l+1].startsWith("/>")?" ":"";o+=r===P?h+ft:a>=0?(i.push(d),h.slice(0,a)+Z+h.slice(a)+g+f):h+g+(a===-2?l:f)}return[nt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[d,p]=At(t,e);if(this.el=U.createElement(d,i),A.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(s=A.nextNode())!==null&&h.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const a of s.getAttributeNames())if(a.endsWith(Z)){const u=p[r++],f=s.getAttribute(a).split(g),O=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:O[2],strings:f,ctor:O[1]==="."?bt:O[1]==="?"?xt:O[1]==="@"?wt:N}),s.removeAttribute(a)}else a.startsWith(g)&&(h.push({type:6,index:o}),s.removeAttribute(a));if(it.test(s.tagName)){const a=s.textContent.split(g),u=a.length-1;if(u>0){s.textContent=T?T.emptyScript:"";for(let f=0;f<u;f++)s.append(a[f],E()),A.nextNode(),h.push({type:2,index:++o});s.append(a[u],E())}}}else if(s.nodeType===8)if(s.data===G)h.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(g,a+1))!==-1;)h.push({type:7,index:o}),a+=g.length-1}o++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function x(n,t,e=n,i){var r,l;if(t===b)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=C(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=x(n,s._$AS(n,t.values),s,i)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??m).importNode(e,!0);A.currentNode=s;let o=A.nextNode(),r=0,l=0,h=i[0];for(;h!==void 0;){if(r===h.index){let d;h.type===2?d=new k(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new St(o,this,t)),this._$AV.push(d),h=i[++l]}r!==(h==null?void 0:h.index)&&(o=A.nextNode(),r++)}return A.currentNode=m,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class k{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=x(this,t,e),C(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==b&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_t(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==c&&C(this._$AH)?this._$AA.nextSibling.data=t:this.T(m.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(nt(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new vt(s,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=st.get(t.strings);return e===void 0&&st.set(t.strings,e=new U(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new k(this.S(E()),this.S(E()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=x(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==b,r&&(this._$AH=t);else{const l=t;let h,d;for(t=o[0],h=0;h<o.length-1;h++)d=x(this,l[i+h],e,h),d===b&&(d=this._$AH[h]),r||(r=!C(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+o[h+1]),this._$AH[h]=d}r&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class xt extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class wt extends N{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=x(this,t,e,0)??c)===b)return;const i=this._$AH,s=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==c&&(i===c||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class St{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){x(this,t)}}const B=S.litHtmlPolyfillSupport;B==null||B(U,k),(S.litHtmlVersions??(S.litHtmlVersions=[])).push("3.1.3");const Et=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new k(t.insertBefore(E(),o),o,void 0,e??{})}return s._$AI(n),s};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */class T extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return b}}T._$litElement$=!0,T.finalized=!0,(rt=globalThis.litElementHydrateSupport)==null||rt.call(globalThis,{LitElement:T});const D=globalThis.litElementPolyfillSupport;D==null||D({LitElement:T}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");const Ct=ht`
19
+ */class H extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Et(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return b}}H._$litElement$=!0,H.finalized=!0,(rt=globalThis.litElementHydrateSupport)==null||rt.call(globalThis,{LitElement:H});const D=globalThis.litElementPolyfillSupport;D==null||D({LitElement:H}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");const Ct=ht`
20
20
 
21
21
  .hero {
22
22
  position: relative;
@@ -24,13 +24,14 @@
24
24
 
25
25
  .hero.fixed {
26
26
  left:50%;
27
- margin-left:-50vw;
28
- margin-right:-50vw;
29
- padding-left:0;
30
- padding-right:0;
31
- position:relative;
32
- right:50%;
33
- width:100vw;
27
+ margin-left: -50vw;
28
+ margin-right: -50vw;
29
+ padding-left: 0;
30
+ padding-right: 0;
31
+ right: 50%;
32
+ width: 100vw;
33
+ display: block;
34
+ container-type: inline-size;
34
35
  }
35
36
 
36
37
  .background {
@@ -40,6 +41,14 @@
40
41
  background-color: var(--ilw-hero--background);
41
42
  }
42
43
 
44
+ .always-over .background {
45
+ position: absolute;
46
+ width: 100%;
47
+ top: 0;
48
+ left: 0;
49
+ z-index: 1;
50
+ }
51
+
43
52
  .background.collapse {
44
53
  display: none;
45
54
  }
@@ -58,6 +67,18 @@ img {
58
67
  padding: 0 20px;
59
68
  }
60
69
 
70
+ .always-over .content-outer {
71
+ background: transparent;
72
+ height: var(--ilw-hero--height, 223px);
73
+ display: flex;
74
+ }
75
+
76
+ .always-over .content-outer .content-inner {
77
+ display: flex;
78
+ flex-direction: column;
79
+ max-width: 1200px;
80
+ }
81
+
61
82
  .content-inner {
62
83
  padding: 18px 0 36px 0;
63
84
  }
@@ -154,8 +175,8 @@ img {
154
175
  width: var(--ilw-hero--text-width);
155
176
  }
156
177
  }
157
- `;class Pt extends T{static get properties(){return{theme:{type:String,attribute:!0},focus:{type:String,attribute:!0},shadow:{type:Boolean,attribute:!0},collapse:{type:Boolean,attribute:!0},align:{type:String,attribute:!0},width:{type:String,attribute:!0}}}static get styles(){return Ct}constructor(){super(),this.align="",this.focus="",this.shadow=!1,this.collapse=!1,this.theme="",this.width=""}get outerWidth(){return this.width=="full"||this.width=="auto"?"fixed":""}render(){return At`
158
- <div class="hero ${this.outerWidth}">
178
+ `;class Pt extends H{static get properties(){return{theme:{type:String,attribute:!0},focus:{type:String,attribute:!0},shadow:{type:Boolean,attribute:!0},collapse:{type:Boolean,attribute:!0},alwayson:{type:Boolean,attribute:!0},align:{type:String,attribute:!0},width:{type:String,attribute:!0}}}static get styles(){return Ct}constructor(){super(),this.align="",this.focus="",this.shadow=!1,this.collapse=!1,this.alwayson=!1,this.theme="",this.width=""}get outerWidth(){return this.width=="full"||this.width=="auto"?"fixed":""}render(){return yt`
179
+ <div class="hero ${this.outerWidth} ${this.alwayson?"always-over":""}">
159
180
  <div role="presentation" class="background ${this.collapse?"collapse":""}">
160
181
  <slot name="background"></slot>
161
182
  </div>
package/package.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "name": "@illinois-toolkit/ilw-hero",
3
3
  "description": "Illinois Toolkit: The Hero Image component adds a large picture at the top of the page.",
4
4
  "private": false,
5
- "version": "1.0.0-alpha1",
5
+ "license": "MIT",
6
+ "version": "1.0.0",
6
7
  "type": "module",
7
8
  "files": [
8
9
  "src/**",
package/src/ilw-hero.css CHANGED
@@ -9,6 +9,7 @@
9
9
 
10
10
  ilw-hero {
11
11
  display: block;
12
+ container-type: inline-size;
12
13
  }
13
14
 
14
15
  ilw-hero img, ilw-hero *[slot="background"] {
@@ -58,9 +59,6 @@ ilw-hero[focus="left"] img {
58
59
  ilw-hero[focus="right"] img {
59
60
  object-position: right;
60
61
  }
61
- ilw-hero[width="fixed"] {
62
- container-type: inline-size;
63
- }
64
62
 
65
63
  @media (min-width: 576px) {
66
64
  :root {
package/src/ilw-hero.js CHANGED
@@ -10,6 +10,7 @@ class Hero extends LitElement {
10
10
  focus: { type: String, attribute: true },
11
11
  shadow: { type: Boolean, attribute: true },
12
12
  collapse: { type: Boolean, attribute: true },
13
+ alwayson: { type: Boolean, attribute: true },
13
14
  align: { type: String, attribute: true },
14
15
  width: { type: String, attribute: true }
15
16
  };
@@ -25,6 +26,7 @@ class Hero extends LitElement {
25
26
  this.focus = '';
26
27
  this.shadow = false;
27
28
  this.collapse = false;
29
+ this.alwayson = false;
28
30
  this.theme = '';
29
31
  this.width = '';
30
32
  }
@@ -35,7 +37,7 @@ class Hero extends LitElement {
35
37
 
36
38
  render() {
37
39
  return html`
38
- <div class="hero ${this.outerWidth}">
40
+ <div class="hero ${this.outerWidth} ${this.alwayson ? 'always-over' : ''}">
39
41
  <div role="presentation" class="background ${this.collapse ? 'collapse' : ''}">
40
42
  <slot name="background"></slot>
41
43
  </div>
@@ -8,13 +8,14 @@ export default css`
8
8
 
9
9
  .hero.fixed {
10
10
  left:50%;
11
- margin-left:-50vw;
12
- margin-right:-50vw;
13
- padding-left:0;
14
- padding-right:0;
15
- position:relative;
16
- right:50%;
17
- width:100vw;
11
+ margin-left: -50vw;
12
+ margin-right: -50vw;
13
+ padding-left: 0;
14
+ padding-right: 0;
15
+ right: 50%;
16
+ width: 100vw;
17
+ display: block;
18
+ container-type: inline-size;
18
19
  }
19
20
 
20
21
  .background {
@@ -24,6 +25,14 @@ export default css`
24
25
  background-color: var(--ilw-hero--background);
25
26
  }
26
27
 
28
+ .always-over .background {
29
+ position: absolute;
30
+ width: 100%;
31
+ top: 0;
32
+ left: 0;
33
+ z-index: 1;
34
+ }
35
+
27
36
  .background.collapse {
28
37
  display: none;
29
38
  }
@@ -42,6 +51,18 @@ img {
42
51
  padding: 0 20px;
43
52
  }
44
53
 
54
+ .always-over .content-outer {
55
+ background: transparent;
56
+ height: var(--ilw-hero--height, 223px);
57
+ display: flex;
58
+ }
59
+
60
+ .always-over .content-outer .content-inner {
61
+ display: flex;
62
+ flex-direction: column;
63
+ max-width: 1200px;
64
+ }
65
+
45
66
  .content-inner {
46
67
  padding: 18px 0 36px 0;
47
68
  }