@proximus/lavender-content-header 2.0.0-alpha.165 → 2.0.0-alpha.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,1185 +1,1036 @@
1
- import { cssTokenBreakpoints as d, paddingValues as g, gapValues as x, WithExtraAttributes as m, boxShadowValues as D, backgroundSizeValues as C, noBorderRadiusValues as P, borderRadiusValues as E, borderSideValues as O, borderValues as H, gradientValues as f, log as s, backgroundColorValues as u, borderColorValues as S, checkName as h, AttributeBreakpointHandlerDelegate as G, PxElement as L } from "@proximus/lavender-common";
1
+ import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, backgroundSizeValues as i, booleanPropertyToAttributeSetter as a, borderColorValues as o, borderRadiusValues as s, borderSideValues as c, borderValues as l, boxShadowValues as u, checkName as d, cssTokenBreakpoints as f, gapValues as p, gradientValues as m, log as h, noBorderRadiusValues as g, paddingValues as _, propertyToAttributeSetter as v } from "@proximus/lavender-common";
2
2
  import "@proximus/lavender-heading";
3
- const q = ':host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;z-index:2;position:relative;box-sizing:border-box}.content-header-content ::slotted([slot="patch"]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (min-width: 48rem){.content-header-content ::slotted([slot="patch"]){flex-shrink:0}.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (min-width: 64.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (min-width: 90.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}', N = ':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)}}', X = ':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)}}', T = new CSSStyleSheet();
4
- T.replaceSync(X);
5
- const F = [
6
- "top-patch",
7
- "top-neighbor-patch",
8
- "top-ribbon",
9
- "top-neighbor-ribbon",
10
- "top-patch-and-neighbor-ribbon"
11
- ], _ = [
12
- "1",
13
- "2",
14
- "3",
15
- "4",
16
- "5",
17
- "6",
18
- "7",
19
- "8",
20
- "9",
21
- "10",
22
- "11",
23
- "12"
24
- ], l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, p = "px-padding", Z = [
25
- d(
26
- "padding",
27
- l,
28
- g,
29
- p,
30
- "--container-padding"
31
- ),
32
- d(
33
- "padding-inline",
34
- l,
35
- g,
36
- p
37
- ),
38
- d(
39
- "padding-block",
40
- l,
41
- g,
42
- p
43
- ),
44
- d(
45
- "padding-top",
46
- l,
47
- g,
48
- p
49
- ),
50
- d(
51
- "padding-right",
52
- l,
53
- g,
54
- p,
55
- "--container-padding-right"
56
- ),
57
- d(
58
- "padding-bottom",
59
- l,
60
- g,
61
- p
62
- ),
63
- d(
64
- "padding-left",
65
- l,
66
- g,
67
- p,
68
- "--container-padding-left"
69
- ),
70
- d(
71
- "gap",
72
- l,
73
- x,
74
- "px-spacing",
75
- void 0,
76
- "subgrid-gap"
77
- )
78
- ], $ = class $ extends m {
79
- constructor() {
80
- super(T, ...Z), this.template = () => `<div class="container">
81
- <slot></slot>
82
- <slot name="anchor-left"></slot>
83
- <slot name="anchor-right"></slot>
84
- <slot name="anchor-full"></slot>
85
- </div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
86
- }
87
- static get observedAttributes() {
88
- return [
89
- ...super.observedAttributes,
90
- "border",
91
- "border-color",
92
- "border-side",
93
- "border-side--mobile",
94
- "border-side--tablet",
95
- "border-side--laptop",
96
- "border-radius",
97
- "no-border-radius",
98
- "no-border-radius--mobile",
99
- "no-border-radius--tablet",
100
- "no-border-radius--laptop",
101
- "background-color",
102
- "background-color--mobile",
103
- "background-color--tablet",
104
- "background-color--laptop",
105
- "background-gradient",
106
- "background-gradient--mobile",
107
- "background-gradient--tablet",
108
- "background-gradient--laptop",
109
- "background-image",
110
- "background-image--mobile",
111
- "background-image--tablet",
112
- "background-image--laptop",
113
- "background-size",
114
- "background-position",
115
- "box-shadow",
116
- "anchor-offset",
117
- "anchor-spacing",
118
- "inverted",
119
- "subgrid-rows"
120
- ];
121
- }
122
- connectedCallback() {
123
- this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
124
- this.$slotAnchor && this.addAnchorClass();
125
- }), this.contentObserver.observe(this, {
126
- childList: !0,
127
- subtree: !0,
128
- characterData: !0
129
- }), this._bgObserver = new IntersectionObserver((t) => {
130
- t.forEach((i) => {
131
- var e;
132
- i.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
133
- });
134
- }), this._bgObserver.observe(this.$el);
135
- }
136
- disconnectedCallback() {
137
- var t, i;
138
- (t = this._bgObserver) == null || t.disconnect(), (i = this.contentObserver) == null || i.disconnect();
139
- }
140
- attributeChangedCallback(t, i, e) {
141
- if (i !== e)
142
- switch (t) {
143
- case "border":
144
- this.updateAttribute(t, i, e, H);
145
- break;
146
- case "border-color":
147
- this.updateBorderColor(t, e);
148
- break;
149
- case "border-side":
150
- case "border-side--mobile":
151
- case "border-side--tablet":
152
- case "border-side--laptop":
153
- this.updateAttribute(t, i, e, O);
154
- break;
155
- case "border-radius":
156
- this.updateAttribute(
157
- t,
158
- i,
159
- e,
160
- E
161
- );
162
- break;
163
- case "no-border-radius":
164
- case "no-border-radius--mobile":
165
- case "no-border-radius--tablet":
166
- case "no-border-radius--laptop":
167
- this.updateNoBorderRadius(
168
- t,
169
- i,
170
- e,
171
- P
172
- );
173
- break;
174
- case "background-color":
175
- case "background-color--mobile":
176
- case "background-color--tablet":
177
- case "background-color--laptop":
178
- this.updateBackgroundColor(t, e);
179
- break;
180
- case "background-gradient":
181
- case "background-gradient--mobile":
182
- case "background-gradient--tablet":
183
- case "background-gradient--laptop":
184
- this.updateGradient(t, e);
185
- break;
186
- case "background-size":
187
- this.updateAttribute(
188
- t,
189
- i,
190
- e,
191
- C
192
- );
193
- break;
194
- case "background-image":
195
- case "background-image--mobile":
196
- case "background-image--tablet":
197
- case "background-image--laptop":
198
- this._isInViewport && this.updateBackgroundImg(t, e);
199
- break;
200
- case "background-position":
201
- e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
202
- break;
203
- case "box-shadow":
204
- this.updateAttribute(t, i, e, D);
205
- break;
206
- case "anchor-offset":
207
- this.updateAnchorOffset(i, e, g);
208
- break;
209
- case "anchor-spacing":
210
- this.updateAnchorSpacing(i, e, F);
211
- break;
212
- case "subgrid-rows":
213
- this.updateSubgridRows(
214
- t,
215
- i,
216
- e,
217
- _
218
- );
219
- break;
220
- default:
221
- super.attributeChangedCallback(t, i, e);
222
- break;
223
- }
224
- }
225
- _loadBackgroundImages() {
226
- [
227
- "background-image",
228
- "background-image--mobile",
229
- "background-image--tablet",
230
- "background-image--laptop"
231
- ].forEach((i) => {
232
- const e = this.getAttribute(i);
233
- e && this.updateBackgroundImg(i, e);
234
- });
235
- }
236
- updateBackgroundImg(t, i) {
237
- this.$el.style.setProperty(`--${t}`, `url("${i}")`);
238
- }
239
- updateGradient(t, i) {
240
- if (this.checkName(f, i)) {
241
- const e = this.splitAttrNameFromBreakpoint(t);
242
- t = e.attrName;
243
- const o = e.breakpoint;
244
- this.$el.style.setProperty(
245
- `--${t}${o}`,
246
- `linear-gradient(var(--px-color-background-gradient-${i}))`
247
- );
248
- } else
249
- s(
250
- `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${f.join('", "')}".`
251
- );
252
- }
253
- updateBackgroundColor(t, i) {
254
- const e = i.startsWith("surface-");
255
- if (this.checkName(u, i)) {
256
- const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
257
- this.$el.style.setProperty(
258
- `--${o.attrName}${r}`,
259
- `var(--px-color-background-${i}${e ? "" : "-default"})`
260
- ), this.$el.style.setProperty(
261
- `--${o.attrName}-inverted${r}`,
262
- `var(--px-color-background-${i}${e ? "" : "-inverted"})`
263
- );
264
- } else
265
- s(
266
- `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${u.join('", "')}".`
267
- );
268
- }
269
- updateBorderColor(t, i) {
270
- this.checkName(S, i) ? (this.$el.style.setProperty(
271
- `--${t}`,
272
- `var(--px-color-border-${i}-default)`
273
- ), this.$el.style.setProperty(
274
- `--${t}-inverted`,
275
- `var(--px-color-border-${i}-inverted)`
276
- )) : s(
277
- `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${S.join('", "')}".`
278
- );
279
- }
280
- updateNoBorderRadius(t, i, e, o) {
281
- if (!this.checkName(o, e))
282
- s(
283
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
284
- );
285
- else {
286
- const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
287
- i !== null && i !== "" && this.$el.classList.toggle(
288
- `${r.attrName}-${i}${a}`
289
- ), e !== null && e !== "" && this.$el.classList.toggle(
290
- `${r.attrName}-${e}${a}`
291
- );
292
- }
293
- }
294
- updateAttribute(t, i, e, o) {
295
- if (!this.checkName(o, e))
296
- s(
297
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
298
- );
299
- else {
300
- const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
301
- i !== null && i !== "" && this.$el.classList.toggle(
302
- `${r.attrName}-${i}${a}`
303
- ), e !== null && e !== "" && this.$el.classList.toggle(
304
- `${r.attrName}-${e}${a}`
305
- );
306
- }
307
- }
308
- splitAttrNameFromBreakpoint(t) {
309
- let i = "";
310
- if (["--mobile", "--tablet", "--laptop"].some(
311
- (e) => t.includes(e)
312
- )) {
313
- const e = t.split("--");
314
- t = e[0], i = `--${e[1]}`;
315
- }
316
- return { attrName: t, breakpoint: i };
317
- }
318
- updateAnchorOffset(t, i, e) {
319
- if (!h(e, i)) {
320
- s(
321
- `"${i}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
322
- );
323
- return;
324
- }
325
- const o = (r) => {
326
- r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
327
- "--container-anchor-offset--mobile",
328
- `var(--px-padding-${r}-mobile)`
329
- ), this.$el.style.setProperty(
330
- "--container-anchor-offset--tablet",
331
- `var(--px-padding-${r}-tablet)`
332
- ), this.$el.style.setProperty(
333
- "--container-anchor-offset--laptop",
334
- `var(--px-padding-${r}-laptop)`
335
- ));
336
- };
337
- o(t), o(i);
338
- }
339
- addAnchorClass() {
340
- this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
341
- }
342
- updateAnchorSpacing(t, i, e) {
343
- if (!h(e, i)) {
344
- s(
345
- `"${i}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
346
- );
347
- return;
348
- }
349
- const o = (r) => {
350
- r !== null && r !== "" && r !== "default" && (this.style.setProperty(
351
- "--container-anchor-spacing--mobile",
352
- `var(--px-spacing-${r}-mobile)`
353
- ), this.style.setProperty(
354
- "--container-anchor-spacing--tablet",
355
- `var(--px-spacing-${r}-tablet)`
356
- ), this.style.setProperty(
357
- "--container-anchor-spacing--laptop",
358
- `var(--px-spacing-${r}-laptop)`
359
- ), this.style.setProperty(
360
- "--container-anchor-spacing--desktop",
361
- `var(--px-spacing-${r}-desktop)`
362
- ));
363
- };
364
- o(t), o(i);
365
- }
366
- updateSubgridRows(t, i, e, o) {
367
- h(o, e) ? this.style.setProperty(`--${t}`, e) : s(
368
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
369
- );
370
- }
371
- get $el() {
372
- var t;
373
- return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
374
- }
375
- get $slotAnchor() {
376
- return this.querySelector('[slot^="anchor"]');
377
- }
378
- get padding() {
379
- return this.getAttribute("padding");
380
- }
381
- set padding(t) {
382
- this.setAttribute("padding", t);
383
- }
384
- get paddingBlock() {
385
- return this.getAttribute("padding-block");
386
- }
387
- set paddingBlock(t) {
388
- this.setAttribute("padding-block", t);
389
- }
390
- get paddingInline() {
391
- return this.getAttribute("padding-inline");
392
- }
393
- set paddingInline(t) {
394
- this.setAttribute("padding-inline", t);
395
- }
396
- get paddingTop() {
397
- return this.getAttribute("padding-top");
398
- }
399
- set paddingTop(t) {
400
- this.setAttribute("padding-top", t);
401
- }
402
- get paddingRight() {
403
- return this.getAttribute("padding-right");
404
- }
405
- set paddingRight(t) {
406
- this.setAttribute("padding-right", t);
407
- }
408
- get paddingBottom() {
409
- return this.getAttribute("padding-bottom");
410
- }
411
- set paddingBottom(t) {
412
- this.setAttribute("padding-bottom", t);
413
- }
414
- get paddingLeft() {
415
- return this.getAttribute("padding-left");
416
- }
417
- set paddingLeft(t) {
418
- this.setAttribute("padding-left", t);
419
- }
420
- get paddingMobile() {
421
- return this.getAttribute("padding--mobile");
422
- }
423
- set paddingMobile(t) {
424
- this.setAttribute("padding--mobile", t);
425
- }
426
- get paddingBlockMobile() {
427
- return this.getAttribute("padding-block--mobile");
428
- }
429
- set paddingBlockMobile(t) {
430
- this.setAttribute("padding-block--mobile", t);
431
- }
432
- get paddingInlineMobile() {
433
- return this.getAttribute("padding-inline--mobile");
434
- }
435
- set paddingInlineMobile(t) {
436
- this.setAttribute("padding-inline--mobile", t);
437
- }
438
- get paddingTopMobile() {
439
- return this.getAttribute("padding-top--mobile");
440
- }
441
- set paddingTopMobile(t) {
442
- this.setAttribute("padding-top--mobile", t);
443
- }
444
- get paddingRightMobile() {
445
- return this.getAttribute("padding-right--mobile");
446
- }
447
- set paddingRightMobile(t) {
448
- this.setAttribute("padding-right--mobile", t);
449
- }
450
- get paddingBottomMobile() {
451
- return this.getAttribute("padding-bottom--mobile");
452
- }
453
- set paddingBottomMobile(t) {
454
- this.setAttribute("padding-bottom--mobile", t);
455
- }
456
- get paddingLeftMobile() {
457
- return this.getAttribute("padding-left--mobile");
458
- }
459
- set paddingLeftMobile(t) {
460
- this.setAttribute("padding-left--mobile", t);
461
- }
462
- get paddingTablet() {
463
- return this.getAttribute("padding--tablet");
464
- }
465
- set paddingTablet(t) {
466
- this.setAttribute("padding--tablet", t);
467
- }
468
- get paddingBlockTablet() {
469
- return this.getAttribute("padding-block--tablet");
470
- }
471
- set paddingBlockTablet(t) {
472
- this.setAttribute("padding-block--tablet", t);
473
- }
474
- get paddingInlineTablet() {
475
- return this.getAttribute("padding-inline--tablet");
476
- }
477
- set paddingInlineTablet(t) {
478
- this.setAttribute("padding-inline--tablet", t);
479
- }
480
- get paddingTopTablet() {
481
- return this.getAttribute("padding-top--tablet");
482
- }
483
- set paddingTopTablet(t) {
484
- this.setAttribute("padding-top--tablet", t);
485
- }
486
- get paddingRightTablet() {
487
- return this.getAttribute("padding-right--tablet");
488
- }
489
- set paddingRightTablet(t) {
490
- this.setAttribute("padding-right--tablet", t);
491
- }
492
- get paddingBottomTablet() {
493
- return this.getAttribute("padding-bottom--tablet");
494
- }
495
- set paddingBottomTablet(t) {
496
- this.setAttribute("padding-bottom--tablet", t);
497
- }
498
- get paddingLeftTablet() {
499
- return this.getAttribute("padding-left--tablet");
500
- }
501
- set paddingLeftTablet(t) {
502
- this.setAttribute("padding-left--tablet", t);
503
- }
504
- get paddingLaptop() {
505
- return this.getAttribute("padding--laptop");
506
- }
507
- set paddingLaptop(t) {
508
- this.setAttribute("padding--laptop", t);
509
- }
510
- get paddingBlockLaptop() {
511
- return this.getAttribute("padding-block--laptop");
512
- }
513
- set paddingBlockLaptop(t) {
514
- this.setAttribute("padding-block--laptop", t);
515
- }
516
- get paddingInlineLaptop() {
517
- return this.getAttribute("padding-inline--laptop");
518
- }
519
- set paddingInlineLaptop(t) {
520
- this.setAttribute("padding-inline--laptop", t);
521
- }
522
- get paddingTopLaptop() {
523
- return this.getAttribute("padding-top--laptop");
524
- }
525
- set paddingTopLaptop(t) {
526
- this.setAttribute("padding-top--laptop", t);
527
- }
528
- get paddingRightLaptop() {
529
- return this.getAttribute("padding-right--laptop");
530
- }
531
- set paddingRightLaptop(t) {
532
- this.setAttribute("padding-right--laptop", t);
533
- }
534
- get paddingBottomLaptop() {
535
- return this.getAttribute("padding-bottom--laptop");
536
- }
537
- set paddingBottomLaptop(t) {
538
- this.setAttribute("padding-bottom--laptop", t);
539
- }
540
- get paddingLeftLaptop() {
541
- return this.getAttribute("padding-left--laptop");
542
- }
543
- set paddingLeftLaptop(t) {
544
- this.setAttribute("padding-left--laptop", t);
545
- }
546
- get border() {
547
- return this.getAttribute("border");
548
- }
549
- set border(t) {
550
- this.setAttribute("border", t);
551
- }
552
- get borderColor() {
553
- return this.getAttribute("border-color");
554
- }
555
- set borderColor(t) {
556
- this.setAttribute("border-color", t);
557
- }
558
- get borderSide() {
559
- return this.getAttribute("border-side");
560
- }
561
- set borderSide(t) {
562
- this.setAttribute("border-side", t);
563
- }
564
- get borderSideMobile() {
565
- return this.getAttribute("border-side--mobile");
566
- }
567
- set borderSideMobile(t) {
568
- this.setAttribute("border-side--mobile", t);
569
- }
570
- get borderSideTablet() {
571
- return this.getAttribute("border-side--tablet");
572
- }
573
- set borderSideTablet(t) {
574
- this.setAttribute("border-side--tablet", t);
575
- }
576
- get borderSideLaptop() {
577
- return this.getAttribute("border-side--laptop");
578
- }
579
- set borderSideLaptop(t) {
580
- this.setAttribute("border-side--laptop", t);
581
- }
582
- get borderRadius() {
583
- return this.getAttribute("border-radius");
584
- }
585
- set borderRadius(t) {
586
- this.setAttribute("border-radius", t);
587
- }
588
- get noBorderRadius() {
589
- return this.getAttribute("no-border-radius");
590
- }
591
- set noBorderRadius(t) {
592
- this.setAttribute("no-border-radius", t);
593
- }
594
- get noBorderRadiusMobile() {
595
- return this.getAttribute("no-border-radius--mobile");
596
- }
597
- set noBorderRadiusMobile(t) {
598
- this.setAttribute("no-border-radius--mobile", t);
599
- }
600
- get noBorderRadiusTablet() {
601
- return this.getAttribute("no-border-radius--tablet");
602
- }
603
- set noBorderRadiusTablet(t) {
604
- this.setAttribute("no-border-radius--tablet", t);
605
- }
606
- get noBorderRadiusLaptop() {
607
- return this.getAttribute("no-border-radius--laptop");
608
- }
609
- set noBorderRadiusLaptop(t) {
610
- this.setAttribute("no-border-radius--laptop", t);
611
- }
612
- get backgroundColor() {
613
- return this.getAttribute("background-color");
614
- }
615
- set backgroundColor(t) {
616
- this.setAttribute("background-color", t);
617
- }
618
- get backgroundColorMobile() {
619
- return this.getAttribute("background-color--mobile");
620
- }
621
- set backgroundColorMobile(t) {
622
- this.setAttribute("background-color--mobile", t);
623
- }
624
- get backgroundColorTablet() {
625
- return this.getAttribute("background-color--tablet");
626
- }
627
- set backgroundColorTablet(t) {
628
- this.setAttribute("background-color--tablet", t);
629
- }
630
- get backgroundColorLaptop() {
631
- return this.getAttribute("background-color--laptop");
632
- }
633
- set backgroundColorLaptop(t) {
634
- this.setAttribute("background-color--laptop", t);
635
- }
636
- get gradient() {
637
- return this.getAttribute("background-gradient");
638
- }
639
- set gradient(t) {
640
- this.setAttribute("background-gradient", t);
641
- }
642
- get gradientMobile() {
643
- return this.getAttribute("background-gradient--mobile");
644
- }
645
- set gradientMobile(t) {
646
- this.setAttribute("background-gradient--mobile", t);
647
- }
648
- get gradientTablet() {
649
- return this.getAttribute("background-gradient--tablet");
650
- }
651
- set gradientTablet(t) {
652
- this.setAttribute("background-gradient--tablet", t);
653
- }
654
- get gradientLaptop() {
655
- return this.getAttribute("background-gradient--laptop");
656
- }
657
- set gradientLaptop(t) {
658
- this.setAttribute("background-gradient--laptop", t);
659
- }
660
- get backgroundImage() {
661
- return this.getAttribute("background-image");
662
- }
663
- set backgroundImage(t) {
664
- this.setAttribute("background-image", t);
665
- }
666
- get backgroundImageMobile() {
667
- return this.getAttribute("background-image--mobile");
668
- }
669
- set backgroundImageMobile(t) {
670
- this.setAttribute("background-image--mobile", t);
671
- }
672
- get backgroundImageTablet() {
673
- return this.getAttribute("background-image--tablet");
674
- }
675
- set backgroundImageTablet(t) {
676
- this.setAttribute("background-image--tablet", t);
677
- }
678
- get backgroundImageLaptop() {
679
- return this.getAttribute("background-image--laptop");
680
- }
681
- set backgroundImageLaptop(t) {
682
- this.setAttribute("background-image--laptop", t);
683
- }
684
- get backgroundSize() {
685
- return this.getAttribute("background-size");
686
- }
687
- set backgroundSize(t) {
688
- this.setAttribute("background-size", t);
689
- }
690
- get backgroundPosition() {
691
- return this.getAttribute("background-position");
692
- }
693
- set backgroundPosition(t) {
694
- this.setAttribute("background-position", t);
695
- }
696
- get boxShadow() {
697
- return this.getAttribute("box-shadow");
698
- }
699
- set boxShadow(t) {
700
- this.setAttribute("box-shadow", t);
701
- }
702
- get anchorOffset() {
703
- return this.getAttribute("anchor-offset");
704
- }
705
- set anchorOffset(t) {
706
- this.setAttribute("anchor-offset", t);
707
- }
708
- get anchorSpacing() {
709
- return this.getAttribute("anchor-spacing");
710
- }
711
- set anchorSpacing(t) {
712
- this.setAttribute("anchor-spacing", t);
713
- }
714
- get inverted() {
715
- return this.hasAttribute("inverted");
716
- }
717
- set inverted(t) {
718
- t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
719
- }
720
- get subgridRows() {
721
- return this.getAttribute("subgrid-rows");
722
- }
723
- set subgridRows(t) {
724
- this.setAttribute("subgrid-rows", t);
725
- }
726
- get subgridGap() {
727
- return this.getAttribute("subgrid-gap");
728
- }
729
- set subgridGap(t) {
730
- this.setAttribute("subgrid-gap", t);
731
- }
732
- get subgridGapMobile() {
733
- return this.getAttribute("subgrid-gap--mobile");
734
- }
735
- set subgridGapMobile(t) {
736
- this.setAttribute("subgrid-gap--mobile", t);
737
- }
738
- get subgridGapTablet() {
739
- return this.getAttribute("subgrid-gap--tablet");
740
- }
741
- set subgridGapTablet(t) {
742
- this.setAttribute("subgrid-gap--tablet", t);
743
- }
744
- get subgridGapLaptop() {
745
- return this.getAttribute("subgrid-gap--laptop");
746
- }
747
- set subgridGapLaptop(t) {
748
- this.setAttribute("subgrid-gap--laptop", t);
749
- }
3
+ //#region src/contentheader.css?inline
4
+ var y = ":host{--min-height--mobile:15.625rem;--min-height--tablet:17.5rem;--min-height--laptop:17.5rem;--min-height--desktop:17.5rem}:host,:host>*{box-sizing:border-box;display:block}.content-header{z-index:0;position:relative}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2) )}.content-header-content{z-index:2;box-sizing:border-box;flex-direction:column;display:flex;position:relative}.content-header-content ::slotted([slot=patch]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{z-index:1;pointer-events:none;display:none;position:absolute;inset:0}[contrast-helper-gradient] .contrast-helper{background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%);display:block}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{background-color:#ffffffb3;display:block}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (width>=48rem){.content-header-content ::slotted([slot=patch]){flex-shrink:0}.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (width>=64.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (width>=90.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}", b = ":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 (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 (width>=48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-desktop)}}@media screen and (width>=64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-desktop)}}", x = ":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-left-style:none;border-right-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-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-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-position:50%;background-size:cover}.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]){z-index:3;transform:translateY(-50%)}::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]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::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{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}: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 (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-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.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 (width>=48rem) and (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-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.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 (width>=64.0625rem) and (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 (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-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (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)}}", S = new CSSStyleSheet();
5
+ S.replaceSync(x);
6
+ var C = [
7
+ "top-patch",
8
+ "top-neighbor-patch",
9
+ "top-ribbon",
10
+ "top-neighbor-ribbon",
11
+ "top-patch-and-neighbor-ribbon"
12
+ ], w = [
13
+ "1",
14
+ "2",
15
+ "3",
16
+ "4",
17
+ "5",
18
+ "6",
19
+ "7",
20
+ "8",
21
+ "9",
22
+ "10",
23
+ "11",
24
+ "12"
25
+ ], T = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, E = "px-padding", D = [
26
+ f("padding", T, _, E, "--container-padding"),
27
+ f("padding-inline", T, _, E),
28
+ f("padding-block", T, _, E),
29
+ f("padding-top", T, _, E),
30
+ f("padding-right", T, _, E, "--container-padding-right"),
31
+ f("padding-bottom", T, _, E),
32
+ f("padding-left", T, _, E, "--container-padding-left"),
33
+ f("gap", T, p, "px-spacing", void 0, "subgrid-gap")
34
+ ], O = class extends n {
35
+ static {
36
+ this.nativeName = "div";
37
+ }
38
+ constructor() {
39
+ super(S, ...D), this.template = () => "<div class=\"container\">\n <slot></slot>\n <slot name=\"anchor-left\"></slot>\n <slot name=\"anchor-right\"></slot>\n <slot name=\"anchor-full\"></slot>\n </div>", this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
40
+ }
41
+ static get observedAttributes() {
42
+ return [
43
+ ...super.observedAttributes,
44
+ "border",
45
+ "border-color",
46
+ "border-side",
47
+ "border-side--mobile",
48
+ "border-side--tablet",
49
+ "border-side--laptop",
50
+ "border-radius",
51
+ "no-border-radius",
52
+ "no-border-radius--mobile",
53
+ "no-border-radius--tablet",
54
+ "no-border-radius--laptop",
55
+ "background-color",
56
+ "background-color--mobile",
57
+ "background-color--tablet",
58
+ "background-color--laptop",
59
+ "background-gradient",
60
+ "background-gradient--mobile",
61
+ "background-gradient--tablet",
62
+ "background-gradient--laptop",
63
+ "background-image",
64
+ "background-image--mobile",
65
+ "background-image--tablet",
66
+ "background-image--laptop",
67
+ "background-size",
68
+ "background-position",
69
+ "box-shadow",
70
+ "anchor-offset",
71
+ "anchor-spacing",
72
+ "inverted",
73
+ "subgrid-rows"
74
+ ];
75
+ }
76
+ connectedCallback() {
77
+ this.padding ||= "m", this.backgroundColor ||= "surface-light", this.borderColor ||= "main", this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
78
+ this.$slotAnchor && this.addAnchorClass();
79
+ }), this.contentObserver.observe(this, {
80
+ childList: !0,
81
+ subtree: !0,
82
+ characterData: !0
83
+ }), this._bgObserver = new IntersectionObserver((e) => {
84
+ e.forEach((e) => {
85
+ e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), this._bgObserver?.disconnect());
86
+ });
87
+ }), this._bgObserver.observe(this.$el);
88
+ }
89
+ disconnectedCallback() {
90
+ this._bgObserver?.disconnect(), this.contentObserver?.disconnect();
91
+ }
92
+ attributeChangedCallback(e, t, n) {
93
+ if (t !== n) switch (e) {
94
+ case "border":
95
+ this.updateAttribute(e, t, n, l);
96
+ break;
97
+ case "border-color":
98
+ this.updateBorderColor(e, n);
99
+ break;
100
+ case "border-side":
101
+ case "border-side--mobile":
102
+ case "border-side--tablet":
103
+ case "border-side--laptop":
104
+ this.updateAttribute(e, t, n, c);
105
+ break;
106
+ case "border-radius":
107
+ this.updateAttribute(e, t, n, s);
108
+ break;
109
+ case "no-border-radius":
110
+ case "no-border-radius--mobile":
111
+ case "no-border-radius--tablet":
112
+ case "no-border-radius--laptop":
113
+ this.updateNoBorderRadius(e, t, n, g);
114
+ break;
115
+ case "background-color":
116
+ case "background-color--mobile":
117
+ case "background-color--tablet":
118
+ case "background-color--laptop":
119
+ this.updateBackgroundColor(e, n);
120
+ break;
121
+ case "background-gradient":
122
+ case "background-gradient--mobile":
123
+ case "background-gradient--tablet":
124
+ case "background-gradient--laptop":
125
+ this.updateGradient(e, n);
126
+ break;
127
+ case "background-size":
128
+ this.updateAttribute(e, t, n, i);
129
+ break;
130
+ case "background-image":
131
+ case "background-image--mobile":
132
+ case "background-image--tablet":
133
+ case "background-image--laptop":
134
+ this._isInViewport && this.updateBackgroundImg(e, n);
135
+ break;
136
+ case "background-position":
137
+ n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
138
+ break;
139
+ case "box-shadow":
140
+ this.updateAttribute(e, t, n, u);
141
+ break;
142
+ case "anchor-offset":
143
+ this.updateAnchorOffset(t, n, _);
144
+ break;
145
+ case "anchor-spacing":
146
+ this.updateAnchorSpacing(t, n, C);
147
+ break;
148
+ case "subgrid-rows":
149
+ this.updateSubgridRows(e, t, n, w);
150
+ break;
151
+ default: super.attributeChangedCallback(e, t, n);
152
+ }
153
+ }
154
+ _loadBackgroundImages() {
155
+ [
156
+ "background-image",
157
+ "background-image--mobile",
158
+ "background-image--tablet",
159
+ "background-image--laptop"
160
+ ].forEach((e) => {
161
+ let t = this.getAttribute(e);
162
+ t && this.updateBackgroundImg(e, t);
163
+ });
164
+ }
165
+ updateBackgroundImg(e, t) {
166
+ this.$el.style.setProperty(`--${e}`, `url("${t}")`);
167
+ }
168
+ updateGradient(e, t) {
169
+ if (this.checkName(m, t)) {
170
+ let n = this.splitAttrNameFromBreakpoint(e);
171
+ e = n.attrName;
172
+ let r = n.breakpoint;
173
+ this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
174
+ } else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
175
+ }
176
+ updateBackgroundColor(e, t) {
177
+ let n = t.startsWith("surface-");
178
+ if (this.checkName(r, t)) {
179
+ let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
180
+ this.$el.style.setProperty(`--${r.attrName}${i}`, `var(--px-color-background-${t}${n ? "" : "-default"})`), this.$el.style.setProperty(`--${r.attrName}-inverted${i}`, `var(--px-color-background-${t}${n ? "" : "-inverted"})`);
181
+ } else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
182
+ }
183
+ updateBorderColor(e, t) {
184
+ this.checkName(o, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) : h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join("\", \"")}".`);
185
+ }
186
+ updateNoBorderRadius(e, t, n, r) {
187
+ if (!this.checkName(r, n)) h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
188
+ else {
189
+ let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
190
+ t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
191
+ }
192
+ }
193
+ updateAttribute(e, t, n, r) {
194
+ if (!this.checkName(r, n)) h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
195
+ else {
196
+ let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
197
+ t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
198
+ }
199
+ }
200
+ splitAttrNameFromBreakpoint(e) {
201
+ let t = "";
202
+ if ([
203
+ "--mobile",
204
+ "--tablet",
205
+ "--laptop"
206
+ ].some((t) => e.includes(t))) {
207
+ let n = e.split("--");
208
+ e = n[0], t = `--${n[1]}`;
209
+ }
210
+ return {
211
+ attrName: e,
212
+ breakpoint: t
213
+ };
214
+ }
215
+ updateAnchorOffset(e, t, n) {
216
+ if (!d(n, t)) {
217
+ h(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
218
+ return;
219
+ }
220
+ let r = (e) => {
221
+ e !== null && e !== "" && e !== "default" && (this.$el.style.setProperty("--container-anchor-offset--mobile", `var(--px-padding-${e}-mobile)`), this.$el.style.setProperty("--container-anchor-offset--tablet", `var(--px-padding-${e}-tablet)`), this.$el.style.setProperty("--container-anchor-offset--laptop", `var(--px-padding-${e}-laptop)`));
222
+ };
223
+ r(e), r(t);
224
+ }
225
+ addAnchorClass() {
226
+ this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
227
+ }
228
+ updateAnchorSpacing(e, t, n) {
229
+ if (!d(n, t)) {
230
+ h(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
231
+ return;
232
+ }
233
+ let r = (e) => {
234
+ e !== null && e !== "" && e !== "default" && (this.style.setProperty("--container-anchor-spacing--mobile", `var(--px-spacing-${e}-mobile)`), this.style.setProperty("--container-anchor-spacing--tablet", `var(--px-spacing-${e}-tablet)`), this.style.setProperty("--container-anchor-spacing--laptop", `var(--px-spacing-${e}-laptop)`), this.style.setProperty("--container-anchor-spacing--desktop", `var(--px-spacing-${e}-desktop)`));
235
+ };
236
+ r(e), r(t);
237
+ }
238
+ updateSubgridRows(e, t, n, r) {
239
+ d(r, n) ? this.style.setProperty(`--${e}`, n) : h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
240
+ }
241
+ get $el() {
242
+ return this?.shadowRoot?.querySelector(".container");
243
+ }
244
+ get $slotAnchor() {
245
+ return this.querySelector("[slot^=\"anchor\"]");
246
+ }
247
+ get padding() {
248
+ return this.getAttribute("padding");
249
+ }
250
+ set padding(e) {
251
+ v(this, "padding", e);
252
+ }
253
+ get paddingBlock() {
254
+ return this.getAttribute("padding-block");
255
+ }
256
+ set paddingBlock(e) {
257
+ v(this, "padding-block", e);
258
+ }
259
+ get paddingInline() {
260
+ return this.getAttribute("padding-inline");
261
+ }
262
+ set paddingInline(e) {
263
+ v(this, "padding-inline", e);
264
+ }
265
+ get paddingTop() {
266
+ return this.getAttribute("padding-top");
267
+ }
268
+ set paddingTop(e) {
269
+ v(this, "padding-top", e);
270
+ }
271
+ get paddingRight() {
272
+ return this.getAttribute("padding-right");
273
+ }
274
+ set paddingRight(e) {
275
+ v(this, "padding-right", e);
276
+ }
277
+ get paddingBottom() {
278
+ return this.getAttribute("padding-bottom");
279
+ }
280
+ set paddingBottom(e) {
281
+ v(this, "padding-bottom", e);
282
+ }
283
+ get paddingLeft() {
284
+ return this.getAttribute("padding-left");
285
+ }
286
+ set paddingLeft(e) {
287
+ v(this, "padding-left", e);
288
+ }
289
+ get paddingMobile() {
290
+ return this.getAttribute("padding--mobile");
291
+ }
292
+ set paddingMobile(e) {
293
+ v(this, "padding--mobile", e);
294
+ }
295
+ get paddingBlockMobile() {
296
+ return this.getAttribute("padding-block--mobile");
297
+ }
298
+ set paddingBlockMobile(e) {
299
+ v(this, "padding-block--mobile", e);
300
+ }
301
+ get paddingInlineMobile() {
302
+ return this.getAttribute("padding-inline--mobile");
303
+ }
304
+ set paddingInlineMobile(e) {
305
+ v(this, "padding-inline--mobile", e);
306
+ }
307
+ get paddingTopMobile() {
308
+ return this.getAttribute("padding-top--mobile");
309
+ }
310
+ set paddingTopMobile(e) {
311
+ v(this, "padding-top--mobile", e);
312
+ }
313
+ get paddingRightMobile() {
314
+ return this.getAttribute("padding-right--mobile");
315
+ }
316
+ set paddingRightMobile(e) {
317
+ v(this, "padding-right--mobile", e);
318
+ }
319
+ get paddingBottomMobile() {
320
+ return this.getAttribute("padding-bottom--mobile");
321
+ }
322
+ set paddingBottomMobile(e) {
323
+ v(this, "padding-bottom--mobile", e);
324
+ }
325
+ get paddingLeftMobile() {
326
+ return this.getAttribute("padding-left--mobile");
327
+ }
328
+ set paddingLeftMobile(e) {
329
+ v(this, "padding-left--mobile", e);
330
+ }
331
+ get paddingTablet() {
332
+ return this.getAttribute("padding--tablet");
333
+ }
334
+ set paddingTablet(e) {
335
+ v(this, "padding--tablet", e);
336
+ }
337
+ get paddingBlockTablet() {
338
+ return this.getAttribute("padding-block--tablet");
339
+ }
340
+ set paddingBlockTablet(e) {
341
+ v(this, "padding-block--tablet", e);
342
+ }
343
+ get paddingInlineTablet() {
344
+ return this.getAttribute("padding-inline--tablet");
345
+ }
346
+ set paddingInlineTablet(e) {
347
+ v(this, "padding-inline--tablet", e);
348
+ }
349
+ get paddingTopTablet() {
350
+ return this.getAttribute("padding-top--tablet");
351
+ }
352
+ set paddingTopTablet(e) {
353
+ v(this, "padding-top--tablet", e);
354
+ }
355
+ get paddingRightTablet() {
356
+ return this.getAttribute("padding-right--tablet");
357
+ }
358
+ set paddingRightTablet(e) {
359
+ v(this, "padding-right--tablet", e);
360
+ }
361
+ get paddingBottomTablet() {
362
+ return this.getAttribute("padding-bottom--tablet");
363
+ }
364
+ set paddingBottomTablet(e) {
365
+ v(this, "padding-bottom--tablet", e);
366
+ }
367
+ get paddingLeftTablet() {
368
+ return this.getAttribute("padding-left--tablet");
369
+ }
370
+ set paddingLeftTablet(e) {
371
+ v(this, "padding-left--tablet", e);
372
+ }
373
+ get paddingLaptop() {
374
+ return this.getAttribute("padding--laptop");
375
+ }
376
+ set paddingLaptop(e) {
377
+ v(this, "padding--laptop", e);
378
+ }
379
+ get paddingBlockLaptop() {
380
+ return this.getAttribute("padding-block--laptop");
381
+ }
382
+ set paddingBlockLaptop(e) {
383
+ v(this, "padding-block--laptop", e);
384
+ }
385
+ get paddingInlineLaptop() {
386
+ return this.getAttribute("padding-inline--laptop");
387
+ }
388
+ set paddingInlineLaptop(e) {
389
+ v(this, "padding-inline--laptop", e);
390
+ }
391
+ get paddingTopLaptop() {
392
+ return this.getAttribute("padding-top--laptop");
393
+ }
394
+ set paddingTopLaptop(e) {
395
+ v(this, "padding-top--laptop", e);
396
+ }
397
+ get paddingRightLaptop() {
398
+ return this.getAttribute("padding-right--laptop");
399
+ }
400
+ set paddingRightLaptop(e) {
401
+ v(this, "padding-right--laptop", e);
402
+ }
403
+ get paddingBottomLaptop() {
404
+ return this.getAttribute("padding-bottom--laptop");
405
+ }
406
+ set paddingBottomLaptop(e) {
407
+ v(this, "padding-bottom--laptop", e);
408
+ }
409
+ get paddingLeftLaptop() {
410
+ return this.getAttribute("padding-left--laptop");
411
+ }
412
+ set paddingLeftLaptop(e) {
413
+ v(this, "padding-left--laptop", e);
414
+ }
415
+ get border() {
416
+ return this.getAttribute("border");
417
+ }
418
+ set border(e) {
419
+ v(this, "border", e);
420
+ }
421
+ get borderColor() {
422
+ return this.getAttribute("border-color");
423
+ }
424
+ set borderColor(e) {
425
+ v(this, "border-color", e);
426
+ }
427
+ get borderSide() {
428
+ return this.getAttribute("border-side");
429
+ }
430
+ set borderSide(e) {
431
+ v(this, "border-side", e);
432
+ }
433
+ get borderSideMobile() {
434
+ return this.getAttribute("border-side--mobile");
435
+ }
436
+ set borderSideMobile(e) {
437
+ v(this, "border-side--mobile", e);
438
+ }
439
+ get borderSideTablet() {
440
+ return this.getAttribute("border-side--tablet");
441
+ }
442
+ set borderSideTablet(e) {
443
+ v(this, "border-side--tablet", e);
444
+ }
445
+ get borderSideLaptop() {
446
+ return this.getAttribute("border-side--laptop");
447
+ }
448
+ set borderSideLaptop(e) {
449
+ v(this, "border-side--laptop", e);
450
+ }
451
+ get borderRadius() {
452
+ return this.getAttribute("border-radius");
453
+ }
454
+ set borderRadius(e) {
455
+ v(this, "border-radius", e);
456
+ }
457
+ get noBorderRadius() {
458
+ return this.getAttribute("no-border-radius");
459
+ }
460
+ set noBorderRadius(e) {
461
+ v(this, "no-border-radius", e);
462
+ }
463
+ get noBorderRadiusMobile() {
464
+ return this.getAttribute("no-border-radius--mobile");
465
+ }
466
+ set noBorderRadiusMobile(e) {
467
+ v(this, "no-border-radius--mobile", e);
468
+ }
469
+ get noBorderRadiusTablet() {
470
+ return this.getAttribute("no-border-radius--tablet");
471
+ }
472
+ set noBorderRadiusTablet(e) {
473
+ v(this, "no-border-radius--tablet", e);
474
+ }
475
+ get noBorderRadiusLaptop() {
476
+ return this.getAttribute("no-border-radius--laptop");
477
+ }
478
+ set noBorderRadiusLaptop(e) {
479
+ v(this, "no-border-radius--laptop", e);
480
+ }
481
+ get backgroundColor() {
482
+ return this.getAttribute("background-color");
483
+ }
484
+ set backgroundColor(e) {
485
+ v(this, "background-color", e);
486
+ }
487
+ get backgroundColorMobile() {
488
+ return this.getAttribute("background-color--mobile");
489
+ }
490
+ set backgroundColorMobile(e) {
491
+ v(this, "background-color--mobile", e);
492
+ }
493
+ get backgroundColorTablet() {
494
+ return this.getAttribute("background-color--tablet");
495
+ }
496
+ set backgroundColorTablet(e) {
497
+ v(this, "background-color--tablet", e);
498
+ }
499
+ get backgroundColorLaptop() {
500
+ return this.getAttribute("background-color--laptop");
501
+ }
502
+ set backgroundColorLaptop(e) {
503
+ v(this, "background-color--laptop", e);
504
+ }
505
+ get gradient() {
506
+ return this.getAttribute("background-gradient");
507
+ }
508
+ set gradient(e) {
509
+ v(this, "background-gradient", e);
510
+ }
511
+ get gradientMobile() {
512
+ return this.getAttribute("background-gradient--mobile");
513
+ }
514
+ set gradientMobile(e) {
515
+ v(this, "background-gradient--mobile", e);
516
+ }
517
+ get gradientTablet() {
518
+ return this.getAttribute("background-gradient--tablet");
519
+ }
520
+ set gradientTablet(e) {
521
+ v(this, "background-gradient--tablet", e);
522
+ }
523
+ get gradientLaptop() {
524
+ return this.getAttribute("background-gradient--laptop");
525
+ }
526
+ set gradientLaptop(e) {
527
+ v(this, "background-gradient--laptop", e);
528
+ }
529
+ get backgroundImage() {
530
+ return this.getAttribute("background-image");
531
+ }
532
+ set backgroundImage(e) {
533
+ v(this, "background-image", e);
534
+ }
535
+ get backgroundImageMobile() {
536
+ return this.getAttribute("background-image--mobile");
537
+ }
538
+ set backgroundImageMobile(e) {
539
+ v(this, "background-image--mobile", e);
540
+ }
541
+ get backgroundImageTablet() {
542
+ return this.getAttribute("background-image--tablet");
543
+ }
544
+ set backgroundImageTablet(e) {
545
+ v(this, "background-image--tablet", e);
546
+ }
547
+ get backgroundImageLaptop() {
548
+ return this.getAttribute("background-image--laptop");
549
+ }
550
+ set backgroundImageLaptop(e) {
551
+ v(this, "background-image--laptop", e);
552
+ }
553
+ get backgroundSize() {
554
+ return this.getAttribute("background-size");
555
+ }
556
+ set backgroundSize(e) {
557
+ v(this, "background-size", e);
558
+ }
559
+ get backgroundPosition() {
560
+ return this.getAttribute("background-position");
561
+ }
562
+ set backgroundPosition(e) {
563
+ v(this, "background-position", e);
564
+ }
565
+ get boxShadow() {
566
+ return this.getAttribute("box-shadow");
567
+ }
568
+ set boxShadow(e) {
569
+ v(this, "box-shadow", e);
570
+ }
571
+ get anchorOffset() {
572
+ return this.getAttribute("anchor-offset");
573
+ }
574
+ set anchorOffset(e) {
575
+ v(this, "anchor-offset", e);
576
+ }
577
+ get anchorSpacing() {
578
+ return this.getAttribute("anchor-spacing");
579
+ }
580
+ set anchorSpacing(e) {
581
+ v(this, "anchor-spacing", e);
582
+ }
583
+ get inverted() {
584
+ return this.hasAttribute("inverted");
585
+ }
586
+ set inverted(e) {
587
+ a(this, "inverted", e);
588
+ }
589
+ get subgridRows() {
590
+ return this.getAttribute("subgrid-rows");
591
+ }
592
+ set subgridRows(e) {
593
+ v(this, "subgrid-rows", e);
594
+ }
595
+ get subgridGap() {
596
+ return this.getAttribute("subgrid-gap");
597
+ }
598
+ set subgridGap(e) {
599
+ v(this, "subgrid-gap", e);
600
+ }
601
+ get subgridGapMobile() {
602
+ return this.getAttribute("subgrid-gap--mobile");
603
+ }
604
+ set subgridGapMobile(e) {
605
+ v(this, "subgrid-gap--mobile", e);
606
+ }
607
+ get subgridGapTablet() {
608
+ return this.getAttribute("subgrid-gap--tablet");
609
+ }
610
+ set subgridGapTablet(e) {
611
+ v(this, "subgrid-gap--tablet", e);
612
+ }
613
+ get subgridGapLaptop() {
614
+ return this.getAttribute("subgrid-gap--laptop");
615
+ }
616
+ set subgridGapLaptop(e) {
617
+ v(this, "subgrid-gap--laptop", e);
618
+ }
750
619
  };
751
- $.nativeName = "div";
752
- let k = $;
753
- customElements.get("px-container") || customElements.define("px-container", k);
754
- const W = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media screen and (max-width: 47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (min-width: 48rem) and (max-width: 64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media screen and (min-width: 90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', I = new CSSStyleSheet();
755
- I.replaceSync(W);
756
- const Y = [
757
- "",
758
- "default",
759
- "row",
760
- "row-reverse",
761
- "column",
762
- "column-reverse"
763
- ], J = [
764
- "",
765
- "default",
766
- "stretch",
767
- "flex-start",
768
- "start",
769
- "flex-end",
770
- "end",
771
- "center",
772
- "baseline"
773
- ], K = [
774
- "",
775
- "default",
776
- "flex-start",
777
- "start",
778
- "flex-end",
779
- "end",
780
- "center",
781
- "space-between",
782
- "space-around",
783
- "space-evenly"
784
- ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
785
- class A extends m {
786
- constructor() {
787
- super(I), this.overflowXAttributeDelegate = new G(
788
- this,
789
- "overflow-x",
790
- (t) => t,
791
- "--overflow-x"
792
- ), this.template = `<div class="flex-container">
793
- <slot></slot>
794
- </div>`, this.shadowRoot.innerHTML = this.template;
795
- }
796
- connectedCallback() {
797
- this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
798
- }
799
- static get observedAttributes() {
800
- return [
801
- ...super.observedAttributes,
802
- "direction",
803
- "direction--mobile",
804
- "direction--tablet",
805
- "direction--laptop",
806
- "direction--desktop",
807
- "gap",
808
- "gap--mobile",
809
- "gap--tablet",
810
- "gap--laptop",
811
- "gap--desktop",
812
- "justify-content",
813
- "justify-content--mobile",
814
- "justify-content--tablet",
815
- "justify-content--laptop",
816
- "justify-content--desktop",
817
- "align-items",
818
- "align-items--mobile",
819
- "align-items--tablet",
820
- "align-items--laptop",
821
- "align-items--desktop",
822
- "wrap",
823
- "wrap--mobile",
824
- "wrap--tablet",
825
- "wrap--laptop",
826
- "wrap--desktop",
827
- "overflow-x",
828
- "overflow-x--mobile",
829
- "overflow-x--tablet",
830
- "overflow-x--laptop",
831
- "overflow-x--desktop"
832
- ];
833
- }
834
- attributeChangedCallback(t, i, e) {
835
- switch (t) {
836
- case "gap":
837
- case "gap--mobile":
838
- case "gap--tablet":
839
- case "gap--laptop":
840
- case "gap--desktop":
841
- this.updateFlexProperties(t, i, e, x);
842
- break;
843
- case "justify-content":
844
- case "justify-content--mobile":
845
- case "justify-content--tablet":
846
- case "justify-content--laptop":
847
- case "justify-content--desktop":
848
- this.updateFlexProperties(
849
- t,
850
- i,
851
- e,
852
- K
853
- );
854
- break;
855
- case "align-items":
856
- case "align-items--mobile":
857
- case "align-items--tablet":
858
- case "align-items--laptop":
859
- case "align-items--desktop":
860
- this.updateFlexProperties(t, i, e, J);
861
- break;
862
- case "wrap":
863
- case "wrap--mobile":
864
- case "wrap--tablet":
865
- case "wrap--laptop":
866
- case "wrap--desktop":
867
- this.updateFlexProperties(t, i, e, Q);
868
- break;
869
- case "direction":
870
- case "direction--mobile":
871
- case "direction--tablet":
872
- case "direction--laptop":
873
- case "direction--desktop":
874
- this.updateFlexProperties(t, i, e, Y);
875
- break;
876
- case "overflow-x":
877
- case "overflow-x--mobile":
878
- case "overflow-x--tablet":
879
- case "overflow-x--laptop":
880
- case "overflow-x--desktop":
881
- this.updateOverflowX(t, i, e, U);
882
- break;
883
- default:
884
- super.attributeChangedCallback(t, i, e);
885
- break;
886
- }
887
- }
888
- updateOverflowX(t, i, e, o) {
889
- if (!h(o, e)) {
890
- s(
891
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
892
- );
893
- return;
894
- }
895
- this.overflowXAttributeDelegate.attributeChangedCallback(
896
- t,
897
- i,
898
- e
899
- );
900
- }
901
- updateFlexProperties(t, i, e, o) {
902
- this.checkName(o, e) || s(
903
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
904
- );
905
- const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
906
- if (!r)
907
- this.getAttribute(a + "--mobile") || c.push("mobile"), this.getAttribute(a + "--tablet") || c.push("tablet"), this.getAttribute(a + "--laptop") || c.push("laptop"), this.getAttribute(a + "--desktop") || c.push("desktop"), c.forEach((b) => {
908
- this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
909
- });
910
- else {
911
- const b = t.split("--")[1];
912
- this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
913
- }
914
- }
915
- updateStyle(t, i, e, o) {
916
- e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
917
- `--flex-${t}--${i}-value`,
918
- `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
919
- ), this.style.setProperty(
920
- `--host-gap--${i}`,
921
- `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
922
- )) : this.$el.style.setProperty(
923
- `--flex-${t}--${i}-value`,
924
- e
925
- ));
926
- }
927
- get direction() {
928
- return this.getAttribute("direction");
929
- }
930
- set direction(t) {
931
- this.setAttribute("direction", t);
932
- }
933
- get directionMobile() {
934
- return this.getAttribute("direction--mobile");
935
- }
936
- set directionMobile(t) {
937
- this.setAttribute("direction--mobile", t);
938
- }
939
- get directionTablet() {
940
- return this.getAttribute("direction--tablet");
941
- }
942
- set directionTablet(t) {
943
- this.setAttribute("direction--tablet", t);
944
- }
945
- get directionLaptop() {
946
- return this.getAttribute("direction--laptop");
947
- }
948
- set directionLaptop(t) {
949
- this.setAttribute("direction--laptop", t);
950
- }
951
- get directionDesktop() {
952
- return this.getAttribute("direction--desktop");
953
- }
954
- set directionDesktop(t) {
955
- this.setAttribute("direction--desktop", t);
956
- }
957
- get gap() {
958
- return this.getAttribute("gap");
959
- }
960
- set gap(t) {
961
- this.setAttribute("gap", t);
962
- }
963
- get gapMobile() {
964
- return this.getAttribute("gap--mobile");
965
- }
966
- set gapMobile(t) {
967
- this.setAttribute("gap--mobile", t);
968
- }
969
- get gapTablet() {
970
- return this.getAttribute("gap--tablet");
971
- }
972
- set gapTablet(t) {
973
- this.setAttribute("gap--tablet", t);
974
- }
975
- get gapLaptop() {
976
- return this.getAttribute("gap--laptop");
977
- }
978
- set gapLaptop(t) {
979
- this.setAttribute("gap--laptop", t);
980
- }
981
- get gapDesktop() {
982
- return this.getAttribute("gap--desktop");
983
- }
984
- set gapDesktop(t) {
985
- this.setAttribute("gap--desktop", t);
986
- }
987
- get justifyContent() {
988
- return this.getAttribute("justify-content");
989
- }
990
- set justifyContent(t) {
991
- this.setAttribute("justify-content", t);
992
- }
993
- get justifyContentMobile() {
994
- return this.getAttribute("justify-content--mobile");
995
- }
996
- set justifyContentMobile(t) {
997
- this.setAttribute("justify-content--mobile", t);
998
- }
999
- get justifyContentTablet() {
1000
- return this.getAttribute("justify-content--tablet");
1001
- }
1002
- set justifyContentTablet(t) {
1003
- this.setAttribute("justify-content--tablet", t);
1004
- }
1005
- get justifyContentLaptop() {
1006
- return this.getAttribute("justify-content--laptop");
1007
- }
1008
- set justifyContentLaptop(t) {
1009
- this.setAttribute("justify-content--laptop", t);
1010
- }
1011
- get justifyContentDesktop() {
1012
- return this.getAttribute("justify-content--desktop");
1013
- }
1014
- set justifyContentDesktop(t) {
1015
- this.setAttribute("justify-content--desktop", t);
1016
- }
1017
- get alignItems() {
1018
- return this.getAttribute("align-items");
1019
- }
1020
- set alignItems(t) {
1021
- this.setAttribute("align-items", t);
1022
- }
1023
- get alignItemsMobile() {
1024
- return this.getAttribute("align-items--mobile");
1025
- }
1026
- set alignItemsMobile(t) {
1027
- this.setAttribute("align-items--mobile", t);
1028
- }
1029
- get alignItemsTablet() {
1030
- return this.getAttribute("align-items--tablet");
1031
- }
1032
- set alignItemsTablet(t) {
1033
- this.setAttribute("align-items--tablet", t);
1034
- }
1035
- get alignItemsLaptop() {
1036
- return this.getAttribute("align-items--laptop");
1037
- }
1038
- set alignItemsLaptop(t) {
1039
- this.setAttribute("align-items--laptop", t);
1040
- }
1041
- get alignItemsDesktop() {
1042
- return this.getAttribute("align-items--desktop");
1043
- }
1044
- set alignItemsDesktop(t) {
1045
- this.setAttribute("align-items--desktop", t);
1046
- }
1047
- get wrap() {
1048
- return this.getAttribute("wrap");
1049
- }
1050
- set wrap(t) {
1051
- this.setAttribute("wrap", t);
1052
- }
1053
- get wrapMobile() {
1054
- return this.getAttribute("wrap--mobile");
1055
- }
1056
- set wrapMobile(t) {
1057
- this.setAttribute("wrap--mobile", t);
1058
- }
1059
- get wrapTablet() {
1060
- return this.getAttribute("wrap--tablet");
1061
- }
1062
- set wrapTablet(t) {
1063
- this.setAttribute("wrap--tablet", t);
1064
- }
1065
- get wrapLaptop() {
1066
- return this.getAttribute("wrap--laptop");
1067
- }
1068
- set wrapLaptop(t) {
1069
- this.setAttribute("wrap--laptop", t);
1070
- }
1071
- get wrapDesktop() {
1072
- return this.getAttribute("wrap--desktop");
1073
- }
1074
- set wrapDesktop(t) {
1075
- this.setAttribute("wrap--desktop", t);
1076
- }
1077
- get overflowX() {
1078
- return this.getAttribute("overflow-x");
1079
- }
1080
- set overflowX(t) {
1081
- this.setAttribute("overflow-x", t);
1082
- }
1083
- get overflowXMobile() {
1084
- return this.getAttribute("overflow-x--mobile");
1085
- }
1086
- set overflowXMobile(t) {
1087
- this.setAttribute("overflow-x--mobile", t);
1088
- }
1089
- get overflowXTablet() {
1090
- return this.getAttribute("overflow-x--tablet");
1091
- }
1092
- set overflowXTablet(t) {
1093
- this.setAttribute("overflow-x--tablet", t);
1094
- }
1095
- get overflowXLaptop() {
1096
- return this.getAttribute("overflow-x--laptop");
1097
- }
1098
- set overflowXLaptop(t) {
1099
- this.setAttribute("overflow-x--laptop", t);
1100
- }
1101
- get overflowXDesktop() {
1102
- return this.getAttribute("overflow-x--desktop");
1103
- }
1104
- set overflowXDesktop(t) {
1105
- this.setAttribute("overflow-x--desktop", t);
1106
- }
1107
- get $el() {
1108
- return this.shadowRoot.querySelector(".flex-container");
1109
- }
1110
- }
1111
- customElements.get("px-stack") || customElements.define("px-stack", A);
1112
- class V extends A {
1113
- constructor() {
1114
- super();
1115
- }
1116
- connectedCallback() {
1117
- super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
1118
- }
1119
- }
1120
- customElements.get("px-vstack") || customElements.define("px-vstack", V);
1121
- class tt extends A {
1122
- constructor() {
1123
- super();
1124
- }
1125
- connectedCallback() {
1126
- super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
1127
- }
1128
- }
1129
- customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1130
- class et extends HTMLElement {
1131
- constructor() {
1132
- super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1133
- }
1134
- static get observedAttributes() {
1135
- return ["grow", "nogap"];
1136
- }
1137
- attributeChangedCallback(t, i, e) {
1138
- t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1139
- }
1140
- connectedCallback() {
1141
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1142
- this.handleSizeChange();
1143
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1144
- }
1145
- disconnectedCallback() {
1146
- var t;
1147
- (t = this.resizeObserver) == null || t.disconnect(), this.recheckHandle && (cancelAnimationFrame(this.recheckHandle), this.recheckHandle = void 0);
1148
- }
1149
- get grow() {
1150
- return this.getAttribute("grow");
1151
- }
1152
- set grow(t) {
1153
- this.setAttribute("grow", t);
1154
- }
1155
- scheduleRecheck() {
1156
- this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
1157
- this.recheckHandle = void 0, this.recalculateVisibility();
1158
- });
1159
- }
1160
- recalculateVisibility() {
1161
- this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
1162
- }
1163
- handleSizeChange() {
1164
- const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
1165
- this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
1166
- }
1167
- updateParticipation() {
1168
- this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1169
- }
1170
- get nogap() {
1171
- return this.hasAttribute("nogap");
1172
- }
1173
- set nogap(t) {
1174
- t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1175
- }
1176
- }
1177
- customElements.get("px-spacer") || customElements.define("px-spacer", et);
1178
- const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", M = new CSSStyleSheet();
1179
- M.replaceSync(it);
1180
- class ot extends m {
1181
- constructor() {
1182
- super(M), this.template = (t) => `
620
+ customElements.get("px-container") || customElements.define("px-container", O);
621
+ //#endregion
622
+ //#region ../Layout/src/Stack.css?inline
623
+ var k = ":host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}", A = new CSSStyleSheet();
624
+ A.replaceSync(k);
625
+ var j = [
626
+ "",
627
+ "default",
628
+ "row",
629
+ "row-reverse",
630
+ "column",
631
+ "column-reverse"
632
+ ], M = [
633
+ "",
634
+ "default",
635
+ "stretch",
636
+ "flex-start",
637
+ "start",
638
+ "flex-end",
639
+ "end",
640
+ "center",
641
+ "baseline"
642
+ ], N = [
643
+ "",
644
+ "default",
645
+ "flex-start",
646
+ "start",
647
+ "flex-end",
648
+ "end",
649
+ "center",
650
+ "space-between",
651
+ "space-around",
652
+ "space-evenly"
653
+ ], P = [
654
+ "",
655
+ "default",
656
+ "nowrap",
657
+ "wrap",
658
+ "wrap-reverse"
659
+ ], F = [
660
+ "",
661
+ "visible",
662
+ "hidden",
663
+ "scroll",
664
+ "auto"
665
+ ], I = class extends n {
666
+ constructor() {
667
+ super(A), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.template = "<div class=\"flex-container\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template;
668
+ }
669
+ connectedCallback() {
670
+ this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
671
+ }
672
+ static get observedAttributes() {
673
+ return [
674
+ ...super.observedAttributes,
675
+ "direction",
676
+ "direction--mobile",
677
+ "direction--tablet",
678
+ "direction--laptop",
679
+ "direction--desktop",
680
+ "gap",
681
+ "gap--mobile",
682
+ "gap--tablet",
683
+ "gap--laptop",
684
+ "gap--desktop",
685
+ "justify-content",
686
+ "justify-content--mobile",
687
+ "justify-content--tablet",
688
+ "justify-content--laptop",
689
+ "justify-content--desktop",
690
+ "align-items",
691
+ "align-items--mobile",
692
+ "align-items--tablet",
693
+ "align-items--laptop",
694
+ "align-items--desktop",
695
+ "wrap",
696
+ "wrap--mobile",
697
+ "wrap--tablet",
698
+ "wrap--laptop",
699
+ "wrap--desktop",
700
+ "overflow-x",
701
+ "overflow-x--mobile",
702
+ "overflow-x--tablet",
703
+ "overflow-x--laptop",
704
+ "overflow-x--desktop"
705
+ ];
706
+ }
707
+ attributeChangedCallback(e, t, n) {
708
+ switch (e) {
709
+ case "gap":
710
+ case "gap--mobile":
711
+ case "gap--tablet":
712
+ case "gap--laptop":
713
+ case "gap--desktop":
714
+ this.updateFlexProperties(e, t, n, p);
715
+ break;
716
+ case "justify-content":
717
+ case "justify-content--mobile":
718
+ case "justify-content--tablet":
719
+ case "justify-content--laptop":
720
+ case "justify-content--desktop":
721
+ this.updateFlexProperties(e, t, n, N);
722
+ break;
723
+ case "align-items":
724
+ case "align-items--mobile":
725
+ case "align-items--tablet":
726
+ case "align-items--laptop":
727
+ case "align-items--desktop":
728
+ this.updateFlexProperties(e, t, n, M);
729
+ break;
730
+ case "wrap":
731
+ case "wrap--mobile":
732
+ case "wrap--tablet":
733
+ case "wrap--laptop":
734
+ case "wrap--desktop":
735
+ this.updateFlexProperties(e, t, n, P);
736
+ break;
737
+ case "direction":
738
+ case "direction--mobile":
739
+ case "direction--tablet":
740
+ case "direction--laptop":
741
+ case "direction--desktop":
742
+ this.updateFlexProperties(e, t, n, j);
743
+ break;
744
+ case "overflow-x":
745
+ case "overflow-x--mobile":
746
+ case "overflow-x--tablet":
747
+ case "overflow-x--laptop":
748
+ case "overflow-x--desktop":
749
+ this.updateOverflowX(e, t, n, F);
750
+ break;
751
+ default: super.attributeChangedCallback(e, t, n);
752
+ }
753
+ }
754
+ updateOverflowX(e, t, n, r) {
755
+ if (!d(r, n)) {
756
+ h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
757
+ return;
758
+ }
759
+ this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
760
+ }
761
+ updateFlexProperties(e, t, n, r) {
762
+ this.checkName(r, n) || h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
763
+ let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e, o = [];
764
+ if (!i) this.getAttribute(a + "--mobile") || o.push("mobile"), this.getAttribute(a + "--tablet") || o.push("tablet"), this.getAttribute(a + "--laptop") || o.push("laptop"), this.getAttribute(a + "--desktop") || o.push("desktop"), o.forEach((e) => {
765
+ this.updateStyle(a, e, t, r), this.updateStyle(a, e, n, r);
766
+ });
767
+ else {
768
+ let i = e.split("--")[1];
769
+ this.updateStyle(a, i, t, r), this.updateStyle(a, i, n, r);
770
+ }
771
+ }
772
+ updateStyle(e, t, n, r) {
773
+ n && (e === "gap" && r && r.includes(n) ? (this.$el.style.setProperty(`--flex-${e}--${t}-value`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`), this.style.setProperty(`--host-gap--${t}`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`)) : this.$el.style.setProperty(`--flex-${e}--${t}-value`, n));
774
+ }
775
+ get direction() {
776
+ return this.getAttribute("direction");
777
+ }
778
+ set direction(e) {
779
+ v(this, "direction", e);
780
+ }
781
+ get directionMobile() {
782
+ return this.getAttribute("direction--mobile");
783
+ }
784
+ set directionMobile(e) {
785
+ v(this, "direction--mobile", e);
786
+ }
787
+ get directionTablet() {
788
+ return this.getAttribute("direction--tablet");
789
+ }
790
+ set directionTablet(e) {
791
+ v(this, "direction--tablet", e);
792
+ }
793
+ get directionLaptop() {
794
+ return this.getAttribute("direction--laptop");
795
+ }
796
+ set directionLaptop(e) {
797
+ v(this, "direction--laptop", e);
798
+ }
799
+ get directionDesktop() {
800
+ return this.getAttribute("direction--desktop");
801
+ }
802
+ set directionDesktop(e) {
803
+ v(this, "direction--desktop", e);
804
+ }
805
+ get gap() {
806
+ return this.getAttribute("gap");
807
+ }
808
+ set gap(e) {
809
+ v(this, "gap", e);
810
+ }
811
+ get gapMobile() {
812
+ return this.getAttribute("gap--mobile");
813
+ }
814
+ set gapMobile(e) {
815
+ v(this, "gap--mobile", e);
816
+ }
817
+ get gapTablet() {
818
+ return this.getAttribute("gap--tablet");
819
+ }
820
+ set gapTablet(e) {
821
+ v(this, "gap--tablet", e);
822
+ }
823
+ get gapLaptop() {
824
+ return this.getAttribute("gap--laptop");
825
+ }
826
+ set gapLaptop(e) {
827
+ v(this, "gap--laptop", e);
828
+ }
829
+ get gapDesktop() {
830
+ return this.getAttribute("gap--desktop");
831
+ }
832
+ set gapDesktop(e) {
833
+ v(this, "gap--desktop", e);
834
+ }
835
+ get justifyContent() {
836
+ return this.getAttribute("justify-content");
837
+ }
838
+ set justifyContent(e) {
839
+ v(this, "justify-content", e);
840
+ }
841
+ get justifyContentMobile() {
842
+ return this.getAttribute("justify-content--mobile");
843
+ }
844
+ set justifyContentMobile(e) {
845
+ v(this, "justify-content--mobile", e);
846
+ }
847
+ get justifyContentTablet() {
848
+ return this.getAttribute("justify-content--tablet");
849
+ }
850
+ set justifyContentTablet(e) {
851
+ v(this, "justify-content--tablet", e);
852
+ }
853
+ get justifyContentLaptop() {
854
+ return this.getAttribute("justify-content--laptop");
855
+ }
856
+ set justifyContentLaptop(e) {
857
+ v(this, "justify-content--laptop", e);
858
+ }
859
+ get justifyContentDesktop() {
860
+ return this.getAttribute("justify-content--desktop");
861
+ }
862
+ set justifyContentDesktop(e) {
863
+ v(this, "justify-content--desktop", e);
864
+ }
865
+ get alignItems() {
866
+ return this.getAttribute("align-items");
867
+ }
868
+ set alignItems(e) {
869
+ v(this, "align-items", e);
870
+ }
871
+ get alignItemsMobile() {
872
+ return this.getAttribute("align-items--mobile");
873
+ }
874
+ set alignItemsMobile(e) {
875
+ v(this, "align-items--mobile", e);
876
+ }
877
+ get alignItemsTablet() {
878
+ return this.getAttribute("align-items--tablet");
879
+ }
880
+ set alignItemsTablet(e) {
881
+ v(this, "align-items--tablet", e);
882
+ }
883
+ get alignItemsLaptop() {
884
+ return this.getAttribute("align-items--laptop");
885
+ }
886
+ set alignItemsLaptop(e) {
887
+ v(this, "align-items--laptop", e);
888
+ }
889
+ get alignItemsDesktop() {
890
+ return this.getAttribute("align-items--desktop");
891
+ }
892
+ set alignItemsDesktop(e) {
893
+ v(this, "align-items--desktop", e);
894
+ }
895
+ get wrap() {
896
+ return this.getAttribute("wrap");
897
+ }
898
+ set wrap(e) {
899
+ v(this, "wrap", e);
900
+ }
901
+ get wrapMobile() {
902
+ return this.getAttribute("wrap--mobile");
903
+ }
904
+ set wrapMobile(e) {
905
+ v(this, "wrap--mobile", e);
906
+ }
907
+ get wrapTablet() {
908
+ return this.getAttribute("wrap--tablet");
909
+ }
910
+ set wrapTablet(e) {
911
+ v(this, "wrap--tablet", e);
912
+ }
913
+ get wrapLaptop() {
914
+ return this.getAttribute("wrap--laptop");
915
+ }
916
+ set wrapLaptop(e) {
917
+ v(this, "wrap--laptop", e);
918
+ }
919
+ get wrapDesktop() {
920
+ return this.getAttribute("wrap--desktop");
921
+ }
922
+ set wrapDesktop(e) {
923
+ v(this, "wrap--desktop", e);
924
+ }
925
+ get overflowX() {
926
+ return this.getAttribute("overflow-x");
927
+ }
928
+ set overflowX(e) {
929
+ v(this, "overflow-x", e);
930
+ }
931
+ get overflowXMobile() {
932
+ return this.getAttribute("overflow-x--mobile");
933
+ }
934
+ set overflowXMobile(e) {
935
+ v(this, "overflow-x--mobile", e);
936
+ }
937
+ get overflowXTablet() {
938
+ return this.getAttribute("overflow-x--tablet");
939
+ }
940
+ set overflowXTablet(e) {
941
+ v(this, "overflow-x--tablet", e);
942
+ }
943
+ get overflowXLaptop() {
944
+ return this.getAttribute("overflow-x--laptop");
945
+ }
946
+ set overflowXLaptop(e) {
947
+ v(this, "overflow-x--laptop", e);
948
+ }
949
+ get overflowXDesktop() {
950
+ return this.getAttribute("overflow-x--desktop");
951
+ }
952
+ set overflowXDesktop(e) {
953
+ v(this, "overflow-x--desktop", e);
954
+ }
955
+ get $el() {
956
+ return this.shadowRoot.querySelector(".flex-container");
957
+ }
958
+ };
959
+ customElements.get("px-stack") || customElements.define("px-stack", I);
960
+ var L = class extends I {
961
+ constructor() {
962
+ super();
963
+ }
964
+ connectedCallback() {
965
+ super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
966
+ }
967
+ };
968
+ customElements.get("px-vstack") || customElements.define("px-vstack", L);
969
+ var R = class extends I {
970
+ constructor() {
971
+ super();
972
+ }
973
+ connectedCallback() {
974
+ super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
975
+ }
976
+ };
977
+ customElements.get("px-hstack") || customElements.define("px-hstack", R);
978
+ //#endregion
979
+ //#region ../Layout/src/Spacer.ts
980
+ var z = class extends HTMLElement {
981
+ constructor() {
982
+ super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
983
+ }
984
+ static get observedAttributes() {
985
+ return ["grow", "nogap"];
986
+ }
987
+ attributeChangedCallback(e, t, n) {
988
+ e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
989
+ }
990
+ connectedCallback() {
991
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
992
+ this.handleSizeChange();
993
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
994
+ }
995
+ disconnectedCallback() {
996
+ this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
997
+ }
998
+ get grow() {
999
+ return this.getAttribute("grow");
1000
+ }
1001
+ set grow(e) {
1002
+ this.setAttribute("grow", `${e}`);
1003
+ }
1004
+ scheduleRecheck() {
1005
+ this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
1006
+ this.recheckHandle = void 0, this.recalculateVisibility();
1007
+ });
1008
+ }
1009
+ recalculateVisibility() {
1010
+ this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
1011
+ }
1012
+ handleSizeChange() {
1013
+ let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
1014
+ this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
1015
+ }
1016
+ updateParticipation() {
1017
+ this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1018
+ }
1019
+ get nogap() {
1020
+ return this.hasAttribute("nogap");
1021
+ }
1022
+ set nogap(e) {
1023
+ e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1024
+ }
1025
+ };
1026
+ customElements.get("px-spacer") || customElements.define("px-spacer", z);
1027
+ //#endregion
1028
+ //#region ../Layout/src/Page.css?inline
1029
+ var B = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", V = new CSSStyleSheet();
1030
+ V.replaceSync(B);
1031
+ var H = class extends n {
1032
+ constructor() {
1033
+ super(V), this.template = (e) => `
1183
1034
  <px-container border-radius="none" padding="none">
1184
1035
  <px-vstack>
1185
1036
  <px-container id="header-container" border-radius="none">
@@ -1216,7 +1067,7 @@ class ot extends m {
1216
1067
  <px-spacer></px-spacer>
1217
1068
  </px-hstack>
1218
1069
  </px-container>
1219
- ${t ? ` <px-hstack>
1070
+ ${e ? ` <px-hstack>
1220
1071
  <px-spacer></px-spacer>
1221
1072
  <px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
1222
1073
  <px-vstack gap="s">
@@ -1282,1041 +1133,940 @@ class ot extends m {
1282
1133
  </px-vstack>
1283
1134
  </px-container>
1284
1135
  `, this.shadowRoot.innerHTML = this.template(!!this.$imageStickySlot);
1285
- }
1286
- static get observedAttributes() {
1287
- return [
1288
- ...super.observedAttributes,
1289
- "background-image",
1290
- "gap",
1291
- "background-color",
1292
- "padding-vertical",
1293
- "padding-horizontal"
1294
- ];
1295
- }
1296
- get $wideImage() {
1297
- return this.shadowRoot.querySelector("#image-box");
1298
- }
1299
- get $bodyVStackContainer() {
1300
- return this.shadowRoot.querySelector("#header-vstack-container");
1301
- }
1302
- get $bodyContainer() {
1303
- return this.shadowRoot.querySelector("#body-container");
1304
- }
1305
- get $contactContainer() {
1306
- return this.shadowRoot.querySelector("#contact-container");
1307
- }
1308
- get $footerContainer() {
1309
- return this.shadowRoot.querySelector("#footer-container");
1310
- }
1311
- get $headerContainer() {
1312
- return this.shadowRoot.querySelector("#header-container");
1313
- }
1314
- get $imageContainer() {
1315
- return this.shadowRoot.querySelector("#image-container");
1316
- }
1317
- get backgroundImage() {
1318
- return this.getAttribute("background-image");
1319
- }
1320
- get $imageStickySlot() {
1321
- return this.querySelector('*[slot="image-sticky-container"]');
1322
- }
1323
- get $main() {
1324
- return this.shadowRoot.querySelector("#main");
1325
- }
1326
- get backgroundColor() {
1327
- return this.getAttribute("background-color") || "none";
1328
- }
1329
- get paddingVertical() {
1330
- return this.getAttribute("padding-vertical");
1331
- }
1332
- get paddingHorizontal() {
1333
- return this.getAttribute("padding-horizontal");
1334
- }
1335
- set paddingVertical(t) {
1336
- this.setAttribute("padding-vertical", t);
1337
- }
1338
- set paddingHorizontal(t) {
1339
- this.setAttribute("padding-horizontal", t);
1340
- }
1341
- get gap() {
1342
- return this.getAttribute("gap");
1343
- }
1344
- connectedCallback() {
1345
- this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
1346
- }
1347
- attributeChangedCallback(t, i, e) {
1348
- if (i !== e)
1349
- switch (t) {
1350
- case "background-image":
1351
- this.$imageContainer.setAttribute("background-image", e);
1352
- break;
1353
- case "gap":
1354
- this.$bodyVStackContainer.setAttribute("gap", e);
1355
- break;
1356
- case "background-color":
1357
- this.$bodyContainer.setAttribute(
1358
- "background-color",
1359
- u.indexOf(e) > 0 ? e : "none"
1360
- );
1361
- break;
1362
- case "padding-vertical":
1363
- this.handlePaddingVerticalChange(e);
1364
- break;
1365
- case "padding-horizontal":
1366
- this.handlePaddingHorizontalChange(e);
1367
- break;
1368
- default:
1369
- super.attributeChangedCallback(t, i, e);
1370
- }
1371
- }
1372
- handlePaddingVerticalChange(t) {
1373
- this.$headerContainer.setAttribute("padding-top", t), this.$footerContainer.setAttribute("padding-bottom", t);
1374
- }
1375
- handlePaddingHorizontalChange(t) {
1376
- this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
1377
- }
1378
- }
1379
- customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1380
- const B = new CSSStyleSheet();
1381
- B.replaceSync(N);
1382
- class rt extends m {
1383
- constructor() {
1384
- super(B), this.template = () => `
1385
- <px-container border-radius="none" padding-inline="none">
1386
- <div class="content-wrapper">
1387
- <px-vstack gap="heading-to-content">
1388
- <slot name="heading"></slot>
1389
- <px-vstack gap="none">
1390
- <slot></slot>
1391
- </px-vstack>
1392
- </px-vstack>
1393
- </div>
1394
- </px-container>
1395
- <div class="content-wrapper">
1396
- <slot name="overlap"></slot>
1397
- </div>
1398
- `, this.shadowRoot.innerHTML = this.template();
1399
- }
1400
- connectedCallback() {
1401
- var t, i;
1402
- 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(), (i = this.$slotOverlap) == null || i.addEventListener(
1403
- "slotchange",
1404
- this.toggleOverlapSpacing
1405
- );
1406
- }
1407
- static get observedAttributes() {
1408
- return [
1409
- ...super.observedAttributes,
1410
- "background-color",
1411
- "background-gradient",
1412
- "background-image",
1413
- "background-image--mobile",
1414
- "background-image--tablet",
1415
- "background-image--laptop",
1416
- "background-size",
1417
- "background-position",
1418
- "padding-block",
1419
- "padding-top",
1420
- "padding-bottom",
1421
- "padding-block--mobile",
1422
- "padding-top--mobile",
1423
- "padding-bottom--mobile",
1424
- "padding-block--tablet",
1425
- "padding-top--tablet",
1426
- "padding-bottom--tablet",
1427
- "padding-block--laptop",
1428
- "padding-top--laptop",
1429
- "padding-bottom--laptop",
1430
- "border",
1431
- "border-side",
1432
- "border-side--mobile",
1433
- "border-side--tablet",
1434
- "border-side--laptop"
1435
- ];
1436
- }
1437
- attributeChangedCallback(t, i, e) {
1438
- if (i !== e)
1439
- switch (t) {
1440
- case "background-color":
1441
- this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
1442
- break;
1443
- case "background-gradient":
1444
- this.$container.gradient = this.gradient;
1445
- break;
1446
- case "background-image":
1447
- this.$container.backgroundImage = e;
1448
- break;
1449
- case "background-image--mobile":
1450
- this.$container.backgroundImageMobile = e;
1451
- break;
1452
- case "background-image--tablet":
1453
- this.$container.backgroundImageTablet = e;
1454
- break;
1455
- case "background-image--laptop":
1456
- this.$container.backgroundImageLaptop = e;
1457
- break;
1458
- case "background-size":
1459
- this.$container.backgroundSize = e;
1460
- break;
1461
- case "background-position":
1462
- this.$container.backgroundPosition = e;
1463
- break;
1464
- case "padding-block":
1465
- this.$container.paddingBlock = e;
1466
- break;
1467
- case "padding-top":
1468
- this.$container.paddingTop = e;
1469
- break;
1470
- case "padding-bottom":
1471
- this.$container.paddingBottom = e;
1472
- break;
1473
- case "padding-block--mobile":
1474
- this.$container.paddingBlockMobile = e;
1475
- break;
1476
- case "padding-top--mobile":
1477
- this.$container.paddingTopMobile = e;
1478
- break;
1479
- case "padding-bottom--mobile":
1480
- this.$container.paddingBottomMobile = e;
1481
- break;
1482
- case "padding-block--tablet":
1483
- this.$container.paddingBlockTablet = e;
1484
- break;
1485
- case "padding-top--tablet":
1486
- this.$container.paddingTopTablet = e;
1487
- break;
1488
- case "padding-bottom--tablet":
1489
- this.$container.paddingBottomTablet = e;
1490
- break;
1491
- case "padding-block--laptop":
1492
- this.$container.paddingBlockLaptop = e;
1493
- break;
1494
- case "padding-top--laptop":
1495
- this.$container.paddingTopLaptop = e;
1496
- break;
1497
- case "padding-bottom--laptop":
1498
- this.$container.paddingBottomLaptop = e;
1499
- break;
1500
- case "border":
1501
- this.$container.border = e;
1502
- break;
1503
- case "border-side":
1504
- this.$container.borderSide = e;
1505
- break;
1506
- case "border-side--mobile":
1507
- this.$container.borderSideMobile = e;
1508
- break;
1509
- case "border-side--tablet":
1510
- this.$container.borderSideTablet = e;
1511
- break;
1512
- case "border-side--laptop":
1513
- this.$container.borderSideLaptop = e;
1514
- break;
1515
- default:
1516
- super.attributeChangedCallback(t, i, e);
1517
- break;
1518
- }
1519
- }
1520
- disconnectedCallback() {
1521
- var t, i;
1522
- (t = this.$slotHeading) == null || t.removeEventListener(
1523
- "slotchange",
1524
- this.setHeadingSpacing
1525
- ), (i = this.$slotOverlap) == null || i.removeEventListener(
1526
- "slotchange",
1527
- this.toggleOverlapSpacing
1528
- );
1529
- }
1530
- toggleOverlapSpacing() {
1531
- const t = this.$slotOverlap, i = this.$mainContentWrapper;
1532
- if (!t || !i) return;
1533
- const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1534
- i.classList.toggle("overlapped", o);
1535
- }
1536
- isNotEmptyNode(t) {
1537
- return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
1538
- }
1539
- setHeadingSpacing() {
1540
- var e;
1541
- const t = this.$slotHeading, i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("px-vstack");
1542
- t && i && (t.assignedElements().length > 0 ? i.setAttribute("gap", "heading-to-content") : i.setAttribute("gap", "none"));
1543
- }
1544
- get $container() {
1545
- var t;
1546
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
1547
- }
1548
- get $mainContentWrapper() {
1549
- var t;
1550
- return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
1551
- }
1552
- get $slotOverlap() {
1553
- var t;
1554
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1555
- 'slot[name="overlap"]'
1556
- );
1557
- }
1558
- get $slottedOverlap() {
1559
- return this.querySelector('[slot="overlap"]');
1560
- }
1561
- get $slotHeading() {
1562
- var t;
1563
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1564
- 'slot[name="heading"]'
1565
- );
1566
- }
1567
- get $slottedHeading() {
1568
- return this.querySelector('[slot="heading"]');
1569
- }
1570
- get backgroundColor() {
1571
- return this.getAttribute("background-color") || "none";
1572
- }
1573
- set backgroundColor(t) {
1574
- this.setAttribute("background-color", t);
1575
- }
1576
- get gradient() {
1577
- return this.getAttribute("background-gradient");
1578
- }
1579
- set gradient(t) {
1580
- this.setAttribute("background-gradient", t);
1581
- }
1582
- get backgroundImage() {
1583
- return this.getAttribute("background-image");
1584
- }
1585
- set backgroundImage(t) {
1586
- this.setAttribute("background-image", t);
1587
- }
1588
- get backgroundImageMobile() {
1589
- return this.getAttribute("background-image--mobile");
1590
- }
1591
- set backgroundImageMobile(t) {
1592
- this.setAttribute("background-image--mobile", t);
1593
- }
1594
- get backgroundImageTablet() {
1595
- return this.getAttribute("background-image--tablet");
1596
- }
1597
- set backgroundImageTablet(t) {
1598
- this.setAttribute("background-image--tablet", t);
1599
- }
1600
- get backgroundImageLaptop() {
1601
- return this.getAttribute("background-image--laptop");
1602
- }
1603
- set backgroundImageLaptop(t) {
1604
- this.setAttribute("background-image--laptop", t);
1605
- }
1606
- get backgroundSize() {
1607
- return this.getAttribute("background-size");
1608
- }
1609
- set backgroundSize(t) {
1610
- this.setAttribute("background-size", t);
1611
- }
1612
- get backgroundPosition() {
1613
- return this.getAttribute("background-position");
1614
- }
1615
- set backgroundPosition(t) {
1616
- this.setAttribute("background-position", t);
1617
- }
1618
- get paddingBlock() {
1619
- return this.getAttribute("padding-block");
1620
- }
1621
- set paddingBlock(t) {
1622
- this.setAttribute("padding-block", t);
1623
- }
1624
- get paddingTop() {
1625
- return this.getAttribute("padding-top");
1626
- }
1627
- set paddingTop(t) {
1628
- this.setAttribute("padding-top", t);
1629
- }
1630
- get paddingBottom() {
1631
- return this.getAttribute("padding-bottom");
1632
- }
1633
- set paddingBottom(t) {
1634
- this.setAttribute("padding-bottom", t);
1635
- }
1636
- get paddingBlockMobile() {
1637
- return this.getAttribute("padding-block--mobile");
1638
- }
1639
- set paddingBlockMobile(t) {
1640
- this.setAttribute("padding-block--mobile", t);
1641
- }
1642
- get paddingTopMobile() {
1643
- return this.getAttribute("padding-top--mobile");
1644
- }
1645
- set paddingTopMobile(t) {
1646
- this.setAttribute("padding-top--mobile", t);
1647
- }
1648
- get paddingBottomMobile() {
1649
- return this.getAttribute("padding-bottom--mobile");
1650
- }
1651
- set paddingBottomMobile(t) {
1652
- this.setAttribute("padding-bottom--mobile", t);
1653
- }
1654
- get paddingBlockTablet() {
1655
- return this.getAttribute("padding-block--tablet");
1656
- }
1657
- set paddingBlockTablet(t) {
1658
- this.setAttribute("padding-block--tablet", t);
1659
- }
1660
- get paddingTopTablet() {
1661
- return this.getAttribute("padding-top--tablet");
1662
- }
1663
- set paddingTopTablet(t) {
1664
- this.setAttribute("padding-top--tablet", t);
1665
- }
1666
- get paddingBottomTablet() {
1667
- return this.getAttribute("padding-bottom--tablet");
1668
- }
1669
- set paddingBottomTablet(t) {
1670
- this.setAttribute("padding-bottom--tablet", t);
1671
- }
1672
- get paddingBlockLaptop() {
1673
- return this.getAttribute("padding-block--laptop");
1674
- }
1675
- set paddingBlockLaptop(t) {
1676
- this.setAttribute("padding-block--laptop", t);
1677
- }
1678
- get paddingTopLaptop() {
1679
- return this.getAttribute("padding-top--laptop");
1680
- }
1681
- set paddingTopLaptop(t) {
1682
- this.setAttribute("padding-top--laptop", t);
1683
- }
1684
- get paddingBottomLaptop() {
1685
- return this.getAttribute("padding-bottom--laptop");
1686
- }
1687
- set paddingBottomLaptop(t) {
1688
- this.setAttribute("padding-bottom--laptop", t);
1689
- }
1690
- get border() {
1691
- return this.getAttribute("border");
1692
- }
1693
- set border(t) {
1694
- this.setAttribute("border", t);
1695
- }
1696
- get borderSide() {
1697
- return this.getAttribute("border-side");
1698
- }
1699
- set borderSide(t) {
1700
- this.setAttribute("border-side", t);
1701
- }
1702
- get borderSideMobile() {
1703
- return this.getAttribute("border-side--mobile");
1704
- }
1705
- set borderSideMobile(t) {
1706
- this.setAttribute("border-side--mobile", t);
1707
- }
1708
- get borderSideTablet() {
1709
- return this.getAttribute("border-side--tablet");
1710
- }
1711
- set borderSideTablet(t) {
1712
- this.setAttribute("border-side--tablet", t);
1713
- }
1714
- get borderSideLaptop() {
1715
- return this.getAttribute("border-side--laptop");
1716
- }
1717
- set borderSideLaptop(t) {
1718
- this.setAttribute("border-side--laptop", t);
1719
- }
1720
- }
1721
- customElements.get("px-section") || customElements.define("px-section", rt);
1722
- const at = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media screen and (max-width: 47.938rem){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media screen and (min-width: 48rem) and (max-width: 64rem){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media screen and (min-width: 64.0625rem){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", z = new CSSStyleSheet();
1723
- z.replaceSync(at);
1724
- const st = [
1725
- "1",
1726
- "2",
1727
- "3",
1728
- "4",
1729
- "5",
1730
- "6",
1731
- "7",
1732
- "8",
1733
- "9",
1734
- "10",
1735
- "11",
1736
- "12"
1737
- ], nt = [
1738
- "",
1739
- "start",
1740
- "end",
1741
- "center",
1742
- "space-between",
1743
- "space-around",
1744
- "space-evenly",
1745
- "stretch"
1746
- ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", pt = d(
1747
- "gap",
1748
- lt,
1749
- x,
1750
- gt,
1751
- "--grid-gap"
1752
- ), w = class w extends L {
1753
- constructor() {
1754
- super(z, pt), this.template = () => `<div class="grid">
1755
- <slot></slot>
1756
- </div>`, this.shadowRoot.innerHTML = this.template();
1757
- }
1758
- static get observedAttributes() {
1759
- return [
1760
- ...super.observedAttributes,
1761
- "grid-cols",
1762
- "grid-cols--mobile",
1763
- "grid-cols--tablet",
1764
- "grid-cols--laptop",
1765
- "justify-content",
1766
- "justify-items",
1767
- "align-content",
1768
- "align-items",
1769
- "justify-content--mobile",
1770
- "justify-items--mobile",
1771
- "align-content--mobile",
1772
- "align-items--mobile",
1773
- "justify-content--tablet",
1774
- "justify-items--tablet",
1775
- "align-content--tablet",
1776
- "align-items--tablet",
1777
- "justify-content--laptop",
1778
- "justify-items--laptop",
1779
- "align-content--laptop",
1780
- "align-items--laptop",
1781
- "justify-content--desktop",
1782
- "justify-items--desktop",
1783
- "align-content--desktop",
1784
- "align-items--desktop"
1785
- ];
1786
- }
1787
- connectedCallback() {
1788
- this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1789
- }
1790
- attributeChangedCallback(t, i, e) {
1791
- if (i !== e)
1792
- switch (t) {
1793
- case "grid-cols":
1794
- case "grid-cols--mobile":
1795
- case "grid-cols--tablet":
1796
- case "grid-cols--laptop":
1797
- this.updateAttribute(t, i, e, st);
1798
- break;
1799
- case "justify-content":
1800
- case "align-content":
1801
- case "justify-content--mobile":
1802
- case "align-content--mobile":
1803
- case "justify-content--tablet":
1804
- case "align-content--tablet":
1805
- case "justify-content--laptop":
1806
- case "align-content--laptop":
1807
- case "justify-content--desktop":
1808
- case "align-content--desktop":
1809
- this.updateAttribute(
1810
- t,
1811
- i,
1812
- e,
1813
- nt
1814
- );
1815
- break;
1816
- case "justify-items":
1817
- case "align-items":
1818
- case "justify-items--mobile":
1819
- case "align-items--mobile":
1820
- case "justify-items--tablet":
1821
- case "align-items--tablet":
1822
- case "justify-items--laptop":
1823
- case "align-items--laptop":
1824
- case "justify-items--desktop":
1825
- case "align-items--desktop":
1826
- this.updateAttribute(
1827
- t,
1828
- i,
1829
- e,
1830
- dt
1831
- );
1832
- break;
1833
- default:
1834
- super.attributeChangedCallback(t, i, e);
1835
- break;
1836
- }
1837
- }
1838
- updateGap(t, i, e) {
1839
- if (!this.checkName(e, i)) {
1840
- s(
1841
- `"${i}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
1842
- );
1843
- return;
1844
- }
1845
- const o = (r) => {
1846
- r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
1847
- "--grid-gap--mobile",
1848
- `var(--px-spacing-${r}-mobile)`
1849
- ), this.$el.style.setProperty(
1850
- "--grid-gap--tablet",
1851
- `var(--px-spacing-${r}-tablet)`
1852
- ), this.$el.style.setProperty(
1853
- "--grid-gap--laptop",
1854
- `var(--px-spacing-${r}-laptop)`
1855
- ));
1856
- };
1857
- o(t), o(i);
1858
- }
1859
- updateAttribute(t, i, e, o) {
1860
- this.checkName(o, e) ? t === "grid-cols" || t === "grid-cols--mobile" || t === "grid-cols--tablet" || t === "grid-cols--laptop" || t === "grid-cols--desktop" ? this.$el.style.setProperty(`--${t}`, e) : (i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`${t}-${i}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`)) : s(
1861
- `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
1862
- );
1863
- }
1864
- get gap() {
1865
- return this.getAttribute("gap");
1866
- }
1867
- set gap(t) {
1868
- this.setAttribute("gap", t);
1869
- }
1870
- get gapMobile() {
1871
- return this.getAttribute("gap--mobile");
1872
- }
1873
- set gapMobile(t) {
1874
- this.setAttribute("gap--mobile", t);
1875
- }
1876
- get gapTablet() {
1877
- return this.getAttribute("gap--tablet");
1878
- }
1879
- set gapTablet(t) {
1880
- this.setAttribute("gap--tablet", t);
1881
- }
1882
- get gapLaptop() {
1883
- return this.getAttribute("gap--laptop");
1884
- }
1885
- set gapLaptop(t) {
1886
- this.setAttribute("gap--laptop", t);
1887
- }
1888
- get gridCols() {
1889
- return this.getAttribute("grid-cols");
1890
- }
1891
- set gridCols(t) {
1892
- this.setAttribute("grid-cols", t);
1893
- }
1894
- get gridColsMobile() {
1895
- return this.getAttribute("grid-cols--mobile");
1896
- }
1897
- set gridColsMobile(t) {
1898
- this.setAttribute("grid-cols--mobile", t);
1899
- }
1900
- get gridColsTablet() {
1901
- return this.getAttribute("grid-cols--tablet");
1902
- }
1903
- set gridColsTablet(t) {
1904
- this.setAttribute("grid-cols--tablet", t);
1905
- }
1906
- get gridColsLaptop() {
1907
- return this.getAttribute("grid-cols--laptop");
1908
- }
1909
- set gridColsLaptop(t) {
1910
- this.setAttribute("grid-cols--laptop", t);
1911
- }
1912
- get justifyContent() {
1913
- return this.getAttribute("justify-content");
1914
- }
1915
- set justifyContent(t) {
1916
- this.setAttribute("justify-content", t);
1917
- }
1918
- get justifyItems() {
1919
- return this.getAttribute("justify-items");
1920
- }
1921
- set justifyItems(t) {
1922
- this.setAttribute("justify-items", t);
1923
- }
1924
- get alignContent() {
1925
- return this.getAttribute("align-content");
1926
- }
1927
- set alignContent(t) {
1928
- this.setAttribute("align-content", t);
1929
- }
1930
- get alignItems() {
1931
- return this.getAttribute("align-items");
1932
- }
1933
- set alignItems(t) {
1934
- this.setAttribute("align-items", t);
1935
- }
1936
- get justifyContentMobile() {
1937
- return this.getAttribute("justify-content--mobile");
1938
- }
1939
- set justifyContentMobile(t) {
1940
- this.setAttribute("justify-content--mobile", t);
1941
- }
1942
- get justifyItemsMobile() {
1943
- return this.getAttribute("justify-items--mobile");
1944
- }
1945
- set justifyItemsMobile(t) {
1946
- this.setAttribute("justify-items--mobile", t);
1947
- }
1948
- get alignContentMobile() {
1949
- return this.getAttribute("align-content--mobile");
1950
- }
1951
- set alignContentMobile(t) {
1952
- this.setAttribute("align-content--mobile", t);
1953
- }
1954
- get alignItemsMobile() {
1955
- return this.getAttribute("align-items--mobile");
1956
- }
1957
- set alignItemsMobile(t) {
1958
- this.setAttribute("align-items--mobile", t);
1959
- }
1960
- get justifyContentTablet() {
1961
- return this.getAttribute("justify-content--tablet");
1962
- }
1963
- set justifyContentTablet(t) {
1964
- this.setAttribute("justify-content--tablet", t);
1965
- }
1966
- get justifyItemsTablet() {
1967
- return this.getAttribute("justify-items--tablet");
1968
- }
1969
- set justifyItemsTablet(t) {
1970
- this.setAttribute("justify-items--tablet", t);
1971
- }
1972
- get alignContentTablet() {
1973
- return this.getAttribute("align-content--tablet");
1974
- }
1975
- set alignContentTablet(t) {
1976
- this.setAttribute("align-content--tablet", t);
1977
- }
1978
- get alignItemsTablet() {
1979
- return this.getAttribute("align-items--tablet");
1980
- }
1981
- set alignItemsTablet(t) {
1982
- this.setAttribute("align-items--tablet", t);
1983
- }
1984
- get justifyContentLaptop() {
1985
- return this.getAttribute("justify-content--laptop");
1986
- }
1987
- set justifyContentLaptop(t) {
1988
- this.setAttribute("justify-content--laptop", t);
1989
- }
1990
- get justifyItemsLaptop() {
1991
- return this.getAttribute("justify-items--laptop");
1992
- }
1993
- set justifyItemsLaptop(t) {
1994
- this.setAttribute("justify-items--laptop", t);
1995
- }
1996
- get alignContentLaptop() {
1997
- return this.getAttribute("align-content--laptop");
1998
- }
1999
- set alignContentLaptop(t) {
2000
- this.setAttribute("align-content--laptop", t);
2001
- }
2002
- get alignItemsLaptop() {
2003
- return this.getAttribute("align-items--laptop");
2004
- }
2005
- set alignItemsLaptop(t) {
2006
- this.setAttribute("align-items--laptop", t);
2007
- }
2008
- get justifyContentDesktop() {
2009
- return this.getAttribute("justify-content--desktop");
2010
- }
2011
- set justifyContentDesktop(t) {
2012
- this.setAttribute("justify-content--desktop", t);
2013
- }
2014
- get justifyItemsDesktop() {
2015
- return this.getAttribute("justify-items--desktop");
2016
- }
2017
- set justifyItemsDesktop(t) {
2018
- this.setAttribute("justify-items--desktop", t);
2019
- }
2020
- get alignContentDesktop() {
2021
- return this.getAttribute("align-content--desktop");
2022
- }
2023
- set alignContentDesktop(t) {
2024
- this.setAttribute("align-content--desktop", t);
2025
- }
2026
- get alignItemsDesktop() {
2027
- return this.getAttribute("align-items--desktop");
2028
- }
2029
- set alignItemsDesktop(t) {
2030
- this.setAttribute("align-items--desktop", t);
2031
- }
1136
+ }
1137
+ static get observedAttributes() {
1138
+ return [
1139
+ ...super.observedAttributes,
1140
+ "background-image",
1141
+ "gap",
1142
+ "background-color",
1143
+ "padding-vertical",
1144
+ "padding-horizontal"
1145
+ ];
1146
+ }
1147
+ get $wideImage() {
1148
+ return this.shadowRoot.querySelector("#image-box");
1149
+ }
1150
+ get $bodyVStackContainer() {
1151
+ return this.shadowRoot.querySelector("#header-vstack-container");
1152
+ }
1153
+ get $bodyContainer() {
1154
+ return this.shadowRoot.querySelector("#body-container");
1155
+ }
1156
+ get $contactContainer() {
1157
+ return this.shadowRoot.querySelector("#contact-container");
1158
+ }
1159
+ get $footerContainer() {
1160
+ return this.shadowRoot.querySelector("#footer-container");
1161
+ }
1162
+ get $headerContainer() {
1163
+ return this.shadowRoot.querySelector("#header-container");
1164
+ }
1165
+ get $imageContainer() {
1166
+ return this.shadowRoot.querySelector("#image-container");
1167
+ }
1168
+ get backgroundImage() {
1169
+ return this.getAttribute("background-image");
1170
+ }
1171
+ get $imageStickySlot() {
1172
+ return this.querySelector("*[slot=\"image-sticky-container\"]");
1173
+ }
1174
+ get $main() {
1175
+ return this.shadowRoot.querySelector("#main");
1176
+ }
1177
+ get backgroundColor() {
1178
+ return this.getAttribute("background-color") || "none";
1179
+ }
1180
+ get paddingVertical() {
1181
+ return this.getAttribute("padding-vertical");
1182
+ }
1183
+ get paddingHorizontal() {
1184
+ return this.getAttribute("padding-horizontal");
1185
+ }
1186
+ set paddingVertical(e) {
1187
+ this.setAttribute("padding-vertical", `${e}`);
1188
+ }
1189
+ set paddingHorizontal(e) {
1190
+ this.setAttribute("padding-horizontal", `${e}`);
1191
+ }
1192
+ get gap() {
1193
+ return this.getAttribute("gap");
1194
+ }
1195
+ connectedCallback() {
1196
+ this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
1197
+ }
1198
+ attributeChangedCallback(e, t, n) {
1199
+ if (t !== n) switch (e) {
1200
+ case "background-image":
1201
+ this.$imageContainer.setAttribute("background-image", n);
1202
+ break;
1203
+ case "gap":
1204
+ this.$bodyVStackContainer.setAttribute("gap", n);
1205
+ break;
1206
+ case "background-color":
1207
+ this.$bodyContainer.setAttribute("background-color", r.indexOf(n) > 0 ? n : "none");
1208
+ break;
1209
+ case "padding-vertical":
1210
+ this.handlePaddingVerticalChange(n);
1211
+ break;
1212
+ case "padding-horizontal":
1213
+ this.handlePaddingHorizontalChange(n);
1214
+ break;
1215
+ default: super.attributeChangedCallback(e, t, n);
1216
+ }
1217
+ }
1218
+ handlePaddingVerticalChange(e) {
1219
+ this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
1220
+ }
1221
+ handlePaddingHorizontalChange(e) {
1222
+ this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
1223
+ }
2032
1224
  };
2033
- w.nativeName = "div";
2034
- let v = w;
2035
- customElements.get("px-grid") || customElements.define("px-grid", v);
2036
- const R = new CSSStyleSheet();
2037
- R.replaceSync(q);
2038
- const j = class j extends L {
2039
- constructor() {
2040
- super(R), this.template = () => `<div class="content-header">
2041
- <div class="contrast-helper"></div>
2042
- <px-section padding-block="l">
2043
- <px-grid gap="none">
2044
- <px-container padding="none" border-radius="none" background-color="none" >
2045
- <div class="content-header-content">
2046
- <px-vstack gap="heading-to-subtitle">
2047
- <px-h1><slot></slot></px-h1>
2048
- <slot name="subtitle"></slot>
2049
- </px-vstack>
2050
- <px-stack gap="s" direction="row" direction--mobile="column">
2051
- <slot name="patch" shrink></slot>
2052
- <slot name="patch-description"></slot>
2053
- </px-stack>
2054
- </div>
2055
- </px-container>
2056
- </px-grid>
2057
- <slot name="overlap" slot="overlap"></slot>
2058
- </px-section>
2059
- </div>`, this.shadowRoot.innerHTML = this.template();
2060
- }
2061
- static get observedAttributes() {
2062
- return [
2063
- "background-color",
2064
- "background-gradient",
2065
- "background-image",
2066
- "background-image--mobile",
2067
- "background-image--tablet",
2068
- "background-image--laptop",
2069
- "background-size",
2070
- "background-position",
2071
- "contrast-helper-gradient",
2072
- "contrast-helper-overlay",
2073
- "min-height",
2074
- "has-gridding",
2075
- "has-gridding--mobile",
2076
- "has-gridding--tablet",
2077
- "has-gridding--laptop",
2078
- "has-gridding--desktop",
2079
- "inverted"
2080
- ];
2081
- }
2082
- connectedCallback() {
2083
- var t, i;
2084
- this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this), this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this), this.styleSubtitleSlot(), this.stylepatchDescriptionSlotted(), this.createGridding(), (t = this.$subtitleSlot) == null || t.addEventListener("slotchange", this.styleSubtitleSlot), (i = this.$patchDescriptionSlot) == null || i.addEventListener(
2085
- "slotchange",
2086
- this.stylepatchDescriptionSlotted
2087
- );
2088
- }
2089
- attributeChangedCallback(t, i, e) {
2090
- if (i !== e)
2091
- switch (t) {
2092
- case "background-color":
2093
- this.$section.backgroundColor = u.indexOf(e) > 0 ? e : "none";
2094
- break;
2095
- case "background-gradient":
2096
- this.$section.gradient = f.indexOf(e) > 0 ? e : "none";
2097
- break;
2098
- case "background-image":
2099
- this.$section.backgroundImage = e;
2100
- break;
2101
- case "background-image--mobile":
2102
- this.$section.backgroundImageMobile = e;
2103
- break;
2104
- case "background-image--tablet":
2105
- this.$section.backgroundImageTablet = e;
2106
- break;
2107
- case "background-image--laptop":
2108
- this.$section.backgroundImageLaptop = e;
2109
- break;
2110
- case "background-size":
2111
- this.$section.backgroundSize = C.indexOf(e) > 0 ? e : "";
2112
- break;
2113
- case "background-position":
2114
- this.$section.backgroundPosition = e;
2115
- break;
2116
- case "has-gridding":
2117
- case "has-gridding--mobile":
2118
- case "has-gridding--tablet":
2119
- case "has-gridding--laptop":
2120
- case "has-gridding--desktop":
2121
- this.createGridding(e);
2122
- break;
2123
- case "inverted":
2124
- for (let o = 0; o < this.$children.length; o++)
2125
- this.$children[o].hasAttribute("inverted") || this.$children[o].toggleAttribute("inverted");
2126
- this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
2127
- break;
2128
- default:
2129
- super.attributeChangedCallback(t, i, e);
2130
- break;
2131
- }
2132
- }
2133
- disconnectedCallback() {
2134
- var t, i;
2135
- (t = this.$subtitleSlot) == null || t.removeEventListener(
2136
- "slotchange",
2137
- this.styleSubtitleSlot
2138
- ), (i = this.$patchDescriptionSlot) == null || i.removeEventListener(
2139
- "slotchange",
2140
- this.stylepatchDescriptionSlotted
2141
- );
2142
- }
2143
- stylepatchDescriptionSlotted() {
2144
- this.$patchDescriptionSlotted && (this.$patchDescriptionSlotted.localName === "px-p" && this.$patchDescriptionSlotted.setAttribute("variant", "default"), (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") && (this.$patchDescriptionSlotted.setAttribute("font-size", "body-l"), this.$patchDescriptionSlotted.removeAttribute("font-weight"), this.$patchDescriptionSlotted.removeAttribute("color")), this.$patchDescriptionSlotted.localName === "px-price" && this.$patchDescriptionSlotted.setAttribute("size", "m"));
2145
- }
2146
- styleSubtitleSlot() {
2147
- this.$subtitleSlotted && this.$subtitleSlotted.setAttribute("variant", "subtitle");
2148
- }
2149
- createGridding(t) {
2150
- const i = [
2151
- { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
2152
- {
2153
- prop: "hasGriddingMobile",
2154
- gridAttr: "grid-cols--mobile",
2155
- attr: "col-span--mobile"
2156
- },
2157
- {
2158
- prop: "hasGriddingTablet",
2159
- gridAttr: "grid-cols--tablet",
2160
- attr: "col-span--tablet"
2161
- },
2162
- {
2163
- prop: "hasGriddingLaptop",
2164
- gridAttr: "grid-cols--laptop",
2165
- attr: "col-span--laptop"
2166
- },
2167
- {
2168
- prop: "hasGriddingDesktop",
2169
- gridAttr: "grid-cols--desktop",
2170
- attr: "col-span--desktop"
2171
- }
2172
- ], e = this.shadowRoot.querySelector(
2173
- "px-grid > px-container"
2174
- );
2175
- t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2176
- this[o] && (this.$grid.setAttribute(r, "2"), e == null || e.setAttribute(a, "1"));
2177
- }) : i.forEach(({ gridAttr: o, attr: r }) => {
2178
- this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
2179
- });
2180
- }
2181
- get $grid() {
2182
- return this.shadowRoot.querySelector("px-grid");
2183
- }
2184
- get $section() {
2185
- return this.shadowRoot.querySelector("px-section");
2186
- }
2187
- get $h1() {
2188
- return this.shadowRoot.querySelector("px-h1");
2189
- }
2190
- get $subtitleSlot() {
2191
- var t;
2192
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
2193
- 'slot[name="subtitle"]'
2194
- );
2195
- }
2196
- get $subtitleSlotted() {
2197
- return this.querySelector('[slot="subtitle"]');
2198
- }
2199
- get $patchDescriptionSlot() {
2200
- var t;
2201
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
2202
- 'slot[name="patch-description"]'
2203
- );
2204
- }
2205
- get $patchDescriptionSlotted() {
2206
- return this.querySelector('[slot="patch-description"]');
2207
- }
2208
- get $overlapSlot() {
2209
- return this.querySelector('[slot="overlap"]');
2210
- }
2211
- get $children() {
2212
- return this.querySelectorAll("px-content-header > *");
2213
- }
2214
- get backgroundColor() {
2215
- return this.getAttribute("background-color");
2216
- }
2217
- set backgroundColor(t) {
2218
- this.setAttribute("background-color", t);
2219
- }
2220
- get gradient() {
2221
- return this.getAttribute("background-gradient");
2222
- }
2223
- set gradient(t) {
2224
- this.setAttribute("background-gradient", t);
2225
- }
2226
- get backgroundImage() {
2227
- return this.getAttribute("background-image");
2228
- }
2229
- set backgroundImage(t) {
2230
- this.setAttribute("background-image", t);
2231
- }
2232
- get backgroundImageMobile() {
2233
- return this.getAttribute("background-image--mobile");
2234
- }
2235
- set backgroundImageMobile(t) {
2236
- this.setAttribute("background-image--mobile", t);
2237
- }
2238
- get backgroundImageTablet() {
2239
- return this.getAttribute("background-image--tablet");
2240
- }
2241
- set backgroundImageTablet(t) {
2242
- this.setAttribute("background-image--tablet", t);
2243
- }
2244
- get backgroundImageLaptop() {
2245
- return this.getAttribute("background-image--laptop");
2246
- }
2247
- set backgroundImageLaptop(t) {
2248
- this.setAttribute("background-image--laptop", t);
2249
- }
2250
- get backgroundSize() {
2251
- return this.getAttribute("background-size");
2252
- }
2253
- set backgroundSize(t) {
2254
- this.setAttribute("background-size", t);
2255
- }
2256
- get backgroundPosition() {
2257
- return this.getAttribute("background-position");
2258
- }
2259
- set backgroundPosition(t) {
2260
- this.setAttribute("background-position", t);
2261
- }
2262
- get gradientContrastHelper() {
2263
- return this.hasAttribute("contrast-helper-gradient");
2264
- }
2265
- set gradientContrastHelper(t) {
2266
- t ? this.setAttribute("contrast-helper-gradient", "") : this.removeAttribute("contrast-helper-gradient");
2267
- }
2268
- get overlayContrastHelper() {
2269
- return this.hasAttribute("contrast-helper-overlay");
2270
- }
2271
- set overlayContrastHelper(t) {
2272
- t ? this.setAttribute("contrast-helper-overlay", "") : this.removeAttribute("contrast-helper-overlay");
2273
- }
2274
- get hasGridding() {
2275
- return this.hasAttribute("has-gridding");
2276
- }
2277
- set hasGridding(t) {
2278
- t ? this.setAttribute("has-gridding", "") : this.removeAttribute("has-gridding");
2279
- }
2280
- get hasGriddingMobile() {
2281
- return this.hasAttribute("has-gridding--mobile");
2282
- }
2283
- set hasGriddingMobile(t) {
2284
- t ? this.setAttribute("has-gridding--mobile", "") : this.removeAttribute("has-gridding--mobile");
2285
- }
2286
- get hasGriddingTablet() {
2287
- return this.hasAttribute("has-gridding--tablet");
2288
- }
2289
- set hasGriddingTablet(t) {
2290
- t ? this.setAttribute("has-gridding--tablet", "") : this.removeAttribute("has-gridding--tablet");
2291
- }
2292
- get hasGriddingLaptop() {
2293
- return this.hasAttribute("has-gridding--laptop");
2294
- }
2295
- set hasGriddingLaptop(t) {
2296
- t ? this.setAttribute("has-gridding--laptop", "") : this.removeAttribute("has-gridding--laptop");
2297
- }
2298
- get hasGriddingDesktop() {
2299
- return this.hasAttribute("has-gridding--desktop");
2300
- }
2301
- set hasGriddingDesktop(t) {
2302
- t ? this.setAttribute("has-gridding--desktop", "") : this.removeAttribute("has-gridding--desktop");
2303
- }
2304
- get inverted() {
2305
- return this.hasAttribute("inverted");
2306
- }
2307
- set inverted(t) {
2308
- t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
2309
- }
2310
- get minHeight() {
2311
- return this.hasAttribute("min-height");
2312
- }
2313
- set minHeight(t) {
2314
- t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
2315
- }
1225
+ customElements.get("px-page") === void 0 && customElements.define("px-page", H);
1226
+ //#endregion
1227
+ //#region ../Section/src/Section.ts
1228
+ var U = new CSSStyleSheet();
1229
+ U.replaceSync(b);
1230
+ var W = class extends n {
1231
+ constructor() {
1232
+ super(U), this.template = () => "\n <px-container border-radius=\"none\" padding-inline=\"none\">\n <div class=\"content-wrapper\">\n <px-vstack gap=\"heading-to-content\">\n <slot name=\"heading\"></slot>\n <px-vstack gap=\"none\">\n <slot></slot>\n </px-vstack>\n </px-vstack>\n </div>\n </px-container>\n <div class=\"content-wrapper\">\n <slot name=\"overlap\"></slot>\n </div>\n ", this.shadowRoot.innerHTML = this.template();
1233
+ }
1234
+ connectedCallback() {
1235
+ v(this.$container, "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(), this.$slotHeading?.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), this.$slotOverlap?.addEventListener("slotchange", this.toggleOverlapSpacing);
1236
+ }
1237
+ static get observedAttributes() {
1238
+ return [
1239
+ ...super.observedAttributes,
1240
+ "background-color",
1241
+ "background-gradient",
1242
+ "background-image",
1243
+ "background-image--mobile",
1244
+ "background-image--tablet",
1245
+ "background-image--laptop",
1246
+ "background-size",
1247
+ "background-position",
1248
+ "padding-block",
1249
+ "padding-top",
1250
+ "padding-bottom",
1251
+ "padding-block--mobile",
1252
+ "padding-top--mobile",
1253
+ "padding-bottom--mobile",
1254
+ "padding-block--tablet",
1255
+ "padding-top--tablet",
1256
+ "padding-bottom--tablet",
1257
+ "padding-block--laptop",
1258
+ "padding-top--laptop",
1259
+ "padding-bottom--laptop",
1260
+ "border",
1261
+ "border-side",
1262
+ "border-side--mobile",
1263
+ "border-side--tablet",
1264
+ "border-side--laptop"
1265
+ ];
1266
+ }
1267
+ attributeChangedCallback(e, t, n) {
1268
+ if (t !== n) switch (e) {
1269
+ case "background-color":
1270
+ this.$container.backgroundColor = r.indexOf(n) > 0 ? n : "none";
1271
+ break;
1272
+ case "background-gradient":
1273
+ this.$container.gradient = this.gradient;
1274
+ break;
1275
+ case "background-image":
1276
+ this.$container.backgroundImage = n;
1277
+ break;
1278
+ case "background-image--mobile":
1279
+ this.$container.backgroundImageMobile = n;
1280
+ break;
1281
+ case "background-image--tablet":
1282
+ this.$container.backgroundImageTablet = n;
1283
+ break;
1284
+ case "background-image--laptop":
1285
+ this.$container.backgroundImageLaptop = n;
1286
+ break;
1287
+ case "background-size":
1288
+ this.$container.backgroundSize = n;
1289
+ break;
1290
+ case "background-position":
1291
+ this.$container.backgroundPosition = n;
1292
+ break;
1293
+ case "padding-block":
1294
+ this.$container.paddingBlock = n;
1295
+ break;
1296
+ case "padding-top":
1297
+ this.$container.paddingTop = n;
1298
+ break;
1299
+ case "padding-bottom":
1300
+ this.$container.paddingBottom = n;
1301
+ break;
1302
+ case "padding-block--mobile":
1303
+ this.$container.paddingBlockMobile = n;
1304
+ break;
1305
+ case "padding-top--mobile":
1306
+ this.$container.paddingTopMobile = n;
1307
+ break;
1308
+ case "padding-bottom--mobile":
1309
+ this.$container.paddingBottomMobile = n;
1310
+ break;
1311
+ case "padding-block--tablet":
1312
+ this.$container.paddingBlockTablet = n;
1313
+ break;
1314
+ case "padding-top--tablet":
1315
+ this.$container.paddingTopTablet = n;
1316
+ break;
1317
+ case "padding-bottom--tablet":
1318
+ this.$container.paddingBottomTablet = n;
1319
+ break;
1320
+ case "padding-block--laptop":
1321
+ this.$container.paddingBlockLaptop = n;
1322
+ break;
1323
+ case "padding-top--laptop":
1324
+ this.$container.paddingTopLaptop = n;
1325
+ break;
1326
+ case "padding-bottom--laptop":
1327
+ this.$container.paddingBottomLaptop = n;
1328
+ break;
1329
+ case "border":
1330
+ this.$container.border = n;
1331
+ break;
1332
+ case "border-side":
1333
+ this.$container.borderSide = n;
1334
+ break;
1335
+ case "border-side--mobile":
1336
+ this.$container.borderSideMobile = n;
1337
+ break;
1338
+ case "border-side--tablet":
1339
+ this.$container.borderSideTablet = n;
1340
+ break;
1341
+ case "border-side--laptop":
1342
+ this.$container.borderSideLaptop = n;
1343
+ break;
1344
+ default: super.attributeChangedCallback(e, t, n);
1345
+ }
1346
+ }
1347
+ disconnectedCallback() {
1348
+ this.$slotHeading?.removeEventListener("slotchange", this.setHeadingSpacing), this.$slotOverlap?.removeEventListener("slotchange", this.toggleOverlapSpacing);
1349
+ }
1350
+ toggleOverlapSpacing() {
1351
+ let e = this.$slotOverlap, t = this.$mainContentWrapper;
1352
+ if (!e || !t) return;
1353
+ let n = e.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1354
+ t.classList.toggle("overlapped", n);
1355
+ }
1356
+ isNotEmptyNode(e) {
1357
+ return e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim().length > 0;
1358
+ }
1359
+ setHeadingSpacing() {
1360
+ let e = this.$slotHeading, t = this.shadowRoot?.querySelector("px-vstack");
1361
+ e && t && (e.assignedElements().length > 0 ? t.setAttribute("gap", "heading-to-content") : t.setAttribute("gap", "none"));
1362
+ }
1363
+ get $container() {
1364
+ return this.shadowRoot?.querySelector("px-container");
1365
+ }
1366
+ get $mainContentWrapper() {
1367
+ return this.$container?.querySelector(".content-wrapper");
1368
+ }
1369
+ get $slotOverlap() {
1370
+ return this.shadowRoot?.querySelector("slot[name=\"overlap\"]");
1371
+ }
1372
+ get $slottedOverlap() {
1373
+ return this.querySelector("[slot=\"overlap\"]");
1374
+ }
1375
+ get $slotHeading() {
1376
+ return this.shadowRoot?.querySelector("slot[name=\"heading\"]");
1377
+ }
1378
+ get $slottedHeading() {
1379
+ return this.querySelector("[slot=\"heading\"]");
1380
+ }
1381
+ get backgroundColor() {
1382
+ return this.getAttribute("background-color") || "none";
1383
+ }
1384
+ set backgroundColor(e) {
1385
+ v(this, "background-color", e);
1386
+ }
1387
+ get gradient() {
1388
+ return this.getAttribute("background-gradient");
1389
+ }
1390
+ set gradient(e) {
1391
+ v(this, "background-gradient", e);
1392
+ }
1393
+ get backgroundImage() {
1394
+ return this.getAttribute("background-image");
1395
+ }
1396
+ set backgroundImage(e) {
1397
+ v(this, "background-image", e);
1398
+ }
1399
+ get backgroundImageMobile() {
1400
+ return this.getAttribute("background-image--mobile");
1401
+ }
1402
+ set backgroundImageMobile(e) {
1403
+ v(this, "background-image--mobile", e);
1404
+ }
1405
+ get backgroundImageTablet() {
1406
+ return this.getAttribute("background-image--tablet");
1407
+ }
1408
+ set backgroundImageTablet(e) {
1409
+ v(this, "background-image--tablet", e);
1410
+ }
1411
+ get backgroundImageLaptop() {
1412
+ return this.getAttribute("background-image--laptop");
1413
+ }
1414
+ set backgroundImageLaptop(e) {
1415
+ v(this, "background-image--laptop", e);
1416
+ }
1417
+ get backgroundSize() {
1418
+ return this.getAttribute("background-size");
1419
+ }
1420
+ set backgroundSize(e) {
1421
+ v(this, "background-size", e);
1422
+ }
1423
+ get backgroundPosition() {
1424
+ return this.getAttribute("background-position");
1425
+ }
1426
+ set backgroundPosition(e) {
1427
+ v(this, "background-position", e);
1428
+ }
1429
+ get paddingBlock() {
1430
+ return this.getAttribute("padding-block");
1431
+ }
1432
+ set paddingBlock(e) {
1433
+ v(this, "padding-block", e);
1434
+ }
1435
+ get paddingTop() {
1436
+ return this.getAttribute("padding-top");
1437
+ }
1438
+ set paddingTop(e) {
1439
+ v(this, "padding-top", e);
1440
+ }
1441
+ get paddingBottom() {
1442
+ return this.getAttribute("padding-bottom");
1443
+ }
1444
+ set paddingBottom(e) {
1445
+ v(this, "padding-bottom", e);
1446
+ }
1447
+ get paddingBlockMobile() {
1448
+ return this.getAttribute("padding-block--mobile");
1449
+ }
1450
+ set paddingBlockMobile(e) {
1451
+ v(this, "padding-block--mobile", e);
1452
+ }
1453
+ get paddingTopMobile() {
1454
+ return this.getAttribute("padding-top--mobile");
1455
+ }
1456
+ set paddingTopMobile(e) {
1457
+ v(this, "padding-top--mobile", e);
1458
+ }
1459
+ get paddingBottomMobile() {
1460
+ return this.getAttribute("padding-bottom--mobile");
1461
+ }
1462
+ set paddingBottomMobile(e) {
1463
+ v(this, "padding-bottom--mobile", e);
1464
+ }
1465
+ get paddingBlockTablet() {
1466
+ return this.getAttribute("padding-block--tablet");
1467
+ }
1468
+ set paddingBlockTablet(e) {
1469
+ v(this, "padding-block--tablet", e);
1470
+ }
1471
+ get paddingTopTablet() {
1472
+ return this.getAttribute("padding-top--tablet");
1473
+ }
1474
+ set paddingTopTablet(e) {
1475
+ v(this, "padding-top--tablet", e);
1476
+ }
1477
+ get paddingBottomTablet() {
1478
+ return this.getAttribute("padding-bottom--tablet");
1479
+ }
1480
+ set paddingBottomTablet(e) {
1481
+ v(this, "padding-bottom--tablet", e);
1482
+ }
1483
+ get paddingBlockLaptop() {
1484
+ return this.getAttribute("padding-block--laptop");
1485
+ }
1486
+ set paddingBlockLaptop(e) {
1487
+ v(this, "padding-block--laptop", e);
1488
+ }
1489
+ get paddingTopLaptop() {
1490
+ return this.getAttribute("padding-top--laptop");
1491
+ }
1492
+ set paddingTopLaptop(e) {
1493
+ v(this, "padding-top--laptop", e);
1494
+ }
1495
+ get paddingBottomLaptop() {
1496
+ return this.getAttribute("padding-bottom--laptop");
1497
+ }
1498
+ set paddingBottomLaptop(e) {
1499
+ v(this, "padding-bottom--laptop", e);
1500
+ }
1501
+ get border() {
1502
+ return this.getAttribute("border");
1503
+ }
1504
+ set border(e) {
1505
+ v(this, "border", e);
1506
+ }
1507
+ get borderSide() {
1508
+ return this.getAttribute("border-side");
1509
+ }
1510
+ set borderSide(e) {
1511
+ v(this, "border-side", e);
1512
+ }
1513
+ get borderSideMobile() {
1514
+ return this.getAttribute("border-side--mobile");
1515
+ }
1516
+ set borderSideMobile(e) {
1517
+ v(this, "border-side--mobile", e);
1518
+ }
1519
+ get borderSideTablet() {
1520
+ return this.getAttribute("border-side--tablet");
1521
+ }
1522
+ set borderSideTablet(e) {
1523
+ v(this, "border-side--tablet", e);
1524
+ }
1525
+ get borderSideLaptop() {
1526
+ return this.getAttribute("border-side--laptop");
1527
+ }
1528
+ set borderSideLaptop(e) {
1529
+ v(this, "border-side--laptop", e);
1530
+ }
1531
+ };
1532
+ customElements.get("px-section") || customElements.define("px-section", W);
1533
+ //#endregion
1534
+ //#region ../Grid/src/grid.css?inline
1535
+ var G = ":host{--grid-cols:initial;--grid-cols--mobile:initial;--grid-cols--tablet:initial;--grid-cols--laptop:initial;--grid-cols--desktop:initial;--justify-content:initial;--justify-items:initial;--align-content:initial;--align-items:initial;display:block}.grid{grid-template-columns:repeat(var(--grid-cols), minmax(0, 1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items);display:grid}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media screen and (width<=47.938rem){.grid{grid-template-columns:repeat(var(--grid-cols--mobile,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media screen and (width>=48rem) and (width<=64rem){.grid{grid-template-columns:repeat(var(--grid-cols--tablet,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media screen and (width>=64.0625rem){.grid{grid-template-columns:repeat(var(--grid-cols--laptop,var(--grid-cols)), minmax(0, 1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", K = new CSSStyleSheet();
1536
+ K.replaceSync(G);
1537
+ var q = [
1538
+ "1",
1539
+ "2",
1540
+ "3",
1541
+ "4",
1542
+ "5",
1543
+ "6",
1544
+ "7",
1545
+ "8",
1546
+ "9",
1547
+ "10",
1548
+ "11",
1549
+ "12"
1550
+ ], J = [
1551
+ "",
1552
+ "start",
1553
+ "end",
1554
+ "center",
1555
+ "space-between",
1556
+ "space-around",
1557
+ "space-evenly",
1558
+ "stretch"
1559
+ ], Y = [
1560
+ "",
1561
+ "start",
1562
+ "end",
1563
+ "center",
1564
+ "stretch"
1565
+ ], X = f("gap", (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .grid`, p, "px-spacing", "--grid-gap"), Z = class extends t {
1566
+ static {
1567
+ this.nativeName = "div";
1568
+ }
1569
+ constructor() {
1570
+ super(K, X), this.template = () => "<div class=\"grid\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template();
1571
+ }
1572
+ static get observedAttributes() {
1573
+ return [
1574
+ ...super.observedAttributes,
1575
+ "grid-cols",
1576
+ "grid-cols--mobile",
1577
+ "grid-cols--tablet",
1578
+ "grid-cols--laptop",
1579
+ "justify-content",
1580
+ "justify-items",
1581
+ "align-content",
1582
+ "align-items",
1583
+ "justify-content--mobile",
1584
+ "justify-items--mobile",
1585
+ "align-content--mobile",
1586
+ "align-items--mobile",
1587
+ "justify-content--tablet",
1588
+ "justify-items--tablet",
1589
+ "align-content--tablet",
1590
+ "align-items--tablet",
1591
+ "justify-content--laptop",
1592
+ "justify-items--laptop",
1593
+ "align-content--laptop",
1594
+ "align-items--laptop",
1595
+ "justify-content--desktop",
1596
+ "justify-items--desktop",
1597
+ "align-content--desktop",
1598
+ "align-items--desktop"
1599
+ ];
1600
+ }
1601
+ connectedCallback() {
1602
+ this.gap ||= "default", this.alignItems ||= "stretch";
1603
+ }
1604
+ attributeChangedCallback(e, t, n) {
1605
+ if (t !== n) switch (e) {
1606
+ case "grid-cols":
1607
+ case "grid-cols--mobile":
1608
+ case "grid-cols--tablet":
1609
+ case "grid-cols--laptop":
1610
+ this.updateAttribute(e, t, n, q);
1611
+ break;
1612
+ case "justify-content":
1613
+ case "align-content":
1614
+ case "justify-content--mobile":
1615
+ case "align-content--mobile":
1616
+ case "justify-content--tablet":
1617
+ case "align-content--tablet":
1618
+ case "justify-content--laptop":
1619
+ case "align-content--laptop":
1620
+ case "justify-content--desktop":
1621
+ case "align-content--desktop":
1622
+ this.updateAttribute(e, t, n, J);
1623
+ break;
1624
+ case "justify-items":
1625
+ case "align-items":
1626
+ case "justify-items--mobile":
1627
+ case "align-items--mobile":
1628
+ case "justify-items--tablet":
1629
+ case "align-items--tablet":
1630
+ case "justify-items--laptop":
1631
+ case "align-items--laptop":
1632
+ case "justify-items--desktop":
1633
+ case "align-items--desktop":
1634
+ this.updateAttribute(e, t, n, Y);
1635
+ break;
1636
+ default: super.attributeChangedCallback(e, t, n);
1637
+ }
1638
+ }
1639
+ updateGap(e, t, n) {
1640
+ if (!this.checkName(n, t)) {
1641
+ h(`"${t}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
1642
+ return;
1643
+ }
1644
+ let r = (e) => {
1645
+ e !== null && e !== "" && e !== "default" && (this.$el.style.setProperty("--grid-gap--mobile", `var(--px-spacing-${e}-mobile)`), this.$el.style.setProperty("--grid-gap--tablet", `var(--px-spacing-${e}-tablet)`), this.$el.style.setProperty("--grid-gap--laptop", `var(--px-spacing-${e}-laptop)`));
1646
+ };
1647
+ r(e), r(t);
1648
+ }
1649
+ updateAttribute(e, t, n, r) {
1650
+ this.checkName(r, n) ? e === "grid-cols" || e === "grid-cols--mobile" || e === "grid-cols--tablet" || e === "grid-cols--laptop" || e === "grid-cols--desktop" ? this.$el.style.setProperty(`--${e}`, n) : (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`)) : h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
1651
+ }
1652
+ get gap() {
1653
+ return this.getAttribute("gap");
1654
+ }
1655
+ set gap(e) {
1656
+ this._updateAttribute("gap", e);
1657
+ }
1658
+ get gapMobile() {
1659
+ return this.getAttribute("gap--mobile");
1660
+ }
1661
+ set gapMobile(e) {
1662
+ this._updateAttribute("gap--mobile", e);
1663
+ }
1664
+ get gapTablet() {
1665
+ return this.getAttribute("gap--tablet");
1666
+ }
1667
+ set gapTablet(e) {
1668
+ this._updateAttribute("gap--tablet", e);
1669
+ }
1670
+ get gapLaptop() {
1671
+ return this.getAttribute("gap--laptop");
1672
+ }
1673
+ set gapLaptop(e) {
1674
+ this._updateAttribute("gap--laptop", e);
1675
+ }
1676
+ get gridCols() {
1677
+ return this.getAttribute("grid-cols");
1678
+ }
1679
+ set gridCols(e) {
1680
+ this._updateAttribute("grid-cols", e);
1681
+ }
1682
+ get gridColsMobile() {
1683
+ return this.getAttribute("grid-cols--mobile");
1684
+ }
1685
+ set gridColsMobile(e) {
1686
+ this._updateAttribute("grid-cols--mobile", e);
1687
+ }
1688
+ get gridColsTablet() {
1689
+ return this.getAttribute("grid-cols--tablet");
1690
+ }
1691
+ set gridColsTablet(e) {
1692
+ this._updateAttribute("grid-cols--tablet", e);
1693
+ }
1694
+ get gridColsLaptop() {
1695
+ return this.getAttribute("grid-cols--laptop");
1696
+ }
1697
+ set gridColsLaptop(e) {
1698
+ this._updateAttribute("grid-cols--laptop", e);
1699
+ }
1700
+ get justifyContent() {
1701
+ return this.getAttribute("justify-content");
1702
+ }
1703
+ set justifyContent(e) {
1704
+ this._updateAttribute("justify-content", e);
1705
+ }
1706
+ get justifyItems() {
1707
+ return this.getAttribute("justify-items");
1708
+ }
1709
+ set justifyItems(e) {
1710
+ this._updateAttribute("justify-items", e);
1711
+ }
1712
+ get alignContent() {
1713
+ return this.getAttribute("align-content");
1714
+ }
1715
+ set alignContent(e) {
1716
+ this._updateAttribute("align-content", e);
1717
+ }
1718
+ get alignItems() {
1719
+ return this.getAttribute("align-items");
1720
+ }
1721
+ set alignItems(e) {
1722
+ this._updateAttribute("align-items", e);
1723
+ }
1724
+ get justifyContentMobile() {
1725
+ return this.getAttribute("justify-content--mobile");
1726
+ }
1727
+ set justifyContentMobile(e) {
1728
+ this._updateAttribute("justify-content--mobile", e);
1729
+ }
1730
+ get justifyItemsMobile() {
1731
+ return this.getAttribute("justify-items--mobile");
1732
+ }
1733
+ set justifyItemsMobile(e) {
1734
+ this._updateAttribute("justify-items--mobile", e);
1735
+ }
1736
+ get alignContentMobile() {
1737
+ return this.getAttribute("align-content--mobile");
1738
+ }
1739
+ set alignContentMobile(e) {
1740
+ this._updateAttribute("align-content--mobile", e);
1741
+ }
1742
+ get alignItemsMobile() {
1743
+ return this.getAttribute("align-items--mobile");
1744
+ }
1745
+ set alignItemsMobile(e) {
1746
+ this._updateAttribute("align-items--mobile", e);
1747
+ }
1748
+ get justifyContentTablet() {
1749
+ return this.getAttribute("justify-content--tablet");
1750
+ }
1751
+ set justifyContentTablet(e) {
1752
+ this._updateAttribute("justify-content--tablet", e);
1753
+ }
1754
+ get justifyItemsTablet() {
1755
+ return this.getAttribute("justify-items--tablet");
1756
+ }
1757
+ set justifyItemsTablet(e) {
1758
+ this._updateAttribute("justify-items--tablet", e);
1759
+ }
1760
+ get alignContentTablet() {
1761
+ return this.getAttribute("align-content--tablet");
1762
+ }
1763
+ set alignContentTablet(e) {
1764
+ this._updateAttribute("align-content--tablet", e);
1765
+ }
1766
+ get alignItemsTablet() {
1767
+ return this.getAttribute("align-items--tablet");
1768
+ }
1769
+ set alignItemsTablet(e) {
1770
+ this._updateAttribute("align-items--tablet", e);
1771
+ }
1772
+ get justifyContentLaptop() {
1773
+ return this.getAttribute("justify-content--laptop");
1774
+ }
1775
+ set justifyContentLaptop(e) {
1776
+ this._updateAttribute("justify-content--laptop", e);
1777
+ }
1778
+ get justifyItemsLaptop() {
1779
+ return this.getAttribute("justify-items--laptop");
1780
+ }
1781
+ set justifyItemsLaptop(e) {
1782
+ this._updateAttribute("justify-items--laptop", e);
1783
+ }
1784
+ get alignContentLaptop() {
1785
+ return this.getAttribute("align-content--laptop");
1786
+ }
1787
+ set alignContentLaptop(e) {
1788
+ this._updateAttribute("align-content--laptop", e);
1789
+ }
1790
+ get alignItemsLaptop() {
1791
+ return this.getAttribute("align-items--laptop");
1792
+ }
1793
+ set alignItemsLaptop(e) {
1794
+ this._updateAttribute("align-items--laptop", e);
1795
+ }
1796
+ get justifyContentDesktop() {
1797
+ return this.getAttribute("justify-content--desktop");
1798
+ }
1799
+ set justifyContentDesktop(e) {
1800
+ this._updateAttribute("justify-content--desktop", e);
1801
+ }
1802
+ get justifyItemsDesktop() {
1803
+ return this.getAttribute("justify-items--desktop");
1804
+ }
1805
+ set justifyItemsDesktop(e) {
1806
+ this._updateAttribute("justify-items--desktop", e);
1807
+ }
1808
+ get alignContentDesktop() {
1809
+ return this.getAttribute("align-content--desktop");
1810
+ }
1811
+ set alignContentDesktop(e) {
1812
+ this._updateAttribute("align-content--desktop", e);
1813
+ }
1814
+ get alignItemsDesktop() {
1815
+ return this.getAttribute("align-items--desktop");
1816
+ }
1817
+ set alignItemsDesktop(e) {
1818
+ this._updateAttribute("align-items--desktop", e);
1819
+ }
2316
1820
  };
2317
- j.nativeName = "div";
2318
- let y = j;
2319
- customElements.get("px-content-header") || customElements.define("px-content-header", y);
2320
- export {
2321
- y as ContentHeader
1821
+ customElements.get("px-grid") || customElements.define("px-grid", Z);
1822
+ //#endregion
1823
+ //#region src/ContentHeader.ts
1824
+ var Q = new CSSStyleSheet();
1825
+ Q.replaceSync(y);
1826
+ var $ = class extends t {
1827
+ static {
1828
+ this.nativeName = "div";
1829
+ }
1830
+ constructor() {
1831
+ super(Q), this.template = () => "<div class=\"content-header\">\n <div class=\"contrast-helper\"></div>\n <px-section padding-block=\"l\">\n <px-grid gap=\"none\">\n <px-container padding=\"none\" border-radius=\"none\" background-color=\"none\" >\n <div class=\"content-header-content\">\n <px-vstack gap=\"heading-to-subtitle\">\n <px-h1><slot></slot></px-h1>\n <slot name=\"subtitle\"></slot>\n </px-vstack>\n <px-stack gap=\"s\" direction=\"row\" direction--mobile=\"column\">\n <slot name=\"patch\" shrink></slot>\n <slot name=\"patch-description\"></slot>\n </px-stack>\n </div>\n </px-container>\n </px-grid>\n <slot name=\"overlap\" slot=\"overlap\"></slot>\n </px-section>\n </div>", this.shadowRoot.innerHTML = this.template();
1832
+ }
1833
+ static get observedAttributes() {
1834
+ return [
1835
+ "background-color",
1836
+ "background-gradient",
1837
+ "background-image",
1838
+ "background-image--mobile",
1839
+ "background-image--tablet",
1840
+ "background-image--laptop",
1841
+ "background-size",
1842
+ "background-position",
1843
+ "contrast-helper-gradient",
1844
+ "contrast-helper-overlay",
1845
+ "min-height",
1846
+ "has-gridding",
1847
+ "has-gridding--mobile",
1848
+ "has-gridding--tablet",
1849
+ "has-gridding--laptop",
1850
+ "has-gridding--desktop",
1851
+ "inverted"
1852
+ ];
1853
+ }
1854
+ connectedCallback() {
1855
+ this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this), this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this), this.styleSubtitleSlot(), this.stylepatchDescriptionSlotted(), this.createGridding(), this.$subtitleSlot?.addEventListener("slotchange", this.styleSubtitleSlot), this.$patchDescriptionSlot?.addEventListener("slotchange", this.stylepatchDescriptionSlotted);
1856
+ }
1857
+ attributeChangedCallback(e, t, n) {
1858
+ if (t !== n) switch (e) {
1859
+ case "background-color":
1860
+ this.$section.backgroundColor = r.indexOf(n) > 0 ? n : "none";
1861
+ break;
1862
+ case "background-gradient":
1863
+ this.$section.gradient = m.indexOf(n) > 0 ? n : "none";
1864
+ break;
1865
+ case "background-image":
1866
+ this.$section.backgroundImage = n;
1867
+ break;
1868
+ case "background-image--mobile":
1869
+ this.$section.backgroundImageMobile = n;
1870
+ break;
1871
+ case "background-image--tablet":
1872
+ this.$section.backgroundImageTablet = n;
1873
+ break;
1874
+ case "background-image--laptop":
1875
+ this.$section.backgroundImageLaptop = n;
1876
+ break;
1877
+ case "background-size":
1878
+ this.$section.backgroundSize = i.indexOf(n) > 0 ? n : "";
1879
+ break;
1880
+ case "background-position":
1881
+ this.$section.backgroundPosition = n;
1882
+ break;
1883
+ case "has-gridding":
1884
+ case "has-gridding--mobile":
1885
+ case "has-gridding--tablet":
1886
+ case "has-gridding--laptop":
1887
+ case "has-gridding--desktop":
1888
+ this.createGridding(n);
1889
+ break;
1890
+ case "inverted":
1891
+ for (let e = 0; e < this.$children.length; e++) this.$children[e].hasAttribute("inverted") || this.$children[e].toggleAttribute("inverted");
1892
+ this.$h1.toggleAttribute("inverted", n !== null), this.$el.toggleAttribute("inverted", n !== null);
1893
+ break;
1894
+ default: super.attributeChangedCallback(e, t, n);
1895
+ }
1896
+ }
1897
+ disconnectedCallback() {
1898
+ this.$subtitleSlot?.removeEventListener("slotchange", this.styleSubtitleSlot), this.$patchDescriptionSlot?.removeEventListener("slotchange", this.stylepatchDescriptionSlotted);
1899
+ }
1900
+ stylepatchDescriptionSlotted() {
1901
+ this.$patchDescriptionSlotted && (this.$patchDescriptionSlotted.localName === "px-p" && this.$patchDescriptionSlotted.setAttribute("variant", "default"), (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") && (this.$patchDescriptionSlotted.setAttribute("font-size", "body-l"), this.$patchDescriptionSlotted.removeAttribute("font-weight"), this.$patchDescriptionSlotted.removeAttribute("color")), this.$patchDescriptionSlotted.localName === "px-price" && this.$patchDescriptionSlotted.setAttribute("size", "m"));
1902
+ }
1903
+ styleSubtitleSlot() {
1904
+ this.$subtitleSlotted && this.$subtitleSlotted.setAttribute("variant", "subtitle");
1905
+ }
1906
+ createGridding(e) {
1907
+ let t = [
1908
+ {
1909
+ prop: "hasGridding",
1910
+ gridAttr: "grid-cols",
1911
+ attr: "col-span"
1912
+ },
1913
+ {
1914
+ prop: "hasGriddingMobile",
1915
+ gridAttr: "grid-cols--mobile",
1916
+ attr: "col-span--mobile"
1917
+ },
1918
+ {
1919
+ prop: "hasGriddingTablet",
1920
+ gridAttr: "grid-cols--tablet",
1921
+ attr: "col-span--tablet"
1922
+ },
1923
+ {
1924
+ prop: "hasGriddingLaptop",
1925
+ gridAttr: "grid-cols--laptop",
1926
+ attr: "col-span--laptop"
1927
+ },
1928
+ {
1929
+ prop: "hasGriddingDesktop",
1930
+ gridAttr: "grid-cols--desktop",
1931
+ attr: "col-span--desktop"
1932
+ }
1933
+ ], n = this.shadowRoot.querySelector("px-grid > px-container");
1934
+ e === null ? t.forEach(({ gridAttr: e, attr: t }) => {
1935
+ this.$grid.setAttribute(e, "1"), n?.setAttribute(t, "1");
1936
+ }) : t.forEach(({ prop: e, gridAttr: t, attr: r }) => {
1937
+ this[e] && (this.$grid.setAttribute(t, "2"), n?.setAttribute(r, "1"));
1938
+ });
1939
+ }
1940
+ get $grid() {
1941
+ return this.shadowRoot.querySelector("px-grid");
1942
+ }
1943
+ get $section() {
1944
+ return this.shadowRoot.querySelector("px-section");
1945
+ }
1946
+ get $h1() {
1947
+ return this.shadowRoot.querySelector("px-h1");
1948
+ }
1949
+ get $subtitleSlot() {
1950
+ return this.shadowRoot?.querySelector("slot[name=\"subtitle\"]");
1951
+ }
1952
+ get $subtitleSlotted() {
1953
+ return this.querySelector("[slot=\"subtitle\"]");
1954
+ }
1955
+ get $patchDescriptionSlot() {
1956
+ return this.shadowRoot?.querySelector("slot[name=\"patch-description\"]");
1957
+ }
1958
+ get $patchDescriptionSlotted() {
1959
+ return this.querySelector("[slot=\"patch-description\"]");
1960
+ }
1961
+ get $overlapSlot() {
1962
+ return this.querySelector("[slot=\"overlap\"]");
1963
+ }
1964
+ get $children() {
1965
+ return this.querySelectorAll("px-content-header > *");
1966
+ }
1967
+ get backgroundColor() {
1968
+ return this.getAttribute("background-color");
1969
+ }
1970
+ set backgroundColor(e) {
1971
+ this._updateAttribute("background-color", e);
1972
+ }
1973
+ get gradient() {
1974
+ return this.getAttribute("background-gradient");
1975
+ }
1976
+ set gradient(e) {
1977
+ this._updateAttribute("background-gradient", e);
1978
+ }
1979
+ get backgroundImage() {
1980
+ return this.getAttribute("background-image");
1981
+ }
1982
+ set backgroundImage(e) {
1983
+ this._updateAttribute("background-image", e);
1984
+ }
1985
+ get backgroundImageMobile() {
1986
+ return this.getAttribute("background-image--mobile");
1987
+ }
1988
+ set backgroundImageMobile(e) {
1989
+ this._updateAttribute("background-image--mobile", e);
1990
+ }
1991
+ get backgroundImageTablet() {
1992
+ return this.getAttribute("background-image--tablet");
1993
+ }
1994
+ set backgroundImageTablet(e) {
1995
+ this._updateAttribute("background-image--tablet", e);
1996
+ }
1997
+ get backgroundImageLaptop() {
1998
+ return this.getAttribute("background-image--laptop");
1999
+ }
2000
+ set backgroundImageLaptop(e) {
2001
+ this._updateAttribute("background-image--laptop", e);
2002
+ }
2003
+ get backgroundSize() {
2004
+ return this.getAttribute("background-size");
2005
+ }
2006
+ set backgroundSize(e) {
2007
+ this._updateAttribute("background-size", e);
2008
+ }
2009
+ get backgroundPosition() {
2010
+ return this.getAttribute("background-position");
2011
+ }
2012
+ set backgroundPosition(e) {
2013
+ this._updateAttribute("background-position", e);
2014
+ }
2015
+ get gradientContrastHelper() {
2016
+ return this.hasAttribute("contrast-helper-gradient");
2017
+ }
2018
+ set gradientContrastHelper(e) {
2019
+ this._updateBooleanAttribute("contrast-helper-gradient", e);
2020
+ }
2021
+ get overlayContrastHelper() {
2022
+ return this.hasAttribute("contrast-helper-overlay");
2023
+ }
2024
+ set overlayContrastHelper(e) {
2025
+ this._updateBooleanAttribute("contrast-helper-overlay", e);
2026
+ }
2027
+ get hasGridding() {
2028
+ return this.hasAttribute("has-gridding");
2029
+ }
2030
+ set hasGridding(e) {
2031
+ this._updateBooleanAttribute("has-gridding", e);
2032
+ }
2033
+ get hasGriddingMobile() {
2034
+ return this.hasAttribute("has-gridding--mobile");
2035
+ }
2036
+ set hasGriddingMobile(e) {
2037
+ this._updateBooleanAttribute("has-gridding--mobile", e);
2038
+ }
2039
+ get hasGriddingTablet() {
2040
+ return this.hasAttribute("has-gridding--tablet");
2041
+ }
2042
+ set hasGriddingTablet(e) {
2043
+ this._updateBooleanAttribute("has-gridding--tablet", e);
2044
+ }
2045
+ get hasGriddingLaptop() {
2046
+ return this.hasAttribute("has-gridding--laptop");
2047
+ }
2048
+ set hasGriddingLaptop(e) {
2049
+ this._updateBooleanAttribute("has-gridding--laptop", e);
2050
+ }
2051
+ get hasGriddingDesktop() {
2052
+ return this.hasAttribute("has-gridding--desktop");
2053
+ }
2054
+ set hasGriddingDesktop(e) {
2055
+ this._updateBooleanAttribute("has-gridding--desktop", e);
2056
+ }
2057
+ get inverted() {
2058
+ return this.hasAttribute("inverted");
2059
+ }
2060
+ set inverted(e) {
2061
+ this._updateBooleanAttribute("inverted", e);
2062
+ }
2063
+ get minHeight() {
2064
+ return this.hasAttribute("min-height");
2065
+ }
2066
+ set minHeight(e) {
2067
+ this._updateBooleanAttribute("min-height", e);
2068
+ }
2322
2069
  };
2070
+ customElements.get("px-content-header") || customElements.define("px-content-header", $);
2071
+ //#endregion
2072
+ export { $ as ContentHeader };