weg-shared-layout 0.0.46 → 0.0.48

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.
@@ -99,7 +99,7 @@ function normalizeMenu(input) {
99
99
 
100
100
  const sharedCss$1 = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb;--weg-purple-200:#cdcff8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}`;
101
101
 
102
- const wegFooterCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.footer{background:#030712;color:#ffffff;font-family:var(--weg-font-family);font-weight:300}.footer__inner{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding-block:2rem;padding-inline:0}@media (width >= 960px){.footer__inner{gap:2.25rem;padding-block:3.5rem}}.social{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}@media (width >= 960px){.social{gap:1.75rem}}.social__link{width:3rem;height:3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999rem;background:transparent;color:inherit;text-decoration:none;transition:opacity 150ms ease;outline:none}.social__link:hover{opacity:0.9}.social__link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.social__icon{display:inline-flex;width:3rem;height:3rem}.footer-link{color:#ffffff;font-family:'Open Sans', var(--weg-font-family);font-size:1rem;font-style:normal;font-weight:300;line-height:1.5rem;display:block;width:100%;text-align:center;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;outline:none}@media (width >= 960px){.footer-link{display:inline;width:auto;text-align:left}}.footer-link:hover{opacity:0.9}.footer-link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.legal{width:100%;max-width:860px;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.legal{font-size:1.125rem;line-height:1.75rem}}.legal__p{margin:0}.standard{width:100%;display:flex;flex-direction:column;align-items:center;gap:2.25rem;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.standard{font-size:1.125rem;line-height:1.75rem}}.columns{width:100%;display:grid;grid-template-columns:1fr;gap:0}.columns__col{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.columns__col:not(:first-child){gap:2rem}.columns__divider{display:block;flex-shrink:0;width:100%;height:1px;margin-top:2rem;background:rgba(255, 255, 255, 0.35)}.columns__links{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;width:100%;min-width:0;text-align:center}@media (width >= 640px){.columns{grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.5rem 3rem}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider{display:none}.columns__col:nth-child(n+4) .columns__divider{display:block;width:100%;height:1px;margin:0 0 1.5rem}.footer-link{display:inline;width:auto;text-align:left}.columns__links{align-items:flex-start;text-align:left}}@media (width >= 960px){.columns{display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0}.columns__col{flex:1 1 0;flex-direction:row;align-items:stretch}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider,.columns__col:nth-child(n+4) .columns__divider{display:block;width:1px;height:auto;margin:0 1.5rem}.columns__links{flex:1;align-items:flex-start;text-align:left}}`;
102
+ const wegFooterCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.footer{background:#030712;color:#ffffff;font-family:var(--weg-font-family);font-weight:300}.footer__inner{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding-block:2rem;padding-inline:0}@media (width >= 960px){.footer__inner{gap:2.25rem;padding-block:3.5rem}}.social{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;padding:0;margin:0;list-style:none}@media (width >= 960px){.social{gap:1.75rem}}.social__item{padding:0;margin:0}.social__link{width:3rem;height:3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999rem;background:transparent;color:inherit;text-decoration:none;transition:opacity 150ms ease;outline:none}.social__link:hover{opacity:0.9}.social__link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.social__icon{display:inline-flex;width:3rem;height:3rem}.footer-link{color:#ffffff;font-family:'Open Sans', var(--weg-font-family);font-size:1rem;font-style:normal;font-weight:300;line-height:1.5rem;display:block;width:100%;text-align:center;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;outline:none}@media (width >= 960px){.footer-link{display:inline;width:auto;text-align:left}}.footer-link:hover{opacity:0.9}.footer-link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.legal{width:100%;max-width:860px;text-align:center;font-size:1rem;line-height:1.5rem;display:flex;flex-direction:column;gap:1rem}@media (width >= 960px){.legal{font-size:1.125rem;line-height:1.75rem}}.legal__p{margin:0}.columns{width:100%;display:grid;grid-template-columns:1fr;gap:0.75rem;font-size:1rem;line-height:1.5rem;padding:0;margin:0}.columns__col{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.columns__col:not(:first-child){gap:2rem;border-top:1px solid rgba(255, 255, 255, 0.35);padding-top:1.5rem;margin-top:1.5rem}.columns__divider{display:block;flex-shrink:0;width:100%;height:1px;margin-top:2rem;background:rgba(255, 255, 255, 0.35)}.columns__links{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;width:100%;min-width:0;text-align:center;list-style:none;padding:0}@media (width >= 640px){.columns{grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.5rem 3rem;font-size:1.125rem;line-height:1.75rem}.columns__col:not(:first-child){gap:0;border-left:1px solid rgba(255, 255, 255, 0.35);padding-left:1.5rem;margin-top:0;padding-top:0;border-top:none}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider{display:none}.columns__col:nth-child(n+4) .columns__divider{display:block;width:100%;height:1px;margin:0 0 1.5rem}.footer-link{display:inline;width:auto;text-align:left}.columns__links{align-items:flex-start;text-align:left}}@media (width >= 960px){.columns{display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0}.columns__col{flex:1 1 0;flex-direction:row;align-items:stretch}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider,.columns__col:nth-child(n+4) .columns__divider{display:block;width:1px;height:auto;margin:0 1.5rem}.columns__links{flex:1;align-items:flex-start;text-align:left}}`;
103
103
 
104
104
  const EMPTY_FOOTER = {
105
105
  social: [],
@@ -218,22 +218,22 @@ const WegFooter = class {
218
218
  const { credits, copyright } = this.resolved;
219
219
  if (!credits && !copyright)
220
220
  return null;
221
- return (index.h("div", { class: "legal" }, credits ? index.h("p", { class: "legal__p" }, credits) : null, credits && copyright ? index.h("p", { class: "legal__p" }, String.fromCharCode(8203)) : null, copyright ? index.h("p", { class: "legal__p" }, copyright) : null));
221
+ return (index.h("div", { class: "legal" }, credits ? index.h("p", { class: "legal__p" }, credits) : null, copyright ? index.h("p", { class: "legal__p" }, copyright) : null));
222
222
  }
223
223
  renderSocialLinks() {
224
224
  const links = this.resolved.social;
225
225
  if (links.length === 0)
226
226
  return null;
227
- return (index.h("div", { class: "social" }, links.map((l) => (index.h("a", { class: "social__link", href: l.href, "aria-label": l.platform, target: isExternalHref(l.href) ? '_blank' : undefined, rel: isExternalHref(l.href) ? 'noreferrer noopener' : undefined }, index.h("span", { class: "social__icon", "aria-hidden": "true" }, index.h(SocialIcon, { platform: l.platform })))))));
227
+ return (index.h("menu", { class: "social" }, links.map((l) => (index.h("li", { class: "social__item", key: l.platform }, index.h("a", { class: "social__link", href: l.href, "aria-label": l.platform, target: isExternalHref(l.href) ? '_blank' : undefined, rel: isExternalHref(l.href) ? 'noreferrer noopener' : undefined }, index.h("span", { class: "social__icon", "aria-hidden": "true" }, index.h(SocialIcon, { platform: l.platform }))))))));
228
228
  }
229
229
  renderMenu() {
230
230
  const menu = this.resolved.menu;
231
231
  if (menu.length === 0)
232
232
  return null;
233
- return (index.h("div", { class: "columns" }, menu.map((links, columnIndex) => (index.h("div", { class: "columns__col", key: columnIndex }, columnIndex > 0 ? index.h("div", { class: "columns__divider", "aria-hidden": "true" }) : null, index.h("nav", { class: "columns__links", "aria-label": `Footer links column ${columnIndex + 1}` }, links.map((l, linkIndex) => (index.h("a", { class: "footer-link", href: l.href, key: linkIndex, target: linkTarget(l), rel: linkRel(l) }, l.label)))))))));
233
+ return (index.h("ul", { class: "columns" }, menu.map((links, columnIndex) => (index.h("li", { class: "columns__col", key: columnIndex }, columnIndex > 0 ? index.h("div", { class: "columns__divider", "aria-hidden": "true" }) : null, index.h("menu", { class: "columns__links", "aria-label": `Footer links column ${columnIndex + 1}` }, links.map((l, linkIndex) => (index.h("li", { key: linkIndex }, index.h("a", { class: "footer-link", href: l.href, target: linkTarget(l), rel: linkRel(l) }, l.label))))))))));
234
234
  }
235
235
  render() {
236
- return (index.h("footer", { key: '44ce6d694eb145005f006b5a02ec68fe2da8ca44', class: "footer" }, index.h("div", { key: '43dbb00e195a561a44cd9ae0e843c448dce546bb', class: "container footer__inner" }, this.renderSocialLinks(), index.h("div", { key: '1ede37520397d4fa63671dccc7e3f83f26ac0955', class: "standard" }, this.renderMenu(), this.renderLegalText()))));
236
+ return (index.h("footer", { key: '28120514570c47ed9b090e1f7389596b5923f284', class: "footer" }, index.h("div", { key: '585c0f8cd2dc3cc92d86a97ef4cca457aebe891a', class: "container footer__inner" }, this.renderSocialLinks(), this.renderMenu(), this.renderLegalText())));
237
237
  }
238
238
  static get watchers() { return {
239
239
  "layout": [{
@@ -1122,12 +1122,12 @@ const WegHeader = class {
1122
1122
  const logoSrc = this.getLogoSrc();
1123
1123
  const closeMenu = () => this.closeMenu();
1124
1124
  const mobileMenuActive = this.isMobileMenuActive();
1125
- return (index.h(index.h.Fragment, null, index.h("a", { key: 'ec5abbde3a83f5be85d6e2cbee4596931cbf5d30', class: "skip-to-content", href: "#", title: SKIP_TO_CONTENT_LABEL, onClick: (event) => this.handleSkipToContent(event) }, SKIP_TO_CONTENT_LABEL), index.h("header", { key: 'd0ec2483f7355475e46ef8e51fdb76ae4365dda0', class: {
1125
+ return (index.h(index.h.Fragment, null, index.h("a", { key: '83ddde8bbeec63257dcd7bfc7df3098cae5158c1', class: "skip-to-content", href: "#", title: SKIP_TO_CONTENT_LABEL, onClick: (event) => this.handleSkipToContent(event) }, SKIP_TO_CONTENT_LABEL), index.h("header", { key: 'a1e7c77d2d97d047911ade3ce16ccb0d583e89d6', class: {
1126
1126
  header: true,
1127
1127
  'header--fixed': !mobileMenuActive,
1128
1128
  'header--hidden': this.headerHidden && !mobileMenuActive,
1129
1129
  'header--menu-open': mobileMenuActive,
1130
- } }, index.h("div", { key: '23603594adf37675d5fc98325f170b098dd48c5c', class: "header-inner" }, index.h("div", { key: 'e80e9f99b7a564df4903eedcc5d86603f62c7142', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", "data-weg-sr-live": true }), index.h("button", { key: '23369b00fb6c3a08ef83d1e8652eee1e4b163d44', type: "button", class: "menu-toggle icon-button", "aria-label": mobileMenuActive ? CLOSE_MAIN_NAV_LABEL : OPEN_MAIN_NAV_LABEL, "aria-expanded": mobileMenuActive ? 'true' : 'false', "aria-controls": "weg-header-main-nav", onClick: () => this.toggleMenu() }, mobileMenuActive ? index.h(CloseIcon, null) : index.h(HamburgerIcon, null)), index.h(Logo, { key: '7f3be942891f5eb6c99538c333e028f6377478e5', href: logoHref, src: logoSrc }), index.h("div", { key: '80902e3ee01799d405c32957a28e41f937fd70a4', class: "header-actions" }, this.renderCompactAuth(mobileMenuActive ? closeMenu : undefined)), index.h("div", { key: '7d1c59f30bdad5b24aabd7b366112b4fbc5b2b9f', class: "main-nav-panel", id: "weg-header-main-nav", role: mobileMenuActive ? 'dialog' : undefined, "aria-modal": mobileMenuActive ? 'true' : undefined, "aria-label": mobileMenuActive ? MAIN_NAV_LABEL : undefined }, this.renderNav(mobileMenuActive ? closeMenu : undefined))))));
1130
+ } }, index.h("div", { key: '53087f8711595b8b8ab1429fa3b3c5b68bc8a503', class: "header-inner" }, index.h("div", { key: 'd58808175bb1d8046c9583e2ed877883c0dc28ae', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", "data-weg-sr-live": true }), index.h("button", { key: '09071c0e9f51fdd85b3ed2f718cd3fdf85d0f2e6', type: "button", class: "menu-toggle icon-button", "aria-label": mobileMenuActive ? CLOSE_MAIN_NAV_LABEL : OPEN_MAIN_NAV_LABEL, "aria-expanded": mobileMenuActive ? 'true' : 'false', "aria-controls": "weg-header-main-nav", onClick: () => this.toggleMenu() }, mobileMenuActive ? index.h(CloseIcon, null) : index.h(HamburgerIcon, null)), index.h(Logo, { key: '603ad96b813d62b8832468b7e977f0df8ded3b3c', href: logoHref, src: logoSrc }), index.h("div", { key: '95936418f9a71d926ceecd51ae9e96fe77109bbc', class: "header-actions" }, this.renderCompactAuth(mobileMenuActive ? closeMenu : undefined)), index.h("div", { key: 'c621f4ab488b099a60d518760f43d93ab77e2d80', class: "main-nav-panel", id: "weg-header-main-nav", role: mobileMenuActive ? 'dialog' : undefined, "aria-modal": mobileMenuActive ? 'true' : undefined, "aria-label": mobileMenuActive ? MAIN_NAV_LABEL : undefined }, this.renderNav(mobileMenuActive ? closeMenu : undefined))))));
1131
1131
  }
1132
1132
  static get watchers() { return {
1133
1133
  "layout": [{
@@ -45,6 +45,9 @@
45
45
  justify-content: center;
46
46
  gap: 1rem;
47
47
  flex-wrap: wrap;
48
+ padding: 0;
49
+ margin: 0;
50
+ list-style: none;
48
51
  }
49
52
 
50
53
  @media (width >= 960px) {
@@ -53,6 +56,11 @@
53
56
  }
54
57
  }
55
58
 
59
+ .social__item {
60
+ padding: 0;
61
+ margin: 0;
62
+ }
63
+
56
64
  .social__link {
57
65
  width: 3rem;
58
66
  height: 3rem;
@@ -124,6 +132,9 @@
124
132
  text-align: center;
125
133
  font-size: 1rem;
126
134
  line-height: 1.5rem;
135
+ display: flex;
136
+ flex-direction: column;
137
+ gap: 1rem;
127
138
  }
128
139
 
129
140
  @media (width >= 960px) {
@@ -137,29 +148,15 @@
137
148
  margin: 0;
138
149
  }
139
150
 
140
- .standard {
141
- width: 100%;
142
- display: flex;
143
- flex-direction: column;
144
- align-items: center;
145
- gap: 2.25rem;
146
- text-align: center;
147
- font-size: 1rem;
148
- line-height: 1.5rem;
149
- }
150
-
151
- @media (width >= 960px) {
152
- .standard {
153
- font-size: 1.125rem;
154
- line-height: 1.75rem;
155
- }
156
- }
157
-
158
151
  .columns {
159
152
  width: 100%;
160
153
  display: grid;
161
154
  grid-template-columns: 1fr;
162
- gap: 0;
155
+ gap: 0.75rem;
156
+ font-size: 1rem;
157
+ line-height: 1.5rem;
158
+ padding: 0;
159
+ margin: 0;
163
160
  }
164
161
 
165
162
  .columns__col {
@@ -172,6 +169,9 @@
172
169
 
173
170
  .columns__col:not(:first-child) {
174
171
  gap: 2rem;
172
+ border-top: 1px solid rgba(255, 255, 255, 0.35);
173
+ padding-top: 1.5rem;
174
+ margin-top: 1.5rem;
175
175
  }
176
176
 
177
177
  .columns__divider {
@@ -191,6 +191,8 @@
191
191
  width: 100%;
192
192
  min-width: 0;
193
193
  text-align: center;
194
+ list-style: none;
195
+ padding: 0;
194
196
  }
195
197
 
196
198
  /* sm: 6 footer columns → 3 × 2 grid */
@@ -198,10 +200,17 @@
198
200
  .columns {
199
201
  grid-template-columns: repeat(3, minmax(0, 1fr));
200
202
  gap: 1.5rem 3rem;
203
+ font-size: 1.125rem;
204
+ line-height: 1.75rem;
201
205
  }
202
206
 
203
207
  .columns__col:not(:first-child) {
204
208
  gap: 0;
209
+ border-left: 1px solid rgba(255, 255, 255, 0.35);
210
+ padding-left: 1.5rem;
211
+ margin-top: 0;
212
+ padding-top: 0;
213
+ border-top: none;
205
214
  }
206
215
 
207
216
  .columns__col:nth-child(-n + 3):not(:first-child) .columns__divider {
@@ -114,22 +114,22 @@ export class WegFooter {
114
114
  const { credits, copyright } = this.resolved;
115
115
  if (!credits && !copyright)
116
116
  return null;
117
- return (h("div", { class: "legal" }, credits ? h("p", { class: "legal__p" }, credits) : null, credits && copyright ? h("p", { class: "legal__p" }, String.fromCharCode(8203)) : null, copyright ? h("p", { class: "legal__p" }, copyright) : null));
117
+ return (h("div", { class: "legal" }, credits ? h("p", { class: "legal__p" }, credits) : null, copyright ? h("p", { class: "legal__p" }, copyright) : null));
118
118
  }
119
119
  renderSocialLinks() {
120
120
  const links = this.resolved.social;
121
121
  if (links.length === 0)
122
122
  return null;
123
- return (h("div", { class: "social" }, links.map((l) => (h("a", { class: "social__link", href: l.href, "aria-label": l.platform, target: isExternalHref(l.href) ? '_blank' : undefined, rel: isExternalHref(l.href) ? 'noreferrer noopener' : undefined }, h("span", { class: "social__icon", "aria-hidden": "true" }, h(SocialIcon, { platform: l.platform })))))));
123
+ return (h("menu", { class: "social" }, links.map((l) => (h("li", { class: "social__item", key: l.platform }, h("a", { class: "social__link", href: l.href, "aria-label": l.platform, target: isExternalHref(l.href) ? '_blank' : undefined, rel: isExternalHref(l.href) ? 'noreferrer noopener' : undefined }, h("span", { class: "social__icon", "aria-hidden": "true" }, h(SocialIcon, { platform: l.platform }))))))));
124
124
  }
125
125
  renderMenu() {
126
126
  const menu = this.resolved.menu;
127
127
  if (menu.length === 0)
128
128
  return null;
129
- return (h("div", { class: "columns" }, menu.map((links, columnIndex) => (h("div", { class: "columns__col", key: columnIndex }, columnIndex > 0 ? h("div", { class: "columns__divider", "aria-hidden": "true" }) : null, h("nav", { class: "columns__links", "aria-label": `Footer links column ${columnIndex + 1}` }, links.map((l, linkIndex) => (h("a", { class: "footer-link", href: l.href, key: linkIndex, target: linkTarget(l), rel: linkRel(l) }, l.label)))))))));
129
+ return (h("ul", { class: "columns" }, menu.map((links, columnIndex) => (h("li", { class: "columns__col", key: columnIndex }, columnIndex > 0 ? h("div", { class: "columns__divider", "aria-hidden": "true" }) : null, h("menu", { class: "columns__links", "aria-label": `Footer links column ${columnIndex + 1}` }, links.map((l, linkIndex) => (h("li", { key: linkIndex }, h("a", { class: "footer-link", href: l.href, target: linkTarget(l), rel: linkRel(l) }, l.label))))))))));
130
130
  }
131
131
  render() {
132
- return (h("footer", { key: '44ce6d694eb145005f006b5a02ec68fe2da8ca44', class: "footer" }, h("div", { key: '43dbb00e195a561a44cd9ae0e843c448dce546bb', class: "container footer__inner" }, this.renderSocialLinks(), h("div", { key: '1ede37520397d4fa63671dccc7e3f83f26ac0955', class: "standard" }, this.renderMenu(), this.renderLegalText()))));
132
+ return (h("footer", { key: '28120514570c47ed9b090e1f7389596b5923f284', class: "footer" }, h("div", { key: '585c0f8cd2dc3cc92d86a97ef4cca457aebe891a', class: "container footer__inner" }, this.renderSocialLinks(), this.renderMenu(), this.renderLegalText())));
133
133
  }
134
134
  static get is() { return "weg-footer"; }
135
135
  static get encapsulation() { return "shadow"; }
@@ -742,12 +742,12 @@ export class WegHeader {
742
742
  const logoSrc = this.getLogoSrc();
743
743
  const closeMenu = () => this.closeMenu();
744
744
  const mobileMenuActive = this.isMobileMenuActive();
745
- return (h(h.Fragment, null, h("a", { key: 'ec5abbde3a83f5be85d6e2cbee4596931cbf5d30', class: "skip-to-content", href: "#", title: SKIP_TO_CONTENT_LABEL, onClick: (event) => this.handleSkipToContent(event) }, SKIP_TO_CONTENT_LABEL), h("header", { key: 'd0ec2483f7355475e46ef8e51fdb76ae4365dda0', class: {
745
+ return (h(h.Fragment, null, h("a", { key: '83ddde8bbeec63257dcd7bfc7df3098cae5158c1', class: "skip-to-content", href: "#", title: SKIP_TO_CONTENT_LABEL, onClick: (event) => this.handleSkipToContent(event) }, SKIP_TO_CONTENT_LABEL), h("header", { key: 'a1e7c77d2d97d047911ade3ce16ccb0d583e89d6', class: {
746
746
  header: true,
747
747
  'header--fixed': !mobileMenuActive,
748
748
  'header--hidden': this.headerHidden && !mobileMenuActive,
749
749
  'header--menu-open': mobileMenuActive,
750
- } }, h("div", { key: '23603594adf37675d5fc98325f170b098dd48c5c', class: "header-inner" }, h("div", { key: 'e80e9f99b7a564df4903eedcc5d86603f62c7142', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", "data-weg-sr-live": true }), h("button", { key: '23369b00fb6c3a08ef83d1e8652eee1e4b163d44', type: "button", class: "menu-toggle icon-button", "aria-label": mobileMenuActive ? CLOSE_MAIN_NAV_LABEL : OPEN_MAIN_NAV_LABEL, "aria-expanded": mobileMenuActive ? 'true' : 'false', "aria-controls": "weg-header-main-nav", onClick: () => this.toggleMenu() }, mobileMenuActive ? h(CloseIcon, null) : h(HamburgerIcon, null)), h(Logo, { key: '7f3be942891f5eb6c99538c333e028f6377478e5', href: logoHref, src: logoSrc }), h("div", { key: '80902e3ee01799d405c32957a28e41f937fd70a4', class: "header-actions" }, this.renderCompactAuth(mobileMenuActive ? closeMenu : undefined)), h("div", { key: '7d1c59f30bdad5b24aabd7b366112b4fbc5b2b9f', class: "main-nav-panel", id: "weg-header-main-nav", role: mobileMenuActive ? 'dialog' : undefined, "aria-modal": mobileMenuActive ? 'true' : undefined, "aria-label": mobileMenuActive ? MAIN_NAV_LABEL : undefined }, this.renderNav(mobileMenuActive ? closeMenu : undefined))))));
750
+ } }, h("div", { key: '53087f8711595b8b8ab1429fa3b3c5b68bc8a503', class: "header-inner" }, h("div", { key: 'd58808175bb1d8046c9583e2ed877883c0dc28ae', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", "data-weg-sr-live": true }), h("button", { key: '09071c0e9f51fdd85b3ed2f718cd3fdf85d0f2e6', type: "button", class: "menu-toggle icon-button", "aria-label": mobileMenuActive ? CLOSE_MAIN_NAV_LABEL : OPEN_MAIN_NAV_LABEL, "aria-expanded": mobileMenuActive ? 'true' : 'false', "aria-controls": "weg-header-main-nav", onClick: () => this.toggleMenu() }, mobileMenuActive ? h(CloseIcon, null) : h(HamburgerIcon, null)), h(Logo, { key: '603ad96b813d62b8832468b7e977f0df8ded3b3c', href: logoHref, src: logoSrc }), h("div", { key: '95936418f9a71d926ceecd51ae9e96fe77109bbc', class: "header-actions" }, this.renderCompactAuth(mobileMenuActive ? closeMenu : undefined)), h("div", { key: 'c621f4ab488b099a60d518760f43d93ab77e2d80', class: "main-nav-panel", id: "weg-header-main-nav", role: mobileMenuActive ? 'dialog' : undefined, "aria-modal": mobileMenuActive ? 'true' : undefined, "aria-label": mobileMenuActive ? MAIN_NAV_LABEL : undefined }, this.renderNav(mobileMenuActive ? closeMenu : undefined))))));
751
751
  }
752
752
  static get is() { return "weg-header"; }
753
753
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import bootstrapDummy from "../assets/weg21-bootstrap.json";
2
+ import menusDummy from "../assets/weg21-menus.json";
3
+ export const DEFAULT_WEG21_API_BASE = 'https://warwickemploymentgroup.com/api/v1/weg21';
4
+ export const WEG21_BOOTSTRAP_DUMMY = bootstrapDummy;
5
+ export const WEG21_MENUS_DUMMY = menusDummy;
6
+ export function menusToLayoutData(bootstrap, menus, options = {}) {
7
+ const headerMenu = options.headerMenu === 'int' ? menus.header.int : menus.header.ext;
8
+ const { credit, copyright, social_links } = bootstrap.footer;
9
+ return {
10
+ header: { menu: headerMenu },
11
+ footer: {
12
+ menu: menus.footer,
13
+ social: social_links,
14
+ credits: credit.trim() || undefined,
15
+ copyright: copyright.trim() || undefined,
16
+ },
17
+ };
18
+ }
19
+ /** Offline layout from package WEG21 dummy fixtures (`weg21-bootstrap.json` + `weg21-menus.json`). */
20
+ export function dummyWeg21LayoutData(options = {}) {
21
+ return menusToLayoutData(WEG21_BOOTSTRAP_DUMMY, WEG21_MENUS_DUMMY, options);
22
+ }
23
+ export async function fetchWeg21Layout(options = {}) {
24
+ const apiBase = (options.apiBase ?? DEFAULT_WEG21_API_BASE).replace(/\/$/, '');
25
+ const fetchFn = options.fetch ?? globalThis.fetch;
26
+ const headers = { accept: 'application/json' };
27
+ if (options.apiKey)
28
+ headers['wcms-api-key'] = options.apiKey;
29
+ const [bootstrapRes, menusRes] = await Promise.all([
30
+ fetchFn(apiBase, { headers }),
31
+ fetchFn(`${apiBase}/menus`, { headers }),
32
+ ]);
33
+ if (!bootstrapRes.ok || !menusRes.ok) {
34
+ throw new Error(`WEG21 API error: bootstrap=${bootstrapRes.status} menus=${menusRes.status}`);
35
+ }
36
+ const bootstrap = (await bootstrapRes.json());
37
+ const menus = (await menusRes.json());
38
+ return menusToLayoutData(bootstrap, menus, options);
39
+ }
@@ -1 +1 @@
1
- import{t as e,p as i,H as t,h as n}from"./p-CtYuWNO6.js";import{p as o,n as r,i as a}from"./p-C9rPQ-RZ.js";const l={social:[],menu:[],credits:"",copyright:""};function s(e){return/^https?:\/\//.test(e)}function c(e){return"LinkedIn"===e||"Instagram"===e||"TikTok"===e||"YouTube"===e}function d(e){if(!Array.isArray(e))return[];const i=[];for(const t of e){if(!t||"object"!=typeof t)continue;const e=t.platform,n=t.href;c(e)&&a(n)&&i.push({platform:e,href:n.trim()})}return i}function m(e){return"_blank"===e.target||!!e.href&&s(e.href)}function p(e){return e.target?e.target:m(e)?"_blank":void 0}function f(e){return m(e)?"noreferrer noopener":void 0}function h({platform:e}){const i={viewBox:"0 0 48 48",width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"};switch(e){case"LinkedIn":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM12.9082 33.4736H17.5889V19.4111H12.9082V33.4736ZM29.0791 19.0811C26.5942 19.0811 25.4815 20.4458 24.8604 21.4033V19.4111H20.1797C20.2412 20.7279 20.1799 33.4203 20.1797 33.4736H24.8604V25.6201C24.8604 25.1998 24.8909 24.7804 25.0146 24.4795C25.3529 23.6399 26.1231 22.7705 27.416 22.7705C29.1103 22.7705 29.7881 24.0605 29.7881 25.9502V33.4736H34.4678V25.4102C34.4677 21.0909 32.1589 19.0811 29.0791 19.0811ZM15.2793 12.6318C13.6783 12.6319 12.6319 13.6818 12.6318 15.0605C12.6318 16.4108 13.6474 17.4912 15.2188 17.4912H15.249C16.8807 17.491 17.8965 16.4107 17.8965 15.0605C17.866 13.6818 16.8804 12.6318 15.2793 12.6318Z",fill:"white"}));case"Instagram":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM23.999 11.2002C20.5245 11.2002 20.0877 11.2152 18.7227 11.2773C17.3602 11.3398 16.43 11.5556 15.6162 11.8721C14.7744 12.199 14.06 12.636 13.3486 13.3477C12.6366 14.0591 12.1991 14.7736 11.8711 15.6152C11.5538 16.4293 11.3377 17.3597 11.2764 18.7217C11.2153 20.087 11.2002 20.5238 11.2002 24C11.2002 27.476 11.2155 27.9113 11.2773 29.2764C11.34 30.639 11.5558 31.5699 11.8721 32.3838C12.1993 33.2255 12.636 33.94 13.3477 34.6514C14.0589 35.3634 14.7739 35.801 15.6152 36.1279C16.4295 36.4444 17.3596 36.6602 18.7217 36.7227C20.087 36.7848 20.5233 36.7998 23.999 36.7998C27.4756 36.7998 27.911 36.7848 29.2764 36.7227C30.639 36.6602 31.5704 36.4445 32.3848 36.1279C33.2261 35.801 33.9394 35.3631 34.6504 34.6514C35.3624 33.9399 35.7999 33.2254 36.1279 32.3838C36.4426 31.5697 36.6586 30.6393 36.7227 29.2773C36.784 27.912 36.7998 27.4763 36.7998 24C36.7998 20.5242 36.784 20.0876 36.7227 18.7227C36.6587 17.36 36.4426 16.4291 36.1279 15.6152C35.7999 14.7734 35.3623 14.0591 34.6504 13.3477C33.9385 12.6358 33.2264 12.1987 32.3838 11.8721C31.5678 11.5555 30.6371 11.3397 29.2744 11.2773C27.9093 11.2152 27.4745 11.2002 23.999 11.2002Z",fill:"white"}),n("path",{d:"M22.8525 13.5068C23.1933 13.5063 23.5739 13.5068 24.001 13.5068C27.4186 13.5068 27.8242 13.5197 29.1738 13.5811C30.4214 13.6381 31.0986 13.8463 31.5498 14.0215C32.1471 14.2535 32.5737 14.5305 33.0215 14.9785C33.4695 15.4265 33.746 15.8538 33.9785 16.4512C34.1537 16.9018 34.3631 17.5792 34.4199 18.8271C34.4812 20.1763 34.4941 20.5822 34.4941 23.998C34.4941 27.4134 34.4812 27.819 34.4199 29.168C34.3629 30.4158 34.1537 31.0933 33.9785 31.5439C33.7466 32.1412 33.4693 32.567 33.0215 33.0146C32.5735 33.4627 32.1474 33.7397 31.5498 33.9717C31.0992 34.1477 30.4216 34.356 29.1738 34.4131C27.8245 34.4744 27.4186 34.4883 24.001 34.4883C20.5835 34.4883 20.1783 34.4744 18.8291 34.4131C17.5811 34.3555 16.9036 34.1469 16.4521 33.9717C15.8549 33.7397 15.4284 33.4625 14.9805 33.0146C14.5325 32.5666 14.255 32.1406 14.0225 31.543C13.8473 31.0923 13.6378 30.4148 13.5811 29.167C13.5197 27.8179 13.5078 27.4121 13.5078 23.9941C13.5078 20.5762 13.5197 20.1726 13.5811 18.8232C13.6381 17.5755 13.8473 16.8984 14.0225 16.4473C14.2545 15.8499 14.5325 15.4236 14.9805 14.9756C15.4285 14.5276 15.8549 14.2501 16.4521 14.0176C16.9034 13.8416 17.5811 13.6335 18.8291 13.5762C20.0097 13.5228 20.4674 13.5066 22.8525 13.5039V13.5068ZM24.001 17.4268C20.371 17.427 17.4277 20.3709 17.4277 24.001C17.4279 27.6309 20.3711 30.5721 24.001 30.5723C27.631 30.5723 30.573 27.631 30.5732 24.001C30.5732 20.3708 27.6311 17.4268 24.001 17.4268ZM30.834 15.6318C29.9861 15.632 29.2979 16.3198 29.2979 17.168C29.2979 18.0159 29.9861 18.704 30.834 18.7041C31.682 18.7041 32.3701 18.016 32.3701 17.168C32.37 16.32 31.6819 15.6318 30.834 15.6318Z",fill:"white"}),n("path",{d:"M24.0011 19.7334C26.3574 19.7334 28.2678 21.6436 28.2678 24.0001C28.2678 26.3564 26.3574 28.2668 24.0011 28.2668C21.6445 28.2668 19.7344 26.3564 19.7344 24.0001C19.7344 21.6436 21.6445 19.7334 24.0011 19.7334Z",fill:"white"}));case"TikTok":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM25.0273 28.3477C25.0273 30.2955 23.4721 31.8955 21.5361 31.8955C19.6003 31.8954 18.0449 30.2955 18.0449 28.3477C18.045 26.4347 19.5659 24.8693 21.4326 24.7998V20.6953C17.3188 20.7648 14.0001 24.1391 14 28.3477C14 32.5912 17.3883 36 21.5713 36C25.754 35.9998 29.1416 32.5562 29.1416 28.3477V19.9648C30.6627 21.0779 32.5295 21.7396 34.5 21.7744V17.6699C31.4579 17.5656 29.0723 15.0609 29.0723 12H25.0273V28.3477Z",fill:"white"}));case"YouTube":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM24 15.2002C24 15.2002 15.9944 15.1997 13.998 15.749C12.8966 16.0513 12.0288 16.9423 11.7344 18.0732C11.1996 20.1231 11.2002 24.4004 11.2002 24.4004C11.2002 24.4472 11.2026 28.6878 11.7344 30.7266C12.0288 31.8575 12.8966 32.7483 13.998 33.0508C15.9944 33.6 24 33.5996 24 33.5996C24 33.5996 32.0057 33.6 34.002 33.0508C35.1033 32.7483 35.9703 31.8575 36.2646 30.7266C36.7966 28.6879 36.7998 24.4472 36.7998 24.4004C36.7998 24.4004 36.7996 20.1231 36.2646 18.0732C35.9703 16.9424 35.1033 16.0513 34.002 15.749C32.0057 15.1997 24 15.2002 24 15.2002Z",fill:"white"}),n("path",{d:"M21.6016 28.7998V20.7998L28.0016 24.8L21.6016 28.7998Z",fill:"white"}))}}const g=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}layout;resolved=l;resolve(){this.resolved=null!=this.layout?function(e){const i=e&&"object"==typeof e?e:{},t=i.footer&&"object"==typeof i.footer?i.footer:{};return{social:d(t?.social),menu:r(t?.menu),credits:a(t?.credits)?t.credits.trim():"",copyright:a(t?.copyright)?t.copyright.trim():""}}(o(this.layout)):l}componentWillLoad(){this.resolve()}watchLayout(){this.resolve()}renderLegalText(){const{credits:e,copyright:i}=this.resolved;return e||i?n("div",{class:"legal"},e?n("p",{class:"legal__p"},e):null,e&&i?n("p",{class:"legal__p"},"​"):null,i?n("p",{class:"legal__p"},i):null):null}renderSocialLinks(){const e=this.resolved.social;return 0===e.length?null:n("div",{class:"social"},e.map((e=>n("a",{class:"social__link",href:e.href,"aria-label":e.platform,target:s(e.href)?"_blank":void 0,rel:s(e.href)?"noreferrer noopener":void 0},n("span",{class:"social__icon","aria-hidden":"true"},n(h,{platform:e.platform}))))))}renderMenu(){const e=this.resolved.menu;return 0===e.length?null:n("div",{class:"columns"},e.map(((e,i)=>n("div",{class:"columns__col",key:i},i>0?n("div",{class:"columns__divider","aria-hidden":"true"}):null,n("nav",{class:"columns__links","aria-label":"Footer links column "+(i+1)},e.map(((e,i)=>n("a",{class:"footer-link",href:e.href,key:i,target:p(e),rel:f(e)},e.label))))))))}render(){return n("footer",{key:"44ce6d694eb145005f006b5a02ec68fe2da8ca44",class:"footer"},n("div",{key:"43dbb00e195a561a44cd9ae0e843c448dce546bb",class:"container footer__inner"},this.renderSocialLinks(),n("div",{key:"1ede37520397d4fa63671dccc7e3f83f26ac0955",class:"standard"},this.renderMenu(),this.renderLegalText())))}static get watchers(){return{layout:[{watchLayout:0}]}}static get style(){return":host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb;--weg-purple-200:#cdcff8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.footer{background:#030712;color:#ffffff;font-family:var(--weg-font-family);font-weight:300}.footer__inner{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding-block:2rem;padding-inline:0}@media (width >= 960px){.footer__inner{gap:2.25rem;padding-block:3.5rem}}.social{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}@media (width >= 960px){.social{gap:1.75rem}}.social__link{width:3rem;height:3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999rem;background:transparent;color:inherit;text-decoration:none;transition:opacity 150ms ease;outline:none}.social__link:hover{opacity:0.9}.social__link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.social__icon{display:inline-flex;width:3rem;height:3rem}.footer-link{color:#ffffff;font-family:'Open Sans', var(--weg-font-family);font-size:1rem;font-style:normal;font-weight:300;line-height:1.5rem;display:block;width:100%;text-align:center;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;outline:none}@media (width >= 960px){.footer-link{display:inline;width:auto;text-align:left}}.footer-link:hover{opacity:0.9}.footer-link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.legal{width:100%;max-width:860px;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.legal{font-size:1.125rem;line-height:1.75rem}}.legal__p{margin:0}.standard{width:100%;display:flex;flex-direction:column;align-items:center;gap:2.25rem;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.standard{font-size:1.125rem;line-height:1.75rem}}.columns{width:100%;display:grid;grid-template-columns:1fr;gap:0}.columns__col{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.columns__col:not(:first-child){gap:2rem}.columns__divider{display:block;flex-shrink:0;width:100%;height:1px;margin-top:2rem;background:rgba(255, 255, 255, 0.35)}.columns__links{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;width:100%;min-width:0;text-align:center}@media (width >= 640px){.columns{grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.5rem 3rem}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider{display:none}.columns__col:nth-child(n+4) .columns__divider{display:block;width:100%;height:1px;margin:0 0 1.5rem}.footer-link{display:inline;width:auto;text-align:left}.columns__links{align-items:flex-start;text-align:left}}@media (width >= 960px){.columns{display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0}.columns__col{flex:1 1 0;flex-direction:row;align-items:stretch}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider,.columns__col:nth-child(n+4) .columns__divider{display:block;width:1px;height:auto;margin:0 1.5rem}.columns__links{flex:1;align-items:flex-start;text-align:left}}"}},[513,"weg-footer",{layout:[1],resolved:[32]},void 0,{layout:[{watchLayout:0}]}]);function u(){"undefined"!=typeof customElements&&["weg-footer"].forEach((i=>{"weg-footer"===i&&(customElements.get(e(i))||customElements.define(e(i),g))}))}u();const C=g,w=u;export{C as WegFooter,w as defineCustomElement}
1
+ import{t as e,p as i,H as t,h as n}from"./p-CtYuWNO6.js";import{p as o,n as r,i as a}from"./p-C9rPQ-RZ.js";const l={social:[],menu:[],credits:"",copyright:""};function s(e){return/^https?:\/\//.test(e)}function c(e){return"LinkedIn"===e||"Instagram"===e||"TikTok"===e||"YouTube"===e}function d(e){if(!Array.isArray(e))return[];const i=[];for(const t of e){if(!t||"object"!=typeof t)continue;const e=t.platform,n=t.href;c(e)&&a(n)&&i.push({platform:e,href:n.trim()})}return i}function m(e){return"_blank"===e.target||!!e.href&&s(e.href)}function p(e){return e.target?e.target:m(e)?"_blank":void 0}function g(e){return m(e)?"noreferrer noopener":void 0}function f({platform:e}){const i={viewBox:"0 0 48 48",width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"};switch(e){case"LinkedIn":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM12.9082 33.4736H17.5889V19.4111H12.9082V33.4736ZM29.0791 19.0811C26.5942 19.0811 25.4815 20.4458 24.8604 21.4033V19.4111H20.1797C20.2412 20.7279 20.1799 33.4203 20.1797 33.4736H24.8604V25.6201C24.8604 25.1998 24.8909 24.7804 25.0146 24.4795C25.3529 23.6399 26.1231 22.7705 27.416 22.7705C29.1103 22.7705 29.7881 24.0605 29.7881 25.9502V33.4736H34.4678V25.4102C34.4677 21.0909 32.1589 19.0811 29.0791 19.0811ZM15.2793 12.6318C13.6783 12.6319 12.6319 13.6818 12.6318 15.0605C12.6318 16.4108 13.6474 17.4912 15.2188 17.4912H15.249C16.8807 17.491 17.8965 16.4107 17.8965 15.0605C17.866 13.6818 16.8804 12.6318 15.2793 12.6318Z",fill:"white"}));case"Instagram":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM23.999 11.2002C20.5245 11.2002 20.0877 11.2152 18.7227 11.2773C17.3602 11.3398 16.43 11.5556 15.6162 11.8721C14.7744 12.199 14.06 12.636 13.3486 13.3477C12.6366 14.0591 12.1991 14.7736 11.8711 15.6152C11.5538 16.4293 11.3377 17.3597 11.2764 18.7217C11.2153 20.087 11.2002 20.5238 11.2002 24C11.2002 27.476 11.2155 27.9113 11.2773 29.2764C11.34 30.639 11.5558 31.5699 11.8721 32.3838C12.1993 33.2255 12.636 33.94 13.3477 34.6514C14.0589 35.3634 14.7739 35.801 15.6152 36.1279C16.4295 36.4444 17.3596 36.6602 18.7217 36.7227C20.087 36.7848 20.5233 36.7998 23.999 36.7998C27.4756 36.7998 27.911 36.7848 29.2764 36.7227C30.639 36.6602 31.5704 36.4445 32.3848 36.1279C33.2261 35.801 33.9394 35.3631 34.6504 34.6514C35.3624 33.9399 35.7999 33.2254 36.1279 32.3838C36.4426 31.5697 36.6586 30.6393 36.7227 29.2773C36.784 27.912 36.7998 27.4763 36.7998 24C36.7998 20.5242 36.784 20.0876 36.7227 18.7227C36.6587 17.36 36.4426 16.4291 36.1279 15.6152C35.7999 14.7734 35.3623 14.0591 34.6504 13.3477C33.9385 12.6358 33.2264 12.1987 32.3838 11.8721C31.5678 11.5555 30.6371 11.3397 29.2744 11.2773C27.9093 11.2152 27.4745 11.2002 23.999 11.2002Z",fill:"white"}),n("path",{d:"M22.8525 13.5068C23.1933 13.5063 23.5739 13.5068 24.001 13.5068C27.4186 13.5068 27.8242 13.5197 29.1738 13.5811C30.4214 13.6381 31.0986 13.8463 31.5498 14.0215C32.1471 14.2535 32.5737 14.5305 33.0215 14.9785C33.4695 15.4265 33.746 15.8538 33.9785 16.4512C34.1537 16.9018 34.3631 17.5792 34.4199 18.8271C34.4812 20.1763 34.4941 20.5822 34.4941 23.998C34.4941 27.4134 34.4812 27.819 34.4199 29.168C34.3629 30.4158 34.1537 31.0933 33.9785 31.5439C33.7466 32.1412 33.4693 32.567 33.0215 33.0146C32.5735 33.4627 32.1474 33.7397 31.5498 33.9717C31.0992 34.1477 30.4216 34.356 29.1738 34.4131C27.8245 34.4744 27.4186 34.4883 24.001 34.4883C20.5835 34.4883 20.1783 34.4744 18.8291 34.4131C17.5811 34.3555 16.9036 34.1469 16.4521 33.9717C15.8549 33.7397 15.4284 33.4625 14.9805 33.0146C14.5325 32.5666 14.255 32.1406 14.0225 31.543C13.8473 31.0923 13.6378 30.4148 13.5811 29.167C13.5197 27.8179 13.5078 27.4121 13.5078 23.9941C13.5078 20.5762 13.5197 20.1726 13.5811 18.8232C13.6381 17.5755 13.8473 16.8984 14.0225 16.4473C14.2545 15.8499 14.5325 15.4236 14.9805 14.9756C15.4285 14.5276 15.8549 14.2501 16.4521 14.0176C16.9034 13.8416 17.5811 13.6335 18.8291 13.5762C20.0097 13.5228 20.4674 13.5066 22.8525 13.5039V13.5068ZM24.001 17.4268C20.371 17.427 17.4277 20.3709 17.4277 24.001C17.4279 27.6309 20.3711 30.5721 24.001 30.5723C27.631 30.5723 30.573 27.631 30.5732 24.001C30.5732 20.3708 27.6311 17.4268 24.001 17.4268ZM30.834 15.6318C29.9861 15.632 29.2979 16.3198 29.2979 17.168C29.2979 18.0159 29.9861 18.704 30.834 18.7041C31.682 18.7041 32.3701 18.016 32.3701 17.168C32.37 16.32 31.6819 15.6318 30.834 15.6318Z",fill:"white"}),n("path",{d:"M24.0011 19.7334C26.3574 19.7334 28.2678 21.6436 28.2678 24.0001C28.2678 26.3564 26.3574 28.2668 24.0011 28.2668C21.6445 28.2668 19.7344 26.3564 19.7344 24.0001C19.7344 21.6436 21.6445 19.7334 24.0011 19.7334Z",fill:"white"}));case"TikTok":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM25.0273 28.3477C25.0273 30.2955 23.4721 31.8955 21.5361 31.8955C19.6003 31.8954 18.0449 30.2955 18.0449 28.3477C18.045 26.4347 19.5659 24.8693 21.4326 24.7998V20.6953C17.3188 20.7648 14.0001 24.1391 14 28.3477C14 32.5912 17.3883 36 21.5713 36C25.754 35.9998 29.1416 32.5562 29.1416 28.3477V19.9648C30.6627 21.0779 32.5295 21.7396 34.5 21.7744V17.6699C31.4579 17.5656 29.0723 15.0609 29.0723 12H25.0273V28.3477Z",fill:"white"}));case"YouTube":return n("svg",{...i},n("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0ZM24 15.2002C24 15.2002 15.9944 15.1997 13.998 15.749C12.8966 16.0513 12.0288 16.9423 11.7344 18.0732C11.1996 20.1231 11.2002 24.4004 11.2002 24.4004C11.2002 24.4472 11.2026 28.6878 11.7344 30.7266C12.0288 31.8575 12.8966 32.7483 13.998 33.0508C15.9944 33.6 24 33.5996 24 33.5996C24 33.5996 32.0057 33.6 34.002 33.0508C35.1033 32.7483 35.9703 31.8575 36.2646 30.7266C36.7966 28.6879 36.7998 24.4472 36.7998 24.4004C36.7998 24.4004 36.7996 20.1231 36.2646 18.0732C35.9703 16.9424 35.1033 16.0513 34.002 15.749C32.0057 15.1997 24 15.2002 24 15.2002Z",fill:"white"}),n("path",{d:"M21.6016 28.7998V20.7998L28.0016 24.8L21.6016 28.7998Z",fill:"white"}))}}const h=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}layout;resolved=l;resolve(){this.resolved=null!=this.layout?function(e){const i=e&&"object"==typeof e?e:{},t=i.footer&&"object"==typeof i.footer?i.footer:{};return{social:d(t?.social),menu:r(t?.menu),credits:a(t?.credits)?t.credits.trim():"",copyright:a(t?.copyright)?t.copyright.trim():""}}(o(this.layout)):l}componentWillLoad(){this.resolve()}watchLayout(){this.resolve()}renderLegalText(){const{credits:e,copyright:i}=this.resolved;return e||i?n("div",{class:"legal"},e?n("p",{class:"legal__p"},e):null,i?n("p",{class:"legal__p"},i):null):null}renderSocialLinks(){const e=this.resolved.social;return 0===e.length?null:n("menu",{class:"social"},e.map((e=>n("li",{class:"social__item",key:e.platform},n("a",{class:"social__link",href:e.href,"aria-label":e.platform,target:s(e.href)?"_blank":void 0,rel:s(e.href)?"noreferrer noopener":void 0},n("span",{class:"social__icon","aria-hidden":"true"},n(f,{platform:e.platform})))))))}renderMenu(){const e=this.resolved.menu;return 0===e.length?null:n("ul",{class:"columns"},e.map(((e,i)=>n("li",{class:"columns__col",key:i},i>0?n("div",{class:"columns__divider","aria-hidden":"true"}):null,n("menu",{class:"columns__links","aria-label":"Footer links column "+(i+1)},e.map(((e,i)=>n("li",{key:i},n("a",{class:"footer-link",href:e.href,target:p(e),rel:g(e)},e.label)))))))))}render(){return n("footer",{key:"28120514570c47ed9b090e1f7389596b5923f284",class:"footer"},n("div",{key:"585c0f8cd2dc3cc92d86a97ef4cca457aebe891a",class:"container footer__inner"},this.renderSocialLinks(),this.renderMenu(),this.renderLegalText()))}static get watchers(){return{layout:[{watchLayout:0}]}}static get style(){return":host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb;--weg-purple-200:#cdcff8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.footer{background:#030712;color:#ffffff;font-family:var(--weg-font-family);font-weight:300}.footer__inner{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding-block:2rem;padding-inline:0}@media (width >= 960px){.footer__inner{gap:2.25rem;padding-block:3.5rem}}.social{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;padding:0;margin:0;list-style:none}@media (width >= 960px){.social{gap:1.75rem}}.social__item{padding:0;margin:0}.social__link{width:3rem;height:3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999rem;background:transparent;color:inherit;text-decoration:none;transition:opacity 150ms ease;outline:none}.social__link:hover{opacity:0.9}.social__link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.social__icon{display:inline-flex;width:3rem;height:3rem}.footer-link{color:#ffffff;font-family:'Open Sans', var(--weg-font-family);font-size:1rem;font-style:normal;font-weight:300;line-height:1.5rem;display:block;width:100%;text-align:center;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;outline:none}@media (width >= 960px){.footer-link{display:inline;width:auto;text-align:left}}.footer-link:hover{opacity:0.9}.footer-link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.legal{width:100%;max-width:860px;text-align:center;font-size:1rem;line-height:1.5rem;display:flex;flex-direction:column;gap:1rem}@media (width >= 960px){.legal{font-size:1.125rem;line-height:1.75rem}}.legal__p{margin:0}.columns{width:100%;display:grid;grid-template-columns:1fr;gap:0.75rem;font-size:1rem;line-height:1.5rem;padding:0;margin:0}.columns__col{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.columns__col:not(:first-child){gap:2rem;border-top:1px solid rgba(255, 255, 255, 0.35);padding-top:1.5rem;margin-top:1.5rem}.columns__divider{display:block;flex-shrink:0;width:100%;height:1px;margin-top:2rem;background:rgba(255, 255, 255, 0.35)}.columns__links{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;width:100%;min-width:0;text-align:center;list-style:none;padding:0}@media (width >= 640px){.columns{grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.5rem 3rem;font-size:1.125rem;line-height:1.75rem}.columns__col:not(:first-child){gap:0;border-left:1px solid rgba(255, 255, 255, 0.35);padding-left:1.5rem;margin-top:0;padding-top:0;border-top:none}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider{display:none}.columns__col:nth-child(n+4) .columns__divider{display:block;width:100%;height:1px;margin:0 0 1.5rem}.footer-link{display:inline;width:auto;text-align:left}.columns__links{align-items:flex-start;text-align:left}}@media (width >= 960px){.columns{display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0}.columns__col{flex:1 1 0;flex-direction:row;align-items:stretch}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider,.columns__col:nth-child(n+4) .columns__divider{display:block;width:1px;height:auto;margin:0 1.5rem}.columns__links{flex:1;align-items:flex-start;text-align:left}}"}},[513,"weg-footer",{layout:[1],resolved:[32]},void 0,{layout:[{watchLayout:0}]}]);function u(){"undefined"!=typeof customElements&&["weg-footer"].forEach((i=>{"weg-footer"===i&&(customElements.get(e(i))||customElements.define(e(i),h))}))}u();const C=h,w=u;export{C as WegFooter,w as defineCustomElement}