@proximus/lavender-mega-dropdown 2.0.0-alpha.1 → 2.0.0-alpha.100

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.
Files changed (2) hide show
  1. package/dist/index.es.js +748 -457
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,16 +1,16 @@
1
- var J = (s) => {
1
+ var ot = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var Q = (s, t, e) => t.has(s) || J("Cannot " + e);
5
- var n = (s, t, e) => (Q(s, t, "read from private field"), e ? e.call(s) : t.get(s)), x = (s, t, e) => t.has(s) ? J("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), y = (s, t, e, o) => (Q(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
6
- import { PxElement as f, transferAccessibilityAttributes as N, checkName as q, WithExtraAttributes as Lt, iconSizeValuesKC as Tt, textalignValues as V, colorValues as D, headingValues as tt, cssTokenBreakpoints as c, paddingValues as b, boxShadowValues as Et, backgroundSizeValues as Bt, noBorderRadiusValues as Mt, borderRadiusValues as Rt, borderSideValues as It, borderValues as Pt, gradientValues as qt, backgroundColorValues as et, borderColorValues as Dt, fontweightValues as ot, fontsizeValues as rt } from "@proximus/lavender-common";
4
+ var I = (s, t, e) => t.has(s) || ot("Cannot " + e);
5
+ var n = (s, t, e) => (I(s, t, "read from private field"), e ? e.call(s) : t.get(s)), c = (s, t, e) => t.has(s) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), k = (s, t, e, r) => (I(s, t, "write to private field"), r ? r.call(s, e) : t.set(s, e), e), P = (s, t, e) => (I(s, t, "access private method"), e);
6
+ import { PxElement as $, transferAccessibilityAttributes as it, log as d, checkName as w, WrappedInteractiveStateController as at, WithExtraAttributes as st, iconSizeValuesKC as qt, textalignValues as nt, colorValues as Y, headingValues as dt, cssTokenBreakpoints as h, paddingValues as u, gapValues as Dt, boxShadowValues as jt, backgroundSizeValues as Nt, noBorderRadiusValues as _t, borderRadiusValues as Wt, borderSideValues as Ft, borderValues as Gt, gradientValues as Yt, backgroundColorValues as lt, borderColorValues as Xt, fontweightValues as pt, fontsizeValues as bt } from "@proximus/lavender-common";
7
7
  import "@proximus/lavender-layout";
8
- const it = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-state-hover-bordered-default);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown{display:flex;justify-content:space-between;width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);touch-action:manipulation}.btn.header-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-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-state-hover-bordered-inverted );color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em) and (min-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 64.0625em){.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, at = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', _t = ".patch{display:inline-flex;align-items:center;padding:0 var(--px-padding-s-mobile);height:1.625em;border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);text-align:center;background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1441px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Ht = ":host:has(.tag){display:inline-block}.tag{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-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media only screen and (min-width: 1025px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", st = new CSSStyleSheet(), nt = new CSSStyleSheet(), dt = new CSSStyleSheet(), lt = new CSSStyleSheet();
9
- st.replaceSync(it);
10
- nt.replaceSync(at);
11
- dt.replaceSync(_t);
12
- lt.replaceSync(Ht);
13
- const Ot = [
8
+ const ct = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-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)}}`, ht = ':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)}}', Zt = ".patch{display:inline-flex;align-items:center;padding:var(--px-padding-3xs-mobile) var(--px-padding-s-mobile);border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media screen and (min-width: 64.0625rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media screen and (min-width: 90.0625rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Kt = ":host:has(.tag){display:inline-block}.tag{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-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media screen and (min-width: 64.0625rem){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", gt = new CSSStyleSheet(), ut = new CSSStyleSheet(), xt = new CSSStyleSheet(), vt = new CSSStyleSheet();
9
+ gt.replaceSync(ct);
10
+ ut.replaceSync(ht);
11
+ xt.replaceSync(Zt);
12
+ vt.replaceSync(Kt);
13
+ const Ut = [
14
14
  "",
15
15
  "default",
16
16
  "secondary",
@@ -21,16 +21,17 @@ const Ot = [
21
21
  "patch-black-friday",
22
22
  "patch-eco",
23
23
  "actionable-tag",
24
- "header-dropdown"
25
- ], Ft = [
24
+ "header-dropdown",
25
+ "header-minimal-dropdown"
26
+ ], Jt = [
26
27
  "",
27
28
  "default",
28
29
  "bottom-right",
29
30
  "bottom-left",
30
31
  "alternative"
31
- ], H = class H extends f {
32
+ ], Z = class Z extends $ {
32
33
  constructor() {
33
- super(st, nt, dt, lt), this.template = () => `<button class="btn">
34
+ super(gt, ut, xt, vt), this.template = () => `<button class="btn">
34
35
  <slot name="before"></slot><slot></slot><slot name="after"></slot>
35
36
  </button>`, this.shadowRoot.innerHTML = this.template();
36
37
  }
@@ -55,60 +56,64 @@ const Ot = [
55
56
  ];
56
57
  }
57
58
  connectedCallback() {
58
- super.connectedCallback();
59
59
  const t = this.querySelectorAll("px-icon");
60
60
  t && t.forEach((e) => {
61
- const o = e.getAttribute("size"), r = e.getAttribute("color");
61
+ const r = e.getAttribute("size"), o = e.getAttribute("color");
62
62
  e && (e.addEventListener("click", () => {
63
63
  this.$el.focus();
64
- }), o || e.setAttribute("size", "xs"), r || e.setAttribute("color", "inherit"));
65
- }), N(this, this.$el), this.$el.type === "submit" && this.addEventListener("click", (e) => {
66
- var o;
67
- e.preventDefault(), (o = this.closest("form")) == null || o.submit();
64
+ }), r || e.setAttribute("size", "xs"), o || e.setAttribute("color", "inherit"));
65
+ }), it(this, this.$el, !0), this.$el.type === "submit" && this.addEventListener("click", (e) => {
66
+ var r;
67
+ e.preventDefault(), (r = this.closest("form")) == null || r.submit();
68
68
  }), this.$el.type === "reset" && this.addEventListener("click", (e) => {
69
- var o;
70
- e.preventDefault(), (o = this.closest("form")) == null || o.reset();
69
+ var r;
70
+ e.preventDefault(), (r = this.closest("form")) == null || r.reset();
71
71
  });
72
72
  }
73
- attributeChangedCallback(t, e, o) {
74
- if (e !== o)
73
+ disconnectedCallback() {
74
+ }
75
+ attributeChangedCallback(t, e, r) {
76
+ if (e !== r)
75
77
  switch (t) {
76
78
  case "variant":
77
- this.updateVariant(e, o);
79
+ this.updateVariant(e, r);
78
80
  break;
79
81
  case "state":
80
- this.updateState(e, o);
82
+ this.updateState(e, r);
81
83
  break;
82
84
  case "extended":
83
85
  case "extended--mobile":
84
86
  case "extended--tablet":
85
87
  case "extended--laptop":
86
88
  case "extended--desktop":
87
- this.updateExtended(t, o);
89
+ this.updateExtended(t, r);
88
90
  break;
89
91
  case "loading":
90
92
  this.updateLoading();
91
93
  break;
94
+ case "disabled":
95
+ super.attributeChangedCallback(t, e, r);
96
+ break;
92
97
  case "shape":
93
98
  case "shape--mobile":
94
99
  case "shape--tablet":
95
100
  case "shape--laptop":
96
101
  case "shape--desktop":
97
- this.updateShape(t, o, Ft);
102
+ this.updateShape(t, r, Jt);
98
103
  break;
99
104
  case "aria-expanded":
100
- o && (this.$el.setAttribute("aria-expanded", o), this.removeAttribute("aria-expanded"));
105
+ r && (this.$el.setAttribute("aria-expanded", r), this.removeAttribute("aria-expanded"));
101
106
  break;
102
107
  default:
103
- super.attributeChangedCallback(t, e, o);
108
+ super.attributeChangedCallback(t, e, r);
104
109
  break;
105
110
  }
106
111
  }
107
112
  checkClass(t) {
108
113
  if (t.startsWith("patch-")) {
109
114
  const e = t.split(/-(.*)/s);
110
- for (const o of e)
111
- o != "" && this.$el.classList.toggle(o);
115
+ for (const r of e)
116
+ r != "" && this.$el.classList.toggle(r);
112
117
  } else
113
118
  this.$el.classList.toggle(t);
114
119
  }
@@ -116,13 +121,15 @@ const Ot = [
116
121
  t !== null && t !== "" && t !== "default" && this.checkClass(t), e !== null && e !== "" && e !== "default" && this.checkClass(e);
117
122
  }
118
123
  updateVariant(t, e) {
119
- e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(Ot, e) || console.error(
120
- `${e} is not a valid "variant" value for ${e}`
124
+ e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(Ut, e) || d(
125
+ `${e} is not a valid "variant" value for ${this.tagName.toLowerCase()}`
121
126
  );
122
127
  }
123
128
  updateState(t, e) {
124
- const o = ["", "default", "success", "error"];
125
- this._toggleClass(t, e), this.checkName(o, e) || console.error(`${e} is not a valid "sate" value`);
129
+ const r = ["", "default", "success", "error"];
130
+ this._toggleClass(t, e), this.checkName(r, e) || d(
131
+ `${e} is not a valid "sate" value for ${this.tagName.toLowerCase()}`
132
+ );
126
133
  }
127
134
  updateExtended(t, e) {
128
135
  e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
@@ -131,9 +138,11 @@ const Ot = [
131
138
  const t = this.querySelector("px-spinner");
132
139
  t && (t.getAttribute("size") || t.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
133
140
  }
134
- updateShape(t, e, o) {
135
- if (!q(o, e)) {
136
- console.error(`${e} is not a valid shape value`);
141
+ updateShape(t, e, r) {
142
+ if (!w(r, e)) {
143
+ d(
144
+ `${e} is not a valid shape value for ${this.tagName.toLowerCase()}`
145
+ );
137
146
  return;
138
147
  }
139
148
  e !== null && e !== "" && this.$el.setAttribute(t, e);
@@ -229,10 +238,47 @@ const Ot = [
229
238
  t ? this.setAttribute("aria-expanded", t) : this.removeAttribute("aria-expanded");
230
239
  }
231
240
  };
232
- H.nativeName = "button";
233
- let $ = H;
234
- customElements.get("px-button") || customElements.define("px-button", $);
235
- class Wt extends HTMLElement {
241
+ Z.nativeName = "button";
242
+ let C = Z;
243
+ customElements.get("px-button") || customElements.define("px-button", C);
244
+ var x, T, mt;
245
+ class Qt extends C {
246
+ constructor() {
247
+ super();
248
+ c(this, T);
249
+ c(this, x);
250
+ this.$el.classList.remove("btn"), this.$el.classList.add("wrapper"), k(this, x, new at(
251
+ this,
252
+ this.$el,
253
+ () => P(this, T, mt).call(this)
254
+ ));
255
+ }
256
+ connectedCallback() {
257
+ super.connectedCallback(), n(this, x).connect();
258
+ }
259
+ disconnectedCallback() {
260
+ super.disconnectedCallback(), n(this, x).disconnect();
261
+ }
262
+ attributeChangedCallback(e, r, o) {
263
+ if (r !== o)
264
+ switch (e) {
265
+ case "loading":
266
+ super.attributeChangedCallback(e, r, o), o !== null && n(this, x).clearInteractiveState();
267
+ break;
268
+ case "disabled":
269
+ super.attributeChangedCallback(e, r, o), o !== null && n(this, x).clearInteractiveState();
270
+ break;
271
+ default:
272
+ super.attributeChangedCallback(e, r, o);
273
+ break;
274
+ }
275
+ }
276
+ }
277
+ x = new WeakMap(), T = new WeakSet(), mt = function() {
278
+ return !this.hasAttribute("disabled") && !this.$el.hasAttribute("disabled") && this.getAttribute("aria-disabled") !== "true" && this.$el.getAttribute("aria-disabled") !== "true" && !this.hasAttribute("loading");
279
+ };
280
+ customElements.get("px-button-wrapper") || customElements.define("px-button-wrapper", Qt);
281
+ class Vt extends HTMLElement {
236
282
  constructor() {
237
283
  super();
238
284
  }
@@ -265,9 +311,10 @@ class Wt extends HTMLElement {
265
311
  t && t.remove();
266
312
  }
267
313
  }
268
- customElements.get("px-icon-set") || customElements.define("px-icon-set", Wt);
269
- const jt = [
314
+ customElements.get("px-icon-set") || customElements.define("px-icon-set", Vt);
315
+ const te = [
270
316
  "Brand",
317
+ "Accent",
271
318
  "Neutral",
272
319
  "Dimmed",
273
320
  "PurposeSuccess",
@@ -278,78 +325,81 @@ const jt = [
278
325
  "StateHover",
279
326
  "StateActive",
280
327
  "StateDisabled"
281
- ], Yt = ["Inherit", ...jt].map(
328
+ ], ee = ["Inherit", ...te].map(
282
329
  (s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
283
- ), Zt = ":host{display:inline-flex;flex-direction:column;justify-content:center}svg{font-size:var(--px-size-icon-s);line-height:var(--px-font-line-height-xs);width:1em;height:1em;color:var(--px-color-icon-brand-default)}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", pt = new CSSStyleSheet();
284
- pt.replaceSync(Zt);
285
- const Gt = [
286
- "name",
287
- "size",
288
- "color",
289
- "aria-label",
290
- "inverted",
291
- "from",
292
- "disabled"
293
- ];
294
- var u, p, z;
295
- class Kt extends Lt {
330
+ ), re = ":host{display:inline-flex;flex-direction:column;justify-content:center}svg{font-size:var(--px-size-icon-s);line-height:var(--px-font-line-height-xs);width:1em;height:1em;color:var(--px-color-icon-accent-default)}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", ft = new CSSStyleSheet();
331
+ ft.replaceSync(re);
332
+ var m, b, E;
333
+ class oe extends st {
296
334
  constructor(...e) {
297
- var o;
298
- super(...e, pt);
299
- x(this, u);
300
- x(this, p);
301
- x(this, z, () => `<svg aria-hidden="true">
302
- <use xlink:href="#icon-${this.name}"></use>
335
+ var r;
336
+ super(...e, ft);
337
+ c(this, m);
338
+ c(this, b);
339
+ c(this, E, () => `<svg aria-hidden="true">
340
+ <use></use>
303
341
  </svg>`);
304
- this.shadowRoot.innerHTML = n(this, z).call(this), y(this, p, (o = this.attachInternals) == null ? void 0 : o.call(this)), n(this, p) && (n(this, p).role = "img");
342
+ this.shadowRoot.innerHTML = n(this, E).call(this), k(this, b, (r = this.attachInternals) == null ? void 0 : r.call(this)), n(this, b) && (n(this, b).role = "img");
305
343
  }
306
344
  static get observedAttributes() {
307
- return [...super.observedAttributes, ...Gt];
345
+ return [
346
+ ...super.observedAttributes,
347
+ "name",
348
+ "size",
349
+ "color",
350
+ "aria-label",
351
+ "inverted",
352
+ "from",
353
+ "disabled"
354
+ ];
308
355
  }
309
- attributeChangedCallback(e, o, r) {
310
- if (o !== r)
356
+ attributeChangedCallback(e, r, o) {
357
+ if (r !== o)
311
358
  switch (e) {
312
359
  case "name":
313
- this.updateName(o, r);
360
+ this.updateName(r, o);
314
361
  break;
315
362
  case "size":
316
- this.updateAttribute(e, o, r, Tt);
363
+ this.updateAttribute(e, r, o, qt);
317
364
  break;
318
365
  case "color":
319
- this.updateAttribute(e, o, r, Yt);
366
+ this.updateAttribute(e, r, o, ee);
320
367
  break;
321
368
  case "disabled":
322
369
  this.color = "state-disabled";
323
370
  break;
324
371
  case "aria-label":
325
- if (!n(this, p))
372
+ if (!n(this, b))
326
373
  return;
327
- r ? n(this, p).ariaHidden = "false" : n(this, p).ariaHidden = "true";
374
+ o ? (n(this, b).ariaHidden = "false", this.ariaHidden = "false") : (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
328
375
  break;
329
376
  }
330
377
  }
331
378
  connectedCallback() {
379
+ this.role = "img";
332
380
  const e = document.querySelectorAll("px-icon-set");
333
381
  e || console.log("<px-icon-set> component not found");
334
- for (const o of e) {
335
- if (!o.getAttribute("name") || !o.getAttribute("src")) {
382
+ for (const r of e) {
383
+ if (!r.getAttribute("name") || !r.getAttribute("src")) {
336
384
  console.error("Icon name or src not found");
337
385
  continue;
338
386
  }
339
- o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (y(this, u, o.getAttribute("src")), this.$el.firstElementChild.setAttribute(
340
- "xlink:href",
341
- `${n(this, u)}#icon-${this.name}`
387
+ r.getAttribute("name") === this.from && r.getAttribute("type") !== "font" && (k(this, m, r.getAttribute("src")), this.$el.firstElementChild.setAttribute(
388
+ "href",
389
+ `${n(this, m)}#icon-${this.name}`
342
390
  ));
343
391
  }
344
- !this.ariaLabel && n(this, p) && (n(this, p).ariaHidden = "true");
392
+ !this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
345
393
  }
346
- updateAttribute(e, o, r, i) {
347
- o !== null && o !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${o}`) : this.$el.classList.toggle(o)), r !== null && r !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${r}`) : this.$el.classList.toggle(r)), this.checkName(i, r) || console.error(`${r} is not an allowed ${e} value`);
394
+ updateAttribute(e, r, o, i) {
395
+ r !== null && r !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${r}`) : this.$el.classList.toggle(r)), o !== null && o !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${o}`) : this.$el.classList.toggle(o)), this.checkName(i, o) || d(
396
+ `${o} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
397
+ );
348
398
  }
349
- updateName(e, o) {
350
- n(this, u) && this.$el.firstElementChild.setAttribute(
351
- "xlink:href",
352
- `${n(this, u)}#icon-${o}`
399
+ updateName(e, r) {
400
+ n(this, m) && this.$el.firstElementChild.setAttribute(
401
+ "href",
402
+ `${n(this, m)}#icon-${r}`
353
403
  );
354
404
  }
355
405
  get $el() {
@@ -398,18 +448,18 @@ class Kt extends Lt {
398
448
  this.setAttribute("disabled", e);
399
449
  }
400
450
  }
401
- u = new WeakMap(), p = new WeakMap(), z = new WeakMap();
402
- customElements.get("px-icon") || customElements.define("px-icon", Kt);
403
- const bt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-l-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-m-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-base-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-l-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media only screen and (min-width: 1025px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media screen and (min-width: 1441px){h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}}", _ = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media only screen and (min-width: 64.0625em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", ct = new CSSStyleSheet();
404
- ct.replaceSync(bt);
405
- const ht = new CSSStyleSheet();
406
- ht.replaceSync(_);
407
- class m extends f {
451
+ m = new WeakMap(), b = new WeakMap(), E = new WeakMap();
452
+ customElements.get("px-icon") || customElements.define("px-icon", oe);
453
+ const kt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media screen and (min-width: 48rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media screen and (min-width: 64.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media screen and (min-width: 90.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", X = ".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)}", yt = new CSSStyleSheet();
454
+ yt.replaceSync(kt);
455
+ const At = new CSSStyleSheet();
456
+ At.replaceSync(X);
457
+ class A extends $ {
408
458
  template() {
409
459
  return "<slot></slot>";
410
460
  }
411
461
  constructor(t) {
412
- super(ct, ht);
462
+ super(yt, At);
413
463
  const e = document.createElement(t);
414
464
  e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
415
465
  }
@@ -423,42 +473,47 @@ class m extends f {
423
473
  "text-align--tablet",
424
474
  "text-align--laptop",
425
475
  "text-align--desktop",
426
- "inverted"
476
+ "inverted",
477
+ "auto-spacing"
427
478
  ];
428
479
  }
429
- attributeChangedCallback(t, e, o) {
430
- if (e !== o)
480
+ attributeChangedCallback(t, e, r) {
481
+ if (e !== r)
431
482
  switch (t) {
432
483
  case "variant":
433
- this.updateAttribute(t, e, o, tt);
484
+ this.updateAttribute(t, e, r, dt);
434
485
  break;
435
486
  case "color":
436
- this.updateColor(e, o, D);
487
+ this.updateColor(e, r, Y);
437
488
  break;
438
489
  case "text-align":
439
490
  case "text-align--mobile":
440
491
  case "text-align--tablet":
441
492
  case "text-align--laptop":
442
493
  case "text-align--desktop":
443
- this.updateTextAlign(t, e, o, V);
494
+ this.updateTextAlign(t, e, r, nt);
444
495
  break;
445
496
  default:
446
- super.attributeChangedCallback(t, e, o);
497
+ super.attributeChangedCallback(t, e, r);
447
498
  break;
448
499
  }
449
500
  }
450
501
  toggleClass(t, e) {
451
502
  t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
452
503
  }
453
- updateAttribute(t, e, o, r) {
454
- this.checkName(r, o) ? this.toggleClass(e, o) : console.error(`${o} is not an allowed "${t}" value`);
504
+ updateAttribute(t, e, r, o) {
505
+ this.checkName(o, r) ? this.toggleClass(e, r) : d(
506
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
507
+ );
455
508
  }
456
- updateColor(t, e, o) {
457
- if (!this.checkName(o, e)) {
458
- console.error(`${e} is not a valid color value`);
509
+ updateColor(t, e, r) {
510
+ if (!this.checkName(r, e)) {
511
+ d(
512
+ `${e} is not an allowed color value for ${this.tagName.toLowerCase()}`
513
+ );
459
514
  return;
460
515
  }
461
- const r = (i) => {
516
+ const o = (i) => {
462
517
  i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
463
518
  "--heading-color-default",
464
519
  `var(--px-color-text-${i}-default)`
@@ -467,26 +522,28 @@ class m extends f {
467
522
  `var(--px-color-text-${i}-inverted)`
468
523
  ));
469
524
  };
470
- r(t), r(e);
525
+ o(t), o(e);
471
526
  }
472
- updateTextAlign(t, e, o, r) {
473
- if (!this.checkName(r, o)) {
474
- console.error(`${o} is not a valid value for ${t}`);
527
+ updateTextAlign(t, e, r, o) {
528
+ if (!this.checkName(o, r)) {
529
+ d(
530
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
531
+ );
475
532
  return;
476
533
  }
477
- const i = (a, d) => {
478
- d !== null && d !== "" && d !== "default" && this.$el.style.setProperty(
534
+ const i = (a, l) => {
535
+ l !== null && l !== "" && l !== "default" && this.$el.style.setProperty(
479
536
  `--heading-text-align--${a}`,
480
- d
537
+ l
481
538
  );
482
539
  };
483
540
  if (t === "text-align")
484
541
  ["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
485
- i(a, e), i(a, o);
542
+ i(a, e), i(a, r);
486
543
  });
487
544
  else {
488
545
  const a = t.split("--")[1];
489
- i(a, e), i(a, o);
546
+ i(a, e), i(a, r);
490
547
  }
491
548
  }
492
549
  get variant() {
@@ -537,63 +594,69 @@ class m extends f {
537
594
  set inverted(t) {
538
595
  this.setAttribute("inverted", t);
539
596
  }
597
+ get autoSpacing() {
598
+ return this.hasAttribute("auto-spacing");
599
+ }
600
+ set autoSpacing(t) {
601
+ t ? this.setAttribute("auto-spacing", "") : this.removeAttribute("auto-spacing");
602
+ }
540
603
  }
541
- const O = class O extends m {
604
+ const K = class K extends A {
542
605
  constructor() {
543
606
  super("h1");
544
607
  }
545
608
  };
546
- O.nativeName = "h1";
547
- let S = O;
548
- customElements.get("px-h1") || customElements.define("px-h1", S);
549
- const F = class F extends m {
609
+ K.nativeName = "h1";
610
+ let H = K;
611
+ customElements.get("px-h1") || customElements.define("px-h1", H);
612
+ const U = class U extends A {
550
613
  constructor() {
551
614
  super("h2");
552
615
  }
553
616
  };
554
- F.nativeName = "h2";
555
- let w = F;
556
- customElements.get("px-h2") || customElements.define("px-h2", w);
557
- const W = class W extends m {
617
+ U.nativeName = "h2";
618
+ let O = U;
619
+ customElements.get("px-h2") || customElements.define("px-h2", O);
620
+ const J = class J extends A {
558
621
  constructor() {
559
622
  super("h3");
560
623
  }
561
624
  };
562
- W.nativeName = "h3";
563
- let C = W;
564
- customElements.get("px-h3") || customElements.define("px-h3", C);
565
- const j = class j extends m {
625
+ J.nativeName = "h3";
626
+ let q = J;
627
+ customElements.get("px-h3") || customElements.define("px-h3", q);
628
+ const Q = class Q extends A {
566
629
  constructor() {
567
630
  super("h4");
568
631
  }
569
632
  };
570
- j.nativeName = "h4";
571
- let L = j;
572
- customElements.get("px-h4") || customElements.define("px-h4", L);
573
- const Y = class Y extends m {
633
+ Q.nativeName = "h4";
634
+ let D = Q;
635
+ customElements.get("px-h4") || customElements.define("px-h4", D);
636
+ const V = class V extends A {
574
637
  constructor() {
575
638
  super("h5");
576
639
  }
577
640
  };
578
- Y.nativeName = "h5";
579
- let T = Y;
580
- customElements.get("px-h5") || customElements.define("px-h5", T);
581
- const Z = class Z extends m {
641
+ V.nativeName = "h5";
642
+ let j = V;
643
+ customElements.get("px-h5") || customElements.define("px-h5", j);
644
+ const tt = class tt extends A {
582
645
  constructor() {
583
646
  super("h6");
584
647
  }
585
648
  };
586
- Z.nativeName = "h6";
587
- let E = Z;
588
- customElements.get("px-h6") || customElements.define("px-h6", E);
589
- const Xt = ".separator{--separator-size: var(--px-size-border-m);--separator-direction--mobile-border-width: var(--separator-size) 0 0;--separator-direction--mobile-width: initial;--separator-direction--mobile-height: initial;clear:both;margin:0;border-style:solid;border-color:var( --separator-color-default, var(--px-color-border-main-default) );border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-horizontal--mobile{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--mobile{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}:host([inverted]) .separator{border-color:var( --separator-color-inverted, var(--px-color-border-main-inverted) )}@media only screen and (min-width: 768px){.separator-direction-horizontal--tablet{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--tablet{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media only screen and (min-width: 1025px){.separator-direction-horizontal--laptop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--laptop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media only screen and (min-width: 1441px){.separator-direction-horizontal--desktop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--desktop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}", gt = new CSSStyleSheet();
590
- gt.replaceSync(Xt);
591
- const Ut = [
649
+ tt.nativeName = "h6";
650
+ let N = tt;
651
+ customElements.get("px-h6") || customElements.define("px-h6", N);
652
+ const ie = ".separator{--separator-size: var(--px-size-border-m);--separator-direction--mobile-border-width: var(--separator-size) 0 0;--separator-direction--mobile-width: initial;--separator-direction--mobile-height: initial;clear:both;margin:0;border-style:solid;border-color:var( --separator-color-default, var(--px-color-border-main-default) );border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-horizontal--mobile{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--mobile{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}:host([inverted]) .separator{border-color:var( --separator-color-inverted, var(--px-color-border-main-inverted) )}@media screen and (min-width: 48rem){.separator-direction-horizontal--tablet{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--tablet{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media screen and (min-width: 64.0625rem){.separator-direction-horizontal--laptop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--laptop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media screen and (min-width: 90.0625rem){.separator-direction-horizontal--desktop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--desktop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}", zt = new CSSStyleSheet();
653
+ zt.replaceSync(ie);
654
+ const ae = [
592
655
  "",
593
656
  "default",
594
657
  "horizontal",
595
658
  "vertical"
596
- ], Jt = ["", "default", "none", "s", "m", "l"], Qt = [
659
+ ], se = ["", "default", "none", "s", "m", "l"], ne = [
597
660
  "",
598
661
  "main",
599
662
  "brand",
@@ -605,11 +668,11 @@ const Ut = [
605
668
  "purpose-unlimited",
606
669
  "state-hover",
607
670
  "state-active"
608
- ], G = class G extends f {
671
+ ], B = class B extends $ {
609
672
  constructor() {
610
673
  var e;
611
- super(gt);
612
- const t = document.createElement(this.nativeName);
674
+ super(zt);
675
+ const t = document.createElement(B.nativeName);
613
676
  t.classList.add("separator"), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.shadowRoot.appendChild(t);
614
677
  }
615
678
  static get observedAttributes() {
@@ -625,8 +688,8 @@ const Ut = [
625
688
  "inverted"
626
689
  ];
627
690
  }
628
- attributeChangedCallback(t, e, o) {
629
- if (e !== o)
691
+ attributeChangedCallback(t, e, r) {
692
+ if (e !== r)
630
693
  switch (t) {
631
694
  case "direction":
632
695
  case "direction--mobile":
@@ -636,31 +699,33 @@ const Ut = [
636
699
  this.updateDirection(
637
700
  t,
638
701
  e,
639
- o,
640
- Ut
702
+ r,
703
+ ae
641
704
  );
642
705
  break;
643
706
  case "size":
644
- this.updateSize(t, e, o, Jt);
707
+ this.updateSize(t, e, r, se);
645
708
  break;
646
709
  case "color":
647
- this.updateColor(t, e, o, Qt);
710
+ this.updateColor(t, e, r, ne);
648
711
  break;
649
712
  default:
650
- super.attributeChangedCallback(t, e, o);
713
+ super.attributeChangedCallback(t, e, r);
651
714
  break;
652
715
  }
653
716
  }
654
- updateSize(t, e, o, r) {
717
+ updateSize(t, e, r, o) {
655
718
  const i = (a) => {
656
719
  a !== null && a !== "" && a !== "default" && this.$el.style.setProperty(
657
720
  "--separator-size",
658
721
  `var(--px-size-border-${a})`
659
722
  );
660
723
  };
661
- this.checkName(r, o) ? (i(e), i(o)) : console.error(`${o} is not a valid value for ${t}`);
724
+ this.checkName(o, r) ? (i(e), i(r)) : d(
725
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
726
+ );
662
727
  }
663
- updateColor(t, e, o, r) {
728
+ updateColor(t, e, r, o) {
664
729
  const i = (a) => {
665
730
  a !== null && a !== "" && a !== "default" && (this.$el.style.setProperty(
666
731
  "--separator-color-default",
@@ -670,28 +735,32 @@ const Ut = [
670
735
  `var(--px-color-border-${a}-inverted)`
671
736
  ));
672
737
  };
673
- this.checkName(r, o) ? (i(e), i(o)) : console.error(`${o} is not a valid value for ${t}`);
738
+ this.checkName(o, r) ? (i(e), i(r)) : d(
739
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
740
+ );
674
741
  }
675
- updateDirection(t, e, o, r) {
676
- const i = (a, d) => {
677
- d !== null && d !== "" && d !== "default" && this.$el.classList.add(`separator-direction-${d}--${a}`);
742
+ updateDirection(t, e, r, o) {
743
+ const i = (a, l) => {
744
+ l !== null && l !== "" && l !== "default" && this.$el.classList.add(`separator-direction-${l}--${a}`);
678
745
  };
679
- if (!this.checkName(r, o))
680
- console.error(`${o} is not a valid value for ${t}`);
746
+ if (!this.checkName(o, r))
747
+ d(
748
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
749
+ );
681
750
  else if (t === "direction")
682
751
  ["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
683
752
  Array.from(this.$el.classList).find(
684
- (k) => k.startsWith("separator-direction-") && k.endsWith(`--${a}`)
685
- ) || i(a, o);
753
+ (z) => z.startsWith("separator-direction-") && z.endsWith(`--${a}`)
754
+ ) || i(a, r);
686
755
  });
687
756
  else {
688
- const a = t.split("--")[1], d = Array.from(this.$el.classList).find(
689
- (k) => k.startsWith("separator-direction-") && k.endsWith(`--${a}`)
757
+ const a = t.split("--")[1], l = Array.from(this.$el.classList).find(
758
+ (z) => z.startsWith("separator-direction-") && z.endsWith(`--${a}`)
690
759
  );
691
- d ? this.$el.classList.replace(
692
- d,
693
- `separator-direction-${o}--${a}`
694
- ) : i(a, o);
760
+ l ? this.$el.classList.replace(
761
+ l,
762
+ `separator-direction-${r}--${a}`
763
+ ) : i(a, r);
695
764
  }
696
765
  }
697
766
  get direction() {
@@ -743,66 +812,92 @@ const Ut = [
743
812
  this.setAttribute("inverted", t);
744
813
  }
745
814
  };
746
- G.nativeName = "hr";
747
- let B = G;
748
- customElements.get("px-separator") || customElements.define("px-separator", B);
749
- const Nt = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', Vt = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);background-image:var(--background-image);background:var(--background-gradient);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color));background-image:var( --background-image--mobile, var( --background-image, var(--background-gradient--mobile, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color));background-image:var( --background-image--tablet, var( --background-image, var(--background-gradient--tablet, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color));background-image:var( --background-image--laptop, var( --background-image, var(--background-gradient--laptop, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', ut = new CSSStyleSheet();
750
- ut.replaceSync(Vt);
751
- const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g = "px-padding", K = class K extends f {
815
+ B.nativeName = "hr";
816
+ let _ = B;
817
+ customElements.get("px-separator") || customElements.define("px-separator", _);
818
+ const de = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', le = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (max-width: 47.938rem){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (min-width: 64.0625rem){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}', wt = new CSSStyleSheet();
819
+ wt.replaceSync(le);
820
+ const pe = [
821
+ "top-patch",
822
+ "top-neighbor-patch",
823
+ "top-ribbon",
824
+ "top-neighbor-ribbon",
825
+ "top-patch-and-neighbor-ribbon"
826
+ ], be = [
827
+ "1",
828
+ "2",
829
+ "3",
830
+ "4",
831
+ "5",
832
+ "6",
833
+ "7",
834
+ "8",
835
+ "9",
836
+ "10",
837
+ "11",
838
+ "12"
839
+ ], g = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, v = "px-padding", ce = [
840
+ h(
841
+ "padding",
842
+ g,
843
+ u,
844
+ v,
845
+ "--container-padding"
846
+ ),
847
+ h(
848
+ "padding-inline",
849
+ g,
850
+ u,
851
+ v
852
+ ),
853
+ h(
854
+ "padding-block",
855
+ g,
856
+ u,
857
+ v
858
+ ),
859
+ h(
860
+ "padding-top",
861
+ g,
862
+ u,
863
+ v
864
+ ),
865
+ h(
866
+ "padding-right",
867
+ g,
868
+ u,
869
+ v,
870
+ "--container-padding-right"
871
+ ),
872
+ h(
873
+ "padding-bottom",
874
+ g,
875
+ u,
876
+ v
877
+ ),
878
+ h(
879
+ "padding-left",
880
+ g,
881
+ u,
882
+ v,
883
+ "--container-padding-left"
884
+ ),
885
+ h(
886
+ "gap",
887
+ g,
888
+ Dt,
889
+ "px-spacing",
890
+ void 0,
891
+ "subgrid-gap"
892
+ )
893
+ ], et = class et extends st {
752
894
  constructor() {
753
- super(
754
- ut,
755
- c(
756
- "padding",
757
- h,
758
- b,
759
- g,
760
- "--container-padding"
761
- ),
762
- c(
763
- "padding-inline",
764
- h,
765
- b,
766
- g
767
- ),
768
- c(
769
- "padding-block",
770
- h,
771
- b,
772
- g
773
- ),
774
- c(
775
- "padding-top",
776
- h,
777
- b,
778
- g
779
- ),
780
- c(
781
- "padding-right",
782
- h,
783
- b,
784
- g,
785
- "--container-padding-right"
786
- ),
787
- c(
788
- "padding-bottom",
789
- h,
790
- b,
791
- g
792
- ),
793
- c(
794
- "padding-left",
795
- h,
796
- b,
797
- g,
798
- "--container-padding-left"
799
- )
800
- ), this.template = () => `<div class="container">
801
- <slot name="anchor-left"></slot>
802
- <slot name="anchor-right"></slot>
803
- <slot name="anchor-full"></slot>
804
- <slot></slot>
805
- </div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
895
+ super(wt, ...ce), this.template = () => `<div class="container">
896
+ <slot></slot>
897
+ <slot name="anchor-left"></slot>
898
+ <slot name="anchor-right"></slot>
899
+ <slot name="anchor-full"></slot>
900
+ </div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
806
901
  }
807
902
  static get observedAttributes() {
808
903
  return [
@@ -834,44 +929,50 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
834
929
  "background-position",
835
930
  "box-shadow",
836
931
  "anchor-offset",
837
- "inverted"
932
+ "anchor-spacing",
933
+ "inverted",
934
+ "subgrid-rows"
838
935
  ];
839
936
  }
840
937
  connectedCallback() {
841
- super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main");
842
- const t = this.querySelector("[slot]");
843
- t && te.includes(t.getAttribute("slot")) && this.shadowRoot.querySelector(".container").classList.toggle("anchored"), this._bgObserver = new IntersectionObserver((e) => {
844
- e.forEach((o) => {
938
+ this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
939
+ this.$slotAnchor && this.addAnchorClass();
940
+ }), this.contentObserver.observe(this, {
941
+ childList: !0,
942
+ subtree: !0,
943
+ characterData: !0
944
+ }), this._bgObserver = new IntersectionObserver((t) => {
945
+ t.forEach((e) => {
845
946
  var r;
846
- o.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (r = this._bgObserver) == null || r.disconnect());
947
+ e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (r = this._bgObserver) == null || r.disconnect());
847
948
  });
848
949
  }), this._bgObserver.observe(this.$el);
849
950
  }
850
951
  disconnectedCallback() {
851
- var t;
852
- (t = this._bgObserver) == null || t.disconnect();
952
+ var t, e;
953
+ (t = this._bgObserver) == null || t.disconnect(), (e = this.contentObserver) == null || e.disconnect();
853
954
  }
854
- attributeChangedCallback(t, e, o) {
855
- if (e !== o)
955
+ attributeChangedCallback(t, e, r) {
956
+ if (e !== r)
856
957
  switch (t) {
857
958
  case "border":
858
- this.updateAttribute(t, e, o, Pt);
959
+ this.updateAttribute(t, e, r, Gt);
859
960
  break;
860
961
  case "border-color":
861
- this.updateBorderColor(t, o);
962
+ this.updateBorderColor(t, r);
862
963
  break;
863
964
  case "border-side":
864
965
  case "border-side--mobile":
865
966
  case "border-side--tablet":
866
967
  case "border-side--laptop":
867
- this.updateAttribute(t, e, o, It);
968
+ this.updateAttribute(t, e, r, Ft);
868
969
  break;
869
970
  case "border-radius":
870
971
  this.updateAttribute(
871
972
  t,
872
973
  e,
873
- o,
874
- Rt
974
+ r,
975
+ Wt
875
976
  );
876
977
  break;
877
978
  case "no-border-radius":
@@ -881,47 +982,58 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
881
982
  this.updateNoBorderRadius(
882
983
  t,
883
984
  e,
884
- o,
885
- Mt
985
+ r,
986
+ _t
886
987
  );
887
988
  break;
888
989
  case "background-color":
889
990
  case "background-color--mobile":
890
991
  case "background-color--tablet":
891
992
  case "background-color--laptop":
892
- this.updateBackgroundColor(t, o);
993
+ this.updateBackgroundColor(t, r);
893
994
  break;
894
995
  case "background-gradient":
895
996
  case "background-gradient--mobile":
896
997
  case "background-gradient--tablet":
897
998
  case "background-gradient--laptop":
898
- this.updateGradient(t, o);
999
+ this.updateGradient(t, r);
899
1000
  break;
900
1001
  case "background-size":
901
1002
  this.updateAttribute(
902
1003
  t,
903
1004
  e,
904
- o,
905
- Bt
1005
+ r,
1006
+ Nt
906
1007
  );
907
1008
  break;
908
1009
  case "background-image":
909
1010
  case "background-image--mobile":
910
1011
  case "background-image--tablet":
911
1012
  case "background-image--laptop":
912
- this._isInViewport && this.updateBackgroundImg(t, o);
1013
+ this._isInViewport && this.updateBackgroundImg(t, r);
913
1014
  break;
914
1015
  case "background-position":
915
- o !== null && o !== "" && (this.$el.style.backgroundPosition = o);
1016
+ r !== null && r !== "" && (this.$el.style.backgroundPosition = r);
916
1017
  break;
917
1018
  case "box-shadow":
918
- this.updateAttribute(t, e, o, Et);
1019
+ this.updateAttribute(t, e, r, jt);
919
1020
  break;
920
1021
  case "anchor-offset":
921
- this.updateAnchorOffset(e, o, b);
1022
+ this.updateAnchorOffset(e, r, u);
1023
+ break;
1024
+ case "anchor-spacing":
1025
+ this.updateAnchorSpacing(e, r, pe);
1026
+ break;
1027
+ case "subgrid-rows":
1028
+ this.updateSubgridRows(
1029
+ t,
1030
+ e,
1031
+ r,
1032
+ be
1033
+ );
922
1034
  break;
923
1035
  default:
924
- super.attributeChangedCallback(t, e, o);
1036
+ super.attributeChangedCallback(t, e, r);
925
1037
  break;
926
1038
  }
927
1039
  }
@@ -932,88 +1044,100 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
932
1044
  "background-image--tablet",
933
1045
  "background-image--laptop"
934
1046
  ].forEach((e) => {
935
- const o = this.getAttribute(e);
936
- o && this.updateBackgroundImg(e, o);
1047
+ const r = this.getAttribute(e);
1048
+ r && this.updateBackgroundImg(e, r);
937
1049
  });
938
1050
  }
939
1051
  updateBackgroundImg(t, e) {
940
1052
  this.$el.style.setProperty(`--${t}`, `url("${e}")`);
941
1053
  }
942
1054
  updateGradient(t, e) {
943
- if (this.checkName(qt, e)) {
944
- const o = this.splitAttrNameFromBreakpoint(t);
945
- t = o.attrName;
946
- const r = o.breakpoint;
1055
+ if (this.checkName(Yt, e)) {
1056
+ const r = this.splitAttrNameFromBreakpoint(t);
1057
+ t = r.attrName;
1058
+ const o = r.breakpoint;
947
1059
  this.$el.style.setProperty(
948
- `--${t}${r}`,
1060
+ `--${t}${o}`,
949
1061
  `linear-gradient(var(--px-color-background-gradient-${e}))`
950
1062
  );
951
1063
  } else
952
- console.error(`${e} is not an allowed background-gradient value`);
1064
+ d(
1065
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1066
+ );
953
1067
  }
954
1068
  updateBackgroundColor(t, e) {
955
- const o = e.startsWith("surface-");
956
- if (this.checkName(et, e)) {
957
- const r = this.splitAttrNameFromBreakpoint(t), i = r.breakpoint;
1069
+ const r = e.startsWith("surface-");
1070
+ if (this.checkName(lt, e)) {
1071
+ const o = this.splitAttrNameFromBreakpoint(t), i = o.breakpoint;
958
1072
  this.$el.style.setProperty(
959
- `--${r.attrName}${i}`,
960
- `var(--px-color-background-${e}${o ? "" : "-default"})`
1073
+ `--${o.attrName}${i}`,
1074
+ `var(--px-color-background-${e}${r ? "" : "-default"})`
961
1075
  ), this.$el.style.setProperty(
962
- `--${r.attrName}-inverted${i}`,
963
- `var(--px-color-background-${e}${o ? "" : "-inverted"})`
1076
+ `--${o.attrName}-inverted${i}`,
1077
+ `var(--px-color-background-${e}${r ? "" : "-inverted"})`
964
1078
  );
965
1079
  } else
966
- console.error(`${e} is not an allowed ${t} value`);
1080
+ d(
1081
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1082
+ );
967
1083
  }
968
1084
  updateBorderColor(t, e) {
969
- this.checkName(Dt, e) ? (this.$el.style.setProperty(
1085
+ this.checkName(Xt, e) ? (this.$el.style.setProperty(
970
1086
  `--${t}`,
971
1087
  `var(--px-color-border-${e}-default)`
972
1088
  ), this.$el.style.setProperty(
973
1089
  `--${t}-inverted`,
974
1090
  `var(--px-color-border-${e}-inverted)`
975
- )) : console.error(`${e} is not an allowed ${t} value`);
1091
+ )) : d(
1092
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1093
+ );
976
1094
  }
977
- updateNoBorderRadius(t, e, o, r) {
978
- if (!this.checkName(r, o))
979
- console.error(`${o} is not an allowed ${t} value`);
1095
+ updateNoBorderRadius(t, e, r, o) {
1096
+ if (!this.checkName(o, r))
1097
+ d(
1098
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1099
+ );
980
1100
  else {
981
1101
  const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
982
1102
  e !== null && e !== "" && this.$el.classList.toggle(
983
1103
  `${i.attrName}-${e}${a}`
984
- ), o !== null && o !== "" && this.$el.classList.toggle(
985
- `${i.attrName}-${o}${a}`
1104
+ ), r !== null && r !== "" && this.$el.classList.toggle(
1105
+ `${i.attrName}-${r}${a}`
986
1106
  );
987
1107
  }
988
1108
  }
989
- updateAttribute(t, e, o, r) {
990
- if (!this.checkName(r, o))
991
- console.error(`${o} is not an allowed ${t} value`);
1109
+ updateAttribute(t, e, r, o) {
1110
+ if (!this.checkName(o, r))
1111
+ d(
1112
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1113
+ );
992
1114
  else {
993
1115
  const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
994
1116
  e !== null && e !== "" && this.$el.classList.toggle(
995
1117
  `${i.attrName}-${e}${a}`
996
- ), o !== null && o !== "" && this.$el.classList.toggle(
997
- `${i.attrName}-${o}${a}`
1118
+ ), r !== null && r !== "" && this.$el.classList.toggle(
1119
+ `${i.attrName}-${r}${a}`
998
1120
  );
999
1121
  }
1000
1122
  }
1001
1123
  splitAttrNameFromBreakpoint(t) {
1002
1124
  let e = "";
1003
1125
  if (["--mobile", "--tablet", "--laptop"].some(
1004
- (o) => t.includes(o)
1126
+ (r) => t.includes(r)
1005
1127
  )) {
1006
- const o = t.split("--");
1007
- t = o[0], e = `--${o[1]}`;
1128
+ const r = t.split("--");
1129
+ t = r[0], e = `--${r[1]}`;
1008
1130
  }
1009
1131
  return { attrName: t, breakpoint: e };
1010
1132
  }
1011
- updateAnchorOffset(t, e, o) {
1012
- if (!q(o, e)) {
1013
- console.error(`${e} is not a valid anchor-offset value`);
1133
+ updateAnchorOffset(t, e, r) {
1134
+ if (!w(r, e)) {
1135
+ d(
1136
+ `${e} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
1137
+ );
1014
1138
  return;
1015
1139
  }
1016
- const r = (i) => {
1140
+ const o = (i) => {
1017
1141
  i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
1018
1142
  "--container-anchor-offset--mobile",
1019
1143
  `var(--px-padding-${i}-mobile)`
@@ -1025,7 +1149,46 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
1025
1149
  `var(--px-padding-${i}-laptop)`
1026
1150
  ));
1027
1151
  };
1028
- r(t), r(e);
1152
+ o(t), o(e);
1153
+ }
1154
+ addAnchorClass() {
1155
+ this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
1156
+ }
1157
+ updateAnchorSpacing(t, e, r) {
1158
+ if (!w(r, e)) {
1159
+ d(
1160
+ `${e} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
1161
+ );
1162
+ return;
1163
+ }
1164
+ const o = (i) => {
1165
+ i !== null && i !== "" && i !== "default" && (this.style.setProperty(
1166
+ "--container-anchor-spacing--mobile",
1167
+ `var(--px-spacing-${i}-mobile)`
1168
+ ), this.style.setProperty(
1169
+ "--container-anchor-spacing--tablet",
1170
+ `var(--px-spacing-${i}-tablet)`
1171
+ ), this.style.setProperty(
1172
+ "--container-anchor-spacing--laptop",
1173
+ `var(--px-spacing-${i}-laptop)`
1174
+ ), this.style.setProperty(
1175
+ "--container-anchor-spacing--desktop",
1176
+ `var(--px-spacing-${i}-desktop)`
1177
+ ));
1178
+ };
1179
+ o(t), o(e);
1180
+ }
1181
+ updateSubgridRows(t, e, r, o) {
1182
+ w(o, r) ? this.style.setProperty(`--${t}`, r) : d(
1183
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1184
+ );
1185
+ }
1186
+ get $el() {
1187
+ var t;
1188
+ return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
1189
+ }
1190
+ get $slotAnchor() {
1191
+ return this.querySelector('[slot^="anchor"]');
1029
1192
  }
1030
1193
  get padding() {
1031
1194
  return this.getAttribute("padding");
@@ -1357,23 +1520,59 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
1357
1520
  set anchorOffset(t) {
1358
1521
  this.setAttribute("anchor-offset", t);
1359
1522
  }
1523
+ get anchorSpacing() {
1524
+ return this.getAttribute("anchor-spacing");
1525
+ }
1526
+ set anchorSpacing(t) {
1527
+ this.setAttribute("anchor-spacing", t);
1528
+ }
1360
1529
  get inverted() {
1361
- return this.getAttribute("inverted");
1530
+ return this.hasAttribute("inverted");
1362
1531
  }
1363
1532
  set inverted(t) {
1364
- this.setAttribute("inverted", t);
1533
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
1534
+ }
1535
+ get subgridRows() {
1536
+ return this.getAttribute("subgrid-rows");
1537
+ }
1538
+ set subgridRows(t) {
1539
+ this.setAttribute("subgrid-rows", t);
1540
+ }
1541
+ get subgridGap() {
1542
+ return this.getAttribute("subgrid-gap");
1543
+ }
1544
+ set subgridGap(t) {
1545
+ this.setAttribute("subgrid-gap", t);
1546
+ }
1547
+ get subgridGapMobile() {
1548
+ return this.getAttribute("subgrid-gap--mobile");
1549
+ }
1550
+ set subgridGapMobile(t) {
1551
+ this.setAttribute("subgrid-gap--mobile", t);
1552
+ }
1553
+ get subgridGapTablet() {
1554
+ return this.getAttribute("subgrid-gap--tablet");
1555
+ }
1556
+ set subgridGapTablet(t) {
1557
+ this.setAttribute("subgrid-gap--tablet", t);
1558
+ }
1559
+ get subgridGapLaptop() {
1560
+ return this.getAttribute("subgrid-gap--laptop");
1561
+ }
1562
+ set subgridGapLaptop(t) {
1563
+ this.setAttribute("subgrid-gap--laptop", t);
1365
1564
  }
1366
1565
  };
1367
- K.nativeName = "div";
1368
- let M = K;
1369
- customElements.get("px-container") || customElements.define("px-container", M);
1370
- const xt = new CSSStyleSheet();
1371
- xt.replaceSync(Nt);
1372
- class ee extends HTMLElement {
1566
+ et.nativeName = "div";
1567
+ let W = et;
1568
+ customElements.get("px-container") || customElements.define("px-container", W);
1569
+ const $t = new CSSStyleSheet();
1570
+ $t.replaceSync(de);
1571
+ class he extends HTMLElement {
1373
1572
  constructor() {
1374
1573
  super(), this.template = () => `
1375
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1376
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1574
+ <px-container border-radius="none" padding-inline="none">
1575
+ <div class="content-wrapper">
1377
1576
  <px-vstack gap="heading-to-content">
1378
1577
  <slot name="heading"></slot>
1379
1578
  <px-vstack gap="none">
@@ -1385,11 +1584,14 @@ class ee extends HTMLElement {
1385
1584
  <div class="content-wrapper">
1386
1585
  <slot name="overlap"></slot>
1387
1586
  </div>
1388
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [xt];
1587
+ `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [$t];
1389
1588
  }
1390
1589
  connectedCallback() {
1391
- const t = this.querySelector('[slot="heading"]');
1392
- !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
1590
+ var t, e;
1591
+ this.$container.setAttribute("background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), (t = this.$slotHeading) == null || t.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), (e = this.$slotOverlap) == null || e.addEventListener(
1592
+ "slotchange",
1593
+ this.toggleOverlapSpacing
1594
+ );
1393
1595
  }
1394
1596
  static get observedAttributes() {
1395
1597
  return [
@@ -1420,92 +1622,136 @@ class ee extends HTMLElement {
1420
1622
  "border-side--laptop"
1421
1623
  ];
1422
1624
  }
1423
- get $container() {
1424
- return this.shadowRoot.querySelector("px-container");
1425
- }
1426
- attributeChangedCallback(t, e, o) {
1427
- if (e !== o)
1625
+ attributeChangedCallback(t, e, r) {
1626
+ if (e !== r)
1428
1627
  switch (t) {
1429
1628
  case "background-color":
1430
- this.$container.backgroundColor = et.indexOf(o) > 0 ? o : "none";
1629
+ this.$container.backgroundColor = lt.indexOf(r) > 0 ? r : "none";
1431
1630
  break;
1432
1631
  case "background-gradient":
1433
1632
  this.$container.gradient = this.gradient;
1434
1633
  break;
1435
1634
  case "background-image":
1436
- this.$container.backgroundImage = o;
1635
+ this.$container.backgroundImage = r;
1437
1636
  break;
1438
1637
  case "background-image--mobile":
1439
- this.$container.backgroundImageMobile = o;
1638
+ this.$container.backgroundImageMobile = r;
1440
1639
  break;
1441
1640
  case "background-image--tablet":
1442
- this.$container.backgroundImageTablet = o;
1641
+ this.$container.backgroundImageTablet = r;
1443
1642
  break;
1444
1643
  case "background-image--laptop":
1445
- this.$container.backgroundImageLaptop = o;
1644
+ this.$container.backgroundImageLaptop = r;
1446
1645
  break;
1447
1646
  case "background-size":
1448
- this.$container.backgroundSize = o;
1647
+ this.$container.backgroundSize = r;
1449
1648
  break;
1450
1649
  case "background-position":
1451
- this.$container.backgroundPosition = o;
1650
+ this.$container.backgroundPosition = r;
1452
1651
  break;
1453
1652
  case "padding-block":
1454
- this.$container.paddingBlock = o;
1653
+ this.$container.paddingBlock = r;
1455
1654
  break;
1456
1655
  case "padding-top":
1457
- this.$container.paddingTop = o;
1656
+ this.$container.paddingTop = r;
1458
1657
  break;
1459
1658
  case "padding-bottom":
1460
- this.$container.paddingBottom = o;
1659
+ this.$container.paddingBottom = r;
1461
1660
  break;
1462
1661
  case "padding-block--mobile":
1463
- this.$container.paddingBlockMobile = o;
1662
+ this.$container.paddingBlockMobile = r;
1464
1663
  break;
1465
1664
  case "padding-top--mobile":
1466
- this.$container.paddingTopMobile = o;
1665
+ this.$container.paddingTopMobile = r;
1467
1666
  break;
1468
1667
  case "padding-bottom--mobile":
1469
- this.$container.paddingBottomMobile = o;
1668
+ this.$container.paddingBottomMobile = r;
1470
1669
  break;
1471
1670
  case "padding-block--tablet":
1472
- this.$container.paddingBlockTablet = o;
1671
+ this.$container.paddingBlockTablet = r;
1473
1672
  break;
1474
1673
  case "padding-top--tablet":
1475
- this.$container.paddingTopTablet = o;
1674
+ this.$container.paddingTopTablet = r;
1476
1675
  break;
1477
1676
  case "padding-bottom--tablet":
1478
- this.$container.paddingBottomTablet = o;
1677
+ this.$container.paddingBottomTablet = r;
1479
1678
  break;
1480
1679
  case "padding-block--laptop":
1481
- this.$container.paddingBlockLaptop = o;
1680
+ this.$container.paddingBlockLaptop = r;
1482
1681
  break;
1483
1682
  case "padding-top--laptop":
1484
- this.$container.paddingTopLaptop = o;
1683
+ this.$container.paddingTopLaptop = r;
1485
1684
  break;
1486
1685
  case "padding-bottom--laptop":
1487
- this.$container.paddingBottomLaptop = o;
1686
+ this.$container.paddingBottomLaptop = r;
1488
1687
  break;
1489
1688
  case "border":
1490
- this.$container.border = o;
1689
+ this.$container.border = r;
1491
1690
  break;
1492
1691
  case "border-side":
1493
- this.$container.borderSide = o;
1692
+ this.$container.borderSide = r;
1494
1693
  break;
1495
1694
  case "border-side--mobile":
1496
- this.$container.borderSideMobile = o;
1695
+ this.$container.borderSideMobile = r;
1497
1696
  break;
1498
1697
  case "border-side--tablet":
1499
- this.$container.borderSideTablet = o;
1698
+ this.$container.borderSideTablet = r;
1500
1699
  break;
1501
1700
  case "border-side--laptop":
1502
- this.$container.borderSideLaptop = o;
1701
+ this.$container.borderSideLaptop = r;
1503
1702
  break;
1504
1703
  }
1505
1704
  }
1705
+ disconnectedCallback() {
1706
+ var t, e;
1707
+ (t = this.$slotHeading) == null || t.removeEventListener(
1708
+ "slotchange",
1709
+ this.setHeadingSpacing
1710
+ ), (e = this.$slotOverlap) == null || e.removeEventListener(
1711
+ "slotchange",
1712
+ this.toggleOverlapSpacing
1713
+ );
1714
+ }
1715
+ toggleOverlapSpacing() {
1716
+ const t = this.$slotOverlap, e = this.$mainContentWrapper;
1717
+ if (!t || !e) return;
1718
+ const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1719
+ e.classList.toggle("overlapped", o);
1720
+ }
1721
+ isNotEmptyNode(t) {
1722
+ return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
1723
+ }
1724
+ setHeadingSpacing() {
1725
+ var r;
1726
+ const t = this.$slotHeading, e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("px-vstack");
1727
+ t && e && (t.assignedElements().length > 0 ? e.setAttribute("gap", "heading-to-content") : e.setAttribute("gap", "none"));
1728
+ }
1729
+ get $container() {
1730
+ var t;
1731
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
1732
+ }
1733
+ get $mainContentWrapper() {
1734
+ var t;
1735
+ return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
1736
+ }
1506
1737
  get $slotOverlap() {
1738
+ var t;
1739
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1740
+ 'slot[name="overlap"]'
1741
+ );
1742
+ }
1743
+ get $slottedOverlap() {
1507
1744
  return this.querySelector('[slot="overlap"]');
1508
1745
  }
1746
+ get $slotHeading() {
1747
+ var t;
1748
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1749
+ 'slot[name="heading"]'
1750
+ );
1751
+ }
1752
+ get $slottedHeading() {
1753
+ return this.querySelector('[slot="heading"]');
1754
+ }
1509
1755
  get backgroundColor() {
1510
1756
  return this.getAttribute("background-color") || "none";
1511
1757
  }
@@ -1657,14 +1903,14 @@ class ee extends HTMLElement {
1657
1903
  this.setAttribute("border-side--laptop", t);
1658
1904
  }
1659
1905
  }
1660
- customElements.get("px-section") || customElements.define("px-section", ee);
1661
- const oe = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);margin:0}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-text-neutral-inverted)}@media only screen and (max-width: 768px){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media only screen and (min-width: 768px){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}.text-align-left--tablet{text-align:left}.text-align-center--tablet{text-align:center}.text-align-right--tablet{text-align:right}}@media only screen and (min-width: 1025px){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}.text-align-left--laptop{text-align:left}.text-align-center--laptop{text-align:center}.text-align-right--laptop{text-align:right}}", vt = new CSSStyleSheet(), ft = new CSSStyleSheet(), mt = new CSSStyleSheet();
1662
- vt.replaceSync(oe);
1663
- ft.replaceSync(_);
1664
- mt.replaceSync(bt);
1665
- const X = class X extends f {
1906
+ customElements.get("px-section") || customElements.define("px-section", he);
1907
+ const ge = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);margin:0}::slotted(p){margin-bottom:var(--px-spacing-xs-mobile)}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-text-neutral-inverted)}@media screen and (max-width: 48rem){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media screen and (min-width: 48rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-tablet)}.text-align-left--tablet{text-align:left}.text-align-center--tablet{text-align:center}.text-align-right--tablet{text-align:right}}@media screen and (min-width: 64.0625rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-laptop)}.text-align-left--laptop{text-align:left}.text-align-center--laptop{text-align:center}.text-align-right--laptop{text-align:right}}@media screen and (min-width: 90.0625rem){::slotted(p){margin-bottom:var(--px-spacing-xs-desktop)}}", St = new CSSStyleSheet(), Ct = new CSSStyleSheet(), Lt = new CSSStyleSheet();
1908
+ St.replaceSync(ge);
1909
+ Ct.replaceSync(X);
1910
+ Lt.replaceSync(kt);
1911
+ const rt = class rt extends $ {
1666
1912
  constructor() {
1667
- super(ft, mt, vt), this.template = () => "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template();
1913
+ super(Ct, Lt, St), this.template = "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template;
1668
1914
  }
1669
1915
  static get observedAttributes() {
1670
1916
  return [
@@ -1681,60 +1927,64 @@ const X = class X extends f {
1681
1927
  "disabled"
1682
1928
  ];
1683
1929
  }
1684
- attributeChangedCallback(t, e, o) {
1685
- if (e !== o)
1930
+ attributeChangedCallback(t, e, r) {
1931
+ if (e !== r)
1686
1932
  switch (t) {
1687
1933
  case "variant":
1688
- this.updateVariant(t, e, o, tt);
1934
+ this.updateVariant(t, e, r, dt);
1689
1935
  break;
1690
1936
  case "color":
1691
- this.updateTypography(t, e, o, D);
1937
+ this.updateTypography(t, e, r, Y);
1692
1938
  break;
1693
1939
  case "font-size":
1694
- this.updateTypography(t, e, o, rt);
1940
+ this.updateTypography(t, e, r, bt);
1695
1941
  break;
1696
1942
  case "font-weight":
1697
- this.updateTypography(t, e, o, ot);
1943
+ this.updateTypography(t, e, r, pt);
1698
1944
  break;
1699
1945
  case "text-align":
1700
1946
  case "text-align--mobile":
1701
1947
  case "text-align--tablet":
1702
1948
  case "text-align--laptop":
1703
- this.updateTypography(t, e, o, V);
1949
+ this.updateTypography(t, e, r, nt);
1704
1950
  break;
1705
1951
  case "disabled":
1706
1952
  this.color = "state-disabled";
1707
1953
  break;
1708
1954
  default:
1709
- super.attributeChangedCallback(t, e, o);
1955
+ super.attributeChangedCallback(t, e, r);
1710
1956
  break;
1711
1957
  }
1712
1958
  }
1713
1959
  toggleClass(t, e) {
1714
1960
  t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
1715
1961
  }
1716
- updateVariant(t, e, o, r) {
1717
- this.checkName(r, o) ? this.toggleClass(e, o) : console.error(`${o} is not a valid value for ${t}`);
1962
+ updateVariant(t, e, r, o) {
1963
+ this.checkName(o, r) ? this.toggleClass(e, r) : d(
1964
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1965
+ );
1718
1966
  }
1719
- updateTypography(t, e, o, r) {
1720
- if (!this.checkName(r, o))
1721
- console.error(`${o} is not an allowed ${t} value`);
1967
+ updateTypography(t, e, r, o) {
1968
+ if (!this.checkName(o, r))
1969
+ d(
1970
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1971
+ );
1722
1972
  else {
1723
1973
  const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
1724
1974
  e !== null && e !== "" && this.$el.classList.toggle(
1725
1975
  `${i.attrName}-${e}${a}`
1726
- ), o !== null && o !== "" && this.$el.classList.toggle(
1727
- `${i.attrName}-${o}${a}`
1976
+ ), r !== null && r !== "" && this.$el.classList.toggle(
1977
+ `${i.attrName}-${r}${a}`
1728
1978
  );
1729
1979
  }
1730
1980
  }
1731
1981
  splitAttrNameFromBreakpoint(t) {
1732
1982
  let e = "";
1733
1983
  if (["--mobile", "--tablet", "--laptop"].some(
1734
- (o) => t.includes(o)
1984
+ (r) => t.includes(r)
1735
1985
  )) {
1736
- const o = t.split("--");
1737
- t = o[0], e = `--${o[1]}`;
1986
+ const r = t.split("--");
1987
+ t = r[0], e = `--${r[1]}`;
1738
1988
  }
1739
1989
  return { attrName: t, breakpoint: e };
1740
1990
  }
@@ -1799,10 +2049,10 @@ const X = class X extends f {
1799
2049
  this.setAttribute("disabled", t);
1800
2050
  }
1801
2051
  };
1802
- X.nativeName = "p";
1803
- let R = X;
1804
- customElements.get("px-p") || customElements.define("px-p", R);
1805
- class re extends HTMLElement {
2052
+ rt.nativeName = "p";
2053
+ let F = rt;
2054
+ customElements.get("px-p") || customElements.define("px-p", F);
2055
+ class ue extends HTMLElement {
1806
2056
  constructor() {
1807
2057
  super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
1808
2058
  <button aria-hidden="true" style="width: 0; height: 0; border: 0; background-color: #00000000;"></button>
@@ -1816,16 +2066,16 @@ class re extends HTMLElement {
1816
2066
  });
1817
2067
  }
1818
2068
  }
1819
- customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", re);
1820
- const ie = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:100%;background-color:var(--px-color-background-surface-default)}@keyframes slide-left-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}dialog::backdrop{background-color:#0000}@media screen and (max-width: 767px){dialog{height:100dvh;margin:0;padding:0;animation:slide-left-fade-in .3s ease-in-out}px-container{height:100dvh}px-container>px-vstack>px-button-icon{position:initial;display:none;right:0}px-container>px-vstack>px-mdd-closer{display:none}dialog::backdrop{background-color:var(--px-color-background-surface-default)}}px-container{position:relative}px-container>px-vstack>px-button-icon{position:absolute;top:2em;right:1em}#sections-container{padding-bottom:calc(var(--mdd-section-container-padding-bottom) + var(--px-spacing-default-mobile));overflow:auto}@media only screen and (min-width: 48em){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 767px){#mobile-header{display:block;padding-bottom:2em}}px-p{display:none}@media screen and (max-width: 767px){px-p{display:block;padding-bottom:2em}}#footer{display:none}@media screen and (max-width: 767px){#footer{display:block;position:absolute;bottom:0;left:0;right:0;padding:var(--px-padding-s-mobile);background-color:var(--px-color-background-container-light-default)}}", kt = new CSSStyleSheet();
1821
- kt.replaceSync(ie);
1822
- var v, l, I, yt, A, At;
1823
- class ae extends HTMLElement {
2069
+ customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", ue);
2070
+ const xe = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:100%;background-color:var(--px-color-background-surface-default)}@keyframes slide-left-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}dialog::backdrop{background-color:#0000}@media screen and (max-height: 17.8125rem){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 47.938rem){dialog{height:100dvh;margin:0;padding:0;animation:slide-left-fade-in .3s ease-in-out}px-container{height:100dvh}px-container>px-vstack>px-button-icon{position:initial;display:none;right:0}px-container>px-vstack>px-mdd-closer{display:none}dialog::backdrop{background-color:var(--px-color-background-surface-default)}}px-container{position:relative}px-container>px-vstack>px-button-icon{position:absolute;top:32px;right:16px}#sections-container{overflow:auto}@media screen and (min-width: 48rem){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 47.938rem){#mobile-header{display:block;padding-bottom:32px}}px-p{display:none}@media screen and (max-width: 47.938rem){px-p{display:block;padding-bottom:32px}}#footer{display:none}@media screen and (max-width: 47.938rem){#footer{display:block;position:absolute;bottom:0;left:0;right:0;padding:var(--px-padding-s-mobile);background-color:var(--px-color-background-container-light-default)}}", Tt = new CSSStyleSheet();
2071
+ Tt.replaceSync(xe);
2072
+ var y, p, G, Et, S, Bt;
2073
+ class ve extends HTMLElement {
1824
2074
  constructor() {
1825
2075
  var e;
1826
2076
  super();
1827
- x(this, l);
1828
- x(this, v);
2077
+ c(this, p);
2078
+ c(this, y);
1829
2079
  this.template = `<dialog>
1830
2080
  <px-section>
1831
2081
  <px-container
@@ -1845,9 +2095,8 @@ class ae extends HTMLElement {
1845
2095
  <px-button-icon
1846
2096
  size="small"
1847
2097
  variant="secondary"
1848
- aria-label="${this.closeButtonAriaLabel || "Close"}"
1849
2098
  >
1850
- <px-icon name="cross" from="lavender"></px-icon>
2099
+ <px-icon name="cross" from="lavender" aria-label="${this.closeButtonAriaLabel || "Close"}" title="${this.closeButtonAriaLabel || "Close"}"></px-icon>
1851
2100
  </px-button-icon>
1852
2101
  </px-hstack>
1853
2102
  <px-p
@@ -1860,9 +2109,8 @@ class ae extends HTMLElement {
1860
2109
  <px-button-icon
1861
2110
  size="small"
1862
2111
  variant="secondary"
1863
- aria-label="${this.closeButtonAriaLabel || "Close"}"
1864
2112
  >
1865
- <px-icon name="cross" from="lavender"></px-icon>
2113
+ <px-icon name="cross" from="lavender" aria-label="${this.closeButtonAriaLabel || "Close"}" title="${this.closeButtonAriaLabel || "Close"}"></px-icon>
1866
2114
  </px-button-icon>
1867
2115
  <px-stack
1868
2116
  direction--mobile="column"
@@ -1884,21 +2132,21 @@ class ae extends HTMLElement {
1884
2132
  <slot name="mdd-footer"></slot>
1885
2133
  </px-hstack>
1886
2134
  </px-section>
1887
- </dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [kt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "menu");
2135
+ </dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Tt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.role = "menu", this.internals && (this.internals.role = "menu");
1888
2136
  }
1889
2137
  static get observedAttributes() {
1890
2138
  return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
1891
2139
  }
1892
2140
  connectedCallback() {
1893
- var e, o;
2141
+ var e, r;
1894
2142
  if (this.querySelectorAll("px-mdd-section").length === 0)
1895
2143
  throw new Error("HeaderPanel must contain at least one MenuSection");
1896
- this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
1897
- if (r.target.closest("px-button-icon"))
2144
+ this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (o) => {
2145
+ if (o.target.closest("px-button-icon"))
1898
2146
  this.dispatchEvent(
1899
2147
  new CustomEvent("close-panel", { bubbles: !0, composed: !0 })
1900
2148
  );
1901
- else if (r.target.closest("#back-button")) {
2149
+ else if (o.target.closest("#back-button")) {
1902
2150
  const i = new CustomEvent("back-to-mobile-menu", {
1903
2151
  bubbles: !0,
1904
2152
  composed: !0
@@ -1907,41 +2155,42 @@ class ae extends HTMLElement {
1907
2155
  }
1908
2156
  }), this.$dialog.addEventListener("cancel", () => {
1909
2157
  this.dispatchEvent(new CustomEvent("close-panel", { bubbles: !0 }));
1910
- }), this.$dialog.addEventListener("click", (r) => {
1911
- r.target === this.$dialog && this.dispatchEvent(
2158
+ }), this.$dialog.addEventListener("click", (o) => {
2159
+ o.target === this.$dialog && this.dispatchEvent(
1912
2160
  new CustomEvent("close-panel-from-dialog", {
1913
2161
  bubbles: !0,
1914
2162
  detail: {
1915
- clientX: r.clientX,
1916
- clientY: r.clientY
2163
+ clientX: o.clientX,
2164
+ clientY: o.clientY
1917
2165
  }
1918
2166
  })
1919
2167
  );
1920
- }), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, l, I).style.visibility = "hidden"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, l, yt).innerText = ((o = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
2168
+ }), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, p, G).style.visibility = "hidden"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, p, Et).innerText = ((r = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
1921
2169
  `px-header-item[for="${this.getAttribute("name")}"]`
1922
- )) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this, l, A).style.display = "none"), y(this, v, new MutationObserver(() => {
1923
- console.log("mutation observed"), this.$slotMddFooter && (n(this, l, A).style.display = "block");
1924
- })), n(this, v).observe(this, { childList: !0, subtree: !0 });
2170
+ )) == null ? void 0 : r.innerText) ?? ""), this.$slotMddFooter || (n(this, p, S).style.display = "none"), k(this, y, new MutationObserver(() => {
2171
+ this.$slotMddFooter && (n(this, p, S).style.display = "block");
2172
+ })), n(this, y).observe(this, { childList: !0, subtree: !0 });
1925
2173
  }
1926
2174
  disconnectedCallback() {
1927
- n(this, v).disconnect();
2175
+ n(this, y).disconnect();
1928
2176
  }
1929
- attributeChangedCallback(e, o, r) {
1930
- if (e === "name" && !r)
2177
+ attributeChangedCallback(e, r, o) {
2178
+ if (e === "name" && !o)
1931
2179
  throw new Error("Media Drop Down must have a name attribute");
1932
- if (e === "name" && (this.id = r), e === "hidden" && this.internals) {
1933
- this.internals.ariaHidden = r === "true" || r === "" ? "true" : "false";
1934
- const i = n(this, l, A).offsetHeight;
2180
+ if (e === "name" && (this.id = o), e === "hidden" && this.internals) {
2181
+ const i = o === "true" || o === "" ? "true" : "false";
2182
+ this.internals.ariaHidden = i, this.ariaHidden = i;
2183
+ const l = n(this, p, S).offsetHeight / parseFloat(getComputedStyle(document.documentElement).fontSize);
1935
2184
  this.style.setProperty(
1936
2185
  "--mdd-section-container-padding-bottom",
1937
- `${i}px`
2186
+ `${l}em`
1938
2187
  );
1939
2188
  }
1940
- e === "close-button-aria-label" && n(this, l, At).forEach((i) => {
1941
- r ? i.setAttribute("aria-label", r || "Close") : i.removeAttribute("aria-label");
1942
- }), e === "back-to-menu-label" && (n(this, l, I).innerHTML = `
2189
+ e === "close-button-aria-label" && n(this, p, Bt).forEach((i) => {
2190
+ o ? i.setAttribute("aria-label", o || "Close") : i.removeAttribute("aria-label");
2191
+ }), e === "back-to-menu-label" && (n(this, p, G).innerHTML = `
1943
2192
  <px-icon name="chevron_left" from="lavender"></px-icon>
1944
- ${r || "Back to menu"}
2193
+ ${o || "Back to menu"}
1945
2194
  `);
1946
2195
  }
1947
2196
  get $dialog() {
@@ -1953,7 +2202,7 @@ class ae extends HTMLElement {
1953
2202
  set hidden(e) {
1954
2203
  if (typeof e != "boolean")
1955
2204
  throw new Error("hidden must be a boolean");
1956
- e ? (this.internals && (this.internals.ariaHidden = "true"), this.setAttribute("hidden", ""), this.$dialog.open && this.$dialog.close()) : (this.internals && (this.internals.ariaHidden = "false"), this.$dialog.open || (this.$dialog.showModal(), setTimeout(() => {
2205
+ e ? (this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("hidden", ""), this.$dialog.open && this.$dialog.close()) : (this.internals && (this.internals.ariaHidden = "false"), this.ariaHidden = "false", this.$dialog.open || (this.$dialog.showModal(), setTimeout(() => {
1957
2206
  window.navigator.userAgent.match(/iPhone|iPad|iPod/i) && this.$dialog.focus();
1958
2207
  }, 0)), this.removeAttribute("hidden"));
1959
2208
  }
@@ -1982,19 +2231,19 @@ class ae extends HTMLElement {
1982
2231
  this.$dialog.style.setProperty("--mdd-dialog-offset-top", e);
1983
2232
  }
1984
2233
  }
1985
- v = new WeakMap(), l = new WeakSet(), I = function() {
2234
+ y = new WeakMap(), p = new WeakSet(), G = function() {
1986
2235
  return this.shadowRoot.querySelector("#back-button");
1987
- }, yt = function() {
2236
+ }, Et = function() {
1988
2237
  return this.shadowRoot.querySelector("px-p");
1989
- }, A = function() {
2238
+ }, S = function() {
1990
2239
  return this.shadowRoot.querySelector("#footer");
1991
- }, At = function() {
2240
+ }, Bt = function() {
1992
2241
  return this.shadowRoot.querySelectorAll("px-button-icon");
1993
2242
  };
1994
- customElements.get("px-mdd") || customElements.define("px-mdd", ae);
1995
- const se = ':host{flex-basis:25%}@media screen and (max-width: 767px){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:#fff;border-radius:.5em;padding-inline:1em}::slotted(px-mdd-section-item){border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}::slotted(px-mdd-section-item:last-of-type){border-bottom:none}::slotted([slot="footer"]){background-color:#fff;border-radius:.5em;padding-inline:1em;line-height:4em}}', zt = new CSSStyleSheet();
1996
- zt.replaceSync(se);
1997
- class ne extends HTMLElement {
2243
+ customElements.get("px-mdd") || customElements.define("px-mdd", ve);
2244
+ const me = ':host{flex-basis:25%}@media screen and (max-width: 47.938rem){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:#fff;border-radius:8px;padding-inline:16px}::slotted(px-mdd-section-item){border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}::slotted(px-mdd-section-item:last-of-type){border-bottom:none}::slotted([slot="footer"]){background-color:#fff;border-radius:8px;padding-inline:16px;line-height:4rem}:host([title-hidden]){padding-bottom:var(--mdd-section-container-padding-bottom, 0)}}', Mt = new CSSStyleSheet();
2245
+ Mt.replaceSync(me);
2246
+ class fe extends HTMLElement {
1998
2247
  constructor() {
1999
2248
  super(), this.template = `<px-vstack gap="default">
2000
2249
  <px-p font-size="heading-l" font-weight="title">
@@ -2008,7 +2257,7 @@ class ne extends HTMLElement {
2008
2257
  <px-vstack gap="default" gap--mobile="default">
2009
2258
  <slot name="footer"></slot>
2010
2259
  </px-vstack>
2011
- </px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [zt];
2260
+ </px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Mt];
2012
2261
  }
2013
2262
  connectedCallback() {
2014
2263
  this.$slotTitle || this.$title.setAttribute("hidden", ""), this.setupForId();
@@ -2016,11 +2265,11 @@ class ne extends HTMLElement {
2016
2265
  static get observedAttributes() {
2017
2266
  return ["title-hidden"];
2018
2267
  }
2019
- attributeChangedCallback(t, e, o) {
2020
- if (e !== o)
2268
+ attributeChangedCallback(t, e, r) {
2269
+ if (e !== r)
2021
2270
  switch (t) {
2022
2271
  case "title-hidden":
2023
- this.$title.style.display = o !== null ? "none" : "block";
2272
+ this.$title.style.display = r !== null ? "none" : "block";
2024
2273
  break;
2025
2274
  }
2026
2275
  }
@@ -2047,12 +2296,12 @@ class ne extends HTMLElement {
2047
2296
  t ? this.setAttribute("hidden-title", "") : this.removeAttribute("hidden-title");
2048
2297
  }
2049
2298
  }
2050
- customElements.get("px-mdd-section") || customElements.define("px-mdd-section", ne);
2051
- const $t = new CSSStyleSheet(), St = new CSSStyleSheet(), wt = new CSSStyleSheet();
2052
- $t.replaceSync(at);
2053
- St.replaceSync(it);
2054
- wt.replaceSync(_);
2055
- const de = [...rt, "link-m", "link-s"], le = [
2299
+ customElements.get("px-mdd-section") || customElements.define("px-mdd-section", fe);
2300
+ const Rt = new CSSStyleSheet(), It = new CSSStyleSheet(), Pt = new CSSStyleSheet();
2301
+ Rt.replaceSync(ht);
2302
+ It.replaceSync(ct);
2303
+ Pt.replaceSync(X);
2304
+ const ke = [...bt, "link-m", "link-s"], ye = [
2056
2305
  "link",
2057
2306
  "no-style",
2058
2307
  "skip-link",
@@ -2060,10 +2309,10 @@ const de = [...rt, "link-m", "link-s"], le = [
2060
2309
  "btn-secondary",
2061
2310
  "btn-tertiary",
2062
2311
  "icon-link"
2063
- ], pe = ["", "default", "alternative"], U = class U extends f {
2312
+ ], Ae = ["", "default", "alternative"], M = class M extends $ {
2064
2313
  constructor() {
2065
- super($t, St, wt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
2066
- const t = document.createElement(this.nativeName);
2314
+ super(Rt, It, Pt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
2315
+ const t = document.createElement(M.nativeName);
2067
2316
  t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
2068
2317
  }
2069
2318
  static get observedAttributes() {
@@ -2089,79 +2338,87 @@ const de = [...rt, "link-m", "link-s"], le = [
2089
2338
  ];
2090
2339
  }
2091
2340
  connectedCallback() {
2092
- super.connectedCallback(), this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), N(this, this.$el, !1);
2341
+ this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), it(this, this.$el, !1);
2342
+ }
2343
+ disconnectedCallback() {
2093
2344
  }
2094
- attributeChangedCallback(t, e, o) {
2095
- if (e !== o)
2345
+ attributeChangedCallback(t, e, r) {
2346
+ if (e !== r)
2096
2347
  switch (t) {
2097
2348
  case "disabled":
2098
- this.$el.toggleAttribute("aria-disabled"), o !== null && this.$el.setAttribute("aria-disabled", "true");
2349
+ this.$el.toggleAttribute("aria-disabled"), r !== null && this.$el.setAttribute("aria-disabled", "true");
2099
2350
  break;
2100
2351
  case "variant":
2101
- this.updateVariant(e, o);
2352
+ this.updateVariant(e, r);
2102
2353
  break;
2103
2354
  case "shape":
2104
2355
  case "shape--mobile":
2105
2356
  case "shape--tablet":
2106
2357
  case "shape--laptop":
2107
2358
  case "shape--desktop":
2108
- this.updateShape(t, o, pe);
2359
+ this.updateShape(t, r, Ae);
2109
2360
  break;
2110
2361
  case "extended":
2111
2362
  case "extended--mobile":
2112
2363
  case "extended--tablet":
2113
2364
  case "extended--laptop":
2114
2365
  case "extended--desktop":
2115
- this.updateExtended(t, o);
2366
+ this.updateExtended(t, r);
2116
2367
  break;
2117
2368
  case "font-size":
2118
2369
  this.updateTypography(
2119
2370
  t,
2120
2371
  e,
2121
- o,
2122
- de
2372
+ r,
2373
+ ke
2123
2374
  );
2124
2375
  break;
2125
2376
  case "color":
2126
- this.updateTypography(t, e, o, D);
2377
+ this.updateTypography(t, e, r, Y);
2127
2378
  break;
2128
2379
  case "font-weight":
2129
- this.updateTypography(t, e, o, ot);
2380
+ this.updateTypography(t, e, r, pt);
2130
2381
  break;
2131
2382
  case "title":
2132
- o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
2383
+ r && (this.$el.setAttribute("title", r), this.removeAttribute("title"));
2133
2384
  break;
2134
2385
  default:
2135
- super.attributeChangedCallback(t, e, o);
2386
+ super.attributeChangedCallback(t, e, r);
2136
2387
  break;
2137
2388
  }
2138
2389
  }
2139
2390
  configureBeforeAfterIcon(t) {
2140
- const e = t.getAttribute("size"), o = t.getAttribute("color");
2391
+ const e = t.getAttribute("size"), r = t.getAttribute("color");
2141
2392
  t.addEventListener("click", () => {
2142
2393
  this.$el.focus();
2143
- }), e || t.setAttribute("size", "xs"), o || t.setAttribute("color", "inherit");
2394
+ }), e || t.setAttribute("size", "xs"), r || t.setAttribute("color", "inherit");
2144
2395
  }
2145
2396
  _toggleClassList(t) {
2146
2397
  if (t.startsWith("btn-")) {
2147
2398
  const e = t.split("-");
2148
- for (const o of e)
2149
- this.$el.classList.toggle(o);
2399
+ for (const r of e)
2400
+ this.$el.classList.toggle(r);
2150
2401
  } else
2151
2402
  this.$el.classList.toggle(t);
2152
2403
  }
2153
2404
  updateVariant(t, e) {
2154
- t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(le, e) || console.error(`Bad "variant" value for ${e}`), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
2155
- }
2156
- updateShape(t, e, o) {
2157
- if (!q(o, e)) {
2158
- console.error(`${e} is not a valid shape value`);
2405
+ t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(ye, e) || d(
2406
+ `${e} is not an allowed variant value for ${this.tagName.toLowerCase()}`
2407
+ ), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
2408
+ }
2409
+ updateShape(t, e, r) {
2410
+ if (!w(r, e)) {
2411
+ d(
2412
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
2413
+ );
2159
2414
  return;
2160
2415
  }
2161
2416
  e !== null && e !== "" && this.$el.setAttribute(t, e);
2162
2417
  }
2163
- updateTypography(t, e, o, r) {
2164
- e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), o !== null && o !== "" && o !== "default" && this.$el.classList.toggle(`${t}-${o}`), this.checkName(r, o) || console.error(`Bad ${t} value: ${o}`);
2418
+ updateTypography(t, e, r, o) {
2419
+ e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), r !== null && r !== "" && r !== "default" && this.$el.classList.toggle(`${t}-${r}`), this.checkName(o, r) || d(
2420
+ `${r} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
2421
+ );
2165
2422
  }
2166
2423
  updateExtended(t, e) {
2167
2424
  e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
@@ -2280,12 +2537,46 @@ const de = [...rt, "link-m", "link-s"], le = [
2280
2537
  t ? this.setAttribute("title", t) : this.removeAttribute("title");
2281
2538
  }
2282
2539
  };
2283
- U.nativeName = "a";
2284
- let P = U;
2285
- customElements.get("px-a") || customElements.define("px-a", P);
2286
- const be = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit;font-size:var(--px-text-size-label-l-mobile)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a:hover{text-decoration:underline;color:var(--px-color-text-state-hover-default)}button{background:none;border:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;width:100%}a,button{display:block}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (max-width: 47.9375em){a,button{padding:var(--px-spacing-s-mobile) 0}}@media only screen and (min-width: 48em){a{display:inline-block;font-size:var(--px-text-size-label-l-tablet)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625em){a{font-size:var(--px-text-size-label-l-laptop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){a{font-size:var(--px-text-size-label-l-desktop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}', Ct = new CSSStyleSheet();
2287
- Ct.replaceSync(be);
2288
- class ce extends HTMLElement {
2540
+ M.nativeName = "a";
2541
+ let L = M;
2542
+ customElements.get("px-a") || customElements.define("px-a", L);
2543
+ var f, R, Ht;
2544
+ class ze extends L {
2545
+ constructor() {
2546
+ super();
2547
+ c(this, R);
2548
+ c(this, f);
2549
+ this.$el.classList.add("wrapper"), k(this, f, new at(
2550
+ this,
2551
+ this.$el,
2552
+ () => P(this, R, Ht).call(this)
2553
+ ));
2554
+ }
2555
+ connectedCallback() {
2556
+ super.connectedCallback(), n(this, f).connect();
2557
+ }
2558
+ disconnectedCallback() {
2559
+ super.disconnectedCallback(), n(this, f).disconnect();
2560
+ }
2561
+ attributeChangedCallback(e, r, o) {
2562
+ if (r !== o)
2563
+ switch (e) {
2564
+ case "disabled":
2565
+ super.attributeChangedCallback(e, r, o), o !== null && n(this, f).clearInteractiveState();
2566
+ break;
2567
+ default:
2568
+ super.attributeChangedCallback(e, r, o);
2569
+ break;
2570
+ }
2571
+ }
2572
+ }
2573
+ f = new WeakMap(), R = new WeakSet(), Ht = function() {
2574
+ return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
2575
+ };
2576
+ customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", ze);
2577
+ const we = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit;font-size:var(--px-text-size-label-l-mobile)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a:hover{text-decoration:underline;color:var(--px-color-text-state-hover-default)}button{background:none;border:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;width:100%}a,button{display:block}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (max-width: 47.938rem){a,button{padding:var(--px-spacing-s-mobile) 0}}@media screen and (min-width: 48rem){a{display:inline-block;font-size:var(--px-text-size-label-l-tablet)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (min-width: 64.0625rem){a{font-size:var(--px-text-size-label-l-laptop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (min-width: 90.0625rem){a{font-size:var(--px-text-size-label-l-desktop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}', Ot = new CSSStyleSheet();
2578
+ Ot.replaceSync(we);
2579
+ class $e extends HTMLElement {
2289
2580
  constructor() {
2290
2581
  var t;
2291
2582
  super(), this.template = `
@@ -2296,14 +2587,14 @@ class ce extends HTMLElement {
2296
2587
  </span>
2297
2588
  <px-spacer></px-spacer>
2298
2589
  <px-icon name="chevron_right" from="lavender"></px-icon>
2299
- </px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Ct], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.internals && (this.internals.role = "listitem");
2590
+ </px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Ot], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.role = "listitem", this.internals && (this.internals.role = "listitem");
2300
2591
  }
2301
2592
  static get observedAttributes() {
2302
2593
  return ["href", "for"];
2303
2594
  }
2304
2595
  // ... existing code ...
2305
- attributeChangedCallback(t, e, o) {
2306
- this.updateView(t, o);
2596
+ attributeChangedCallback(t, e, r) {
2597
+ this.updateView(t, r);
2307
2598
  }
2308
2599
  updateView(t, e) {
2309
2600
  t === "href" && this.$link ? this.$link.href = e : t === "href" && !this.$link && e ? (this.shadowRoot.innerHTML = `<a href="${e}">${this.template}</a>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"), this.$arrowIcon.style.display = "none") : t === "for" && !this.$button && e && (this.shadowRoot.innerHTML = `<button>${this.template}</button>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"));
@@ -2345,9 +2636,9 @@ class ce extends HTMLElement {
2345
2636
  );
2346
2637
  }
2347
2638
  }
2348
- customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item", ce);
2639
+ customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item", $e);
2349
2640
  export {
2350
- ne as MddSection,
2351
- ce as MddSectionItem,
2352
- ae as MegaDropDown
2641
+ fe as MddSection,
2642
+ $e as MddSectionItem,
2643
+ ve as MegaDropDown
2353
2644
  };