@proximus/lavender-header 2.0.0-alpha.97 → 2.0.0-alpha.99
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/index.es.js +210 -196
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var G = (r) => {
|
|
2
2
|
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var d = (r, t, e) => (
|
|
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
6
|
import "@proximus/lavender-button-icon";
|
|
7
7
|
import "@proximus/lavender-cell";
|
|
8
|
-
import { WithExtraAttributes as
|
|
8
|
+
import { WithExtraAttributes as X, fontsizeValues as wt, PxElement as zt, transferAccessibilityAttributes as $t, fontweightValues as At, colorValues as St, log as R, checkName as Ct, WrappedInteractiveStateController as Et } from "@proximus/lavender-common";
|
|
9
9
|
import "@proximus/lavender-layout";
|
|
10
10
|
import "@proximus/lavender-container";
|
|
11
11
|
import "@proximus/lavender-button";
|
|
12
12
|
import "@proximus/lavender-section";
|
|
13
|
-
const Tt = ":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)}button:hover,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)}}",
|
|
14
|
-
|
|
15
|
-
class
|
|
13
|
+
const Tt = ":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)}button:hover,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)}}", rt = new CSSStyleSheet();
|
|
14
|
+
rt.replaceSync(Tt);
|
|
15
|
+
class Lt 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 = [rt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.role = "listitem", this.internals && (this.internals.role = "listitem");
|
|
21
21
|
}
|
|
22
22
|
static get observedAttributes() {
|
|
23
23
|
return ["for", "href"];
|
|
@@ -64,12 +64,12 @@ class Mt extends J {
|
|
|
64
64
|
return this.shadowRoot.querySelector("a");
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
customElements.get("px-header-item") || customElements.define("px-header-item",
|
|
68
|
-
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)}}`, qt = ".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();
|
|
67
|
+
customElements.get("px-header-item") || customElements.define("px-header-item", Lt);
|
|
68
|
+
const Mt = ':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)}}', Rt = `.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)}", at = new CSSStyleSheet(), it = new CSSStyleSheet(), nt = new CSSStyleSheet();
|
|
69
|
+
at.replaceSync(Mt);
|
|
69
70
|
it.replaceSync(Rt);
|
|
70
|
-
nt.replaceSync(
|
|
71
|
-
|
|
72
|
-
const It = [...zt, "link-m", "link-s"], Nt = [
|
|
71
|
+
nt.replaceSync(Pt);
|
|
72
|
+
const jt = [...wt, "link-m", "link-s"], qt = [
|
|
73
73
|
"link",
|
|
74
74
|
"no-style",
|
|
75
75
|
"skip-link",
|
|
@@ -77,9 +77,9 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
77
77
|
"btn-secondary",
|
|
78
78
|
"btn-tertiary",
|
|
79
79
|
"icon-link"
|
|
80
|
-
], Ot = ["", "default", "alternative"], O = class O extends
|
|
80
|
+
], Ot = ["", "default", "alternative"], O = class O extends zt {
|
|
81
81
|
constructor() {
|
|
82
|
-
super(it, nt
|
|
82
|
+
super(at, it, nt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
83
83
|
const t = document.createElement(O.nativeName);
|
|
84
84
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
85
85
|
}
|
|
@@ -106,7 +106,7 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
106
106
|
];
|
|
107
107
|
}
|
|
108
108
|
connectedCallback() {
|
|
109
|
-
this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after),
|
|
109
|
+
this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), $t(this, this.$el, !1);
|
|
110
110
|
}
|
|
111
111
|
disconnectedCallback() {
|
|
112
112
|
}
|
|
@@ -138,14 +138,14 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
138
138
|
t,
|
|
139
139
|
e,
|
|
140
140
|
o,
|
|
141
|
-
|
|
141
|
+
jt
|
|
142
142
|
);
|
|
143
143
|
break;
|
|
144
144
|
case "color":
|
|
145
|
-
this.updateTypography(t, e, o,
|
|
145
|
+
this.updateTypography(t, e, o, St);
|
|
146
146
|
break;
|
|
147
147
|
case "font-weight":
|
|
148
|
-
this.updateTypography(t, e, o,
|
|
148
|
+
this.updateTypography(t, e, o, At);
|
|
149
149
|
break;
|
|
150
150
|
case "title":
|
|
151
151
|
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
@@ -170,13 +170,13 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
170
170
|
this.$el.classList.toggle(t);
|
|
171
171
|
}
|
|
172
172
|
updateVariant(t, e) {
|
|
173
|
-
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(
|
|
173
|
+
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(qt, e) || R(
|
|
174
174
|
`${e} is not an allowed variant value for ${this.tagName.toLowerCase()}`
|
|
175
175
|
), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
176
176
|
}
|
|
177
177
|
updateShape(t, e, o) {
|
|
178
|
-
if (!
|
|
179
|
-
|
|
178
|
+
if (!Ct(o, e)) {
|
|
179
|
+
R(
|
|
180
180
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
181
181
|
);
|
|
182
182
|
return;
|
|
@@ -184,7 +184,7 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
184
184
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
185
185
|
}
|
|
186
186
|
updateTypography(t, e, o, a) {
|
|
187
|
-
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) ||
|
|
187
|
+
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(
|
|
188
188
|
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
189
189
|
);
|
|
190
190
|
}
|
|
@@ -306,18 +306,18 @@ const It = [...zt, "link-m", "link-s"], Nt = [
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
O.nativeName = "a";
|
|
309
|
-
let
|
|
310
|
-
customElements.get("px-a") || customElements.define("px-a",
|
|
311
|
-
var m,
|
|
312
|
-
class
|
|
309
|
+
let P = O;
|
|
310
|
+
customElements.get("px-a") || customElements.define("px-a", P);
|
|
311
|
+
var m, I, st;
|
|
312
|
+
class It extends P {
|
|
313
313
|
constructor() {
|
|
314
314
|
super();
|
|
315
|
-
u(this,
|
|
315
|
+
u(this, I);
|
|
316
316
|
u(this, m);
|
|
317
|
-
this.$el.classList.add("wrapper"),
|
|
317
|
+
this.$el.classList.add("wrapper"), A(this, m, new Et(
|
|
318
318
|
this,
|
|
319
319
|
this.$el,
|
|
320
|
-
() => b(this,
|
|
320
|
+
() => b(this, I, st).call(this)
|
|
321
321
|
));
|
|
322
322
|
}
|
|
323
323
|
connectedCallback() {
|
|
@@ -338,11 +338,11 @@ class Pt extends q {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
m = new WeakMap(),
|
|
341
|
+
m = new WeakMap(), I = new WeakSet(), st = function() {
|
|
342
342
|
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
343
343
|
};
|
|
344
|
-
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper",
|
|
345
|
-
class
|
|
344
|
+
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", It);
|
|
345
|
+
class Nt extends HTMLElement {
|
|
346
346
|
constructor() {
|
|
347
347
|
super(), this.template = `<px-a font-weight="title" font-size="body-l" color="brand" variant="no-style">
|
|
348
348
|
<slot></slot>
|
|
@@ -353,133 +353,133 @@ class Bt extends HTMLElement {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
customElements.get("px-mdd-a") || customElements.define("px-mdd-a",
|
|
357
|
-
const
|
|
358
|
-
function
|
|
356
|
+
customElements.get("px-mdd-a") || customElements.define("px-mdd-a", Nt);
|
|
357
|
+
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)}}";
|
|
358
|
+
function j(r) {
|
|
359
359
|
var t = typeof r;
|
|
360
360
|
return r != null && (t == "object" || t == "function");
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
return
|
|
364
|
-
},
|
|
365
|
-
function
|
|
366
|
-
for (var t = r.length; t-- &&
|
|
362
|
+
var Ht = typeof global == "object" && global && global.Object === Object && global, Dt = typeof self == "object" && self && self.Object === Object && self, dt = Ht || Dt || Function("return this")(), _ = function() {
|
|
363
|
+
return dt.Date.now();
|
|
364
|
+
}, Wt = /\s/;
|
|
365
|
+
function Ft(r) {
|
|
366
|
+
for (var t = r.length; t-- && Wt.test(r.charAt(t)); )
|
|
367
367
|
;
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
|
-
var
|
|
371
|
-
function
|
|
372
|
-
return r && r.slice(0,
|
|
370
|
+
var _t = /^\s+/;
|
|
371
|
+
function Ut(r) {
|
|
372
|
+
return r && r.slice(0, Ft(r) + 1).replace(_t, "");
|
|
373
373
|
}
|
|
374
|
-
var
|
|
375
|
-
function
|
|
376
|
-
var t =
|
|
374
|
+
var q = dt.Symbol, lt = Object.prototype, Yt = lt.hasOwnProperty, Zt = lt.toString, S = q ? q.toStringTag : void 0;
|
|
375
|
+
function Xt(r) {
|
|
376
|
+
var t = Yt.call(r, S), e = r[S];
|
|
377
377
|
try {
|
|
378
|
-
r[
|
|
378
|
+
r[S] = void 0;
|
|
379
379
|
var o = !0;
|
|
380
380
|
} catch {
|
|
381
381
|
}
|
|
382
|
-
var a =
|
|
383
|
-
return o && (t ? r[
|
|
382
|
+
var a = Zt.call(r);
|
|
383
|
+
return o && (t ? r[S] = e : delete r[S]), a;
|
|
384
384
|
}
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
return
|
|
385
|
+
var Jt = Object.prototype, Kt = Jt.toString;
|
|
386
|
+
function Qt(r) {
|
|
387
|
+
return Kt.call(r);
|
|
388
388
|
}
|
|
389
|
-
var
|
|
390
|
-
function
|
|
391
|
-
return r == null ? r === void 0 ?
|
|
389
|
+
var Gt = "[object Null]", Vt = "[object Undefined]", V = q ? q.toStringTag : void 0;
|
|
390
|
+
function te(r) {
|
|
391
|
+
return r == null ? r === void 0 ? Vt : Gt : V && V in Object(r) ? Xt(r) : Qt(r);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function ee(r) {
|
|
394
394
|
return r != null && typeof r == "object";
|
|
395
395
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
398
|
-
return typeof r == "symbol" ||
|
|
396
|
+
var oe = "[object Symbol]";
|
|
397
|
+
function re(r) {
|
|
398
|
+
return typeof r == "symbol" || ee(r) && te(r) == oe;
|
|
399
399
|
}
|
|
400
|
-
var
|
|
401
|
-
function
|
|
400
|
+
var tt = NaN, ae = /^[-+]0x[0-9a-f]+$/i, ie = /^0b[01]+$/i, ne = /^0o[0-7]+$/i, se = parseInt;
|
|
401
|
+
function et(r) {
|
|
402
402
|
if (typeof r == "number")
|
|
403
403
|
return r;
|
|
404
|
-
if (
|
|
405
|
-
return
|
|
406
|
-
if (
|
|
404
|
+
if (re(r))
|
|
405
|
+
return tt;
|
|
406
|
+
if (j(r)) {
|
|
407
407
|
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
408
|
-
r =
|
|
408
|
+
r = j(t) ? t + "" : t;
|
|
409
409
|
}
|
|
410
410
|
if (typeof r != "string")
|
|
411
411
|
return r === 0 ? r : +r;
|
|
412
|
-
r =
|
|
413
|
-
var e =
|
|
414
|
-
return e ||
|
|
412
|
+
r = Ut(r);
|
|
413
|
+
var e = ie.test(r);
|
|
414
|
+
return e || ne.test(r) ? se(r.slice(2), e ? 2 : 8) : ae.test(r) ? tt : +r;
|
|
415
415
|
}
|
|
416
|
-
var
|
|
417
|
-
function
|
|
418
|
-
var o, a,
|
|
416
|
+
var de = "Expected a function", le = Math.max, pe = Math.min;
|
|
417
|
+
function ce(r, t, e) {
|
|
418
|
+
var o, a, n, s, l, c, x = 0, z = !1, h = !1, H = !0;
|
|
419
419
|
if (typeof r != "function")
|
|
420
|
-
throw new TypeError(
|
|
421
|
-
t =
|
|
420
|
+
throw new TypeError(de);
|
|
421
|
+
t = et(t) || 0, j(e) && (z = !!e.leading, h = "maxWait" in e, n = h ? le(et(e.maxWait) || 0, t) : n, H = "trailing" in e ? !!e.trailing : H);
|
|
422
422
|
function D(p) {
|
|
423
|
-
var
|
|
424
|
-
return o = a = void 0,
|
|
423
|
+
var g = o, $ = a;
|
|
424
|
+
return o = a = void 0, x = p, s = r.apply($, g), s;
|
|
425
|
+
}
|
|
426
|
+
function vt(p) {
|
|
427
|
+
return x = p, l = setTimeout(L, t), z ? D(p) : s;
|
|
425
428
|
}
|
|
426
429
|
function mt(p) {
|
|
427
|
-
|
|
430
|
+
var g = p - c, $ = p - x, Q = t - g;
|
|
431
|
+
return h ? pe(Q, n - $) : Q;
|
|
428
432
|
}
|
|
429
|
-
function
|
|
430
|
-
var
|
|
431
|
-
return
|
|
433
|
+
function J(p) {
|
|
434
|
+
var g = p - c, $ = p - x;
|
|
435
|
+
return c === void 0 || g >= t || g < 0 || h && $ >= n;
|
|
432
436
|
}
|
|
433
|
-
function
|
|
434
|
-
var
|
|
435
|
-
|
|
437
|
+
function L() {
|
|
438
|
+
var p = _();
|
|
439
|
+
if (J(p))
|
|
440
|
+
return K(p);
|
|
441
|
+
l = setTimeout(L, mt(p));
|
|
436
442
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
439
|
-
if (K(p))
|
|
440
|
-
return Q(p);
|
|
441
|
-
l = setTimeout(M, kt(p));
|
|
443
|
+
function K(p) {
|
|
444
|
+
return l = void 0, H && o ? D(p) : (o = a = void 0, s);
|
|
442
445
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
446
|
+
function kt() {
|
|
447
|
+
l !== void 0 && clearTimeout(l), x = 0, o = c = a = l = void 0;
|
|
445
448
|
}
|
|
446
449
|
function yt() {
|
|
447
|
-
l
|
|
450
|
+
return l === void 0 ? s : K(_());
|
|
448
451
|
}
|
|
449
|
-
function
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
function F() {
|
|
453
|
-
var p = U(), x = K(p);
|
|
454
|
-
if (o = arguments, a = this, c = p, x) {
|
|
452
|
+
function W() {
|
|
453
|
+
var p = _(), g = J(p);
|
|
454
|
+
if (o = arguments, a = this, c = p, g) {
|
|
455
455
|
if (l === void 0)
|
|
456
|
-
return
|
|
456
|
+
return vt(c);
|
|
457
457
|
if (h)
|
|
458
|
-
return clearTimeout(l), l = setTimeout(
|
|
458
|
+
return clearTimeout(l), l = setTimeout(L, t), D(c);
|
|
459
459
|
}
|
|
460
|
-
return l === void 0 && (l = setTimeout(
|
|
460
|
+
return l === void 0 && (l = setTimeout(L, t)), s;
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return W.cancel = kt, W.flush = yt, W;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
function
|
|
464
|
+
var be = "Expected a function";
|
|
465
|
+
function ue(r, t, e) {
|
|
466
466
|
var o = !0, a = !0;
|
|
467
467
|
if (typeof r != "function")
|
|
468
|
-
throw new TypeError(
|
|
469
|
-
return
|
|
468
|
+
throw new TypeError(be);
|
|
469
|
+
return j(e) && (o = "leading" in e ? !!e.leading : o, a = "trailing" in e ? !!e.trailing : a), ce(r, t, {
|
|
470
470
|
leading: o,
|
|
471
471
|
maxWait: t,
|
|
472
472
|
trailing: a
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
var T, i,
|
|
479
|
-
class ge extends
|
|
475
|
+
const pt = new CSSStyleSheet();
|
|
476
|
+
pt.replaceSync(Bt);
|
|
477
|
+
const he = "Menu";
|
|
478
|
+
var T, i, ct, U, Y, bt, Z, f, C, E, v;
|
|
479
|
+
class ge extends X {
|
|
480
480
|
constructor() {
|
|
481
481
|
var e;
|
|
482
|
-
super(
|
|
482
|
+
super(pt);
|
|
483
483
|
u(this, i);
|
|
484
484
|
u(this, T);
|
|
485
485
|
this.template = `
|
|
@@ -519,8 +519,8 @@ class ge extends J {
|
|
|
519
519
|
<div id="backdrop-filter"></div>
|
|
520
520
|
<slot name="main"></slot>
|
|
521
521
|
</div>
|
|
522
|
-
`,
|
|
523
|
-
window.innerWidth >= 768 && (b(this, i,
|
|
522
|
+
`, A(this, T, () => {
|
|
523
|
+
window.innerWidth >= 768 && (b(this, i, bt).call(this), b(this, i, ct).call(this));
|
|
524
524
|
}), this.shadowRoot.innerHTML = this.template, this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.role = "navigation", this.internals && (this.internals.role = "navigation");
|
|
525
525
|
}
|
|
526
526
|
connectedCallback() {
|
|
@@ -528,27 +528,27 @@ class ge extends J {
|
|
|
528
528
|
const o = e.target.closest(
|
|
529
529
|
"px-header-item"
|
|
530
530
|
);
|
|
531
|
-
o && o.for && (e.target.checked === !1 ? (this.$backdropFilter.style.display = "block", d(this, i,
|
|
531
|
+
o && o.for && (e.target.checked === !1 ? (this.$backdropFilter.style.display = "block", d(this, i, C).forEach((a) => {
|
|
532
532
|
a.checked = !1;
|
|
533
|
-
}), o.checked = !0, b(this, i,
|
|
533
|
+
}), o.checked = !0, b(this, i, U).call(this, e.target.for)) : b(this, i, Z).call(this));
|
|
534
534
|
}), this.addEventListener("section-item-click", (e) => {
|
|
535
|
-
this.$backdropFilter.style.display = "block", d(this, i,
|
|
535
|
+
this.$backdropFilter.style.display = "block", d(this, i, C).forEach((o) => {
|
|
536
536
|
o.checked = !1;
|
|
537
537
|
}), this.querySelector(
|
|
538
538
|
`px-header-item[for="${e.detail.for}"]`
|
|
539
|
-
).checked = !0, b(this, i,
|
|
539
|
+
).checked = !0, b(this, i, U).call(this, e.detail.for);
|
|
540
540
|
}), this.addEventListener("back-to-mobile-menu", () => {
|
|
541
|
-
this.$backdropFilter.style.display = "block", d(this, i,
|
|
541
|
+
this.$backdropFilter.style.display = "block", d(this, i, C).forEach((e) => {
|
|
542
542
|
e.checked = !1;
|
|
543
|
-
}), b(this, i,
|
|
543
|
+
}), b(this, i, Y).call(this);
|
|
544
544
|
}), this.$burgerMenu.addEventListener("click", () => {
|
|
545
|
-
this.$burgerMenu.setAttribute("aria-expanded", "true"), b(this, i,
|
|
545
|
+
this.$burgerMenu.setAttribute("aria-expanded", "true"), b(this, i, Y).call(this);
|
|
546
546
|
}), this.addEventListener("close-panel", () => {
|
|
547
|
-
b(this, i,
|
|
547
|
+
b(this, i, Z).call(this), this.$burgerMenu.setAttribute("aria-expanded", "false");
|
|
548
548
|
}), this.addEventListener(
|
|
549
549
|
"close-panel-from-dialog",
|
|
550
550
|
(e) => {
|
|
551
|
-
this.dispatchEvent(new CustomEvent("close-panel")), e.detail.clientY < d(this, i,
|
|
551
|
+
this.dispatchEvent(new CustomEvent("close-panel")), e.detail.clientY < d(this, i, E).getBoundingClientRect().bottom && requestAnimationFrame(() => {
|
|
552
552
|
var o;
|
|
553
553
|
(o = document.elementFromPoint(
|
|
554
554
|
e.detail.clientX,
|
|
@@ -556,7 +556,7 @@ class ge extends J {
|
|
|
556
556
|
)) == null || o.click();
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
), !this.$targetGroupDropdown && !this.$userLanguageDropdown && (this.$dropDownZoneDesktop.style.display = "none"), this.primaryNavigationAriaLabel || this.setAttribute("primary-navigation-aria-label",
|
|
559
|
+
), !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));
|
|
560
560
|
}
|
|
561
561
|
static get observedAttributes() {
|
|
562
562
|
return [
|
|
@@ -570,8 +570,8 @@ class ge extends J {
|
|
|
570
570
|
if (o !== a)
|
|
571
571
|
switch (e) {
|
|
572
572
|
case "close-button-aria-label":
|
|
573
|
-
d(this, i, v).forEach((
|
|
574
|
-
|
|
573
|
+
d(this, i, v).forEach((n) => {
|
|
574
|
+
n.setAttribute("close-button-aria-label", a);
|
|
575
575
|
});
|
|
576
576
|
break;
|
|
577
577
|
case "burger-menu-aria-label":
|
|
@@ -581,8 +581,8 @@ class ge extends J {
|
|
|
581
581
|
this.$primaryNavigation.setAttribute("aria-label", a);
|
|
582
582
|
break;
|
|
583
583
|
case "back-to-menu-label":
|
|
584
|
-
d(this, i, v).forEach((
|
|
585
|
-
|
|
584
|
+
d(this, i, v).forEach((n) => {
|
|
585
|
+
n.setAttribute("back-to-menu-label", a);
|
|
586
586
|
});
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
@@ -633,75 +633,78 @@ class ge extends J {
|
|
|
633
633
|
e ? this.setAttribute("primary-navigation-aria-label", e) : this.removeAttribute("primary-navigation-aria-label");
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
T = new WeakMap(), i = new WeakSet(),
|
|
637
|
-
const e = this.querySelectorAll("px-mdd"), o = d(this, i,
|
|
636
|
+
T = new WeakMap(), i = new WeakSet(), ct = function() {
|
|
637
|
+
const e = this.querySelectorAll("px-mdd"), o = d(this, i, E).getBoundingClientRect().bottom;
|
|
638
638
|
e.forEach((a) => {
|
|
639
639
|
a.dialogOffsetTop = `${o}px`;
|
|
640
640
|
});
|
|
641
|
-
},
|
|
641
|
+
}, U = function(e) {
|
|
642
642
|
d(this, i, f).$megaDropDown.hidden = !0, d(this, i, v).forEach((o) => {
|
|
643
|
-
o.name === e && o.hidden && (o.dialogOffsetTop = `${d(this, i,
|
|
643
|
+
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);
|
|
644
644
|
});
|
|
645
|
-
},
|
|
645
|
+
}, Y = function() {
|
|
646
646
|
this.$backdropFilter.style.display = "none", d(this, i, v).forEach((e) => {
|
|
647
647
|
e.hidden || (e.hidden = !0);
|
|
648
|
-
}), d(this, i, f).$megaDropDown.dialogOffsetTop = `${d(this, i,
|
|
649
|
-
},
|
|
648
|
+
}), 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";
|
|
649
|
+
}, bt = function() {
|
|
650
650
|
d(this, i, f) && (d(this, i, f).$megaDropDown.hidden = !0, this.$burgerMenu.setAttribute("aria-expanded", "false"), Array.from(d(this, i, v)).some(
|
|
651
651
|
(o) => !o.hidden
|
|
652
652
|
) || (document.body.style.overflow = "auto", this.$backdropFilter.style.display = "none"));
|
|
653
|
-
},
|
|
654
|
-
this.$backdropFilter.style.display = "none", d(this, i, f).$megaDropDown.hidden = !0, d(this, i,
|
|
653
|
+
}, Z = function() {
|
|
654
|
+
this.$backdropFilter.style.display = "none", d(this, i, f).$megaDropDown.hidden = !0, d(this, i, C).forEach((e) => {
|
|
655
655
|
e.checked = !1;
|
|
656
656
|
}), d(this, i, v).forEach((e) => {
|
|
657
657
|
e.hidden = !0;
|
|
658
658
|
}), document.body.style.overflow = "auto";
|
|
659
659
|
}, f = function() {
|
|
660
660
|
return this.querySelector("px-header-mobile-menu");
|
|
661
|
-
},
|
|
661
|
+
}, C = function() {
|
|
662
662
|
return this.querySelectorAll("px-header-item");
|
|
663
|
-
},
|
|
663
|
+
}, E = function() {
|
|
664
664
|
return this.shadowRoot.querySelector("header");
|
|
665
665
|
}, v = function() {
|
|
666
666
|
return this.querySelectorAll("px-mdd");
|
|
667
667
|
};
|
|
668
668
|
customElements.get("px-header") || customElements.define("px-header", ge);
|
|
669
|
-
const
|
|
669
|
+
const xe = ':host{position:relative}::slotted([slot="popover"]){position:absolute;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 = [
|
|
670
670
|
"top-left",
|
|
671
671
|
"top-right",
|
|
672
672
|
"bottom-left",
|
|
673
673
|
"bottom-right"
|
|
674
674
|
];
|
|
675
|
-
function
|
|
675
|
+
function ot(r, t, e = "bottom-left", o, a = !1) {
|
|
676
676
|
"anchorName" in document.documentElement.style && a === !1 || t.addEventListener("toggle", () => {
|
|
677
|
-
var
|
|
677
|
+
var z, h;
|
|
678
678
|
if (!r || !t)
|
|
679
679
|
return;
|
|
680
|
-
const
|
|
680
|
+
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(
|
|
681
681
|
(o.getPropertyValue("--px-icon-size-xs-desktop") || "24").replace("px", "")
|
|
682
682
|
);
|
|
683
|
-
["top-left", "top-right"].includes(e) ? (t.style.bottom = `calc( ${c} + ${
|
|
683
|
+
["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`);
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
var
|
|
690
|
-
class
|
|
686
|
+
const ut = new CSSStyleSheet();
|
|
687
|
+
ut.replaceSync(xe);
|
|
688
|
+
const M = "bottom-left";
|
|
689
|
+
var w, ht, k, y, gt;
|
|
690
|
+
class ve extends X {
|
|
691
691
|
constructor() {
|
|
692
|
-
super(
|
|
693
|
-
u(this, $);
|
|
694
|
-
u(this, y);
|
|
692
|
+
super(ut);
|
|
695
693
|
u(this, w);
|
|
696
|
-
u(this,
|
|
694
|
+
u(this, k);
|
|
695
|
+
u(this, y);
|
|
697
696
|
this.template = () => `
|
|
698
697
|
<style>${this.css}</style>
|
|
699
698
|
<slot name="trigger"></slot>
|
|
700
|
-
<slot name="popover"></slot>`, this.isAboutToClose = !1,
|
|
701
|
-
this.isAboutToClose || (this.$popoverElement.togglePopover({ source: this.$trigger }), this.$trigger.ariaExpanded = "true");
|
|
702
|
-
}
|
|
703
|
-
this
|
|
704
|
-
}
|
|
699
|
+
<slot name="popover"></slot>`, this.isAboutToClose = !1, this.triggerPopoverDisplay = () => {
|
|
700
|
+
this.isAboutToClose || (this.$popoverElement.togglePopover({ source: this.$trigger }), this.manualToggle || (this.$trigger.ariaExpanded = "true"));
|
|
701
|
+
}, this.showPopover = () => {
|
|
702
|
+
this.isAboutToClose || this.$popoverElement.showPopover();
|
|
703
|
+
}, this.hidePopover = () => {
|
|
704
|
+
this.$popoverElement.hidePopover();
|
|
705
|
+
}, A(this, k, () => {
|
|
706
|
+
this.$popoverElement.matches(":popover-open") && (this.isAboutToClose = !0, this.manualToggle || (this.$trigger.ariaExpanded = "false"));
|
|
707
|
+
}), A(this, y, () => {
|
|
705
708
|
this.$popoverElement.matches(":popover-open") || setTimeout(() => {
|
|
706
709
|
this.isAboutToClose = !1;
|
|
707
710
|
});
|
|
@@ -750,14 +753,15 @@ class me extends J {
|
|
|
750
753
|
...super.observedAttributes,
|
|
751
754
|
"id",
|
|
752
755
|
"anchoralignment",
|
|
753
|
-
"use-polyfill"
|
|
756
|
+
"use-polyfill",
|
|
757
|
+
"manual-toggle"
|
|
754
758
|
];
|
|
755
759
|
}
|
|
756
760
|
connectedCallback() {
|
|
757
761
|
this.getAttribute("id") || this.setAttribute(
|
|
758
762
|
"id",
|
|
759
763
|
`px-dropdown-${Math.random().toString(36).substring(2, 15)}`
|
|
760
|
-
), this.getAttribute("anchoralignment") || this.setAttribute("anchoralignment",
|
|
764
|
+
), this.getAttribute("anchoralignment") || this.setAttribute("anchoralignment", M), ot(
|
|
761
765
|
this.$trigger,
|
|
762
766
|
this.$popoverElement,
|
|
763
767
|
this.anchorAlignment,
|
|
@@ -766,13 +770,14 @@ class me extends J {
|
|
|
766
770
|
);
|
|
767
771
|
}
|
|
768
772
|
attributeChangedCallback(e, o, a) {
|
|
773
|
+
var n;
|
|
769
774
|
if (o !== a)
|
|
770
775
|
switch (e) {
|
|
771
776
|
case "id":
|
|
772
777
|
this.initPopover();
|
|
773
778
|
break;
|
|
774
779
|
case "use-polyfill":
|
|
775
|
-
|
|
780
|
+
ot(
|
|
776
781
|
this.$trigger,
|
|
777
782
|
this.$popoverElement,
|
|
778
783
|
this.anchorAlignment,
|
|
@@ -780,13 +785,16 @@ class me extends J {
|
|
|
780
785
|
this.usePolyfill
|
|
781
786
|
);
|
|
782
787
|
break;
|
|
788
|
+
case "manual-toggle":
|
|
789
|
+
a != null && ((n = this.$trigger) == null || n.removeAttribute("aria-expanded"));
|
|
790
|
+
break;
|
|
783
791
|
default:
|
|
784
792
|
super.attributeChangedCallback(e, o, a);
|
|
785
793
|
break;
|
|
786
794
|
}
|
|
787
795
|
}
|
|
788
796
|
initPopover() {
|
|
789
|
-
this.$trigger && (this.$trigger.setAttribute("popovertarget", this.popoverId), this.$trigger.setAttribute("aria-controls", this.
|
|
797
|
+
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, ht).call(this), b(this, w, gt).call(this));
|
|
790
798
|
}
|
|
791
799
|
get popoverId() {
|
|
792
800
|
return `${this.getAttribute("id")}-popover`;
|
|
@@ -804,12 +812,12 @@ class me extends J {
|
|
|
804
812
|
return this.querySelector('[slot="popover"]');
|
|
805
813
|
}
|
|
806
814
|
get anchorAlignment() {
|
|
807
|
-
return this.getAttribute("anchoralignment") ||
|
|
815
|
+
return this.getAttribute("anchoralignment") || M;
|
|
808
816
|
}
|
|
809
817
|
set anchorAlignment(e) {
|
|
810
|
-
|
|
811
|
-
`Invalid anchor alignment value: ${e}. Using default ${
|
|
812
|
-
), this.setAttribute("anchoralignment",
|
|
818
|
+
fe.includes(e) ? this.setAttribute("anchoralignment", e) : (R(
|
|
819
|
+
`Invalid anchor alignment value: ${e}. Using default ${M}.`
|
|
820
|
+
), this.setAttribute("anchoralignment", M));
|
|
813
821
|
}
|
|
814
822
|
get usePolyfill() {
|
|
815
823
|
return this.hasAttribute("use-polyfill");
|
|
@@ -817,13 +825,19 @@ class me extends J {
|
|
|
817
825
|
set usePolyfill(e) {
|
|
818
826
|
e ? this.setAttribute("use-polyfill", "") : this.removeAttribute("use-polyfill");
|
|
819
827
|
}
|
|
828
|
+
get manualToggle() {
|
|
829
|
+
return this.hasAttribute("manual-toggle");
|
|
830
|
+
}
|
|
831
|
+
set manualToggle(e) {
|
|
832
|
+
e ? this.setAttribute("manual-toggle", "") : this.removeAttribute("manual-toggle");
|
|
833
|
+
}
|
|
820
834
|
}
|
|
821
|
-
|
|
822
|
-
this.isAboutToClose = !1, this.$trigger.removeEventListener("click",
|
|
835
|
+
w = new WeakSet(), ht = function() {
|
|
836
|
+
this.isAboutToClose = !1, this.manualToggle || this.$trigger.removeEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.removeEventListener(
|
|
823
837
|
"beforetoggle",
|
|
824
|
-
d(this,
|
|
825
|
-
), this.$popoverElement.removeEventListener("toggle", d(this,
|
|
826
|
-
},
|
|
838
|
+
d(this, k)
|
|
839
|
+
), this.$popoverElement.removeEventListener("toggle", d(this, y));
|
|
840
|
+
}, k = new WeakMap(), y = new WeakMap(), /**
|
|
827
841
|
* Handles the manual display of the popover when the trigger is clicked.
|
|
828
842
|
* This is necessary for cases where the trigger is not a button or input element.
|
|
829
843
|
* This method adds event listeners to the trigger element to toggle the popover.
|
|
@@ -831,23 +845,23 @@ $ = new WeakSet(), xt = function() {
|
|
|
831
845
|
* race conditions when the popover is toggled and the trigger click event is fired.
|
|
832
846
|
*/
|
|
833
847
|
gt = function() {
|
|
834
|
-
this.$trigger &&
|
|
848
|
+
this.$trigger && (this.manualToggle || this.$trigger.addEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.addEventListener("beforetoggle", d(this, k)), this.$popoverElement.addEventListener("toggle", d(this, y)));
|
|
835
849
|
};
|
|
836
|
-
customElements.get("px-dropdown") || customElements.define("px-dropdown",
|
|
837
|
-
const
|
|
838
|
-
|
|
850
|
+
customElements.get("px-dropdown") || customElements.define("px-dropdown", ve);
|
|
851
|
+
const xt = new CSSStyleSheet();
|
|
852
|
+
xt.replaceSync(`
|
|
839
853
|
@media screen and (min-width: 48rem) {
|
|
840
854
|
:host {
|
|
841
855
|
display: none;
|
|
842
856
|
}
|
|
843
857
|
}
|
|
844
858
|
`);
|
|
845
|
-
var
|
|
846
|
-
class
|
|
859
|
+
var N, B, ft;
|
|
860
|
+
class me extends HTMLElement {
|
|
847
861
|
constructor() {
|
|
848
862
|
super();
|
|
849
|
-
u(this,
|
|
850
|
-
u(this,
|
|
863
|
+
u(this, B);
|
|
864
|
+
u(this, N, `<px-mdd
|
|
851
865
|
name="__lavender_mobile_menu"
|
|
852
866
|
hidden--tablet
|
|
853
867
|
hidden--laptop
|
|
@@ -856,7 +870,7 @@ class ke extends HTMLElement {
|
|
|
856
870
|
<span slot="title"><slot name="title"></slot></span>
|
|
857
871
|
<px-mdd-section title-hidden></px-mdd-section>
|
|
858
872
|
</px-mdd>`);
|
|
859
|
-
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this,
|
|
873
|
+
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this, N), this.shadowRoot.adoptedStyleSheets = [xt];
|
|
860
874
|
}
|
|
861
875
|
connectedCallback() {
|
|
862
876
|
this.setAttribute("slot", "header-panels");
|
|
@@ -865,39 +879,39 @@ class ke extends HTMLElement {
|
|
|
865
879
|
throw new Error(
|
|
866
880
|
"<px-header-mobile-menu> must be used within a <px-header>."
|
|
867
881
|
);
|
|
868
|
-
const o = e.querySelectorAll("px-header-item"), a = e.querySelectorAll("px-action-link"),
|
|
869
|
-
|
|
870
|
-
${[...o].map((
|
|
871
|
-
const l =
|
|
872
|
-
return l ? `<px-mdd-section-item for="${l}">${
|
|
882
|
+
const o = e.querySelectorAll("px-header-item"), a = e.querySelectorAll("px-action-link"), n = this.shadowRoot.querySelector("px-mdd-section");
|
|
883
|
+
n.innerHTML = `
|
|
884
|
+
${[...o].map((s) => {
|
|
885
|
+
const l = s.getAttribute("for"), c = s.getAttribute("href");
|
|
886
|
+
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>` : "";
|
|
873
887
|
}).join("")}
|
|
874
|
-
${[...a].filter((
|
|
875
|
-
(
|
|
876
|
-
).join("")}`, b(this,
|
|
877
|
-
|
|
888
|
+
${[...a].filter((s) => !s.hasAttribute("promoted")).map(
|
|
889
|
+
(s) => `<px-mdd-a href="${s.getAttribute("href")}" slot="footer">${s.innerText}</px-mdd-a>`
|
|
890
|
+
).join("")}`, b(this, B, ft).call(this).forEach((s) => {
|
|
891
|
+
s && this.$megaDropDown.appendChild(s);
|
|
878
892
|
});
|
|
879
893
|
}
|
|
880
894
|
get $megaDropDown() {
|
|
881
895
|
return this.shadowRoot.querySelector("px-mdd");
|
|
882
896
|
}
|
|
883
897
|
}
|
|
884
|
-
|
|
898
|
+
N = new WeakMap(), B = new WeakSet(), ft = function() {
|
|
885
899
|
const e = this.closest("px-header"), o = e.querySelector(
|
|
886
900
|
'px-dropdown[slot="target-group"]'
|
|
887
901
|
), a = e.querySelector(
|
|
888
902
|
'px-dropdown[slot="user-language"]'
|
|
889
|
-
),
|
|
903
|
+
), n = o == null ? void 0 : o.cloneNode(
|
|
890
904
|
!0
|
|
891
905
|
);
|
|
892
|
-
|
|
893
|
-
const
|
|
906
|
+
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");
|
|
907
|
+
const s = a == null ? void 0 : a.cloneNode(
|
|
894
908
|
!0
|
|
895
909
|
);
|
|
896
|
-
return
|
|
910
|
+
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];
|
|
897
911
|
};
|
|
898
|
-
customElements.get("px-header-mobile-menu") || customElements.define("px-header-mobile-menu",
|
|
912
|
+
customElements.get("px-header-mobile-menu") || customElements.define("px-header-mobile-menu", me);
|
|
899
913
|
export {
|
|
900
914
|
ge as Header,
|
|
901
|
-
|
|
902
|
-
|
|
915
|
+
Lt as HeaderItem,
|
|
916
|
+
me as HeaderMobileMenu
|
|
903
917
|
};
|