@proximus/lavender-header 1.0.0-alpha.3 → 1.0.0-alpha.30

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,3949 @@
1
+ var Ct = (i) => {
2
+ throw TypeError(i);
3
+ };
4
+ var J = (i, t, e) => t.has(i) || Ct("Cannot " + e);
5
+ var d = (i, t, e) => (J(i, t, "read from private field"), e ? e.call(i) : t.get(i)), h = (i, t, e) => t.has(i) ? Ct("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), D = (i, t, e, r) => (J(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e), p = (i, t, e) => (J(i, t, "access private method"), e);
6
+ import { PxElement as u, cssTokenBreakpoints as f, paddingValues as x, boxShadowValues as me, backgroundSizeValues as ke, noBorderRadiusValues as Ae, borderRadiusValues as ye, borderSideValues as $e, borderValues as Ce, gradientValues as we, backgroundColorValues as Lt, borderColorValues as Se, checkName as y, transferAccessibilityAttributes as Tt, WithExtraAttributes as E, fontsizeValues as ze, fontweightValues as Ee, colorValues as Le } from "@proximus/lavender-common";
7
+ import "@proximus/lavender-layout";
8
+ const Te = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);background-image:var(--background-image);background:var(--background-gradient);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color));background-image:var( --background-image--mobile, var( --background-image, var(--background-gradient--mobile, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color));background-image:var( --background-image--tablet, var( --background-image, var(--background-gradient--tablet, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color));background-image:var( --background-image--laptop, var( --background-image, var(--background-gradient--laptop, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', Mt = new CSSStyleSheet();
9
+ Mt.replaceSync(Te);
10
+ const Me = ["anchor-right", "anchor-left", "anchor-full"], m = (i, t, e) => `:host([${i}${e ? `--${e}` : ""}='${t}']) .container`, k = "px-padding", bt = class bt extends u {
11
+ constructor() {
12
+ super(
13
+ Mt,
14
+ f(
15
+ "padding",
16
+ m,
17
+ x,
18
+ k,
19
+ "--container-padding"
20
+ ),
21
+ f(
22
+ "padding-inline",
23
+ m,
24
+ x,
25
+ k
26
+ ),
27
+ f(
28
+ "padding-block",
29
+ m,
30
+ x,
31
+ k
32
+ ),
33
+ f(
34
+ "padding-top",
35
+ m,
36
+ x,
37
+ k
38
+ ),
39
+ f(
40
+ "padding-right",
41
+ m,
42
+ x,
43
+ k,
44
+ "--container-padding-right"
45
+ ),
46
+ f(
47
+ "padding-bottom",
48
+ m,
49
+ x,
50
+ k
51
+ ),
52
+ f(
53
+ "padding-left",
54
+ m,
55
+ x,
56
+ k,
57
+ "--container-padding-left"
58
+ )
59
+ ), this.template = () => `<div class="container">
60
+ <slot name="anchor-left"></slot>
61
+ <slot name="anchor-right"></slot>
62
+ <slot name="anchor-full"></slot>
63
+ <slot></slot>
64
+ </div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
65
+ }
66
+ static get observedAttributes() {
67
+ return [
68
+ ...super.observedAttributes,
69
+ "border",
70
+ "border-color",
71
+ "border-side",
72
+ "border-side--mobile",
73
+ "border-side--tablet",
74
+ "border-side--laptop",
75
+ "border-radius",
76
+ "no-border-radius",
77
+ "no-border-radius--mobile",
78
+ "no-border-radius--tablet",
79
+ "no-border-radius--laptop",
80
+ "background-color",
81
+ "background-color--mobile",
82
+ "background-color--tablet",
83
+ "background-color--laptop",
84
+ "background-gradient",
85
+ "background-gradient--mobile",
86
+ "background-gradient--tablet",
87
+ "background-gradient--laptop",
88
+ "background-image",
89
+ "background-image--mobile",
90
+ "background-image--tablet",
91
+ "background-image--laptop",
92
+ "background-size",
93
+ "background-position",
94
+ "box-shadow",
95
+ "anchor-offset",
96
+ "inverted"
97
+ ];
98
+ }
99
+ connectedCallback() {
100
+ super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main");
101
+ const t = this.querySelector("[slot]");
102
+ t && Me.includes(t.getAttribute("slot")) && this.shadowRoot.querySelector(".container").classList.toggle("anchored"), this._bgObserver = new IntersectionObserver((e) => {
103
+ e.forEach((r) => {
104
+ var o;
105
+ r.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (o = this._bgObserver) == null || o.disconnect());
106
+ });
107
+ }), this._bgObserver.observe(this.$el);
108
+ }
109
+ disconnectedCallback() {
110
+ var t;
111
+ (t = this._bgObserver) == null || t.disconnect();
112
+ }
113
+ attributeChangedCallback(t, e, r) {
114
+ if (e !== r)
115
+ switch (t) {
116
+ case "border":
117
+ this.updateAttribute(t, e, r, Ce);
118
+ break;
119
+ case "border-color":
120
+ this.updateBorderColor(t, r);
121
+ break;
122
+ case "border-side":
123
+ case "border-side--mobile":
124
+ case "border-side--tablet":
125
+ case "border-side--laptop":
126
+ this.updateAttribute(t, e, r, $e);
127
+ break;
128
+ case "border-radius":
129
+ this.updateAttribute(
130
+ t,
131
+ e,
132
+ r,
133
+ ye
134
+ );
135
+ break;
136
+ case "no-border-radius":
137
+ case "no-border-radius--mobile":
138
+ case "no-border-radius--tablet":
139
+ case "no-border-radius--laptop":
140
+ this.updateNoBorderRadius(
141
+ t,
142
+ e,
143
+ r,
144
+ Ae
145
+ );
146
+ break;
147
+ case "background-color":
148
+ case "background-color--mobile":
149
+ case "background-color--tablet":
150
+ case "background-color--laptop":
151
+ this.updateBackgroundColor(t, r);
152
+ break;
153
+ case "background-gradient":
154
+ case "background-gradient--mobile":
155
+ case "background-gradient--tablet":
156
+ case "background-gradient--laptop":
157
+ this.updateGradient(t, r);
158
+ break;
159
+ case "background-size":
160
+ this.updateAttribute(
161
+ t,
162
+ e,
163
+ r,
164
+ ke
165
+ );
166
+ break;
167
+ case "background-image":
168
+ case "background-image--mobile":
169
+ case "background-image--tablet":
170
+ case "background-image--laptop":
171
+ this._isInViewport && this.updateBackgroundImg(t, r);
172
+ break;
173
+ case "background-position":
174
+ r !== null && r !== "" && (this.$el.style.backgroundPosition = r);
175
+ break;
176
+ case "box-shadow":
177
+ this.updateAttribute(t, e, r, me);
178
+ break;
179
+ case "anchor-offset":
180
+ this.updateAnchorOffset(e, r, x);
181
+ break;
182
+ default:
183
+ super.attributeChangedCallback(t, e, r);
184
+ break;
185
+ }
186
+ }
187
+ _loadBackgroundImages() {
188
+ [
189
+ "background-image",
190
+ "background-image--mobile",
191
+ "background-image--tablet",
192
+ "background-image--laptop"
193
+ ].forEach((e) => {
194
+ const r = this.getAttribute(e);
195
+ r && this.updateBackgroundImg(e, r);
196
+ });
197
+ }
198
+ updateBackgroundImg(t, e) {
199
+ this.$el.style.setProperty(`--${t}`, `url("${e}")`);
200
+ }
201
+ updateGradient(t, e) {
202
+ if (this.checkName(we, e)) {
203
+ const r = this.splitAttrNameFromBreakpoint(t);
204
+ t = r.attrName;
205
+ const o = r.breakpoint;
206
+ this.$el.style.setProperty(
207
+ `--${t}${o}`,
208
+ `linear-gradient(var(--px-color-background-gradient-${e}))`
209
+ );
210
+ } else
211
+ console.error(`${e} is not an allowed background-gradient value`);
212
+ }
213
+ updateBackgroundColor(t, e) {
214
+ const r = e.startsWith("surface-");
215
+ if (this.checkName(Lt, e)) {
216
+ const o = this.splitAttrNameFromBreakpoint(t), a = o.breakpoint;
217
+ this.$el.style.setProperty(
218
+ `--${o.attrName}${a}`,
219
+ `var(--px-color-background-${e}${r ? "" : "-default"})`
220
+ ), this.$el.style.setProperty(
221
+ `--${o.attrName}-inverted${a}`,
222
+ `var(--px-color-background-${e}${r ? "" : "-inverted"})`
223
+ );
224
+ } else
225
+ console.error(`${e} is not an allowed ${t} value`);
226
+ }
227
+ updateBorderColor(t, e) {
228
+ this.checkName(Se, e) ? (this.$el.style.setProperty(
229
+ `--${t}`,
230
+ `var(--px-color-border-${e}-default)`
231
+ ), this.$el.style.setProperty(
232
+ `--${t}-inverted`,
233
+ `var(--px-color-border-${e}-inverted)`
234
+ )) : console.error(`${e} is not an allowed ${t} value`);
235
+ }
236
+ updateNoBorderRadius(t, e, r, o) {
237
+ if (!this.checkName(o, r))
238
+ console.error(`${r} is not an allowed ${t} value`);
239
+ else {
240
+ const a = this.splitAttrNameFromBreakpoint(t), s = a.breakpoint;
241
+ e !== null && e !== "" && this.$el.classList.toggle(
242
+ `${a.attrName}-${e}${s}`
243
+ ), r !== null && r !== "" && this.$el.classList.toggle(
244
+ `${a.attrName}-${r}${s}`
245
+ );
246
+ }
247
+ }
248
+ updateAttribute(t, e, r, o) {
249
+ if (!this.checkName(o, r))
250
+ console.error(`${r} is not an allowed ${t} value`);
251
+ else {
252
+ const a = this.splitAttrNameFromBreakpoint(t), s = a.breakpoint;
253
+ e !== null && e !== "" && this.$el.classList.toggle(
254
+ `${a.attrName}-${e}${s}`
255
+ ), r !== null && r !== "" && this.$el.classList.toggle(
256
+ `${a.attrName}-${r}${s}`
257
+ );
258
+ }
259
+ }
260
+ splitAttrNameFromBreakpoint(t) {
261
+ let e = "";
262
+ if (["--mobile", "--tablet", "--laptop"].some(
263
+ (r) => t.includes(r)
264
+ )) {
265
+ const r = t.split("--");
266
+ t = r[0], e = `--${r[1]}`;
267
+ }
268
+ return { attrName: t, breakpoint: e };
269
+ }
270
+ updateAnchorOffset(t, e, r) {
271
+ if (!y(r, e)) {
272
+ console.error(`${e} is not a valid anchor-offset value`);
273
+ return;
274
+ }
275
+ const o = (a) => {
276
+ a !== null && a !== "" && a !== "default" && (this.$el.style.setProperty(
277
+ "--container-anchor-offset--mobile",
278
+ `var(--px-padding-${a}-mobile)`
279
+ ), this.$el.style.setProperty(
280
+ "--container-anchor-offset--tablet",
281
+ `var(--px-padding-${a}-tablet)`
282
+ ), this.$el.style.setProperty(
283
+ "--container-anchor-offset--laptop",
284
+ `var(--px-padding-${a}-laptop)`
285
+ ));
286
+ };
287
+ o(t), o(e);
288
+ }
289
+ get padding() {
290
+ return this.getAttribute("padding");
291
+ }
292
+ set padding(t) {
293
+ this.setAttribute("padding", t);
294
+ }
295
+ get paddingBlock() {
296
+ return this.getAttribute("padding-block");
297
+ }
298
+ set paddingBlock(t) {
299
+ this.setAttribute("padding-block", t);
300
+ }
301
+ get paddingInline() {
302
+ return this.getAttribute("padding-inline");
303
+ }
304
+ set paddingInline(t) {
305
+ this.setAttribute("padding-inline", t);
306
+ }
307
+ get paddingTop() {
308
+ return this.getAttribute("padding-top");
309
+ }
310
+ set paddingTop(t) {
311
+ this.setAttribute("padding-top", t);
312
+ }
313
+ get paddingRight() {
314
+ return this.getAttribute("padding-right");
315
+ }
316
+ set paddingRight(t) {
317
+ this.setAttribute("padding-right", t);
318
+ }
319
+ get paddingBottom() {
320
+ return this.getAttribute("padding-bottom");
321
+ }
322
+ set paddingBottom(t) {
323
+ this.setAttribute("padding-bottom", t);
324
+ }
325
+ get paddingLeft() {
326
+ return this.getAttribute("padding-left");
327
+ }
328
+ set paddingLeft(t) {
329
+ this.setAttribute("padding-left", t);
330
+ }
331
+ get paddingMobile() {
332
+ return this.getAttribute("padding--mobile");
333
+ }
334
+ set paddingMobile(t) {
335
+ this.setAttribute("padding--mobile", t);
336
+ }
337
+ get paddingBlockMobile() {
338
+ return this.getAttribute("padding-block--mobile");
339
+ }
340
+ set paddingBlockMobile(t) {
341
+ this.setAttribute("padding-block--mobile", t);
342
+ }
343
+ get paddingInlineMobile() {
344
+ return this.getAttribute("padding-inline--mobile");
345
+ }
346
+ set paddingInlineMobile(t) {
347
+ this.setAttribute("padding-inline--mobile", t);
348
+ }
349
+ get paddingTopMobile() {
350
+ return this.getAttribute("padding-top--mobile");
351
+ }
352
+ set paddingTopMobile(t) {
353
+ this.setAttribute("padding-top--mobile", t);
354
+ }
355
+ get paddingRightMobile() {
356
+ return this.getAttribute("padding-right--mobile");
357
+ }
358
+ set paddingRightMobile(t) {
359
+ this.setAttribute("padding-right--mobile", t);
360
+ }
361
+ get paddingBottomMobile() {
362
+ return this.getAttribute("padding-bottom--mobile");
363
+ }
364
+ set paddingBottomMobile(t) {
365
+ this.setAttribute("padding-bottom--mobile", t);
366
+ }
367
+ get paddingLeftMobile() {
368
+ return this.getAttribute("padding-left--mobile");
369
+ }
370
+ set paddingLeftMobile(t) {
371
+ this.setAttribute("padding-left--mobile", t);
372
+ }
373
+ get paddingTablet() {
374
+ return this.getAttribute("padding--tablet");
375
+ }
376
+ set paddingTablet(t) {
377
+ this.setAttribute("padding--tablet", t);
378
+ }
379
+ get paddingBlockTablet() {
380
+ return this.getAttribute("padding-block--tablet");
381
+ }
382
+ set paddingBlockTablet(t) {
383
+ this.setAttribute("padding-block--tablet", t);
384
+ }
385
+ get paddingInlineTablet() {
386
+ return this.getAttribute("padding-inline--tablet");
387
+ }
388
+ set paddingInlineTablet(t) {
389
+ this.setAttribute("padding-inline--tablet", t);
390
+ }
391
+ get paddingTopTablet() {
392
+ return this.getAttribute("padding-top--tablet");
393
+ }
394
+ set paddingTopTablet(t) {
395
+ this.setAttribute("padding-top--tablet", t);
396
+ }
397
+ get paddingRightTablet() {
398
+ return this.getAttribute("padding-right--tablet");
399
+ }
400
+ set paddingRightTablet(t) {
401
+ this.setAttribute("padding-right--tablet", t);
402
+ }
403
+ get paddingBottomTablet() {
404
+ return this.getAttribute("padding-bottom--tablet");
405
+ }
406
+ set paddingBottomTablet(t) {
407
+ this.setAttribute("padding-bottom--tablet", t);
408
+ }
409
+ get paddingLeftTablet() {
410
+ return this.getAttribute("padding-left--tablet");
411
+ }
412
+ set paddingLeftTablet(t) {
413
+ this.setAttribute("padding-left--tablet", t);
414
+ }
415
+ get paddingLaptop() {
416
+ return this.getAttribute("padding--laptop");
417
+ }
418
+ set paddingLaptop(t) {
419
+ this.setAttribute("padding--laptop", t);
420
+ }
421
+ get paddingBlockLaptop() {
422
+ return this.getAttribute("padding-block--laptop");
423
+ }
424
+ set paddingBlockLaptop(t) {
425
+ this.setAttribute("padding-block--laptop", t);
426
+ }
427
+ get paddingInlineLaptop() {
428
+ return this.getAttribute("padding-inline--laptop");
429
+ }
430
+ set paddingInlineLaptop(t) {
431
+ this.setAttribute("padding-inline--laptop", t);
432
+ }
433
+ get paddingTopLaptop() {
434
+ return this.getAttribute("padding-top--laptop");
435
+ }
436
+ set paddingTopLaptop(t) {
437
+ this.setAttribute("padding-top--laptop", t);
438
+ }
439
+ get paddingRightLaptop() {
440
+ return this.getAttribute("padding-right--laptop");
441
+ }
442
+ set paddingRightLaptop(t) {
443
+ this.setAttribute("padding-right--laptop", t);
444
+ }
445
+ get paddingBottomLaptop() {
446
+ return this.getAttribute("padding-bottom--laptop");
447
+ }
448
+ set paddingBottomLaptop(t) {
449
+ this.setAttribute("padding-bottom--laptop", t);
450
+ }
451
+ get paddingLeftLaptop() {
452
+ return this.getAttribute("padding-left--laptop");
453
+ }
454
+ set paddingLeftLaptop(t) {
455
+ this.setAttribute("padding-left--laptop", t);
456
+ }
457
+ get border() {
458
+ return this.getAttribute("border");
459
+ }
460
+ set border(t) {
461
+ this.setAttribute("border", t);
462
+ }
463
+ get borderColor() {
464
+ return this.getAttribute("border-color");
465
+ }
466
+ set borderColor(t) {
467
+ this.setAttribute("border-color", t);
468
+ }
469
+ get borderSide() {
470
+ return this.getAttribute("border-side");
471
+ }
472
+ set borderSide(t) {
473
+ this.setAttribute("border-side", t);
474
+ }
475
+ get borderSideMobile() {
476
+ return this.getAttribute("border-side--mobile");
477
+ }
478
+ set borderSideMobile(t) {
479
+ this.setAttribute("border-side--mobile", t);
480
+ }
481
+ get borderSideTablet() {
482
+ return this.getAttribute("border-side--tablet");
483
+ }
484
+ set borderSideTablet(t) {
485
+ this.setAttribute("border-side--tablet", t);
486
+ }
487
+ get borderSideLaptop() {
488
+ return this.getAttribute("border-side--laptop");
489
+ }
490
+ set borderSideLaptop(t) {
491
+ this.setAttribute("border-side--laptop", t);
492
+ }
493
+ get borderRadius() {
494
+ return this.getAttribute("border-radius");
495
+ }
496
+ set borderRadius(t) {
497
+ this.setAttribute("border-radius", t);
498
+ }
499
+ get noBorderRadius() {
500
+ return this.getAttribute("no-border-radius");
501
+ }
502
+ set noBorderRadius(t) {
503
+ this.setAttribute("no-border-radius", t);
504
+ }
505
+ get noBorderRadiusMobile() {
506
+ return this.getAttribute("no-border-radius--mobile");
507
+ }
508
+ set noBorderRadiusMobile(t) {
509
+ this.setAttribute("no-border-radius--mobile", t);
510
+ }
511
+ get noBorderRadiusTablet() {
512
+ return this.getAttribute("no-border-radius--tablet");
513
+ }
514
+ set noBorderRadiusTablet(t) {
515
+ this.setAttribute("no-border-radius--tablet", t);
516
+ }
517
+ get noBorderRadiusLaptop() {
518
+ return this.getAttribute("no-border-radius--laptop");
519
+ }
520
+ set noBorderRadiusLaptop(t) {
521
+ this.setAttribute("no-border-radius--laptop", t);
522
+ }
523
+ get backgroundColor() {
524
+ return this.getAttribute("background-color");
525
+ }
526
+ set backgroundColor(t) {
527
+ this.setAttribute("background-color", t);
528
+ }
529
+ get backgroundColorMobile() {
530
+ return this.getAttribute("background-color--mobile");
531
+ }
532
+ set backgroundColorMobile(t) {
533
+ this.setAttribute("background-color--mobile", t);
534
+ }
535
+ get backgroundColorTablet() {
536
+ return this.getAttribute("background-color--tablet");
537
+ }
538
+ set backgroundColorTablet(t) {
539
+ this.setAttribute("background-color--tablet", t);
540
+ }
541
+ get backgroundColorLaptop() {
542
+ return this.getAttribute("background-color--laptop");
543
+ }
544
+ set backgroundColorLaptop(t) {
545
+ this.setAttribute("background-color--laptop", t);
546
+ }
547
+ get gradient() {
548
+ return this.getAttribute("background-gradient");
549
+ }
550
+ set gradient(t) {
551
+ this.setAttribute("background-gradient", t);
552
+ }
553
+ get gradientMobile() {
554
+ return this.getAttribute("background-gradient--mobile");
555
+ }
556
+ set gradientMobile(t) {
557
+ this.setAttribute("background-gradient--mobile", t);
558
+ }
559
+ get gradientTablet() {
560
+ return this.getAttribute("background-gradient--tablet");
561
+ }
562
+ set gradientTablet(t) {
563
+ this.setAttribute("background-gradient--tablet", t);
564
+ }
565
+ get gradientLaptop() {
566
+ return this.getAttribute("background-gradient--laptop");
567
+ }
568
+ set gradientLaptop(t) {
569
+ this.setAttribute("background-gradient--laptop", t);
570
+ }
571
+ get backgroundImage() {
572
+ return this.getAttribute("background-image");
573
+ }
574
+ set backgroundImage(t) {
575
+ this.setAttribute("background-image", t);
576
+ }
577
+ get backgroundImageMobile() {
578
+ return this.getAttribute("background-image--mobile");
579
+ }
580
+ set backgroundImageMobile(t) {
581
+ this.setAttribute("background-image--mobile", t);
582
+ }
583
+ get backgroundImageTablet() {
584
+ return this.getAttribute("background-image--tablet");
585
+ }
586
+ set backgroundImageTablet(t) {
587
+ this.setAttribute("background-image--tablet", t);
588
+ }
589
+ get backgroundImageLaptop() {
590
+ return this.getAttribute("background-image--laptop");
591
+ }
592
+ set backgroundImageLaptop(t) {
593
+ this.setAttribute("background-image--laptop", t);
594
+ }
595
+ get backgroundSize() {
596
+ return this.getAttribute("background-size");
597
+ }
598
+ set backgroundSize(t) {
599
+ this.setAttribute("background-size", t);
600
+ }
601
+ get backgroundPosition() {
602
+ return this.getAttribute("background-position");
603
+ }
604
+ set backgroundPosition(t) {
605
+ this.setAttribute("background-position", t);
606
+ }
607
+ get boxShadow() {
608
+ return this.getAttribute("box-shadow");
609
+ }
610
+ set boxShadow(t) {
611
+ this.setAttribute("box-shadow", t);
612
+ }
613
+ get anchorOffset() {
614
+ return this.getAttribute("anchor-offset");
615
+ }
616
+ set anchorOffset(t) {
617
+ this.setAttribute("anchor-offset", t);
618
+ }
619
+ get inverted() {
620
+ return this.getAttribute("inverted");
621
+ }
622
+ set inverted(t) {
623
+ this.setAttribute("inverted", t);
624
+ }
625
+ };
626
+ bt.nativeName = "div";
627
+ let V = bt;
628
+ customElements.get("px-container") || customElements.define("px-container", V);
629
+ const Bt = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-state-hover-bordered-default);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown{display:flex;justify-content:space-between;width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);touch-action:manipulation}.btn.header-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var( --px-color-background-state-state-hover-bordered-inverted );color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em) and (min-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 64.0625em){.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, Rt = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', Be = ".patch{display:inline-flex;align-items:center;padding:0 var(--px-padding-s-mobile);height:1.625em;border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);text-align:center;background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1441px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Re = ":host:has(.tag){display:inline-block}.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media only screen and (min-width: 1025px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", It = new CSSStyleSheet(), Dt = new CSSStyleSheet(), qt = new CSSStyleSheet(), Pt = new CSSStyleSheet();
630
+ It.replaceSync(Bt);
631
+ Dt.replaceSync(Rt);
632
+ qt.replaceSync(Be);
633
+ Pt.replaceSync(Re);
634
+ const Ie = [
635
+ "",
636
+ "default",
637
+ "secondary",
638
+ "tertiary",
639
+ "link",
640
+ "patch",
641
+ "patch-info",
642
+ "patch-black-friday",
643
+ "patch-eco",
644
+ "actionable-tag",
645
+ "header-dropdown"
646
+ ], De = [
647
+ "",
648
+ "default",
649
+ "bottom-right",
650
+ "bottom-left",
651
+ "alternative"
652
+ ], pt = class pt extends u {
653
+ constructor() {
654
+ super(It, Dt, qt, Pt), this.template = () => `<button class="btn">
655
+ <slot name="before"></slot><slot></slot><slot name="after"></slot>
656
+ </button>`, this.shadowRoot.innerHTML = this.template();
657
+ }
658
+ static get observedAttributes() {
659
+ return [
660
+ ...super.observedAttributes,
661
+ "variant",
662
+ "state",
663
+ "loading",
664
+ "shape",
665
+ "shape--mobile",
666
+ "shape--tablet",
667
+ "shape--laptop",
668
+ "shape--desktop",
669
+ "inverted",
670
+ "aria-expanded",
671
+ "extended",
672
+ "extended--mobile",
673
+ "extended--tablet",
674
+ "extended--laptop",
675
+ "extended--desktop"
676
+ ];
677
+ }
678
+ connectedCallback() {
679
+ super.connectedCallback();
680
+ const t = this.querySelectorAll("px-icon");
681
+ t && t.forEach((e) => {
682
+ const r = e.getAttribute("size"), o = e.getAttribute("color");
683
+ e && (e.addEventListener("click", () => {
684
+ this.$el.focus();
685
+ }), r || e.setAttribute("size", "xs"), o || e.setAttribute("color", "inherit"));
686
+ }), Tt(this, this.$el), this.$el.type === "submit" && this.addEventListener("click", (e) => {
687
+ var r;
688
+ e.preventDefault(), (r = this.closest("form")) == null || r.submit();
689
+ }), this.$el.type === "reset" && this.addEventListener("click", (e) => {
690
+ var r;
691
+ e.preventDefault(), (r = this.closest("form")) == null || r.reset();
692
+ });
693
+ }
694
+ attributeChangedCallback(t, e, r) {
695
+ if (e !== r)
696
+ switch (t) {
697
+ case "variant":
698
+ this.updateVariant(e, r);
699
+ break;
700
+ case "state":
701
+ this.updateState(e, r);
702
+ break;
703
+ case "extended":
704
+ case "extended--mobile":
705
+ case "extended--tablet":
706
+ case "extended--laptop":
707
+ case "extended--desktop":
708
+ this.updateExtended(t, r);
709
+ break;
710
+ case "loading":
711
+ this.updateLoading();
712
+ break;
713
+ case "shape":
714
+ case "shape--mobile":
715
+ case "shape--tablet":
716
+ case "shape--laptop":
717
+ case "shape--desktop":
718
+ this.updateShape(t, r, De);
719
+ break;
720
+ case "aria-expanded":
721
+ r && (this.$el.setAttribute("aria-expanded", r), this.removeAttribute("aria-expanded"));
722
+ break;
723
+ default:
724
+ super.attributeChangedCallback(t, e, r);
725
+ break;
726
+ }
727
+ }
728
+ checkClass(t) {
729
+ if (t.startsWith("patch-")) {
730
+ const e = t.split(/-(.*)/s);
731
+ for (const r of e)
732
+ r != "" && this.$el.classList.toggle(r);
733
+ } else
734
+ this.$el.classList.toggle(t);
735
+ }
736
+ _toggleClass(t, e) {
737
+ t !== null && t !== "" && t !== "default" && this.checkClass(t), e !== null && e !== "" && e !== "default" && this.checkClass(e);
738
+ }
739
+ updateVariant(t, e) {
740
+ e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(Ie, e) || console.error(
741
+ `${e} is not a valid "variant" value for ${e}`
742
+ );
743
+ }
744
+ updateState(t, e) {
745
+ const r = ["", "default", "success", "error"];
746
+ this._toggleClass(t, e), this.checkName(r, e) || console.error(`${e} is not a valid "sate" value`);
747
+ }
748
+ updateExtended(t, e) {
749
+ e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
750
+ }
751
+ updateLoading() {
752
+ const t = this.querySelector("px-spinner");
753
+ t && (t.getAttribute("size") || t.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
754
+ }
755
+ updateShape(t, e, r) {
756
+ if (!y(r, e)) {
757
+ console.error(`${e} is not a valid shape value`);
758
+ return;
759
+ }
760
+ e !== null && e !== "" && this.$el.setAttribute(t, e);
761
+ }
762
+ get variant() {
763
+ return this.getAttribute("variant");
764
+ }
765
+ set variant(t) {
766
+ this.setAttribute("variant", t);
767
+ }
768
+ get state() {
769
+ return this.getAttribute("state");
770
+ }
771
+ set state(t) {
772
+ this.setAttribute("state", t);
773
+ }
774
+ get extended() {
775
+ return this.getAttribute("extended");
776
+ }
777
+ set extended(t) {
778
+ this.setAttribute("extended", t);
779
+ }
780
+ get extendedMobile() {
781
+ return this.getAttribute("extended--mobile");
782
+ }
783
+ set extendedMobile(t) {
784
+ this.setAttribute("extended--mobile", t);
785
+ }
786
+ get extendedTablet() {
787
+ return this.getAttribute("extended--tablet");
788
+ }
789
+ set extendedTablet(t) {
790
+ this.setAttribute("extended--tablet", t);
791
+ }
792
+ get extendedLaptop() {
793
+ return this.getAttribute("extended--laptop");
794
+ }
795
+ set extendedLaptop(t) {
796
+ this.setAttribute("extended--laptop", t);
797
+ }
798
+ get extendedDesktop() {
799
+ return this.getAttribute("extended--desktop");
800
+ }
801
+ set extendedDesktop(t) {
802
+ this.setAttribute("extended--desktop", t);
803
+ }
804
+ get loading() {
805
+ return this.getAttribute("loading");
806
+ }
807
+ set loading(t) {
808
+ this.setAttribute("loading", t);
809
+ }
810
+ get shape() {
811
+ return this.getAttribute("shape");
812
+ }
813
+ set shape(t) {
814
+ this.setAttribute("shape", t);
815
+ }
816
+ get shapeMobile() {
817
+ return this.getAttribute("shape--mobile");
818
+ }
819
+ set shapeMobile(t) {
820
+ this.setAttribute("shape--mobile", t);
821
+ }
822
+ get shapeTablet() {
823
+ return this.getAttribute("shape--tablet");
824
+ }
825
+ set shapeTablet(t) {
826
+ this.setAttribute("shape--tablet", t);
827
+ }
828
+ get shapeLaptop() {
829
+ return this.getAttribute("shape--laptop");
830
+ }
831
+ set shapeLaptop(t) {
832
+ this.setAttribute("shape--laptop", t);
833
+ }
834
+ get shapeDesktop() {
835
+ return this.getAttribute("shape--desktop");
836
+ }
837
+ set shapeDesktop(t) {
838
+ this.setAttribute("shape--desktop", t);
839
+ }
840
+ get inverted() {
841
+ return this.getAttribute("inverted");
842
+ }
843
+ set inverted(t) {
844
+ this.setAttribute("inverted", t);
845
+ }
846
+ get ariaExpanded() {
847
+ return this.getAttribute("aria-expanded");
848
+ }
849
+ set ariaExpanded(t) {
850
+ t ? this.setAttribute("aria-expanded", t) : this.removeAttribute("aria-expanded");
851
+ }
852
+ };
853
+ pt.nativeName = "button";
854
+ let tt = pt;
855
+ customElements.get("px-button") || customElements.define("px-button", tt);
856
+ const qe = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', _t = new CSSStyleSheet();
857
+ _t.replaceSync(qe);
858
+ class Pe extends HTMLElement {
859
+ constructor() {
860
+ super(), this.template = () => `
861
+ <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
862
+ <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
863
+ <px-vstack gap="heading-to-content">
864
+ <slot name="heading"></slot>
865
+ <px-vstack gap="none">
866
+ <slot></slot>
867
+ </px-vstack>
868
+ </px-vstack>
869
+ </div>
870
+ </px-container>
871
+ <div class="content-wrapper">
872
+ <slot name="overlap"></slot>
873
+ </div>
874
+ `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [_t];
875
+ }
876
+ connectedCallback() {
877
+ const t = this.querySelector('[slot="heading"]');
878
+ !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
879
+ }
880
+ static get observedAttributes() {
881
+ return [
882
+ "background-color",
883
+ "background-gradient",
884
+ "background-image",
885
+ "background-image--mobile",
886
+ "background-image--tablet",
887
+ "background-image--laptop",
888
+ "background-size",
889
+ "background-position",
890
+ "padding-block",
891
+ "padding-top",
892
+ "padding-bottom",
893
+ "padding-block--mobile",
894
+ "padding-top--mobile",
895
+ "padding-bottom--mobile",
896
+ "padding-block--tablet",
897
+ "padding-top--tablet",
898
+ "padding-bottom--tablet",
899
+ "padding-block--laptop",
900
+ "padding-top--laptop",
901
+ "padding-bottom--laptop",
902
+ "border",
903
+ "border-side",
904
+ "border-side--mobile",
905
+ "border-side--tablet",
906
+ "border-side--laptop"
907
+ ];
908
+ }
909
+ get $container() {
910
+ return this.shadowRoot.querySelector("px-container");
911
+ }
912
+ attributeChangedCallback(t, e, r) {
913
+ if (e !== r)
914
+ switch (t) {
915
+ case "background-color":
916
+ this.$container.backgroundColor = Lt.indexOf(r) > 0 ? r : "none";
917
+ break;
918
+ case "background-gradient":
919
+ this.$container.gradient = this.gradient;
920
+ break;
921
+ case "background-image":
922
+ this.$container.backgroundImage = r;
923
+ break;
924
+ case "background-image--mobile":
925
+ this.$container.backgroundImageMobile = r;
926
+ break;
927
+ case "background-image--tablet":
928
+ this.$container.backgroundImageTablet = r;
929
+ break;
930
+ case "background-image--laptop":
931
+ this.$container.backgroundImageLaptop = r;
932
+ break;
933
+ case "background-size":
934
+ this.$container.backgroundSize = r;
935
+ break;
936
+ case "background-position":
937
+ this.$container.backgroundPosition = r;
938
+ break;
939
+ case "padding-block":
940
+ this.$container.paddingBlock = r;
941
+ break;
942
+ case "padding-top":
943
+ this.$container.paddingTop = r;
944
+ break;
945
+ case "padding-bottom":
946
+ this.$container.paddingBottom = r;
947
+ break;
948
+ case "padding-block--mobile":
949
+ this.$container.paddingBlockMobile = r;
950
+ break;
951
+ case "padding-top--mobile":
952
+ this.$container.paddingTopMobile = r;
953
+ break;
954
+ case "padding-bottom--mobile":
955
+ this.$container.paddingBottomMobile = r;
956
+ break;
957
+ case "padding-block--tablet":
958
+ this.$container.paddingBlockTablet = r;
959
+ break;
960
+ case "padding-top--tablet":
961
+ this.$container.paddingTopTablet = r;
962
+ break;
963
+ case "padding-bottom--tablet":
964
+ this.$container.paddingBottomTablet = r;
965
+ break;
966
+ case "padding-block--laptop":
967
+ this.$container.paddingBlockLaptop = r;
968
+ break;
969
+ case "padding-top--laptop":
970
+ this.$container.paddingTopLaptop = r;
971
+ break;
972
+ case "padding-bottom--laptop":
973
+ this.$container.paddingBottomLaptop = r;
974
+ break;
975
+ case "border":
976
+ this.$container.border = r;
977
+ break;
978
+ case "border-side":
979
+ this.$container.borderSide = r;
980
+ break;
981
+ case "border-side--mobile":
982
+ this.$container.borderSideMobile = r;
983
+ break;
984
+ case "border-side--tablet":
985
+ this.$container.borderSideTablet = r;
986
+ break;
987
+ case "border-side--laptop":
988
+ this.$container.borderSideLaptop = r;
989
+ break;
990
+ }
991
+ }
992
+ get $slotOverlap() {
993
+ return this.querySelector('[slot="overlap"]');
994
+ }
995
+ get backgroundColor() {
996
+ return this.getAttribute("background-color") || "none";
997
+ }
998
+ set backgroundColor(t) {
999
+ this.setAttribute("background-color", t);
1000
+ }
1001
+ get gradient() {
1002
+ return this.getAttribute("background-gradient");
1003
+ }
1004
+ set gradient(t) {
1005
+ this.setAttribute("background-gradient", t);
1006
+ }
1007
+ get backgroundImage() {
1008
+ return this.getAttribute("background-image");
1009
+ }
1010
+ set backgroundImage(t) {
1011
+ this.setAttribute("background-image", t);
1012
+ }
1013
+ get backgroundImageMobile() {
1014
+ return this.getAttribute("background-image--mobile");
1015
+ }
1016
+ set backgroundImageMobile(t) {
1017
+ this.setAttribute("background-image--mobile", t);
1018
+ }
1019
+ get backgroundImageTablet() {
1020
+ return this.getAttribute("background-image--tablet");
1021
+ }
1022
+ set backgroundImageTablet(t) {
1023
+ this.setAttribute("background-image--tablet", t);
1024
+ }
1025
+ get backgroundImageLaptop() {
1026
+ return this.getAttribute("background-image--laptop");
1027
+ }
1028
+ set backgroundImageLaptop(t) {
1029
+ this.setAttribute("background-image--laptop", t);
1030
+ }
1031
+ get backgroundSize() {
1032
+ return this.getAttribute("background-size");
1033
+ }
1034
+ set backgroundSize(t) {
1035
+ this.setAttribute("background-size", t);
1036
+ }
1037
+ get backgroundPosition() {
1038
+ return this.getAttribute("background-position");
1039
+ }
1040
+ set backgroundPosition(t) {
1041
+ this.setAttribute("background-position", t);
1042
+ }
1043
+ get paddingBlock() {
1044
+ return this.getAttribute("padding-block");
1045
+ }
1046
+ set paddingBlock(t) {
1047
+ this.setAttribute("padding-block", t);
1048
+ }
1049
+ get paddingTop() {
1050
+ return this.getAttribute("padding-top");
1051
+ }
1052
+ set paddingTop(t) {
1053
+ this.setAttribute("padding-top", t);
1054
+ }
1055
+ get paddingBottom() {
1056
+ return this.getAttribute("padding-bottom");
1057
+ }
1058
+ set paddingBottom(t) {
1059
+ this.setAttribute("padding-bottom", t);
1060
+ }
1061
+ get paddingBlockMobile() {
1062
+ return this.getAttribute("padding-block--mobile");
1063
+ }
1064
+ set paddingBlockMobile(t) {
1065
+ this.setAttribute("padding-block--mobile", t);
1066
+ }
1067
+ get paddingTopMobile() {
1068
+ return this.getAttribute("padding-top--mobile");
1069
+ }
1070
+ set paddingTopMobile(t) {
1071
+ this.setAttribute("padding-top--mobile", t);
1072
+ }
1073
+ get paddingBottomMobile() {
1074
+ return this.getAttribute("padding-bottom--mobile");
1075
+ }
1076
+ set paddingBottomMobile(t) {
1077
+ this.setAttribute("padding-bottom--mobile", t);
1078
+ }
1079
+ get paddingBlockTablet() {
1080
+ return this.getAttribute("padding-block--tablet");
1081
+ }
1082
+ set paddingBlockTablet(t) {
1083
+ this.setAttribute("padding-block--tablet", t);
1084
+ }
1085
+ get paddingTopTablet() {
1086
+ return this.getAttribute("padding-top--tablet");
1087
+ }
1088
+ set paddingTopTablet(t) {
1089
+ this.setAttribute("padding-top--tablet", t);
1090
+ }
1091
+ get paddingBottomTablet() {
1092
+ return this.getAttribute("padding-bottom--tablet");
1093
+ }
1094
+ set paddingBottomTablet(t) {
1095
+ this.setAttribute("padding-bottom--tablet", t);
1096
+ }
1097
+ get paddingBlockLaptop() {
1098
+ return this.getAttribute("padding-block--laptop");
1099
+ }
1100
+ set paddingBlockLaptop(t) {
1101
+ this.setAttribute("padding-block--laptop", t);
1102
+ }
1103
+ get paddingTopLaptop() {
1104
+ return this.getAttribute("padding-top--laptop");
1105
+ }
1106
+ set paddingTopLaptop(t) {
1107
+ this.setAttribute("padding-top--laptop", t);
1108
+ }
1109
+ get paddingBottomLaptop() {
1110
+ return this.getAttribute("padding-bottom--laptop");
1111
+ }
1112
+ set paddingBottomLaptop(t) {
1113
+ this.setAttribute("padding-bottom--laptop", t);
1114
+ }
1115
+ get border() {
1116
+ return this.getAttribute("border");
1117
+ }
1118
+ set border(t) {
1119
+ this.setAttribute("border", t);
1120
+ }
1121
+ get borderSide() {
1122
+ return this.getAttribute("border-side");
1123
+ }
1124
+ set borderSide(t) {
1125
+ this.setAttribute("border-side", t);
1126
+ }
1127
+ get borderSideMobile() {
1128
+ return this.getAttribute("border-side--mobile");
1129
+ }
1130
+ set borderSideMobile(t) {
1131
+ this.setAttribute("border-side--mobile", t);
1132
+ }
1133
+ get borderSideTablet() {
1134
+ return this.getAttribute("border-side--tablet");
1135
+ }
1136
+ set borderSideTablet(t) {
1137
+ this.setAttribute("border-side--tablet", t);
1138
+ }
1139
+ get borderSideLaptop() {
1140
+ return this.getAttribute("border-side--laptop");
1141
+ }
1142
+ set borderSideLaptop(t) {
1143
+ this.setAttribute("border-side--laptop", t);
1144
+ }
1145
+ }
1146
+ customElements.get("px-section") || customElements.define("px-section", Pe);
1147
+ const _e = ["", "default", "naked", "contained"], He = [
1148
+ "",
1149
+ "container-light",
1150
+ "container-default"
1151
+ ];
1152
+ function L(i) {
1153
+ i.hasAttribute("width") || i.setAttribute("width", "s"), i.setAttribute("border-radius", "pill");
1154
+ }
1155
+ function T(i) {
1156
+ i.getAttribute("variant") === "contained" && !i.getAttribute("background-color") && i.setAttribute("background-color", "container-light");
1157
+ }
1158
+ function Oe(i, t, e) {
1159
+ if (!y(_e, e)) {
1160
+ console.error(`${e} is not an allowed variant value.`);
1161
+ return;
1162
+ }
1163
+ t !== null && t !== "" && t !== "default" && i.classList.toggle(t), e !== null && e !== "" && e !== "default" && i.classList.toggle(e);
1164
+ }
1165
+ function O(i, t, e, r = []) {
1166
+ e ? (i.setAttribute("inverted", ""), r.forEach((o) => o.setAttribute("inverted", "")), t.forEach((o) => {
1167
+ o.hasAttribute("inverted") || o.setAttribute("inverted", "");
1168
+ })) : (i.removeAttribute("inverted"), r.forEach((o) => o.removeAttribute("inverted")), t.forEach((o) => {
1169
+ o.hasAttribute("inverted") && o.removeAttribute("inverted");
1170
+ }));
1171
+ }
1172
+ function je(i, t, e, r, o) {
1173
+ if (!y(o, r)) {
1174
+ console.error(`${r} is not an allowed ${t} value`);
1175
+ return;
1176
+ }
1177
+ const a = (s) => {
1178
+ s !== null && s !== "" && s !== "default" && (i.style.setProperty(
1179
+ "--cell-contained-background-color-default",
1180
+ `var(--px-color-background-${s}-default)`
1181
+ ), i.style.setProperty(
1182
+ "--cell-contained-background-color-inverted",
1183
+ `var(--px-color-background-${s}-inverted)`
1184
+ ));
1185
+ };
1186
+ a(e), a(r);
1187
+ }
1188
+ function Ht(i, t, e, r = [], o = {}) {
1189
+ e ? (i.setAttribute("disabled", ""), r.forEach((a) => a.setAttribute("disabled", "")), t.forEach((a) => {
1190
+ a.hasAttribute("disabled") || a.setAttribute("disabled", "");
1191
+ }), o.ariaEl && o.setAria && o.ariaEl.setAttribute("aria-disabled", "true"), o.ariaEl && o.setTabIndex && (o.ariaEl.tabIndex = -1)) : (i.removeAttribute("disabled"), r.forEach((a) => a.removeAttribute("disabled")), t.forEach((a) => {
1192
+ a.hasAttribute("disabled") && a.removeAttribute("disabled");
1193
+ }), o.ariaEl && o.setAria && o.ariaEl.setAttribute("aria-disabled", "false"), o.ariaEl && o.setTabIndex && (o.ariaEl.tabIndex = 0));
1194
+ }
1195
+ const M = ":host{display:block;outline:none}:host .cell,:host .cell-link,:host .cell-button,:host .cell-checkbox,:host .cell-radio,:host .cell-switch{display:block;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}:host .cell,:host .cell *,:host .cell-link,:host .cell-link *,:host .cell-button,:host .cell-button *,:host .cell-checkbox,:host .cell-checkbox *,:host .cell-radio,:host .cell-radio *,:host .cell-switch,:host .cell-switch *{box-sizing:border-box}:host .cell-link,:host .cell-button,:host .cell-checkbox,:host .cell-radio,:host .cell-switch{width:100%;outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile)}:host .cell-link,:host .cell-button{cursor:pointer}:host .cell-checkbox,:host .cell-radio,:host .cell-switch{cursor:default}:host:host(:not([disabled])):host(:focus-visible) .cell-checkbox,:host:host(:not([disabled])):host(:focus-visible) .cell-radio,:host:host(:not([disabled])):host(:focus-visible) .cell-switch{outline-offset:var(--px-focus-offset-mobile);outline-style:solid;position:relative}:host:host(:not([disabled])) .cell-link:focus-visible,:host:host(:not([disabled])) .cell-button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline-style:solid;position:relative}:host:host([disabled]) .cell-link,:host:host([disabled]) .cell-button,:host:host([disabled]) .cell-checkbox,:host:host([disabled]) .cell-radio,:host:host([disabled]) .cell-switch{cursor:default;pointer-events:none}@media only screen and (min-width: 768px){:scope:host .cell-link,:scope:host .cell-button,:scope:host .cell-checkbox,:scope:host .cell-radio,:scope:host .cell-switch{outline-width:var(--px-focus-outline-tablet)}:scope:host:host(:not([disabled])):host(:focus-visible) .cell-checkbox,:scope:host:host(:not([disabled])):host(:focus-visible) .cell-radio,:scope:host:host(:not([disabled])):host(:focus-visible) .cell-switch{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}:scope:host:host(:not([disabled])) .cell-link:focus-visible,:scope:host:host(:not([disabled])) .cell-button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 1025px){:scope:host .cell-link,:scope:host .cell-button,:scope:host .cell-checkbox,:scope:host .cell-radio,:scope:host .cell-switch{outline-width:var(--px-focus-outline-desktop)}:scope:host:host(:not([disabled])):host(:focus-visible) .cell-checkbox,:scope:host:host(:not([disabled])):host(:focus-visible) .cell-radio,:scope:host:host(:not([disabled])):host(:focus-visible) .cell-switch{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}:scope:host:host(:not([disabled])) .cell-link:focus-visible,:scope:host:host(:not([disabled])) .cell-button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}:host([inverted]) .cell-link,:host([inverted]) .cell-button,:host([inverted]) .cell-checkbox,:host([inverted]) .cell-radio,:host([inverted]) .cell-switch{outline-color:var(--px-color-border-focus-outline-inverted)}", Fe = ':host([separator]):after{position:relative;content:"";display:block;width:100%;border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}.cell{color:var(--px-color-text-neutral-default);padding:var(--px-spacing-s-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l)}.cell ::slotted([slot="label"]){font-size:var(--px-text-size-label-l-mobile);font-weight:var(--px-font-weight-title)}.cell ::slotted([slot="description"]){font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-m-mobile)}.cell ::slotted([slot="suffix"]){text-align:right;font-weight:var(--px-font-weight-title)}.cell[compact]{padding-block:var(--px-spacing-xs-mobile)}:host([hoverable]:not([disabled])) .cell{cursor:pointer;text-decoration:none}:host([hoverable]:hover:not([disabled])) .cell{background-color:var(--px-color-background-state-hover-default)}:host([hoverable][disabled]) .cell{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}.contained{background-color:var( --cell-contained-background-color-default, var(--px-color-background-container-light-default) )}:host([hoverable]) .contained{border:var(--px-size-border-m) solid transparent}:host([hoverable]:hover:not([disabled])) .contained{background-color:var(--px-color-background-state-hover-bordered-default);border-color:var(--px-color-border-state-hover-default)}:host([hoverable][disabled]) .contained{background-color:var(--px-color-background-state-disabled-default)}@media only screen and (max-width: 47.9375em){:host([separator--mobile]):after{position:relative;content:"";display:block;width:100%;border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}.contained{border-radius:var( --cell-contained-border-radius-top-left--mobile, var(--px-radius-main) ) var( --cell-contained-border-radius-top-right--mobile, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-right--mobile, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-left--mobile, var(--px-radius-main) )}}@media only screen and (min-width: 48em){:host{display:block}.cell{padding:var(--px-padding-s-tablet)}.cell ::slotted([slot="label"]){font-size:var(--px-text-size-label-l-tablet)}.cell ::slotted([slot="description"]){font-size:var(--px-text-size-label-m-tablet)}.cell[compact]{padding-block:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 48em) and (max-width: 64em){:host([separator--tablet]):after{position:relative;content:"";display:block;width:100%;border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}.contained{border-radius:var( --cell-contained-border-radius-top-left--tablet, var(--px-radius-main) ) var( --cell-contained-border-radius-top-right--tablet, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-right--tablet, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-left--tablet, var(--px-radius-main) )}}@media only screen and (min-width: 64.0625em){:host{display:block}.cell{padding:var(--px-spacing-s-laptop)}.cell ::slotted([slot="label"]){font-size:var(--px-text-size-label-l-laptop)}.cell ::slotted([slot="description"]){font-size:var(--px-text-size-label-m-laptop)}.cell[compact]{padding-block:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){:host([separator--laptop]):after{position:relative;content:"";display:block;width:100%;border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}.contained{border-radius:var( --cell-contained-border-radius-top-left--laptop, var(--px-radius-main) ) var( --cell-contained-border-radius-top-right--laptop, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-right--laptop, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-left--laptop, var(--px-radius-main) )}}@media only screen and (min-width: 90.0625em){:host{display:block}:host([separator--desktop]):after{position:relative;content:"";display:block;width:100%;border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}.cell{padding:var(--px-spacing-s-desktop)}.cell ::slotted([slot="label"]){font-size:var(--px-text-size-label-l-desktop)}.cell ::slotted([slot="description"]){font-size:var(--px-text-size-label-m-desktop)}.cell[compact]{padding-block:var(--px-spacing-xs-desktop)}.contained{border-radius:var( --cell-contained-border-radius-top-left--desktop, var(--px-radius-main) ) var( --cell-contained-border-radius-top-right--desktop, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-right--desktop, var(--px-radius-main) ) var( --cell-contained-border-radius-bottom-left--desktop, var(--px-radius-main) )}}:host([inverted]):after{border-bottom-color:var(--px-color-border-main-inverted)}:host([inverted]) .cell{color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([hoverable]:hover:not([disabled])) .cell{background-color:var(--px-color-background-state-hover-inverted)}:host([inverted]):host([hoverable][disabled]) .cell{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]):host([hoverable][disabled]) .contained{background-color:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .contained{background-color:var( --cell-contained-background-color-inverted, var(--px-color-background-container-light-inverted) )}:host([inverted]):host([hoverable]:hover:not([disabled])) .contained{background-color:var( --px-color-background-state-hover-bordered-inverted );border-color:var(--px-color-border-state-hover-inverted)}', Ot = new CSSStyleSheet(), jt = new CSSStyleSheet();
1196
+ Ot.replaceSync(M);
1197
+ jt.replaceSync(Fe);
1198
+ const wt = ["secondary"], We = ["", "default", "top", "bottom", "none"], ht = class ht extends u {
1199
+ template() {
1200
+ return `
1201
+ <px-hstack gap="s" justify-content="space-between" align-items="center">
1202
+ <px-hstack gap="s" align-items="center">
1203
+ <slot name="prefix"></slot>
1204
+ <slot name="visual"></slot>
1205
+ <px-vstack gap="2xs">
1206
+ <slot name="label"></slot>
1207
+ <slot name="description"></slot>
1208
+ </px-vstack>
1209
+ </px-hstack>
1210
+ <px-hstack gap="s" align-items="center" class="cell-layout__suffix-action-container">
1211
+ <px-stack direction="column" gap="2xs" align-items="flex-end" class="cell__suffix-container">
1212
+ <slot name="suffix"></slot>
1213
+ </px-stack>
1214
+ <slot name="action-indicator"></slot>
1215
+ </px-hstack>
1216
+ </px-hstack>
1217
+ `;
1218
+ }
1219
+ constructor() {
1220
+ super(jt, Ot);
1221
+ const t = document.createElement(this.nativeName);
1222
+ t.classList.add("cell"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
1223
+ }
1224
+ connectedCallback() {
1225
+ if (super.connectedCallback(), this.$slotVisual) {
1226
+ const t = this.querySelector('px-img[slot="visual"]');
1227
+ t && L(t);
1228
+ }
1229
+ if (this.$slotSuffix) {
1230
+ const t = this.querySelectorAll(
1231
+ 'px-button-icon[slot="suffix"]'
1232
+ ), e = t.length > 0, r = t.length > 1;
1233
+ e && t.forEach((o) => {
1234
+ this.configureSlotSuffixButtonIcon(o);
1235
+ }), r && (this.$suffixContainer.gap = "s", this.$suffixContainer.direction = "row", this.$suffixContainer.alignItems = "center");
1236
+ }
1237
+ T(this);
1238
+ }
1239
+ static get observedAttributes() {
1240
+ return [
1241
+ ...super.observedAttributes,
1242
+ "inverted",
1243
+ "variant",
1244
+ "disabled",
1245
+ "separator",
1246
+ "separator--mobile",
1247
+ "separator--tablet",
1248
+ "separator--laptop",
1249
+ "separator--desktop",
1250
+ "radius",
1251
+ "radius--mobile",
1252
+ "radius--tablet",
1253
+ "radius--laptop",
1254
+ "radius--desktop",
1255
+ "background-color",
1256
+ "compact"
1257
+ ];
1258
+ }
1259
+ attributeChangedCallback(t, e, r) {
1260
+ if (e !== r)
1261
+ switch (t) {
1262
+ case "variant":
1263
+ Oe(this.$el, e, r);
1264
+ break;
1265
+ case "inverted":
1266
+ for (let o = 0; o < this.$children.length; o++)
1267
+ this.$children[o].hasAttribute("inverted") ? this.$children[o].removeAttribute("inverted") : this.$children[o].setAttribute("inverted", "");
1268
+ break;
1269
+ case "radius":
1270
+ case "radius--mobile":
1271
+ case "radius--tablet":
1272
+ case "radius--laptop":
1273
+ case "radius--desktop":
1274
+ this.updateRadius(t, e, r, We);
1275
+ break;
1276
+ case "background-color":
1277
+ je(
1278
+ this.$el,
1279
+ t,
1280
+ e,
1281
+ r,
1282
+ He
1283
+ );
1284
+ break;
1285
+ default:
1286
+ super.attributeChangedCallback(t, e, r);
1287
+ break;
1288
+ }
1289
+ }
1290
+ configureSlotSuffixButtonIcon(t) {
1291
+ t.hasAttribute("variant") ? y(
1292
+ wt,
1293
+ t.getAttribute("variant")
1294
+ ) || (console.error(
1295
+ `Wrong button-icon variant value for suffix. Allowed values are: ${wt.join(
1296
+ ", "
1297
+ )}.`
1298
+ ), t.setAttribute("variant", "secondary")) : t.setAttribute("variant", "secondary");
1299
+ }
1300
+ updateRadius(t, e, r, o) {
1301
+ if (!y(o, r)) {
1302
+ console.error(`${r} is not a valid ${t} value`);
1303
+ return;
1304
+ }
1305
+ const a = t.includes("--"), s = [];
1306
+ if (!a)
1307
+ this.separatorMobile || s.push("mobile"), this.separatorTablet || s.push("tablet"), this.separatorLaptop || s.push("laptop"), this.separatorDesktop || s.push("desktop");
1308
+ else {
1309
+ const l = t.split("--")[1];
1310
+ s.push(l);
1311
+ }
1312
+ s.forEach((l) => {
1313
+ e !== null && e !== "" && e !== "default" && this.updateStyle(l, e), r !== null && r !== "" && r !== "default" && this.updateStyle(l, r);
1314
+ });
1315
+ }
1316
+ updateStyle(t, e) {
1317
+ let r = [];
1318
+ e === "top" ? r = ["bottom-right", "bottom-left"] : e === "bottom" ? r = ["top-right", "top-left"] : e === "none" && (r = ["top-right", "bottom-right", "bottom-left", "top-left"]), r.forEach((o) => {
1319
+ this.$el.style.setProperty(
1320
+ `--cell-contained-border-radius-${o}--${t}`,
1321
+ "0"
1322
+ );
1323
+ });
1324
+ }
1325
+ get $children() {
1326
+ return this.querySelectorAll("px-cell > *");
1327
+ }
1328
+ get $slotVisual() {
1329
+ return this.querySelector('[slot="visual"]');
1330
+ }
1331
+ get $slotSuffix() {
1332
+ return this.querySelector('[slot="suffix"]');
1333
+ }
1334
+ get $suffixContainer() {
1335
+ return this.shadowRoot.querySelector(".cell__suffix-container");
1336
+ }
1337
+ get inverted() {
1338
+ return this.hasAttribute("inverted");
1339
+ }
1340
+ set inverted(t) {
1341
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
1342
+ }
1343
+ get variant() {
1344
+ return this.getAttribute("variant");
1345
+ }
1346
+ set variant(t) {
1347
+ this.setAttribute("variant", t);
1348
+ }
1349
+ get disabled() {
1350
+ return this.hasAttribute("disabled");
1351
+ }
1352
+ set disabled(t) {
1353
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
1354
+ }
1355
+ get separator() {
1356
+ return this.getAttribute("separator");
1357
+ }
1358
+ set separator(t) {
1359
+ this.setAttribute("separator", t);
1360
+ }
1361
+ get separatorMobile() {
1362
+ return this.getAttribute("separator--mobile");
1363
+ }
1364
+ set separatorMobile(t) {
1365
+ this.setAttribute("separator--mobile", t);
1366
+ }
1367
+ get separatorTablet() {
1368
+ return this.getAttribute("separator--tablet");
1369
+ }
1370
+ set separatorTablet(t) {
1371
+ this.setAttribute("separator--tablet", t);
1372
+ }
1373
+ get separatorLaptop() {
1374
+ return this.getAttribute("separator--laptop");
1375
+ }
1376
+ set separatorLaptop(t) {
1377
+ this.setAttribute("separator--laptop", t);
1378
+ }
1379
+ get separatorDesktop() {
1380
+ return this.getAttribute("separator--desktop");
1381
+ }
1382
+ set separatorDesktop(t) {
1383
+ this.setAttribute("separator--desktop", t);
1384
+ }
1385
+ get radius() {
1386
+ return this.getAttribute("radius");
1387
+ }
1388
+ set radius(t) {
1389
+ this.setAttribute("radius", t);
1390
+ }
1391
+ get radiusMobile() {
1392
+ return this.getAttribute("radius--mobile");
1393
+ }
1394
+ set radiusMobile(t) {
1395
+ this.setAttribute("radius--mobile", t);
1396
+ }
1397
+ get radiusTablet() {
1398
+ return this.getAttribute("radius--tablet");
1399
+ }
1400
+ set radiusTablet(t) {
1401
+ this.setAttribute("radius--tablet", t);
1402
+ }
1403
+ get radiusLaptop() {
1404
+ return this.getAttribute("radius--laptop");
1405
+ }
1406
+ set radiusLaptop(t) {
1407
+ this.setAttribute("radius--laptop", t);
1408
+ }
1409
+ get radiusDesktop() {
1410
+ return this.getAttribute("radius--desktop");
1411
+ }
1412
+ set radiusDesktop(t) {
1413
+ this.setAttribute("radius--desktop", t);
1414
+ }
1415
+ get backgroundColor() {
1416
+ return this.getAttribute("background-color");
1417
+ }
1418
+ set backgroundColor(t) {
1419
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
1420
+ }
1421
+ get compact() {
1422
+ return this.hasAttribute("compact");
1423
+ }
1424
+ set compact(t) {
1425
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
1426
+ }
1427
+ };
1428
+ ht.nativeName = "div";
1429
+ let et = ht;
1430
+ customElements.get("px-cell") || customElements.define("px-cell", et);
1431
+ const Ze = '.cell-link{text-decoration:none}.cell-link[noicon=""] px-icon{display:none}.cell-link px-icon{color:var(--px-color-icon-brand-default)}.cell-link[aria-disabled=true] px-icon{color:var(--px-color-icon-state-disabled-default)}[compact] .cell-link{padding-block:var(--px-spacing-xs-mobile)}:host([inverted]) .cell-link px-icon{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .cell-link[aria-disabled=true] px-icon{color:var(--px-color-icon-state-disabled-inverted)}', Ft = new CSSStyleSheet();
1432
+ Ft.replaceSync(M);
1433
+ const Wt = new CSSStyleSheet();
1434
+ Wt.replaceSync(Ze);
1435
+ const ut = class ut extends u {
1436
+ template() {
1437
+ return `
1438
+ <px-cell hoverable>
1439
+ <slot name="visual" slot="visual"></slot>
1440
+ <slot name="label" slot="label"></slot>
1441
+ <slot name="description" slot="description"></slot>
1442
+ <slot name="suffix" slot="suffix"></slot>
1443
+ <px-icon
1444
+ name="chevron_right"
1445
+ slot="action-indicator"
1446
+ from="lavender"
1447
+ size="m"
1448
+ color="inherit"
1449
+ ></px-icon>
1450
+ </px-cell>
1451
+ `;
1452
+ }
1453
+ constructor() {
1454
+ super(Wt, Ft);
1455
+ const t = document.createElement(this.nativeName);
1456
+ t.classList.add("cell-link"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
1457
+ }
1458
+ connectedCallback() {
1459
+ if (super.connectedCallback(), this.$slotVisual) {
1460
+ const e = this.querySelector('px-img[slot="visual"]');
1461
+ e && L(e);
1462
+ }
1463
+ this.hasAttribute("target") && this.getAttribute("target") === "_blank" && (this.$pxIcon.setAttribute("name", "target_blank"), this.$pxIcon.setAttribute(
1464
+ "aria-label",
1465
+ this.targetBlankAriaLabel ? this.targetBlankAriaLabel : "Opens in a new tab"
1466
+ )), T(this);
1467
+ }
1468
+ static get observedAttributes() {
1469
+ return [
1470
+ ...super.observedAttributes,
1471
+ "inverted",
1472
+ "variant",
1473
+ "disabled",
1474
+ "separator",
1475
+ "separator--mobile",
1476
+ "separator--tablet",
1477
+ "separator--laptop",
1478
+ "separator--desktop",
1479
+ "radius",
1480
+ "radius--mobile",
1481
+ "radius--tablet",
1482
+ "radius--laptop",
1483
+ "radius--desktop",
1484
+ "target-blank-aria-label",
1485
+ "background-color",
1486
+ "noicon",
1487
+ "compact"
1488
+ ];
1489
+ }
1490
+ attributeChangedCallback(t, e, r) {
1491
+ if (e !== r)
1492
+ switch (t) {
1493
+ case "variant":
1494
+ this.$cell.variant = this.variant;
1495
+ break;
1496
+ case "inverted":
1497
+ O(this.$cell, this.$children, this.inverted, [
1498
+ this.$pxIcon
1499
+ ]);
1500
+ break;
1501
+ case "disabled":
1502
+ Ht(this.$cell, this.$children, this.disabled, [], {
1503
+ ariaEl: this.$el,
1504
+ setAria: !0,
1505
+ setTabIndex: !0
1506
+ });
1507
+ break;
1508
+ case "radius":
1509
+ case "radius--mobile":
1510
+ case "radius--tablet":
1511
+ case "radius--laptop":
1512
+ case "radius--desktop":
1513
+ case "separator":
1514
+ case "separator--mobile":
1515
+ case "separator--tablet":
1516
+ case "separator--laptop":
1517
+ case "separator--desktop":
1518
+ case "background-color":
1519
+ case "compact":
1520
+ this.$cell.setAttribute(t, this.getAttribute(t) || "");
1521
+ break;
1522
+ case "target-blank-aria-label":
1523
+ this.$pxIcon && this.$pxIcon.setAttribute(
1524
+ "aria-label",
1525
+ this.targetBlankAriaLabel || "Opens in a new tab"
1526
+ );
1527
+ break;
1528
+ default:
1529
+ super.attributeChangedCallback(t, e, r);
1530
+ break;
1531
+ }
1532
+ }
1533
+ get $cell() {
1534
+ return this.shadowRoot.querySelector("px-cell");
1535
+ }
1536
+ get $slotVisual() {
1537
+ return this.querySelector('[slot="visual"]');
1538
+ }
1539
+ get $children() {
1540
+ return this.querySelectorAll("px-cell-link > *");
1541
+ }
1542
+ get $pxIcon() {
1543
+ return this.shadowRoot.querySelector("px-icon");
1544
+ }
1545
+ get inverted() {
1546
+ return this.hasAttribute("inverted");
1547
+ }
1548
+ set inverted(t) {
1549
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
1550
+ }
1551
+ get variant() {
1552
+ return this.getAttribute("variant");
1553
+ }
1554
+ set variant(t) {
1555
+ this.setAttribute("variant", t);
1556
+ }
1557
+ get disabled() {
1558
+ return this.hasAttribute("disabled");
1559
+ }
1560
+ set disabled(t) {
1561
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
1562
+ }
1563
+ get separator() {
1564
+ return this.getAttribute("separator");
1565
+ }
1566
+ set separator(t) {
1567
+ this.setAttribute("separator", t);
1568
+ }
1569
+ get separatorMobile() {
1570
+ return this.getAttribute("separator--mobile");
1571
+ }
1572
+ set separatorMobile(t) {
1573
+ this.setAttribute("separator--mobile", t);
1574
+ }
1575
+ get separatorTablet() {
1576
+ return this.getAttribute("separator--tablet");
1577
+ }
1578
+ set separatorTablet(t) {
1579
+ this.setAttribute("separator--tablet", t);
1580
+ }
1581
+ get separatorLaptop() {
1582
+ return this.getAttribute("separator--laptop");
1583
+ }
1584
+ set separatorLaptop(t) {
1585
+ this.setAttribute("separator--laptop", t);
1586
+ }
1587
+ get separatorDesktop() {
1588
+ return this.getAttribute("separator--desktop");
1589
+ }
1590
+ set separatorDesktop(t) {
1591
+ this.setAttribute("separator--desktop", t);
1592
+ }
1593
+ get radius() {
1594
+ return this.getAttribute("radius");
1595
+ }
1596
+ set radius(t) {
1597
+ this.setAttribute("radius", t);
1598
+ }
1599
+ get radiusMobile() {
1600
+ return this.getAttribute("radius--mobile");
1601
+ }
1602
+ set radiusMobile(t) {
1603
+ this.setAttribute("radius--mobile", t);
1604
+ }
1605
+ get radiusTablet() {
1606
+ return this.getAttribute("radius--tablet");
1607
+ }
1608
+ set radiusTablet(t) {
1609
+ this.setAttribute("radius--tablet", t);
1610
+ }
1611
+ get radiusLaptop() {
1612
+ return this.getAttribute("radius--laptop");
1613
+ }
1614
+ set radiusLaptop(t) {
1615
+ this.setAttribute("radius--laptop", t);
1616
+ }
1617
+ get radiusDesktop() {
1618
+ return this.getAttribute("radius--desktop");
1619
+ }
1620
+ set radiusDesktop(t) {
1621
+ this.setAttribute("radius--desktop", t);
1622
+ }
1623
+ get targetBlankAriaLabel() {
1624
+ return this.getAttribute("target-blank-aria-label");
1625
+ }
1626
+ set targetBlankAriaLabel(t) {
1627
+ this.setAttribute("target-blank-aria-label", t);
1628
+ }
1629
+ get backgroundColor() {
1630
+ return this.getAttribute("background-color");
1631
+ }
1632
+ set backgroundColor(t) {
1633
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
1634
+ }
1635
+ get compact() {
1636
+ return this.hasAttribute("compact");
1637
+ }
1638
+ set compact(t) {
1639
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
1640
+ }
1641
+ };
1642
+ ut.nativeName = "a";
1643
+ let rt = ut;
1644
+ customElements.get("px-cell-link") || customElements.define("px-cell-link", rt);
1645
+ const Ne = ".cell-button{padding:0;background:none;border:none;text-align:left;font-size:inherit}", Zt = new CSSStyleSheet();
1646
+ Zt.replaceSync(M);
1647
+ const Nt = new CSSStyleSheet();
1648
+ Nt.replaceSync(Ne);
1649
+ const gt = class gt extends u {
1650
+ template() {
1651
+ return `
1652
+ <px-cell hoverable>
1653
+ <slot name="visual" slot="visual"></slot>
1654
+ <slot name="label" slot="label"></slot>
1655
+ <slot name="description" slot="description"></slot>
1656
+ <slot name="suffix" slot="suffix"></slot>
1657
+ </px-cell>
1658
+ `;
1659
+ }
1660
+ constructor() {
1661
+ super(Nt, Zt);
1662
+ const t = document.createElement(this.nativeName);
1663
+ t.classList.add("cell-button"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
1664
+ }
1665
+ connectedCallback() {
1666
+ if (super.connectedCallback(), this.$slotVisual) {
1667
+ const t = this.querySelector('px-img[slot="visual"]');
1668
+ t && L(t);
1669
+ }
1670
+ T(this);
1671
+ }
1672
+ static get observedAttributes() {
1673
+ return [
1674
+ ...super.observedAttributes,
1675
+ "inverted",
1676
+ "variant",
1677
+ "disabled",
1678
+ "separator",
1679
+ "separator--mobile",
1680
+ "separator--tablet",
1681
+ "separator--laptop",
1682
+ "separator--desktop",
1683
+ "radius",
1684
+ "radius--mobile",
1685
+ "radius--tablet",
1686
+ "radius--laptop",
1687
+ "radius--desktop",
1688
+ "background-color",
1689
+ "compact"
1690
+ ];
1691
+ }
1692
+ attributeChangedCallback(t, e, r) {
1693
+ if (e !== r)
1694
+ switch (t) {
1695
+ case "variant":
1696
+ this.$cell.variant = this.variant;
1697
+ break;
1698
+ case "inverted":
1699
+ O(this.$cell, this.$children, this.inverted);
1700
+ break;
1701
+ case "disabled":
1702
+ Ht(this.$cell, this.$children, this.disabled, [], {
1703
+ ariaEl: this.$el,
1704
+ setAria: !0,
1705
+ setTabIndex: !0
1706
+ });
1707
+ break;
1708
+ case "radius":
1709
+ case "radius--mobile":
1710
+ case "radius--tablet":
1711
+ case "radius--laptop":
1712
+ case "radius--desktop":
1713
+ case "separator":
1714
+ case "separator--mobile":
1715
+ case "separator--tablet":
1716
+ case "separator--laptop":
1717
+ case "separator--desktop":
1718
+ case "background-color":
1719
+ case "compact":
1720
+ this.$cell.setAttribute(t, this.getAttribute(t) || "");
1721
+ break;
1722
+ default:
1723
+ super.attributeChangedCallback(t, e, r);
1724
+ break;
1725
+ }
1726
+ }
1727
+ get $cell() {
1728
+ return this.shadowRoot.querySelector("px-cell");
1729
+ }
1730
+ get $slotVisual() {
1731
+ return this.querySelector('[slot="visual"]');
1732
+ }
1733
+ get $children() {
1734
+ return this.querySelectorAll("px-cell-button > *");
1735
+ }
1736
+ get inverted() {
1737
+ return this.hasAttribute("inverted");
1738
+ }
1739
+ set inverted(t) {
1740
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
1741
+ }
1742
+ get variant() {
1743
+ return this.getAttribute("variant");
1744
+ }
1745
+ set variant(t) {
1746
+ this.setAttribute("variant", t);
1747
+ }
1748
+ get disabled() {
1749
+ return this.hasAttribute("disabled");
1750
+ }
1751
+ set disabled(t) {
1752
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
1753
+ }
1754
+ get separator() {
1755
+ return this.getAttribute("separator");
1756
+ }
1757
+ set separator(t) {
1758
+ this.setAttribute("separator", t);
1759
+ }
1760
+ get separatorMobile() {
1761
+ return this.getAttribute("separator--mobile");
1762
+ }
1763
+ set separatorMobile(t) {
1764
+ this.setAttribute("separator--mobile", t);
1765
+ }
1766
+ get separatorTablet() {
1767
+ return this.getAttribute("separator--tablet");
1768
+ }
1769
+ set separatorTablet(t) {
1770
+ this.setAttribute("separator--tablet", t);
1771
+ }
1772
+ get separatorLaptop() {
1773
+ return this.getAttribute("separator--laptop");
1774
+ }
1775
+ set separatorLaptop(t) {
1776
+ this.setAttribute("separator--laptop", t);
1777
+ }
1778
+ get separatorDesktop() {
1779
+ return this.getAttribute("separator--desktop");
1780
+ }
1781
+ set separatorDesktop(t) {
1782
+ this.setAttribute("separator--desktop", t);
1783
+ }
1784
+ get radius() {
1785
+ return this.getAttribute("radius");
1786
+ }
1787
+ set radius(t) {
1788
+ this.setAttribute("radius", t);
1789
+ }
1790
+ get radiusMobile() {
1791
+ return this.getAttribute("radius--mobile");
1792
+ }
1793
+ set radiusMobile(t) {
1794
+ this.setAttribute("radius--mobile", t);
1795
+ }
1796
+ get radiusTablet() {
1797
+ return this.getAttribute("radius--tablet");
1798
+ }
1799
+ set radiusTablet(t) {
1800
+ this.setAttribute("radius--tablet", t);
1801
+ }
1802
+ get radiusLaptop() {
1803
+ return this.getAttribute("radius--laptop");
1804
+ }
1805
+ set radiusLaptop(t) {
1806
+ this.setAttribute("radius--laptop", t);
1807
+ }
1808
+ get radiusDesktop() {
1809
+ return this.getAttribute("radius--desktop");
1810
+ }
1811
+ set radiusDesktop(t) {
1812
+ this.setAttribute("radius--desktop", t);
1813
+ }
1814
+ get backgroundColor() {
1815
+ return this.getAttribute("background-color");
1816
+ }
1817
+ set backgroundColor(t) {
1818
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
1819
+ }
1820
+ get compact() {
1821
+ return this.hasAttribute("compact");
1822
+ }
1823
+ set compact(t) {
1824
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
1825
+ }
1826
+ };
1827
+ gt.nativeName = "button";
1828
+ let ot = gt;
1829
+ customElements.get("px-cell-button") || customElements.define("px-cell-button", ot);
1830
+ const Ue = `:host{display:block}input{font-size:var(--px-font-size-base)}.checkbox{display:flex;align-items:flex-start;gap:var(--px-spacing-s-mobile)}.checkbox.all-slots-empty{gap:0}label{font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:calc(var(--px-line-height-ratio-l) * 1em);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}:host(:not([variant="selectable-tag"])) input{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;border-radius:var(--px-radius-main);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);width:var(--px-size-icon-m);height:var(--px-size-icon-m);flex-shrink:0;transition:box-shadow .3s ease-out,background-color .3s;animation:anim-pop .2s cubic-bezier(.9,-.13,.61,.99) forwards .1s}:host(:not([variant="selectable-tag"])) input:focus-visible{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:host([checked]) :is(:host(:not([variant="selectable-tag"])) input){background-color:var(--px-color-background-container-primary-default);border-color:var(--px-color-border-none-default);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E");background-position:center center;background-repeat:no-repeat}:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)),:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){border:var(--px-size-border-l) solid var(--px-color-border-state-hover-default)}:host([checked]) :is(:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))),:host([checked]) :is(:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default),0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default)}:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){cursor:pointer}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input){background-color:var(--px-color-background-state-disabled-default);border-color:var(--px-color-border-main-default)}:host([checked]) :is(:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%23000' fill-opacity='0.12'/%3E%3C/svg%3E")}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input)+label{color:var(--px-color-text-state-disabled-default)}:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input){border-color:var(--px-color-border-purpose-error-default)}:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){background-color:var(--px-color-background-purpose-error-default)}:host(:hover) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))),:host([hover]) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))){background-color:var(--px-color-background-purpose-error-default);border-color:var(--px-color-border-purpose-error-default);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default),0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default)}:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input){border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input):focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([checked]) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)){background-color:var(--px-color-background-container-primary-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%235C2D91'/%3E%3C/svg%3E")}:host(:hover) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input))),:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input))){border-color:var(--px-color-border-state-hover-inverted)}:host([checked]) :is(:host(:hover) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)))),:host([checked]) :is(:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted),0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted)}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)){background-color:var(--px-color-background-state-disabled-inverted);border-color:var(--px-color-border-main-inverted)}:host([checked]) :is(:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input))){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white' fill-opacity='0.08'/%3E%3C/svg%3E")}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input))+label{color:var(--px-color-text-state-disabled-inverted)}:host([state="error"]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)){border-color:var(--px-color-border-purpose-error-inverted)}:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input))){background-color:var(--px-color-background-purpose-error-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E")}:host(:hover) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)))),:host([hover]) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)))){background-color:var(--px-color-background-purpose-error-inverted);border-color:var(--px-color-border-purpose-error-inverted);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted),0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted)}:host([inverted]) :is(:host(:not([variant="selectable-tag"])) input)+label{color:var(--px-color-text-neutral-inverted)}:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8558_6622)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8558_6622'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}:host([disabled]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_408)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='black' fill-opacity='0.12'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_408'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='%235C2D91'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}:host([disabled]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input))){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6817)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white' fill-opacity='0.08'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6817'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}:host([state="error"]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input))){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6256)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6256'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}:host(:hover) :is(:host([state="error"]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input)))),:host([hover]) :is(:host([state="error"]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant="selectable-tag"])) input)))){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}.checkbox.selectable-tag{gap:0}:host([variant="selectable-tag"]){display:inline-flex}:host([variant="selectable-tag"]) label{line-height:var(--px-line-height-ratio-l);display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);border-radius:var(--px-radius-pill);transition:all .2s ease-in-out 0s}:host([variant="selectable-tag"]) input{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}:host([variant="selectable-tag"]) input:focus-visible+label{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:host([variant="selectable-tag"]) input:hover:not([disabled],[aria-disabled=true],.loading)+label,:host([variant="selectable-tag"]) input.hover:not([disabled],[aria-disabled=true],.loading)+label{color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default);border-color:var(--px-color-border-state-hover-default);cursor:pointer}:host([variant="selectable-tag"]) input:active:not([disabled],[aria-disabled=true],.loading)+label{background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}:host([variant="selectable-tag"]) input:checked+label,:host([variant="selectable-tag"]) input:checked+label:hover{background-color:var(--px-color-background-state-active-default);border-color:var(--px-color-border-none-default);color:var(--px-color-text-state-active-inverted)}:host([variant="selectable-tag"]) input[disabled]+label{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}:host([variant="selectable-tag"]):host([inverted]) label{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:hover:not([disabled],[aria-disabled=true])+label,:host([variant="selectable-tag"]):host([inverted]) input.hover:not([disabled],[aria-disabled=true])+label{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:active:not([disabled],[aria-disabled=true])+label{background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:checked+label,:host([variant="selectable-tag"]):host([inverted]) input:checked+label:hover{background-color:var(--px-color-background-state-active-inverted);border-color:var(--px-color-border-none-inverted);color:var(--px-color-text-state-active-default)}:host([variant="selectable-tag"]):host([inverted]) input[disabled]+label{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:focus-visible+label{outline-color:var(--px-color-border-focus-outline-inverted)}@media only screen and (min-width: 768px){.checkbox{gap:var(--px-spacing-s-tablet)}:host(:not([variant="selectable-tag"])) input:focus-visible,:host([variant="selectable-tag"]) input:focus-visible+label{outline-width:var(--px-focus-outline-tablet);outline-offset:var(--px-focus-offset-tablet)}label{font-size:var(--px-text-size-label-m-tablet)}}@media only screen and (min-width: 1025px){.checkbox{gap:var(--px-spacing-s-desktop)}:host(:not([variant="selectable-tag"])) input:focus-visible,:host([variant="selectable-tag"]) input:focus-visible+label{outline-width:var(--px-focus-outline-desktop);outline-offset:var(--px-focus-offset-desktop)}label{font-size:var(--px-text-size-label-m-desktop)}}@keyframes anim-pop{0%{transform:scale(0)}to{transform:scale(1)}}`, Ut = new CSSStyleSheet();
1831
+ Ut.replaceSync(Ue);
1832
+ const Ye = ["", "default", "selectable-tag"], Yt = ["", "error"], vt = class vt extends u {
1833
+ constructor() {
1834
+ var t;
1835
+ super(Ut), this.template = () => `<div class="checkbox">
1836
+ <input type="checkbox"/>
1837
+ <label><slot name="before"></slot><slot name="label"></slot></label>
1838
+ </div>`, this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this);
1839
+ }
1840
+ static get observedAttributes() {
1841
+ return [
1842
+ ...super.observedAttributes,
1843
+ "state",
1844
+ "variant",
1845
+ "indeterminate",
1846
+ "inverted",
1847
+ "hover"
1848
+ ];
1849
+ }
1850
+ connectedCallback() {
1851
+ this.hasAttribute("name") || console.error(
1852
+ '<px-checkbox> requires a "name" attribute to function properly.'
1853
+ ), this.$el.addEventListener("change", () => {
1854
+ var e;
1855
+ const t = new Event("change", {
1856
+ bubbles: !0,
1857
+ composed: !0
1858
+ // Allow the event to pass through shadow DOM boundaries
1859
+ });
1860
+ this.dispatchEvent(t), (e = this.internals) == null || e.setFormValue(this.formData()), this.$el.checked ? this.setAttribute("checked", "") : this.removeAttribute("checked");
1861
+ }), this.setupForId(), this.hasAttribute("checked") && (this.checked = !0), this.$iconSlot && (this.$iconSlot.setAttribute("size", "xs"), this.$iconSlot.setAttribute("color", "inherit")), !this.$labelSlot && !this.$iconSlot && this.$checkbox.classList.add("all-slots-empty");
1862
+ }
1863
+ attributeChangedCallback(t, e, r) {
1864
+ if (e !== r)
1865
+ switch (t) {
1866
+ case "state":
1867
+ this.updateAttribute(
1868
+ e,
1869
+ r,
1870
+ Yt,
1871
+ t
1872
+ );
1873
+ break;
1874
+ case "variant":
1875
+ this.updateAttribute(
1876
+ e,
1877
+ r,
1878
+ Ye,
1879
+ t
1880
+ );
1881
+ break;
1882
+ case "hover":
1883
+ this.$el.classList.toggle("hover");
1884
+ break;
1885
+ default:
1886
+ super.attributeChangedCallback(t, e, r);
1887
+ break;
1888
+ }
1889
+ }
1890
+ updateAttribute(t, e, r, o) {
1891
+ var a, s;
1892
+ if (!this.checkName(r, e)) {
1893
+ console.error(`${e} is not a valid ${o} value`);
1894
+ return;
1895
+ }
1896
+ t !== null && (o === "variant" ? (a = this.$checkbox) == null || a.classList.toggle(t) : this.$el.classList.toggle(t)), e !== null && (o === "variant" ? (s = this.$checkbox) == null || s.classList.toggle(e) : this.$el.classList.toggle(e));
1897
+ }
1898
+ formData() {
1899
+ if (this.$el.name) {
1900
+ const t = new FormData();
1901
+ return t.append(this.getAttribute("name"), this.$el.value), t;
1902
+ }
1903
+ }
1904
+ // Form-associated callbacks
1905
+ static get formAssociated() {
1906
+ return !0;
1907
+ }
1908
+ // Set default behavior when the element is attached to a form
1909
+ formResetCallback() {
1910
+ this.checked = !1;
1911
+ }
1912
+ formStateRestoreCallback(t) {
1913
+ this.checked = t;
1914
+ }
1915
+ setupForId() {
1916
+ const t = Math.random().toString(36).substr(2, 9);
1917
+ this.$el.setAttribute("id", t), this.$label && this.$label.setAttribute("for", t);
1918
+ }
1919
+ get variant() {
1920
+ return this.getAttribute("variant");
1921
+ }
1922
+ set variant(t) {
1923
+ this.setAttribute("variant", t);
1924
+ }
1925
+ get state() {
1926
+ return this.getAttribute("state");
1927
+ }
1928
+ set state(t) {
1929
+ this.setAttribute("state", t);
1930
+ }
1931
+ get $checkbox() {
1932
+ return this.shadowRoot.querySelector(".checkbox");
1933
+ }
1934
+ get $label() {
1935
+ return this.shadowRoot.querySelector("label");
1936
+ }
1937
+ get $labelSlot() {
1938
+ return this.querySelector('[slot="label"]');
1939
+ }
1940
+ get $iconSlot() {
1941
+ return this.querySelector('px-icon[slot="before"]');
1942
+ }
1943
+ get inverted() {
1944
+ return this.getAttribute("inverted");
1945
+ }
1946
+ set inverted(t) {
1947
+ this.setAttribute("inverted", t);
1948
+ }
1949
+ get checked() {
1950
+ return this.$el.checked;
1951
+ }
1952
+ set checked(t) {
1953
+ this.$el.checked = t, t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
1954
+ }
1955
+ };
1956
+ vt.nativeName = "input";
1957
+ let it = vt;
1958
+ customElements.get("px-checkbox") || customElements.define("px-checkbox", it);
1959
+ const Gt = new CSSStyleSheet();
1960
+ Gt.replaceSync(M);
1961
+ const Ge = ["", "left", "right"];
1962
+ class Ke extends E {
1963
+ template() {
1964
+ return `
1965
+ <div class="cell-checkbox">
1966
+ <px-cell hoverable>
1967
+ <px-checkbox slot="prefix" aria-hidden="true" tabindex="-1" ${this.name ? 'name="${this.name"' : ""} ${this.value ? 'value="${this.value"' : ""}></px-checkbox>
1968
+ <slot name="visual" slot="visual"></slot>
1969
+ <slot name="label" slot="label"></slot>
1970
+ <slot name="description" slot="description"></slot>
1971
+ <slot name="suffix" slot="suffix"></slot>
1972
+ </px-cell>
1973
+ `;
1974
+ }
1975
+ constructor() {
1976
+ var t;
1977
+ super(Gt), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0, this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`);
1978
+ }
1979
+ connectedCallback() {
1980
+ if (this.$slotVisual) {
1981
+ const t = this.querySelector('px-img[slot="visual"]');
1982
+ t && L(t);
1983
+ }
1984
+ this.addEventListener("mouseover", () => {
1985
+ this.$checkbox.setAttribute("hover", "");
1986
+ }), this.addEventListener("mouseout", () => {
1987
+ this.$checkbox.removeAttribute("hover");
1988
+ }), this.addEventListener("keypress", (t) => {
1989
+ switch (t.stopPropagation(), t.preventDefault(), t.code) {
1990
+ case "Space":
1991
+ this.click();
1992
+ break;
1993
+ }
1994
+ }), this.addEventListener("click", (t) => {
1995
+ this.checked = !this.checked, t.stopPropagation(), t.preventDefault();
1996
+ }), this.hasAttribute("checked") && (this.checked = !0), T(this);
1997
+ }
1998
+ static get observedAttributes() {
1999
+ return [
2000
+ "inverted",
2001
+ "variant",
2002
+ "disabled",
2003
+ "separator",
2004
+ "separator--mobile",
2005
+ "separator--tablet",
2006
+ "separator--laptop",
2007
+ "separator--desktop",
2008
+ "radius",
2009
+ "radius--mobile",
2010
+ "radius--tablet",
2011
+ "radius--laptop",
2012
+ "radius--desktop",
2013
+ "name",
2014
+ "value",
2015
+ "state",
2016
+ "checked",
2017
+ "checkbox-position",
2018
+ "background-color",
2019
+ "compact"
2020
+ ];
2021
+ }
2022
+ attributeChangedCallback(t, e, r) {
2023
+ if (e !== r)
2024
+ switch (t) {
2025
+ case "variant":
2026
+ this.$cell.variant = this.variant;
2027
+ break;
2028
+ case "inverted":
2029
+ O(this.$cell, this.$children, this.inverted, [
2030
+ this.$checkbox
2031
+ ]);
2032
+ break;
2033
+ case "disabled":
2034
+ this.handleDisabledAttributeChange(r !== null);
2035
+ break;
2036
+ case "radius":
2037
+ case "radius--mobile":
2038
+ case "radius--tablet":
2039
+ case "radius--laptop":
2040
+ case "radius--desktop":
2041
+ case "separator":
2042
+ case "separator--mobile":
2043
+ case "separator--tablet":
2044
+ case "separator--laptop":
2045
+ case "separator--desktop":
2046
+ case "background-color":
2047
+ case "compact":
2048
+ this.$cell.setAttribute(t, this.getAttribute(t) || "");
2049
+ break;
2050
+ case "name":
2051
+ case "value":
2052
+ this.$checkbox && this.$checkbox.setAttribute(t, r);
2053
+ break;
2054
+ case "state":
2055
+ if (this.$checkbox)
2056
+ if (this.checkName(Yt, r))
2057
+ this.$checkbox.setAttribute("state", r);
2058
+ else {
2059
+ console.error(`${r} is not a valid state value`);
2060
+ return;
2061
+ }
2062
+ break;
2063
+ case "checked":
2064
+ this.handleCheckedAttributeChange(r);
2065
+ break;
2066
+ case "checkbox-position":
2067
+ this.handleCheckboxPositionChange(r);
2068
+ break;
2069
+ }
2070
+ }
2071
+ handleDisabledAttributeChange(t) {
2072
+ t ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.$cell.disabled = !0, this.$checkbox.setAttribute("disabled", ""), this.$children.forEach((e) => {
2073
+ e.hasAttribute("disabled") || e.setAttribute("disabled", "");
2074
+ })) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.$cell.disabled = !1, this.$checkbox.removeAttribute("disabled"), this.$children.forEach((e) => {
2075
+ e.hasAttribute("disabled") && e.removeAttribute("disabled");
2076
+ }));
2077
+ }
2078
+ handleCheckedAttributeChange(t) {
2079
+ var e;
2080
+ (e = this.internals) == null || e.setFormValue(this.formData()), t === null ? (this.internals && (this.internals.ariaChecked = "false"), this.checked = !1, this.$checkbox && this.$checkbox.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.checked = !0, this.$checkbox && this.$checkbox.setAttribute("checked", ""), this.dispatchEvent(
2081
+ new Event("change", {
2082
+ bubbles: !0,
2083
+ composed: !0
2084
+ // Allow the event to pass through shadow DOM boundaries
2085
+ })
2086
+ ));
2087
+ }
2088
+ handleCheckboxPositionChange(t) {
2089
+ if (!this.checkName(Ge, t)) {
2090
+ console.error(`${t} is not a valid position value`);
2091
+ return;
2092
+ }
2093
+ this.$checkbox && (t === "" || t === "left" ? this.$checkbox.setAttribute("slot", "prefix") : t === "right" && this.$checkbox.setAttribute("slot", "action-indicator"));
2094
+ }
2095
+ // Form-associated callbacks
2096
+ static get formAssociated() {
2097
+ return !0;
2098
+ }
2099
+ // Set default behavior when the element is attached to a form
2100
+ formResetCallback() {
2101
+ this.checked = !1;
2102
+ }
2103
+ formStateRestoreCallback(t) {
2104
+ this.checked = t;
2105
+ }
2106
+ formData() {
2107
+ if (this.name) {
2108
+ const t = new FormData(), e = this.getAttribute("name");
2109
+ return e && (this.checked ? t.set(e, this.value) : t.delete(e)), t;
2110
+ }
2111
+ }
2112
+ get $cell() {
2113
+ return this.shadowRoot.querySelector("px-cell");
2114
+ }
2115
+ get $el() {
2116
+ return this.shadowRoot.querySelector(".cell-checkbox");
2117
+ }
2118
+ get $checkbox() {
2119
+ return this.shadowRoot.querySelector("px-checkbox");
2120
+ }
2121
+ get $slotVisual() {
2122
+ return this.querySelector('[slot="visual"]');
2123
+ }
2124
+ get $children() {
2125
+ return this.querySelectorAll("px-cell-checkbox > *");
2126
+ }
2127
+ get inverted() {
2128
+ return this.hasAttribute("inverted");
2129
+ }
2130
+ set inverted(t) {
2131
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
2132
+ }
2133
+ get variant() {
2134
+ return this.getAttribute("variant");
2135
+ }
2136
+ set variant(t) {
2137
+ this.setAttribute("variant", t);
2138
+ }
2139
+ get disabled() {
2140
+ return this.hasAttribute("disabled");
2141
+ }
2142
+ set disabled(t) {
2143
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
2144
+ }
2145
+ get separator() {
2146
+ return this.getAttribute("separator");
2147
+ }
2148
+ set separator(t) {
2149
+ this.setAttribute("separator", t);
2150
+ }
2151
+ get separatorMobile() {
2152
+ return this.getAttribute("separator--mobile");
2153
+ }
2154
+ set separatorMobile(t) {
2155
+ this.setAttribute("separator--mobile", t);
2156
+ }
2157
+ get separatorTablet() {
2158
+ return this.getAttribute("separator--tablet");
2159
+ }
2160
+ set separatorTablet(t) {
2161
+ this.setAttribute("separator--tablet", t);
2162
+ }
2163
+ get separatorLaptop() {
2164
+ return this.getAttribute("separator--laptop");
2165
+ }
2166
+ set separatorLaptop(t) {
2167
+ this.setAttribute("separator--laptop", t);
2168
+ }
2169
+ get separatorDesktop() {
2170
+ return this.getAttribute("separator--desktop");
2171
+ }
2172
+ set separatorDesktop(t) {
2173
+ this.setAttribute("separator--desktop", t);
2174
+ }
2175
+ get radius() {
2176
+ return this.getAttribute("radius");
2177
+ }
2178
+ set radius(t) {
2179
+ this.setAttribute("radius", t);
2180
+ }
2181
+ get radiusMobile() {
2182
+ return this.getAttribute("radius--mobile");
2183
+ }
2184
+ set radiusMobile(t) {
2185
+ this.setAttribute("radius--mobile", t);
2186
+ }
2187
+ get radiusTablet() {
2188
+ return this.getAttribute("radius--tablet");
2189
+ }
2190
+ set radiusTablet(t) {
2191
+ this.setAttribute("radius--tablet", t);
2192
+ }
2193
+ get radiusLaptop() {
2194
+ return this.getAttribute("radius--laptop");
2195
+ }
2196
+ set radiusLaptop(t) {
2197
+ this.setAttribute("radius--laptop", t);
2198
+ }
2199
+ get radiusDesktop() {
2200
+ return this.getAttribute("radius--desktop");
2201
+ }
2202
+ set radiusDesktop(t) {
2203
+ this.setAttribute("radius--desktop", t);
2204
+ }
2205
+ get checked() {
2206
+ return this.hasAttribute("checked");
2207
+ }
2208
+ set checked(t) {
2209
+ t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
2210
+ }
2211
+ get name() {
2212
+ return this.getAttribute("name");
2213
+ }
2214
+ set name(t) {
2215
+ t ? this.setAttribute("name", t) : this.removeAttribute("name");
2216
+ }
2217
+ get state() {
2218
+ return this.getAttribute("state");
2219
+ }
2220
+ set state(t) {
2221
+ t ? this.setAttribute("state", t) : this.removeAttribute("state");
2222
+ }
2223
+ get value() {
2224
+ return this.getAttribute("value");
2225
+ }
2226
+ set value(t) {
2227
+ t ? this.setAttribute("value", t) : this.removeAttribute("value");
2228
+ }
2229
+ get checkboxPosition() {
2230
+ return this.getAttribute("checkbox-position");
2231
+ }
2232
+ set checkboxPosition(t) {
2233
+ t ? this.setAttribute("checkbox-position", t) : this.removeAttribute("checkbox-position");
2234
+ }
2235
+ get backgroundColor() {
2236
+ return this.getAttribute("background-color");
2237
+ }
2238
+ set backgroundColor(t) {
2239
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
2240
+ }
2241
+ get compact() {
2242
+ return this.hasAttribute("compact");
2243
+ }
2244
+ set compact(t) {
2245
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
2246
+ }
2247
+ }
2248
+ customElements.get("px-cell-checkbox") || customElements.define("px-cell-checkbox", Ke);
2249
+ const Kt = new CSSStyleSheet();
2250
+ Kt.replaceSync(M);
2251
+ class Xe extends E {
2252
+ template() {
2253
+ return `
2254
+ <div class="cell-switch">
2255
+ <px-cell hoverable>
2256
+ <px-switch slot="action-indicator" aria-hidden="true" tabindex="-1"></px-switch>
2257
+ <slot name="visual" slot="visual"></slot>
2258
+ <slot name="label" slot="label"></slot>
2259
+ <slot name="description" slot="description"></slot>
2260
+ <slot name="suffix" slot="suffix"></slot>
2261
+ </px-cell>
2262
+ `;
2263
+ }
2264
+ constructor() {
2265
+ var t;
2266
+ super(Kt), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0, this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`);
2267
+ }
2268
+ connectedCallback() {
2269
+ if (this.$slotVisual) {
2270
+ const t = this.querySelector('px-img[slot="visual"]');
2271
+ t && L(t);
2272
+ }
2273
+ this.addEventListener("mouseover", () => {
2274
+ this.$switch.setAttribute("hover", "");
2275
+ }), this.addEventListener("mouseout", () => {
2276
+ this.$switch.removeAttribute("hover");
2277
+ }), this.addEventListener("keypress", (t) => {
2278
+ switch (t.stopPropagation(), t.preventDefault(), t.code) {
2279
+ case "Space":
2280
+ this.click();
2281
+ break;
2282
+ }
2283
+ }), this.addEventListener("click", (t) => {
2284
+ this.checked = !this.checked, t.stopPropagation(), t.preventDefault();
2285
+ }), this.hasAttribute("checked") && (this.checked = !0), T(this);
2286
+ }
2287
+ static get observedAttributes() {
2288
+ return [
2289
+ "inverted",
2290
+ "variant",
2291
+ "disabled",
2292
+ "separator",
2293
+ "separator--mobile",
2294
+ "separator--tablet",
2295
+ "separator--laptop",
2296
+ "separator--desktop",
2297
+ "radius",
2298
+ "radius--mobile",
2299
+ "radius--tablet",
2300
+ "radius--laptop",
2301
+ "radius--desktop",
2302
+ "name",
2303
+ "value",
2304
+ "checked",
2305
+ "background-color",
2306
+ "compact"
2307
+ ];
2308
+ }
2309
+ attributeChangedCallback(t, e, r) {
2310
+ if (e !== r)
2311
+ switch (t) {
2312
+ case "variant":
2313
+ this.$cell.variant = this.variant;
2314
+ break;
2315
+ case "inverted":
2316
+ O(this.$cell, this.$children, this.inverted, [
2317
+ this.$switch
2318
+ ]);
2319
+ break;
2320
+ case "disabled":
2321
+ this.handleDisabledAttributeChange(r !== null);
2322
+ break;
2323
+ case "radius":
2324
+ case "radius--mobile":
2325
+ case "radius--tablet":
2326
+ case "radius--laptop":
2327
+ case "radius--desktop":
2328
+ case "separator":
2329
+ case "separator--mobile":
2330
+ case "separator--tablet":
2331
+ case "separator--laptop":
2332
+ case "separator--desktop":
2333
+ case "background-color":
2334
+ case "compact":
2335
+ this.$cell.setAttribute(t, this.getAttribute(t) || "");
2336
+ break;
2337
+ case "name":
2338
+ case "value":
2339
+ this.$switch && this.$switch.setAttribute(t, r);
2340
+ break;
2341
+ case "checked":
2342
+ this.handleCheckedAttributeChange(r);
2343
+ break;
2344
+ }
2345
+ }
2346
+ handleDisabledAttributeChange(t) {
2347
+ t ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.$cell.disabled = !0, this.$switch.setAttribute("disabled", ""), this.$children.forEach((e) => {
2348
+ e.hasAttribute("disabled") || e.setAttribute("disabled", "");
2349
+ })) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.$cell.disabled = !1, this.$switch.removeAttribute("disabled"), this.$children.forEach((e) => {
2350
+ e.hasAttribute("disabled") && e.removeAttribute("disabled");
2351
+ }));
2352
+ }
2353
+ handleCheckedAttributeChange(t) {
2354
+ var e;
2355
+ (e = this.internals) == null || e.setFormValue(this.formData()), t === null ? (this.internals && (this.internals.ariaChecked = "false"), this.checked = !1, this.$switch && this.$switch.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.checked = !0, this.$switch && this.$switch.setAttribute("checked", ""), this.dispatchEvent(
2356
+ new Event("change", {
2357
+ bubbles: !0,
2358
+ composed: !0
2359
+ // Allow the event to pass through shadow DOM boundaries
2360
+ })
2361
+ ));
2362
+ }
2363
+ // Form-associated callbacks
2364
+ static get formAssociated() {
2365
+ return !0;
2366
+ }
2367
+ // Set default behavior when the element is attached to a form
2368
+ formResetCallback() {
2369
+ this.checked = !1;
2370
+ }
2371
+ formStateRestoreCallback(t) {
2372
+ this.checked = t;
2373
+ }
2374
+ formData() {
2375
+ if (this.name) {
2376
+ const t = new FormData(), e = this.getAttribute("name");
2377
+ return e && (this.checked ? t.set(e, this.value) : t.delete(e)), t;
2378
+ }
2379
+ }
2380
+ get $cell() {
2381
+ return this.shadowRoot.querySelector("px-cell");
2382
+ }
2383
+ get $el() {
2384
+ return this.shadowRoot.querySelector(".cell-switch");
2385
+ }
2386
+ get $switch() {
2387
+ return this.shadowRoot.querySelector("px-switch");
2388
+ }
2389
+ get $slotVisual() {
2390
+ return this.querySelector('[slot="visual"]');
2391
+ }
2392
+ get $children() {
2393
+ return this.querySelectorAll("px-cell-switch > *");
2394
+ }
2395
+ get inverted() {
2396
+ return this.hasAttribute("inverted");
2397
+ }
2398
+ set inverted(t) {
2399
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
2400
+ }
2401
+ get variant() {
2402
+ return this.getAttribute("variant");
2403
+ }
2404
+ set variant(t) {
2405
+ this.setAttribute("variant", t);
2406
+ }
2407
+ get disabled() {
2408
+ return this.hasAttribute("disabled");
2409
+ }
2410
+ set disabled(t) {
2411
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
2412
+ }
2413
+ get separator() {
2414
+ return this.getAttribute("separator");
2415
+ }
2416
+ set separator(t) {
2417
+ this.setAttribute("separator", t);
2418
+ }
2419
+ get separatorMobile() {
2420
+ return this.getAttribute("separator--mobile");
2421
+ }
2422
+ set separatorMobile(t) {
2423
+ this.setAttribute("separator--mobile", t);
2424
+ }
2425
+ get separatorTablet() {
2426
+ return this.getAttribute("separator--tablet");
2427
+ }
2428
+ set separatorTablet(t) {
2429
+ this.setAttribute("separator--tablet", t);
2430
+ }
2431
+ get separatorLaptop() {
2432
+ return this.getAttribute("separator--laptop");
2433
+ }
2434
+ set separatorLaptop(t) {
2435
+ this.setAttribute("separator--laptop", t);
2436
+ }
2437
+ get separatorDesktop() {
2438
+ return this.getAttribute("separator--desktop");
2439
+ }
2440
+ set separatorDesktop(t) {
2441
+ this.setAttribute("separator--desktop", t);
2442
+ }
2443
+ get radius() {
2444
+ return this.getAttribute("radius");
2445
+ }
2446
+ set radius(t) {
2447
+ this.setAttribute("radius", t);
2448
+ }
2449
+ get radiusMobile() {
2450
+ return this.getAttribute("radius--mobile");
2451
+ }
2452
+ set radiusMobile(t) {
2453
+ this.setAttribute("radius--mobile", t);
2454
+ }
2455
+ get radiusTablet() {
2456
+ return this.getAttribute("radius--tablet");
2457
+ }
2458
+ set radiusTablet(t) {
2459
+ this.setAttribute("radius--tablet", t);
2460
+ }
2461
+ get radiusLaptop() {
2462
+ return this.getAttribute("radius--laptop");
2463
+ }
2464
+ set radiusLaptop(t) {
2465
+ this.setAttribute("radius--laptop", t);
2466
+ }
2467
+ get radiusDesktop() {
2468
+ return this.getAttribute("radius--desktop");
2469
+ }
2470
+ set radiusDesktop(t) {
2471
+ this.setAttribute("radius--desktop", t);
2472
+ }
2473
+ get checked() {
2474
+ return this.hasAttribute("checked");
2475
+ }
2476
+ set checked(t) {
2477
+ t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
2478
+ }
2479
+ get name() {
2480
+ return this.getAttribute("name");
2481
+ }
2482
+ set name(t) {
2483
+ t ? this.setAttribute("name", t) : this.removeAttribute("name");
2484
+ }
2485
+ get state() {
2486
+ return this.getAttribute("state");
2487
+ }
2488
+ set state(t) {
2489
+ t ? this.setAttribute("state", t) : this.removeAttribute("state");
2490
+ }
2491
+ get value() {
2492
+ return this.getAttribute("value");
2493
+ }
2494
+ set value(t) {
2495
+ t ? this.setAttribute("value", t) : this.removeAttribute("value");
2496
+ }
2497
+ get backgroundColor() {
2498
+ return this.getAttribute("background-color");
2499
+ }
2500
+ set backgroundColor(t) {
2501
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
2502
+ }
2503
+ get compact() {
2504
+ return this.hasAttribute("compact");
2505
+ }
2506
+ set compact(t) {
2507
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
2508
+ }
2509
+ }
2510
+ customElements.get("px-cell-switch") || customElements.define("px-cell-switch", Xe);
2511
+ const Je = `:host{display:block}:host(:focus-visible){outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:host([variant="selectable-tag"]:focus-visible){border-radius:var(--px-radius-pill)}:host([inverted]:focus-visible){outline-color:var(--px-color-border-focus-outline-inverted)}input{font-size:var(--px-font-size-base)}.radio{display:flex;align-items:flex-start;gap:var(--px-spacing-s-mobile)}.radio.all-slots-empty{gap:0}label{font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:calc(var(--px-line-height-ratio-l) * 1em);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}:host(:not([variant="selectable-tag"])) input{-webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:none;margin:0;border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);width:var(--px-size-icon-m);height:var(--px-size-icon-m);flex-shrink:0;transition:box-shadow .3s ease-out,background-color .3s;animation:anim-pop .2s cubic-bezier(.9,-.13,.61,.99) forwards .1s}:host([checked]) :is(:host(:not([variant="selectable-tag"])) input){background-color:var(--px-color-background-container-primary-default);border-color:var(--px-color-border-none-default);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='white'/%3E%3C/svg%3E");background-position:center center}:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)),:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){border:var(--px-size-border-l) solid var(--px-color-border-state-hover-default)}:host([checked]) :is(:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))),:host([checked]) :is(:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default),0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default)}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input){background-color:var(--px-color-background-state-disabled-default);border-color:var(--px-color-border-main-default)}:host([checked]) :is(:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='black' fill-opacity='0.12'/%3E%3C/svg%3E")}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input)+label{color:var(--px-color-text-state-disabled-default)}:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input){border-color:var(--px-color-border-purpose-error-default)}:host(:hover) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)),:host([hover]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){border-color:var(--px-color-border-purpose-error-default)}:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input)){background-color:var(--px-color-background-purpose-error-default)}:host(:hover) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))),:host([hover]) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input))){background-color:var(--px-color-background-purpose-error-default);border-color:var(--px-color-border-purpose-error-default);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default),0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default)}:host(:not([variant="selectable-tag"])) input[inverted]{border-color:var(--px-color-border-neutral-inverted)}:host([checked]) :is(:host(:not([variant="selectable-tag"])) input[inverted]){background-color:var(--px-color-background-container-primary-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='%235C2D91'/%3E%3C/svg%3E");border-color:var(--px-color-border-none-inverted)}:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted])),:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted])){border-color:var(--px-color-border-state-hover-inverted)}:host([checked]) :is(:host(:hover) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted]))),:host([checked]) :is(:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted]))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted),0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted)}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input[inverted]){background-color:var(--px-color-background-state-disabled-inverted);border-color:var(--px-color-border-main-inverted)}:host([checked]) :is(:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input[inverted])){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='white' fill-opacity='0.16'/%3E%3C/svg%3E")}:host([disabled]) :is(:host(:not([variant="selectable-tag"])) input[inverted])+label{color:var(--px-color-text-state-disabled-inverted)}:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted]){border-color:var(--px-color-border-purpose-error-inverted)}:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted])){background-color:var(--px-color-background-purpose-error-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='white'/%3E%3C/svg%3E")}:host(:hover) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted]))),:host([hover]) :is(:host([checked]) :is(:host([state="error"]:not([disabled])) :is(:host(:not([variant="selectable-tag"])) input[inverted]))){background-color:var(--px-color-background-purpose-error-inverted);border-color:var(--px-color-border-purpose-error-inverted);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted),0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted)}:host(:not([variant="selectable-tag"])) input[inverted]+label{color:var(--px-color-text-neutral-inverted)}.radio.selectable-tag{gap:0}:host([variant="selectable-tag"]){display:inline-flex}:host([variant="selectable-tag"]) label{line-height:var(--px-line-height-ratio-l);display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);border-radius:var(--px-radius-pill);transition:all .2s ease-in-out 0s}:host([variant="selectable-tag"]) input{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}:host([variant="selectable-tag"]) input:hover:not([disabled],[aria-disabled=true])+label,:host([variant="selectable-tag"]) input.hover:not([disabled],[aria-disabled=true])+label{color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default);border-color:var(--px-color-border-state-hover-default);cursor:pointer}:host([variant="selectable-tag"]) input:active:not([disabled],[aria-disabled=true])+label{background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}:host([variant="selectable-tag"]) input:checked+label,:host([variant="selectable-tag"]) input:checked+label:hover{background-color:var(--px-color-background-state-active-default);border-color:var(--px-color-border-none-default);color:var(--px-color-text-state-active-inverted)}:host([variant="selectable-tag"]) input[disabled]+label{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}:host([variant="selectable-tag"]):host([inverted]) label{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:hover:not([disabled],[aria-disabled=true])+label,:host([variant="selectable-tag"]):host([inverted]) input.hover:not([disabled],[aria-disabled=true])+label{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:active:not([disabled],[aria-disabled=true])+label{background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([variant="selectable-tag"]):host([inverted]) input:checked+label,:host([variant="selectable-tag"]):host([inverted]) input:checked+label:hover{background-color:var(--px-color-background-state-active-inverted);border-color:var(--px-color-border-none-inverted);color:var(--px-color-text-state-active-default)}:host([variant="selectable-tag"]):host([inverted]) input[disabled]+label{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-inverted)}@media only screen and (min-width: 768px){.radio{gap:var(--px-spacing-s-desktop)}:host(:focus-visible){outline-width:var(--px-focus-outline-desktop);outline-offset:var(--px-focus-offset-desktop)}label{font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.radio{gap:var(--px-spacing-s-desktop)}:host(:focus-visible){outline-width:var(--px-focus-outline-desktop);outline-offset:var(--px-focus-offset-desktop)}label{font-size:var(--px-text-size-label-m-desktop)}}@keyframes anim-pop{0%{transform:scale(0)}to{transform:scale(1)}}`, Xt = new CSSStyleSheet();
2512
+ Xt.replaceSync(Je);
2513
+ const Jt = ["", "default", "selectable-tag"], Qt = ["", "error"], xt = class xt extends u {
2514
+ constructor() {
2515
+ super(Xt), this.template = () => `<div class="radio" tabindex="-1">
2516
+ <input type="radio" tabindex="-1" />
2517
+ <label><slot name="before"></slot><slot name="label"></slot></label>
2518
+ </div>`, this.shadowRoot && (this.shadowRoot.innerHTML = this.template());
2519
+ }
2520
+ static get observedAttributes() {
2521
+ return [...super.observedAttributes, "hover", "inverted"];
2522
+ }
2523
+ attributeChangedCallback(t, e, r) {
2524
+ if (e !== r)
2525
+ switch (t) {
2526
+ case "hover":
2527
+ this.$el.classList.toggle("hover");
2528
+ break;
2529
+ default:
2530
+ super.attributeChangedCallback(t, e, r);
2531
+ break;
2532
+ }
2533
+ }
2534
+ get $radio() {
2535
+ return this.shadowRoot.querySelector(".radio");
2536
+ }
2537
+ get $labelSlot() {
2538
+ return this.querySelector('[slot="label"]');
2539
+ }
2540
+ get $iconSlot() {
2541
+ return this.querySelector('px-icon[slot="before"]');
2542
+ }
2543
+ get inverted() {
2544
+ return this.getAttribute("inverted");
2545
+ }
2546
+ set inverted(t) {
2547
+ this.setAttribute("inverted", t);
2548
+ }
2549
+ };
2550
+ xt.nativeName = "input";
2551
+ let W = xt;
2552
+ customElements.get("px-radio-base") || customElements.define("px-radio-base", W);
2553
+ const ft = class ft extends W {
2554
+ constructor() {
2555
+ var t, e;
2556
+ super(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = ((e = this.parentElement) == null ? void 0 : e.firstElementChild) === this ? 0 : -1, this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`);
2557
+ }
2558
+ static get observedAttributes() {
2559
+ return [...super.observedAttributes, "state", "variant", "inverted"];
2560
+ }
2561
+ connectedCallback() {
2562
+ this.addEventListener("keypress", (t) => {
2563
+ switch (t.stopPropagation(), t.preventDefault(), t.code) {
2564
+ case "Space":
2565
+ this.click();
2566
+ break;
2567
+ }
2568
+ }), this.addEventListener("click", (t) => {
2569
+ this.checked || (this.checked = !0), t.stopPropagation(), t.preventDefault();
2570
+ }), this.setupForId(), this.hasAttribute("checked") && (this.checked = !0), this.$iconSlot && (this.$iconSlot.setAttribute("size", "xs"), this.$iconSlot.setAttribute("color", "inherit")), !this.$labelSlot && !this.$iconSlot ? this.$radio.classList.add("all-slots-empty") : this.$radio.classList.remove("all-slots-empty");
2571
+ }
2572
+ attributeChangedCallback(t, e, r) {
2573
+ if (e !== r)
2574
+ switch (t) {
2575
+ case "state":
2576
+ this.updateAttribute(e, r, Qt, t);
2577
+ break;
2578
+ case "variant":
2579
+ this.updateAttribute(
2580
+ e,
2581
+ r,
2582
+ Jt,
2583
+ t
2584
+ );
2585
+ break;
2586
+ case "checked":
2587
+ this.handleCheckedChange(r !== null);
2588
+ break;
2589
+ default:
2590
+ super.attributeChangedCallback(t, e, r);
2591
+ break;
2592
+ }
2593
+ }
2594
+ // Form-associated callbacks
2595
+ static get formAssociated() {
2596
+ return !0;
2597
+ }
2598
+ // Set default behavior when the element is attached to a form
2599
+ formResetCallback() {
2600
+ this.checked = !1;
2601
+ }
2602
+ formStateRestoreCallback(t) {
2603
+ this.checked = t;
2604
+ }
2605
+ updateAttribute(t, e, r, o) {
2606
+ var a, s;
2607
+ if (!this.checkName(r, e)) {
2608
+ console.error(`${e} is not a valid ${o} value`);
2609
+ return;
2610
+ }
2611
+ t !== null && (o === "variant" ? (a = this.$el.parentElement) == null || a.classList.toggle(t) : this.$el.classList.toggle(t)), e !== null && (o === "variant" ? (s = this.$el.parentElement) == null || s.classList.toggle(e) : this.$el.classList.toggle(e));
2612
+ }
2613
+ handleCheckedChange(t) {
2614
+ var e;
2615
+ this.$el.checked = t, (e = this.internals) == null || e.setFormValue(this.formData()), t ? (this.tabIndex = 0, this.internals && (this.internals.ariaChecked = "true"), this.setAttribute("checked", "")) : (this.tabIndex = -1, this.removeAttribute("checked"), this.internals && (this.internals.ariaChecked = "false")), t && this.dispatchEvent(
2616
+ new Event("change", {
2617
+ bubbles: !0,
2618
+ composed: !0
2619
+ // Allow the event to pass through shadow DOM boundaries
2620
+ })
2621
+ );
2622
+ }
2623
+ formData() {
2624
+ if (this.$el.name) {
2625
+ const t = new FormData(), e = this.getAttribute("name");
2626
+ return e && (this.$el.checked ? t.set(e, this.$el.value) : t.delete(e)), t;
2627
+ }
2628
+ }
2629
+ setupForId() {
2630
+ const t = Math.random().toString(36).substr(2, 9);
2631
+ this.$el.setAttribute("id", t), this.$label && this.$label.setAttribute("for", t);
2632
+ }
2633
+ get state() {
2634
+ return this.getAttribute("state");
2635
+ }
2636
+ set state(t) {
2637
+ this.setAttribute("state", t);
2638
+ }
2639
+ get disabled() {
2640
+ return this.getAttribute("disabled") !== null;
2641
+ }
2642
+ set disabled(t) {
2643
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
2644
+ }
2645
+ get $label() {
2646
+ return this.shadowRoot.querySelector("label");
2647
+ }
2648
+ get inverted() {
2649
+ return this.getAttribute("inverted");
2650
+ }
2651
+ set inverted(t) {
2652
+ this.setAttribute("inverted", t);
2653
+ }
2654
+ get checked() {
2655
+ return this.$el.checked;
2656
+ }
2657
+ set checked(t) {
2658
+ t ? this.setAttribute("checked", t ? "" : "false") : this.removeAttribute("checked");
2659
+ }
2660
+ get $radio() {
2661
+ return this.shadowRoot.querySelector(".radio");
2662
+ }
2663
+ get $labelSlot() {
2664
+ return this.querySelector('[slot="label"]');
2665
+ }
2666
+ get $iconSlot() {
2667
+ return this.querySelector('px-icon[slot="before"]');
2668
+ }
2669
+ };
2670
+ ft.nativeName = "input";
2671
+ let at = ft;
2672
+ customElements.get("px-radio") || customElements.define("px-radio", at);
2673
+ const Qe = "div[role=radiogroup]{display:flex;flex-direction:column;gap:var(--px-radiogroup-gap--mobile, var(--px-spacing-s-mobile))}div[role=radiogroup].selectable-tag{display:inline-flex;flex-direction:row}@media screen and (min-width: 768px){div[role=radiogroup]{gap:var(--px-radiogroup-gap--tablet, var(--px-spacing-s-tablet))}}@media screen and (min-width: 1025px){div[role=radiogroup]{gap:var(--px-radiogroup-gap--laptop, var(--px-spacing-s-laptop))}}", Vt = new CSSStyleSheet();
2674
+ Vt.replaceSync(Qe);
2675
+ const Ve = [
2676
+ "",
2677
+ "none",
2678
+ "2xs",
2679
+ "xs",
2680
+ "s",
2681
+ "default",
2682
+ "l"
2683
+ ], mt = class mt extends u {
2684
+ constructor() {
2685
+ var t;
2686
+ super(Vt), this.template = () => `<div role="radiogroup">
2687
+ <slot></slot>
2688
+ </div>`, this.handleKeyDown = () => {
2689
+ var r;
2690
+ const e = this.currentCheckedRadio ? ((r = this.currentCheckedRadio) == null ? void 0 : r.nextElementSibling) ?? this.$radioList[0] : this.$radioList[1];
2691
+ e.checked = !0, e.focus();
2692
+ }, this.handleKeyUp = () => {
2693
+ var r;
2694
+ const e = ((r = this.currentCheckedRadio) == null ? void 0 : r.previousElementSibling) ?? this.$radioList[this.$radioList.length - 1];
2695
+ e.checked = !0, e.focus();
2696
+ }, this.handleRadioChange = (e) => {
2697
+ const r = e.target;
2698
+ if (r.localName === "px-tile-radio" || r.localName === "px-radio" || r.localName === "px-cell-radio") {
2699
+ this.currentCheckedRadio = r;
2700
+ const o = r.getAttribute("name");
2701
+ o && this.currentCheckedRadio.checked && this.uncheckOtherRadios(o);
2702
+ }
2703
+ }, this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this);
2704
+ }
2705
+ static get observedAttributes() {
2706
+ return [
2707
+ ...super.observedAttributes,
2708
+ "name",
2709
+ "gap",
2710
+ "variant",
2711
+ "required",
2712
+ "disabled",
2713
+ "state",
2714
+ "inverted"
2715
+ ];
2716
+ }
2717
+ connectedCallback() {
2718
+ (!this.hasAttribute("name") || this.getAttribute("name") === "") && console.error(
2719
+ '<px-radio-group> requires a "name" attribute to function properly.'
2720
+ ), this.addEventListener("change", this.handleRadioChange), this.addEventListener("keydown", (t) => {
2721
+ switch (t.code) {
2722
+ case "ArrowUp":
2723
+ case "ArrowDown":
2724
+ t.stopPropagation(), t.preventDefault();
2725
+ }
2726
+ }), this.addEventListener("keyup", (t) => {
2727
+ switch (t.stopPropagation(), t.preventDefault(), t.code) {
2728
+ case "ArrowUp":
2729
+ case "ArrowLeft":
2730
+ this.handleKeyUp();
2731
+ break;
2732
+ case "ArrowDown":
2733
+ case "ArrowRight":
2734
+ this.handleKeyDown();
2735
+ break;
2736
+ }
2737
+ });
2738
+ }
2739
+ disconnectedCallback() {
2740
+ this.removeEventListener("change", this.handleRadioChange);
2741
+ }
2742
+ attributeChangedCallback(t, e, r) {
2743
+ e !== r && (t === "gap" ? this.updateGap(e, r, Ve) : t === "variant" ? this.updateVariant(e, r, Jt) : this.$radioList.forEach((o) => {
2744
+ if (r === null)
2745
+ o.removeAttribute(t);
2746
+ else
2747
+ switch (t) {
2748
+ case "required":
2749
+ this.$el.ariaRequired = "true";
2750
+ break;
2751
+ case "state":
2752
+ r === "error" && (this.$el.ariaInvalid = "true", o.setAttribute(t, r));
2753
+ break;
2754
+ case "disabled":
2755
+ this.$el.ariaDisabled = "true", o.setAttribute(t, r);
2756
+ break;
2757
+ default:
2758
+ o.setAttribute(t, r);
2759
+ break;
2760
+ }
2761
+ }));
2762
+ }
2763
+ uncheckOtherRadios(t) {
2764
+ this.querySelectorAll(
2765
+ `px-radio[name="${t}"], px-tile-radio[name="${t}"], px-cell-radio[name="${t}"]`
2766
+ ).forEach((r) => {
2767
+ r !== this.currentCheckedRadio && (r.checked = !1);
2768
+ });
2769
+ }
2770
+ updateVariant(t, e, r) {
2771
+ if (!this.checkName(r, e)) {
2772
+ console.error(`${e} is not a valid variant value`);
2773
+ return;
2774
+ }
2775
+ t !== null && t !== "" && this.$el.classList.toggle(t), e !== null && e !== "" && (this.$el.classList.toggle(e), this.$radioList.forEach((o) => {
2776
+ o.setAttribute("variant", e);
2777
+ }));
2778
+ }
2779
+ updateGap(t, e, r) {
2780
+ if (!this.checkName(r, e)) {
2781
+ console.error(`${e} is not a valid gap value`);
2782
+ return;
2783
+ }
2784
+ this.updateGapStyle(t), this.updateGapStyle(e);
2785
+ }
2786
+ updateGapStyle(t) {
2787
+ t !== null && t !== "" && t !== "default" && (this.$el.style.setProperty(
2788
+ "--px-radiogroup-gap--mobile",
2789
+ `var(--px-spacing-${t}-mobile)`
2790
+ ), this.$el.style.setProperty(
2791
+ "--px-radiogroup-gap--tablet",
2792
+ `var(--px-spacing-${t}-tablet)`
2793
+ ), this.$el.style.setProperty(
2794
+ "--px-radiogroup-gap--laptop",
2795
+ `var(--px-spacing-${t}-desktop)`
2796
+ ));
2797
+ }
2798
+ get $radioList() {
2799
+ return this.querySelectorAll(
2800
+ "px-radio, px-tile-radio, px-cell-radio"
2801
+ );
2802
+ }
2803
+ get gap() {
2804
+ return this.getAttribute("gap");
2805
+ }
2806
+ set gap(t) {
2807
+ this.setAttribute("gap", t);
2808
+ }
2809
+ get variant() {
2810
+ return this.getAttribute("variant");
2811
+ }
2812
+ set variant(t) {
2813
+ this.setAttribute("variant", t);
2814
+ }
2815
+ get state() {
2816
+ return this.getAttribute("state");
2817
+ }
2818
+ set state(t) {
2819
+ this.setAttribute("state", t);
2820
+ }
2821
+ get $label() {
2822
+ return this.shadowRoot.querySelector("label");
2823
+ }
2824
+ get inverted() {
2825
+ return this.getAttribute("inverted");
2826
+ }
2827
+ set inverted(t) {
2828
+ this.setAttribute("inverted", t);
2829
+ }
2830
+ };
2831
+ mt.nativeName = "div";
2832
+ let st = mt;
2833
+ customElements.get("px-radio-group") || customElements.define("px-radio-group", st);
2834
+ const te = new CSSStyleSheet();
2835
+ te.replaceSync(M);
2836
+ const tr = ["", "left", "right"];
2837
+ class er extends E {
2838
+ template() {
2839
+ return `
2840
+ <div class="cell-radio">
2841
+ <px-cell hoverable>
2842
+ <px-radio-base slot="prefix" aria-hidden="true" tabindex="-1"></px-radio-base>
2843
+ <slot name="visual" slot="visual"></slot>
2844
+ <slot name="label" slot="label"></slot>
2845
+ <slot name="description" slot="description"></slot>
2846
+ <slot name="suffix" slot="suffix"></slot>
2847
+ </px-cell>
2848
+ `;
2849
+ }
2850
+ constructor() {
2851
+ var t, e;
2852
+ super(te), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = ((e = this.parentElement) == null ? void 0 : e.firstElementChild) === this ? 0 : -1, this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`);
2853
+ }
2854
+ connectedCallback() {
2855
+ if (this.$slotVisual) {
2856
+ const t = this.querySelector('px-img[slot="visual"]');
2857
+ t && L(t);
2858
+ }
2859
+ this.addEventListener("mouseover", () => {
2860
+ this.$radio.setAttribute("hover", "");
2861
+ }), this.addEventListener("mouseout", () => {
2862
+ this.$radio.removeAttribute("hover");
2863
+ }), this.addEventListener("keypress", (t) => {
2864
+ switch (t.stopPropagation(), t.preventDefault(), t.code) {
2865
+ case "Space":
2866
+ this.click();
2867
+ break;
2868
+ }
2869
+ }), this.addEventListener("click", (t) => {
2870
+ this.checked || (this.checked = !0), t.stopPropagation(), t.preventDefault();
2871
+ }), this.hasAttribute("checked") && (this.checked = !0), T(this);
2872
+ }
2873
+ static get observedAttributes() {
2874
+ return [
2875
+ "inverted",
2876
+ "variant",
2877
+ "disabled",
2878
+ "separator",
2879
+ "separator--mobile",
2880
+ "separator--tablet",
2881
+ "separator--laptop",
2882
+ "separator--desktop",
2883
+ "radius",
2884
+ "radius--mobile",
2885
+ "radius--tablet",
2886
+ "radius--laptop",
2887
+ "radius--desktop",
2888
+ "name",
2889
+ "value",
2890
+ "state",
2891
+ "checked",
2892
+ "radio-position",
2893
+ "background-color",
2894
+ "compact"
2895
+ ];
2896
+ }
2897
+ attributeChangedCallback(t, e, r) {
2898
+ if (e !== r)
2899
+ switch (t) {
2900
+ case "variant":
2901
+ this.$cell.variant = this.variant;
2902
+ break;
2903
+ case "inverted":
2904
+ O(this.$cell, this.$children, this.inverted, [
2905
+ this.$radio
2906
+ ]);
2907
+ break;
2908
+ case "disabled":
2909
+ this.handleDisabledAttributeChange(r !== null);
2910
+ break;
2911
+ case "radius":
2912
+ case "radius--mobile":
2913
+ case "radius--tablet":
2914
+ case "radius--laptop":
2915
+ case "radius--desktop":
2916
+ case "separator":
2917
+ case "separator--mobile":
2918
+ case "separator--tablet":
2919
+ case "separator--laptop":
2920
+ case "separator--desktop":
2921
+ case "background-color":
2922
+ case "compact":
2923
+ this.$cell.setAttribute(t, this.getAttribute(t) || "");
2924
+ break;
2925
+ case "name":
2926
+ case "value":
2927
+ this.$radio && this.$radio.setAttribute(t, r);
2928
+ break;
2929
+ case "state":
2930
+ if (this.$radio)
2931
+ if (this.checkName(Qt, r))
2932
+ this.$radio.setAttribute("state", r);
2933
+ else {
2934
+ console.error(`${r} is not a valid state value`);
2935
+ return;
2936
+ }
2937
+ break;
2938
+ case "checked":
2939
+ this.handleCheckedAttributeChange(r);
2940
+ break;
2941
+ case "radio-position":
2942
+ this.handleRadioPositionChange(r);
2943
+ break;
2944
+ }
2945
+ }
2946
+ handleDisabledAttributeChange(t) {
2947
+ t ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.$cell.disabled = !0, this.$radio.setAttribute("disabled", ""), this.$children.forEach((e) => {
2948
+ e.hasAttribute("disabled") || e.setAttribute("disabled", "");
2949
+ })) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.$cell.disabled = !1, this.$radio.removeAttribute("disabled"), this.$children.forEach((e) => {
2950
+ e.hasAttribute("disabled") && e.removeAttribute("disabled");
2951
+ }));
2952
+ }
2953
+ handleCheckedAttributeChange(t) {
2954
+ var e;
2955
+ (e = this.internals) == null || e.setFormValue(this.formData()), t === null ? (this.internals && (this.internals.ariaChecked = "false"), this.setAttribute("tabIndex", "-1"), this.checked = !1, this.$radio && this.$radio.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.setAttribute("tabIndex", "0"), this.checked = !0, this.$radio && this.$radio.setAttribute("checked", ""), this.dispatchEvent(
2956
+ new Event("change", {
2957
+ bubbles: !0,
2958
+ composed: !0
2959
+ // Allow the event to pass through shadow DOM boundaries
2960
+ })
2961
+ ));
2962
+ }
2963
+ handleRadioPositionChange(t) {
2964
+ if (!this.checkName(tr, t)) {
2965
+ console.error(`${t} is not a valid position value`);
2966
+ return;
2967
+ }
2968
+ this.$radio && (t === "" || t === "left" ? this.$radio.setAttribute("slot", "prefix") : t === "right" && this.$radio.setAttribute("slot", "action-indicator"));
2969
+ }
2970
+ // Form-associated callbacks
2971
+ static get formAssociated() {
2972
+ return !0;
2973
+ }
2974
+ // Set default behavior when the element is attached to a form
2975
+ formResetCallback() {
2976
+ this.checked = !1;
2977
+ }
2978
+ formStateRestoreCallback(t) {
2979
+ this.checked = t;
2980
+ }
2981
+ formData() {
2982
+ if (this.name) {
2983
+ const t = new FormData(), e = this.getAttribute("name");
2984
+ return e && (this.checked ? t.set(e, this.$radio.value) : t.delete(e)), t;
2985
+ }
2986
+ }
2987
+ get $cell() {
2988
+ return this.shadowRoot.querySelector("px-cell");
2989
+ }
2990
+ get $el() {
2991
+ return this.shadowRoot.querySelector(".cell-radio");
2992
+ }
2993
+ get $radio() {
2994
+ return this.shadowRoot.querySelector("px-radio-base");
2995
+ }
2996
+ get $slotVisual() {
2997
+ return this.querySelector('[slot="visual"]');
2998
+ }
2999
+ get $children() {
3000
+ return this.querySelectorAll("px-cell-radio > *");
3001
+ }
3002
+ get inverted() {
3003
+ return this.hasAttribute("inverted");
3004
+ }
3005
+ set inverted(t) {
3006
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
3007
+ }
3008
+ get variant() {
3009
+ return this.getAttribute("variant");
3010
+ }
3011
+ set variant(t) {
3012
+ this.setAttribute("variant", t);
3013
+ }
3014
+ get disabled() {
3015
+ return this.hasAttribute("disabled");
3016
+ }
3017
+ set disabled(t) {
3018
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3019
+ }
3020
+ get separator() {
3021
+ return this.getAttribute("separator");
3022
+ }
3023
+ set separator(t) {
3024
+ this.setAttribute("separator", t);
3025
+ }
3026
+ get separatorMobile() {
3027
+ return this.getAttribute("separator--mobile");
3028
+ }
3029
+ set separatorMobile(t) {
3030
+ this.setAttribute("separator--mobile", t);
3031
+ }
3032
+ get separatorTablet() {
3033
+ return this.getAttribute("separator--tablet");
3034
+ }
3035
+ set separatorTablet(t) {
3036
+ this.setAttribute("separator--tablet", t);
3037
+ }
3038
+ get separatorLaptop() {
3039
+ return this.getAttribute("separator--laptop");
3040
+ }
3041
+ set separatorLaptop(t) {
3042
+ this.setAttribute("separator--laptop", t);
3043
+ }
3044
+ get separatorDesktop() {
3045
+ return this.getAttribute("separator--desktop");
3046
+ }
3047
+ set separatorDesktop(t) {
3048
+ this.setAttribute("separator--desktop", t);
3049
+ }
3050
+ get radius() {
3051
+ return this.getAttribute("radius");
3052
+ }
3053
+ set radius(t) {
3054
+ this.setAttribute("radius", t);
3055
+ }
3056
+ get radiusMobile() {
3057
+ return this.getAttribute("radius--mobile");
3058
+ }
3059
+ set radiusMobile(t) {
3060
+ this.setAttribute("radius--mobile", t);
3061
+ }
3062
+ get radiusTablet() {
3063
+ return this.getAttribute("radius--tablet");
3064
+ }
3065
+ set radiusTablet(t) {
3066
+ this.setAttribute("radius--tablet", t);
3067
+ }
3068
+ get radiusLaptop() {
3069
+ return this.getAttribute("radius--laptop");
3070
+ }
3071
+ set radiusLaptop(t) {
3072
+ this.setAttribute("radius--laptop", t);
3073
+ }
3074
+ get radiusDesktop() {
3075
+ return this.getAttribute("radius--desktop");
3076
+ }
3077
+ set radiusDesktop(t) {
3078
+ this.setAttribute("radius--desktop", t);
3079
+ }
3080
+ get checked() {
3081
+ return this.hasAttribute("checked");
3082
+ }
3083
+ set checked(t) {
3084
+ t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
3085
+ }
3086
+ get name() {
3087
+ return this.getAttribute("name");
3088
+ }
3089
+ set name(t) {
3090
+ t ? this.setAttribute("name", t) : this.removeAttribute("name");
3091
+ }
3092
+ get state() {
3093
+ return this.getAttribute("state");
3094
+ }
3095
+ set state(t) {
3096
+ t ? this.setAttribute("state", t) : this.removeAttribute("state");
3097
+ }
3098
+ get value() {
3099
+ return this.getAttribute("value");
3100
+ }
3101
+ set value(t) {
3102
+ t ? this.setAttribute("value", t) : this.removeAttribute("value");
3103
+ }
3104
+ get radioPosition() {
3105
+ return this.getAttribute("radio-position");
3106
+ }
3107
+ set radioPosition(t) {
3108
+ t ? this.setAttribute("radio-position", t) : this.removeAttribute("radio-position");
3109
+ }
3110
+ get backgroundColor() {
3111
+ return this.getAttribute("background-color");
3112
+ }
3113
+ set backgroundColor(t) {
3114
+ t ? this.setAttribute("background-color", t) : this.removeAttribute("background-color");
3115
+ }
3116
+ get compact() {
3117
+ return this.hasAttribute("compact");
3118
+ }
3119
+ set compact(t) {
3120
+ t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
3121
+ }
3122
+ }
3123
+ customElements.get("px-cell-radio") || customElements.define("px-cell-radio", er);
3124
+ const rr = ":host{display:block}:host *{box-sizing:border-box}button,a{display:block;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-font-line-height-l);color:var(--px-color-text-neutral-default);text-align:center;cursor:pointer;padding:2em 0;height:100%}button:after,a:after{content:attr(data-label);display:block;height:0;width:auto;visibility:hidden;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;font-weight:var(--px-font-weight-title)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button:hover,a:hover{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default)}button{margin:0;border:0;border-bottom:2px solid rgba(0,0,0,0);outline:0;background:inherit}button[aria-expanded=true]{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default);border-bottom-color:var(--px-color-background-container-primary-default)}a{text-decoration:none}@media only screen and (min-width: 48em){button,a{font-size:var(--px-text-size-label-m-tablet)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625em){button,a{font-size:var(--px-text-size-label-m-laptop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){button,a{font-size:var(--px-text-size-label-m-desktop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", ee = new CSSStyleSheet();
3125
+ ee.replaceSync(rr);
3126
+ class or extends E {
3127
+ constructor() {
3128
+ var t;
3129
+ super(), this.template = () => `${this.getAttribute("href") ? `<a href="${this.getAttribute("href")}" data-label="${this.textContent}">
3130
+ <slot></slot>
3131
+ </a>` : `<button data-label="${this.textContent}"><slot></slot></button>`}`, this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [ee], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.internals && (this.internals.role = "listitem");
3132
+ }
3133
+ static get observedAttributes() {
3134
+ return ["for", "href"];
3135
+ }
3136
+ connectedCallback() {
3137
+ this.setAttribute("slot", "header-entries"), this.$button && this.setupButtonA11y(), this.contentObserver = new MutationObserver(() => {
3138
+ this.updateDataLabel();
3139
+ }), this.contentObserver.observe(this, {
3140
+ childList: !0,
3141
+ subtree: !0,
3142
+ characterData: !0
3143
+ });
3144
+ }
3145
+ disconnectedCallback() {
3146
+ this.contentObserver.disconnect();
3147
+ }
3148
+ attributeChangedCallback(t, e, r) {
3149
+ super.attributeChangedCallback(t, e, r), t === "href" && this.$a && r ? this.shadowRoot.innerHTML = this.template() : t === "for" && this.$button && r && (this.shadowRoot.innerHTML = this.template(), this.setupButtonA11y());
3150
+ }
3151
+ setupButtonA11y() {
3152
+ this.$button.ariaExpanded = "false", this.$button.setAttribute("aria-controls", this.for || "");
3153
+ }
3154
+ updateDataLabel() {
3155
+ this.$button && this.$button.setAttribute("data-label", this.textContent), this.$a && this.$a.setAttribute("data-label", this.textContent);
3156
+ }
3157
+ get for() {
3158
+ return this.getAttribute("for");
3159
+ }
3160
+ set for(t) {
3161
+ this.setAttribute("for", t);
3162
+ }
3163
+ get checked() {
3164
+ return this.$button.ariaExpanded === "true";
3165
+ }
3166
+ set checked(t) {
3167
+ if (typeof t != "boolean")
3168
+ throw new Error("checked must be a boolean");
3169
+ this.$button && (this.$button.ariaExpanded = `${!!t}`, this.$button.setAttribute("aria-controls", this.for));
3170
+ }
3171
+ get $button() {
3172
+ return this.shadowRoot.querySelector("button");
3173
+ }
3174
+ get $a() {
3175
+ return this.shadowRoot.querySelector("a");
3176
+ }
3177
+ }
3178
+ customElements.get("px-header-item") || customElements.define("px-header-item", or);
3179
+ const ir = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}@media only screen and (min-width: 48em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}}@media only screen and (min-width: 64.0625em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", re = new CSSStyleSheet(), oe = new CSSStyleSheet(), ie = new CSSStyleSheet();
3180
+ re.replaceSync(Rt);
3181
+ oe.replaceSync(Bt);
3182
+ ie.replaceSync(ir);
3183
+ const ar = [...ze, "link-m", "link-s"], sr = [
3184
+ "link",
3185
+ "no-style",
3186
+ "skip-link",
3187
+ "btn-default",
3188
+ "btn-secondary",
3189
+ "btn-tertiary",
3190
+ "icon-link"
3191
+ ], nr = ["", "default", "alternative"], kt = class kt extends u {
3192
+ constructor() {
3193
+ super(re, oe, ie), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
3194
+ const t = document.createElement(this.nativeName);
3195
+ t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
3196
+ }
3197
+ static get observedAttributes() {
3198
+ return [
3199
+ ...super.observedAttributes,
3200
+ "disabled",
3201
+ "variant",
3202
+ "shape",
3203
+ "shape--mobile",
3204
+ "shape--tablet",
3205
+ "shape--laptop",
3206
+ "shape--desktop",
3207
+ "extended",
3208
+ "extended--mobile",
3209
+ "extended--tablet",
3210
+ "extended--laptop",
3211
+ "extended--desktop",
3212
+ "inverted",
3213
+ "font-size",
3214
+ "color",
3215
+ "font-weight",
3216
+ "title"
3217
+ ];
3218
+ }
3219
+ connectedCallback() {
3220
+ super.connectedCallback(), this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), Tt(this, this.$el, !1);
3221
+ }
3222
+ attributeChangedCallback(t, e, r) {
3223
+ if (e !== r)
3224
+ switch (t) {
3225
+ case "disabled":
3226
+ this.$el.toggleAttribute("aria-disabled"), r !== null && this.$el.setAttribute("aria-disabled", "true");
3227
+ break;
3228
+ case "variant":
3229
+ this.updateVariant(e, r);
3230
+ break;
3231
+ case "shape":
3232
+ case "shape--mobile":
3233
+ case "shape--tablet":
3234
+ case "shape--laptop":
3235
+ case "shape--desktop":
3236
+ this.updateShape(t, r, nr);
3237
+ break;
3238
+ case "extended":
3239
+ case "extended--mobile":
3240
+ case "extended--tablet":
3241
+ case "extended--laptop":
3242
+ case "extended--desktop":
3243
+ this.updateExtended(t, r);
3244
+ break;
3245
+ case "font-size":
3246
+ this.updateTypography(
3247
+ t,
3248
+ e,
3249
+ r,
3250
+ ar
3251
+ );
3252
+ break;
3253
+ case "color":
3254
+ this.updateTypography(t, e, r, Le);
3255
+ break;
3256
+ case "font-weight":
3257
+ this.updateTypography(t, e, r, Ee);
3258
+ break;
3259
+ case "title":
3260
+ r && (this.$el.setAttribute("title", r), this.removeAttribute("title"));
3261
+ break;
3262
+ default:
3263
+ super.attributeChangedCallback(t, e, r);
3264
+ break;
3265
+ }
3266
+ }
3267
+ configureBeforeAfterIcon(t) {
3268
+ const e = t.getAttribute("size"), r = t.getAttribute("color");
3269
+ t.addEventListener("click", () => {
3270
+ this.$el.focus();
3271
+ }), e || t.setAttribute("size", "xs"), r || t.setAttribute("color", "inherit");
3272
+ }
3273
+ _toggleClassList(t) {
3274
+ if (t.startsWith("btn-")) {
3275
+ const e = t.split("-");
3276
+ for (const r of e)
3277
+ this.$el.classList.toggle(r);
3278
+ } else
3279
+ this.$el.classList.toggle(t);
3280
+ }
3281
+ updateVariant(t, e) {
3282
+ t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(sr, e) || console.error(`Bad "variant" value for ${e}`), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
3283
+ }
3284
+ updateShape(t, e, r) {
3285
+ if (!y(r, e)) {
3286
+ console.error(`${e} is not a valid shape value`);
3287
+ return;
3288
+ }
3289
+ e !== null && e !== "" && this.$el.setAttribute(t, e);
3290
+ }
3291
+ updateTypography(t, e, r, o) {
3292
+ e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), r !== null && r !== "" && r !== "default" && this.$el.classList.toggle(`${t}-${r}`), this.checkName(o, r) || console.error(`Bad ${t} value: ${r}`);
3293
+ }
3294
+ updateExtended(t, e) {
3295
+ e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
3296
+ }
3297
+ get $before() {
3298
+ return this.querySelector('[slot="before"]');
3299
+ }
3300
+ get $after() {
3301
+ return this.querySelector('[slot="after"]');
3302
+ }
3303
+ get $iconNotBeforeAfter() {
3304
+ return this.querySelector(
3305
+ 'px-icon:not([slot="before"], [slot="after"])'
3306
+ );
3307
+ }
3308
+ get disabled() {
3309
+ return this.getAttribute("disabled");
3310
+ }
3311
+ set disabled(t) {
3312
+ this.setAttribute("disabled", t);
3313
+ }
3314
+ get variant() {
3315
+ return this.getAttribute("variant");
3316
+ }
3317
+ set variant(t) {
3318
+ this.setAttribute("variant", t);
3319
+ }
3320
+ get shape() {
3321
+ return this.getAttribute("shape");
3322
+ }
3323
+ set shape(t) {
3324
+ this.setAttribute("shape", t);
3325
+ }
3326
+ get shapeMobile() {
3327
+ return this.getAttribute("shape--mobile");
3328
+ }
3329
+ set shapeMobile(t) {
3330
+ this.setAttribute("shape--mobile", t);
3331
+ }
3332
+ get shapeTablet() {
3333
+ return this.getAttribute("shape--tablet");
3334
+ }
3335
+ set shapeTablet(t) {
3336
+ this.setAttribute("shape--tablet", t);
3337
+ }
3338
+ get shapeLaptop() {
3339
+ return this.getAttribute("shape--laptop");
3340
+ }
3341
+ set shapeLaptop(t) {
3342
+ this.setAttribute("shape--laptop", t);
3343
+ }
3344
+ get shapeDesktop() {
3345
+ return this.getAttribute("shape--desktop");
3346
+ }
3347
+ set shapeDesktop(t) {
3348
+ this.setAttribute("shape--desktop", t);
3349
+ }
3350
+ get extended() {
3351
+ return this.getAttribute("extended");
3352
+ }
3353
+ set extended(t) {
3354
+ this.setAttribute("extended", t);
3355
+ }
3356
+ get extendedMobile() {
3357
+ return this.getAttribute("extended--mobile");
3358
+ }
3359
+ set extendedMobile(t) {
3360
+ this.setAttribute("extended--mobile", t);
3361
+ }
3362
+ get extendedTablet() {
3363
+ return this.getAttribute("extended--tablet");
3364
+ }
3365
+ set extendedTablet(t) {
3366
+ this.setAttribute("extended--tablet", t);
3367
+ }
3368
+ get extendedLaptop() {
3369
+ return this.getAttribute("extended--laptop");
3370
+ }
3371
+ set extendedLaptop(t) {
3372
+ this.setAttribute("extended--laptop", t);
3373
+ }
3374
+ get extendedDesktop() {
3375
+ return this.getAttribute("extended--desktop");
3376
+ }
3377
+ set extendedDesktop(t) {
3378
+ this.setAttribute("extended--desktop", t);
3379
+ }
3380
+ get inverted() {
3381
+ return this.getAttribute("inverted");
3382
+ }
3383
+ set inverted(t) {
3384
+ this.setAttribute("inverted", t);
3385
+ }
3386
+ get fontsize() {
3387
+ return this.getAttribute("font-size");
3388
+ }
3389
+ set fontsize(t) {
3390
+ this.setAttribute("font-size", t);
3391
+ }
3392
+ get color() {
3393
+ return this.getAttribute("color");
3394
+ }
3395
+ set color(t) {
3396
+ this.setAttribute("color", t);
3397
+ }
3398
+ get fontweight() {
3399
+ return this.getAttribute("font-weight");
3400
+ }
3401
+ set fontweight(t) {
3402
+ this.setAttribute("font-weight", t);
3403
+ }
3404
+ get title() {
3405
+ return this.getAttribute("title");
3406
+ }
3407
+ set title(t) {
3408
+ t ? this.setAttribute("title", t) : this.removeAttribute("title");
3409
+ }
3410
+ };
3411
+ kt.nativeName = "a";
3412
+ let nt = kt;
3413
+ customElements.get("px-a") || customElements.define("px-a", nt);
3414
+ class dr extends HTMLElement {
3415
+ constructor() {
3416
+ super(), this.template = `<px-a font-weight="title" font-size="body-l" color="brand" variant="no-style">
3417
+ <slot></slot>
3418
+ </px-a>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template;
3419
+ const t = this.shadowRoot.querySelector("px-a");
3420
+ t && Array.from(this.attributes).forEach((e) => {
3421
+ t.setAttribute(e.name, e.value);
3422
+ });
3423
+ }
3424
+ }
3425
+ customElements.get("px-mdd-a") || customElements.define("px-mdd-a", dr);
3426
+ const lr = "#navigation-container{border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}#dropdown-zone--desktop{display:none}#primary-navigation{display:none;margin:0;padding:0}#panel-container{position:absolute;top:0;left:0;right:0;z-index:999}#backdrop-filter{display:none;position:absolute;z-index:998;left:0;width:100vw;height:100%;background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}@media only screen and (min-width: 48em){#dropdown-zone--desktop{display:block;margin-block:var(--px-padding-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}}@media only screen and (min-width: 64.0625em){#dropdown-zone--desktop{margin-block:var(--px-padding-s-laptop)}}@media only screen and (min-width: 90.0625em){#dropdown-zone--desktop{margin-block:var(--px-padding-s-desktop)}}";
3427
+ function Z(i) {
3428
+ var t = typeof i;
3429
+ return i != null && (t == "object" || t == "function");
3430
+ }
3431
+ var cr = typeof global == "object" && global && global.Object === Object && global, br = typeof self == "object" && self && self.Object === Object && self, ae = cr || br || Function("return this")(), Q = function() {
3432
+ return ae.Date.now();
3433
+ }, pr = /\s/;
3434
+ function hr(i) {
3435
+ for (var t = i.length; t-- && pr.test(i.charAt(t)); )
3436
+ ;
3437
+ return t;
3438
+ }
3439
+ var ur = /^\s+/;
3440
+ function gr(i) {
3441
+ return i && i.slice(0, hr(i) + 1).replace(ur, "");
3442
+ }
3443
+ var N = ae.Symbol, se = Object.prototype, vr = se.hasOwnProperty, xr = se.toString, q = N ? N.toStringTag : void 0;
3444
+ function fr(i) {
3445
+ var t = vr.call(i, q), e = i[q];
3446
+ try {
3447
+ i[q] = void 0;
3448
+ var r = !0;
3449
+ } catch {
3450
+ }
3451
+ var o = xr.call(i);
3452
+ return r && (t ? i[q] = e : delete i[q]), o;
3453
+ }
3454
+ var mr = Object.prototype, kr = mr.toString;
3455
+ function Ar(i) {
3456
+ return kr.call(i);
3457
+ }
3458
+ var yr = "[object Null]", $r = "[object Undefined]", St = N ? N.toStringTag : void 0;
3459
+ function Cr(i) {
3460
+ return i == null ? i === void 0 ? $r : yr : St && St in Object(i) ? fr(i) : Ar(i);
3461
+ }
3462
+ function wr(i) {
3463
+ return i != null && typeof i == "object";
3464
+ }
3465
+ var Sr = "[object Symbol]";
3466
+ function zr(i) {
3467
+ return typeof i == "symbol" || wr(i) && Cr(i) == Sr;
3468
+ }
3469
+ var zt = NaN, Er = /^[-+]0x[0-9a-f]+$/i, Lr = /^0b[01]+$/i, Tr = /^0o[0-7]+$/i, Mr = parseInt;
3470
+ function Et(i) {
3471
+ if (typeof i == "number")
3472
+ return i;
3473
+ if (zr(i))
3474
+ return zt;
3475
+ if (Z(i)) {
3476
+ var t = typeof i.valueOf == "function" ? i.valueOf() : i;
3477
+ i = Z(t) ? t + "" : t;
3478
+ }
3479
+ if (typeof i != "string")
3480
+ return i === 0 ? i : +i;
3481
+ i = gr(i);
3482
+ var e = Lr.test(i);
3483
+ return e || Tr.test(i) ? Mr(i.slice(2), e ? 2 : 8) : Er.test(i) ? zt : +i;
3484
+ }
3485
+ var Br = "Expected a function", Rr = Math.max, Ir = Math.min;
3486
+ function Dr(i, t, e) {
3487
+ var r, o, a, s, l, b, g = 0, B = !1, R = !1, G = !0;
3488
+ if (typeof i != "function")
3489
+ throw new TypeError(Br);
3490
+ t = Et(t) || 0, Z(e) && (B = !!e.leading, R = "maxWait" in e, a = R ? Rr(Et(e.maxWait) || 0, t) : a, G = "trailing" in e ? !!e.trailing : G);
3491
+ function K(c) {
3492
+ var v = r, I = o;
3493
+ return r = o = void 0, g = c, s = i.apply(I, v), s;
3494
+ }
3495
+ function ge(c) {
3496
+ return g = c, l = setTimeout(j, t), B ? K(c) : s;
3497
+ }
3498
+ function ve(c) {
3499
+ var v = c - b, I = c - g, $t = t - v;
3500
+ return R ? Ir($t, a - I) : $t;
3501
+ }
3502
+ function At(c) {
3503
+ var v = c - b, I = c - g;
3504
+ return b === void 0 || v >= t || v < 0 || R && I >= a;
3505
+ }
3506
+ function j() {
3507
+ var c = Q();
3508
+ if (At(c))
3509
+ return yt(c);
3510
+ l = setTimeout(j, ve(c));
3511
+ }
3512
+ function yt(c) {
3513
+ return l = void 0, G && r ? K(c) : (r = o = void 0, s);
3514
+ }
3515
+ function xe() {
3516
+ l !== void 0 && clearTimeout(l), g = 0, r = b = o = l = void 0;
3517
+ }
3518
+ function fe() {
3519
+ return l === void 0 ? s : yt(Q());
3520
+ }
3521
+ function X() {
3522
+ var c = Q(), v = At(c);
3523
+ if (r = arguments, o = this, b = c, v) {
3524
+ if (l === void 0)
3525
+ return ge(b);
3526
+ if (R)
3527
+ return clearTimeout(l), l = setTimeout(j, t), K(b);
3528
+ }
3529
+ return l === void 0 && (l = setTimeout(j, t)), s;
3530
+ }
3531
+ return X.cancel = xe, X.flush = fe, X;
3532
+ }
3533
+ var qr = "Expected a function";
3534
+ function Pr(i, t, e) {
3535
+ var r = !0, o = !0;
3536
+ if (typeof i != "function")
3537
+ throw new TypeError(qr);
3538
+ return Z(e) && (r = "leading" in e ? !!e.leading : r, o = "trailing" in e ? !!e.trailing : o), Dr(i, t, {
3539
+ leading: r,
3540
+ maxWait: t,
3541
+ trailing: o
3542
+ });
3543
+ }
3544
+ const ne = new CSSStyleSheet();
3545
+ ne.replaceSync(lr);
3546
+ const _r = "Menu";
3547
+ var H, n, de, dt, lt, le, ct, A, P, _, $;
3548
+ class Hr extends E {
3549
+ constructor() {
3550
+ var e;
3551
+ super(ne);
3552
+ h(this, n);
3553
+ h(this, H);
3554
+ this.template = `
3555
+ <div>
3556
+ <header>
3557
+ <slot name="skip"></slot>
3558
+ <px-section id="navigation-container" padding-block--mobile="s" padding-block="none"
3559
+ background-color="none">
3560
+ <px-hstack id="dropdown-zone--desktop" justify-content="space-between" align-items="center">
3561
+ <slot name="target-group"></slot>
3562
+ <slot name="user-language"></slot>
3563
+ </px-hstack>
3564
+ <px-hstack gap="default" wrap="wrap" align-items="center">
3565
+ <slot name="header-logo"></slot>
3566
+ <nav id="primary-navigation" aria-label="${this.primaryNavigationAriaLabel}">
3567
+ <div role="list">
3568
+ <px-hstack gap="default" wrap="wrap" align-items="center">
3569
+ <slot name="header-entries"></slot>
3570
+ </px-hstack>
3571
+ </div>
3572
+ </nav>
3573
+ <px-spacer></px-spacer>
3574
+ <px-hstack gap--mobile="none" gap="default">
3575
+ <slot name="header-actions"></slot>
3576
+ <px-button-icon variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
3577
+ aria-expanded="false" aria-controls="__lavender_mobile_menu" hidden--tablet hidden--laptop
3578
+ hidden--desktop>
3579
+ <px-icon name="burger_menu" from="lavender"></px-icon>
3580
+ </px-button-icon>
3581
+ </px-hstack>
3582
+ </px-hstack>
3583
+ </px-section>
3584
+ <px-section id="panel-container" background-color="surface-default" padding="none"
3585
+ background-color="none">
3586
+ <slot name="header-panels">
3587
+ </px-section>
3588
+ </header>
3589
+ <div id="backdrop-filter"></div>
3590
+ <slot name="main"></slot>
3591
+ </div>
3592
+ `, D(this, H, () => {
3593
+ window.innerWidth >= 768 && (p(this, n, le).call(this), p(this, n, de).call(this));
3594
+ }), this.shadowRoot.innerHTML = this.template, this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "navigation", this.internals.ariaOrientation = "horizontal");
3595
+ }
3596
+ connectedCallback() {
3597
+ this.addEventListener("click", (e) => {
3598
+ const r = e.target.closest(
3599
+ "px-header-item"
3600
+ );
3601
+ r && r.for && (e.target.checked === !1 ? (this.$backdropFilter.style.display = "block", d(this, n, P).forEach((o) => {
3602
+ o.checked = !1;
3603
+ }), r.checked = !0, p(this, n, dt).call(this, e.target.for)) : p(this, n, ct).call(this));
3604
+ }), this.addEventListener("section-item-click", (e) => {
3605
+ this.$backdropFilter.style.display = "block", d(this, n, P).forEach((r) => {
3606
+ r.checked = !1;
3607
+ }), this.querySelector(
3608
+ `px-header-item[for="${e.detail.for}"]`
3609
+ ).checked = !0, p(this, n, dt).call(this, e.detail.for);
3610
+ }), this.addEventListener("back-to-mobile-menu", () => {
3611
+ this.$backdropFilter.style.display = "block", d(this, n, P).forEach((e) => {
3612
+ e.checked = !1;
3613
+ }), p(this, n, lt).call(this);
3614
+ }), this.shadowRoot.addEventListener("click", (e) => {
3615
+ e.target.closest("px-button-icon") && (this.$burgerMenu.setAttribute("aria-expanded", "true"), p(this, n, lt).call(this));
3616
+ }), this.addEventListener("close-panel", () => {
3617
+ p(this, n, ct).call(this), this.$burgerMenu.setAttribute("aria-expanded", "false");
3618
+ }), this.addEventListener(
3619
+ "close-panel-from-dialog",
3620
+ (e) => {
3621
+ this.dispatchEvent(new CustomEvent("close-panel")), e.detail.clientY < d(this, n, _).getBoundingClientRect().bottom && requestAnimationFrame(() => {
3622
+ var r;
3623
+ (r = document.elementFromPoint(
3624
+ e.detail.clientX,
3625
+ e.detail.clientY
3626
+ )) == null || r.click();
3627
+ });
3628
+ }
3629
+ ), !this.$targetGroupDropdown && !this.$userLanguageDropdown && (this.$dropDownZoneDesktop.style.display = "none"), this.primaryNavigationAriaLabel || this.setAttribute("primary-navigation-aria-label", _r), window.addEventListener("resize", Pr(d(this, H), 200));
3630
+ }
3631
+ static get observedAttributes() {
3632
+ return [
3633
+ "burger-menu-aria-label",
3634
+ "close-button-aria-label",
3635
+ "primary-navigation-aria-label",
3636
+ "back-to-menu-label"
3637
+ ];
3638
+ }
3639
+ attributeChangedCallback(e, r, o) {
3640
+ if (r !== o)
3641
+ switch (e) {
3642
+ case "close-button-aria-label":
3643
+ d(this, n, $).forEach((a) => {
3644
+ a.setAttribute("close-button-aria-label", o);
3645
+ });
3646
+ break;
3647
+ case "burger-menu-aria-label":
3648
+ this.$burgerMenu.setAttribute("aria-label", o);
3649
+ break;
3650
+ case "primary-navigation-aria-label":
3651
+ this.$primaryNavigation.setAttribute("aria-label", o);
3652
+ break;
3653
+ case "back-to-menu-label":
3654
+ d(this, n, $).forEach((a) => {
3655
+ a.setAttribute("back-to-menu-label", o);
3656
+ });
3657
+ break;
3658
+ }
3659
+ }
3660
+ get $backdropFilter() {
3661
+ return this.shadowRoot.querySelector("#backdrop-filter");
3662
+ }
3663
+ get $burgerMenu() {
3664
+ return this.shadowRoot.querySelector("px-button-icon");
3665
+ }
3666
+ get $slotMain() {
3667
+ return this.querySelector('[slot="main"]');
3668
+ }
3669
+ get $targetGroupDropdown() {
3670
+ return this.querySelector('px-dropdown[slot="target-group"]');
3671
+ }
3672
+ get $userLanguageDropdown() {
3673
+ return this.querySelector('px-dropdown[slot="user-language"]');
3674
+ }
3675
+ get $dropDownZoneDesktop() {
3676
+ return this.shadowRoot.querySelector("#dropdown-zone--desktop");
3677
+ }
3678
+ get $primaryNavigation() {
3679
+ return this.shadowRoot.querySelector("#primary-navigation");
3680
+ }
3681
+ get closeButtonAriaLabel() {
3682
+ return this.getAttribute("close-button-aria-label");
3683
+ }
3684
+ set closeButtonAriaLabel(e) {
3685
+ e ? this.setAttribute("close-button-aria-label", e) : this.removeAttribute("close-button-aria-label");
3686
+ }
3687
+ get burgerMenuAriaLabel() {
3688
+ return this.getAttribute("burger-menu-aria-label");
3689
+ }
3690
+ set burgerMenuAriaLabel(e) {
3691
+ e ? this.setAttribute("burger-menu-aria-label", e) : this.removeAttribute("burger-menu-aria-label");
3692
+ }
3693
+ get backToMenuLabel() {
3694
+ return this.getAttribute("back-to-menu-label");
3695
+ }
3696
+ set backToMenuLabel(e) {
3697
+ e ? this.setAttribute("back-to-menu-label", e) : this.removeAttribute("back-to-menu-label");
3698
+ }
3699
+ get primaryNavigationAriaLabel() {
3700
+ return this.getAttribute("primary-navigation-aria-label");
3701
+ }
3702
+ set primaryNavigationAriaLabel(e) {
3703
+ e ? this.setAttribute("primary-navigation-aria-label", e) : this.removeAttribute("primary-navigation-aria-label");
3704
+ }
3705
+ }
3706
+ H = new WeakMap(), n = new WeakSet(), de = function() {
3707
+ const e = this.querySelectorAll("px-mdd"), r = d(this, n, _).getBoundingClientRect().bottom;
3708
+ e.forEach((o) => {
3709
+ o.dialogOffsetTop = `${r}px`;
3710
+ });
3711
+ }, dt = function(e) {
3712
+ d(this, n, A).$megaDropDown.hidden = !0, d(this, n, $).forEach((r) => {
3713
+ r.name === e && r.hidden && (r.dialogOffsetTop = `${d(this, n, _).getBoundingClientRect().bottom}px`, r.hidden = !r.hidden, this.querySelector(`px-header-item[for="${e}"]`).checked = !r.hidden, document.body.style.overflow = r.hidden ? "auto" : "hidden"), r.name !== e && !r.hidden && (r.hidden = !0);
3714
+ });
3715
+ }, lt = function() {
3716
+ this.$backdropFilter.style.display = "none", d(this, n, $).forEach((e) => {
3717
+ e.hidden || (e.hidden = !0);
3718
+ }), d(this, n, A).$megaDropDown.dialogOffsetTop = `${d(this, n, _).getBoundingClientRect().bottom}px`, d(this, n, A).$megaDropDown.hidden = !1, document.body.style.overflow = "hidden";
3719
+ }, le = function() {
3720
+ d(this, n, A) && (d(this, n, A).$megaDropDown.hidden = !0, this.$burgerMenu.setAttribute("aria-expanded", "false"), document.body.style.overflow = "auto", this.$backdropFilter.style.display = "none");
3721
+ }, ct = function() {
3722
+ this.$backdropFilter.style.display = "none", d(this, n, A).$megaDropDown.hidden = !0, d(this, n, P).forEach((e) => {
3723
+ e.checked = !1;
3724
+ }), d(this, n, $).forEach((e) => {
3725
+ e.hidden = !0;
3726
+ }), document.body.style.overflow = "auto";
3727
+ }, A = function() {
3728
+ return this.querySelector("px-header-mobile-menu");
3729
+ }, P = function() {
3730
+ return this.querySelectorAll("px-header-item");
3731
+ }, _ = function() {
3732
+ return this.shadowRoot.querySelector("header");
3733
+ }, $ = function() {
3734
+ return this.querySelectorAll("px-mdd");
3735
+ };
3736
+ customElements.get("px-header") || customElements.define("px-header", Hr);
3737
+ const Or = ':host{position:relative}::slotted([slot="popover"]){position:absolute;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 767px){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 768px){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}', jr = [
3738
+ "top-left",
3739
+ "top-right",
3740
+ "bottom-left",
3741
+ "bottom-right"
3742
+ ];
3743
+ function Fr(i, t, e = "bottom-left", r) {
3744
+ "anchorName" in document.documentElement.style || t.addEventListener("toggle", () => {
3745
+ var g, B;
3746
+ if (!i || !t)
3747
+ return;
3748
+ const o = i.getBoundingClientRect(), a = ((g = window.visualViewport) == null ? void 0 : g.height) ?? window.innerHeight, s = ((B = window.visualViewport) == null ? void 0 : B.width) ?? window.innerWidth, l = r.getPropertyValue("--px-padding-s-mobile") || "16px", b = parseInt(
3749
+ (r.getPropertyValue("--px-icon-size-xs-desktop") || "24").replace("px", "")
3750
+ );
3751
+ ["top-left", "top-right"].includes(e) ? (t.style.bottom = `calc( ${l} + ${a - o.top - window.scrollY}px)`, t.style.top = "auto", e === "top-left" ? t.style.left = s < 768 ? `${l}px` : `${o.left}px` : t.style.right = s < 768 ? `${l}px` : `${s - o.right}px`) : (t.style.top = `${o.bottom + window.scrollY}px`, e === "bottom-left" ? t.style.left = s < 768 ? `${l}px` : `${o.left}px` : t.style.right = s < 768 ? `${l}px` : `${s - o.right - b}px`);
3752
+ });
3753
+ }
3754
+ const ce = new CSSStyleSheet();
3755
+ ce.replaceSync(Or);
3756
+ const F = "bottom-left";
3757
+ var z, be, C, w, S, pe;
3758
+ class Wr extends E {
3759
+ constructor() {
3760
+ super(ce);
3761
+ h(this, z);
3762
+ h(this, C);
3763
+ h(this, w);
3764
+ h(this, S);
3765
+ this.template = () => `
3766
+ <style>${this.css}</style>
3767
+ <slot name="trigger"></slot>
3768
+ <slot name="popover"></slot>`, this.isAboutToClose = !1, D(this, C, () => {
3769
+ this.isAboutToClose || (this.$popoverElement.togglePopover({ source: this.$trigger }), this.$trigger.ariaExpanded = "true");
3770
+ }), D(this, w, () => {
3771
+ this.$popoverElement.matches(":popover-open") && (this.isAboutToClose = !0, this.$trigger.ariaExpanded = "false");
3772
+ }), D(this, S, () => {
3773
+ this.$popoverElement.matches(":popover-open") || setTimeout(() => {
3774
+ this.isAboutToClose = !1;
3775
+ });
3776
+ }), this.shadowRoot.innerHTML = this.template();
3777
+ }
3778
+ /**
3779
+ * Instance level styling for the dropdown component.
3780
+ * This is used to set the anchor name and position of the popover.
3781
+ * @private
3782
+ */
3783
+ get css() {
3784
+ return `::slotted([slot='trigger']) {
3785
+ anchor-name: ${this.anchorName};
3786
+ }
3787
+ :host([anchoralignment="bottom-left"]) {
3788
+ ::slotted([slot="popover"]) {
3789
+ position-anchor: ${this.anchorName};
3790
+ top: anchor(${this.anchorName} bottom);
3791
+ left: anchor(${this.anchorName} left);
3792
+ }
3793
+ }
3794
+ :host([anchoralignment="bottom-right"]) {
3795
+ ::slotted([slot="popover"]) {
3796
+ position-anchor: ${this.anchorName};
3797
+ top: anchor(${this.anchorName} bottom);
3798
+ right: calc(anchor(${this.anchorName} right) - var(--px-size-icon-xs));
3799
+ }
3800
+ }
3801
+ :host([anchoralignment="top-left"]) {
3802
+ ::slotted([slot="popover"]) {
3803
+ position-anchor: ${this.anchorName};
3804
+ bottom: calc( var(--px-padding-s-mobile) + anchor(${this.anchorName} top));
3805
+ left: anchor(${this.anchorName} left);
3806
+ }
3807
+ }
3808
+ :host([anchoralignment="top-right"]) {
3809
+ ::slotted([slot="popover"]) {
3810
+ position-anchor: ${this.anchorName};
3811
+ bottom: calc( var(--px-padding-s-mobile) + anchor(${this.anchorName} top));
3812
+ right: anchor(${this.anchorName} right);
3813
+ }
3814
+ }`;
3815
+ }
3816
+ static get observedAttributes() {
3817
+ return [...super.observedAttributes, "id", "anchoralignment"];
3818
+ }
3819
+ connectedCallback() {
3820
+ this.getAttribute("id") || this.setAttribute(
3821
+ "id",
3822
+ `px-dropdown-${Math.random().toString(36).substring(2, 15)}`
3823
+ ), this.getAttribute("anchoralignment") || this.setAttribute("anchoralignment", F), Fr(
3824
+ this.$trigger,
3825
+ this.$popoverElement,
3826
+ this.anchorAlignment,
3827
+ getComputedStyle(this)
3828
+ );
3829
+ }
3830
+ attributeChangedCallback(e, r, o) {
3831
+ switch (e) {
3832
+ case "id":
3833
+ r !== o && this.initPopover();
3834
+ break;
3835
+ default:
3836
+ super.attributeChangedCallback(e, r, o);
3837
+ break;
3838
+ }
3839
+ }
3840
+ initPopover() {
3841
+ this.$trigger && (this.$trigger.setAttribute("popovertarget", this.popoverId), this.$trigger.setAttribute("aria-controls", this.popoverId), this.$trigger.setAttribute("aria-expanded", "false"), this.$popoverElement.setAttribute("id", this.popoverId), this.$popoverElement.setAttribute("popover", ""), this.$style.innerHTML = this.css, p(this, z, be).call(this), p(this, z, pe).call(this));
3842
+ }
3843
+ get popoverId() {
3844
+ return `${this.getAttribute("id")}-popover`;
3845
+ }
3846
+ get anchorName() {
3847
+ return `--${this.getAttribute("id")}-anchor`;
3848
+ }
3849
+ get $style() {
3850
+ return this.shadowRoot.querySelector("style");
3851
+ }
3852
+ get $trigger() {
3853
+ return this.querySelector('[slot="trigger"]');
3854
+ }
3855
+ get $popoverElement() {
3856
+ return this.querySelector('[slot="popover"]');
3857
+ }
3858
+ get anchorAlignment() {
3859
+ return this.getAttribute("anchoralignment") || F;
3860
+ }
3861
+ set anchorAlignment(e) {
3862
+ jr.includes(e) ? this.setAttribute("anchoralignment", e) : (console.warn(
3863
+ `Invalid anchor alignment value: ${e}. Using default ${F}.`
3864
+ ), this.setAttribute("anchoralignment", F));
3865
+ }
3866
+ }
3867
+ z = new WeakSet(), be = function() {
3868
+ this.isAboutToClose = !1, this.$trigger.removeEventListener("click", d(this, C)), this.$popoverElement.removeEventListener(
3869
+ "beforetoggle",
3870
+ d(this, w)
3871
+ ), this.$popoverElement.removeEventListener("toggle", d(this, S));
3872
+ }, C = new WeakMap(), w = new WeakMap(), S = new WeakMap(), /**
3873
+ * Handles the manual display of the popover when the trigger is clicked.
3874
+ * This is necessary for cases where the trigger is not a button or input element.
3875
+ * This method adds event listeners to the trigger element to toggle the popover.
3876
+ * It also manages the state of whether the popover is about to close or not to avoid
3877
+ * race conditions when the popover is toggled and the trigger click event is fired.
3878
+ */
3879
+ pe = function() {
3880
+ this.$trigger && !["button", "input"].includes(this.$trigger.localName) && (this.$trigger.addEventListener("click", d(this, C)), this.$popoverElement.addEventListener("beforetoggle", d(this, w)), this.$popoverElement.addEventListener("toggle", d(this, S)));
3881
+ };
3882
+ customElements.get("px-dropdown") || customElements.define("px-dropdown", Wr);
3883
+ const he = new CSSStyleSheet();
3884
+ he.replaceSync(`
3885
+ @media screen and (min-width: 48em) {
3886
+ :host {
3887
+ display: none;
3888
+ }
3889
+ }
3890
+ `);
3891
+ var U, Y, ue;
3892
+ class Zr extends HTMLElement {
3893
+ constructor() {
3894
+ super();
3895
+ h(this, Y);
3896
+ h(this, U, `<px-mdd
3897
+ name="__lavender_mobile_menu"
3898
+ hidden--tablet
3899
+ hidden--laptop
3900
+ hidden--desktop
3901
+ >
3902
+ <span slot="title"><slot name="title"></slot></span>
3903
+ <px-mdd-section title-hidden></px-mdd-section>
3904
+ </px-mdd>`);
3905
+ this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this, U), this.shadowRoot.adoptedStyleSheets = [he];
3906
+ }
3907
+ connectedCallback() {
3908
+ this.setAttribute("slot", "header-panels");
3909
+ const e = this.closest("px-header");
3910
+ if (!e)
3911
+ throw new Error(
3912
+ "<px-header-mobile-menu> must be used within a <px-header>."
3913
+ );
3914
+ const r = e.querySelectorAll("px-header-item"), o = e.querySelectorAll("px-action-link"), a = this.shadowRoot.querySelector("px-mdd-section");
3915
+ a.innerHTML = `
3916
+ ${[...r].map((s) => {
3917
+ const l = s.getAttribute("for"), b = s.getAttribute("href");
3918
+ return l ? `<px-mdd-section-item for="${l}">${s.innerText}</px-mdd-section-item>` : b ? `<px-mdd-section-item href="${b}">${s.innerText}</px-mdd-section-item>` : "";
3919
+ }).join("")}
3920
+ ${[...o].filter((s) => !s.hasAttribute("promoted")).map(
3921
+ (s) => `<px-mdd-a href="${s.getAttribute("href")}" slot="footer">${s.innerText}</px-mdd-a>`
3922
+ ).join("")}`, p(this, Y, ue).call(this).forEach((s) => {
3923
+ s && this.$megaDropDown.appendChild(s);
3924
+ });
3925
+ }
3926
+ get $megaDropDown() {
3927
+ return this.shadowRoot.querySelector("px-mdd");
3928
+ }
3929
+ }
3930
+ U = new WeakMap(), Y = new WeakSet(), ue = function() {
3931
+ const e = this.closest("px-header"), r = e.querySelector(
3932
+ 'px-dropdown[slot="target-group"]'
3933
+ ), o = e.querySelector(
3934
+ 'px-dropdown[slot="user-language"]'
3935
+ ), a = r == null ? void 0 : r.cloneNode(
3936
+ !0
3937
+ );
3938
+ a == null || a.removeAttribute("id"), a == null || a.setAttribute("slot", "mdd-footer"), a == null || a.setAttribute("grow", "3"), a == null || a.setAttribute("anchoralignment", "top-left");
3939
+ const s = o == null ? void 0 : o.cloneNode(
3940
+ !0
3941
+ );
3942
+ return s == null || s.removeAttribute("id"), s == null || s.setAttribute("slot", "mdd-footer"), s == null || s.setAttribute("grow", "1"), s == null || s.setAttribute("anchoralignment", "top-right"), [a, s];
3943
+ };
3944
+ customElements.get("px-header-mobile-menu") || customElements.define("px-header-mobile-menu", Zr);
3945
+ export {
3946
+ Hr as Header,
3947
+ or as HeaderItem,
3948
+ Zr as HeaderMobileMenu
3949
+ };