@proximus/lavender-header 2.0.0-alpha.12 → 2.0.0-alpha.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Header.d.ts +2 -4
- package/dist/HeaderItem.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +334 -272
- package/package.json +2 -2
package/dist/Header.d.ts
CHANGED
|
@@ -2,14 +2,12 @@ import { WithExtraAttributes } from '@proximus/lavender-common';
|
|
|
2
2
|
import '@proximus/lavender-layout';
|
|
3
3
|
import '@proximus/lavender-container';
|
|
4
4
|
import '@proximus/lavender-button';
|
|
5
|
-
import '@proximus/lavender-button-icon';
|
|
6
5
|
import '@proximus/lavender-section';
|
|
7
|
-
import '
|
|
6
|
+
import './HeaderItem';
|
|
7
|
+
import './Link.ts';
|
|
8
8
|
import type { Dropdown } from '@proximus/lavender-dropdown';
|
|
9
9
|
import type { Stack } from '@proximus/lavender-layout';
|
|
10
10
|
import type { ButtonIcon } from '@proximus/lavender-button-icon';
|
|
11
|
-
import './HeaderItem';
|
|
12
|
-
import './Link.ts';
|
|
13
11
|
export declare class Header extends WithExtraAttributes {
|
|
14
12
|
#private;
|
|
15
13
|
internals: ElementInternals;
|
package/dist/HeaderItem.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export declare class HeaderItem extends WithExtraAttributes {
|
|
|
14
14
|
set for(value: string);
|
|
15
15
|
get checked(): boolean;
|
|
16
16
|
set checked(value: boolean);
|
|
17
|
+
get current(): boolean;
|
|
18
|
+
set current(value: boolean);
|
|
17
19
|
get $button(): HTMLButtonElement;
|
|
18
20
|
get $a(): HTMLAnchorElement;
|
|
19
21
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var G = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var d = (
|
|
6
|
-
import
|
|
4
|
+
var F = (r, t, e) => t.has(r) || G("Cannot " + e);
|
|
5
|
+
var d = (r, t, e) => (F(r, t, "read from private field"), e ? e.call(r) : t.get(r)), u = (r, t, e) => t.has(r) ? G("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), A = (r, t, e, o) => (F(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e), b = (r, t, e) => (F(r, t, "access private method"), e);
|
|
6
|
+
import "@proximus/lavender-button-icon";
|
|
7
|
+
import "@proximus/lavender-cell";
|
|
8
|
+
import { WithExtraAttributes as X, fontsizeValues as zt, PxElement as $t, transferAccessibilityAttributes as At, fontweightValues as St, colorValues as Ct, log as R, checkName as Et, WrappedInteractiveStateController as Tt } from "@proximus/lavender-common";
|
|
7
9
|
import "@proximus/lavender-layout";
|
|
8
10
|
import "@proximus/lavender-container";
|
|
9
11
|
import "@proximus/lavender-button";
|
|
10
|
-
import "@proximus/lavender-button-icon";
|
|
11
12
|
import "@proximus/lavender-section";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class St extends U {
|
|
13
|
+
const Lt = ":host{display:block}:host *{box-sizing:border-box}button,a{display:block;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-font-line-height-l);color:var(--px-color-text-neutral-default);text-align:center;cursor:pointer;padding:32px 0;height:100%}button:after,a:after{content:attr(data-label);display:block;height:0;width:auto;visibility:hidden;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;font-weight:var(--px-font-weight-title)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}:host([current]) button,button:hover,:host([current]) a,a:hover{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default);padding-block:30px}button{margin:0;border:0;border-bottom:2px solid rgba(0,0,0,0);outline:0;background:inherit}button[aria-expanded=true]{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default);border-bottom-color:var(--px-color-background-container-primary-default)}a{text-decoration:none}@media screen and (min-width: 48rem){button,a{font-size:var(--px-text-size-label-m-tablet)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (min-width: 64.0625rem){button,a{font-size:var(--px-text-size-label-m-laptop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (min-width: 90.0625rem){button,a{font-size:var(--px-text-size-label-m-desktop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", at = new CSSStyleSheet();
|
|
14
|
+
at.replaceSync(Lt);
|
|
15
|
+
class Mt extends X {
|
|
16
16
|
constructor() {
|
|
17
17
|
var t;
|
|
18
18
|
super(), this.template = () => `${this.getAttribute("href") ? `<a href="${this.getAttribute("href")}" data-label="${this.textContent}">
|
|
19
19
|
<slot></slot>
|
|
20
|
-
</a>` : `<button data-label="${this.textContent}"><slot></slot></button>`}`, this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
20
|
+
</a>` : `<button data-label="${this.textContent}"><slot></slot></button>`}`, this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [at], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.internals && (this.internals.role = "listitem");
|
|
21
21
|
}
|
|
22
22
|
static get observedAttributes() {
|
|
23
|
-
return ["for", "href"];
|
|
23
|
+
return ["for", "href", "current"];
|
|
24
24
|
}
|
|
25
25
|
connectedCallback() {
|
|
26
|
-
this.setAttribute("slot", "header-entries"), this.$button && this.setupButtonA11y(), this.contentObserver = new MutationObserver(() => {
|
|
26
|
+
this.role = "listitem", this.setAttribute("slot", "header-entries"), this.$button && this.setupButtonA11y(), this.contentObserver = new MutationObserver(() => {
|
|
27
27
|
this.updateDataLabel();
|
|
28
28
|
}), this.contentObserver.observe(this, {
|
|
29
29
|
childList: !0,
|
|
@@ -34,8 +34,8 @@ class St extends U {
|
|
|
34
34
|
disconnectedCallback() {
|
|
35
35
|
this.contentObserver.disconnect();
|
|
36
36
|
}
|
|
37
|
-
attributeChangedCallback(t, e,
|
|
38
|
-
super.attributeChangedCallback(t, e,
|
|
37
|
+
attributeChangedCallback(t, e, o) {
|
|
38
|
+
super.attributeChangedCallback(t, e, o), t === "href" && e !== o ? this.shadowRoot.innerHTML = this.template() : t === "for" && e !== o && this.$button && (this.shadowRoot.innerHTML = this.template(), this.setupButtonA11y());
|
|
39
39
|
}
|
|
40
40
|
setupButtonA11y() {
|
|
41
41
|
this.$button.ariaExpanded = "false", this.$button.setAttribute("aria-controls", this.for || "");
|
|
@@ -57,6 +57,12 @@ class St extends U {
|
|
|
57
57
|
throw new Error("checked must be a boolean");
|
|
58
58
|
this.$button && (this.$button.ariaExpanded = `${!!t}`, this.$button.setAttribute("aria-controls", this.for));
|
|
59
59
|
}
|
|
60
|
+
get current() {
|
|
61
|
+
return this.hasAttribute("current");
|
|
62
|
+
}
|
|
63
|
+
set current(t) {
|
|
64
|
+
t ? this.setAttribute("current", "") : this.removeAttribute("current");
|
|
65
|
+
}
|
|
60
66
|
get $button() {
|
|
61
67
|
return this.shadowRoot.querySelector("button");
|
|
62
68
|
}
|
|
@@ -64,12 +70,12 @@ class St extends U {
|
|
|
64
70
|
return this.shadowRoot.querySelector("a");
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
|
-
customElements.get("px-header-item") || customElements.define("px-header-item",
|
|
68
|
-
const Et = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', Ct = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown{display:flex;justify-content:space-between;width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);touch-action:manipulation}.btn.header-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em) and (max-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 64.0625em){.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, Tt = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media only screen and (min-width: 64.0625em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", ot = new CSSStyleSheet(), rt = new CSSStyleSheet(), at = new CSSStyleSheet();
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
+
customElements.get("px-header-item") || customElements.define("px-header-item", Mt);
|
|
74
|
+
const Rt = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style,a.wrapper{text-decoration:none}a.no-style:hover,a.no-style:focus-visible,a.wrapper:hover,a.wrapper:focus-visible{color:inherit}a.wrapper{display:block;line-height:0}a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media screen and (min-width: 48rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media screen and (min-width: 64.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media screen and (min-width: 90.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', jt = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-mobile)}:is()[slot=before]{padding:0 var(--px-padding-2xs-mobile) 0 0}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown,.btn.header-minimal-dropdown{display:flex;align-items:center;touch-action:manipulation}.btn.header-dropdown:after,.btn.header-minimal-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.btn.header-dropdown[aria-expanded=true]:after,.btn.header-minimal-dropdown[aria-expanded=true]:after{transform:rotate(180deg)}.btn.header-dropdown{justify-content:space-between;gap:var(--px-spacing-s-mobile);width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default)}.btn.header-minimal-dropdown{justify-content:flex-start;gap:var(--px-spacing-xs-mobile);color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);border:none;padding:0;border-radius:0;background:none}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}button.wrapper{all:unset;cursor:pointer}button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button.wrapper[disabled],button.wrapper[aria-disabled=true]{cursor:default;pointer-events:none}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) button.wrapper:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn.header-minimal-dropdown{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.header-minimal-dropdown:after{color:var(--px-color-icon-brand-inverted)}@media screen and (max-width: 47.938rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-2xs-tablet)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}.btn.actionable-tag{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-xs-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-tablet) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-tablet) * -1)}.btn.secondary{padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn.tertiary{padding:var(--px-padding-2xs-tablet) 0;gap:var(--px-spacing-xs-tablet)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-tablet) var(--px-padding-s-tablet)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-tablet)}:is()[slot=before]{padding:0 var(--px-padding-2xs-tablet) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-tablet);font-size:var(--px-text-size-label-m-tablet)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);border:none;padding:0;border-radius:0;background:none}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 64.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-laptop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-laptop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-laptop);font-size:var(--px-text-size-label-m-laptop)}.btn.header-dropdown{padding:0}}@media screen and (min-width: 90.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-desktop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-desktop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-desktop);font-size:var(--px-text-size-label-m-desktop)}.btn.header-dropdown{padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, Pt = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (min-width: 48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media screen and (min-width: 64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", it = new CSSStyleSheet(), nt = new CSSStyleSheet(), st = new CSSStyleSheet();
|
|
75
|
+
it.replaceSync(Rt);
|
|
76
|
+
nt.replaceSync(jt);
|
|
77
|
+
st.replaceSync(Pt);
|
|
78
|
+
const qt = [...zt, "link-m", "link-s"], V = [
|
|
73
79
|
"link",
|
|
74
80
|
"no-style",
|
|
75
81
|
"skip-link",
|
|
@@ -77,10 +83,10 @@ const Lt = [...mt, "link-m", "link-s"], Mt = [
|
|
|
77
83
|
"btn-secondary",
|
|
78
84
|
"btn-tertiary",
|
|
79
85
|
"icon-link"
|
|
80
|
-
],
|
|
86
|
+
], Ot = ["", "default", "alternative"], O = class O extends $t {
|
|
81
87
|
constructor() {
|
|
82
|
-
super(
|
|
83
|
-
const t = document.createElement(
|
|
88
|
+
super(it, nt, st), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
89
|
+
const t = document.createElement(O.nativeName);
|
|
84
90
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
85
91
|
}
|
|
86
92
|
static get observedAttributes() {
|
|
@@ -106,79 +112,87 @@ const Lt = [...mt, "link-m", "link-s"], Mt = [
|
|
|
106
112
|
];
|
|
107
113
|
}
|
|
108
114
|
connectedCallback() {
|
|
109
|
-
|
|
115
|
+
this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), At(this, this.$el, !1);
|
|
110
116
|
}
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
disconnectedCallback() {
|
|
118
|
+
}
|
|
119
|
+
attributeChangedCallback(t, e, o) {
|
|
120
|
+
if (e !== o)
|
|
113
121
|
switch (t) {
|
|
114
122
|
case "disabled":
|
|
115
|
-
this.$el.toggleAttribute("aria-disabled"),
|
|
123
|
+
this.$el.toggleAttribute("aria-disabled"), o !== null && this.$el.setAttribute("aria-disabled", "true");
|
|
116
124
|
break;
|
|
117
125
|
case "variant":
|
|
118
|
-
this.updateVariant(e,
|
|
126
|
+
this.updateVariant(e, o);
|
|
119
127
|
break;
|
|
120
128
|
case "shape":
|
|
121
129
|
case "shape--mobile":
|
|
122
130
|
case "shape--tablet":
|
|
123
131
|
case "shape--laptop":
|
|
124
132
|
case "shape--desktop":
|
|
125
|
-
this.updateShape(t,
|
|
133
|
+
this.updateShape(t, o, Ot);
|
|
126
134
|
break;
|
|
127
135
|
case "extended":
|
|
128
136
|
case "extended--mobile":
|
|
129
137
|
case "extended--tablet":
|
|
130
138
|
case "extended--laptop":
|
|
131
139
|
case "extended--desktop":
|
|
132
|
-
this.updateExtended(t,
|
|
140
|
+
this.updateExtended(t, o);
|
|
133
141
|
break;
|
|
134
142
|
case "font-size":
|
|
135
143
|
this.updateTypography(
|
|
136
144
|
t,
|
|
137
145
|
e,
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
o,
|
|
147
|
+
qt
|
|
140
148
|
);
|
|
141
149
|
break;
|
|
142
150
|
case "color":
|
|
143
|
-
this.updateTypography(t, e,
|
|
151
|
+
this.updateTypography(t, e, o, Ct);
|
|
144
152
|
break;
|
|
145
153
|
case "font-weight":
|
|
146
|
-
this.updateTypography(t, e,
|
|
154
|
+
this.updateTypography(t, e, o, St);
|
|
147
155
|
break;
|
|
148
156
|
case "title":
|
|
149
|
-
|
|
157
|
+
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
150
158
|
break;
|
|
151
159
|
default:
|
|
152
|
-
super.attributeChangedCallback(t, e,
|
|
160
|
+
super.attributeChangedCallback(t, e, o);
|
|
153
161
|
break;
|
|
154
162
|
}
|
|
155
163
|
}
|
|
156
164
|
configureBeforeAfterIcon(t) {
|
|
157
|
-
const e = t.getAttribute("size"),
|
|
165
|
+
const e = t.getAttribute("size"), o = t.getAttribute("color");
|
|
158
166
|
t.addEventListener("click", () => {
|
|
159
167
|
this.$el.focus();
|
|
160
|
-
}), e || t.setAttribute("size", "xs"),
|
|
168
|
+
}), e || t.setAttribute("size", "xs"), o || t.setAttribute("color", "inherit");
|
|
161
169
|
}
|
|
162
170
|
_toggleClassList(t) {
|
|
163
171
|
if (t.startsWith("btn-")) {
|
|
164
172
|
const e = t.split("-");
|
|
165
|
-
for (const
|
|
166
|
-
this.$el.classList.toggle(
|
|
173
|
+
for (const o of e)
|
|
174
|
+
this.$el.classList.toggle(o);
|
|
167
175
|
} else
|
|
168
176
|
this.$el.classList.toggle(t);
|
|
169
177
|
}
|
|
170
178
|
updateVariant(t, e) {
|
|
171
|
-
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(
|
|
179
|
+
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(V, e) || R(
|
|
180
|
+
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${V.join('", "')}".`
|
|
181
|
+
);
|
|
172
182
|
}
|
|
173
|
-
updateShape(t, e,
|
|
174
|
-
if (
|
|
175
|
-
|
|
183
|
+
updateShape(t, e, o) {
|
|
184
|
+
if (!Et(o, e)) {
|
|
185
|
+
R(
|
|
186
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
187
|
+
);
|
|
176
188
|
return;
|
|
177
189
|
}
|
|
178
190
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
179
191
|
}
|
|
180
|
-
updateTypography(t, e,
|
|
181
|
-
e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`),
|
|
192
|
+
updateTypography(t, e, o, a) {
|
|
193
|
+
e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), o !== null && o !== "" && o !== "default" && this.$el.classList.toggle(`${t}-${o}`), this.checkName(a, o) || R(
|
|
194
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join('", "')}".`
|
|
195
|
+
);
|
|
182
196
|
}
|
|
183
197
|
updateExtended(t, e) {
|
|
184
198
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -297,10 +311,44 @@ const Lt = [...mt, "link-m", "link-s"], Mt = [
|
|
|
297
311
|
t ? this.setAttribute("title", t) : this.removeAttribute("title");
|
|
298
312
|
}
|
|
299
313
|
};
|
|
300
|
-
|
|
301
|
-
let
|
|
302
|
-
customElements.get("px-a") || customElements.define("px-a",
|
|
303
|
-
|
|
314
|
+
O.nativeName = "a";
|
|
315
|
+
let j = O;
|
|
316
|
+
customElements.get("px-a") || customElements.define("px-a", j);
|
|
317
|
+
var m, I, dt;
|
|
318
|
+
class It extends j {
|
|
319
|
+
constructor() {
|
|
320
|
+
super();
|
|
321
|
+
u(this, I);
|
|
322
|
+
u(this, m);
|
|
323
|
+
this.$el.classList.add("wrapper"), A(this, m, new Tt(
|
|
324
|
+
this,
|
|
325
|
+
this.$el,
|
|
326
|
+
() => b(this, I, dt).call(this)
|
|
327
|
+
));
|
|
328
|
+
}
|
|
329
|
+
connectedCallback() {
|
|
330
|
+
super.connectedCallback(), d(this, m).connect();
|
|
331
|
+
}
|
|
332
|
+
disconnectedCallback() {
|
|
333
|
+
super.disconnectedCallback(), d(this, m).disconnect();
|
|
334
|
+
}
|
|
335
|
+
attributeChangedCallback(e, o, a) {
|
|
336
|
+
if (o !== a)
|
|
337
|
+
switch (e) {
|
|
338
|
+
case "disabled":
|
|
339
|
+
super.attributeChangedCallback(e, o, a), a !== null && d(this, m).clearInteractiveState();
|
|
340
|
+
break;
|
|
341
|
+
default:
|
|
342
|
+
super.attributeChangedCallback(e, o, a);
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
m = new WeakMap(), I = new WeakSet(), dt = function() {
|
|
348
|
+
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
349
|
+
};
|
|
350
|
+
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", It);
|
|
351
|
+
class Nt extends HTMLElement {
|
|
304
352
|
constructor() {
|
|
305
353
|
super(), this.template = `<px-a font-weight="title" font-size="body-l" color="brand" variant="no-style">
|
|
306
354
|
<slot></slot>
|
|
@@ -311,146 +359,144 @@ class qt extends HTMLElement {
|
|
|
311
359
|
});
|
|
312
360
|
}
|
|
313
361
|
}
|
|
314
|
-
customElements.get("px-mdd-a") || customElements.define("px-mdd-a",
|
|
315
|
-
const
|
|
316
|
-
function
|
|
317
|
-
var t = typeof
|
|
318
|
-
return
|
|
362
|
+
customElements.get("px-mdd-a") || customElements.define("px-mdd-a", Nt);
|
|
363
|
+
const Bt = "#navigation-container{border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}#dropdown-zone--desktop{display:none}#primary-navigation{display:none;margin:0;padding:0}#panel-container{position:absolute;top:0;left:0;right:0;z-index:999}#backdrop-filter{display:none;position:absolute;z-index:998;left:0;width:100vw;height:100%;background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}@media screen and (min-width: 48rem){#dropdown-zone--desktop{display:flex;justify-content:space-between;align-items:center;margin-block:var(--px-padding-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}}@media screen and (min-width: 64.0625rem){#dropdown-zone--desktop{margin-block:var(--px-padding-s-laptop)}}@media screen and (min-width: 90.0625rem){#dropdown-zone--desktop{margin-block:var(--px-padding-s-desktop)}}";
|
|
364
|
+
function P(r) {
|
|
365
|
+
var t = typeof r;
|
|
366
|
+
return r != null && (t == "object" || t == "function");
|
|
319
367
|
}
|
|
320
|
-
var
|
|
321
|
-
return
|
|
322
|
-
},
|
|
323
|
-
function
|
|
324
|
-
for (var t =
|
|
368
|
+
var Ht = typeof global == "object" && global && global.Object === Object && global, Dt = typeof self == "object" && self && self.Object === Object && self, lt = Ht || Dt || Function("return this")(), _ = function() {
|
|
369
|
+
return lt.Date.now();
|
|
370
|
+
}, Wt = /\s/;
|
|
371
|
+
function Ft(r) {
|
|
372
|
+
for (var t = r.length; t-- && Wt.test(r.charAt(t)); )
|
|
325
373
|
;
|
|
326
374
|
return t;
|
|
327
375
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
330
|
-
return
|
|
376
|
+
var _t = /^\s+/;
|
|
377
|
+
function Ut(r) {
|
|
378
|
+
return r && r.slice(0, Ft(r) + 1).replace(_t, "");
|
|
331
379
|
}
|
|
332
|
-
var q =
|
|
333
|
-
function
|
|
334
|
-
var t =
|
|
380
|
+
var q = lt.Symbol, pt = Object.prototype, Yt = pt.hasOwnProperty, Zt = pt.toString, S = q ? q.toStringTag : void 0;
|
|
381
|
+
function Xt(r) {
|
|
382
|
+
var t = Yt.call(r, S), e = r[S];
|
|
335
383
|
try {
|
|
336
|
-
|
|
337
|
-
var
|
|
384
|
+
r[S] = void 0;
|
|
385
|
+
var o = !0;
|
|
338
386
|
} catch {
|
|
339
387
|
}
|
|
340
|
-
var
|
|
341
|
-
return
|
|
388
|
+
var a = Zt.call(r);
|
|
389
|
+
return o && (t ? r[S] = e : delete r[S]), a;
|
|
342
390
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
391
|
+
var Jt = Object.prototype, Kt = Jt.toString;
|
|
392
|
+
function Qt(r) {
|
|
393
|
+
return Kt.call(r);
|
|
346
394
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
395
|
+
var Gt = "[object Null]", Vt = "[object Undefined]", tt = q ? q.toStringTag : void 0;
|
|
396
|
+
function te(r) {
|
|
397
|
+
return r == null ? r === void 0 ? Vt : Gt : tt && tt in Object(r) ? Xt(r) : Qt(r);
|
|
350
398
|
}
|
|
351
|
-
function
|
|
352
|
-
return
|
|
399
|
+
function ee(r) {
|
|
400
|
+
return r != null && typeof r == "object";
|
|
353
401
|
}
|
|
354
|
-
var
|
|
355
|
-
function
|
|
356
|
-
return typeof
|
|
402
|
+
var oe = "[object Symbol]";
|
|
403
|
+
function re(r) {
|
|
404
|
+
return typeof r == "symbol" || ee(r) && te(r) == oe;
|
|
357
405
|
}
|
|
358
|
-
var
|
|
359
|
-
function
|
|
360
|
-
if (typeof
|
|
361
|
-
return
|
|
362
|
-
if (
|
|
363
|
-
return
|
|
364
|
-
if (
|
|
365
|
-
var t = typeof
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
if (typeof
|
|
369
|
-
return
|
|
370
|
-
|
|
371
|
-
var e =
|
|
372
|
-
return e ||
|
|
406
|
+
var et = NaN, ae = /^[-+]0x[0-9a-f]+$/i, ie = /^0b[01]+$/i, ne = /^0o[0-7]+$/i, se = parseInt;
|
|
407
|
+
function ot(r) {
|
|
408
|
+
if (typeof r == "number")
|
|
409
|
+
return r;
|
|
410
|
+
if (re(r))
|
|
411
|
+
return et;
|
|
412
|
+
if (P(r)) {
|
|
413
|
+
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
414
|
+
r = P(t) ? t + "" : t;
|
|
415
|
+
}
|
|
416
|
+
if (typeof r != "string")
|
|
417
|
+
return r === 0 ? r : +r;
|
|
418
|
+
r = Ut(r);
|
|
419
|
+
var e = ie.test(r);
|
|
420
|
+
return e || ne.test(r) ? se(r.slice(2), e ? 2 : 8) : ae.test(r) ? et : +r;
|
|
373
421
|
}
|
|
374
|
-
var
|
|
375
|
-
function
|
|
376
|
-
var
|
|
377
|
-
if (typeof
|
|
378
|
-
throw new TypeError(
|
|
379
|
-
t =
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
return
|
|
383
|
-
}
|
|
384
|
-
function
|
|
385
|
-
return
|
|
386
|
-
}
|
|
387
|
-
function
|
|
388
|
-
var
|
|
389
|
-
return
|
|
390
|
-
}
|
|
391
|
-
function
|
|
392
|
-
var
|
|
393
|
-
return c === void 0 ||
|
|
422
|
+
var de = "Expected a function", le = Math.max, pe = Math.min;
|
|
423
|
+
function ce(r, t, e) {
|
|
424
|
+
var o, a, n, s, l, c, x = 0, z = !1, h = !1, H = !0;
|
|
425
|
+
if (typeof r != "function")
|
|
426
|
+
throw new TypeError(de);
|
|
427
|
+
t = ot(t) || 0, P(e) && (z = !!e.leading, h = "maxWait" in e, n = h ? le(ot(e.maxWait) || 0, t) : n, H = "trailing" in e ? !!e.trailing : H);
|
|
428
|
+
function D(p) {
|
|
429
|
+
var g = o, $ = a;
|
|
430
|
+
return o = a = void 0, x = p, s = r.apply($, g), s;
|
|
431
|
+
}
|
|
432
|
+
function mt(p) {
|
|
433
|
+
return x = p, l = setTimeout(L, t), z ? D(p) : s;
|
|
434
|
+
}
|
|
435
|
+
function kt(p) {
|
|
436
|
+
var g = p - c, $ = p - x, Q = t - g;
|
|
437
|
+
return h ? pe(Q, n - $) : Q;
|
|
438
|
+
}
|
|
439
|
+
function J(p) {
|
|
440
|
+
var g = p - c, $ = p - x;
|
|
441
|
+
return c === void 0 || g >= t || g < 0 || h && $ >= n;
|
|
394
442
|
}
|
|
395
443
|
function L() {
|
|
396
|
-
var p =
|
|
397
|
-
if (
|
|
398
|
-
return
|
|
399
|
-
l = setTimeout(L,
|
|
444
|
+
var p = _();
|
|
445
|
+
if (J(p))
|
|
446
|
+
return K(p);
|
|
447
|
+
l = setTimeout(L, kt(p));
|
|
400
448
|
}
|
|
401
|
-
function
|
|
402
|
-
return l = void 0,
|
|
449
|
+
function K(p) {
|
|
450
|
+
return l = void 0, H && o ? D(p) : (o = a = void 0, s);
|
|
403
451
|
}
|
|
404
|
-
function
|
|
405
|
-
l !== void 0 && clearTimeout(l),
|
|
452
|
+
function yt() {
|
|
453
|
+
l !== void 0 && clearTimeout(l), x = 0, o = c = a = l = void 0;
|
|
406
454
|
}
|
|
407
|
-
function
|
|
408
|
-
return l === void 0 ?
|
|
455
|
+
function wt() {
|
|
456
|
+
return l === void 0 ? s : K(_());
|
|
409
457
|
}
|
|
410
|
-
function
|
|
411
|
-
var p =
|
|
412
|
-
if (
|
|
458
|
+
function W() {
|
|
459
|
+
var p = _(), g = J(p);
|
|
460
|
+
if (o = arguments, a = this, c = p, g) {
|
|
413
461
|
if (l === void 0)
|
|
414
|
-
return
|
|
415
|
-
if (
|
|
416
|
-
return clearTimeout(l), l = setTimeout(L, t),
|
|
462
|
+
return mt(c);
|
|
463
|
+
if (h)
|
|
464
|
+
return clearTimeout(l), l = setTimeout(L, t), D(c);
|
|
417
465
|
}
|
|
418
|
-
return l === void 0 && (l = setTimeout(L, t)),
|
|
466
|
+
return l === void 0 && (l = setTimeout(L, t)), s;
|
|
419
467
|
}
|
|
420
|
-
return
|
|
468
|
+
return W.cancel = yt, W.flush = wt, W;
|
|
421
469
|
}
|
|
422
|
-
var
|
|
423
|
-
function
|
|
424
|
-
var
|
|
425
|
-
if (typeof
|
|
426
|
-
throw new TypeError(
|
|
427
|
-
return
|
|
428
|
-
leading:
|
|
470
|
+
var be = "Expected a function";
|
|
471
|
+
function ue(r, t, e) {
|
|
472
|
+
var o = !0, a = !0;
|
|
473
|
+
if (typeof r != "function")
|
|
474
|
+
throw new TypeError(be);
|
|
475
|
+
return P(e) && (o = "leading" in e ? !!e.leading : o, a = "trailing" in e ? !!e.trailing : a), ce(r, t, {
|
|
476
|
+
leading: o,
|
|
429
477
|
maxWait: t,
|
|
430
|
-
trailing:
|
|
478
|
+
trailing: a
|
|
431
479
|
});
|
|
432
480
|
}
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
var T,
|
|
437
|
-
class
|
|
481
|
+
const ct = new CSSStyleSheet();
|
|
482
|
+
ct.replaceSync(Bt);
|
|
483
|
+
const he = "Menu";
|
|
484
|
+
var T, i, bt, U, Y, ut, Z, f, C, E, v;
|
|
485
|
+
class ge extends X {
|
|
438
486
|
constructor() {
|
|
439
487
|
var e;
|
|
440
|
-
super(
|
|
441
|
-
|
|
442
|
-
|
|
488
|
+
super(ct);
|
|
489
|
+
u(this, i);
|
|
490
|
+
u(this, T);
|
|
443
491
|
this.template = `
|
|
444
492
|
<div>
|
|
445
493
|
<header>
|
|
446
494
|
<slot name="skip"></slot>
|
|
447
|
-
<px-section id="navigation-container" padding-block--mobile="s" padding-block="none"
|
|
448
|
-
|
|
449
|
-
<px-hstack id="dropdown-zone--desktop" align-items="center">
|
|
495
|
+
<px-section id="navigation-container" padding-block--mobile="s" padding-block="none" background-color="none">
|
|
496
|
+
<div id="dropdown-zone--desktop">
|
|
450
497
|
<slot name="target-group"></slot>
|
|
451
|
-
<px-spacer></px-spacer>
|
|
452
498
|
<slot name="user-language"></slot>
|
|
453
|
-
</
|
|
499
|
+
</div>
|
|
454
500
|
<px-hstack gap="default" wrap="wrap" align-items="center">
|
|
455
501
|
<slot name="header-logo"></slot>
|
|
456
502
|
<nav id="primary-navigation" aria-label="${this.primaryNavigationAriaLabel}">
|
|
@@ -461,10 +507,10 @@ class pe extends U {
|
|
|
461
507
|
</div>
|
|
462
508
|
</nav>
|
|
463
509
|
<px-spacer></px-spacer>
|
|
464
|
-
<px-hstack gap--mobile="
|
|
510
|
+
<px-hstack gap--mobile="s" align-items="center" gap="default">
|
|
465
511
|
<slot name="header-actions"></slot>
|
|
466
|
-
<px-button-icon variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
|
|
467
|
-
aria-expanded="false"
|
|
512
|
+
<px-button-icon id="burger-menu" variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
|
|
513
|
+
aria-expanded="false" hidden--tablet hidden--laptop
|
|
468
514
|
hidden--desktop>
|
|
469
515
|
<px-icon name="burger_menu" from="lavender"></px-icon>
|
|
470
516
|
</px-button-icon>
|
|
@@ -480,43 +526,43 @@ class pe extends U {
|
|
|
480
526
|
<slot name="main"></slot>
|
|
481
527
|
</div>
|
|
482
528
|
`, A(this, T, () => {
|
|
483
|
-
window.innerWidth >= 768 && (b(this,
|
|
484
|
-
}), this.shadowRoot.innerHTML = this.template, this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.
|
|
529
|
+
window.innerWidth >= 768 && (b(this, i, ut).call(this), b(this, i, bt).call(this));
|
|
530
|
+
}), this.shadowRoot.innerHTML = this.template, this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "navigation");
|
|
485
531
|
}
|
|
486
532
|
connectedCallback() {
|
|
487
|
-
this.addEventListener("click", (e) => {
|
|
488
|
-
const
|
|
533
|
+
this.role = "navigation", this.addEventListener("click", (e) => {
|
|
534
|
+
const o = e.target.closest(
|
|
489
535
|
"px-header-item"
|
|
490
536
|
);
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}),
|
|
537
|
+
o && o.for && (e.target.checked === !1 ? (this.$backdropFilter.style.display = "block", d(this, i, C).forEach((a) => {
|
|
538
|
+
a.checked = !1;
|
|
539
|
+
}), o.checked = !0, b(this, i, U).call(this, e.target.for)) : b(this, i, Z).call(this));
|
|
494
540
|
}), this.addEventListener("section-item-click", (e) => {
|
|
495
|
-
this.$backdropFilter.style.display = "block", d(this,
|
|
496
|
-
|
|
541
|
+
this.$backdropFilter.style.display = "block", d(this, i, C).forEach((o) => {
|
|
542
|
+
o.checked = !1;
|
|
497
543
|
}), this.querySelector(
|
|
498
544
|
`px-header-item[for="${e.detail.for}"]`
|
|
499
|
-
).checked = !0, b(this,
|
|
545
|
+
).checked = !0, b(this, i, U).call(this, e.detail.for);
|
|
500
546
|
}), this.addEventListener("back-to-mobile-menu", () => {
|
|
501
|
-
this.$backdropFilter.style.display = "block", d(this,
|
|
547
|
+
this.$backdropFilter.style.display = "block", d(this, i, C).forEach((e) => {
|
|
502
548
|
e.checked = !1;
|
|
503
|
-
}), b(this,
|
|
504
|
-
}), this.
|
|
505
|
-
|
|
549
|
+
}), b(this, i, Y).call(this);
|
|
550
|
+
}), this.$burgerMenu.addEventListener("click", () => {
|
|
551
|
+
this.$burgerMenu.setAttribute("aria-expanded", "true"), b(this, i, Y).call(this);
|
|
506
552
|
}), this.addEventListener("close-panel", () => {
|
|
507
|
-
b(this,
|
|
553
|
+
b(this, i, Z).call(this), this.$burgerMenu.setAttribute("aria-expanded", "false");
|
|
508
554
|
}), this.addEventListener(
|
|
509
555
|
"close-panel-from-dialog",
|
|
510
556
|
(e) => {
|
|
511
|
-
this.dispatchEvent(new CustomEvent("close-panel")), e.detail.clientY < d(this,
|
|
512
|
-
var
|
|
513
|
-
(
|
|
557
|
+
this.dispatchEvent(new CustomEvent("close-panel")), e.detail.clientY < d(this, i, E).getBoundingClientRect().bottom && requestAnimationFrame(() => {
|
|
558
|
+
var o;
|
|
559
|
+
(o = document.elementFromPoint(
|
|
514
560
|
e.detail.clientX,
|
|
515
561
|
e.detail.clientY
|
|
516
|
-
)) == null ||
|
|
562
|
+
)) == null || o.click();
|
|
517
563
|
});
|
|
518
564
|
}
|
|
519
|
-
), !this.$targetGroupDropdown && !this.$userLanguageDropdown && (this.$dropDownZoneDesktop.style.display = "none"), this.primaryNavigationAriaLabel || this.setAttribute("primary-navigation-aria-label",
|
|
565
|
+
), !this.$targetGroupDropdown && !this.$userLanguageDropdown && (this.$dropDownZoneDesktop.style.display = "none"), this.primaryNavigationAriaLabel || this.setAttribute("primary-navigation-aria-label", he), window.addEventListener("resize", ue(d(this, T), 200));
|
|
520
566
|
}
|
|
521
567
|
static get observedAttributes() {
|
|
522
568
|
return [
|
|
@@ -526,23 +572,23 @@ class pe extends U {
|
|
|
526
572
|
"back-to-menu-label"
|
|
527
573
|
];
|
|
528
574
|
}
|
|
529
|
-
attributeChangedCallback(e,
|
|
530
|
-
if (
|
|
575
|
+
attributeChangedCallback(e, o, a) {
|
|
576
|
+
if (o !== a)
|
|
531
577
|
switch (e) {
|
|
532
578
|
case "close-button-aria-label":
|
|
533
|
-
d(this,
|
|
534
|
-
|
|
579
|
+
d(this, i, v).forEach((n) => {
|
|
580
|
+
n.setAttribute("close-button-aria-label", a);
|
|
535
581
|
});
|
|
536
582
|
break;
|
|
537
583
|
case "burger-menu-aria-label":
|
|
538
|
-
this.$burgerMenu.setAttribute("aria-label",
|
|
584
|
+
this.$burgerMenu.setAttribute("aria-label", a);
|
|
539
585
|
break;
|
|
540
586
|
case "primary-navigation-aria-label":
|
|
541
|
-
this.$primaryNavigation.setAttribute("aria-label",
|
|
587
|
+
this.$primaryNavigation.setAttribute("aria-label", a);
|
|
542
588
|
break;
|
|
543
589
|
case "back-to-menu-label":
|
|
544
|
-
d(this,
|
|
545
|
-
|
|
590
|
+
d(this, i, v).forEach((n) => {
|
|
591
|
+
n.setAttribute("back-to-menu-label", a);
|
|
546
592
|
});
|
|
547
593
|
break;
|
|
548
594
|
}
|
|
@@ -551,7 +597,7 @@ class pe extends U {
|
|
|
551
597
|
return this.shadowRoot.querySelector("#backdrop-filter");
|
|
552
598
|
}
|
|
553
599
|
get $burgerMenu() {
|
|
554
|
-
return this.shadowRoot.querySelector("
|
|
600
|
+
return this.shadowRoot.querySelector("#burger-menu");
|
|
555
601
|
}
|
|
556
602
|
get $slotMain() {
|
|
557
603
|
return this.querySelector('[slot="main"]');
|
|
@@ -593,72 +639,77 @@ class pe extends U {
|
|
|
593
639
|
e ? this.setAttribute("primary-navigation-aria-label", e) : this.removeAttribute("primary-navigation-aria-label");
|
|
594
640
|
}
|
|
595
641
|
}
|
|
596
|
-
T = new WeakMap(),
|
|
597
|
-
const e = this.querySelectorAll("px-mdd"),
|
|
598
|
-
e.forEach((
|
|
599
|
-
|
|
642
|
+
T = new WeakMap(), i = new WeakSet(), bt = function() {
|
|
643
|
+
const e = this.querySelectorAll("px-mdd"), o = d(this, i, E).getBoundingClientRect().bottom;
|
|
644
|
+
e.forEach((a) => {
|
|
645
|
+
a.dialogOffsetTop = `${o}px`;
|
|
600
646
|
});
|
|
601
|
-
},
|
|
602
|
-
d(this,
|
|
603
|
-
|
|
647
|
+
}, U = function(e) {
|
|
648
|
+
d(this, i, f).$megaDropDown.hidden = !0, d(this, i, v).forEach((o) => {
|
|
649
|
+
o.name === e && o.hidden && (o.dialogOffsetTop = `${d(this, i, E).getBoundingClientRect().bottom}px`, o.hidden = !o.hidden, this.querySelector(`px-header-item[for="${e}"]`).checked = !o.hidden, document.body.style.overflow = o.hidden ? "auto" : "hidden"), o.name !== e && !o.hidden && (o.hidden = !0);
|
|
604
650
|
});
|
|
605
|
-
},
|
|
606
|
-
this.$backdropFilter.style.display = "none", d(this,
|
|
651
|
+
}, Y = function() {
|
|
652
|
+
this.$backdropFilter.style.display = "none", d(this, i, v).forEach((e) => {
|
|
607
653
|
e.hidden || (e.hidden = !0);
|
|
608
|
-
}), d(this,
|
|
609
|
-
},
|
|
610
|
-
d(this,
|
|
611
|
-
|
|
612
|
-
|
|
654
|
+
}), d(this, i, f).$megaDropDown.dialogOffsetTop = `${d(this, i, E).getBoundingClientRect().bottom}px`, d(this, i, f).$megaDropDown.hidden = !1, document.body.style.overflow = "hidden";
|
|
655
|
+
}, ut = function() {
|
|
656
|
+
d(this, i, f) && (d(this, i, f).$megaDropDown.hidden = !0, this.$burgerMenu.setAttribute("aria-expanded", "false"), Array.from(d(this, i, v)).some(
|
|
657
|
+
(o) => !o.hidden
|
|
658
|
+
) || (document.body.style.overflow = "auto", this.$backdropFilter.style.display = "none"));
|
|
659
|
+
}, Z = function() {
|
|
660
|
+
this.$backdropFilter.style.display = "none", d(this, i, f).$megaDropDown.hidden = !0, d(this, i, C).forEach((e) => {
|
|
613
661
|
e.checked = !1;
|
|
614
|
-
}), d(this,
|
|
662
|
+
}), d(this, i, v).forEach((e) => {
|
|
615
663
|
e.hidden = !0;
|
|
616
664
|
}), document.body.style.overflow = "auto";
|
|
617
|
-
},
|
|
665
|
+
}, f = function() {
|
|
618
666
|
return this.querySelector("px-header-mobile-menu");
|
|
619
|
-
}, E = function() {
|
|
620
|
-
return this.querySelectorAll("px-header-item");
|
|
621
667
|
}, C = function() {
|
|
668
|
+
return this.querySelectorAll("px-header-item");
|
|
669
|
+
}, E = function() {
|
|
622
670
|
return this.shadowRoot.querySelector("header");
|
|
623
|
-
},
|
|
671
|
+
}, v = function() {
|
|
624
672
|
return this.querySelectorAll("px-mdd");
|
|
625
673
|
};
|
|
626
|
-
customElements.get("px-header") || customElements.define("px-header",
|
|
627
|
-
const
|
|
674
|
+
customElements.get("px-header") || customElements.define("px-header", ge);
|
|
675
|
+
const xe = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}', fe = [
|
|
628
676
|
"top-left",
|
|
629
677
|
"top-right",
|
|
630
678
|
"bottom-left",
|
|
631
679
|
"bottom-right"
|
|
632
680
|
];
|
|
633
|
-
function
|
|
634
|
-
"anchorName" in document.documentElement.style &&
|
|
635
|
-
var
|
|
636
|
-
if (!
|
|
681
|
+
function rt(r, t, e = "bottom-left", o, a = !1) {
|
|
682
|
+
"anchorName" in document.documentElement.style && a === !1 || t.addEventListener("toggle", () => {
|
|
683
|
+
var z, h;
|
|
684
|
+
if (!r || !t)
|
|
637
685
|
return;
|
|
638
|
-
const
|
|
639
|
-
(
|
|
686
|
+
const n = r.getBoundingClientRect(), s = ((z = window.visualViewport) == null ? void 0 : z.height) ?? window.innerHeight, l = ((h = window.visualViewport) == null ? void 0 : h.width) ?? window.innerWidth, c = o.getPropertyValue("--px-padding-s-mobile") || "16px", x = parseInt(
|
|
687
|
+
(o.getPropertyValue("--px-icon-size-xs-desktop") || "24").replace("px", "")
|
|
640
688
|
);
|
|
641
|
-
["top-left", "top-right"].includes(e) ? (t.style.bottom = `calc( ${c} + ${
|
|
689
|
+
["top-left", "top-right"].includes(e) ? (t.style.bottom = `calc( ${c} + ${s - n.top - window.scrollY}px)`, t.style.top = "auto", e === "top-left" ? t.style.left = l < 768 ? `${c}px` : `${n.left}px` : t.style.right = l < 768 ? `${c}px` : `${l - n.right}px`) : (t.style.top = `${n.bottom + window.scrollY}px`, e === "bottom-left" ? t.style.left = l < 768 ? `${c}px` : `${n.left}px` : t.style.right = l < 768 ? `${c}px` : `${l - n.right - x}px`);
|
|
642
690
|
});
|
|
643
691
|
}
|
|
644
|
-
const
|
|
645
|
-
|
|
692
|
+
const ht = new CSSStyleSheet();
|
|
693
|
+
ht.replaceSync(xe);
|
|
646
694
|
const M = "bottom-left";
|
|
647
|
-
var
|
|
648
|
-
class
|
|
695
|
+
var w, gt, k, y, xt;
|
|
696
|
+
class ve extends X {
|
|
649
697
|
constructor() {
|
|
650
|
-
super(
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
h(this, y);
|
|
698
|
+
super(ht);
|
|
699
|
+
u(this, w);
|
|
700
|
+
u(this, k);
|
|
701
|
+
u(this, y);
|
|
655
702
|
this.template = () => `
|
|
656
703
|
<style>${this.css}</style>
|
|
657
704
|
<slot name="trigger"></slot>
|
|
658
|
-
<slot name="popover"></slot>`, this.isAboutToClose = !1,
|
|
659
|
-
this.isAboutToClose || (this.$popoverElement.togglePopover({ source: this.$trigger }), this.$trigger.ariaExpanded = "true");
|
|
660
|
-
}
|
|
661
|
-
this
|
|
705
|
+
<slot name="popover"></slot>`, this.isAboutToClose = !1, this.triggerPopoverDisplay = () => {
|
|
706
|
+
this.isAboutToClose || (this.$popoverElement.togglePopover({ source: this.$trigger }), this.manualToggle || (this.$trigger.ariaExpanded = "true"));
|
|
707
|
+
}, this.showPopover = () => {
|
|
708
|
+
this.isAboutToClose || this.$popoverElement.showPopover();
|
|
709
|
+
}, this.hidePopover = () => {
|
|
710
|
+
this.$popoverElement.hidePopover();
|
|
711
|
+
}, A(this, k, () => {
|
|
712
|
+
this.$popoverElement.matches(":popover-open") && (this.isAboutToClose = !0, this.manualToggle || (this.$trigger.ariaExpanded = "false"));
|
|
662
713
|
}), A(this, y, () => {
|
|
663
714
|
this.$popoverElement.matches(":popover-open") || setTimeout(() => {
|
|
664
715
|
this.isAboutToClose = !1;
|
|
@@ -675,7 +726,7 @@ class he extends U {
|
|
|
675
726
|
anchor-name: ${this.anchorName};
|
|
676
727
|
}
|
|
677
728
|
:host([anchoralignment="bottom-left"]) {
|
|
678
|
-
::slotted([
|
|
729
|
+
::slotted([popover]) {
|
|
679
730
|
position-anchor: ${this.anchorName};
|
|
680
731
|
top: anchor(${this.anchorName} bottom);
|
|
681
732
|
left: anchor(${this.anchorName} left);
|
|
@@ -708,14 +759,15 @@ class he extends U {
|
|
|
708
759
|
...super.observedAttributes,
|
|
709
760
|
"id",
|
|
710
761
|
"anchoralignment",
|
|
711
|
-
"use-polyfill"
|
|
762
|
+
"use-polyfill",
|
|
763
|
+
"manual-toggle"
|
|
712
764
|
];
|
|
713
765
|
}
|
|
714
766
|
connectedCallback() {
|
|
715
767
|
this.getAttribute("id") || this.setAttribute(
|
|
716
768
|
"id",
|
|
717
769
|
`px-dropdown-${Math.random().toString(36).substring(2, 15)}`
|
|
718
|
-
), this.getAttribute("anchoralignment") || this.setAttribute("anchoralignment", M),
|
|
770
|
+
), this.getAttribute("anchoralignment") || this.setAttribute("anchoralignment", M), rt(
|
|
719
771
|
this.$trigger,
|
|
720
772
|
this.$popoverElement,
|
|
721
773
|
this.anchorAlignment,
|
|
@@ -723,14 +775,15 @@ class he extends U {
|
|
|
723
775
|
this.usePolyfill
|
|
724
776
|
);
|
|
725
777
|
}
|
|
726
|
-
attributeChangedCallback(e,
|
|
727
|
-
|
|
778
|
+
attributeChangedCallback(e, o, a) {
|
|
779
|
+
var n;
|
|
780
|
+
if (o !== a)
|
|
728
781
|
switch (e) {
|
|
729
782
|
case "id":
|
|
730
783
|
this.initPopover();
|
|
731
784
|
break;
|
|
732
785
|
case "use-polyfill":
|
|
733
|
-
|
|
786
|
+
rt(
|
|
734
787
|
this.$trigger,
|
|
735
788
|
this.$popoverElement,
|
|
736
789
|
this.anchorAlignment,
|
|
@@ -738,13 +791,16 @@ class he extends U {
|
|
|
738
791
|
this.usePolyfill
|
|
739
792
|
);
|
|
740
793
|
break;
|
|
794
|
+
case "manual-toggle":
|
|
795
|
+
a != null && ((n = this.$trigger) == null || n.removeAttribute("aria-expanded"));
|
|
796
|
+
break;
|
|
741
797
|
default:
|
|
742
|
-
super.attributeChangedCallback(e,
|
|
798
|
+
super.attributeChangedCallback(e, o, a);
|
|
743
799
|
break;
|
|
744
800
|
}
|
|
745
801
|
}
|
|
746
802
|
initPopover() {
|
|
747
|
-
this.$trigger && (this.$trigger.setAttribute("popovertarget", this.popoverId), this.$trigger.setAttribute("aria-controls", this.
|
|
803
|
+
this.$trigger && (this.$trigger.setAttribute("popovertarget", this.popoverId), this.$trigger.setAttribute("aria-controls", this.getAttribute("id")), this.hasAttribute("manual-toggle") || this.$trigger.setAttribute("aria-expanded", "false"), this.$popoverElement.setAttribute("id", this.popoverId), this.$popoverElement.setAttribute("popover", ""), this.$style.innerHTML = this.css, b(this, w, gt).call(this), b(this, w, xt).call(this));
|
|
748
804
|
}
|
|
749
805
|
get popoverId() {
|
|
750
806
|
return `${this.getAttribute("id")}-popover`;
|
|
@@ -765,7 +821,7 @@ class he extends U {
|
|
|
765
821
|
return this.getAttribute("anchoralignment") || M;
|
|
766
822
|
}
|
|
767
823
|
set anchorAlignment(e) {
|
|
768
|
-
|
|
824
|
+
fe.includes(e) ? this.setAttribute("anchoralignment", e) : (R(
|
|
769
825
|
`Invalid anchor alignment value: ${e}. Using default ${M}.`
|
|
770
826
|
), this.setAttribute("anchoralignment", M));
|
|
771
827
|
}
|
|
@@ -775,37 +831,43 @@ class he extends U {
|
|
|
775
831
|
set usePolyfill(e) {
|
|
776
832
|
e ? this.setAttribute("use-polyfill", "") : this.removeAttribute("use-polyfill");
|
|
777
833
|
}
|
|
834
|
+
get manualToggle() {
|
|
835
|
+
return this.hasAttribute("manual-toggle");
|
|
836
|
+
}
|
|
837
|
+
set manualToggle(e) {
|
|
838
|
+
e ? this.setAttribute("manual-toggle", "") : this.removeAttribute("manual-toggle");
|
|
839
|
+
}
|
|
778
840
|
}
|
|
779
|
-
|
|
780
|
-
this.isAboutToClose = !1, this.$trigger.removeEventListener("click",
|
|
841
|
+
w = new WeakSet(), gt = function() {
|
|
842
|
+
this.isAboutToClose = !1, this.manualToggle || this.$trigger.removeEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.removeEventListener(
|
|
781
843
|
"beforetoggle",
|
|
782
844
|
d(this, k)
|
|
783
845
|
), this.$popoverElement.removeEventListener("toggle", d(this, y));
|
|
784
|
-
},
|
|
846
|
+
}, k = new WeakMap(), y = new WeakMap(), /**
|
|
785
847
|
* Handles the manual display of the popover when the trigger is clicked.
|
|
786
848
|
* This is necessary for cases where the trigger is not a button or input element.
|
|
787
849
|
* This method adds event listeners to the trigger element to toggle the popover.
|
|
788
850
|
* It also manages the state of whether the popover is about to close or not to avoid
|
|
789
851
|
* race conditions when the popover is toggled and the trigger click event is fired.
|
|
790
852
|
*/
|
|
791
|
-
|
|
792
|
-
this.$trigger && !["button", "input"].includes(this.$trigger.localName) && (this.$trigger.addEventListener("click",
|
|
853
|
+
xt = function() {
|
|
854
|
+
this.$trigger && !["button", "input"].includes(this.$trigger.localName) && (this.manualToggle || this.$trigger.addEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.addEventListener("beforetoggle", d(this, k)), this.$popoverElement.addEventListener("toggle", d(this, y)));
|
|
793
855
|
};
|
|
794
|
-
customElements.get("px-dropdown") || customElements.define("px-dropdown",
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
@media screen and (min-width:
|
|
856
|
+
customElements.get("px-dropdown") || customElements.define("px-dropdown", ve);
|
|
857
|
+
const ft = new CSSStyleSheet();
|
|
858
|
+
ft.replaceSync(`
|
|
859
|
+
@media screen and (min-width: 48rem) {
|
|
798
860
|
:host {
|
|
799
861
|
display: none;
|
|
800
862
|
}
|
|
801
863
|
}
|
|
802
864
|
`);
|
|
803
|
-
var N,
|
|
804
|
-
class
|
|
865
|
+
var N, B, vt;
|
|
866
|
+
class me extends HTMLElement {
|
|
805
867
|
constructor() {
|
|
806
868
|
super();
|
|
807
|
-
|
|
808
|
-
|
|
869
|
+
u(this, B);
|
|
870
|
+
u(this, N, `<px-mdd
|
|
809
871
|
name="__lavender_mobile_menu"
|
|
810
872
|
hidden--tablet
|
|
811
873
|
hidden--laptop
|
|
@@ -814,7 +876,7 @@ class ue extends HTMLElement {
|
|
|
814
876
|
<span slot="title"><slot name="title"></slot></span>
|
|
815
877
|
<px-mdd-section title-hidden></px-mdd-section>
|
|
816
878
|
</px-mdd>`);
|
|
817
|
-
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this, N), this.shadowRoot.adoptedStyleSheets = [
|
|
879
|
+
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this, N), this.shadowRoot.adoptedStyleSheets = [ft];
|
|
818
880
|
}
|
|
819
881
|
connectedCallback() {
|
|
820
882
|
this.setAttribute("slot", "header-panels");
|
|
@@ -823,39 +885,39 @@ class ue extends HTMLElement {
|
|
|
823
885
|
throw new Error(
|
|
824
886
|
"<px-header-mobile-menu> must be used within a <px-header>."
|
|
825
887
|
);
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
${[...
|
|
829
|
-
const l =
|
|
830
|
-
return l ? `<px-mdd-section-item for="${l}">${
|
|
888
|
+
const o = e.querySelectorAll("px-header-item"), a = e.querySelectorAll("px-action-link"), n = this.shadowRoot.querySelector("px-mdd-section");
|
|
889
|
+
n.innerHTML = `
|
|
890
|
+
${[...o].map((s) => {
|
|
891
|
+
const l = s.getAttribute("for"), c = s.getAttribute("href");
|
|
892
|
+
return l ? `<px-mdd-section-item for="${l}">${s.innerText}</px-mdd-section-item>` : c ? `<px-mdd-section-item href="${c}">${s.innerText}</px-mdd-section-item>` : "";
|
|
831
893
|
}).join("")}
|
|
832
|
-
${[...
|
|
833
|
-
(
|
|
834
|
-
).join("")}`, b(this,
|
|
835
|
-
|
|
894
|
+
${[...a].filter((s) => !s.hasAttribute("promoted")).map(
|
|
895
|
+
(s) => `<px-mdd-a href="${s.getAttribute("href")}" slot="footer">${s.innerText}</px-mdd-a>`
|
|
896
|
+
).join("")}`, b(this, B, vt).call(this).forEach((s) => {
|
|
897
|
+
s && this.$megaDropDown.appendChild(s);
|
|
836
898
|
});
|
|
837
899
|
}
|
|
838
900
|
get $megaDropDown() {
|
|
839
901
|
return this.shadowRoot.querySelector("px-mdd");
|
|
840
902
|
}
|
|
841
903
|
}
|
|
842
|
-
N = new WeakMap(),
|
|
843
|
-
const e = this.closest("px-header"),
|
|
904
|
+
N = new WeakMap(), B = new WeakSet(), vt = function() {
|
|
905
|
+
const e = this.closest("px-header"), o = e.querySelector(
|
|
844
906
|
'px-dropdown[slot="target-group"]'
|
|
845
|
-
),
|
|
907
|
+
), a = e.querySelector(
|
|
846
908
|
'px-dropdown[slot="user-language"]'
|
|
847
|
-
),
|
|
909
|
+
), n = o == null ? void 0 : o.cloneNode(
|
|
848
910
|
!0
|
|
849
911
|
);
|
|
850
|
-
|
|
851
|
-
const
|
|
912
|
+
n == null || n.removeAttribute("id"), n == null || n.setAttribute("slot", "mdd-footer"), n == null || n.setAttribute("grow", "3"), n == null || n.setAttribute("anchoralignment", "top-left");
|
|
913
|
+
const s = a == null ? void 0 : a.cloneNode(
|
|
852
914
|
!0
|
|
853
915
|
);
|
|
854
|
-
return
|
|
916
|
+
return s == null || s.removeAttribute("id"), s == null || s.setAttribute("slot", "mdd-footer"), s == null || s.setAttribute("grow", "1"), s == null || s.setAttribute("anchoralignment", "top-right"), [n, s];
|
|
855
917
|
};
|
|
856
|
-
customElements.get("px-header-mobile-menu") || customElements.define("px-header-mobile-menu",
|
|
918
|
+
customElements.get("px-header-mobile-menu") || customElements.define("px-header-mobile-menu", me);
|
|
857
919
|
export {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
920
|
+
ge as Header,
|
|
921
|
+
Mt as HeaderItem,
|
|
922
|
+
me as HeaderMobileMenu
|
|
861
923
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-header",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.120",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"clean": "rm -rf dist",
|
|
14
14
|
"build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
|
|
15
15
|
"test": "vitest run --coverage",
|
|
16
|
-
"wc-manifest": "cem analyze --globs \"src/*\" --config
|
|
16
|
+
"wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|