@proximus/lavender 1.0.0-alpha.6

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.
@@ -0,0 +1,3225 @@
1
+ const commonStyles = "::slotted(*[grow]){flex-grow:var(--flex-grow-value)}::slotted(*[shrink]){flex-shrink:var(--flex-shrink-value)}::slotted(*[basis]){flex-basis:var(--flex-basis-value)}::slotted(*[align-self]){align-self:var(--flex-align-self-value)}::slotted(*[grow-mobile]){flex-grow:var(--flex-grow-mobile-value)}::slotted(*[shrink-mobile]){flex-shrink:var(--flex-shrink-mobile-value)}::slotted(*[basis-mobile]){flex-basis:var(--flex-basis-mobile-value)}::slotted(*[align-self-mobile]){align-self:var(--flex-align-self-mobile-value)}@media screen and (min-width: 768px){::slotted(*[grow-tablet]){flex-grow:var(--flex-grow-tablet-value)}::slotted(*[shrink-tablet]){flex-shrink:var(--flex-shrink-tablet-value)}::slotted(*[basis-tablet]){flex-basis:var(--flex-basis-tablet-value)}::slotted(*[align-self-tablet]){align-self:var(--flex-align-self-tablet-value)}}@media screen and (min-width: 1025px){::slotted(*[grow-laptop]){flex-grow:var(--flex-grow-laptop-value)}::slotted(*[shrink-laptop]){flex-shrink:var(--flex-shrink-laptop-value)}::slotted(*[basis-laptop]){flex-basis:var(--flex-basis-laptop-value)}::slotted(*[align-self-laptop]){align-self:var(--flex-align-self-laptop-value)}}@media screen and (min-width: 1441px){::slotted(*[grow-desktop]){flex-grow:var(--flex-grow-desktop-value)}::slotted(*[shrink-desktop]){flex-shrink:var(--flex-shrink-desktop-value)}::slotted(*[basis-desktop]){flex-basis:var(--flex-basis-desktop-value)}::slotted(*[align-self-desktop]){align-self:var(--flex-align-self-desktop-value)}}";
2
+ function getSupportedAttributeNames(htmlElementName) {
3
+ const $element = document.createElement(htmlElementName);
4
+ const inputPrototype = Object.getPrototypeOf($element);
5
+ return Object.getOwnPropertyNames(inputPrototype);
6
+ }
7
+ const commonStyleSheet = new CSSStyleSheet();
8
+ commonStyleSheet.replaceSync(commonStyles);
9
+ class WithFlexAttributes extends HTMLElement {
10
+ static get observedAttributes() {
11
+ return [
12
+ "grow",
13
+ "grow-tablet",
14
+ "grow-laptop",
15
+ "grow-desktop",
16
+ "shrink",
17
+ "shrink-mobile",
18
+ "shrink-tablet",
19
+ "shrink-laptop",
20
+ "shrink-desktop",
21
+ "basis",
22
+ "basis-mobile",
23
+ "basis-tablet",
24
+ "basis-laptop",
25
+ "basis-desktop",
26
+ "align-self"
27
+ ];
28
+ }
29
+ constructor(...adoptedStylesheets) {
30
+ super();
31
+ if (!this.shadowRoot) {
32
+ this.attachShadow({ mode: "open" });
33
+ }
34
+ this.shadowRoot.adoptedStyleSheets = [
35
+ commonStyleSheet,
36
+ ...adoptedStylesheets
37
+ ];
38
+ }
39
+ attributeChangedCallback(name, oldValue, newValue) {
40
+ if (WithFlexAttributes.observedAttributes.indexOf(name) === -1) {
41
+ return;
42
+ }
43
+ if (newValue === null) {
44
+ this.style.removeProperty(name);
45
+ } else {
46
+ switch (name) {
47
+ case "grow":
48
+ case "shrink":
49
+ case "basis":
50
+ case "grow-mobile":
51
+ case "grow-tablet":
52
+ case "grow-laptop":
53
+ case "grow-desktop":
54
+ case "shrink-mobile":
55
+ case "shrink-tablet":
56
+ case "shrink-laptop":
57
+ case "shrink-desktop":
58
+ case "basis-mobile":
59
+ case "basis-tablet":
60
+ case "basis-laptop":
61
+ case "basis-desktop":
62
+ case "align-self":
63
+ this.style.setProperty(`--flex-${name}-value`, newValue);
64
+ break;
65
+ }
66
+ }
67
+ }
68
+ get grow() {
69
+ return this.getAttribute("grow");
70
+ }
71
+ set grow(value) {
72
+ this.setAttribute("grow", value);
73
+ }
74
+ get shrink() {
75
+ return this.getAttribute("shrink");
76
+ }
77
+ set shrink(value) {
78
+ this.setAttribute("shrink", value);
79
+ }
80
+ get basis() {
81
+ return this.getAttribute("basis");
82
+ }
83
+ set basis(value) {
84
+ this.setAttribute("basis", value);
85
+ }
86
+ get growMobile() {
87
+ return this.getAttribute("grow-mobile");
88
+ }
89
+ set growMobile(value) {
90
+ this.setAttribute("grow-mobile", value);
91
+ }
92
+ get growTablet() {
93
+ return this.getAttribute("grow-tablet");
94
+ }
95
+ set growTablet(value) {
96
+ this.setAttribute("grow-tablet", value);
97
+ }
98
+ get growLaptop() {
99
+ return this.getAttribute("grow-laptop");
100
+ }
101
+ set growLaptop(value) {
102
+ this.setAttribute("grow-laptop", value);
103
+ }
104
+ get growDesktop() {
105
+ return this.getAttribute("grow-desktop");
106
+ }
107
+ set growDesktop(value) {
108
+ this.setAttribute("grow-desktop", value);
109
+ }
110
+ get shrinkMobile() {
111
+ return this.getAttribute("shrink-mobile");
112
+ }
113
+ set shrinkMobile(value) {
114
+ this.setAttribute("shrink-mobile", value);
115
+ }
116
+ get shrinkTablet() {
117
+ return this.getAttribute("shrink-tablet");
118
+ }
119
+ set shrinkTablet(value) {
120
+ this.setAttribute("shrink-tablet", value);
121
+ }
122
+ get shrinkLaptop() {
123
+ return this.getAttribute("shrink-laptop");
124
+ }
125
+ set shrinkLaptop(value) {
126
+ this.setAttribute("shrink-laptop", value);
127
+ }
128
+ get shrinkDesktop() {
129
+ return this.getAttribute("shrink-desktop");
130
+ }
131
+ set shrinkDesktop(value) {
132
+ this.setAttribute("shrink-desktop", value);
133
+ }
134
+ get basisMobile() {
135
+ return this.getAttribute("basis-mobile");
136
+ }
137
+ set basisMobile(value) {
138
+ this.setAttribute("basis-mobile", value);
139
+ }
140
+ get basisTablet() {
141
+ return this.getAttribute("basis-tablet");
142
+ }
143
+ set basisTablet(value) {
144
+ this.setAttribute("basis-tablet", value);
145
+ }
146
+ get basisLaptop() {
147
+ return this.getAttribute("basis-laptop");
148
+ }
149
+ set basisLaptop(value) {
150
+ this.setAttribute("basis-laptop", value);
151
+ }
152
+ get basisDesktop() {
153
+ return this.getAttribute("basis-desktop");
154
+ }
155
+ set basisDesktop(value) {
156
+ this.setAttribute("basis-desktop", value);
157
+ }
158
+ get alignSelf() {
159
+ return this.getAttribute("align-self");
160
+ }
161
+ set alignSelf(value) {
162
+ this.setAttribute("align-self", value);
163
+ }
164
+ get $el() {
165
+ return this;
166
+ }
167
+ }
168
+ class PxElement extends WithFlexAttributes {
169
+ static get observedAttributes() {
170
+ return [
171
+ ...super.observedAttributes,
172
+ ...getSupportedAttributeNames(this.nativeName)
173
+ ];
174
+ }
175
+ attributeChangedCallback(name, oldValue, newValue) {
176
+ super.attributeChangedCallback(name, oldValue, newValue);
177
+ if (newValue === null) {
178
+ this.$el.toggleAttribute(name);
179
+ } else {
180
+ this.$el.setAttribute(name, newValue);
181
+ }
182
+ }
183
+ constructor(semanticTokensStylesheet, ...adoptedStylesheets) {
184
+ super(semanticTokensStylesheet, ...adoptedStylesheets);
185
+ this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
186
+ }
187
+ connectedCallback() {
188
+ for (const name of getSupportedAttributeNames(this.nativeName)) {
189
+ if (name === "constructor") {
190
+ continue;
191
+ }
192
+ Object.defineProperty(this, name, {
193
+ get() {
194
+ return this.$el[name];
195
+ },
196
+ set(value) {
197
+ if (this.$el[name] !== value) {
198
+ this.$el[name] = value;
199
+ }
200
+ }
201
+ });
202
+ }
203
+ }
204
+ get $el() {
205
+ return this.shadowRoot.querySelector(this.nativeName);
206
+ }
207
+ }
208
+ const fontsizeValues = [
209
+ "",
210
+ "default",
211
+ "inherit",
212
+ "xs",
213
+ "s",
214
+ "base",
215
+ "m",
216
+ "l",
217
+ "xl",
218
+ "2xl",
219
+ "3xl",
220
+ "4xl",
221
+ "5xl",
222
+ "6xl",
223
+ "7xl"
224
+ ];
225
+ const colorValues$2 = [
226
+ "",
227
+ "default",
228
+ "inherit",
229
+ "primary",
230
+ "inverted-primary",
231
+ "inverted",
232
+ "body",
233
+ "details",
234
+ "hover",
235
+ "disabled",
236
+ "active",
237
+ "promo",
238
+ "status-success",
239
+ "status-warning",
240
+ "status-error",
241
+ "status-unlimited"
242
+ ];
243
+ const fontweightValues = [
244
+ "",
245
+ "default",
246
+ "inherit",
247
+ "normal",
248
+ "bold",
249
+ "extrabold",
250
+ "light"
251
+ ];
252
+ const iconSizeValues = [
253
+ "",
254
+ "default",
255
+ "2xs",
256
+ "xs",
257
+ "s",
258
+ "m",
259
+ "l",
260
+ "xl",
261
+ "2xl"
262
+ ];
263
+ const paddingValues = ["", "none", "2xs", "xs", "s", "m", "l", "xl"];
264
+ const borderValues = ["", "none", "s", "m", "l"];
265
+ const borderRadiusValues = ["", "none", "xs", "s", "m", "l", "xl", "2xl", "pill"];
266
+ const bgColorValues = [
267
+ "",
268
+ "none",
269
+ "weak",
270
+ "moderate",
271
+ "strong",
272
+ "rich",
273
+ "main",
274
+ "canvas-weak",
275
+ "canvas-light",
276
+ "canvas-soft",
277
+ "canvas-moderate",
278
+ "canvas-strong",
279
+ "canvas-deep",
280
+ "canvas-rich",
281
+ "action-primary",
282
+ "action-secondary",
283
+ "action-hover",
284
+ "action-disabled",
285
+ "action-active",
286
+ "notification",
287
+ "promo",
288
+ "success",
289
+ "error",
290
+ "warning",
291
+ "unlimited"
292
+ ];
293
+ const shadowValues = ["", "none", "s", "m", "l", "xl"];
294
+ const gradientValues = [
295
+ "",
296
+ "purple-bottom-red",
297
+ "purple-bottom-magenta",
298
+ "purple-bottom-orange",
299
+ "purple-bottom-blue",
300
+ "purple-bottom-turquoise",
301
+ "purple-bottom-green",
302
+ "purple-right-red",
303
+ "purple-right-magenta",
304
+ "purple-right-orange",
305
+ "purple-right-blue",
306
+ "purple-right-turquoise",
307
+ "purple-right-green",
308
+ "purple-top-right-red",
309
+ "purple-top-right-magenta",
310
+ "purple-top-right-orange",
311
+ "purple-top-right-blue",
312
+ "purple-top-right-turquoise",
313
+ "purple-top-right-green",
314
+ "purple-bottom-right-red",
315
+ "purple-bottom-right-magenta",
316
+ "purple-bottom-right-orange",
317
+ "purple-bottom-right-blue",
318
+ "purple-bottom-right-turquoise",
319
+ "purple-bottom-right-green",
320
+ "color-bottom-red",
321
+ "color-bottom-magenta",
322
+ "color-bottom-orange",
323
+ "color-bottom-blue",
324
+ "color-bottom-turquoise",
325
+ "color-bottom-green",
326
+ "color-right-red",
327
+ "color-right-magenta",
328
+ "color-right-orange",
329
+ "color-right-blue",
330
+ "color-right-turquoise",
331
+ "color-right-green",
332
+ "color-top-right-red",
333
+ "color-top-right-magenta",
334
+ "color-top-right-orange",
335
+ "color-top-right-blue",
336
+ "color-top-right-turquoise",
337
+ "color-top-right-green",
338
+ "color-bottom-right-red",
339
+ "color-bottom-right-magenta",
340
+ "color-bottom-right-orange",
341
+ "color-bottom-right-blue",
342
+ "color-bottom-right-turquoise",
343
+ "color-bottom-right-green"
344
+ ];
345
+ function addGlobalStylesheet(inlineStyles) {
346
+ const style = document.createElement("style");
347
+ style.innerHTML = inlineStyles;
348
+ document.head.appendChild(style);
349
+ }
350
+ function isFalsy(value) {
351
+ return typeof value === "string" && (value === "false" || value === "0" || value === "null") || typeof value === "boolean" && !value;
352
+ }
353
+ function getViewportFormat() {
354
+ if (window.matchMedia("only screen and (min-width: 768px)").matches) {
355
+ return "tablet";
356
+ } else if (window.matchMedia("only screen and (min-width: 1025px)").matches) {
357
+ return "laptop";
358
+ } else {
359
+ return "mobile";
360
+ }
361
+ }
362
+ const semanticStylesheet = ":host>*:first-child{--px-color-bg-action-primary-default: #5C2D91;--px-color-bg-action-primary-inverted: #ffffff;--px-color-bg-action-secondary-default: rgba(92, 45, 145, .16);--px-color-bg-action-secondary-inverted: rgba(255, 255, 255, .24);--px-color-bg-action-hover-inverted-default: rgba(255, 255, 255, .4);--px-color-bg-action-hover-inverted-inverted: rgba(0, 0, 0, .8);--px-color-bg-action-hover-default: rgba(0, 0, 0, .12);--px-color-bg-action-hover-inverted: rgba(255, 255, 255, .16);--px-color-bg-action-disabled-default: rgba(0, 0, 0, .04);--px-color-bg-action-disabled-inverted: rgba(255, 255, 255, .08);--px-color-bg-action-active-default: #8D79AD;--px-color-bg-action-active-inverted: rgba(255, 255, 255, .8);--px-color-border-main-default: rgba(0, 0, 0, .12);--px-color-border-main-inverted: rgba(255, 255, 255, .16);--px-color-border-contrasted-default: rgba(0, 0, 0, .56);--px-color-border-contrasted-inverted: rgba(255, 255, 255, .64);--px-color-border-action-hover-default: #5C2D91;--px-color-border-action-hover-inverted: #ffffff;--px-color-border-action-active-default: #8D79AD;--px-color-border-action-active-inverted: rgba(255, 255, 255, .8);--px-color-border-none-default: rgba(255, 255, 255, 0);--px-color-border-none-inverted: rgba(255, 255, 255, 0);--px-color-border-success-default: #008000;--px-color-border-success-inverted: #26BB26;--px-color-border-error-default: #B30000;--px-color-border-error-inverted: #F22613;--px-color-border-warning-default: #AC5915;--px-color-border-warning-inverted: #DB992F;--px-color-border-unlimited-default: #016BC1;--px-color-border-unlimited-inverted: #7295CF;--px-color-bg-container-none-default: rgba(255, 255, 255, 0);--px-color-bg-container-none-inverted: rgba(0, 0, 0, 0);--px-color-bg-container-weak-default: rgba(0, 0, 0, .08);--px-color-bg-container-weak-inverted: rgba(255, 255, 255, .12);--px-color-bg-container-moderate-default: rgba(0, 0, 0, .04);--px-color-bg-container-moderate-inverted: rgba(255, 255, 255, .08);--px-color-bg-container-strong-default: rgba(0, 0, 0, .08);--px-color-bg-container-strong-inverted: rgba(255, 255, 255, .12);--px-color-bg-container-rich-default: #252525;--px-color-bg-container-rich-inverted: #ffffff;--px-color-bg-container-main-default: #ffffff;--px-color-bg-container-main-inverted: #ffffff;--px-color-bg-gradient-purple-bottom-red: 180deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-bottom-magenta: 180deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-bottom-orange: 180deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-bottom-blue: 180deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-bottom-turquoise: 180deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-bottom-green: 180deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-right-red: 90deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-right-magenta: 90deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-right-orange: 90deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-right-blue: 90deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-right-turquoise: 90deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-right-green: 90deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-top-right-red: 25deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-top-right-magenta: 25deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-top-right-orange: 25deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-top-right-blue: 25deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-top-right-turquoise: 25deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-top-right-green: 25deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-bottom-right-red: 155deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-bottom-right-magenta: 155deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-bottom-right-orange: 155deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-bottom-right-blue: 155deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-bottom-right-turquoise: 155deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-bottom-right-green: 155deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-color-bottom-red: 180deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-bottom-magenta: 180deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-bottom-orange: 180deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-bottom-blue: 180deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-bottom-turquoise: 180deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-bottom-green: 180deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-right-red: 90deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-right-magenta: 90deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-right-orange: 90deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-right-blue: 90deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-right-turquoise: 90deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-right-green: 90deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-top-right-red: 25deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-top-right-magenta: 25deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-top-right-orange: 25deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-top-right-blue: 25deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-top-right-turquoise: 25deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-top-right-green: 25deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-bottom-right-red: 155deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-bottom-right-magenta: 155deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-bottom-right-orange: 155deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-bottom-right-blue: 155deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-bottom-right-turquoise: 155deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-bottom-right-green: 155deg, #5C2D91 3%, #81C747 66%;--px-color-bg-notification-default: #DE2A56;--px-color-bg-notification-inverted: #DE2A56;--px-color-bg-promo-default: #DE2A56;--px-color-bg-promo-inverted: #E43C65;--px-color-bg-success-default: #008000;--px-color-bg-success-inverted: #26BB26;--px-color-bg-error-default: #B30000;--px-color-bg-error-inverted: #F22613;--px-color-bg-warning-default: #AC5915;--px-color-bg-warning-inverted: #DB992F;--px-color-bg-unlimited-default: #016BC1;--px-color-bg-unlimited-inverted: #7295CF;--px-color-canvas-weak: #f9f9f9;--px-color-canvas-light: #e4e4e4;--px-color-canvas-soft: #c6c6c6;--px-color-canvas-moderate: #a1a1a1;--px-color-canvas-strong: #727272;--px-color-canvas-deep: #464646;--px-color-canvas-rich: #252525;--px-color-datavis-green: #008000;--px-color-datavis-orange: #F39200;--px-color-datavis-red: #B30000;--px-color-datavis-magenta: #FF418C;--px-color-datavis-blue: #016BC1;--px-color-datavis-turquoise: #66D2CC;--px-color-icon-primary-default: #5C2D91;--px-color-icon-primary-inverted: #ffffff;--px-color-icon-body-default: #252525;--px-color-icon-body-inverted: #ffffff;--px-color-icon-details-default: rgba(0, 0, 0, .56);--px-color-icon-details-inverted: rgba(255, 255, 255, .64);--px-color-icon-hover-default: #8D79AD;--px-color-icon-hover-inverted: rgba(255, 255, 255, .8);--px-color-icon-active-default: #8D79AD;--px-color-icon-active-inverted: rgba(255, 255, 255, .8);--px-color-icon-disabled-default: rgba(0, 0, 0, .12);--px-color-icon-disabled-inverted: rgba(255, 255, 255, .16);--px-color-icon-success-default: #008000;--px-color-icon-success-inverted: #26BB26;--px-color-icon-warning-default: #AC5915;--px-color-icon-warning-inverted: #DB992F;--px-color-icon-error-default: #B30000;--px-color-icon-error-inverted: #F22613;--px-color-icon-unlimited-default: #016BC1;--px-color-icon-unlimited-inverted: #7295CF;--px-color-icon-promo-default: #DE2A56;--px-color-icon-promo-inverted: #FF4371;--px-color-illu-purple-bare: #F4F2F6;--px-color-illu-purple-weak: #E8E5ED;--px-color-illu-purple-light: #CEC8DA;--px-color-illu-purple-soft: #B0A5C5;--px-color-illu-purple-moderate: #8D79AD;--px-color-illu-purple-strong: #472370;--px-color-illu-red-weak: #F9E5E7;--px-color-illu-red-soft: #ECA5AE;--px-color-illu-red-core: #DE2A56;--px-color-illu-magenta-weak: #FFE6ED;--px-color-illu-magenta-soft: #FFA9C2;--px-color-illu-magenta-core: #FF418C;--px-color-illu-orange-weak: #FDEDE4;--px-color-illu-orange-soft: #F8C5A1;--px-color-illu-orange-core: #F39200;--px-color-illu-blue-bare: #F2F9FD;--px-color-illu-blue-weak: #E4F3FC;--px-color-illu-blue-soft: #A1D9F5;--px-color-illu-blue-core: #00BCEE;--px-color-illu-turquoise-weak: #E9F7F6;--px-color-illu-turquoise-soft: #B4E5E2;--px-color-illu-turquoise-moderate: #92DCD7;--px-color-illu-turquoise-core: #66D2CC;--px-color-illu-green-weak: #EBF5E6;--px-color-illu-green-soft: #BEDFAA;--px-color-illu-green-core: #81C747;--px-color-illu-yellow-core: #FFCA00;--px-color-txt-primary-default: #5C2D91;--px-color-txt-primary-inverted: #ffffff;--px-color-txt-inverted-primary-default: #ffffff;--px-color-txt-inverted-primary-inverted: #5C2D91;--px-color-txt-inverted-default: #ffffff;--px-color-txt-inverted-inverted: #252525;--px-color-txt-body-default: #252525;--px-color-txt-body-inverted: #ffffff;--px-color-txt-details-default: rgba(0, 0, 0, .56);--px-color-txt-details-inverted: rgba(255, 255, 255, .64);--px-color-txt-hover-default: #8D79AD;--px-color-txt-hover-inverted: rgba(255, 255, 255, .8);--px-color-txt-disabled-default: rgba(0, 0, 0, .12);--px-color-txt-disabled-inverted: rgba(255, 255, 255, .16);--px-color-txt-active-default: #8D79AD;--px-color-txt-active-inverted: rgba(255, 255, 255, .8);--px-color-txt-promo-default: #DE2A56;--px-color-txt-promo-inverted: #FF4371;--px-color-txt-status-success-default: #008000;--px-color-txt-status-success-inverted: #26BB26;--px-color-txt-status-error-default: #B30000;--px-color-txt-status-error-inverted: #F22613;--px-color-txt-status-warning-default: #AC5915;--px-color-txt-status-warning-inverted: #DB992F;--px-color-txt-status-unlimited-default: #016BC1;--px-color-txt-status-unlimited-inverted: #7295CF;--px-breakpoints-mobile-min: 0px;--px-breakpoints-mobile-max: 767px;--px-breakpoints-tablet-min: 768px;--px-breakpoints-tablet-max: 1024px;--px-breakpoints-laptop-min: 1025px;--px-breakpoints-laptop-max: 1440px;--px-breakpoints-desktop-min: 1441px;--px-breakpoints-desktop-max: 99999px;--px-border-none: 0px;--px-border-s: 1px;--px-border-m: 2px;--px-border-l: 3px;--px-radius-none: 0px;--px-radius-xs: 3px;--px-radius-s: 4px;--px-radius-m: 8px;--px-radius-l: 12px;--px-radius-xl: 16px;--px-radius-2xl: 22px;--px-radius-pill: 9999px;--px-shadow-none: 0px 0px 0px 0px #00000080;--px-shadow-s: 0px 1px 2px 0px rgba(0, 0, 0, .12);--px-shadow-m: 0px 4px 6px -1px rgba(0, 0, 0, .08);--px-shadow-l: 0px 10px 15px -3px rgba(0, 0, 0, .08);--px-shadow-xl: 0px 20px 25px -5px rgba(0, 0, 0, .08);--px-spacing-between-icon-horizontal: 8px;--px-spacing-text-to-icon-compact-horizontal: 4px;--px-spacing-text-to-icon-horizontal: 24px;--px-spacing-component-compact-horizontal: 16px;--px-spacing-component-default-horizontal: 20px;--px-spacing-component-expanded-horizontal: 80px;--px-spacing-between-icon-horizontal-mobile: 8px;--px-spacing-text-to-icon-horizontal-mobile: 16px;--px-spacing-component-compact-horizontal-mobile: 8px;--px-spacing-component-default-horizontal-mobile: 16px;--px-spacing-component-expanded-horizontal-mobile: 32px;--px-padding-none: 0px;--px-padding-2xs: 4px;--px-padding-xs: 8px;--px-padding-s: 16px;--px-padding-m: 24px;--px-padding-l: 32px;--px-padding-xl: 40px;--px-padding-none-mobile: 0px;--px-padding-2xs-mobile: 4px;--px-padding-xs-mobile: 8px;--px-padding-s-mobile: 16px;--px-padding-mobile-mobile: 24px;--px-padding-l-mobile: 24px;--px-padding-xl-mobile: 24px;--px-size-action: 44px;--px-size-input-box: 44px;--px-size-default: 44px;--px-size-action-mobile: 40px;--px-size-input-box-mobile: 40px;--px-size-default-mobile: 40px;--px-spacing-between-options-vertical: 0px;--px-spacing-under-text-vertical: 8px;--px-spacing-display-to-subtitle-vertical: 16px;--px-spacing-under-display-vertical: 24px;--px-spacing-component-default-vertical: 24px;--px-spacing-component-expanded-vertical: 40px;--px-spacing-between-section-vertical: 80px;--px-spacing-between-options-vertical-mobile: 0px;--px-spacing-under-text-vertical-mobile: 8px;--px-spacing-display-to-subtitle-vertical-mobile: 8px;--px-spacing-under-display-vertical-mobile: 16px;--px-spacing-component-default-vertical-mobile: 16px;--px-spacing-component-expanded-vertical-mobile: 16px;--px-spacing-between-section-vertical-mobile: 32px;--px-icon-size-2xs-mobile: 12px;--px-icon-size-2xs-tablet: 12px;--px-icon-size-2xs-desktop: 12px;--px-icon-size-xs-mobile: 16px;--px-icon-size-xs-tablet: 16px;--px-icon-size-xs-desktop: 16px;--px-icon-size-s-mobile: 20px;--px-icon-size-s-tablet: 20px;--px-icon-size-s-desktop: 20px;--px-icon-size-m-mobile: 24px;--px-icon-size-m-tablet: 24px;--px-icon-size-m-desktop: 24px;--px-icon-size-l-mobile: 32px;--px-icon-size-l-tablet: 32px;--px-icon-size-l-desktop: 32px;--px-icon-size-xl-mobile: 40px;--px-icon-size-xl-tablet: 40px;--px-icon-size-xl-desktop: 40px;--px-icon-size-2xl-mobile: 48px;--px-icon-size-2xl-tablet: 48px;--px-icon-size-2xl-desktop: 48px;--px-line-height-xs-mobile: 15px;--px-line-height-xs-tablet: 15px;--px-line-height-xs-desktop: 18px;--px-line-height-s-mobile: 18px;--px-line-height-s-tablet: 18px;--px-line-height-s-desktop: 21px;--px-line-height-base-mobile: 21px;--px-line-height-base-tablet: 21px;--px-line-height-base-desktop: 24px;--px-line-height-m-mobile: 24px;--px-line-height-m-tablet: 24px;--px-line-height-m-desktop: 27px;--px-line-height-l-mobile: 27px;--px-line-height-l-tablet: 27px;--px-line-height-l-desktop: 30px;--px-line-height-xl-mobile: 30px;--px-line-height-xl-tablet: 30px;--px-line-height-xl-desktop: 36px;--px-line-height-2xl-mobile: 36px;--px-line-height-2xl-tablet: 36px;--px-line-height-2xl-desktop: 42px;--px-line-height-3xl-mobile: 42px;--px-line-height-3xl-tablet: 42px;--px-line-height-3xl-desktop: 48px;--px-line-height-4xl-mobile: 48px;--px-line-height-4xl-tablet: 48px;--px-line-height-4xl-desktop: 54px;--px-line-height-5xl-mobile: 54px;--px-line-height-5xl-tablet: 54px;--px-line-height-5xl-desktop: 60px;--px-line-height-6xl-mobile: 60px;--px-line-height-6xl-tablet: 60px;--px-line-height-6xl-desktop: 72px;--px-text-size-xs-mobile: 10px;--px-text-size-xs-tablet: 10px;--px-text-size-xs-desktop: 12px;--px-text-size-s-mobile: 12px;--px-text-size-s-tablet: 12px;--px-text-size-s-desktop: 14px;--px-text-size-base-mobile: 14px;--px-text-size-base-tablet: 14px;--px-text-size-base-desktop: 16px;--px-text-size-m-mobile: 16px;--px-text-size-m-tablet: 16px;--px-text-size-m-desktop: 18px;--px-text-size-l-mobile: 18px;--px-text-size-l-tablet: 18px;--px-text-size-l-desktop: 20px;--px-text-size-xl-mobile: 20px;--px-text-size-xl-tablet: 20px;--px-text-size-xl-desktop: 24px;--px-text-size-2xl-mobile: 24px;--px-text-size-2xl-tablet: 24px;--px-text-size-2xl-desktop: 28px;--px-text-size-3xl-mobile: 28px;--px-text-size-3xl-tablet: 28px;--px-text-size-3xl-desktop: 32px;--px-text-size-4xl-mobile: 32px;--px-text-size-4xl-tablet: 32px;--px-text-size-4xl-desktop: 36px;--px-text-size-5xl-mobile: 36px;--px-text-size-5xl-tablet: 36px;--px-text-size-5xl-desktop: 40px;--px-text-size-6xl-mobile: 40px;--px-text-size-6xl-tablet: 40px;--px-text-size-6xl-desktop: 48px;--px-text-size-7xl-mobile: 48px;--px-text-size-7xl-tablet: 48px;--px-text-size-7xl-desktop: 64px}";
363
+ const proximusSemanticStyleSheet = new CSSStyleSheet();
364
+ proximusSemanticStyleSheet.replaceSync(semanticStylesheet);
365
+ const styles$d = ".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)}@media screen and (min-width: 768px){.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)}}@media screen and (min-width: 1025px){.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)}}@media screen and (min-width: 1441px){.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)}}";
366
+ const styleSheet$c = new CSSStyleSheet();
367
+ styleSheet$c.replaceSync(styles$d);
368
+ const gapValues = [
369
+ // Vertical
370
+ "between-options-vertical",
371
+ "under-text-vertical",
372
+ "display-to-subtitle-vertical",
373
+ "under-display-vertical",
374
+ "component-default-vertical",
375
+ "component-expanded-vertical",
376
+ "between-options-vertical-mobile",
377
+ "under-text-vertical-mobile",
378
+ "display-to-subtitle-vertical-mobile",
379
+ "under-display-vertical-mobile",
380
+ "component-default-vertical-mobile",
381
+ "component-expanded-vertical-mobile",
382
+ // Horizontal
383
+ "between-icon-horizontal",
384
+ "text-to-icon-compact-horizontal",
385
+ "text-to-icon-horizontal",
386
+ "component-compact-horizontal",
387
+ "component-default-horizontal",
388
+ "component-expanded-horizontal",
389
+ "between-icon-horizontal-mobile",
390
+ "text-to-icon-compact-horizontal-mobile",
391
+ "text-to-icon-horizontal-mobile",
392
+ "component-compact-horizontal-mobile",
393
+ "component-default-horizontal-mobile"
394
+ ];
395
+ class Stack extends WithFlexAttributes {
396
+ constructor(semanticTokensStylesheet) {
397
+ super(semanticTokensStylesheet, styleSheet$c);
398
+ this.template = `<div class="flex-container">
399
+ <slot></slot>
400
+ </div>`;
401
+ this.shadowRoot.innerHTML = this.template;
402
+ }
403
+ connectedCallback() {
404
+ if (!this.hasAttribute("direction")) {
405
+ this.direction = "row";
406
+ }
407
+ }
408
+ static get observedAttributes() {
409
+ return [
410
+ ...super.observedAttributes,
411
+ "direction",
412
+ "direction-mobile",
413
+ "direction-tablet",
414
+ "direction-laptop",
415
+ "direction-desktop",
416
+ "gap",
417
+ "gap-mobile",
418
+ "gap-tablet",
419
+ "gap-laptop",
420
+ "gap-desktop",
421
+ "justify-content",
422
+ "justify-content-mobile",
423
+ "justify-content-tablet",
424
+ "justify-content-laptop",
425
+ "justify-content-desktop",
426
+ "align-items",
427
+ "align-items-mobile",
428
+ "align-items-tablet",
429
+ "align-items-laptop",
430
+ "align-items-desktop",
431
+ "wrap",
432
+ "wrap-mobile",
433
+ "wrap-tablet",
434
+ "wrap-laptop",
435
+ "wrap-desktop"
436
+ ];
437
+ }
438
+ attributeChangedCallback(name, oldValue, newValue) {
439
+ if (name.indexOf("direction") > -1 && !["column", "row"].includes(newValue)) {
440
+ throw new Error("Invalid direction");
441
+ }
442
+ switch (name) {
443
+ case "gap":
444
+ if (!this.$el.style.getPropertyValue("--flex-gap-mobile-value")) {
445
+ this.$el.style.setProperty(
446
+ `--flex-gap-mobile-value`,
447
+ this.getGapCSSVariable(newValue)
448
+ );
449
+ }
450
+ if (!this.$el.style.getPropertyValue("--flex-gap-tablet-value")) {
451
+ this.$el.style.setProperty(
452
+ `--flex-gap-tablet-value`,
453
+ this.getGapCSSVariable(newValue)
454
+ );
455
+ }
456
+ if (!this.$el.style.getPropertyValue("--flex-gap-laptop-value")) {
457
+ this.$el.style.setProperty(
458
+ `--flex-gap-laptop-value`,
459
+ this.getGapCSSVariable(newValue)
460
+ );
461
+ }
462
+ if (!this.$el.style.getPropertyValue("--flex-gap-desktop-value")) {
463
+ this.$el.style.setProperty(
464
+ `--flex-gap-desktop-value`,
465
+ this.getGapCSSVariable(newValue)
466
+ );
467
+ }
468
+ break;
469
+ case "gap-mobile":
470
+ case "gap-tablet":
471
+ case "gap-laptop":
472
+ case "gap-desktop":
473
+ this.$el.style.setProperty(
474
+ `--flex-${name}-value`,
475
+ this.getGapCSSVariable(newValue)
476
+ );
477
+ break;
478
+ case "direction":
479
+ if (!this.$el.style.getPropertyValue("--flex-direction-mobile-value")) {
480
+ this.$el.style.setProperty(`--flex-direction-mobile-value`, newValue);
481
+ }
482
+ if (!this.$el.style.getPropertyValue("--flex-direction-tablet-value")) {
483
+ this.$el.style.setProperty(`--flex-direction-tablet-value`, newValue);
484
+ }
485
+ if (!this.$el.style.getPropertyValue("--flex-direction-laptop-value")) {
486
+ this.$el.style.setProperty(`--flex-direction-laptop-value`, newValue);
487
+ }
488
+ if (!this.$el.style.getPropertyValue("--flex-direction-desktop-value")) {
489
+ this.$el.style.setProperty(
490
+ `--flex-direction-desktop-value`,
491
+ newValue
492
+ );
493
+ }
494
+ break;
495
+ case "justify-content":
496
+ if (!this.$el.style.getPropertyValue(
497
+ "--flex-justify-content-mobile-value"
498
+ )) {
499
+ this.$el.style.setProperty(
500
+ `--flex-justify-content-mobile-value`,
501
+ newValue
502
+ );
503
+ }
504
+ if (!this.$el.style.getPropertyValue(
505
+ "--flex-justify-content-tablet-value"
506
+ )) {
507
+ this.$el.style.setProperty(
508
+ `--flex-justify-content-tablet-value`,
509
+ newValue
510
+ );
511
+ }
512
+ if (!this.$el.style.getPropertyValue(
513
+ "--flex-justify-content-laptop-value"
514
+ )) {
515
+ this.$el.style.setProperty(
516
+ `--flex-justify-content-laptop-value`,
517
+ newValue
518
+ );
519
+ }
520
+ if (!this.$el.style.getPropertyValue(
521
+ "--flex-justify-content-desktop-value"
522
+ )) {
523
+ this.$el.style.setProperty(
524
+ `--flex-justify-content-desktop-value`,
525
+ newValue
526
+ );
527
+ }
528
+ break;
529
+ case "align-items":
530
+ if (!this.$el.style.getPropertyValue("--flex-align-items-mobile-value")) {
531
+ this.$el.style.setProperty(
532
+ `--flex-align-items-mobile-value`,
533
+ newValue
534
+ );
535
+ }
536
+ if (!this.$el.style.getPropertyValue("--flex-align-items-tablet-value")) {
537
+ this.$el.style.setProperty(
538
+ `--flex-align-items-tablet-value`,
539
+ newValue
540
+ );
541
+ }
542
+ if (!this.$el.style.getPropertyValue("--flex-align-items-laptop-value")) {
543
+ this.$el.style.setProperty(
544
+ `--flex-align-items-laptop-value`,
545
+ newValue
546
+ );
547
+ }
548
+ if (!this.$el.style.getPropertyValue("--flex-align-items-desktop-value")) {
549
+ this.$el.style.setProperty(
550
+ `--flex-align-items-desktop-value`,
551
+ newValue
552
+ );
553
+ }
554
+ break;
555
+ case "wrap":
556
+ if (!this.$el.style.getPropertyValue(`--flex-wrap-mobile-value`)) {
557
+ this.$el.style.setProperty(`--flex-wrap-mobile-value`, newValue);
558
+ }
559
+ if (!this.$el.style.getPropertyValue(`--flex-wrap-tablet-value`)) {
560
+ this.$el.style.setProperty(`--flex-wrap-tablet-value`, newValue);
561
+ }
562
+ if (!this.$el.style.getPropertyValue(`--flex-wrap-laptop-value`)) {
563
+ this.$el.style.setProperty(`--flex-wrap-laptop-value`, newValue);
564
+ }
565
+ if (!this.$el.style.getPropertyValue(`--flex-wrap-desktop-value`)) {
566
+ this.$el.style.setProperty(`--flex-wrap-desktop-value`, newValue);
567
+ }
568
+ break;
569
+ case "direction-mobile":
570
+ case "direction-tablet":
571
+ case "direction-laptop":
572
+ case "direction-desktop":
573
+ case "justify-content-mobile":
574
+ case "justify-content-tablet":
575
+ case "justify-content-laptop":
576
+ case "justify-content-desktop":
577
+ case "align-items-mobile":
578
+ case "align-items-tablet":
579
+ case "align-items-laptop":
580
+ case "align-items-desktop":
581
+ case "wrap-mobile":
582
+ case "wrap-tablet":
583
+ case "wrap-laptop":
584
+ case "wrap-desktop":
585
+ this.$el.style.setProperty(`--flex-${name}-value`, newValue);
586
+ break;
587
+ default:
588
+ super.attributeChangedCallback(name, oldValue, newValue);
589
+ break;
590
+ }
591
+ }
592
+ getGapCSSVariable(newValue) {
593
+ console.log(newValue);
594
+ return gapValues.includes(newValue) ? `var(--px-spacing-${newValue})` : newValue;
595
+ }
596
+ get direction() {
597
+ return this.getAttribute("direction");
598
+ }
599
+ set direction(value) {
600
+ this.setAttribute("direction", value);
601
+ }
602
+ get directionMobile() {
603
+ return this.getAttribute("direction-mobile");
604
+ }
605
+ set directionMobile(value) {
606
+ this.setAttribute("direction-mobile", value);
607
+ }
608
+ get directionTablet() {
609
+ return this.getAttribute("direction-tablet");
610
+ }
611
+ set directionTablet(value) {
612
+ this.setAttribute("direction-tablet", value);
613
+ }
614
+ get directionLaptop() {
615
+ return this.getAttribute("direction-laptop");
616
+ }
617
+ set directionLaptop(value) {
618
+ this.setAttribute("direction-laptop", value);
619
+ }
620
+ get directionDesktop() {
621
+ return this.getAttribute("direction-desktop");
622
+ }
623
+ set directionDesktop(value) {
624
+ this.setAttribute("direction-desktop", value);
625
+ }
626
+ get gap() {
627
+ return this.getAttribute("gap");
628
+ }
629
+ set gap(value) {
630
+ this.setAttribute("gap", value);
631
+ }
632
+ get gapMobile() {
633
+ return this.getAttribute("gap-mobile");
634
+ }
635
+ set gapMobile(value) {
636
+ this.setAttribute("gap-mobile", value);
637
+ }
638
+ get gapTablet() {
639
+ return this.getAttribute("gap-tablet");
640
+ }
641
+ set gapTablet(value) {
642
+ this.setAttribute("gap-tablet", value);
643
+ }
644
+ get gapLaptop() {
645
+ return this.getAttribute("gap-laptop");
646
+ }
647
+ set gapLaptop(value) {
648
+ this.setAttribute("gap-laptop", value);
649
+ }
650
+ get justifyContent() {
651
+ return this.getAttribute("justify-content");
652
+ }
653
+ set justifyContent(value) {
654
+ this.setAttribute("justify-content", value);
655
+ }
656
+ get justifyContentMobile() {
657
+ return this.getAttribute("justify-content-mobile");
658
+ }
659
+ set justifyContentMobile(value) {
660
+ this.setAttribute("justify-content-mobile", value);
661
+ }
662
+ get justifyContentTablet() {
663
+ return this.getAttribute("justify-content-tablet");
664
+ }
665
+ set justifyContentTablet(value) {
666
+ this.setAttribute("justify-content-tablet", value);
667
+ }
668
+ get justifyContentLaptop() {
669
+ return this.getAttribute("justify-content-laptop");
670
+ }
671
+ set justifyContentLaptop(value) {
672
+ this.setAttribute("justify-content-laptop", value);
673
+ }
674
+ get justifyContentDesktop() {
675
+ return this.getAttribute("justify-content-desktop");
676
+ }
677
+ set justifyContentDesktop(value) {
678
+ this.setAttribute("justify-content-desktop", value);
679
+ }
680
+ get alignItems() {
681
+ return this.getAttribute("align-items");
682
+ }
683
+ set alignItems(value) {
684
+ this.setAttribute("align-items", value);
685
+ }
686
+ get alignItemsMobile() {
687
+ return this.getAttribute("align-items-mobile");
688
+ }
689
+ set alignItemsMobile(value) {
690
+ this.setAttribute("align-items-mobile", value);
691
+ }
692
+ get alignItemsTablet() {
693
+ return this.getAttribute("align-items-tablet");
694
+ }
695
+ set alignItemsTablet(value) {
696
+ this.setAttribute("align-items-tablet", value);
697
+ }
698
+ get alignItemsLaptop() {
699
+ return this.getAttribute("align-items-laptop");
700
+ }
701
+ set alignItemsLaptop(value) {
702
+ this.setAttribute("align-items-laptop", value);
703
+ }
704
+ get alignItemsDesktop() {
705
+ return this.getAttribute("align-items-desktop");
706
+ }
707
+ set alignItemsDesktop(value) {
708
+ this.setAttribute("align-items-desktop", value);
709
+ }
710
+ get wrap() {
711
+ return this.getAttribute("wrap");
712
+ }
713
+ set wrap(value) {
714
+ this.setAttribute("wrap", value);
715
+ }
716
+ get wrapMobile() {
717
+ return this.getAttribute("wrap-mobile");
718
+ }
719
+ set wrapMobile(value) {
720
+ this.setAttribute("wrap-mobile", value);
721
+ }
722
+ get wrapTablet() {
723
+ return this.getAttribute("wrap-tablet");
724
+ }
725
+ set wrapTablet(value) {
726
+ this.setAttribute("wrap-tablet", value);
727
+ }
728
+ get wrapLaptop() {
729
+ return this.getAttribute("wrap-laptop");
730
+ }
731
+ set wrapLaptop(value) {
732
+ this.setAttribute("wrap-laptop", value);
733
+ }
734
+ get wrapDesktop() {
735
+ return this.getAttribute("wrap-desktop");
736
+ }
737
+ set wrapDesktop(value) {
738
+ this.setAttribute("wrap-desktop", value);
739
+ }
740
+ get $el() {
741
+ return this.shadowRoot.querySelector(".flex-container");
742
+ }
743
+ }
744
+ class VStack extends Stack {
745
+ constructor(semanticsTokensStylesheet) {
746
+ super(semanticsTokensStylesheet);
747
+ }
748
+ connectedCallback() {
749
+ super.connectedCallback();
750
+ this.direction = "column";
751
+ this.directionMobile = "column";
752
+ this.directionTablet = "column";
753
+ this.directionLaptop = "column";
754
+ this.directionDesktop = "column";
755
+ }
756
+ }
757
+ class HStack extends Stack {
758
+ constructor(semanticsTokensStylesheet) {
759
+ super(semanticsTokensStylesheet);
760
+ }
761
+ connectedCallback() {
762
+ super.connectedCallback();
763
+ this.direction = "row";
764
+ this.directionMobile = "row";
765
+ this.directionTablet = "row";
766
+ this.directionLaptop = "row";
767
+ this.directionDesktop = "row";
768
+ }
769
+ }
770
+ class PxStack extends Stack {
771
+ constructor() {
772
+ super(proximusSemanticStyleSheet);
773
+ }
774
+ }
775
+ if (!customElements.get("px-stack")) {
776
+ customElements.define("px-stack", PxStack);
777
+ }
778
+ if (!customElements.get("px-vstack")) {
779
+ customElements.define(
780
+ "px-vstack",
781
+ class PxVStack extends VStack {
782
+ constructor() {
783
+ super(proximusSemanticStyleSheet);
784
+ }
785
+ }
786
+ );
787
+ }
788
+ if (!customElements.get("px-hstack")) {
789
+ customElements.define(
790
+ "px-hstack",
791
+ class PxHStack extends HStack {
792
+ constructor() {
793
+ super(proximusSemanticStyleSheet);
794
+ }
795
+ }
796
+ );
797
+ }
798
+ class Spacer extends HTMLElement {
799
+ constructor() {
800
+ super();
801
+ }
802
+ static get observedAttributes() {
803
+ return ["grow"];
804
+ }
805
+ attributeChangedCallback(name, oldValue, newValue) {
806
+ if (name === "grow") {
807
+ this.style.flexGrow = newValue;
808
+ }
809
+ }
810
+ connectedCallback() {
811
+ this.style.flexGrow = this.getAttribute("grow") || `${1}`;
812
+ }
813
+ get grow() {
814
+ return this.getAttribute("grow");
815
+ }
816
+ set grow(value) {
817
+ this.setAttribute("grow", value);
818
+ }
819
+ }
820
+ customElements.define("px-spacer", Spacer);
821
+ const styles$c = "slot[name=heading]{display:block;margin-top:1rem;margin-bottom:1rem}";
822
+ const styleSheet$b = new CSSStyleSheet();
823
+ styleSheet$b.replaceSync(styles$c);
824
+ class Section extends WithFlexAttributes {
825
+ constructor() {
826
+ super(styleSheet$b);
827
+ this.template = `
828
+ <section>
829
+ <slot name="heading"></slot>
830
+ <px-stack direction="column" gap="1rem">
831
+ <slot></slot>
832
+ </px-stack>
833
+ </section>`;
834
+ this.shadowRoot.innerHTML = this.template;
835
+ }
836
+ static get observedAttributes() {
837
+ return [...super.observedAttributes, "gap"];
838
+ }
839
+ attributeChangedCallback(name, oldValue, newValue) {
840
+ if (name === "gap" && oldValue !== newValue) {
841
+ this.$el.gap = newValue;
842
+ return;
843
+ }
844
+ super.attributeChangedCallback(name, oldValue, newValue);
845
+ }
846
+ get gap() {
847
+ return this.getAttribute("gap");
848
+ }
849
+ set gap(value) {
850
+ this.setAttribute("gap", value);
851
+ }
852
+ get $el() {
853
+ return this.shadowRoot.querySelector('px-stack[direction="column"]');
854
+ }
855
+ }
856
+ customElements.define("px-section", Section);
857
+ const styles$b = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}";
858
+ const styleSheet$a = new CSSStyleSheet();
859
+ styleSheet$a.replaceSync(styles$b);
860
+ class Page extends WithFlexAttributes {
861
+ constructor() {
862
+ super(proximusSemanticStyleSheet, styleSheet$a);
863
+ this.template = (stickyContainer) => `
864
+ <px-container borderradius="none" padding="none" >
865
+ <px-vstack>
866
+ <px-container id="header-container" borderradius="none">
867
+ <px-hstack>
868
+ <px-spacer></px-spacer>
869
+ <px-vstack id="header-vstack-container" gap="1rem" grow="${this.grow}" basis="${this.basis}">
870
+ <slot name="header-container"></slot>
871
+ </px-vstack>
872
+ <px-spacer></px-spacer>
873
+ </px-hstack>
874
+ </px-container>
875
+ <px-container id="image-container" borderradius="none" padding="none" paddingtop="xl" id="image-box" bgimgsize="cover" bgimgposition="top center" paddingbottom="xl" borderradius="none" bgimg="${this.backgroundImage}">
876
+ <px-hstack>
877
+ <px-spacer></px-spacer>
878
+ <px-vstack grow="${this.grow}" basis="${this.basis}">
879
+ <slot name="image-container"></slot>
880
+ </px-vstack>
881
+ <px-spacer></px-spacer>
882
+ </px-hstack>
883
+ </px-container>
884
+ ${stickyContainer ? ` <px-hstack>
885
+ <px-spacer></px-spacer>
886
+ <px-container borderradius="none" shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" borderradius="m">
887
+ <px-vstack gap="1rem">
888
+ <slot name="image-sticky-container"></slot>
889
+ </px-vstack>
890
+ </px-container>
891
+ <px-spacer></px-spacer>
892
+ </px-hstack>` : ""}
893
+ <px-container id="body-container" id="main" bgcolor="${this.backgroundColor}" padding="none" paddingtop="xl" paddingbottom="xl" >
894
+ <px-hstack>
895
+ <px-spacer></px-spacer>
896
+ <px-vstack id="body-vstack-container" gap="3rem" grow="${this.grow}" basis="${this.basis}">
897
+ <slot name="body-container"></slot>
898
+ </px-vstack>
899
+ <px-spacer></px-spacer>
900
+ </px-hstack>
901
+ </px-container>
902
+ <px-container id="contact-container" borderradius="none" id="main" bgcolor="strong" padding="none" paddingtop="xl" paddingbottom="xl">
903
+ <px-hstack>
904
+ <px-spacer></px-spacer>
905
+ <px-vstack gap="3rem" grow="${this.grow}" basis="${this.basis}">
906
+ <slot name="contact-container"></slot>
907
+ </px-vstack>
908
+ <px-spacer></px-spacer>
909
+ </px-hstack>
910
+ </px-container>
911
+ <px-container id="footer-container" bgcolor="none" borderradius="none" style="background-color: rgb(108, 66, 156)" paddingtop="xl" paddingbottom="xl">
912
+ <px-hstack>
913
+ <px-spacer></px-spacer>
914
+ <px-vstack gap="3rem" grow="${this.grow}" basis="${this.basis}">
915
+ <slot name="footer-container"></slot>
916
+ </px-vstack>
917
+ <px-spacer></px-spacer>
918
+ </px-hstack>
919
+ </px-container>
920
+ </px-vstack>
921
+ </px-container>
922
+ `;
923
+ this.shadowRoot.innerHTML = this.template(!!this.$imageStickySlot);
924
+ }
925
+ static get observedAttributes() {
926
+ return [
927
+ ...super.observedAttributes,
928
+ "background-image",
929
+ "gap",
930
+ "background-color",
931
+ "padding-vertical",
932
+ "padding-horizontal"
933
+ ];
934
+ }
935
+ get $wideImage() {
936
+ return this.shadowRoot.querySelector("#image-box");
937
+ }
938
+ get $bodyVStackContainer() {
939
+ return this.shadowRoot.querySelector("#header-vstack-container");
940
+ }
941
+ get $bodyContainer() {
942
+ return this.shadowRoot.querySelector("#body-container");
943
+ }
944
+ get $contactContainer() {
945
+ return this.shadowRoot.querySelector("#contact-container");
946
+ }
947
+ get $footerContainer() {
948
+ return this.shadowRoot.querySelector("#footer-container");
949
+ }
950
+ get $headerContainer() {
951
+ return this.shadowRoot.querySelector("#header-container");
952
+ }
953
+ get $imageContainer() {
954
+ return this.shadowRoot.querySelector("#image-container");
955
+ }
956
+ get backgroundImage() {
957
+ return this.getAttribute("background-image");
958
+ }
959
+ get $imageStickySlot() {
960
+ return this.querySelector('*[slot="image-sticky-container"]');
961
+ }
962
+ get $main() {
963
+ return this.shadowRoot.querySelector("#main");
964
+ }
965
+ get backgroundColor() {
966
+ return this.getAttribute("background-color") || "none";
967
+ }
968
+ get paddingVertical() {
969
+ return this.getAttribute("padding-vertical");
970
+ }
971
+ get paddingHorizontal() {
972
+ return this.getAttribute("padding-horizontal");
973
+ }
974
+ set paddingVertical(value) {
975
+ this.setAttribute("padding-vertical", value);
976
+ }
977
+ set paddingHorizontal(value) {
978
+ this.setAttribute("padding-horizontal", value);
979
+ }
980
+ connectedCallback() {
981
+ this.handlePaddingVerticalChange(this.paddingVertical);
982
+ this.handlePaddingHorizontalChange(this.paddingHorizontal);
983
+ }
984
+ attributeChangedCallback(name, oldValue, newValue) {
985
+ if (oldValue !== newValue) {
986
+ switch (name) {
987
+ case "background-image":
988
+ this.$imageContainer.bgImgMobile = newValue;
989
+ break;
990
+ case "gap":
991
+ this.$bodyVStackContainer.gap = newValue;
992
+ break;
993
+ case "background-color":
994
+ this.$bodyContainer.bgColor = bgColorValues.indexOf(newValue) > 0 ? newValue : "none";
995
+ break;
996
+ case "padding-vertical":
997
+ this.handlePaddingVerticalChange(newValue);
998
+ break;
999
+ case "padding-horizontal":
1000
+ this.handlePaddingHorizontalChange(newValue);
1001
+ break;
1002
+ default:
1003
+ super.attributeChangedCallback(name, oldValue, newValue);
1004
+ }
1005
+ }
1006
+ }
1007
+ handlePaddingVerticalChange(newValue) {
1008
+ this.$headerContainer.paddingTop = newValue;
1009
+ this.$footerContainer.paddingBottom = newValue;
1010
+ }
1011
+ handlePaddingHorizontalChange(newValue) {
1012
+ this.$headerContainer.paddingLeft = newValue;
1013
+ this.$headerContainer.paddingRight = newValue;
1014
+ this.$bodyContainer.paddingLeft = newValue;
1015
+ this.$bodyContainer.paddingRight = newValue;
1016
+ this.$contactContainer.paddingLeft = newValue;
1017
+ this.$contactContainer.paddingRight = newValue;
1018
+ this.$footerContainer.paddingLeft = newValue;
1019
+ this.$footerContainer.paddingRight = newValue;
1020
+ this.$imageContainer.paddingLeft = newValue;
1021
+ this.$imageContainer.paddingRight = newValue;
1022
+ }
1023
+ }
1024
+ if (customElements.get("px-page") === void 0) {
1025
+ customElements.define("px-page", Page);
1026
+ }
1027
+ const accordionCss = `details{font-family:Proximus,Verdana,Helvetica,sans-serif;display:flex;flex-direction:column;align-items:flex-start}details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-default)}details:not(.single) ::slotted([slot="title"]){flex-grow:1}details:not(.single) slot[name=content]{display:block;padding-block:var(--px-spacing-component-default-vertical)}summary{align-items:center;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}details:not(.single) summary{display:flex;padding:var(--px-padding-s);gap:var(--px-spacing-text-to-icon-horizontal);align-self:stretch}summary:after{content:"";width:24px;height:24px;flex-shrink:0;background-color:var(--px-color-bg-action-secondary-default);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cg id='CHEVRON DOWN'%3E%3Cpath id='Vector' fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.7889 5.93489 11.5286 6.19524L8 9.72384L4.4714 6.19524C4.21105 5.93489 3.78894 5.93489 3.52859 6.19524C3.26824 6.45559 3.26824 6.8777 3.52859 7.13805L7.52859 11.1381C7.78894 11.3984 8.21105 11.3984 8.4714 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='%235C2D91'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center center;border-radius:var(--px-radius-pill);border:var(--px-border-s) solid transparent;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}summary:hover{cursor:pointer}details:not(.single) summary:hover{background-color:var(--px-color-bg-container-moderate-default)}summary:hover:after{background-color:var(--px-color-bg-action-hover-inverted-default);border:var(--px-border-s) solid var(--px-color-border-action-hover-default);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}details.single summary{display:inline-flex;gap:var(--px-spacing-between-icon-horizontal-mobile);justify-content:center;color:var(--px-color-txt-primary-default);font-weight:700;border:var(--px-border-m) solid transparent;border-radius:var(--px-radius-pill)}details.single summary:hover{gap:0;padding:0 var(--px-padding-xs);border-color:var(--px-color-border-action-hover-default)}details.single summary:hover:after{border-color:transparent;margin-right:calc(var(--px-padding-xs) * -1)}details.single slot[name=content]{display:block;padding-top:var(--px-spacing-component-default-vertical)}details[open] summary slot[name=title]{color:var(--px-color-txt-primary-default);font-weight:700}details[open] summary:after{transform:rotate(180deg)}summary::-webkit-details-marker{display:none}:host([inverted]) details{color:var(--px-color-txt-body-inverted)}:host([inverted]) details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-inverted)}:host([inverted]) details[open] summary slot[name=title]{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary:hover{border-color:var(--px-color-border-action-hover-inverted)}:host([inverted]) details.single summary:hover:after{border-color:transparent}:host([inverted]) summary:after{background-color:var(--px-color-bg-action-secondary-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.789 5.93489 11.5286 6.19524L8.00002 9.72384L4.47142 6.19524C4.21107 5.93489 3.78897 5.93489 3.52862 6.19524C3.26827 6.45559 3.26827 6.8777 3.52862 7.13805L7.52862 11.1381C7.78897 11.3984 8.21108 11.3984 8.47142 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='white'/%3E%3C/svg%3E")}:host([inverted]) summary:hover{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) summary:hover:after{background-color:var(--px-color-bg-action-hover-inverted-inverted);border:var(--px-border-s) solid var(--px-color-border-action-hover-inverted)}`;
1028
+ const accordionStyles = new CSSStyleSheet();
1029
+ accordionStyles.replaceSync(accordionCss);
1030
+ const variantValues$3 = ["", "none", "single"];
1031
+ const _Accordion = class _Accordion extends PxElement {
1032
+ constructor() {
1033
+ super(proximusSemanticStyleSheet, accordionStyles);
1034
+ this.template = () => `<details>
1035
+ <summary role="button"><slot name="icon"></slot><slot name="title"></slot><slot name="info"></slot></summary>
1036
+ <slot name="content"></slot>
1037
+ </details>`;
1038
+ this.shadowRoot.innerHTML = this.template();
1039
+ }
1040
+ static get observedAttributes() {
1041
+ return [...super.observedAttributes, "variant", "inverted"];
1042
+ }
1043
+ get variant() {
1044
+ return this.getAttribute("variant");
1045
+ }
1046
+ set variant(value) {
1047
+ this.setAttribute("variant", value);
1048
+ }
1049
+ get inverted() {
1050
+ return this.getAttribute("inverted");
1051
+ }
1052
+ set inverted(value) {
1053
+ this.setAttribute("inverted", value);
1054
+ }
1055
+ attributeChangedCallback(attrName, oldValue, newValue) {
1056
+ if (oldValue !== newValue) {
1057
+ switch (attrName) {
1058
+ case "variant":
1059
+ this.updateAttribute(attrName, oldValue, newValue, variantValues$3);
1060
+ break;
1061
+ default:
1062
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1063
+ break;
1064
+ }
1065
+ }
1066
+ }
1067
+ updateAttribute(attrName, oldValue, newValue, attrValues) {
1068
+ if (oldValue !== null && oldValue !== "") {
1069
+ this.$el.classList.toggle(`${oldValue}`);
1070
+ }
1071
+ if (newValue !== null && newValue !== "") {
1072
+ this.$el.classList.toggle(`${newValue}`);
1073
+ }
1074
+ if (!this.checkName(attrValues, newValue)) {
1075
+ console.error(`${newValue} is not an allowed ${attrName} value for ${this.$el}`);
1076
+ }
1077
+ }
1078
+ checkName(values, value) {
1079
+ return values.includes(value);
1080
+ }
1081
+ };
1082
+ _Accordion.nativeName = "details";
1083
+ let Accordion = _Accordion;
1084
+ customElements.define("px-accordion", Accordion);
1085
+ const buttonCss = '.btn{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:Proximus,Verdana,Helvetica,sans-serif;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);font-weight:700;gap:var(--px-spacing-between-icon-horizontal-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-border-m) solid transparent;--slotted-icon-size: var(--px-icon-size-xs-mobile)}.btn,.btn *{box-sizing:border-box}.btn:hover:not([disabled],[aria-disabled=true],.loading),.btn:focus:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-action-hover-default);outline:0}.btn:active{transform:scale(.95)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:var(--px-icon-size-xs-mobile)}.btn:not(.secondary,.tertiary,.patch){color:var(--px-color-txt-inverted-primary-default);background:var(--px-color-bg-action-primary-default);min-height:var(--px-size-action-mobile);padding:0 var(--px-padding-m);border-radius:var(--px-radius-xs) var(--px-radius-xs) var(--px-radius-2xl) var(--px-radius-xs)}.btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading),.btn:not(.secondary,.tertiary,.patch):focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-inverted-default)}.btn:not(.secondary,.tertiary,.patch)[disabled],.btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}.btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-primary-default);border-color:transparent}.btn:not(.secondary,.tertiary,.patch).extended{width:100%}.btn:not(.secondary,.tertiary,.patch).alternative{border-radius:var(--px-radius-xs)}.btn.secondary{color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-secondary-default);min-height:var(--px-size-action-mobile);padding:0 var(--px-padding-m);border-radius:var(--px-radius-xs) var(--px-radius-xs) var(--px-radius-2xl) var(--px-radius-xs)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading),.btn.secondary:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-inverted-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}.btn.secondary.loading{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-primary-default);border-color:transparent}.btn.secondary.extended{width:100%}.btn.secondary.alternative{border-radius:var(--px-radius-xs)}.btn.tertiary{background:none;color:var(--px-color-txt-primary-default);border-radius:var(--px-radius-pill);padding:0}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);font-size:var(--px-icon-size-2xs-mobile);border-radius:50%;background:var(--px-color-bg-action-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading){gap:0;padding:0 .5rem}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(*),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted(*){background:transparent}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){margin:0 -8px}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="before"]),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="before"]){margin:0 0 0 -.5rem}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="after"]),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="after"]){margin:0 -.5rem 0 0}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-txt-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-bg-action-disabled-default)}.btn.tertiary.loading{color:var(--px-color-txt-primary-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);border-radius:50%;background:var(--px-color-bg-action-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading),.btn.patch:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-inverted-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-txt-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn:focus:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-action-hover-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch){color:var(--px-color-txt-inverted-primary-inverted);background:var(--px-color-bg-action-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn:not(.secondary,.tertiary,.patch):focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-inverted-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-primary-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn.secondary:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-inverted-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-primary-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn.patch:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-inverted-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}@media only screen and (min-width: 640px){.btn{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet);--slotted-icon-size: var(--px-icon-size-xs-tablet)}.btn.loading ::slotted(px-spinner){line-height:var(--px-icon-size-xs-tablet)}.btn:not(.secondary,.tertiary,.patch){min-height:var(--px-size-action)}.btn.secondary{min-height:var(--px-size-action)}.btn.tertiary ::slotted(px-spinner){width:var(--px-icon-size-m-tablet);height:var(--px-icon-size-m-tablet)}}@media only screen and (min-width: 640px){.btn{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop);--slotted-icon-size: var(--px-icon-size-xs-desktop)}.btn.loading ::slotted(px-spinner){line-height:var(--px-icon-size-xs-desktop)}.btn.tertiary ::slotted(px-spinner){width:var(--px-icon-size-m-desktop);height:var(--px-icon-size-m-desktop)}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}';
1086
+ const linkCss = 'a,.link,::slotted(a){font-family:Proximus,Verdana,Helvetica,sans-serif;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);font-weight:500;color:var(--px-color-txt-body-default)}a:hover,a:focus,.link:hover,.link:focus{color:var(--px-color-txt-hover-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-txt-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-text-to-icon-compact-horizontal)}a ::slotted(*),.link ::slotted(*){display:inline-block}::slotted(a:hover),::slotted(a:focus){color:var(--px-color-txt-hover-default)}a.no-style{color:inherit;text-decoration:none}a.no-style:hover,a.no-style:focus{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-bg-container-main-default);padding:var(--px-padding-xs)}a.skip-link:focus{left:auto;z-index:999}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-txt-body-inverted)}:host([inverted]) a:hover,:host([inverted]) a:focus,:host([inverted]) .link:hover,:host([inverted]) .link:focus{color:var(--px-color-txt-hover-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) ::slotted(a:hover),:host([inverted]) ::slotted(a:focus){color:var(--px-color-txt-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-bg-container-main-inverted)}@media only screen and (min-width: 64rem){a,.link,::slotted(a){font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 90rem){a,.link,::slotted(a){font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}';
1087
+ const styles$a = ".patch{display:inline-block;padding:0 var(--px-padding-s);height:1.625rem;border:var(--px-border-m) solid transparent;border-radius:var(--px-radius-l) var(--px-radius-l) var(--px-radius-l) 0;font-family:Proximus,Verdana,Helvetica,sans-serif;font-weight:700;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);text-align:center;background-color:var(--px-color-bg-promo-default);color:var(--px-color-txt-inverted-primary-default)}.patch,.patch *{box-sizing:border-box}@media only screen and (min-width: 640px){.patch{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 1025px){.patch{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}:host([inverted]) .patch{background-color:var(--px-color-bg-promo-inverted);color:var(--px-color-txt-inverted-primary-default)}.bottom-right{border-radius:var(--px-radius-l) var(--px-radius-l) 0 var(--px-radius-l)}.bottom-left{border-radius:var(--px-radius-l) var(--px-radius-l) var(--px-radius-l) 0}.info{background-color:var(--px-color-illu-blue-core);color:var(--px-color-txt-body-default)}:host([inverted]) .info{background-color:var(--px-color-illu-blue-core);color:var(--px-color-txt-body-default)}.black-friday{background-color:var(--px-color-bg-container-rich-default);color:var(--px-color-txt-inverted-default)}:host([inverted]) .black-friday{background-color:var(--px-color-bg-container-rich-inverted);color:var(--px-color-txt-inverted-inverted)}.eco{background-color:var(--px-color-bg-success-default);color:var(--px-color-txt-inverted-default)}:host([inverted]) .eco{background-color:var(--px-color-bg-success-inverted);color:var(--px-color-txt-inverted-inverted)}.greyed{background-color:var(--px-color-bg-action-disabled-default);color:var(--px-color-icon-disabled-default)}:host([inverted]) .greyed{background-color:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-icon-disabled-inverted)}";
1088
+ const buttonStyles$1 = new CSSStyleSheet();
1089
+ const linkStyles$2 = new CSSStyleSheet();
1090
+ const patchStyles = new CSSStyleSheet();
1091
+ buttonStyles$1.replaceSync(buttonCss);
1092
+ linkStyles$2.replaceSync(linkCss);
1093
+ patchStyles.replaceSync(styles$a);
1094
+ const _Button = class _Button extends PxElement {
1095
+ constructor(semanticTokensStylesheet) {
1096
+ super(semanticTokensStylesheet, buttonStyles$1, linkStyles$2, patchStyles);
1097
+ this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
1098
+ const $root = document.createElement(this.nativeName);
1099
+ $root.classList.add("btn");
1100
+ $root.innerHTML = this.template();
1101
+ this.shadowRoot.appendChild($root);
1102
+ }
1103
+ static get observedAttributes() {
1104
+ return [...super.observedAttributes, "variant", "state", "extended", "loading", "shape", "inverted"];
1105
+ }
1106
+ get variant() {
1107
+ return this.getAttribute("variant");
1108
+ }
1109
+ set variant(value) {
1110
+ this.setAttribute("variant", value);
1111
+ }
1112
+ get state() {
1113
+ return this.getAttribute("state");
1114
+ }
1115
+ set state(value) {
1116
+ this.setAttribute("state", value);
1117
+ }
1118
+ get extended() {
1119
+ return this.getAttribute("extended");
1120
+ }
1121
+ set extended(value) {
1122
+ this.setAttribute("extended", value);
1123
+ }
1124
+ get loading() {
1125
+ return this.getAttribute("loading");
1126
+ }
1127
+ set loading(value) {
1128
+ this.setAttribute("loading", value);
1129
+ }
1130
+ get shape() {
1131
+ return this.getAttribute("shape");
1132
+ }
1133
+ set shape(value) {
1134
+ this.setAttribute("shape", value);
1135
+ }
1136
+ get inverted() {
1137
+ return this.getAttribute("inverted");
1138
+ }
1139
+ set inverted(value) {
1140
+ this.setAttribute("inverted", value);
1141
+ }
1142
+ attributeChangedCallback(attrName, oldValue, newValue) {
1143
+ if (oldValue !== newValue) {
1144
+ switch (attrName) {
1145
+ case "variant":
1146
+ this.updateVariant(oldValue, newValue);
1147
+ break;
1148
+ case "state":
1149
+ this.updateState(oldValue, newValue);
1150
+ break;
1151
+ case "extended":
1152
+ this.updateExtended();
1153
+ break;
1154
+ case "loading":
1155
+ this.updateLoading();
1156
+ break;
1157
+ case "shape":
1158
+ this.updateShape(oldValue, newValue);
1159
+ break;
1160
+ default:
1161
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1162
+ break;
1163
+ }
1164
+ }
1165
+ }
1166
+ checkName(values, value) {
1167
+ if (values.includes(value)) {
1168
+ return true;
1169
+ }
1170
+ return false;
1171
+ }
1172
+ checkClass(value) {
1173
+ if (value.startsWith("patch-")) {
1174
+ const splittedValue = value.split(/-(.*)/s);
1175
+ for (const classVar of splittedValue) {
1176
+ if (classVar != "") {
1177
+ this.$el.classList.toggle(classVar);
1178
+ }
1179
+ }
1180
+ } else {
1181
+ this.$el.classList.toggle(value);
1182
+ }
1183
+ }
1184
+ _toggleClass(oldValue, newValue) {
1185
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1186
+ this.checkClass(oldValue);
1187
+ }
1188
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
1189
+ this.checkClass(newValue);
1190
+ }
1191
+ }
1192
+ updateVariant(oldValue, newValue) {
1193
+ const values = ["", "default", "secondary", "tertiary", "link", "patch", "patch-info", "patch-black-friday", "patch-eco"];
1194
+ if (newValue === "link") {
1195
+ this.$el.classList.remove("btn");
1196
+ } else {
1197
+ this.$el.classList.add("btn");
1198
+ }
1199
+ this._toggleClass(oldValue, newValue);
1200
+ if (!this.checkName(values, newValue)) {
1201
+ console.error(`Bad "variant" value for ${this.$el}`);
1202
+ }
1203
+ }
1204
+ updateState(oldValue, newValue) {
1205
+ const values = ["", "default", "success", "error"];
1206
+ this._toggleClass(oldValue, newValue);
1207
+ if (!this.checkName(values, newValue)) {
1208
+ console.error(`Bad "sate" value for ${this.$el}`);
1209
+ }
1210
+ }
1211
+ updateExtended() {
1212
+ this.$el.classList.toggle("extended");
1213
+ }
1214
+ updateLoading() {
1215
+ this.$el.classList.toggle("loading");
1216
+ }
1217
+ updateShape(oldValue, newValue) {
1218
+ const values = ["", "default", "bottom-right", "bottom-left", "alternative"];
1219
+ this._toggleClass(oldValue, newValue);
1220
+ if (!this.checkName(values, newValue)) {
1221
+ console.error(`Bad "shape" value for ${this.$el}`);
1222
+ }
1223
+ }
1224
+ };
1225
+ _Button.nativeName = "button";
1226
+ let Button = _Button;
1227
+ class ProximusButton extends Button {
1228
+ constructor() {
1229
+ super(proximusSemanticStyleSheet);
1230
+ }
1231
+ }
1232
+ customElements.define("px-button", ProximusButton);
1233
+ const containerCss = '.container{font-family:Proximus,Verdana,Helvetica,sans-serif;background-color:var(--px-color-bg-container-main-default);border-radius:var(--px-radius-m);padding:var(--px-padding-m);box-sizing:border-box}:host([inverted]) .container{background-color:var(--px-color-bg-container-main-inverted);color:var(--px-color-txt-body-inverted)}.padding-2xs{padding:var(--px-padding-2xs)}.padding-xs{padding:var(--px-padding-xs)}.padding-s{padding:var(--px-padding-s)}.padding-m{padding:var(--px-padding-m)}.padding-l{padding:var(--px-padding-l)}.padding-xl{padding:var(--px-padding-xl)}.padding-none{padding:var(--px-padding-none)}.paddingblock-2xs{padding-block:var(--px-padding-2xs)}.paddingblock-xs{padding-block:var(--px-padding-xs)}.paddingblock-s{padding-block:var(--px-padding-s)}.paddingblock-m{padding-block:var(--px-padding-m)}.paddingblock-l{padding-block:var(--px-padding-l)}.paddingblock-xl{padding-block:var(--px-padding-xl)}.paddingblock-none{padding-block:var(--px-padding-none)}.paddinginline-2xs{padding-inline:var(--px-padding-2xs)}.paddinginline-xs{padding-inline:var(--px-padding-xs)}.paddinginline-s{padding-inline:var(--px-padding-s)}.paddinginline-m{padding-inline:var(--px-padding-m)}.paddinginline-l{padding-inline:var(--px-padding-l)}.paddinginline-xl{padding-inline:var(--px-padding-xl)}.paddinginline-none{padding-inline:var(--px-padding-none)}.paddingtop-2xs{padding-top:var(--px-padding-2xs)}.paddingtop-xs{padding-top:var(--px-padding-xs)}.paddingtop-s{padding-top:var(--px-padding-s)}.paddingtop-m{padding-top:var(--px-padding-m)}.paddingtop-l{padding-top:var(--px-padding-l)}.paddingtop-xl{padding-top:var(--px-padding-xl)}.paddingtop-none{padding-top:var(--px-padding-none)}.paddingright-2xs{padding-right:var(--px-padding-2xs)}.paddingright-xs{padding-right:var(--px-padding-xs)}.paddingright-s{padding-right:var(--px-padding-s)}.paddingright-m{padding-right:var(--px-padding-m)}.paddingright-l{padding-right:var(--px-padding-l)}.paddingright-xl{padding-right:var(--px-padding-xl)}.paddingright-none{padding-right:var(--px-padding-none)}.paddingbottom-2xs{padding-bottom:var(--px-padding-2xs)}.paddingbottom-xs{padding-bottom:var(--px-padding-xs)}.paddingbottom-s{padding-bottom:var(--px-padding-s)}.paddingbottom-m{padding-bottom:var(--px-padding-m)}.paddingbottom-l{padding-bottom:var(--px-padding-l)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl)}.paddingbottom-none{padding-bottom:var(--px-padding-none)}.paddingleft-2xs{padding-left:var(--px-padding-2xs)}.paddingleft-xs{padding-left:var(--px-padding-xs)}.paddingleft-s{padding-left:var(--px-padding-s)}.paddingleft-m{padding-left:var(--px-padding-m)}.paddingleft-l{padding-left:var(--px-padding-l)}.paddingleft-xl{padding-left:var(--px-padding-xl)}.paddingleft-none{padding-left:var(--px-padding-none)}.border-none{border:none}.border-s{border:var(--px-border-s) solid var(--px-color-border-main-default)}.border-m{border:var(--px-border-m) solid var(--px-color-border-main-default)}.border-l{border:var(--px-border-l) solid var(--px-color-border-main-default)}:host([inverted]) .border{border:var(--px-border-m) solid var(--px-color-border-main-inverted)}.borderradius-xs{border-radius:var(--px-radius-xs)}.borderradius-s{border-radius:var(--px-radius-s)}.borderradius-m{border-radius:var(--px-radius-m)}.borderradius-l{border-radius:var(--px-radius-l)}.borderradius-2xl{border-radius:var(--px-radius-2xl)}.borderradius-pill{border-radius:var(--px-radius-pill)}.noborderradius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.noborderradius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.noborderradius-all,.borderradius-none{border-radius:var(--px-radius-none)}.bgcolor-none{background-color:var(--px-color-bg-container-none-default)}.bgcolor-weak{background-color:var(--px-color-bg-container-weak-default)}.bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-default)}.bgcolor-strong{background-color:var(--px-color-bg-container-strong-default)}.bgcolor-rich{background-color:var(--px-color-bg-container-rich-default)}.bgcolor-main{background-color:var(--px-color-bg-container-main-default)}.bgcolor-canvas-weak{background-color:var(--px-color-canvas-weak)}.bgcolor-canvas-light{background-color:var(--px-color-canvas-light)}.bgcolor-canvas-soft{background-color:var(--px-color-canvas-soft)}.bgcolor-canvas-moderate{background-color:var(--px-color-canvas-moderate)}.bgcolor-canvas-strong{background-color:var(--px-color-canvas-strong)}.bgcolor-canvas-deep{background-color:var(--px-color-canvas-deep)}.bgcolor-canvas-rich{background-color:var(--px-color-canvas-rich)}.bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-default)}.bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-default)}.bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-default)}.bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-default)}.bgcolor-action-active{background-color:var(--px-color-bg-action-active-default)}.bgcolor-notification{background-color:var(--px-color-bg-notification-default)}.bgcolor-promo{background-color:var(--px-color-bg-promo-default)}.bgcolor-success{background-color:var(--px-color-bg-success-default)}.bgcolor-error{background-color:var(--px-color-bg-error-default)}.bgcolor-warning{background-color:var(--px-color-bg-warning-default)}.bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-default)}:host([inverted]) .bgcolor-none{background-color:var(--px-color-bg-container-none-inverted)}:host([inverted]) .bgcolor-weak{background-color:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) .bgcolor-strong{background-color:var(--px-color-bg-container-strong-inverted)}:host([inverted]) .bgcolor-rich{background-color:var(--px-color-bg-container-rich-inverted)}:host([inverted]) .bgcolor-main{background-color:var(--px-color-bg-container-main-inverted)}:host([inverted]) .bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-inverted)}:host([inverted]) .bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-inverted)}:host([inverted]) .bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .bgcolor-action-active{background-color:var(--px-color-bg-action-active-inverted)}:host([inverted]) .bgcolor-notification{background-color:var(--px-color-bg-notification-inverted)}:host([inverted]) .bgcolor-promo{background-color:var(--px-color-bg-promo-inverted)}:host([inverted]) .bgcolor-success{background-color:var(--px-color-bg-success-inverted)}:host([inverted]) .bgcolor-error{background-color:var(--px-color-bg-error-inverted)}:host([inverted]) .bgcolor-warning{background-color:var(--px-color-bg-warning-inverted)}:host([inverted]) .bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-inverted)}.bgimg{background-repeat:no-repeat}.bgimgsize-cover{background-size:cover;background-position:center center}.bgimgsize-contain{background-size:contain}.shadow-none{box-shadow:var(--px-shadow-none)}.shadow-s{box-shadow:var(--px-shadow-s)}.shadow-m{box-shadow:var(--px-shadow-m)}.shadow-l{box-shadow:var(--px-shadow-l)}.shadow-xl{box-shadow:var(--px-shadow-xl)}.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:2}::slotted([slot="anchor-right"]){right:var(--px-padding-m)}::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-none ::slotted([slot="anchor-right"]){right:var(--px-padding-none)}.padding-none ::slotted([slot="anchor-left"]){left:var(--px-padding-none)}.padding-2xs ::slotted([slot="anchor-right"]){right:var(--px-padding-2xs)}.padding-2xs ::slotted([slot="anchor-left"]){left:var(--px-padding-2xs)}.padding-xs ::slotted([slot="anchor-right"]){right:var(--px-padding-xs)}.padding-xs ::slotted([slot="anchor-left"]){left:var(--px-padding-xs)}.padding-s ::slotted([slot="anchor-right"]){right:var(--px-padding-s)}.padding-s ::slotted([slot="anchor-left"]){left:var(--px-padding-s)}.padding-m ::slotted([slot="anchor-right"]){right:var(--px-padding-m)}.padding-m ::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-l ::slotted([slot="anchor-right"]){right:var(--px-padding-l)}.padding-l ::slotted([slot="anchor-left"]){left:var(--px-padding-l)}.padding-xl ::slotted([slot="anchor-right"]){right:var(--px-padding-xl)}.padding-xl ::slotted([slot="anchor-left"]){left:var(--px-padding-xl)}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:1}@media only screen and (max-width: 640px){.padding-l{padding:var(--px-padding-l-mobile)}.padding-xl{padding:var(--px-padding-xl-mobile)}.paddingtop-l{padding-top:var(--px-padding-l-mobile)}.paddingtop-xl{padding-top:var(--px-padding-xl-mobile)}.paddingright-l{padding-right:var(--px-padding-l-mobile)}.paddingright-xl{padding-right:var(--px-padding-xl-mobile)}.paddingbottom-l{padding-bottom:var(--px-padding-l-mobile)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl-mobile)}.paddingleft-l{padding-left:var(--px-padding-l-mobile)}.paddingleft-xl{padding-left:var(--px-padding-xl-mobile)}}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-border-s) * -1);left:calc(var(--px-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-border-m) * -1);left:calc(var(--px-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-border-l) * -1);left:calc(var(--px-border-l) * -1)}';
1234
+ const containerStyles = new CSSStyleSheet();
1235
+ containerStyles.replaceSync(containerCss);
1236
+ const anchorValues = ["anchor-right", "anchor-left", "anchor-full"];
1237
+ const noBorderRadiusValues = ["", "all", "top", "right", "bottom", "left"];
1238
+ const bgImgSizeValues = ["", "cover", "contain", "default"];
1239
+ const _Container = class _Container extends PxElement {
1240
+ constructor() {
1241
+ super(proximusSemanticStyleSheet, containerStyles);
1242
+ this.template = () => `<div class="container">
1243
+ <slot name="anchor-left"></slot>
1244
+ <slot name="anchor-right"></slot>
1245
+ <slot name="anchor-full"></slot>
1246
+ <slot></slot>
1247
+ </div>`;
1248
+ this.onWindowResize = () => {
1249
+ if (this.hasAttribute("bgimg-mobile")) {
1250
+ this.loadImg("bgimg-mobile", this.getAttribute("bgimg-mobile"));
1251
+ }
1252
+ if (this.hasAttribute("bgimg-tablet")) {
1253
+ this.loadImg("bgimg-tablet", this.getAttribute("bgimg-tablet"));
1254
+ }
1255
+ if (this.hasAttribute("bgimg-laptop")) {
1256
+ this.loadImg("bgimg-laptop", this.getAttribute("bgimg-laptop"));
1257
+ }
1258
+ };
1259
+ this.shadowRoot.innerHTML = this.template();
1260
+ }
1261
+ static get observedAttributes() {
1262
+ return [
1263
+ ...super.observedAttributes,
1264
+ "padding",
1265
+ "paddinginline",
1266
+ "paddingblock",
1267
+ "paddingtop",
1268
+ "paddingright",
1269
+ "paddingbottom",
1270
+ "paddingleft",
1271
+ "border",
1272
+ "borderradius",
1273
+ "noborderradius",
1274
+ "bgcolor",
1275
+ "gradient",
1276
+ "bgimg-mobile",
1277
+ "bgimg-tablet",
1278
+ "bgimg-laptop",
1279
+ "bgimgsize",
1280
+ "bgimgposition",
1281
+ "shadow",
1282
+ "inverted"
1283
+ ];
1284
+ }
1285
+ get padding() {
1286
+ return this.getAttribute("padding");
1287
+ }
1288
+ set padding(value) {
1289
+ this.setAttribute("padding", value);
1290
+ }
1291
+ get paddingBlock() {
1292
+ return this.getAttribute("paddingblock");
1293
+ }
1294
+ set paddingBlock(value) {
1295
+ this.setAttribute("paddingblock", value);
1296
+ }
1297
+ get paddingInline() {
1298
+ return this.getAttribute("paddinginline");
1299
+ }
1300
+ set paddingInline(value) {
1301
+ this.setAttribute("paddinginline", value);
1302
+ }
1303
+ get paddingTop() {
1304
+ return this.getAttribute("paddingtop");
1305
+ }
1306
+ set paddingTop(value) {
1307
+ this.setAttribute("paddingtop", value);
1308
+ }
1309
+ get paddingRight() {
1310
+ return this.getAttribute("paddingright");
1311
+ }
1312
+ set paddingRight(value) {
1313
+ this.setAttribute("paddingright", value);
1314
+ }
1315
+ get paddingBottom() {
1316
+ return this.getAttribute("paddingbottom");
1317
+ }
1318
+ set paddingBottom(value) {
1319
+ this.setAttribute("paddingbottom", value);
1320
+ }
1321
+ get paddingLeft() {
1322
+ return this.getAttribute("paddingleft");
1323
+ }
1324
+ set paddingLeft(value) {
1325
+ this.setAttribute("paddingleft", value);
1326
+ }
1327
+ get border() {
1328
+ return this.getAttribute("border");
1329
+ }
1330
+ set border(value) {
1331
+ this.setAttribute("border", value);
1332
+ }
1333
+ get borderRadius() {
1334
+ return this.getAttribute("borderradius");
1335
+ }
1336
+ set borderRadius(value) {
1337
+ this.setAttribute("borderradius", value);
1338
+ }
1339
+ get noBorderRadius() {
1340
+ return this.getAttribute("noborderradius");
1341
+ }
1342
+ set noBorderRadius(value) {
1343
+ this.setAttribute("noborderradius", value);
1344
+ }
1345
+ get bgColor() {
1346
+ return this.getAttribute("bgcolor");
1347
+ }
1348
+ set bgColor(value) {
1349
+ this.setAttribute("bgcolor", value);
1350
+ }
1351
+ get gradient() {
1352
+ return this.getAttribute("gradient");
1353
+ }
1354
+ set gradient(value) {
1355
+ this.setAttribute("gradient", value);
1356
+ }
1357
+ get bgImgMobile() {
1358
+ return this.getAttribute("bgimg-mobile");
1359
+ }
1360
+ set bgImgMobile(value) {
1361
+ this.setAttribute("bgimg-mobile", value);
1362
+ }
1363
+ get bgImgTablet() {
1364
+ return this.getAttribute("bgimg-tablet");
1365
+ }
1366
+ set bgImgTablet(value) {
1367
+ this.setAttribute("bgimg-tablet", value);
1368
+ }
1369
+ get bgImgLaptop() {
1370
+ return this.getAttribute("bgimg-laptop");
1371
+ }
1372
+ set bgImgLaptop(value) {
1373
+ this.setAttribute("bgimg-laptop", value);
1374
+ }
1375
+ get bgImgSize() {
1376
+ return this.getAttribute("bgimgsize");
1377
+ }
1378
+ set bgImgSize(value) {
1379
+ this.setAttribute("bgimgsize", value);
1380
+ }
1381
+ get bgImgPosition() {
1382
+ return this.getAttribute("bgimgposition");
1383
+ }
1384
+ set bgImgPosition(value) {
1385
+ this.setAttribute("bgimgposition", value);
1386
+ }
1387
+ get shadow() {
1388
+ return this.getAttribute("shadow");
1389
+ }
1390
+ set shadow(value) {
1391
+ this.setAttribute("shadow", value);
1392
+ }
1393
+ get inverted() {
1394
+ return this.getAttribute("inverted");
1395
+ }
1396
+ set inverted(value) {
1397
+ this.setAttribute("inverted", value);
1398
+ }
1399
+ connectedCallback() {
1400
+ var _a, _b;
1401
+ const anchorSlot = this.querySelector("[slot]");
1402
+ if (anchorSlot) {
1403
+ if (anchorValues.includes(anchorSlot.getAttribute("slot"))) {
1404
+ this.shadowRoot.querySelector(".container").classList.toggle("anchored");
1405
+ }
1406
+ }
1407
+ if (((_a = this.parentElement) == null ? void 0 : _a.getAttribute("align-items")) === "stretch") {
1408
+ if (((_b = this.parentElement) == null ? void 0 : _b.getAttribute("direction")) === "column") {
1409
+ this.$el.style.width = "100%";
1410
+ } else {
1411
+ this.$el.style.height = "100%";
1412
+ }
1413
+ }
1414
+ if (this.hasAttribute("bgimg-mobile") || this.hasAttribute("bgimg-tablet") || this.hasAttribute("bgimg-laptop")) {
1415
+ window.addEventListener("resize", this.onWindowResize);
1416
+ }
1417
+ }
1418
+ disconnectedCallback() {
1419
+ window.removeEventListener("resize", this.onWindowResize);
1420
+ }
1421
+ attributeChangedCallback(attrName, oldValue, newValue) {
1422
+ if (oldValue !== newValue) {
1423
+ switch (attrName) {
1424
+ case "padding":
1425
+ case "paddingblock":
1426
+ case "paddinginline":
1427
+ case "paddingtop":
1428
+ case "paddingright":
1429
+ case "paddingbottom":
1430
+ case "paddingleft":
1431
+ this.updateAttribute(attrName, oldValue, newValue, paddingValues);
1432
+ break;
1433
+ case "border":
1434
+ this.updateAttribute(attrName, oldValue, newValue, borderValues);
1435
+ break;
1436
+ case "borderradius":
1437
+ this.updateAttribute(attrName, oldValue, newValue, borderRadiusValues);
1438
+ break;
1439
+ case "noborderradius":
1440
+ this.updateAttribute(attrName, oldValue, newValue, noBorderRadiusValues);
1441
+ break;
1442
+ case "bgcolor":
1443
+ this.updateAttribute(attrName, oldValue, newValue, bgColorValues);
1444
+ break;
1445
+ case "gradient":
1446
+ this.updateGradient(oldValue, newValue);
1447
+ break;
1448
+ case "bgimgsize":
1449
+ this.updateAttribute(attrName, oldValue, newValue, bgImgSizeValues);
1450
+ break;
1451
+ case "bgimg-mobile":
1452
+ case "bgimg-tablet":
1453
+ case "bgimg-laptop":
1454
+ if (newValue !== "") {
1455
+ this.$el.classList.toggle("bgimg");
1456
+ this.loadImg(attrName, newValue);
1457
+ }
1458
+ break;
1459
+ case "bgimgposition":
1460
+ if (newValue !== null && newValue !== "") {
1461
+ this.$el.style.backgroundPosition = newValue;
1462
+ }
1463
+ break;
1464
+ case "shadow":
1465
+ this.updateAttribute(attrName, oldValue, newValue, shadowValues);
1466
+ break;
1467
+ default:
1468
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1469
+ break;
1470
+ }
1471
+ }
1472
+ }
1473
+ loadImg(attrName, newValue) {
1474
+ if (attrName === "bgimg-mobile") {
1475
+ this.$el.style.backgroundImage = `url("${newValue}")`;
1476
+ } else if (window.matchMedia("only screen and (min-width: 768px)").matches && attrName === "bgimg-tablet") {
1477
+ this.$el.style.backgroundImage = `url("${newValue}")`;
1478
+ } else if (window.matchMedia("only screen and (min-width: 1025px)").matches && attrName === "bgimg-laptop") {
1479
+ this.$el.style.backgroundImage = `url("${newValue}")`;
1480
+ }
1481
+ }
1482
+ updateGradient(oldValue, newValue) {
1483
+ if (this.checkName(gradientValues, newValue)) {
1484
+ this.$el.style.background = `linear-gradient(var(--px-color-bg-gradient-${newValue}))`;
1485
+ } else {
1486
+ console.error(`${newValue} is not an allowed gradient value for ${this.$el}`);
1487
+ }
1488
+ }
1489
+ updateAttribute(attrName, oldValue, newValue, attrValues) {
1490
+ if (oldValue !== null && oldValue !== "") {
1491
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
1492
+ }
1493
+ if (newValue !== null && newValue !== "") {
1494
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
1495
+ }
1496
+ if (!this.checkName(attrValues, newValue)) {
1497
+ console.error(`${newValue} is not an allowed ${attrName} value for ${this.$el}`);
1498
+ }
1499
+ }
1500
+ checkName(values, value) {
1501
+ return values.includes(value);
1502
+ }
1503
+ };
1504
+ _Container.nativeName = "div";
1505
+ let Container = _Container;
1506
+ customElements.define("px-container", Container);
1507
+ const headingCss = "h1,.h1,::slotted(h1),h2,.h2,::slotted(h2),h3,.h3,::slotted(h3),h4,.h4,::slotted(h4),h5,.h5,::slotted(h5),h6,.h6,::slotted(h6),.h7,.subtitle{margin:0;font-family:Proximus,Verdana,Helvetica,sans-serif;color:var(--px-color-txt-primary-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);font-weight:700}:host([inverted]) h1,:host([inverted]) .h1,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .h2,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .h3,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .h4,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .h5,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .h6,:host([inverted]) ::slotted(h6),:host([inverted]) .h7,:host([inverted]) .subtitle{color:var(--px-color-txt-primary-inverted)}h1,.h1,::slotted(h1){font-size:var(--px-text-size-5xl-mobile);line-height:var(--px-line-height-4xl-mobile);font-weight:900}h2,.h2,::slotted(h2){font-size:var(--px-text-size-4xl-mobile);line-height:var(--px-line-height-3xl-mobile);font-weight:900}h3,.h3,::slotted(h3){font-size:var(--px-text-size-3xl-mobile);line-height:var(--px-line-height-3xl-mobile)}h4,.h4,::slotted(h4){font-size:var(--px-text-size-2xl-mobile);line-height:var(--px-line-height-2xl-mobile)}h5,.h5,::slotted(h5){font-size:var(--px-text-size-l-mobile);line-height:var(--px-line-height-l-mobile)}h6,.h6,::slotted(h6){font-size:var(--px-text-size-m-mobile);line-height:var(--px-line-height-m-mobile)}.subtitle{font-size:var(--px-text-size-xl-mobile);line-height:var(--px-line-height-xl-mobile);font-weight:300}@media only screen and (min-width: 64rem){h1,.h1,::slotted(h1){font-size:var(--px-text-size-5xl-tablet);line-height:var(--px-line-height-4xl-tablet);font-weight:900}h2,.h2,::slotted(h2){font-size:var(--px-text-size-4xl-tablet);line-height:var(--px-line-height-3xl-tablet);font-weight:900}h3,.h3,::slotted(h3){font-size:var(--px-text-size-3xl-tablet);line-height:var(--px-line-height-3xl-tablet)}h4,.h4,::slotted(h4){font-size:var(--px-text-size-2xl-tablet);line-height:var(--px-line-height-2xl-tablet)}h5,.h5,::slotted(h5){font-size:var(--px-text-size-l-tablet);line-height:var(--px-line-height-l-tablet)}h6,.h6,::slotted(h6){font-size:var(--px-text-size-m-tablet);line-height:var(--px-line-height-m-tablet)}.h7{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}.subtitle{font-size:var(--px-text-size-xl-tablet);line-height:var(--px-line-height-xl-tablet);font-weight:300}}@media only screen and (min-width: 90rem){h1,.h1,::slotted(h1){font-size:var(--px-text-size-5xl-desktop);line-height:var(--px-line-height-4xl-desktop);font-weight:900}h2,.h2,::slotted(h2){font-size:var(--px-text-size-4xl-desktop);line-height:var(--px-line-height-3xl-desktop);font-weight:900}h3,.h3,::slotted(h3){font-size:var(--px-text-size-3xl-desktop);line-height:var(--px-line-height-3xl-desktop)}h4,.h4,::slotted(h4){font-size:var(--px-text-size-2xl-desktop);line-height:var(--px-line-height-2xl-desktop)}h5,.h5,::slotted(h5){font-size:var(--px-text-size-l-desktop);line-height:var(--px-line-height-l-desktop)}h6,.h6,::slotted(h6){font-size:var(--px-text-size-m-desktop);line-height:var(--px-line-height-m-desktop)}.h7{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}.subtitle{font-size:var(--px-text-size-xl-desktop);line-height:var(--px-line-height-xl-desktop);font-weight:300}}";
1508
+ const typographyCss$1 = ":host>*:first-child{--font-weight-light: 300;--font-weight-regular: 400;--font-weight-bold: 700;--font-weight-extrabold: 900}.color-inherit{color:inherit}.color-primary{color:var(--px-color-txt-primary-default)}.color-inverted-primary{color:var(--px-color-txt-inverted-primary-default)}.color-inverted{color:var(--px-color-txt-inverted-default)}.color-body{color:var(--px-color-txt-body-default)}.color-details{color:var(--px-color-txt-details-default)}.color-hover{color:var(--px-color-txt-hover-default)}.color-disabled{color:var(--px-color-txt-disabled-default)}.color-active{color:var(--px-color-txt-active-default)}.color-promo{color:var(--px-color-txt-promo-default)}.color-status-success{color:var(--px-color-txt-status-success-default)}.color-status-error{color:var(--px-color-txt-status-error-default)}.color-status-warning{color:var(--px-color-txt-status-warning-default)}.color-status-unlimited{color:var(--px-color-txt-status-unlimited-default)}:host([inverted]) .color-inherit{color:inherit}:host([inverted]) .color-primary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .color-inverted-primary{color:var(--px-color-txt-inverted-primary-inverted)}:host([inverted]) .color-inverted{color:var(--px-color-txt-inverted-inverted)}:host([inverted]) .color-body{color:var(--px-color-txt-body-inverted)}:host([inverted]) .color-details{color:var(--px-color-txt-details-inverted)}:host([inverted]) .color-hover{color:var(--px-color-txt-hover-inverted)}:host([inverted]) .color-disabled{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .color-active{color:var(--px-color-txt-active-inverted)}:host([inverted]) .color-promo{color:var(--px-color-txt-promo-inverted)}:host([inverted]) .color-status-success{color:var(--px-color-txt-status-success-inverted)}:host([inverted]) .color-status-error{color:var(--px-color-txt-status-error-inverted)}:host([inverted]) .color-status-warning{color:var(--px-color-txt-status-warning-inverted)}:host([inverted]) .color-status-unlimited{color:var(--px-color-txt-status-unlimited-inverted)}.fontsize-inherit{font-size:inherit;line-height:inherit}.fontsize-xs{font-size:var(--px-text-size-xs-mobile);line-height:var(--px-line-height-xs-mobile)}.fontsize-s{font-size:var(--px-text-size-s-mobile);line-height:var(--px-line-height-s-mobile)}.fontsize-base{font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile)}.fontsize-m{font-size:var(--px-text-size-m-mobile);line-height:var(--px-line-height-m-mobile)}.fontsize-l{font-size:var(--px-text-size-l-mobile);line-height:var(--px-line-height-l-mobile)}.fontsize-xl{font-size:var(--px-text-size-xl-mobile);line-height:var(--px-line-height-xl-mobile)}.fontsize-2xl{font-size:var(--px-text-size-2xl-mobile);line-height:var(--px-line-height-2xl-mobile)}.fontsize-3xl{font-size:var(--px-text-size-3xl-mobile);line-height:var(--px-line-height-3xl-mobile)}.fontsize-4xl{font-size:var(--px-text-size-4xl-mobile);line-height:var(--px-line-height-4xl-mobile)}.fontsize-5xl{font-size:var(--px-text-size-5xl-mobile);line-height:var(--px-line-height-5xl-mobile)}.fontsize-6xl{font-size:var(--px-text-size-6xl-mobile);line-height:var(--px-line-height-6xl-mobile)}.fontsize-7xl{font-size:var(--px-text-size-7xl-mobile);line-height:var(--px-line-height-7xl-mobile)}@media only screen and (min-width: 768px){.fontsize-xs{font-size:var(--px-text-size-xs-mobile);line-height:var(--px-line-height-xs-mobile)}.fontsize-s{font-size:var(--px-text-size-s-mobile);line-height:var(--px-line-height-s-mobile)}.fontsize-base{font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile)}.fontsize-m{font-size:var(--px-text-size-m-mobile);line-height:var(--px-line-height-m-mobile)}.fontsize-l{font-size:var(--px-text-size-l-mobile);line-height:var(--px-line-height-l-mobile)}.fontsize-xl{font-size:var(--px-text-size-xl-mobile);line-height:var(--px-line-height-xl-mobile)}.fontsize-2xl{font-size:var(--px-text-size-2xl-mobile);line-height:var(--px-line-height-2xl-mobile)}.fontsize-3xl{font-size:var(--px-text-size-3xl-mobile);line-height:var(--px-line-height-3xl-mobile)}.fontsize-4xl{font-size:var(--px-text-size-4xl-mobile);line-height:var(--px-line-height-4xl-mobile)}.fontsize-5xl{font-size:var(--px-text-size-5xl-mobile);line-height:var(--px-line-height-5xl-mobile)}.fontsize-6xl{font-size:var(--px-text-size-6xl-mobile);line-height:var(--px-line-height-6xl-mobile)}.fontsize-7xl{font-size:var(--px-text-size-7xl-mobile);line-height:var(--px-line-height-7xl-mobile)}}@media only screen and (min-width: 1025px){.fontsize-xs{font-size:var(--px-text-size-xs-tablet);line-height:var(--px-line-height-xs-tablet)}.fontsize-s{font-size:var(--px-text-size-s-tablet);line-height:var(--px-line-height-s-tablet)}.fontsize-base{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}.fontsize-m{font-size:var(--px-text-size-m-tablet);line-height:var(--px-line-height-m-tablet)}.fontsize-l{font-size:var(--px-text-size-l-tablet);line-height:var(--px-line-height-l-tablet)}.fontsize-xl{font-size:var(--px-text-size-xl-tablet);line-height:var(--px-line-height-xl-tablet)}.fontsize-2xl{font-size:var(--px-text-size-2xl-tablet);line-height:var(--px-line-height-2xl-tablet)}.fontsize-3xl{font-size:var(--px-text-size-3xl-tablet);line-height:var(--px-line-height-3xl-tablet)}.fontsize-4xl{font-size:var(--px-text-size-4xl-tablet);line-height:var(--px-line-height-4xl-tablet)}.fontsize-5xl{font-size:var(--px-text-size-5xl-tablet);line-height:var(--px-line-height-5xl-tablet)}.fontsize-6xl{font-size:var(--px-text-size-6xl-tablet);line-height:var(--px-line-height-6xl-tablet)}.fontsize-7xl{font-size:var(--px-text-size-7xl-tablet);line-height:var(--px-line-height-7xl-tablet)}}@media only screen and (min-width: 1441px){.fontsize-xs{font-size:var(--px-text-size-xs-desktop);line-height:var(--px-line-height-xs-desktop)}.fontsize-s{font-size:var(--px-text-size-s-desktop);line-height:var(--px-line-height-s-desktop)}.fontsize-base{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}.fontsize-m{font-size:var(--px-text-size-m-desktop);line-height:var(--px-line-height-m-desktop)}.fontsize-l{font-size:var(--px-text-size-l-desktop);line-height:var(--px-line-height-l-desktop)}.fontsize-xl{font-size:var(--px-text-size-xl-desktop);line-height:var(--px-line-height-xl-desktop)}.fontsize-2xl{font-size:var(--px-text-size-2xl-desktop);line-height:var(--px-line-height-2xl-desktop)}.fontsize-3xl{font-size:var(--px-text-size-3xl-desktop);line-height:var(--px-line-height-3xl-desktop)}.fontsize-4xl{font-size:var(--px-text-size-4xl-desktop);line-height:var(--px-line-height-4xl-desktop)}.fontsize-5xl{font-size:var(--px-text-size-5xl-desktop);line-height:var(--px-line-height-5xl-desktop)}.fontsize-6xl{font-size:var(--px-text-size-6xl-desktop);line-height:var(--px-line-height-6xl-desktop)}.fontsize-7xl{font-size:var(--px-text-size-7xl-desktop);line-height:var(--px-line-height-7xl-desktop)}}.fontweight-inherit{font-weight:inherit}.fontweight-normal{font-weight:var(--font-weight-regular)}.fontweight-bold{font-weight:var(--font-weight-bold)}.fontweight-extrabold{font-weight:var(--font-weight-extrabold)}.fontweight-light{font-weight:var(--font-weight-light)}";
1509
+ const headingStyles$2 = new CSSStyleSheet();
1510
+ headingStyles$2.replaceSync(headingCss);
1511
+ const typographyStyles$4 = new CSSStyleSheet();
1512
+ typographyStyles$4.replaceSync(typographyCss$1);
1513
+ const variantValues$2 = ["", "default", "h1", "h2", "h3", "h4", "h5", "h6", "h7", "subtitle"];
1514
+ class AbstractHeading extends PxElement {
1515
+ template() {
1516
+ return `<slot></slot>`;
1517
+ }
1518
+ constructor(tagName) {
1519
+ super(proximusSemanticStyleSheet, headingStyles$2, typographyStyles$4);
1520
+ const $root = document.createElement(tagName);
1521
+ $root.innerHTML = this.template();
1522
+ this.shadowRoot.appendChild($root);
1523
+ }
1524
+ static get observedAttributes() {
1525
+ return [...super.observedAttributes, "variant", "color", "fontsize", "fontweight", "inverted"];
1526
+ }
1527
+ get variant() {
1528
+ return this.getAttribute("variant");
1529
+ }
1530
+ set variant(value) {
1531
+ this.setAttribute("variant", value);
1532
+ }
1533
+ get color() {
1534
+ return this.getAttribute("color");
1535
+ }
1536
+ set color(value) {
1537
+ this.setAttribute("color", value);
1538
+ }
1539
+ get fontsize() {
1540
+ return this.getAttribute("fontsize");
1541
+ }
1542
+ set fontsize(value) {
1543
+ this.setAttribute("fontsize", value);
1544
+ }
1545
+ get fontweight() {
1546
+ return this.getAttribute("fontweight");
1547
+ }
1548
+ set fontweight(value) {
1549
+ this.setAttribute("fontweight", value);
1550
+ }
1551
+ get inverted() {
1552
+ return this.getAttribute("inverted");
1553
+ }
1554
+ set inverted(value) {
1555
+ this.setAttribute("inverted", value);
1556
+ }
1557
+ attributeChangedCallback(attrName, oldValue, newValue) {
1558
+ if (oldValue !== newValue) {
1559
+ switch (attrName) {
1560
+ case "variant":
1561
+ this.updateAttribute(attrName, oldValue, newValue, variantValues$2);
1562
+ break;
1563
+ case "color":
1564
+ this.updateTypography(attrName, oldValue, newValue, colorValues$2);
1565
+ break;
1566
+ case "fontsize":
1567
+ this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
1568
+ break;
1569
+ case "fontweight":
1570
+ this.updateTypography(attrName, oldValue, newValue, fontweightValues);
1571
+ break;
1572
+ default:
1573
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1574
+ break;
1575
+ }
1576
+ }
1577
+ }
1578
+ toggleClass(oldValue, newValue) {
1579
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1580
+ this.$el.classList.toggle(oldValue);
1581
+ }
1582
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
1583
+ this.$el.classList.toggle(newValue);
1584
+ }
1585
+ }
1586
+ checkName(values, value) {
1587
+ return values.includes(value);
1588
+ }
1589
+ updateAttribute(attrName, oldValue, newValue, attrValue) {
1590
+ this.toggleClass(oldValue, newValue);
1591
+ if (!this.checkName(attrValue, newValue)) {
1592
+ console.error(`Bad "${attrName}" value for`, this.$el);
1593
+ }
1594
+ }
1595
+ updateTypography(attrName, oldValue, newValue, attrValue) {
1596
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1597
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
1598
+ }
1599
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
1600
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
1601
+ }
1602
+ if (!this.checkName(attrValue, newValue)) {
1603
+ console.error(`Bad "${attrName}" value for`, this.$el);
1604
+ }
1605
+ }
1606
+ }
1607
+ const _H1 = class _H1 extends AbstractHeading {
1608
+ constructor() {
1609
+ super("h1");
1610
+ }
1611
+ };
1612
+ _H1.nativeName = "h1";
1613
+ let H1 = _H1;
1614
+ customElements.define("px-h1", H1);
1615
+ const _H2 = class _H2 extends AbstractHeading {
1616
+ constructor() {
1617
+ super("h2");
1618
+ }
1619
+ };
1620
+ _H2.nativeName = "h2";
1621
+ let H2 = _H2;
1622
+ customElements.define("px-h2", H2);
1623
+ const _H3 = class _H3 extends AbstractHeading {
1624
+ constructor() {
1625
+ super("h3");
1626
+ }
1627
+ };
1628
+ _H3.nativeName = "h3";
1629
+ let H3 = _H3;
1630
+ customElements.define("px-h3", H3);
1631
+ const _H4 = class _H4 extends AbstractHeading {
1632
+ constructor() {
1633
+ super("h4");
1634
+ }
1635
+ };
1636
+ _H4.nativeName = "h4";
1637
+ let H4 = _H4;
1638
+ customElements.define("px-h4", H4);
1639
+ const _H5 = class _H5 extends AbstractHeading {
1640
+ constructor() {
1641
+ super("h5");
1642
+ }
1643
+ };
1644
+ _H5.nativeName = "h5";
1645
+ let H5 = _H5;
1646
+ customElements.define("px-h5", H5);
1647
+ const _H6 = class _H6 extends AbstractHeading {
1648
+ constructor() {
1649
+ super("h6");
1650
+ }
1651
+ };
1652
+ _H6.nativeName = "h6";
1653
+ let H6 = _H6;
1654
+ customElements.define("px-h6", H6);
1655
+ const styles$9 = ':host{line-height:1;display:inline-block;vertical-align:middle}i{font-family:PxIcon;color:var(--px-color-icon-primary-default);line-height:1;font-style:unset;font-weight:400;-webkit-user-select:none;user-select:none;font-display:swap}.inherit{color:inherit}.primary{color:var(--px-color-icon-primary-default)}.body{color:var(--px-color-icon-body-default)}.details{color:var(--px-color-icon-details-default)}.hover:hover{color:var(--px-color-icon-hover-default)}.hover:active{color:var(--px-color-icon-active-default)}.disabled{color:var(--px-color-icon-disabled-default)}.success{color:var(--px-color-icon-success-default)}.warning{color:var(--px-color-icon-warning-default)}.error{color:var(--px-color-icon-error-default)}.unlimited{color:var(--px-color-icon-unlimited-default)}.promo{color:var(--px-color-icon-promo-default)}:host([inverted]) i,:host([inverted]) .primary{color:var(--px-color-icon-primary-inverted)}:host([inverted]) .body{color:var(--px-color-icon-body-inverted)}:host([inverted]) .details{color:var(--px-color-icon-details-inverted)}:host([inverted]) .hover:hover{color:var(--px-color-icon-hover-inverted)}:host([inverted]) .hover:active{color:var(--px-color-icon-active-inverted)}:host([inverted]) .disabled{color:var(--px-color-icon-disabled-inverted)}:host([inverted]) .success{color:var(--px-color-icon-success-inverted)}:host([inverted]) .warning{color:var(--px-color-icon-warning-inverted)}:host([inverted]) .error{color:var(--px-color-icon-error-inverted)}:host([inverted]) .unlimited{color:var(--px-color-icon-unlimited-inverted)}:host([inverted]) .promo{color:var(--px-color-icon-promo-inverted)}.size-2xs{font-size:var(--px-icon-size-2xs-mobile)}.size-xs{font-size:var(--px-icon-size-xs-mobile)}.size-s{font-size:var(--px-icon-size-s-mobile)}.size-m{font-size:var(--px-icon-size-m-mobile)}.size-l{font-size:var(--px-icon-size-l-mobile)}.size-xl{font-size:var(--px-icon-size-xl-mobile)}.size-2xl{font-size:var(--px-icon-size-2xl-mobile)}@media only screen and (min-width: 64rem){.size-2xs{font-size:var(--px-icon-size-2xs-tablet)}.size-xs{font-size:var(--px-icon-size-xs-tablet)}.size-s{font-size:var(--px-icon-size-s-tablet)}.size-m{font-size:var(--px-icon-size-m-tablet)}.size-l{font-size:var(--px-icon-size-l-tablet)}.size-xl{font-size:var(--px-icon-size-xl-tablet)}.size-2xl{font-size:var(--px-icon-size-2xl-tablet)}}@media only screen and (min-width: 90rem){.size-2xs{font-size:var(--px-icon-size-2xs-desktop)}.size-xs{font-size:var(--px-icon-size-xs-desktop)}.size-s{font-size:var(--px-icon-size-s-desktop)}.size-m{font-size:var(--px-icon-size-m-desktop)}.size-l{font-size:var(--px-icon-size-l-desktop)}.size-xl{font-size:var(--px-icon-size-xl-desktop)}.size-2xl{font-size:var(--px-icon-size-2xl-desktop)}}i.icon-large:before{vertical-align:-10%;font-size:1.3333333333em}.icon-Accessories:before{content:""}.icon-Account:before{content:""}.icon-Activeren:before{content:""}.icon-Addition:before{content:""}.icon-Administration:before{content:""}.icon-Advantage:before{content:""}.icon-Advantage-pig:before{content:""}.icon-AI:before{content:""}.icon-Airplane:before{content:""}.icon-Alarm:before{content:""}.icon-Answers:before{content:""}.icon-Antenna:before{content:""}.icon-Anywhere:before{content:""}.icon-Applications:before{content:""}.icon-Appointment:before{content:""}.icon-Arrow:before{content:""}.icon-Arrow-circle:before{content:""}.icon-Arrow-direction:before{content:""}.icon-Arrow-direction-horizontal:before{content:""}.icon-Arrow-down:before{content:""}.icon-Arrow-left:before{content:""}.icon-Arrow-navigation:before{content:""}.icon-Arrow-outline:before{content:""}.icon-Arrow-outline-direction:before{content:""}.icon-Arrowbutton:before{content:""}.icon-Arrowbutton-left:before{content:""}.icon-Articles:before{content:""}.icon-Baby:before{content:""}.icon-Back-camera:before{content:""}.icon-Battery:before{content:""}.icon-Belgique-ok:before{content:""}.icon-Best-seller:before{content:""}.icon-Best-seller-14:before{content:""}.icon-Best-seller-2:before{content:""}.icon-Bill:before{content:""}.icon-Bill-member:before{content:""}.icon-Birthday:before{content:""}.icon-Blacklisted:before{content:""}.icon-Blindness:before{content:""}.icon-Bluetooth:before{content:""}.icon-Broken-links:before{content:""}.icon-Bullet:before{content:""}.icon-Caddy:before{content:""}.icon-Calendar:before{content:""}.icon-Calendar-14:before{content:""}.icon-Calendar-7:before{content:""}.icon-Calls:before{content:""}.icon-Callsfromabroad:before{content:""}.icon-Callsfrombelgium:before{content:""}.icon-Calltransfert:before{content:""}.icon-Camera:before{content:""}.icon-Car:before{content:""}.icon-Card:before{content:""}.icon-Care:before{content:""}.icon-Circle:before{content:""}.icon-Circle-Remove:before{content:""}.icon-Close:before{content:""}.icon-Cloud:before{content:""}.icon-Cloud-ICT:before{content:""}.icon-Cloud-IoT:before{content:""}.icon-Cloud-Networks:before{content:""}.icon-Cloud-Security:before{content:""}.icon-Collaboration:before{content:""}.icon-Collapse:before{content:""}.icon-Community:before{content:""}.icon-Community2:before{content:""}.icon-Compare:before{content:""}.icon-Congratulations-box:before{content:""}.icon-Connected-house:before{content:""}.icon-Connection-error:before{content:""}.icon-Connection-manager:before{content:""}.icon-Connectivity:before{content:""}.icon-Contact:before{content:""}.icon-Contactlist:before{content:""}.icon-Contest:before{content:""}.icon-Continuity:before{content:""}.icon-Cookie:before{content:""}.icon-Copy:before{content:""}.icon-Crash:before{content:""}.icon-Customer-Zone:before{content:""}.icon-Dance:before{content:""}.icon-Data:before{content:""}.icon-Deafpeople:before{content:""}.icon-Delivery:before{content:""}.icon-Desktop:before{content:""}.icon-Devices:before{content:""}.icon-Dial:before{content:""}.icon-Digital-media:before{content:""}.icon-Directassist:before{content:""}.icon-Download:before{content:""}.icon-Drag:before{content:""}.icon-E-carte-Facebook:before{content:""}.icon-Easy:before{content:""}.icon-Edit:before{content:""}.icon-Energy:before{content:""}.icon-Entertainment:before{content:""}.icon-Error-box:before{content:""}.icon-Eservices:before{content:""}.icon-Exhibition-screens:before{content:""}.icon-Expand:before{content:""}.icon-Eyedeficiency:before{content:""}.icon-Facebook:before{content:""}.icon-Family:before{content:""}.icon-Favourite:before{content:""}.icon-Favourite-unselected:before{content:""}.icon-Feedback:before{content:""}.icon-Fiber:before{content:""}.icon-Filter:before{content:""}.icon-Fixed-connection:before{content:""}.icon-Fixed-ringing:before{content:""}.icon-Flexibility:before{content:""}.icon-Flexible-delivery:before{content:""}.icon-Football:before{content:""}.icon-Football-11:before{content:""}.icon-Football-11plus:before{content:""}.icon-Forum:before{content:""}.icon-Forward:before{content:""}.icon-Freedelivery:before{content:""}.icon-Freeservices:before{content:""}.icon-Frequently-questions:before{content:""}.icon-Front-camera:before{content:""}.icon-G-Tablet:before{content:""}.icon-Gallery:before{content:""}.icon-Games:before{content:""}.icon-Gift:before{content:""}.icon-Government:before{content:""}.icon-Guitar:before{content:""}.icon-Handicap:before{content:""}.icon-Help:before{content:""}.icon-Home:before{content:""}.icon-Home-added-value:before{content:""}.icon-Hub:before{content:""}.icon-ICT:before{content:""}.icon-Icon-Mood-happy:before{content:""}.icon-Icon-Mood-neutral:before{content:""}.icon-Icon-Mood-unhappy:before{content:""}.icon-Ict-networking:before{content:""}.icon-Idea:before{content:""}.icon-Incomingcalls:before{content:""}.icon-Infinity:before{content:""}.icon-Information:before{content:""}.icon-Information-box:before{content:""}.icon-Infrastructure:before{content:""}.icon-Innovation:before{content:""}.icon-Inscription:before{content:""}.icon-Instagram:before{content:""}.icon-International:before{content:""}.icon-Internet:before{content:""}.icon-Internetlaptop:before{content:""}.icon-Internetmobile:before{content:""}.icon-Internettablet:before{content:""}.icon-Invoice-insight-advanced:before{content:""}.icon-Layer243:before{content:""}.icon-Linkedin:before{content:""}.icon-Links:before{content:""}.icon-Local-data:before{content:""}.icon-Location:before{content:""}.icon-Login1:before{content:""}.icon-Login2:before{content:""}.icon-LoginOpen:before{content:""}.icon-Logout:before{content:""}.icon-Low-stock:before{content:""}.icon-Magnify:before{content:""}.icon-Manual:before{content:""}.icon-Markets:before{content:""}.icon-Meeting:before{content:""}.icon-Mentaldeficiency:before{content:""}.icon-Menu:before{content:""}.icon-Menuburger:before{content:""}.icon-Messaging:before{content:""}.icon-Messenger:before{content:""}.icon-Micro:before{content:""}.icon-MicroSIM-card:before{content:""}.icon-Microsoft-Office:before{content:""}.icon-Minus-fill:before{content:""}.icon-Minutes120:before{content:""}.icon-Minutes15:before{content:""}.icon-Minutes1600:before{content:""}.icon-Minutes240:before{content:""}.icon-Minutes30:before{content:""}.icon-Minutes400:before{content:""}.icon-Minutes60:before{content:""}.icon-Minutes800:before{content:""}.icon-Mobile:before{content:""}.icon-Mobile-Coverage:before{content:""}.icon-Mobility-insurance:before{content:""}.icon-Monitoring:before{content:""}.icon-Mood-joy:before{content:""}.icon-Mood-very-bad:before{content:""}.icon-Move-Sticker:before{content:""}.icon-Move-box:before{content:""}.icon-Moving:before{content:""}.icon-Music:before{content:""}.icon-Myentertainment:before{content:""}.icon-Network:before{content:""}.icon-Newsletter:before{content:""}.icon-Next:before{content:""}.icon-No-playing:before{content:""}.icon-No-stock:before{content:""}.icon-Norton-security:before{content:""}.icon-Not-Available:before{content:""}.icon-Number-1:before{content:""}.icon-Number-10:before{content:""}.icon-Number-2:before{content:""}.icon-Number-3:before{content:""}.icon-Number-4:before{content:""}.icon-Number-5:before{content:""}.icon-Number-6:before{content:""}.icon-Number-7:before{content:""}.icon-Number-8:before{content:""}.icon-Number-9:before{content:""}.icon-OS:before{content:""}.icon-On-app:before{content:""}.icon-On-web:before{content:""}.icon-OneClick:before{content:""}.icon-Online-exclu-en:before{content:""}.icon-Online-exclu-fr:before{content:""}.icon-Online-exclu-nl:before{content:""}.icon-Online-promo-en:before{content:""}.icon-Online-promo-fr:before{content:""}.icon-Online-promo-nl:before{content:""}.icon-Options:before{content:""}.icon-Outcomingcalls:before{content:""}.icon-Overview:before{content:""}.icon-Packs:before{content:""}.icon-Paperclip:before{content:""}.icon-Pedestrian:before{content:""}.icon-Photo:before{content:""}.icon-Picture:before{content:""}.icon-Pin:before{content:""}.icon-Place-map:before{content:""}.icon-Play:before{content:""}.icon-Plus:before{content:""}.icon-Plus-fill:before{content:""}.icon-Points:before{content:""}.icon-Positioning:before{content:""}.icon-Posts:before{content:""}.icon-Presencehome:before{content:""}.icon-Previous:before{content:""}.icon-Prime:before{content:""}.icon-Print:before{content:""}.icon-Processor:before{content:""}.icon-Products:before{content:""}.icon-Promo:before{content:""}.icon-Proximus-TV-app:before{content:""}.icon-Pxs:before{content:""}.icon-Quote:before{content:""}.icon-Raccording-flat:before{content:""}.icon-Ready-to-use:before{content:""}.icon-Recycling:before{content:""}.icon-Reducer:before{content:""}.icon-Refresh:before{content:""}.icon-Relaunch:before{content:""}.icon-Reload:before{content:""}.icon-Remote:before{content:""}.icon-Remove:before{content:""}.icon-Remove-filter:before{content:""}.icon-Restart:before{content:""}.icon-Roaming:before{content:""}.icon-Roaming-Belgium:before{content:""}.icon-Search:before{content:""}.icon-Secure-payment:before{content:""}.icon-Seealso:before{content:""}.icon-Server:before{content:""}.icon-Settings:before{content:""}.icon-Shopmag:before{content:""}.icon-Smarphone-configuration:before{content:""}.icon-Smart-ringing:before{content:""}.icon-Smartphone:before{content:""}.icon-Smartphone-1:before{content:""}.icon-Smartphone-2:before{content:""}.icon-Smartphone-3:before{content:""}.icon-Smartphone-4:before{content:""}.icon-Smartphone-5:before{content:""}.icon-Smartphone-6:before{content:""}.icon-Smartphone4G:before{content:""}.icon-Smiley:before{content:""}.icon-Sms:before{content:""}.icon-Sondage:before{content:""}.icon-Sort-0-9:before{content:""}.icon-Sort-9-0:before{content:""}.icon-Sort-a-z:before{content:""}.icon-Sort-z-a:before{content:""}.icon-Sound-off:before{content:""}.icon-Sound-on:before{content:""}.icon-Speed:before{content:""}.icon-Speedtest-download:before{content:""}.icon-Speedtest-upload:before{content:""}.icon-Status-nok:before{content:""}.icon-Status-ok:before{content:""}.icon-Status-ongoing:before{content:""}.icon-Status-warning:before{content:""}.icon-Stay-informed:before{content:""}.icon-Stayinformed:before{content:""}.icon-Stock:before{content:""}.icon-Stopwatch:before{content:""}.icon-Subscription:before{content:""}.icon-Surfgsm:before{content:""}.icon-Sustainability:before{content:""}.icon-Switchon-switchoff:before{content:""}.icon-TV-replay-36:before{content:""}.icon-TVReplay:before{content:""}.icon-Tablet:before{content:""}.icon-Tailor:before{content:""}.icon-Target-Blank:before{content:""}.icon-Tarifs:before{content:""}.icon-Technical-cast:before{content:""}.icon-Telephony:before{content:""}.icon-Television:before{content:""}.icon-Temp:before{content:""}.icon-Tips1:before{content:""}.icon-Tips2:before{content:""}.icon-Tools:before{content:""}.icon-Top:before{content:""}.icon-Touchscreens:before{content:""}.icon-Tractor:before{content:""}.icon-Train:before{content:""}.icon-Transfer:before{content:""}.icon-Transfer-people:before{content:""}.icon-Trash:before{content:""}.icon-Triangle:before{content:""}.icon-TV-10:before{content:""}.icon-TV-12:before{content:""}.icon-TV-14:before{content:""}.icon-TV-16:before{content:""}.icon-TV-18:before{content:""}.icon-Twitter:before{content:""}.icon-Under-construct:before{content:""}.icon-Upgrade-account:before{content:""}.icon-Upload:before{content:""}.icon-Usage:before{content:""}.icon-Usage2:before{content:""}.icon-Validation-box:before{content:""}.icon-Video:before{content:""}.icon-Video-zap:before{content:""}.icon-Videoscope:before{content:""}.icon-View360:before{content:""}.icon-Waiting:before{content:""}.icon-Warning-box:before{content:""}.icon-Watch:before{content:""}.icon-Watch2:before{content:""}.icon-WhatsApp:before{content:""}.icon-Wireless-hub:before{content:""}.icon-Youtube:before{content:""}.icon-circular-economy:before{content:""}.icon-eco:before{content:""}.icon-happy-weeks:before{content:""}.icon-icon-VOD:before{content:""}.icon-mms:before{content:""}.icon-new-en:before{content:""}.icon-new-fr:before{content:""}.icon-new-nl:before{content:""}.icon-prepaid:before{content:""}.icon-promo:before{content:""}.icon-repair-device:before{content:""}.icon-sales-en:before{content:""}.icon-sales-fr:before{content:""}.icon-sales-nl:before{content:""}.icon-simlocked:before{content:""}.icon-temporary-device:before{content:""}.icon-Test-branding-Account-1:before{content:""}.icon-Test-branding-Car-1:before{content:""}.icon-Test-branding-Sim-1:before{content:""}';
1656
+ const styleSheet$9 = new CSSStyleSheet();
1657
+ styleSheet$9.replaceSync(styles$9);
1658
+ const colorValues$1 = ["", "default", "inherit", "primary", "body", "details", "hover", "active", "disabled", "promo", "success", "warning", "error", "unlimited"];
1659
+ const _Icon = class _Icon extends PxElement {
1660
+ constructor() {
1661
+ super(proximusSemanticStyleSheet, styleSheet$9);
1662
+ this.template = () => `<i aria-hidden="true"></i>`;
1663
+ this.shadowRoot.innerHTML = this.template();
1664
+ }
1665
+ static get observedAttributes() {
1666
+ return [...super.observedAttributes, "name", "size", "color", "aria-label", "inverted"];
1667
+ }
1668
+ get name() {
1669
+ return this.getAttribute("name");
1670
+ }
1671
+ set name(value) {
1672
+ this.setAttribute("name", value);
1673
+ }
1674
+ get size() {
1675
+ return this.getAttribute("size");
1676
+ }
1677
+ set size(value) {
1678
+ this.setAttribute("size", value);
1679
+ }
1680
+ get color() {
1681
+ return this.getAttribute("color");
1682
+ }
1683
+ set color(value) {
1684
+ this.setAttribute("color", value);
1685
+ }
1686
+ get arialabel() {
1687
+ return this.getAttribute("aria-label");
1688
+ }
1689
+ set arialabel(value) {
1690
+ this.setAttribute("aria-label", value);
1691
+ }
1692
+ get inverted() {
1693
+ return this.getAttribute("inverted");
1694
+ }
1695
+ set inverted(value) {
1696
+ this.setAttribute("inverted", value);
1697
+ }
1698
+ attributeChangedCallback(attrName, oldValue, newValue) {
1699
+ if (oldValue !== newValue) {
1700
+ switch (attrName) {
1701
+ case "name":
1702
+ if (oldValue !== null && oldValue !== "") {
1703
+ this.$el.classList.toggle(`icon-${oldValue}`);
1704
+ }
1705
+ if (newValue !== null && newValue !== "") {
1706
+ this.$el.classList.toggle(`icon-${newValue}`);
1707
+ }
1708
+ break;
1709
+ case "size":
1710
+ this.updateAttribute(attrName, oldValue, newValue, iconSizeValues);
1711
+ break;
1712
+ case "color":
1713
+ this.updateAttribute(attrName, oldValue, newValue, colorValues$1);
1714
+ break;
1715
+ case "aria-label":
1716
+ if (newValue !== null && newValue !== "") {
1717
+ this.$el.setAttribute("aria-label", newValue);
1718
+ this.$el.removeAttribute("aria-hidden");
1719
+ }
1720
+ break;
1721
+ }
1722
+ }
1723
+ }
1724
+ updateAttribute(attrName, oldValue, newValue, attrValues) {
1725
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1726
+ if (attrName === "size") {
1727
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
1728
+ } else {
1729
+ this.$el.classList.toggle(oldValue);
1730
+ }
1731
+ }
1732
+ if (newValue !== null && newValue !== "" && oldValue !== "default") {
1733
+ if (attrName === "size") {
1734
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
1735
+ } else {
1736
+ this.$el.classList.toggle(newValue);
1737
+ }
1738
+ }
1739
+ if (!this.checkName(attrValues, newValue)) {
1740
+ console.error(`${newValue} is not an allowed ${attrName} value for ${this.$el}`);
1741
+ }
1742
+ }
1743
+ checkName(values, value) {
1744
+ return values.includes(value);
1745
+ }
1746
+ };
1747
+ _Icon.nativeName = "i";
1748
+ let Icon = _Icon;
1749
+ customElements.define("px-icon", Icon);
1750
+ const imgCss = "img{display:inline-block;vertical-align:middle;max-width:100%;height:auto;border-style:none}@media only screen and (max-width: 40em){.mo,.m,.l{display:none}}@media only screen and (min-width: 40.0625em) and (max-width: 64em){.l{display:none}}@media only screen and (min-width: 40.0625em){.so{display:none}}@media only screen and (min-width: 64.0625em){.so,.mo{display:none}}";
1751
+ const styleSheet$8 = new CSSStyleSheet();
1752
+ styleSheet$8.replaceSync(imgCss);
1753
+ class AbstractImage extends PxElement {
1754
+ constructor() {
1755
+ super(styleSheet$8);
1756
+ }
1757
+ static get observedAttributes() {
1758
+ return [...super.observedAttributes, "showfor"];
1759
+ }
1760
+ get showfor() {
1761
+ return this.getAttribute("showfor");
1762
+ }
1763
+ set showfor(value) {
1764
+ this.setAttribute("showfor", value);
1765
+ }
1766
+ attributeChangedCallback(attrName, oldValue, newValue) {
1767
+ if (oldValue !== newValue) {
1768
+ switch (attrName) {
1769
+ case "showfor":
1770
+ this.updateShowFor(oldValue, newValue);
1771
+ break;
1772
+ default:
1773
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1774
+ break;
1775
+ }
1776
+ }
1777
+ }
1778
+ toggleClass(oldValue, newValue) {
1779
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1780
+ this.$el.classList.toggle(oldValue);
1781
+ }
1782
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
1783
+ this.$el.classList.toggle(newValue);
1784
+ }
1785
+ }
1786
+ checkName(value) {
1787
+ return ["", "s", "so", "mo", "m", "l"].includes(value);
1788
+ }
1789
+ updateShowFor(oldValue, newValue) {
1790
+ if (this.checkName(newValue)) {
1791
+ this.toggleClass(oldValue, newValue);
1792
+ } else {
1793
+ console.error(`Bad "showfor" value for`, this);
1794
+ }
1795
+ }
1796
+ }
1797
+ const _Image = class _Image extends AbstractImage {
1798
+ constructor() {
1799
+ super();
1800
+ const $root = document.createElement(this.nativeName);
1801
+ this.shadowRoot.appendChild($root);
1802
+ }
1803
+ };
1804
+ _Image.nativeName = "img";
1805
+ let Image = _Image;
1806
+ customElements.define("px-image", Image);
1807
+ const _Picture = class _Picture extends AbstractImage {
1808
+ constructor() {
1809
+ super();
1810
+ this.possibleImgExtension = ["webp", "svg", "apng", "png", "jpg", "jpeg", "jfif", "pjpeg", "pjp", "avif", "gif", "bmp", "ico", "cur", "tif", "tiff"];
1811
+ const $root = document.createElement(this.nativeName);
1812
+ this.shadowRoot.appendChild($root);
1813
+ }
1814
+ static get observedAttributes() {
1815
+ return [...super.observedAttributes, "loading", "alt", "src"];
1816
+ }
1817
+ get loading() {
1818
+ return this.getAttribute("loading");
1819
+ }
1820
+ set loading(value) {
1821
+ this.setAttribute("loading", value);
1822
+ }
1823
+ get alt() {
1824
+ return this.getAttribute("alt");
1825
+ }
1826
+ set alt(value) {
1827
+ this.setAttribute("alt", value);
1828
+ }
1829
+ get src() {
1830
+ return this.getAttribute("src");
1831
+ }
1832
+ set src(value) {
1833
+ this.setAttribute("src", value);
1834
+ }
1835
+ get $imgEl() {
1836
+ return this.shadowRoot.querySelector("img");
1837
+ }
1838
+ attributeChangedCallback(attrName, oldValue, newValue) {
1839
+ if (oldValue !== newValue) {
1840
+ switch (attrName) {
1841
+ case "src":
1842
+ this.addSrc(newValue, this.alt, this.loading);
1843
+ break;
1844
+ case "loading":
1845
+ this.updateLoading(newValue);
1846
+ break;
1847
+ case "alt":
1848
+ this.updateAlt(newValue);
1849
+ break;
1850
+ default:
1851
+ super.attributeChangedCallback(attrName, oldValue, newValue);
1852
+ break;
1853
+ }
1854
+ }
1855
+ }
1856
+ removeSrc() {
1857
+ this.$el.innerHTML = "";
1858
+ }
1859
+ async imgExists(imgUrl) {
1860
+ const response = await fetch(imgUrl, { method: "HEAD" }).catch((err) => console.log("Error:", err));
1861
+ return typeof response === "object" && response.ok && response.status != 404 && response.status != 403 && response.headers.get("Content-Type") != "text/html";
1862
+ }
1863
+ async transformImgPath(imgName, imgExtension, breakpoint) {
1864
+ let imgLang = "";
1865
+ if (imgName.endsWith("-en") || imgName.endsWith("-fr") || imgName.endsWith("-nl") || imgName.endsWith("-de")) {
1866
+ imgLang = imgName.slice(-3);
1867
+ imgName = imgName.slice(0, -3);
1868
+ }
1869
+ if (imgName.endsWith("-s") || imgName.endsWith("-m") || imgName.endsWith("-l")) {
1870
+ imgName = imgName.slice(0, -2);
1871
+ }
1872
+ let imgPath = `${imgName}${breakpoint}${imgLang}.${imgExtension}`;
1873
+ const imgOk = await this.imgExists(imgPath);
1874
+ if (!imgOk) {
1875
+ imgPath = "";
1876
+ }
1877
+ return imgPath;
1878
+ }
1879
+ addImg(imgPath, alt, loading) {
1880
+ const img = document.createElement("img");
1881
+ img.src = imgPath;
1882
+ img.alt = alt || "";
1883
+ if (loading && (loading === "lazy" || loading === "eager")) {
1884
+ img.loading = loading;
1885
+ }
1886
+ this.$el.appendChild(img);
1887
+ }
1888
+ addSrcset(imgPath, media) {
1889
+ if (imgPath !== "") {
1890
+ const source = document.createElement("source");
1891
+ source.media = media;
1892
+ source.srcset = imgPath;
1893
+ this.$el.insertBefore(source, this.$el.firstChild);
1894
+ }
1895
+ }
1896
+ async addSrc(value, alt, loading) {
1897
+ this.removeSrc();
1898
+ if (!value) {
1899
+ console.error('No "src" value for ', this);
1900
+ return;
1901
+ }
1902
+ const imgExtension = value.split(".").pop();
1903
+ if (!this.possibleImgExtension.includes(imgExtension)) {
1904
+ console.error('No extensions image to "src" value for ', this);
1905
+ return;
1906
+ }
1907
+ const imgName = value.slice(0, (imgExtension.length + 1) * -1);
1908
+ let imgPathS = value;
1909
+ const imgOk = await this.imgExists(imgPathS);
1910
+ if (!imgOk) {
1911
+ imgPathS = await this.transformImgPath(imgName, imgExtension, "-s");
1912
+ }
1913
+ if (imgPathS === "") {
1914
+ console.error('Bad "src" value for ', this);
1915
+ return;
1916
+ }
1917
+ const imgPathM = await this.transformImgPath(imgName, imgExtension, "-m");
1918
+ this.addSrcset(imgPathM, "only screen and (min-width: 40.0625em)");
1919
+ const imgPathL = await this.transformImgPath(imgName, imgExtension, "-l");
1920
+ this.addSrcset(imgPathL, "only screen and (min-width: 64.0625em)");
1921
+ this.addImg(imgPathS, alt, loading);
1922
+ }
1923
+ updateLoading(loading) {
1924
+ if (!this.$imgEl || !this.src) {
1925
+ return;
1926
+ }
1927
+ if (loading && (loading === "lazy" || loading === "eager")) {
1928
+ this.$imgEl.loading = loading;
1929
+ } else {
1930
+ this.$imgEl.removeAttribute("loading");
1931
+ }
1932
+ }
1933
+ updateAlt(alt) {
1934
+ if (!this.$imgEl || !this.src) {
1935
+ return;
1936
+ }
1937
+ this.$imgEl.alt = alt || "";
1938
+ }
1939
+ };
1940
+ _Picture.nativeName = "picture";
1941
+ let Picture = _Picture;
1942
+ customElements.define("px-picture", Picture);
1943
+ const styleSheet$7 = new CSSStyleSheet();
1944
+ styleSheet$7.replaceSync(styles$a);
1945
+ class Patch extends HTMLElement {
1946
+ constructor(semanticTokensStylesheet) {
1947
+ super();
1948
+ this.variantValues = ["", "default", "info", "black-friday", "eco", "greyed"];
1949
+ this.shapeValues = ["", "default", "bottom-right", "bottom-left"];
1950
+ this.attachShadow({ mode: "open" });
1951
+ this.shadowRoot.innerHTML = this.template();
1952
+ this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$7];
1953
+ }
1954
+ template() {
1955
+ return `
1956
+ <div class="patch">
1957
+ <slot></slot>
1958
+ </div>
1959
+ `;
1960
+ }
1961
+ static get observedAttributes() {
1962
+ return ["variant", "shape", "inverted"];
1963
+ }
1964
+ get $el() {
1965
+ return this.shadowRoot.querySelector(".patch");
1966
+ }
1967
+ get variant() {
1968
+ return this.getAttribute("variant");
1969
+ }
1970
+ set variant(value) {
1971
+ this.setAttribute("variant", value);
1972
+ }
1973
+ get shape() {
1974
+ return this.getAttribute("shape");
1975
+ }
1976
+ set shape(value) {
1977
+ this.setAttribute("shape", value);
1978
+ }
1979
+ get inverted() {
1980
+ return this.getAttribute("inverted");
1981
+ }
1982
+ set inverted(value) {
1983
+ this.setAttribute("inverted", value);
1984
+ }
1985
+ attributeChangedCallback(attrName, oldValue, newValue) {
1986
+ if (oldValue !== newValue) {
1987
+ switch (attrName) {
1988
+ case "variant":
1989
+ this.updateVariant(oldValue, newValue);
1990
+ break;
1991
+ case "shape":
1992
+ this.updateShape(oldValue, newValue);
1993
+ break;
1994
+ }
1995
+ }
1996
+ }
1997
+ _toggleClass(oldValue, newValue) {
1998
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
1999
+ this.$el.classList.toggle(oldValue);
2000
+ }
2001
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2002
+ this.$el.classList.toggle(newValue);
2003
+ }
2004
+ }
2005
+ checkName(values, value) {
2006
+ return values.includes(value);
2007
+ }
2008
+ updateVariant(oldValue, newValue) {
2009
+ this._toggleClass(oldValue, newValue);
2010
+ if (!this.checkName(this.variantValues, newValue)) {
2011
+ console.error(`Bad "variant" value for patch`);
2012
+ }
2013
+ }
2014
+ updateShape(oldValue, newValue) {
2015
+ this._toggleClass(oldValue, newValue);
2016
+ if (!this.checkName(this.shapeValues, newValue)) {
2017
+ console.error(`Bad "shape" value for patch`);
2018
+ }
2019
+ }
2020
+ }
2021
+ class ProximusPatch extends Patch {
2022
+ constructor() {
2023
+ super(proximusSemanticStyleSheet);
2024
+ }
2025
+ }
2026
+ customElements.define("px-patch", ProximusPatch);
2027
+ const css$1 = '.price{--price-s: var(--px-text-size-l-mobile);--price-m: var(--px-text-size-xl-mobile);--price-l: var(--px-text-size-3xl-mobile);font-family:Proximus,Verdana,Helvetica,sans-serif;white-space:nowrap;font-weight:700;color:var(--px-color-txt-primary-default);font-size:var(--price-s)}@media only screen and (min-width: 641px){.price{--price-s: var(--px-text-size-l-tablet);--price-m: var(--px-text-size-xl-tablet);--price-l: var(--px-text-size-3xl-tablet)}}@media only screen and (min-width: 1025px){.price{--price-s: var(--px-text-size-l-desktop);--price-m: var(--px-text-size-xl-desktop);--price-l: var(--px-text-size-3xl-desktop)}}.promo,.free{color:var(--px-color-txt-promo-default)}.neutral{color:var(--px-color-txt-body-default)}.exceeding{color:var(--px-color-txt-status-error-default)}.disabled{color:var(--px-color-txt-disabled-default)}::slotted(s){color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);font-weight:400}@media only screen and (min-width: 641px){{font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 1025px){{font-size:var(--px-text-size-base-desktop)}}:host([inverted]) .price{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .promo,:host([inverted]) .free{color:var(--px-color-txt-promo-inverted)}:host([inverted]) .neutral{color:var(--px-color-txt-body-inverted)}:host([inverted]) .exceeding{color:var(--px-color-txt-status-error-inverted)}:host([inverted]) .disabled{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) ::slotted(s){color:var(--px-color-txt-body-inverted)}.price:not(.promo):not(.free) ::slotted(s){display:none}::slotted(.euro){font-size:calc(var(--price-s) * .75)}::slotted(.decimals){font-size:calc(var(--price-s) * .5)}.m{font-size:var(--price-m)}:host([size="m"]) ::slotted(.decimals){font-size:calc(var(--price-m) * .5)}:host([size="m"]) ::slotted(.euro){font-size:calc(var(--price-m) * .75)}.l{font-size:var(--price-l)}:host([size="l"]) ::slotted(.decimals){font-size:calc(var(--price-l) * .5)}:host([size="l"]) ::slotted(.euro){font-size:calc(var(--price-l) * .75)}';
2028
+ const styles$8 = new CSSStyleSheet();
2029
+ styles$8.replaceSync(css$1);
2030
+ const variantValues$1 = ["default", "promo", "free", "neutral", "exceeding", "disabled"];
2031
+ const sizeValues$1 = ["", "s", "m", "l"];
2032
+ const _Price = class _Price extends PxElement {
2033
+ constructor() {
2034
+ super(proximusSemanticStyleSheet, styles$8);
2035
+ this.template = () => `<span class="price"><slot name="oldprice"></slot><slot></slot></span>`;
2036
+ this.shadowRoot.innerHTML = this.template();
2037
+ }
2038
+ static get observedAttributes() {
2039
+ return [...super.observedAttributes, "variant", "size", "inverted"];
2040
+ }
2041
+ get variant() {
2042
+ return this.getAttribute("variant");
2043
+ }
2044
+ set variant(value) {
2045
+ this.setAttribute("variant", value);
2046
+ }
2047
+ get size() {
2048
+ return this.getAttribute("size");
2049
+ }
2050
+ set size(value) {
2051
+ this.setAttribute("size", value);
2052
+ }
2053
+ get inverted() {
2054
+ return this.getAttribute("inverted");
2055
+ }
2056
+ set inverted(value) {
2057
+ this.setAttribute("inverted", value);
2058
+ }
2059
+ connectedCallback() {
2060
+ this.buildPrice();
2061
+ }
2062
+ attributeChangedCallback(attrName, oldValue, newValue) {
2063
+ if (oldValue !== newValue) {
2064
+ switch (attrName) {
2065
+ case "variant":
2066
+ this.updateAttribute(attrName, oldValue, newValue, variantValues$1);
2067
+ break;
2068
+ case "size":
2069
+ this.updateAttribute(attrName, oldValue, newValue, sizeValues$1);
2070
+ break;
2071
+ default:
2072
+ super.attributeChangedCallback(attrName, oldValue, newValue);
2073
+ break;
2074
+ }
2075
+ }
2076
+ }
2077
+ checkName(values, value) {
2078
+ return values.includes(value);
2079
+ }
2080
+ toggleClass(oldValue, newValue) {
2081
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2082
+ this.$el.classList.toggle(oldValue);
2083
+ }
2084
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2085
+ this.$el.classList.toggle(newValue);
2086
+ }
2087
+ }
2088
+ updateAttribute(attrName, oldValue, newValue, attrValues) {
2089
+ this.toggleClass(oldValue, newValue);
2090
+ if (!this.checkName(attrValues, newValue)) {
2091
+ console.error(`${newValue} is not an allowed ${attrName} value for ${this.$el}`);
2092
+ }
2093
+ }
2094
+ buildPrice() {
2095
+ let price = this.innerHTML.trim();
2096
+ const oldPrice = this.querySelector("s");
2097
+ let strikethroughPrice = "";
2098
+ if (oldPrice && oldPrice.innerText !== "") {
2099
+ oldPrice.innerText = "€" + oldPrice.innerText;
2100
+ price = oldPrice.nextSibling.textContent;
2101
+ strikethroughPrice = oldPrice.outerHTML + " ";
2102
+ } else if (oldPrice && oldPrice.innerText === "") {
2103
+ price = oldPrice.nextSibling.textContent;
2104
+ }
2105
+ const isNumeric = /^[\d|.|,]+/.test(price);
2106
+ let euro = "";
2107
+ if (isNumeric) {
2108
+ euro = '<span class="euro">€</span>';
2109
+ } else {
2110
+ euro = "";
2111
+ }
2112
+ const separator = price.charAt(price.length - 3);
2113
+ if (separator === "." || separator === ",") {
2114
+ const [nbrPart, decPart] = price.split(separator);
2115
+ this.innerHTML = `${strikethroughPrice}${euro}${nbrPart}<span class="decimals">${separator}${decPart}</span>`;
2116
+ } else {
2117
+ this.innerHTML = `${strikethroughPrice}${euro}${price}`;
2118
+ }
2119
+ }
2120
+ };
2121
+ _Price.nativeName = "span";
2122
+ let Price = _Price;
2123
+ customElements.define("px-price", Price);
2124
+ const css = ":host{box-sizing:border-box}.ribbon{font-family:Proximus,Verdana,Helvetica,sans-serif;font-weight:700;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);white-space:nowrap;text-align:left;color:var(--px-color-txt-body-inverted);background-color:var(--px-color-bg-container-rich-default);padding:var(--px-padding-xs) var(--px-padding-s);border-radius:var(--px-radius-s) var(--px-radius-s) 0 0}.ribbon,.ribbon *{box-sizing:border-box}@media only screen and (min-width: 768px){.ribbon{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 1025px){.ribbon{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}";
2125
+ const styles$7 = new CSSStyleSheet();
2126
+ styles$7.replaceSync(css);
2127
+ const _Ribbon = class _Ribbon extends PxElement {
2128
+ constructor() {
2129
+ super(proximusSemanticStyleSheet, styles$7);
2130
+ this.template = () => `<div class="ribbon"><slot></slot></div>`;
2131
+ this.shadowRoot.innerHTML = this.template();
2132
+ }
2133
+ };
2134
+ _Ribbon.nativeName = "div";
2135
+ let Ribbon = _Ribbon;
2136
+ customElements.define("px-ribbon", Ribbon);
2137
+ const styles$6 = "hr{--separator-size: 2px;clear:both;margin:0;border-width:var(--separator-size) 0 0;border-style:solid;border-color:var(--px-color-border-main-default)}.vertical{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}.none{--separator-size: 0}.s{--separator-size: 1px}.m{--separator-size: 2px}.l{--separator-size: 3px}.contrasted{border-color:var(--px-color-border-contrasted-default)}.action-hover{border-color:var(--px-color-border-action-hover-default)}.action-active{border-color:var(--px-color-border-action-active-default)}.none{border-color:var(--px-color-border-none-default)}.success{border-color:var(--px-color-border-success-default)}.error{border-color:var(--px-color-border-error-default)}.warning{border-color:var(--px-color-border-warning-default)}.unlimited{border-color:var(--px-color-border-unlimited-default)}:host([inverted]) hr{border-color:var(--px-color-border-main-inverted)}:host([inverted]) .contrasted{border-color:var(--px-color-border-contrasted-inverted)}:host([inverted]) .action-hover{border-color:var(--px-color-border-action-hover-inverted)}:host([inverted]) .action-active{border-color:var(--px-color-border-action-active-inverted)}:host([inverted]) .none{border-color:var(--px-color-border-none-inverted)}:host([inverted]) .success{border-color:var(--px-color-border-success-inverted)}:host([inverted]) .error{border-color:var(--px-color-border-error-inverted)}:host([inverted]) .warning{border-color:var(--px-color-border-warning-inverted)}:host([inverted]) .unlimited{border-color:var(--px-color-border-unlimited-inverted)}";
2138
+ const styleSheet$6 = new CSSStyleSheet();
2139
+ styleSheet$6.replaceSync(styles$6);
2140
+ const directionValues = ["", "default", "vertical"];
2141
+ const sizeValues = ["", "none", "s", "m", "l"];
2142
+ const colorValues = ["", "contrasted", "action-hover", "action-active", "none", "success", "error", "warning", "unlimited"];
2143
+ const _Separator = class _Separator extends PxElement {
2144
+ constructor() {
2145
+ super(proximusSemanticStyleSheet, styleSheet$6);
2146
+ const $root = document.createElement(this.nativeName);
2147
+ this.shadowRoot.appendChild($root);
2148
+ }
2149
+ static get observedAttributes() {
2150
+ return [...super.observedAttributes, "direction", "size", "color", "inverted"];
2151
+ }
2152
+ get direction() {
2153
+ return this.getAttribute("direction");
2154
+ }
2155
+ set direction(value) {
2156
+ this.setAttribute("direction", value);
2157
+ }
2158
+ get size() {
2159
+ return this.getAttribute("size");
2160
+ }
2161
+ set size(value) {
2162
+ this.setAttribute("size", value);
2163
+ }
2164
+ get color() {
2165
+ return this.getAttribute("color");
2166
+ }
2167
+ set color(value) {
2168
+ this.setAttribute("color", value);
2169
+ }
2170
+ get inverted() {
2171
+ return this.getAttribute("inverted");
2172
+ }
2173
+ set inverted(value) {
2174
+ this.setAttribute("inverted", value);
2175
+ }
2176
+ attributeChangedCallback(attrName, oldValue, newValue) {
2177
+ if (oldValue !== newValue) {
2178
+ switch (attrName) {
2179
+ case "direction":
2180
+ this.updateAttribute(attrName, oldValue, newValue, directionValues);
2181
+ break;
2182
+ case "size":
2183
+ this.updateAttribute(attrName, oldValue, newValue, sizeValues);
2184
+ break;
2185
+ case "color":
2186
+ this.updateAttribute(attrName, oldValue, newValue, colorValues);
2187
+ break;
2188
+ default:
2189
+ super.attributeChangedCallback(attrName, oldValue, newValue);
2190
+ break;
2191
+ }
2192
+ }
2193
+ }
2194
+ toggleClass(oldValue, newValue) {
2195
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2196
+ this.$el.classList.toggle(oldValue);
2197
+ }
2198
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2199
+ this.$el.classList.toggle(newValue);
2200
+ }
2201
+ }
2202
+ checkName(values, value) {
2203
+ return values.includes(value);
2204
+ }
2205
+ updateAttribute(attrName, oldValue, newValue, attrValue) {
2206
+ this.toggleClass(oldValue, newValue);
2207
+ if (!this.checkName(attrValue, newValue)) {
2208
+ console.error(`Bad "${attrName}" value for`, this.$el);
2209
+ }
2210
+ }
2211
+ };
2212
+ _Separator.nativeName = "hr";
2213
+ let Separator = _Separator;
2214
+ customElements.define("px-separator", Separator);
2215
+ const styles$5 = '.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:Proximus,Verdana,Helvetica,sans-serif;font-size:var(--px-text-size-s-mobile);line-height:var(--px-line-height-s-mobile);font-weight:400;gap:var(--px-spacing-text-to-icon-compact-horizontal);background-color:var(--px-color-bg-action-secondary-default);color:var(--px-color-txt-primary-default);padding:var(--px-padding-2xs) var(--px-padding-xs);border:var(--px-border-s) solid transparent;border-radius:var(--px-radius-s);--slotted-icon-size: var(--px-icon-size-xs-mobile)}.tag,.tag *{box-sizing:border-box}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-mobile);line-height:var(--px-icon-size-xs-mobile)}.light{background-color:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-body-default)}.outline{background-color:transparent;color:var(--px-color-txt-primary-default);border-color:var(--px-color-border-action-hover-default)}.pill{border-radius:var(--px-radius-pill)}:host([inverted]) .tag{background-color:var(--px-color-bg-action-secondary-inverted);color:var(--px-color-txt-primary-inverted)}:host([inverted]) .light{background-color:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-body-inverted)}:host([inverted]) .outline{background-color:transparent;color:var(--px-color-txt-primary-inverted);border-color:var(--px-color-border-action-hover-inverted)}@media only screen and (min-width: 64rem){.tag{font-size:var(--px-text-size-s-tablet);line-height:var(--px-line-height-s-tablet);--slotted-icon-size: var(--px-icon-size-xs-tablet)}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-tablet);line-height:var(--px-icon-size-xs-tablet)}}@media only screen and (min-width: 90rem){.tag{font-size:var(--px-text-size-s-desktop);line-height:var(--px-line-height-s-desktop);--slotted-icon-size: var(--px-icon-size-xs-desktop)}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-desktop);line-height:var(--px-icon-size-xs-desktop)}}';
2216
+ const styleSheet$5 = new CSSStyleSheet();
2217
+ styleSheet$5.replaceSync(styles$5);
2218
+ class Tag extends HTMLElement {
2219
+ constructor(semanticTokensStylesheet) {
2220
+ super();
2221
+ this.variantValues = ["", "default", "light", "outline"];
2222
+ this.shapeValues = ["", "default", "pill"];
2223
+ this.attachShadow({ mode: "open" });
2224
+ this.shadowRoot.innerHTML = this.template();
2225
+ this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$5];
2226
+ }
2227
+ template() {
2228
+ return `
2229
+ <div class="tag">
2230
+ <slot name="before"></slot>
2231
+ <slot></slot>
2232
+ </div>
2233
+ `;
2234
+ }
2235
+ static get observedAttributes() {
2236
+ return ["variant", "shape", "inverted"];
2237
+ }
2238
+ get $el() {
2239
+ return this.shadowRoot.querySelector(".tag");
2240
+ }
2241
+ get variant() {
2242
+ return this.getAttribute("variant");
2243
+ }
2244
+ set variant(value) {
2245
+ this.setAttribute("variant", value);
2246
+ }
2247
+ get shape() {
2248
+ return this.getAttribute("shape");
2249
+ }
2250
+ set shape(value) {
2251
+ this.setAttribute("shape", value);
2252
+ }
2253
+ get inverted() {
2254
+ return this.getAttribute("inverted");
2255
+ }
2256
+ set inverted(value) {
2257
+ this.setAttribute("inverted", value);
2258
+ }
2259
+ attributeChangedCallback(attrName, oldValue, newValue) {
2260
+ if (oldValue !== newValue) {
2261
+ switch (attrName) {
2262
+ case "variant":
2263
+ this.updateVariant(oldValue, newValue);
2264
+ break;
2265
+ case "shape":
2266
+ this.updateShape(oldValue, newValue);
2267
+ break;
2268
+ }
2269
+ }
2270
+ }
2271
+ _toggleClass(oldValue, newValue) {
2272
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2273
+ this.$el.classList.toggle(oldValue);
2274
+ }
2275
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2276
+ this.$el.classList.toggle(newValue);
2277
+ }
2278
+ }
2279
+ checkName(values, value) {
2280
+ return values.includes(value);
2281
+ }
2282
+ updateVariant(oldValue, newValue) {
2283
+ this._toggleClass(oldValue, newValue);
2284
+ if (!this.checkName(this.variantValues, newValue)) {
2285
+ console.error(`Bad "variant" value for tag`);
2286
+ }
2287
+ }
2288
+ updateShape(oldValue, newValue) {
2289
+ this._toggleClass(oldValue, newValue);
2290
+ if (!this.checkName(this.shapeValues, newValue)) {
2291
+ console.error(`Bad "shape" value for tag`);
2292
+ }
2293
+ }
2294
+ }
2295
+ class ProximusTag extends Tag {
2296
+ constructor() {
2297
+ super(proximusSemanticStyleSheet);
2298
+ }
2299
+ }
2300
+ customElements.define("px-tag", ProximusTag);
2301
+ const styles$4 = '*{font-family:Proximus,Verdana,Helvetica,sans-serif}#container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--px-spacing-component-default-vertical)}#panels{width:100%}div[role=tablist]{display:flex;align-items:center;scrollbar-width:none;overflow:scroll;width:80vw;box-sizing:border-box}div[role=tablist] ::slotted(px-tab){background-color:var(--px-color-bg-container-weak-default)}div[role=tablist] ::slotted(px-tab[inverted=""]){background-color:var(--px-color-bg-container-weak-inverted)}div[role=tablist] ::slotted(px-tab[selected=""]){background-color:var(--px-color-bg-action-active-default);padding-block:var(--px-padding-m);border-radius:var(--px-radius-s)!important}div[role=tablist] ::slotted(px-tab[selected=""][inverted=""]){background-color:var(--px-color-bg-action-active-inverted)}div[role=tablist] ::slotted(px-tab:first-child){border-radius:var(--px-radius-s) 0 0 var(--px-radius-s)}div[role=tablist] ::slotted(px-tab:last-of-type){border-radius:0 var(--px-radius-s) var(--px-radius-s) 0}div[role=tablist]::-webkit-scrollbar{display:none}button[role=tab]{background:none;border:none;padding:0;margin:0;cursor:pointer;height:inherit;width:inherit;padding:var(--px-padding-s);font-size:var(--px-text-size-base-mobile);font-weight:700;text-wrap:nowrap;color:var(--px-color-txt-body-default);outline:none}button[role=tab][inverted=""]{color:var(--px-color-txt-body-inverted)}@media screen and (min-width: 768px){button[role=tab]{font-size:var(--px-text-size-base-tablet)}}@media screen and (min-width: 1025px){button[role=tab]{font-size:var(--px-text-size-base-laptop)}}@media screen and (min-width: 1441px){button[role=tab]{font-size:var(--px-text-size-base-desktop)}}button[aria-selected=""]{padding-block:0;cursor:auto;color:var(--px-color-txt-primary-inverted)}button[aria-selected=""][inverted=""]{color:var(--px-color-txt-primary-default)}';
2302
+ const styleSheet$4 = new CSSStyleSheet();
2303
+ styleSheet$4.replaceSync(styles$4);
2304
+ class Tabs extends HTMLElement {
2305
+ constructor(semanticStyleSheet) {
2306
+ super();
2307
+ this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
2308
+ this.template = () => `
2309
+ <div id="container">
2310
+ <div role="tablist" aria-labelledby="${this._label}">
2311
+ <slot name="tabs"></slot>
2312
+ </div>
2313
+ <div id="panels">
2314
+ <slot name="tabpanels"></slot>
2315
+ </div>
2316
+ </div>
2317
+ `;
2318
+ this.attachShadow({ mode: "open" });
2319
+ if (this.getAttribute("label")) {
2320
+ this._label = this.getAttribute("label");
2321
+ }
2322
+ this.shadowRoot.innerHTML = this.template();
2323
+ this.shadowRoot.adoptedStyleSheets = [semanticStyleSheet, styleSheet$4];
2324
+ }
2325
+ static get observedAttributes() {
2326
+ return ["label", "inverted"];
2327
+ }
2328
+ attributeChangedCallback(name, oldValue, newValue) {
2329
+ if (name === "label") {
2330
+ this.label = newValue;
2331
+ }
2332
+ }
2333
+ connectedCallback() {
2334
+ this.addEventListener("click", (event) => {
2335
+ var _a;
2336
+ if ((_a = event.target.localName) == null ? void 0 : _a.endsWith("-tab")) {
2337
+ this.$activePanel.selected = false;
2338
+ this.$activeTab.selected = "false";
2339
+ const tab = event.target;
2340
+ if (tab) {
2341
+ tab.selected = "";
2342
+ }
2343
+ if (this.$activePanel) {
2344
+ this.$activePanel.selected = true;
2345
+ } else {
2346
+ console.error("No panel found for this tab");
2347
+ }
2348
+ }
2349
+ });
2350
+ this.addEventListener("keydown", (event) => {
2351
+ if (event.key === "ArrowRight" || event.key === "ArrowLeft") {
2352
+ const nextTab = this.$nextTab;
2353
+ const previousTab = this.$previousTab;
2354
+ this.$activePanel.selected = false;
2355
+ this.$activeTab.selected = "false";
2356
+ if (event.key === "ArrowRight") {
2357
+ nextTab.selected = "";
2358
+ } else if (event.key === "ArrowLeft") {
2359
+ previousTab.selected = "";
2360
+ }
2361
+ this.$activePanel.selected = true;
2362
+ }
2363
+ });
2364
+ }
2365
+ get $activeTab() {
2366
+ return this.querySelector('[selected=""][slot="tabs"]');
2367
+ }
2368
+ get $nextTab() {
2369
+ const nextTab = this.$activeTab.nextElementSibling;
2370
+ if (nextTab.slot !== "tabs") {
2371
+ return this.querySelector('[slot="tabs"]');
2372
+ } else {
2373
+ return nextTab;
2374
+ }
2375
+ }
2376
+ get $previousTab() {
2377
+ const previousTab = this.$activeTab.previousElementSibling;
2378
+ if (!previousTab) {
2379
+ return Array.from(this.querySelectorAll('[slot="tabs"]')).pop();
2380
+ } else {
2381
+ return previousTab;
2382
+ }
2383
+ }
2384
+ get $activePanel() {
2385
+ return this.querySelector(`[name="${this.$activeTab.for}"]`);
2386
+ }
2387
+ get $tabList() {
2388
+ return this.shadowRoot.querySelector('[role="tablist"]');
2389
+ }
2390
+ get label() {
2391
+ return this.$tabList.getAttribute("aria-labelledby");
2392
+ }
2393
+ set label(value) {
2394
+ this.$tabList.setAttribute("aria-labelledby", value);
2395
+ }
2396
+ get inverted() {
2397
+ return this.hasAttribute("inverted");
2398
+ }
2399
+ }
2400
+ class Tab extends HTMLElement {
2401
+ constructor(semanticStyleSheet) {
2402
+ super();
2403
+ this.template = (title, selected) => `
2404
+ <button role="tab" aria-selected="${selected}" type="button" tabindex="-1">
2405
+ <span><slot>${title}</slot></span>
2406
+ </button>
2407
+ `;
2408
+ this.attachShadow({ mode: "open" });
2409
+ this.shadowRoot.innerHTML = this.template(this.getAttribute("title"), this.getAttribute("selected"));
2410
+ this.shadowRoot.adoptedStyleSheets = [semanticStyleSheet, styleSheet$4];
2411
+ if (!this.name) {
2412
+ console.error("Tab needs a name attribute");
2413
+ }
2414
+ if (!this.for) {
2415
+ console.error("Tab needs a for attribute");
2416
+ }
2417
+ this.slot = "tabs";
2418
+ }
2419
+ static get observedAttributes() {
2420
+ return ["selected", "for", "name"];
2421
+ }
2422
+ connectedCallback() {
2423
+ if (this.parentElement.inverted) {
2424
+ this.setAttribute("inverted", "");
2425
+ this.$button.setAttribute("inverted", "");
2426
+ }
2427
+ }
2428
+ attributeChangedCallback(name, oldValue, newValue) {
2429
+ if (name === "selected") {
2430
+ this.handleSelected(newValue);
2431
+ } else if (name === "name") {
2432
+ this.$button.setAttribute("id", newValue);
2433
+ } else if (name === "for") {
2434
+ this.$button.setAttribute("aria-controls", newValue);
2435
+ }
2436
+ }
2437
+ get $button() {
2438
+ return this.shadowRoot.querySelector("button");
2439
+ }
2440
+ get selected() {
2441
+ return this.$button.getAttribute("aria-selected");
2442
+ }
2443
+ get inverted() {
2444
+ return this.hasAttribute("inverted");
2445
+ }
2446
+ set name(value) {
2447
+ this.setAttribute("name", value);
2448
+ }
2449
+ get name() {
2450
+ return this.getAttribute("name");
2451
+ }
2452
+ set for(value) {
2453
+ this.setAttribute("for", value);
2454
+ }
2455
+ get for() {
2456
+ return this.getAttribute("for");
2457
+ }
2458
+ handleSelected(value) {
2459
+ if (!isFalsy(value)) {
2460
+ this.$button.setAttribute("aria-selected", value);
2461
+ this.$button.removeAttribute("tabindex");
2462
+ this.$button.focus();
2463
+ } else {
2464
+ this.$button.removeAttribute("aria-selected");
2465
+ this.$button.tabIndex = -1;
2466
+ }
2467
+ }
2468
+ set selected(value) {
2469
+ this.setAttribute("selected", value);
2470
+ }
2471
+ }
2472
+ class TabPanel extends HTMLElement {
2473
+ constructor(semanticStyleSheet) {
2474
+ super();
2475
+ this.template = () => `
2476
+ <div role="tabpanel" aria-labelledby="${this.name}" tabindex="0">
2477
+ <slot></slot>
2478
+ </div>
2479
+ `;
2480
+ this.attachShadow({ mode: "open" });
2481
+ this.shadowRoot.innerHTML = this.template();
2482
+ this.shadowRoot.adoptedStyleSheets = [semanticStyleSheet, styleSheet$4];
2483
+ if (!this.name) {
2484
+ console.error("TabPanel needs a name attribute");
2485
+ }
2486
+ this.slot = "tabpanels";
2487
+ }
2488
+ static get observedAttributes() {
2489
+ return ["name"];
2490
+ }
2491
+ attributeChangedCallback(name, oldValue, newValue) {
2492
+ if (name === "name") {
2493
+ this.$panel.setAttribute("aria-labelledby", newValue);
2494
+ }
2495
+ }
2496
+ connectedCallback() {
2497
+ const labelledBy = this.parentElement.querySelector(`[for="${this.getAttribute("name")}"]`);
2498
+ if (labelledBy) {
2499
+ this.$panel.setAttribute("aria-labelledby", labelledBy.getAttribute("name"));
2500
+ } else {
2501
+ console.error("No tab found for this panel");
2502
+ }
2503
+ const selectedTab = this.parentElement.querySelector(`[for="${this.name}"]`);
2504
+ if (!isFalsy(selectedTab.selected)) {
2505
+ this.selected = true;
2506
+ } else {
2507
+ this.selected = false;
2508
+ }
2509
+ }
2510
+ get name() {
2511
+ return this.getAttribute("name");
2512
+ }
2513
+ set name(value) {
2514
+ this.setAttribute("name", value);
2515
+ }
2516
+ set selected(value) {
2517
+ if (value) {
2518
+ this.$panel.style.display = "block";
2519
+ } else {
2520
+ this.$panel.style.display = "none";
2521
+ }
2522
+ }
2523
+ get $panel() {
2524
+ return this.shadowRoot.querySelector('[role="tabpanel"]');
2525
+ }
2526
+ }
2527
+ class PxTabs extends Tabs {
2528
+ constructor() {
2529
+ super(proximusSemanticStyleSheet);
2530
+ this.querySelectorAll("px-tab").forEach((tab) => {
2531
+ tab.setAttribute("slot", "tabs");
2532
+ });
2533
+ }
2534
+ }
2535
+ if (!customElements.get("px-tabs")) {
2536
+ customElements.define("px-tabs", PxTabs);
2537
+ }
2538
+ class PxTab extends Tab {
2539
+ constructor() {
2540
+ super(proximusSemanticStyleSheet);
2541
+ }
2542
+ }
2543
+ if (!customElements.get("px-tab")) {
2544
+ customElements.define("px-tab", PxTab);
2545
+ }
2546
+ class PxTabPanel extends TabPanel {
2547
+ constructor() {
2548
+ super(proximusSemanticStyleSheet);
2549
+ }
2550
+ }
2551
+ if (!customElements.get("px-tab-panel")) {
2552
+ customElements.define("px-tab-panel", PxTabPanel);
2553
+ }
2554
+ const styles$3 = ".timeline{list-style:none;margin:0;padding:0}";
2555
+ const styleSheet$3 = new CSSStyleSheet();
2556
+ styleSheet$3.replaceSync(styles$3);
2557
+ class Timeline extends HTMLElement {
2558
+ template() {
2559
+ return `
2560
+ <ol class="timeline" role="list">
2561
+ <slot></slot>
2562
+ </ol>
2563
+ `;
2564
+ }
2565
+ constructor(semanticTokensStylesheet) {
2566
+ super();
2567
+ this.attachShadow({ mode: "open" });
2568
+ this.shadowRoot.innerHTML = this.template();
2569
+ this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$3];
2570
+ }
2571
+ static get observedAttributes() {
2572
+ return ["inverted"];
2573
+ }
2574
+ get $el() {
2575
+ return this.shadowRoot.querySelector(".timeline");
2576
+ }
2577
+ get $children() {
2578
+ return this.querySelectorAll("px-timeline-item");
2579
+ }
2580
+ get inverted() {
2581
+ return this.getAttribute("inverted");
2582
+ }
2583
+ set inverted(value) {
2584
+ this.setAttribute("inverted", value);
2585
+ }
2586
+ connectedCallback() {
2587
+ this.configureChildren();
2588
+ }
2589
+ attributeChangedCallback(attrName, oldValue, newValue) {
2590
+ if (oldValue !== newValue) {
2591
+ switch (attrName) {
2592
+ case "inverted":
2593
+ for (let i = 0; i < this.$children.length; i++) {
2594
+ this.$children[i].toggleAttribute("inverted");
2595
+ }
2596
+ break;
2597
+ }
2598
+ }
2599
+ }
2600
+ configureChildren() {
2601
+ const lastChild = this.$children[this.$children.length - 1];
2602
+ lastChild == null ? void 0 : lastChild.toggleAttribute("lastchild");
2603
+ for (let i = 0; i < this.$children.length; i++) {
2604
+ this.$children[i].setAttribute("item", `${i + 1}`);
2605
+ }
2606
+ }
2607
+ }
2608
+ class ProximusTimeline extends Timeline {
2609
+ constructor() {
2610
+ super(proximusSemanticStyleSheet);
2611
+ }
2612
+ }
2613
+ customElements.define("px-timeline", ProximusTimeline);
2614
+ const styles$2 = '.timeline-item{display:flex;gap:var(--px-spacing-text-to-icon-horizontal);font-family:Proximus,Verdana,Helvetica,sans-serif;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:700;font-size:var(--px-text-size-s-mobile);line-height:var(--px-line-height-s-mobile);color:var(--px-color-icon-body-default);border-radius:var(--px-radius-pill);background:var(--px-color-bg-container-strong-default)}.content-area{margin-bottom:var(--px-spacing-component-default-vertical)}.content-area ::slotted([slot="title"]){font-weight:700;color:var(--px-color-txt-body-default)}.content-area ::slotted([slot="content"]){font-weight:400;color:var(--px-color-txt-details-default);margin-top:var(--px-spacing-under-text-vertical)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator-area .indicator{color:var(--px-color-icon-body-inverted);background:var(--px-color-bg-container-strong-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-txt-body-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-txt-details-inverted)}@media only screen and (min-width: 64rem){.timeline-item{font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-s-tablet);line-height:var(--px-line-height-s-tablet)}}@media only screen and (min-width: 90rem){.timeline-item{font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-s-desktop);line-height:var(--px-line-height-s-desktop)}}';
2615
+ const styleSheet$2 = new CSSStyleSheet();
2616
+ styleSheet$2.replaceSync(styles$2);
2617
+ let item = "1";
2618
+ class TimelineItem extends HTMLElement {
2619
+ template() {
2620
+ return `
2621
+ <li class="timeline-item" role="listitem">
2622
+ <div class="indicator-area">
2623
+ <div class="indicator"></div>
2624
+ </div>
2625
+ <div class="content-area">
2626
+ <slot name="title"></slot>
2627
+ <slot name="content"></slot>
2628
+ </div>
2629
+ </li>
2630
+ `;
2631
+ }
2632
+ constructor(semanticTokensStylesheet) {
2633
+ super();
2634
+ this.attachShadow({ mode: "open" });
2635
+ this.shadowRoot.innerHTML = this.template();
2636
+ this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$2];
2637
+ }
2638
+ static get observedAttributes() {
2639
+ return ["inverted", "lastchild", "item"];
2640
+ }
2641
+ get $el() {
2642
+ return this.shadowRoot.querySelector(".timeline-item");
2643
+ }
2644
+ get inverted() {
2645
+ return this.getAttribute("inverted");
2646
+ }
2647
+ set inverted(value) {
2648
+ this.setAttribute("inverted", value);
2649
+ }
2650
+ get lastchild() {
2651
+ return this.getAttribute("lastchild");
2652
+ }
2653
+ set lastchild(value) {
2654
+ this.setAttribute("lastchild", value);
2655
+ }
2656
+ get item() {
2657
+ return this.getAttribute("item");
2658
+ }
2659
+ set item(value) {
2660
+ this.setAttribute("item", value);
2661
+ }
2662
+ attributeChangedCallback(attrName, oldValue, newValue) {
2663
+ if (oldValue !== newValue) {
2664
+ switch (attrName) {
2665
+ case "item":
2666
+ this.updateItem(oldValue, newValue);
2667
+ this.updateIndicator(item);
2668
+ break;
2669
+ }
2670
+ }
2671
+ }
2672
+ updateItem(oldValue, newValue) {
2673
+ if (oldValue !== null && oldValue !== "") {
2674
+ item = oldValue;
2675
+ }
2676
+ if (newValue !== null && newValue !== "") {
2677
+ item = newValue;
2678
+ }
2679
+ }
2680
+ updateIndicator(item2) {
2681
+ const indicator = this.$el.querySelector(".indicator");
2682
+ indicator.innerHTML = item2;
2683
+ }
2684
+ }
2685
+ class ProximusTimelineItem extends TimelineItem {
2686
+ constructor() {
2687
+ super(proximusSemanticStyleSheet);
2688
+ }
2689
+ }
2690
+ customElements.define("px-timeline-item", ProximusTimelineItem);
2691
+ const styles$1 = "px-container{width:1000px;display:block;border:0;border-radius:var(--px-radius-s)}@media screen and (max-width: 1025px){px-container{width:700px}}@media screen and (max-width: 640px){px-container{width:295px}}";
2692
+ const lightStyles$1 = ".lavender-blurred-modal-background{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000c;z-index:999;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}";
2693
+ const styleSheet$1 = new CSSStyleSheet();
2694
+ styleSheet$1.replaceSync(styles$1);
2695
+ addGlobalStylesheet(lightStyles$1);
2696
+ class Modal extends HTMLElement {
2697
+ constructor() {
2698
+ super();
2699
+ this.open = false;
2700
+ this.template = `<px-container padding="m" popover> <!-- adding popver here is the only way to style of the modal -->
2701
+ <px-stack gap="component-default-vertical" direction="column">
2702
+ <px-stack direction="column" gap="under-text-vertical">
2703
+ <slot name="title"></slot>
2704
+ <slot name="description"></slot>
2705
+ </px-stack>
2706
+ <slot></slot>
2707
+ <px-separator size="l"></px-separator>
2708
+ <px-stack gap="component-compact-horizontal" justify-content="end">
2709
+ <slot name="footer"></slot>
2710
+ </px-stack>
2711
+ </px-stack>
2712
+ </px-container>`;
2713
+ this.attachShadow({ mode: "open" });
2714
+ this.shadowRoot.innerHTML = this.template;
2715
+ this.shadowRoot.adoptedStyleSheets = [proximusSemanticStyleSheet, styleSheet$1];
2716
+ }
2717
+ connectedCallback() {
2718
+ var _a;
2719
+ const targetButtonList = document.querySelectorAll(`px-button[popovertarget="${this.getAttribute("id")}"]`);
2720
+ targetButtonList.forEach((targetButton) => {
2721
+ targetButton.onclick = (event) => {
2722
+ var _a2;
2723
+ (_a2 = this.showPopover) == null ? void 0 : _a2.call(this);
2724
+ this.open = true;
2725
+ this.displayBlurredBackground();
2726
+ event.stopPropagation();
2727
+ };
2728
+ });
2729
+ const ctas = this.querySelectorAll('px-button[slot="footer"]');
2730
+ ctas.forEach((cta) => {
2731
+ cta.onclick = () => {
2732
+ this._hidePopover();
2733
+ };
2734
+ });
2735
+ if (this.autoShow != null) {
2736
+ (_a = this.showPopover) == null ? void 0 : _a.call(this);
2737
+ this.open = true;
2738
+ this.displayBlurredBackground();
2739
+ }
2740
+ }
2741
+ displayBlurredBackground() {
2742
+ this.blurredBackground = document.createElement("div");
2743
+ this.blurredBackground.id = "popover-background";
2744
+ this.blurredBackground.classList.toggle("lavender-blurred-modal-background");
2745
+ this.blurredBackground.addEventListener("click", (event) => {
2746
+ if (this.open && !this.contains(event.target)) {
2747
+ this._hidePopover();
2748
+ }
2749
+ });
2750
+ document.body.appendChild(this.blurredBackground);
2751
+ }
2752
+ _hidePopover() {
2753
+ var _a;
2754
+ this.blurredBackground.parentElement.removeChild(this.blurredBackground);
2755
+ (_a = this.hidePopover) == null ? void 0 : _a.call(this);
2756
+ this.open = false;
2757
+ }
2758
+ get autoShow() {
2759
+ return this.getAttribute("autoshow");
2760
+ }
2761
+ }
2762
+ if (!customElements.get("px-modal")) {
2763
+ customElements.define("px-modal", Modal);
2764
+ }
2765
+ const spanCss = "span,::slotted(span){font-family:Proximus,Verdana,Helvetica,sans-serif;color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile)}:host([inverted]) span,:host([inverted]) ::slotted(span){color:var(--px-color-txt-body-inverted)}span.link{text-decoration:underline}@media only screen and (min-width: 64rem){span,::slotted(span){font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 90rem){span,::slotted(span){font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}";
2766
+ const spanStyles$1 = new CSSStyleSheet();
2767
+ const typographyStyles$3 = new CSSStyleSheet();
2768
+ spanStyles$1.replaceSync(spanCss);
2769
+ typographyStyles$3.replaceSync(typographyCss$1);
2770
+ const _Span = class _Span extends PxElement {
2771
+ constructor() {
2772
+ super(proximusSemanticStyleSheet, spanStyles$1, typographyStyles$3);
2773
+ this.template = () => `<span>
2774
+ <slot name="before"></slot>
2775
+ <slot></slot>
2776
+ <slot name="after"></slot>
2777
+ </span>`;
2778
+ this.shadowRoot.innerHTML = this.template();
2779
+ }
2780
+ static get observedAttributes() {
2781
+ return [...super.observedAttributes, "color", "fontsize", "fontweight", "inverted"];
2782
+ }
2783
+ get color() {
2784
+ return this.getAttribute("color");
2785
+ }
2786
+ set color(value) {
2787
+ this.setAttribute("color", value);
2788
+ }
2789
+ get fontsize() {
2790
+ return this.getAttribute("fontsize");
2791
+ }
2792
+ set fontsize(value) {
2793
+ this.setAttribute("fontsize", value);
2794
+ }
2795
+ get fontweight() {
2796
+ return this.getAttribute("fontweight");
2797
+ }
2798
+ set fontweight(value) {
2799
+ this.setAttribute("fontweight", value);
2800
+ }
2801
+ get inverted() {
2802
+ return this.getAttribute("inverted");
2803
+ }
2804
+ set inverted(value) {
2805
+ if (isFalsy(value)) {
2806
+ this.removeAttribute("inverted");
2807
+ } else {
2808
+ this.setAttribute("inverted", value);
2809
+ }
2810
+ }
2811
+ attributeChangedCallback(attrName, oldValue, newValue) {
2812
+ if (oldValue !== newValue) {
2813
+ switch (attrName) {
2814
+ case "color":
2815
+ this.updateTypography(attrName, oldValue, newValue, colorValues$2);
2816
+ break;
2817
+ case "fontsize":
2818
+ this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
2819
+ break;
2820
+ case "fontweight":
2821
+ this.updateTypography(attrName, oldValue, newValue, fontweightValues);
2822
+ break;
2823
+ default:
2824
+ super.attributeChangedCallback(attrName, oldValue, newValue);
2825
+ break;
2826
+ }
2827
+ }
2828
+ }
2829
+ checkName(values, value) {
2830
+ return values.includes(value);
2831
+ }
2832
+ updateTypography(attrName, oldValue, newValue, attrValue) {
2833
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2834
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
2835
+ }
2836
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2837
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
2838
+ }
2839
+ if (!this.checkName(attrValue, newValue)) {
2840
+ console.error(`Bad ${attrName} value for ${this.$el}`);
2841
+ }
2842
+ }
2843
+ };
2844
+ _Span.nativeName = "span";
2845
+ let Span = _Span;
2846
+ customElements.define("px-span", Span);
2847
+ const linkStyles$1 = new CSSStyleSheet();
2848
+ const buttonStyles = new CSSStyleSheet();
2849
+ const typographyStyles$2 = new CSSStyleSheet();
2850
+ linkStyles$1.replaceSync(linkCss);
2851
+ buttonStyles.replaceSync(buttonCss);
2852
+ typographyStyles$2.replaceSync(typographyCss$1);
2853
+ const _Link = class _Link extends PxElement {
2854
+ constructor(semanticTokensStylesheet) {
2855
+ super(semanticTokensStylesheet, linkStyles$1, buttonStyles, typographyStyles$2);
2856
+ this.variantValues = ["link", "no-style", "skip-link", "btn-default", "btn-secondary", "btn-tertiary"];
2857
+ this.shapeValues = ["", "default", "alternative"];
2858
+ this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
2859
+ const $root = document.createElement(this.nativeName);
2860
+ $root.innerHTML = this.template();
2861
+ this.shadowRoot.appendChild($root);
2862
+ }
2863
+ static get observedAttributes() {
2864
+ return [...super.observedAttributes, "disabled", "variant", "shape", "extended", "inverted", "fontsize", "color", "fontweight"];
2865
+ }
2866
+ get disabled() {
2867
+ return this.getAttribute("disabled");
2868
+ }
2869
+ set disabled(value) {
2870
+ this.setAttribute("disabled", value);
2871
+ }
2872
+ get variant() {
2873
+ return this.getAttribute("variant");
2874
+ }
2875
+ set variant(value) {
2876
+ this.setAttribute("variant", value);
2877
+ }
2878
+ get shape() {
2879
+ return this.getAttribute("shape");
2880
+ }
2881
+ set shape(value) {
2882
+ this.setAttribute("shape", value);
2883
+ }
2884
+ get extended() {
2885
+ return this.getAttribute("extended");
2886
+ }
2887
+ set extended(value) {
2888
+ this.setAttribute("extended", value);
2889
+ }
2890
+ get inverted() {
2891
+ return this.getAttribute("inverted");
2892
+ }
2893
+ set inverted(value) {
2894
+ this.setAttribute("inverted", value);
2895
+ }
2896
+ get fontsize() {
2897
+ return this.getAttribute("fontsize");
2898
+ }
2899
+ set fontsize(value) {
2900
+ this.setAttribute("fontsize", value);
2901
+ }
2902
+ get color() {
2903
+ return this.getAttribute("color");
2904
+ }
2905
+ set color(value) {
2906
+ this.setAttribute("color", value);
2907
+ }
2908
+ get fontweight() {
2909
+ return this.getAttribute("fontweight");
2910
+ }
2911
+ set fontweight(value) {
2912
+ this.setAttribute("fontweight", value);
2913
+ }
2914
+ attributeChangedCallback(attrName, oldValue, newValue) {
2915
+ if (oldValue !== newValue) {
2916
+ switch (attrName) {
2917
+ case "disabled":
2918
+ this.$el.toggleAttribute("aria-disabled");
2919
+ if (newValue !== null) {
2920
+ this.$el.setAttribute("aria-disabled", "true");
2921
+ }
2922
+ break;
2923
+ case "variant":
2924
+ this.updateVariant(oldValue, newValue);
2925
+ break;
2926
+ case "shape":
2927
+ this.updateShape(oldValue, newValue);
2928
+ break;
2929
+ case "extended":
2930
+ this.$el.classList.toggle(attrName);
2931
+ break;
2932
+ case "fontsize":
2933
+ this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
2934
+ break;
2935
+ case "color":
2936
+ this.updateTypography(attrName, oldValue, newValue, colorValues$2);
2937
+ break;
2938
+ case "fontweight":
2939
+ this.updateTypography(attrName, oldValue, newValue, fontweightValues);
2940
+ break;
2941
+ default:
2942
+ super.attributeChangedCallback(attrName, oldValue, newValue);
2943
+ break;
2944
+ }
2945
+ }
2946
+ }
2947
+ checkName(values, value) {
2948
+ return values.includes(value);
2949
+ }
2950
+ _toggleClassList(value) {
2951
+ if (value.startsWith("btn-")) {
2952
+ const splittedValue = value.split("-");
2953
+ for (const classVar of splittedValue) {
2954
+ this.$el.classList.toggle(classVar);
2955
+ }
2956
+ } else {
2957
+ this.$el.classList.toggle(value);
2958
+ }
2959
+ }
2960
+ updateVariant(oldValue, newValue) {
2961
+ if (oldValue !== null && oldValue !== "" && oldValue !== "link") {
2962
+ this._toggleClassList(oldValue);
2963
+ }
2964
+ if (newValue !== null && newValue !== "" && newValue !== "link") {
2965
+ this._toggleClassList(newValue);
2966
+ }
2967
+ if (!this.checkName(this.variantValues, newValue)) {
2968
+ console.error(`Bad "variant" value for ${this.$el}`);
2969
+ }
2970
+ }
2971
+ updateShape(oldValue, newValue) {
2972
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2973
+ this._toggleClassList(oldValue);
2974
+ }
2975
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2976
+ this._toggleClassList(newValue);
2977
+ }
2978
+ if (!this.checkName(this.shapeValues, newValue)) {
2979
+ console.error(`Bad "shape" value for ${this.$el}`);
2980
+ }
2981
+ }
2982
+ updateTypography(attrName, oldValue, newValue, attrValue) {
2983
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
2984
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
2985
+ }
2986
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
2987
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
2988
+ }
2989
+ if (!this.checkName(attrValue, newValue)) {
2990
+ console.error(`Bad ${attrName} value for ${this.$el}`);
2991
+ }
2992
+ }
2993
+ };
2994
+ _Link.nativeName = "a";
2995
+ let Link = _Link;
2996
+ class ProximusLink extends Link {
2997
+ constructor() {
2998
+ super(proximusSemanticStyleSheet);
2999
+ }
3000
+ }
3001
+ customElements.define("px-a", ProximusLink);
3002
+ const paragraphCss = "p,::slotted(p){font-family:Proximus,Verdana,Helvetica,sans-serif;color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);margin:0}.textalign-left{text-align:left}.textalign-center{text-align:center}.textalign-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-txt-body-inverted)}@media only screen and (min-width: 64rem){p,::slotted(p){font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 90rem){p,::slotted(p){font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}";
3003
+ const paragraphStyles$1 = new CSSStyleSheet();
3004
+ const typographyStyles$1 = new CSSStyleSheet();
3005
+ const headingStyles$1 = new CSSStyleSheet();
3006
+ paragraphStyles$1.replaceSync(paragraphCss);
3007
+ typographyStyles$1.replaceSync(typographyCss$1);
3008
+ headingStyles$1.replaceSync(headingCss);
3009
+ const variantValues = ["", "default", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle"];
3010
+ const textalignValues = ["", "default", "left", "center", "right"];
3011
+ const _Paragraph = class _Paragraph extends PxElement {
3012
+ constructor() {
3013
+ super(proximusSemanticStyleSheet, paragraphStyles$1, typographyStyles$1, headingStyles$1);
3014
+ this.template = () => `<p><slot></slot></p>`;
3015
+ this.shadowRoot.innerHTML = this.template();
3016
+ }
3017
+ static get observedAttributes() {
3018
+ return [...super.observedAttributes, "variant", "color", "fontsize", "fontweight", "textalign", "inverted"];
3019
+ }
3020
+ get variant() {
3021
+ return this.getAttribute("variant");
3022
+ }
3023
+ set variant(value) {
3024
+ this.setAttribute("variant", value);
3025
+ }
3026
+ get color() {
3027
+ return this.getAttribute("color");
3028
+ }
3029
+ set color(value) {
3030
+ this.setAttribute("color", value);
3031
+ }
3032
+ get fontsize() {
3033
+ return this.getAttribute("fontsize");
3034
+ }
3035
+ set fontsize(value) {
3036
+ this.setAttribute("fontsize", value);
3037
+ }
3038
+ get fontweight() {
3039
+ return this.getAttribute("fontweight");
3040
+ }
3041
+ set fontweight(value) {
3042
+ this.setAttribute("fontweight", value);
3043
+ }
3044
+ get textalign() {
3045
+ return this.getAttribute("textalign");
3046
+ }
3047
+ set textalign(value) {
3048
+ this.setAttribute("textalign", value);
3049
+ }
3050
+ get inverted() {
3051
+ return this.getAttribute("inverted");
3052
+ }
3053
+ set inverted(value) {
3054
+ this.setAttribute("inverted", value);
3055
+ }
3056
+ attributeChangedCallback(attrName, oldValue, newValue) {
3057
+ if (oldValue !== newValue) {
3058
+ switch (attrName) {
3059
+ case "variant":
3060
+ this.updateAttribute(attrName, oldValue, newValue, variantValues);
3061
+ break;
3062
+ case "color":
3063
+ this.updateTypography(attrName, oldValue, newValue, colorValues$2);
3064
+ break;
3065
+ case "fontsize":
3066
+ this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
3067
+ break;
3068
+ case "fontweight":
3069
+ this.updateTypography(attrName, oldValue, newValue, fontweightValues);
3070
+ break;
3071
+ case "textalign":
3072
+ this.updateTypography(attrName, oldValue, newValue, textalignValues);
3073
+ break;
3074
+ default:
3075
+ super.attributeChangedCallback(attrName, oldValue, newValue);
3076
+ break;
3077
+ }
3078
+ }
3079
+ }
3080
+ toggleClass(oldValue, newValue) {
3081
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
3082
+ this.$el.classList.toggle(oldValue);
3083
+ }
3084
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
3085
+ this.$el.classList.toggle(newValue);
3086
+ }
3087
+ }
3088
+ checkName(values, value) {
3089
+ return values.includes(value);
3090
+ }
3091
+ updateAttribute(attrName, oldValue, newValue, attrValue) {
3092
+ this.toggleClass(oldValue, newValue);
3093
+ if (!this.checkName(attrValue, newValue)) {
3094
+ console.error(`Bad ${attrName} value for ${this.$el}`);
3095
+ }
3096
+ }
3097
+ updateTypography(attrName, oldValue, newValue, attrValue) {
3098
+ if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
3099
+ this.$el.classList.toggle(`${attrName}-${oldValue}`);
3100
+ }
3101
+ if (newValue !== null && newValue !== "" && newValue !== "default") {
3102
+ this.$el.classList.toggle(`${attrName}-${newValue}`);
3103
+ }
3104
+ if (!this.checkName(attrValue, newValue)) {
3105
+ console.error(`Bad ${attrName} value for ${this.$el}`);
3106
+ }
3107
+ }
3108
+ };
3109
+ _Paragraph.nativeName = "p";
3110
+ let Paragraph = _Paragraph;
3111
+ customElements.define("px-p", Paragraph);
3112
+ const styles = "div{--px-heading-margin-title: 0 0 15px 0}";
3113
+ const styleSheet = new CSSStyleSheet();
3114
+ styleSheet.replaceSync(styles);
3115
+ class HeadingGroup extends HTMLElement {
3116
+ template() {
3117
+ return `
3118
+ <div>
3119
+ <slot></slot>
3120
+ </div>
3121
+ `;
3122
+ }
3123
+ constructor() {
3124
+ super();
3125
+ this.attachShadow({ mode: "open" });
3126
+ this.shadowRoot.innerHTML = this.template();
3127
+ this.shadowRoot.adoptedStyleSheets = [styleSheet];
3128
+ }
3129
+ get $el() {
3130
+ return this.shadowRoot.querySelector("div");
3131
+ }
3132
+ }
3133
+ customElements.define("px-heading-group", HeadingGroup);
3134
+ const typographyCss = ":host{font-family:Proximus,Verdana,Helvetica,sans-serif}::slotted(ul),::slotted(ol){margin:0 0 0 var(--px-spacing-component-default-horizontal);padding:0}::slotted(b),::slotted(strong){font-weight:700}:host([inverted]) slot{color:var(--px-color-txt-body-inverted)}";
3135
+ const lightStyles = ".li{padding-bottom:var(--px-padding-xs)}";
3136
+ const typographyStyles = new CSSStyleSheet();
3137
+ const headingStyles = new CSSStyleSheet();
3138
+ const linkStyles = new CSSStyleSheet();
3139
+ const paragraphStyles = new CSSStyleSheet();
3140
+ const spanStyles = new CSSStyleSheet();
3141
+ typographyStyles.replaceSync(typographyCss);
3142
+ headingStyles.replaceSync(headingCss);
3143
+ linkStyles.replaceSync(linkCss);
3144
+ paragraphStyles.replaceSync(paragraphCss);
3145
+ spanStyles.replaceSync(spanCss);
3146
+ addGlobalStylesheet(lightStyles);
3147
+ class Typography extends HTMLElement {
3148
+ constructor() {
3149
+ super();
3150
+ this.template = () => `<slot></slot>`;
3151
+ this.attachShadow({ mode: "open" });
3152
+ this.shadowRoot.innerHTML = this.template();
3153
+ this.shadowRoot.adoptedStyleSheets = [proximusSemanticStyleSheet, typographyStyles, headingStyles, linkStyles, paragraphStyles, spanStyles];
3154
+ }
3155
+ static get observedAttributes() {
3156
+ return ["inverted"];
3157
+ }
3158
+ get inverted() {
3159
+ return this.getAttribute("inverted");
3160
+ }
3161
+ set inverted(value) {
3162
+ this.setAttribute("inverted", value);
3163
+ }
3164
+ connectedCallback() {
3165
+ this.querySelectorAll("li").forEach((li) => {
3166
+ li.classList.add("li");
3167
+ });
3168
+ }
3169
+ }
3170
+ customElements.define("px-typography", Typography);
3171
+ export {
3172
+ Accordion,
3173
+ Container,
3174
+ H1,
3175
+ H2,
3176
+ H3,
3177
+ H4,
3178
+ H5,
3179
+ H6,
3180
+ HStack,
3181
+ HeadingGroup,
3182
+ Icon,
3183
+ Image,
3184
+ Modal,
3185
+ Page,
3186
+ Paragraph,
3187
+ Picture,
3188
+ Price,
3189
+ ProximusButton,
3190
+ ProximusLink,
3191
+ ProximusPatch,
3192
+ ProximusTag,
3193
+ ProximusTimeline,
3194
+ ProximusTimelineItem,
3195
+ PxElement,
3196
+ PxStack,
3197
+ PxTab,
3198
+ PxTabPanel,
3199
+ PxTabs,
3200
+ Ribbon,
3201
+ Section,
3202
+ Separator,
3203
+ Spacer,
3204
+ Span,
3205
+ Stack,
3206
+ Typography,
3207
+ VStack,
3208
+ WithFlexAttributes,
3209
+ addGlobalStylesheet,
3210
+ bgColorValues,
3211
+ borderRadiusValues,
3212
+ borderValues,
3213
+ colorValues$2 as colorValues,
3214
+ fontsizeValues,
3215
+ fontweightValues,
3216
+ gapValues,
3217
+ getSupportedAttributeNames,
3218
+ getViewportFormat,
3219
+ gradientValues,
3220
+ iconSizeValues,
3221
+ isFalsy,
3222
+ paddingValues,
3223
+ proximusSemanticStyleSheet,
3224
+ shadowValues
3225
+ };