@proximus/lavender-common 2.0.0-alpha.23 → 2.0.0-alpha.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,956 +1,1050 @@
1
- const c = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 1441px){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}", g = {};
2
- function f(i) {
3
- const t = document.createElement(i), s = Object.getPrototypeOf(t);
4
- return Object.getOwnPropertyNames(s);
1
+ //#region src/debug.ts
2
+ var e = {
3
+ BASE_URL: "/",
4
+ DEV: !0,
5
+ MODE: "production",
6
+ PROD: !1,
7
+ SSR: !1,
8
+ VITE_COMPONENT_DEBUG: "true"
9
+ }, t = e?.VITE_COMPONENT_DEBUG === "true" || e?.DEV === !0;
10
+ typeof window < "u" && (window.isComponentDebug = n);
11
+ function n() {
12
+ return t;
5
13
  }
6
- function m(i) {
7
- const t = document.createElement(i), s = Object.getPrototypeOf(t);
8
- return Object.getOwnPropertyNames(s).map(
9
- (e) => e.toLowerCase()
10
- );
14
+ function r(e) {
15
+ n() && console.error(e);
11
16
  }
12
- const d = new CSSStyleSheet();
13
- d.replaceSync(c);
14
- const k = typeof import.meta < "u" && typeof g < "u" && !0;
15
- typeof window < "u" && (window.isComponentDebug = h);
16
- function h() {
17
- return k;
17
+ typeof window < "u" && (window.isComponentDebug = n);
18
+ //#endregion
19
+ //#region src/WrappedInteractiveStateController.ts
20
+ var i = class {
21
+ #e;
22
+ #t;
23
+ #n;
24
+ #r;
25
+ constructor(e, t, n) {
26
+ this.#r = !1, this.#i = () => {
27
+ this.setInteractiveState("hover");
28
+ }, this.clearInteractiveState = () => {
29
+ this.setInteractiveState(null);
30
+ }, this.#e = e, this.#t = t, this.#n = n;
31
+ }
32
+ #i;
33
+ connect() {
34
+ this.#r ||= (this.#t.addEventListener("pointerenter", this.#i), this.#t.addEventListener("pointerleave", this.clearInteractiveState), this.#t.addEventListener("focusin", this.#i), this.#t.addEventListener("focusout", this.clearInteractiveState), !0);
35
+ }
36
+ disconnect() {
37
+ this.#r &&= (this.#t.removeEventListener("pointerenter", this.#i), this.#t.removeEventListener("pointerleave", this.clearInteractiveState), this.#t.removeEventListener("focusin", this.#i), this.#t.removeEventListener("focusout", this.clearInteractiveState), !1);
38
+ }
39
+ setInteractiveState(e) {
40
+ let t = this.#a;
41
+ this.#n() ? t.forEach((t) => {
42
+ e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
43
+ }) : t.forEach((e) => e.removeAttribute("interactive-state"));
44
+ }
45
+ get #a() {
46
+ return Array.from(this.#e.querySelectorAll("*")).filter(a);
47
+ }
48
+ };
49
+ function a(e) {
50
+ return e.hasAttribute("interactive-state") ? !0 : customElements.get(e.localName)?.observedAttributes?.includes("interactive-state") ?? !1;
18
51
  }
19
- function v(i) {
20
- h() && console.error(i);
52
+ //#endregion
53
+ //#region src/common.css?inline
54
+ var o = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
55
+ //#endregion
56
+ //#region src/attributeSetters.ts
57
+ function s(e, t, n) {
58
+ n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
21
59
  }
22
- typeof window < "u" && (window.isComponentDebug = h);
23
- class u extends HTMLElement {
24
- static get observedAttributes() {
25
- return [
26
- "grow",
27
- "grow--mobile",
28
- "grow--tablet",
29
- "grow--laptop",
30
- "grow--desktop",
31
- "shrink",
32
- "shrink--mobile",
33
- "shrink--tablet",
34
- "shrink--laptop",
35
- "shrink--desktop",
36
- "basis",
37
- "basis--mobile",
38
- "basis--tablet",
39
- "basis--laptop",
40
- "basis--desktop",
41
- "align-self",
42
- "align-self--mobile",
43
- "align-self--tablet",
44
- "align-self--laptop",
45
- "align-self--desktop",
46
- "justify-self",
47
- "justify-self--mobile",
48
- "justify-self--tablet",
49
- "justify-self--laptop",
50
- "justify-self--desktop",
51
- "hidden",
52
- "hidden--mobile",
53
- "hidden--tablet",
54
- "hidden--laptop",
55
- "hidden--desktop",
56
- "shown--sr",
57
- "shown--sr--mobile",
58
- "shown--sr--tablet",
59
- "shown--sr--laptop",
60
- "shown--sr--desktop",
61
- "col-span",
62
- "col-span--mobile",
63
- "col-span--tablet",
64
- "col-span--laptop",
65
- "col-span--desktop",
66
- "order",
67
- "order--mobile",
68
- "order--tablet",
69
- "order--laptop",
70
- "order--desktop"
71
- ];
72
- }
73
- constructor(...t) {
74
- super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
75
- d,
76
- ...t
77
- ];
78
- }
79
- attributeChangedCallback(t, s, e) {
80
- var o;
81
- if (u.observedAttributes.indexOf(t) !== -1)
82
- switch (t) {
83
- case "grow":
84
- case "grow--mobile":
85
- case "grow--tablet":
86
- case "grow--laptop":
87
- case "grow--desktop":
88
- case "shrink":
89
- case "shrink--mobile":
90
- case "shrink--tablet":
91
- case "shrink--laptop":
92
- case "shrink--desktop":
93
- case "basis":
94
- case "basis--mobile":
95
- case "basis--tablet":
96
- case "basis--laptop":
97
- case "basis--desktop":
98
- this.style.setProperty(`--${t}-value`, e);
99
- break;
100
- case "align-self":
101
- case "align-self--mobile":
102
- case "align-self--tablet":
103
- case "align-self--laptop":
104
- case "align-self--desktop":
105
- this.updateProperties(
106
- t,
107
- s,
108
- e,
109
- ((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? y : w
110
- );
111
- break;
112
- case "justify-self":
113
- case "justify-self--mobile":
114
- case "justify-self--tablet":
115
- case "justify-self--laptop":
116
- case "justify-self--desktop":
117
- this.updateProperties(
118
- t,
119
- s,
120
- e,
121
- A
122
- );
123
- break;
124
- case "col-span":
125
- case "col-span--mobile":
126
- case "col-span--tablet":
127
- case "col-span--laptop":
128
- case "col-span--desktop":
129
- this.updateProperties(t, s, e, S);
130
- break;
131
- case "order":
132
- case "order--mobile":
133
- case "order--tablet":
134
- case "order--laptop":
135
- case "order--desktop":
136
- this.updateProperties(t, s, e, $);
137
- break;
138
- }
139
- }
140
- updateProperties(t, s, e, o) {
141
- if (o && !this.checkName(o, e)) {
142
- v(
143
- `${e} is not an allowed ${o} value for ${this.tagName.toLowerCase()}`
144
- );
145
- return;
146
- }
147
- const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
148
- if (!a)
149
- this.style.setProperty(
150
- `--${l}-value`,
151
- s
152
- ), this.style.setProperty(
153
- `--${l}-value`,
154
- e
155
- );
156
- else {
157
- const n = t.split("--")[1];
158
- this.style.setProperty(
159
- `--${l}--${n}-value`,
160
- s
161
- ), this.style.setProperty(
162
- `--${l}--${n}-value`,
163
- e
164
- );
165
- }
166
- }
167
- updateStyle(t, s, e) {
168
- e !== null && e !== "" && e !== "default" && this.style.setProperty(
169
- `--${t}--${s}-value`,
170
- e
171
- );
172
- }
173
- checkName(t, s) {
174
- return t.includes(s);
175
- }
176
- get $el() {
177
- return this;
178
- }
179
- get $parentElementName() {
180
- var t;
181
- return (t = this.parentElement) == null ? void 0 : t.tagName.toLowerCase();
182
- }
183
- get isInsideGridOrStack() {
184
- let t = this.parentElement;
185
- for (; t; ) {
186
- if (t.localName === "px-grid" || t.localName === "px-stack" && (t == null ? void 0 : t.getAttribute("direction")) === "row")
187
- return !0;
188
- if (window.getComputedStyle(t).display === "contents") {
189
- t = t.parentElement;
190
- continue;
191
- }
192
- break;
193
- }
194
- return !1;
195
- }
196
- get grow() {
197
- return this.getAttribute("grow");
198
- }
199
- set grow(t) {
200
- this.setAttribute("grow", t);
201
- }
202
- get growMobile() {
203
- return this.getAttribute("grow--mobile");
204
- }
205
- set growMobile(t) {
206
- this.setAttribute("grow--mobile", t);
207
- }
208
- get growTablet() {
209
- return this.getAttribute("grow--tablet");
210
- }
211
- set growTablet(t) {
212
- this.setAttribute("grow--tablet", t);
213
- }
214
- get growLaptop() {
215
- return this.getAttribute("grow--laptop");
216
- }
217
- set growLaptop(t) {
218
- this.setAttribute("grow--laptop", t);
219
- }
220
- get growDesktop() {
221
- return this.getAttribute("grow--desktop");
222
- }
223
- set growDesktop(t) {
224
- this.setAttribute("grow--desktop", t);
225
- }
226
- get shrink() {
227
- return this.getAttribute("shrink");
228
- }
229
- set shrink(t) {
230
- this.setAttribute("shrink", t);
231
- }
232
- get shrinkMobile() {
233
- return this.getAttribute("shrink--mobile");
234
- }
235
- set shrinkMobile(t) {
236
- this.setAttribute("shrink--mobile", t);
237
- }
238
- get shrinkTablet() {
239
- return this.getAttribute("shrink--tablet");
240
- }
241
- set shrinkTablet(t) {
242
- this.setAttribute("shrink--tablet", t);
243
- }
244
- get shrinkLaptop() {
245
- return this.getAttribute("shrink--laptop");
246
- }
247
- set shrinkLaptop(t) {
248
- this.setAttribute("shrink--laptop", t);
249
- }
250
- get shrinkDesktop() {
251
- return this.getAttribute("shrink--desktop");
252
- }
253
- set shrinkDesktop(t) {
254
- this.setAttribute("shrink--desktop", t);
255
- }
256
- get basis() {
257
- return this.getAttribute("basis");
258
- }
259
- set basis(t) {
260
- this.setAttribute("basis", t);
261
- }
262
- get basisMobile() {
263
- return this.getAttribute("basis--mobile");
264
- }
265
- set basisMobile(t) {
266
- this.setAttribute("basis--mobile", t);
267
- }
268
- get basisTablet() {
269
- return this.getAttribute("basis--tablet");
270
- }
271
- set basisTablet(t) {
272
- this.setAttribute("basis--tablet", t);
273
- }
274
- get basisLaptop() {
275
- return this.getAttribute("basis--laptop");
276
- }
277
- set basisLaptop(t) {
278
- this.setAttribute("basis--laptop", t);
279
- }
280
- get basisDesktop() {
281
- return this.getAttribute("basis--desktop");
282
- }
283
- set basisDesktop(t) {
284
- this.setAttribute("basis--desktop", t);
285
- }
286
- get alignSelf() {
287
- return this.getAttribute("align-self");
288
- }
289
- set alignSelf(t) {
290
- this.setAttribute("align-self", t);
291
- }
292
- get alignSelfMobile() {
293
- return this.getAttribute("align-self--mobile");
294
- }
295
- set alignSelfMobile(t) {
296
- this.setAttribute("align-self--mobile", t);
297
- }
298
- get alignSelfTablet() {
299
- return this.getAttribute("align-self--tablet");
300
- }
301
- set alignSelfTablet(t) {
302
- this.setAttribute("align-self--tablet", t);
303
- }
304
- get alignSelfLaptop() {
305
- return this.getAttribute("align-self--laptop");
306
- }
307
- set alignSelfLaptop(t) {
308
- this.setAttribute("align-self--laptop", t);
309
- }
310
- get alignSelfDesktop() {
311
- return this.getAttribute("align-self--desktop");
312
- }
313
- set alignSelfDesktop(t) {
314
- this.setAttribute("align-self--desktop", t);
315
- }
316
- get justifySelf() {
317
- return this.getAttribute("justify-self");
318
- }
319
- set justifySelf(t) {
320
- this.setAttribute("justify-self", t);
321
- }
322
- get justifySelfMobile() {
323
- return this.getAttribute("justify-self--mobile");
324
- }
325
- set justifySelfMobile(t) {
326
- this.setAttribute("justify-self--mobile", t);
327
- }
328
- get justifySelfTablet() {
329
- return this.getAttribute("justify-self--tablet");
330
- }
331
- set justifySelfTablet(t) {
332
- this.setAttribute("justify-self--tablet", t);
333
- }
334
- get justifySelfLaptop() {
335
- return this.getAttribute("justify-self--laptop");
336
- }
337
- set justifySelfLaptop(t) {
338
- this.setAttribute("justify-self--laptop", t);
339
- }
340
- get justifySelfDesktop() {
341
- return this.getAttribute("justify-self--desktop");
342
- }
343
- set justifySelfDesktop(t) {
344
- this.setAttribute("justify-self--desktop", t);
345
- }
346
- get hiddenMobile() {
347
- return this.getAttribute("hidden--mobile");
348
- }
349
- set hiddenMobile(t) {
350
- this.setAttribute("hidden--mobile", t);
351
- }
352
- get hiddenTablet() {
353
- return this.getAttribute("hidden--tablet");
354
- }
355
- set hiddenTablet(t) {
356
- this.setAttribute("hidden--tablet", t);
357
- }
358
- get hiddenLaptop() {
359
- return this.getAttribute("hidden--laptop");
360
- }
361
- set hiddenLaptop(t) {
362
- this.setAttribute("hidden--laptop", t);
363
- }
364
- get hiddenDesktop() {
365
- return this.getAttribute("hidden--desktop");
366
- }
367
- set hiddenDesktop(t) {
368
- this.setAttribute("hidden--desktop", t);
369
- }
370
- get colSpan() {
371
- return this.getAttribute("col-span");
372
- }
373
- set colSpan(t) {
374
- this.setAttribute("col-span", t);
375
- }
376
- get colSpanMobile() {
377
- return this.getAttribute("col-span--mobile");
378
- }
379
- set colSpanMobile(t) {
380
- this.setAttribute("col-span--mobile", t);
381
- }
382
- get colSpanTablet() {
383
- return this.getAttribute("col-span--tablet");
384
- }
385
- set colSpanTablet(t) {
386
- this.setAttribute("col-span--tablet", t);
387
- }
388
- get colSpanLaptop() {
389
- return this.getAttribute("col-span--laptop");
390
- }
391
- set colSpanLaptop(t) {
392
- this.setAttribute("col-span--laptop", t);
393
- }
394
- get colSpanDesktop() {
395
- return this.getAttribute("col-span--desktop");
396
- }
397
- set colSpanDesktop(t) {
398
- this.setAttribute("col-span--desktop", t);
399
- }
400
- get order() {
401
- return this.getAttribute("order");
402
- }
403
- set order(t) {
404
- this.setAttribute("order", t);
405
- }
406
- get orderMobile() {
407
- return this.getAttribute("order--mobile");
408
- }
409
- set orderMobile(t) {
410
- this.setAttribute("order--mobile", t);
411
- }
412
- get orderTablet() {
413
- return this.getAttribute("order--tablet");
414
- }
415
- set orderTablet(t) {
416
- this.setAttribute("order--tablet", t);
417
- }
418
- get orderLaptop() {
419
- return this.getAttribute("order--laptop");
420
- }
421
- set orderLaptop(t) {
422
- this.setAttribute("order--laptop", t);
423
- }
424
- get orderDesktop() {
425
- return this.getAttribute("order--desktop");
426
- }
427
- set orderDesktop(t) {
428
- this.setAttribute("order--desktop", t);
429
- }
60
+ function c(e, t, n) {
61
+ n ? e.setAttribute(t, "") : e.removeAttribute(t);
430
62
  }
431
- const b = class b extends u {
432
- // nativeName: string;
433
- static get observedAttributes() {
434
- return [
435
- ...super.observedAttributes,
436
- ...m(this.nativeName)
437
- ];
438
- }
439
- attributeChangedCallback(t, s, e) {
440
- super.attributeChangedCallback(t, s, e), e === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, e);
441
- }
442
- get ctor() {
443
- return Object.getPrototypeOf(this).constructor;
444
- }
445
- constructor(...t) {
446
- super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = f(
447
- this.ctor.nativeName
448
- )), this.enhanceWithNativeProperties();
449
- }
450
- enhanceWithNativeProperties() {
451
- var t;
452
- for (const s of this.ctor.supportedPropertyNames)
453
- if (!(s === "constructor" || (((t = this.ctor) == null ? void 0 : t.accessorExclusions) ?? []).includes(s)))
454
- try {
455
- Object.defineProperty(this, s, {
456
- get() {
457
- return this.$el[s];
458
- },
459
- set(e) {
460
- this.$el[s] !== e && (this.$el[s] = e);
461
- }
462
- });
463
- } catch (e) {
464
- console.warn(`Could not create property ${s} for`, this.$el, e);
465
- }
466
- }
467
- get $el() {
468
- return this.shadowRoot.querySelector(this.ctor.nativeName);
469
- }
470
- _updateAttribute(t, s) {
471
- s ? this.setAttribute(t, s) : this.removeAttribute(t);
472
- }
473
- _updateBooleanAttribute(t, s) {
474
- s ? this.setAttribute(t, "") : this.removeAttribute(t);
475
- }
63
+ //#endregion
64
+ //#region src/values.ts
65
+ var ee = [
66
+ "",
67
+ "default",
68
+ "none",
69
+ "l"
70
+ ], l = [
71
+ "",
72
+ "default",
73
+ "auto",
74
+ "flex-start",
75
+ "start",
76
+ "flex-end",
77
+ "end",
78
+ "center",
79
+ "baseline",
80
+ "stretch"
81
+ ], u = [
82
+ "",
83
+ "default",
84
+ "start",
85
+ "end",
86
+ "center",
87
+ "stretch"
88
+ ], d = [
89
+ "",
90
+ "default",
91
+ "start",
92
+ "end",
93
+ "center",
94
+ "stretch"
95
+ ], f = [
96
+ "",
97
+ "1",
98
+ "2",
99
+ "3",
100
+ "4",
101
+ "5",
102
+ "6",
103
+ "7",
104
+ "8",
105
+ "9",
106
+ "10",
107
+ "11",
108
+ "12"
109
+ ], p = [
110
+ "",
111
+ "-1",
112
+ "0",
113
+ "1",
114
+ "2",
115
+ "3",
116
+ "4",
117
+ "5",
118
+ "6",
119
+ "7",
120
+ "8",
121
+ "9",
122
+ "10",
123
+ "11",
124
+ "12"
125
+ ], m = [
126
+ "",
127
+ "default",
128
+ "auto",
129
+ "start",
130
+ "end",
131
+ "center",
132
+ "stretch"
133
+ ], h = [
134
+ "",
135
+ "default",
136
+ "inherit",
137
+ "body-l",
138
+ "body-m",
139
+ "body-s",
140
+ "body-xs",
141
+ "heading-5xl",
142
+ "heading-4xl",
143
+ "heading-3xl",
144
+ "heading-2xl",
145
+ "heading-xl",
146
+ "heading-l",
147
+ "heading-m",
148
+ "heading-s"
149
+ ], g = [
150
+ "",
151
+ "default",
152
+ "inherit",
153
+ "brand",
154
+ "neutral",
155
+ "dimmed",
156
+ "purpose-success",
157
+ "purpose-warning",
158
+ "purpose-error",
159
+ "purpose-unlimited",
160
+ "purpose-promo",
161
+ "state-hover",
162
+ "state-active",
163
+ "state-disabled"
164
+ ], _ = [
165
+ "",
166
+ "default",
167
+ "inherit",
168
+ "body",
169
+ "title",
170
+ "title-large",
171
+ "subtitle"
172
+ ], v = [
173
+ "Xs",
174
+ "S",
175
+ "M",
176
+ "L",
177
+ "Xl"
178
+ ], y = [
179
+ "",
180
+ "default",
181
+ ...v.map((e) => e.toLowerCase())
182
+ ], te = [
183
+ "",
184
+ "default",
185
+ "left",
186
+ "center",
187
+ "right"
188
+ ], ne = [
189
+ "",
190
+ "none",
191
+ "3xs",
192
+ "2xs",
193
+ "xs",
194
+ "s",
195
+ "m",
196
+ "l",
197
+ "xl"
198
+ ], re = [
199
+ "",
200
+ "none",
201
+ "s",
202
+ "m",
203
+ "l"
204
+ ], ie = [
205
+ "",
206
+ "none",
207
+ "main",
208
+ "pill"
209
+ ], b = [
210
+ "none",
211
+ "main",
212
+ "brand",
213
+ "state-hover",
214
+ "state-active",
215
+ "neutral",
216
+ "purpose-success",
217
+ "purpose-warning",
218
+ "purpose-error",
219
+ "purpose-unlimited"
220
+ ], x = [
221
+ "",
222
+ "all",
223
+ "top",
224
+ "right",
225
+ "bottom",
226
+ "left",
227
+ "block",
228
+ "inline"
229
+ ], S = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), C = [
230
+ "",
231
+ "cover",
232
+ "contain",
233
+ "default"
234
+ ], w = [
235
+ "",
236
+ "none",
237
+ "s",
238
+ "m",
239
+ "l",
240
+ "xl"
241
+ ], T = [
242
+ "",
243
+ "default",
244
+ "title-4xl",
245
+ "title-3xl",
246
+ "title-2xl",
247
+ "title-xl",
248
+ "title-l",
249
+ "title-m",
250
+ "title-s",
251
+ "subtitle"
252
+ ], E = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), D = [
253
+ "none",
254
+ "2xs",
255
+ "xs",
256
+ "s",
257
+ "default",
258
+ "l",
259
+ "heading-to-subtitle",
260
+ "heading-to-content",
261
+ "page-layout-between-sections"
262
+ ], O = [
263
+ "",
264
+ "all",
265
+ "top",
266
+ "right",
267
+ "bottom",
268
+ "left"
269
+ ], k = [
270
+ "",
271
+ "default",
272
+ "xs",
273
+ "s",
274
+ "m",
275
+ "l",
276
+ "xl"
277
+ ], A = new CSSStyleSheet();
278
+ A.replaceSync(o);
279
+ var j = class e extends HTMLElement {
280
+ static get observedAttributes() {
281
+ return /* @__PURE__ */ "grow.grow--mobile.grow--tablet.grow--laptop.grow--desktop.shrink.shrink--mobile.shrink--tablet.shrink--laptop.shrink--desktop.basis.basis--mobile.basis--tablet.basis--laptop.basis--desktop.align-self.align-self--mobile.align-self--tablet.align-self--laptop.align-self--desktop.justify-self.justify-self--mobile.justify-self--tablet.justify-self--laptop.justify-self--desktop.hidden.hidden--mobile.hidden--tablet.hidden--laptop.hidden--desktop.shown--sr.shown--sr--mobile.shown--sr--tablet.shown--sr--laptop.shown--sr--desktop.col-span.col-span--mobile.col-span--tablet.col-span--laptop.col-span--desktop.order.order--mobile.order--tablet.order--laptop.order--desktop.sticky-top.sticky-bottom.word-break-all.word-break-all--mobile.word-break-all--tablet.word-break-all--laptop.word-break-all--desktop".split(".");
282
+ }
283
+ constructor(...e) {
284
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [A, ...e];
285
+ }
286
+ attributeChangedCallback(t, n, r) {
287
+ if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
288
+ case "grow":
289
+ case "grow--mobile":
290
+ case "grow--tablet":
291
+ case "grow--laptop":
292
+ case "grow--desktop":
293
+ case "shrink":
294
+ case "shrink--mobile":
295
+ case "shrink--tablet":
296
+ case "shrink--laptop":
297
+ case "shrink--desktop":
298
+ case "basis":
299
+ case "basis--mobile":
300
+ case "basis--tablet":
301
+ case "basis--laptop":
302
+ case "basis--desktop":
303
+ this.style.setProperty(`--${t}-value`, r);
304
+ break;
305
+ case "align-self":
306
+ case "align-self--mobile":
307
+ case "align-self--tablet":
308
+ case "align-self--laptop":
309
+ case "align-self--desktop":
310
+ this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? u : l);
311
+ break;
312
+ case "justify-self":
313
+ case "justify-self--mobile":
314
+ case "justify-self--tablet":
315
+ case "justify-self--laptop":
316
+ case "justify-self--desktop":
317
+ this.updateProperties(t, n, r, d);
318
+ break;
319
+ case "col-span":
320
+ case "col-span--mobile":
321
+ case "col-span--tablet":
322
+ case "col-span--laptop":
323
+ case "col-span--desktop":
324
+ this.updateProperties(t, n, r, f);
325
+ break;
326
+ case "order":
327
+ case "order--mobile":
328
+ case "order--tablet":
329
+ case "order--laptop":
330
+ case "order--desktop": this.updateProperties(t, n, r, p);
331
+ }
332
+ }
333
+ updateProperties(e, t, n, i) {
334
+ i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
335
+ let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
336
+ if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
337
+ else {
338
+ let r = e.split("--")[1];
339
+ this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
340
+ }
341
+ }
342
+ updateStyle(e, t, n) {
343
+ n !== null && n !== "" && n !== "default" && this.style.setProperty(`--${e}--${t}-value`, n);
344
+ }
345
+ checkName(e, t) {
346
+ return e.includes(t);
347
+ }
348
+ get $el() {
349
+ return this;
350
+ }
351
+ get $parentElementName() {
352
+ return this.parentElement?.tagName.toLowerCase();
353
+ }
354
+ get isInsideGridOrStack() {
355
+ let e = this.parentElement;
356
+ for (; e;) {
357
+ if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
358
+ if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
359
+ else break;
360
+ }
361
+ return !1;
362
+ }
363
+ get grow() {
364
+ return this.getAttribute("grow");
365
+ }
366
+ set grow(e) {
367
+ s(this, "grow", e);
368
+ }
369
+ get growMobile() {
370
+ return this.getAttribute("grow--mobile");
371
+ }
372
+ set growMobile(e) {
373
+ s(this, "grow--mobile", e);
374
+ }
375
+ get growTablet() {
376
+ return this.getAttribute("grow--tablet");
377
+ }
378
+ set growTablet(e) {
379
+ s(this, "grow--tablet", e);
380
+ }
381
+ get growLaptop() {
382
+ return this.getAttribute("grow--laptop");
383
+ }
384
+ set growLaptop(e) {
385
+ s(this, "grow--laptop", e);
386
+ }
387
+ get growDesktop() {
388
+ return this.getAttribute("grow--desktop");
389
+ }
390
+ set growDesktop(e) {
391
+ s(this, "grow--desktop", e);
392
+ }
393
+ get shrink() {
394
+ return this.getAttribute("shrink");
395
+ }
396
+ set shrink(e) {
397
+ s(this, "shrink", e);
398
+ }
399
+ get shrinkMobile() {
400
+ return this.getAttribute("shrink--mobile");
401
+ }
402
+ set shrinkMobile(e) {
403
+ s(this, "shrink--mobile", e);
404
+ }
405
+ get shrinkTablet() {
406
+ return this.getAttribute("shrink--tablet");
407
+ }
408
+ set shrinkTablet(e) {
409
+ s(this, "shrink--tablet", e);
410
+ }
411
+ get shrinkLaptop() {
412
+ return this.getAttribute("shrink--laptop");
413
+ }
414
+ set shrinkLaptop(e) {
415
+ s(this, "shrink--laptop", e);
416
+ }
417
+ get shrinkDesktop() {
418
+ return this.getAttribute("shrink--desktop");
419
+ }
420
+ set shrinkDesktop(e) {
421
+ s(this, "shrink--desktop", e);
422
+ }
423
+ get basis() {
424
+ return this.getAttribute("basis");
425
+ }
426
+ set basis(e) {
427
+ s(this, "basis", e);
428
+ }
429
+ get basisMobile() {
430
+ return this.getAttribute("basis--mobile");
431
+ }
432
+ set basisMobile(e) {
433
+ s(this, "basis--mobile", e);
434
+ }
435
+ get basisTablet() {
436
+ return this.getAttribute("basis--tablet");
437
+ }
438
+ set basisTablet(e) {
439
+ s(this, "basis--tablet", e);
440
+ }
441
+ get basisLaptop() {
442
+ return this.getAttribute("basis--laptop");
443
+ }
444
+ set basisLaptop(e) {
445
+ s(this, "basis--laptop", e);
446
+ }
447
+ get basisDesktop() {
448
+ return this.getAttribute("basis--desktop");
449
+ }
450
+ set basisDesktop(e) {
451
+ s(this, "basis--desktop", e);
452
+ }
453
+ get alignSelf() {
454
+ return this.getAttribute("align-self");
455
+ }
456
+ set alignSelf(e) {
457
+ s(this, "align-self", e);
458
+ }
459
+ get alignSelfMobile() {
460
+ return this.getAttribute("align-self--mobile");
461
+ }
462
+ set alignSelfMobile(e) {
463
+ s(this, "align-self--mobile", e);
464
+ }
465
+ get alignSelfTablet() {
466
+ return this.getAttribute("align-self--tablet");
467
+ }
468
+ set alignSelfTablet(e) {
469
+ s(this, "align-self--tablet", e);
470
+ }
471
+ get alignSelfLaptop() {
472
+ return this.getAttribute("align-self--laptop");
473
+ }
474
+ set alignSelfLaptop(e) {
475
+ s(this, "align-self--laptop", e);
476
+ }
477
+ get alignSelfDesktop() {
478
+ return this.getAttribute("align-self--desktop");
479
+ }
480
+ set alignSelfDesktop(e) {
481
+ s(this, "align-self--desktop", e);
482
+ }
483
+ get justifySelf() {
484
+ return this.getAttribute("justify-self");
485
+ }
486
+ set justifySelf(e) {
487
+ s(this, "justify-self", e);
488
+ }
489
+ get justifySelfMobile() {
490
+ return this.getAttribute("justify-self--mobile");
491
+ }
492
+ set justifySelfMobile(e) {
493
+ s(this, "justify-self--mobile", e);
494
+ }
495
+ get justifySelfTablet() {
496
+ return this.getAttribute("justify-self--tablet");
497
+ }
498
+ set justifySelfTablet(e) {
499
+ s(this, "justify-self--tablet", e);
500
+ }
501
+ get justifySelfLaptop() {
502
+ return this.getAttribute("justify-self--laptop");
503
+ }
504
+ set justifySelfLaptop(e) {
505
+ s(this, "justify-self--laptop", e);
506
+ }
507
+ get justifySelfDesktop() {
508
+ return this.getAttribute("justify-self--desktop");
509
+ }
510
+ set justifySelfDesktop(e) {
511
+ s(this, "justify-self--desktop", e);
512
+ }
513
+ get hiddenMobile() {
514
+ return this.hasAttribute("hidden--mobile");
515
+ }
516
+ set hiddenMobile(e) {
517
+ c(this, "hidden--mobile", e);
518
+ }
519
+ get hiddenTablet() {
520
+ return this.hasAttribute("hidden--tablet");
521
+ }
522
+ set hiddenTablet(e) {
523
+ c(this, "hidden--tablet", e);
524
+ }
525
+ get hiddenLaptop() {
526
+ return this.hasAttribute("hidden--laptop");
527
+ }
528
+ set hiddenLaptop(e) {
529
+ c(this, "hidden--laptop", e);
530
+ }
531
+ get hiddenDesktop() {
532
+ return this.hasAttribute("hidden--desktop");
533
+ }
534
+ set hiddenDesktop(e) {
535
+ c(this, "hidden--desktop", e);
536
+ }
537
+ get shownSr() {
538
+ return this.hasAttribute("shown--sr");
539
+ }
540
+ set shownSr(e) {
541
+ c(this, "shown--sr", e);
542
+ }
543
+ get shownSrMobile() {
544
+ return this.hasAttribute("shown--sr--mobile");
545
+ }
546
+ set shownSrMobile(e) {
547
+ c(this, "shown--sr--mobile", e);
548
+ }
549
+ get shownSrTablet() {
550
+ return this.hasAttribute("shown--sr--tablet");
551
+ }
552
+ set shownSrTablet(e) {
553
+ c(this, "shown--sr--tablet", e);
554
+ }
555
+ get shownSrLaptop() {
556
+ return this.hasAttribute("shown--sr--laptop");
557
+ }
558
+ set shownSrLaptop(e) {
559
+ c(this, "shown--sr--laptop", e);
560
+ }
561
+ get shownSrDesktop() {
562
+ return this.hasAttribute("shown--sr--desktop");
563
+ }
564
+ set shownSrDesktop(e) {
565
+ c(this, "shown--sr--desktop", e);
566
+ }
567
+ get colSpan() {
568
+ return this.getAttribute("col-span");
569
+ }
570
+ set colSpan(e) {
571
+ s(this, "col-span", e);
572
+ }
573
+ get colSpanMobile() {
574
+ return this.getAttribute("col-span--mobile");
575
+ }
576
+ set colSpanMobile(e) {
577
+ s(this, "col-span--mobile", e);
578
+ }
579
+ get colSpanTablet() {
580
+ return this.getAttribute("col-span--tablet");
581
+ }
582
+ set colSpanTablet(e) {
583
+ s(this, "col-span--tablet", e);
584
+ }
585
+ get colSpanLaptop() {
586
+ return this.getAttribute("col-span--laptop");
587
+ }
588
+ set colSpanLaptop(e) {
589
+ s(this, "col-span--laptop", e);
590
+ }
591
+ get colSpanDesktop() {
592
+ return this.getAttribute("col-span--desktop");
593
+ }
594
+ set colSpanDesktop(e) {
595
+ s(this, "col-span--desktop", e);
596
+ }
597
+ get order() {
598
+ return this.getAttribute("order");
599
+ }
600
+ set order(e) {
601
+ s(this, "order", e);
602
+ }
603
+ get orderMobile() {
604
+ return this.getAttribute("order--mobile");
605
+ }
606
+ set orderMobile(e) {
607
+ s(this, "order--mobile", e);
608
+ }
609
+ get orderTablet() {
610
+ return this.getAttribute("order--tablet");
611
+ }
612
+ set orderTablet(e) {
613
+ s(this, "order--tablet", e);
614
+ }
615
+ get orderLaptop() {
616
+ return this.getAttribute("order--laptop");
617
+ }
618
+ set orderLaptop(e) {
619
+ s(this, "order--laptop", e);
620
+ }
621
+ get orderDesktop() {
622
+ return this.getAttribute("order--desktop");
623
+ }
624
+ set orderDesktop(e) {
625
+ s(this, "order--desktop", e);
626
+ }
627
+ get stickyTop() {
628
+ return this.hasAttribute("sticky-top");
629
+ }
630
+ set stickyTop(e) {
631
+ c(this, "sticky-top", e);
632
+ }
633
+ get stickyBottom() {
634
+ return this.hasAttribute("sticky-bottom");
635
+ }
636
+ set stickyBottom(e) {
637
+ c(this, "sticky-bottom", e);
638
+ }
639
+ get wordBreakAll() {
640
+ return this.hasAttribute("word-break-all");
641
+ }
642
+ set wordBreakAll(e) {
643
+ c(this, "word-break-all", e);
644
+ }
645
+ get wordBreakAllMobile() {
646
+ return this.hasAttribute("word-break-all--mobile");
647
+ }
648
+ set wordBreakAllMobile(e) {
649
+ c(this, "word-break-all--mobile", e);
650
+ }
651
+ get wordBreakAllTablet() {
652
+ return this.hasAttribute("word-break-all--tablet");
653
+ }
654
+ set wordBreakAllTablet(e) {
655
+ c(this, "word-break-all--tablet", e);
656
+ }
657
+ get wordBreakAllLaptop() {
658
+ return this.hasAttribute("word-break-all--laptop");
659
+ }
660
+ set wordBreakAllLaptop(e) {
661
+ c(this, "word-break-all--laptop", e);
662
+ }
663
+ get wordBreakAllDesktop() {
664
+ return this.hasAttribute("word-break-all--desktop");
665
+ }
666
+ set wordBreakAllDesktop(e) {
667
+ c(this, "word-break-all--desktop", e);
668
+ }
669
+ }, M = class extends j {
670
+ static {
671
+ this.nativeAttributes = {};
672
+ }
673
+ static {
674
+ this.nativeProperties = {};
675
+ }
676
+ static {
677
+ this.nativeMethods = [];
678
+ }
679
+ static get observedAttributes() {
680
+ return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
681
+ }
682
+ attributeChangedCallback(e, t, n) {
683
+ super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
684
+ }
685
+ get ctor() {
686
+ return Object.getPrototypeOf(this).constructor;
687
+ }
688
+ constructor(...e) {
689
+ super(...e), this.enhanceWithNativeProperties();
690
+ }
691
+ getNativePropertyMetadata() {
692
+ let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
693
+ for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
694
+ let n = new Map(Object.entries(this.ctor.nativeProperties));
695
+ for (let t of e.keys()) n.set(t, "writable");
696
+ return {
697
+ reflectedProperties: e,
698
+ properties: n
699
+ };
700
+ }
701
+ setNativeProperty(e, t, n) {
702
+ let r = n.get(e);
703
+ if (r !== void 0) {
704
+ this.$el[e] = t;
705
+ let n = this.$el.getAttribute(r);
706
+ this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
707
+ } else this.$el[e] !== t && (this.$el[e] = t);
708
+ }
709
+ enhanceWithNativeProperties() {
710
+ let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
711
+ for (let [n, r] of t) {
712
+ let t = n;
713
+ Object.defineProperty(this, t, {
714
+ get: () => this.$el[t],
715
+ set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
716
+ });
717
+ }
718
+ for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
719
+ let n = this.$el, r = Reflect.get(n, e);
720
+ if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
721
+ return Reflect.apply(r, n, t);
722
+ } });
723
+ }
724
+ get $el() {
725
+ return this.shadowRoot.querySelector(this.ctor.nativeName);
726
+ }
727
+ _forwardNativeAttribute(e, t) {
728
+ this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
729
+ }
730
+ _updateAttribute(e, t) {
731
+ s(this, e, t);
732
+ }
733
+ _updateBooleanAttribute(e, t) {
734
+ c(this, e, t);
735
+ }
736
+ }, N = class extends M {
737
+ connectedCallback() {
738
+ this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
739
+ }
476
740
  };
477
- b.accessorExclusions = [];
478
- let p = b;
479
- class j extends p {
480
- connectedCallback() {
481
- this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
482
- }
741
+ //#endregion
742
+ //#region src/utilities.ts
743
+ function P(e, ...t) {
744
+ let n = { ...e };
745
+ for (let e of t) delete n[e];
746
+ return n;
483
747
  }
484
- const C = ["", "default", "none", "l"], w = [
485
- "",
486
- "default",
487
- "auto",
488
- "flex-start",
489
- "flex-end",
490
- "center",
491
- "baseline",
492
- "stretch"
493
- ], y = [
494
- "",
495
- "default",
496
- "start",
497
- "end",
498
- "center",
499
- "stretch"
500
- ], A = [
501
- "",
502
- "default",
503
- "start",
504
- "end",
505
- "center",
506
- "stretch"
507
- ], S = [
508
- "",
509
- "1",
510
- "2",
511
- "3",
512
- "4",
513
- "5",
514
- "6",
515
- "7",
516
- "8",
517
- "9",
518
- "10",
519
- "11",
520
- "12"
521
- ], $ = [
522
- "",
523
- "-1",
524
- "0",
525
- "1",
526
- "2",
527
- "3",
528
- "4",
529
- "5",
530
- "6",
531
- "7",
532
- "8",
533
- "9",
534
- "10",
535
- "11",
536
- "12"
537
- ], L = [
538
- "",
539
- "default",
540
- "auto",
541
- "start",
542
- "end",
543
- "center",
544
- "stretch"
545
- ], M = [
546
- "",
547
- "default",
548
- "inherit",
549
- "body-l",
550
- "body-m",
551
- "body-s",
552
- "body-xs",
553
- "heading-5xl",
554
- "heading-4xl",
555
- "heading-3xl",
556
- "heading-2xl",
557
- "heading-xl",
558
- "heading-l",
559
- "heading-m",
560
- "heading-s"
561
- ], N = [
562
- "",
563
- "default",
564
- "inherit",
565
- "brand",
566
- "neutral",
567
- "dimmed",
568
- "purpose-success",
569
- "purpose-warning",
570
- "purpose-error",
571
- "purpose-unlimited",
572
- "purpose-promo",
573
- "state-hover",
574
- "state-active",
575
- "state-disabled"
576
- ], D = [
577
- "",
578
- "default",
579
- "inherit",
580
- "body",
581
- "title",
582
- "title-large",
583
- "subtitle"
584
- ], x = ["Xs", "S", "M", "L", "Xl"], T = [
585
- "",
586
- "default",
587
- ...x.map((i) => i.toLowerCase())
588
- ], O = ["", "default", "left", "center", "right"], _ = [
589
- "",
590
- "none",
591
- "3xs",
592
- "2xs",
593
- "xs",
594
- "s",
595
- "m",
596
- "l",
597
- "xl"
598
- ], P = ["", "none", "s", "m", "l"], q = ["", "none", "main", "pill"], G = [
599
- "none",
600
- "main",
601
- "brand",
602
- "state-hover",
603
- "state-active",
604
- "neutral",
605
- "purpose-success",
606
- "purpose-warning",
607
- "purpose-error",
608
- "purpose-unlimited"
609
- ], E = [
610
- "",
611
- "all",
612
- "top",
613
- "right",
614
- "bottom",
615
- "left",
616
- "block",
617
- "inline"
618
- ], B = [
619
- "",
620
- "none",
621
- "surface-light",
622
- "surface-default",
623
- "surface-strong",
624
- "surface-stronger",
625
- "surface-dark",
626
- "surface-brand",
627
- "surface-brand-light",
628
- "container-primary",
629
- "container-secondary",
630
- "container-light",
631
- "container-default",
632
- "container-strong",
633
- "state-hover",
634
- "state-hover-bordered",
635
- "state-active",
636
- "state-disabled",
637
- "purpose-success",
638
- "purpose-warning",
639
- "purpose-error",
640
- "purpose-unlimited",
641
- "purpose-promo",
642
- "purpose-info",
643
- "purpose-eco",
644
- "purpose-notification",
645
- "footer"
646
- ], V = ["", "cover", "contain", "default"], R = ["", "none", "s", "m", "l", "xl"], z = [
647
- "",
648
- "default",
649
- "title-4xl",
650
- "title-3xl",
651
- "title-2xl",
652
- "title-xl",
653
- "title-l",
654
- "title-m",
655
- "title-s",
656
- "subtitle"
657
- ], H = [
658
- "",
659
- "purple-top-red",
660
- "purple-top-magenta",
661
- "purple-top-orange",
662
- "purple-top-blue",
663
- "purple-top-turquoise",
664
- "purple-top-green",
665
- "purple-right-red",
666
- "purple-right-magenta",
667
- "purple-right-orange",
668
- "purple-right-blue",
669
- "purple-right-turquoise",
670
- "purple-right-green",
671
- "purple-top-right-red",
672
- "purple-top-right-magenta",
673
- "purple-top-right-orange",
674
- "purple-top-right-blue",
675
- "purple-top-right-turquoise",
676
- "purple-top-right-green",
677
- "purple-bottom-right-red",
678
- "purple-bottom-right-magenta",
679
- "purple-bottom-right-orange",
680
- "purple-bottom-right-blue",
681
- "purple-bottom-right-turquoise",
682
- "purple-bottom-right-green",
683
- "color-top-red",
684
- "color-top-magenta",
685
- "color-top-orange",
686
- "color-top-blue",
687
- "color-top-turquoise",
688
- "color-top-green",
689
- "color-right-red",
690
- "color-right-magenta",
691
- "color-right-orange",
692
- "color-right-blue",
693
- "color-right-turquoise",
694
- "color-right-green",
695
- "color-top-right-red",
696
- "color-top-right-magenta",
697
- "color-top-right-orange",
698
- "color-top-right-blue",
699
- "color-top-right-turquoise",
700
- "color-top-right-green",
701
- "color-bottom-right-red",
702
- "color-bottom-right-magenta",
703
- "color-bottom-right-orange",
704
- "color-bottom-right-blue",
705
- "color-bottom-right-turquoise",
706
- "color-bottom-right-green"
707
- ], I = [
708
- "none",
709
- "2xs",
710
- "xs",
711
- "s",
712
- "default",
713
- "l",
714
- "heading-to-subtitle",
715
- "heading-to-content",
716
- "page-layout-between-sections"
717
- ], W = [
718
- "",
719
- "all",
720
- "top",
721
- "right",
722
- "bottom",
723
- "left"
724
- ], X = [
725
- "",
726
- "default",
727
- "xs",
728
- "s",
729
- "m",
730
- "l",
731
- "xl"
732
- ];
733
- function F(i) {
734
- const t = document.createElement("style");
735
- t.innerHTML = i, document.head.appendChild(t);
748
+ function F(e) {
749
+ let t = document.createElement("style");
750
+ t.innerHTML = e, document.head.appendChild(t);
736
751
  }
737
- function U(i) {
738
- return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
752
+ function I(e) {
753
+ return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
739
754
  }
740
- function J() {
741
- return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
755
+ function L() {
756
+ return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
742
757
  }
743
- function K(i, t) {
744
- return i.includes(t);
758
+ function R(e, t) {
759
+ return t !== null && e.includes(t);
745
760
  }
746
- function Q(i, t, s = !0) {
747
- var e;
748
- if ([
749
- "aria-label",
750
- "aria-labelledby",
751
- "aria-describedby",
752
- "aria-controls",
753
- "aria-expanded",
754
- "aria-haspopup",
755
- "aria-pressed",
756
- "aria-selected",
757
- "aria-required",
758
- "aria-disabled",
759
- "aria-live",
760
- "aria-atomic",
761
- "aria-relevant",
762
- "aria-orientation",
763
- "aria-valuenow",
764
- "aria-valuetext",
765
- "aria-valuemin",
766
- "aria-valuemax",
767
- "aria-details",
768
- "aria-modal",
769
- "aria-autocomplete",
770
- "aria-activedescendant",
771
- "aria-colcount",
772
- "aria-colindex",
773
- "aria-colspan",
774
- "aria-rowcount",
775
- "aria-rowindex",
776
- "aria-rowspan",
777
- "aria-keyshortcuts",
778
- "aria-placeholder",
779
- "aria-invalid",
780
- "aria-busy",
781
- "aria-owns"
782
- ].forEach((o) => {
783
- i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
784
- }), s) {
785
- const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
786
- t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
787
- }
761
+ //#endregion
762
+ //#region src/accessibility.ts
763
+ var z = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
764
+ function B(e, t, n = !1) {
765
+ if (z.forEach((n) => {
766
+ e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
767
+ }), n && !e.getAttribute("aria-labelledby")) {
768
+ let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
769
+ t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
770
+ }
788
771
  }
789
- function Y(i, t, s, e = "", o) {
790
- const a = new CSSStyleSheet(), l = s.reduce(
791
- (n, r) => n + `
792
- ${t(i, r)} {
793
- ${i}: var(--${e}-${r}-desktop);
794
- ${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
772
+ //#endregion
773
+ //#region src/nativeAttributes.ts
774
+ var V = {
775
+ disabled: ["disabled"],
776
+ name: ["name"],
777
+ value: ["value"],
778
+ type: ["type"],
779
+ formaction: ["formAction"],
780
+ formenctype: ["formEnctype"],
781
+ formmethod: ["formMethod"],
782
+ formnovalidate: ["formNoValidate"],
783
+ formtarget: ["formTarget"],
784
+ form: [],
785
+ autofocus: ["autofocus"],
786
+ title: ["title"],
787
+ popovertarget: [],
788
+ popovertargetaction: ["popoverTargetAction"],
789
+ command: ["command"],
790
+ commandfor: []
791
+ }, H = {
792
+ href: [
793
+ "href",
794
+ "protocol",
795
+ "username",
796
+ "password",
797
+ "host",
798
+ "hostname",
799
+ "port",
800
+ "pathname",
801
+ "search",
802
+ "hash"
803
+ ],
804
+ target: ["target"],
805
+ rel: ["rel", "relList"],
806
+ download: ["download"],
807
+ hreflang: ["hreflang"],
808
+ type: ["type"],
809
+ ping: ["ping"],
810
+ referrerpolicy: ["referrerPolicy"],
811
+ title: ["title"],
812
+ charset: ["charset"],
813
+ coords: ["coords"],
814
+ name: ["name"],
815
+ rev: ["rev"]
816
+ }, U = {
817
+ accept: ["accept"],
818
+ alt: ["alt"],
819
+ autocomplete: ["autocomplete"],
820
+ autofocus: ["autofocus"],
821
+ capture: ["capture"],
822
+ checked: ["defaultChecked"],
823
+ dirname: ["dirName"],
824
+ disabled: ["disabled"],
825
+ form: [],
826
+ formaction: ["formAction"],
827
+ formenctype: ["formEnctype"],
828
+ formmethod: ["formMethod"],
829
+ formnovalidate: ["formNoValidate"],
830
+ formtarget: ["formTarget"],
831
+ height: ["height"],
832
+ inputmode: ["inputMode"],
833
+ enterkeyhint: ["enterKeyHint"],
834
+ list: [],
835
+ max: ["max"],
836
+ maxlength: ["maxLength"],
837
+ min: ["min"],
838
+ minlength: ["minLength"],
839
+ multiple: ["multiple"],
840
+ name: ["name"],
841
+ pattern: ["pattern"],
842
+ placeholder: ["placeholder"],
843
+ popovertarget: [],
844
+ popovertargetaction: ["popoverTargetAction"],
845
+ readonly: ["readOnly"],
846
+ required: ["required"],
847
+ size: ["size"],
848
+ src: ["src"],
849
+ step: ["step"],
850
+ title: ["title"],
851
+ type: ["type"],
852
+ usemap: ["useMap"],
853
+ value: ["defaultValue", "value"],
854
+ webkitdirectory: ["webkitdirectory"],
855
+ width: ["width"]
856
+ }, W = {
857
+ validity: "readonly",
858
+ validationMessage: "readonly",
859
+ willValidate: "readonly"
860
+ }, G = [
861
+ "checkValidity",
862
+ "reportValidity",
863
+ "setCustomValidity"
864
+ ], K = {
865
+ ...W,
866
+ form: "readonly",
867
+ labels: "readonly",
868
+ popoverTargetElement: "writable",
869
+ commandForElement: "writable"
870
+ }, q = [...G], J = {
871
+ text: "writable",
872
+ shape: "writable",
873
+ origin: "readonly"
874
+ }, Y = ["toString"], ae = {
875
+ ...W,
876
+ checked: "writable",
877
+ indeterminate: "writable",
878
+ files: "writable",
879
+ selectionStart: "writable",
880
+ selectionEnd: "writable",
881
+ selectionDirection: "writable",
882
+ valueAsDate: "writable",
883
+ valueAsNumber: "writable",
884
+ form: "readonly",
885
+ list: "readonly",
886
+ labels: "readonly",
887
+ webkitEntries: "readonly",
888
+ popoverTargetElement: "writable"
889
+ }, oe = [
890
+ ...G,
891
+ "select",
892
+ "setRangeText",
893
+ "setSelectionRange",
894
+ "showPicker",
895
+ "stepDown",
896
+ "stepUp"
897
+ ], se = {
898
+ ...W,
899
+ value: "writable",
900
+ defaultValue: "writable",
901
+ selectionStart: "writable",
902
+ selectionEnd: "writable",
903
+ selectionDirection: "writable",
904
+ textLength: "readonly",
905
+ type: "readonly",
906
+ form: "readonly",
907
+ labels: "readonly"
908
+ }, ce = [
909
+ ...G,
910
+ "select",
911
+ "setRangeText",
912
+ "setSelectionRange"
913
+ ], le = {
914
+ ...W,
915
+ value: "writable",
916
+ selectedIndex: "writable",
917
+ length: "writable",
918
+ options: "readonly",
919
+ selectedOptions: "readonly",
920
+ type: "readonly",
921
+ form: "readonly",
922
+ labels: "readonly"
923
+ }, ue = [
924
+ ...G,
925
+ "add",
926
+ "item",
927
+ "namedItem",
928
+ "showPicker"
929
+ ], de = {
930
+ currentSrc: "readonly",
931
+ naturalWidth: "readonly",
932
+ naturalHeight: "readonly",
933
+ complete: "readonly",
934
+ x: "readonly",
935
+ y: "readonly"
936
+ }, fe = ["decode"], pe = {
937
+ ...W,
938
+ form: "readonly",
939
+ elements: "readonly",
940
+ type: "readonly"
941
+ }, me = [...G];
942
+ //#endregion
943
+ //#region src/breakpoints.ts
944
+ function he(e, t, n, r = "", i, a = e) {
945
+ let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
946
+ ${t(a, o)} {
947
+ ${e}: var(--${r}-${o}-desktop);
948
+ ${i ? `${i}:var(--${r}-${o}-desktop)` : ""}
795
949
  }
796
950
  /* Mobile only - max 767px */
797
- @media only screen and (max-width: 47.938em) {
798
- ${t(i, r)} {
799
- ${i}: var(--${e}-${r}-mobile);
800
- ${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
951
+ @media only screen and (max-width: 47.938rem) {
952
+ ${t(a, o)} {
953
+ ${e}: var(--${r}-${o}-mobile);
954
+ ${i ? `${i}: var(--${r}-${o}-mobile)` : ""}
801
955
  }
802
956
  }
803
- ${t(i, r, "mobile")} {
957
+ ${t(a, o, "mobile")} {
804
958
  /* Mobile only - max 767px */
805
- @media only screen and (max-width: 47.938em) {
806
- ${i}: var(--${e}-${r}-mobile) !important;
807
- ${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
959
+ @media only screen and (max-width: 47.938rem) {
960
+ ${e}: var(--${r}-${o}-mobile) !important;
961
+ ${i ? `${i}: var(--${r}-${o}-mobile)` : ""}
808
962
  }
809
963
  }
810
- ${t(i, r, "tablet")} {
964
+ ${t(a, o, "tablet")} {
811
965
  /* Tablet - min 768px max 1024px */
812
- @media only screen and (min-width: 48em) and (max-width: 64em) {
813
- ${i}: var(--${e}-${r}-desktop) !important;
814
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
966
+ @media only screen and (min-width: 48rem) and (max-width: 64rem) {
967
+ ${e}: var(--${r}-${o}-desktop) !important;
968
+ ${i ? `${i}: var(--${r}-${o}-desktop)` : ""}
815
969
  }
816
970
  }
817
- ${t(i, r, "laptop")} {
971
+ ${t(a, o, "laptop")} {
818
972
  /* Laptop - 1025px*/
819
- @media only screen and (min-width: 64.0625em) {
820
- ${i}: var(--${e}-${r}-desktop) !important;
821
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
973
+ @media only screen and (min-width: 64.0625rem) {
974
+ ${e}: var(--${r}-${o}-desktop) !important;
975
+ ${i ? `${i}: var(--${r}-${o}-desktop)` : ""}
822
976
  }
823
977
  }
824
- ${t(i, r, "desktop")} {
978
+ ${t(a, o, "desktop")} {
825
979
  /* Desktop - 1025px*/
826
- @media only screen and (min-width: 64.0625em) {
827
- ${i}: var(--${e}-${r}-desktop) !important;
828
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
980
+ @media only screen and (min-width: 64.0625rem) {
981
+ ${e}: var(--${r}-${o}-desktop) !important;
982
+ ${i ? `${i}: var(--${r}-${o}-desktop)` : ""}
829
983
  }
830
- }`,
831
- ""
832
- );
833
- return a.replaceSync(l), a;
984
+ }`, "");
985
+ return o.replaceSync(s), o;
834
986
  }
835
- class Z {
836
- constructor(t, s, e, o) {
837
- this.component = t, this.attributeName = s, this.cssVariable = o, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
838
- this.component,
839
- this.toCamelCase(this.attributeName),
840
- {
841
- get: () => this.component.getAttribute(this.attributeName),
842
- set: (a) => {
843
- this.component.setAttribute(this.attributeName, a);
844
- }
845
- }
846
- );
847
- }
848
- toCamelCase(t) {
849
- return t.replace(/[-_]+(.)?/g, (s, e) => e ? e.toUpperCase() : "");
850
- }
851
- init(t) {
852
- this.setCSSProperty(this.attributeName, t), this.setCSSProperties();
853
- }
854
- attributeChangedCallback(t, s, e) {
855
- if (s !== e)
856
- switch (!0) {
857
- case t === this.attributeName:
858
- case t === `${this.attributeName}--mobile`:
859
- case t === `${this.attributeName}--tablet`:
860
- case t === `${this.attributeName}--laptop`:
861
- case t === `${this.attributeName}--desktop`:
862
- this.setCSSProperty(t, e);
863
- break;
864
- default:
865
- return;
866
- }
867
- }
868
- setCSSProperty(t, s, e = !0) {
869
- const [, o = ""] = t.split("--");
870
- this.component.style.setProperty(
871
- `${this.cssVariable}${e ? "-all" : ""}${o ? `-${o}` : ""}`,
872
- `${this._attributeValue(s, o)}`
873
- );
874
- }
875
- setCSSProperties() {
876
- const t = this.component.getAttribute(this.attributeName);
877
- t && (this.setCSSProperty(this.attributeName, t), this.setCSSProperty(this.attributeNameMobile, t), this.setCSSProperty(this.attributeNameTablet, t), this.setCSSProperty(this.attributeNameLaptop, t), this.setCSSProperty(this.attributeNameDesktop, t));
878
- const s = this.component.getAttribute(
879
- this.attributeNameMobile
880
- );
881
- s && this.setCSSProperty(
882
- this.attributeNameMobile,
883
- s,
884
- !1
885
- );
886
- const e = this.component.getAttribute(
887
- this.attributeNameTablet
888
- );
889
- e && this.setCSSProperty(
890
- this.attributeNameTablet,
891
- e,
892
- !1
893
- );
894
- const o = this.component.getAttribute(
895
- this.attributeNameLaptop
896
- );
897
- o && this.setCSSProperty(
898
- this.attributeNameLaptop,
899
- o,
900
- !1
901
- );
902
- const a = this.component.getAttribute(
903
- this.attributeNameDesktop
904
- );
905
- a && this.setCSSProperty(
906
- this.attributeNameDesktop,
907
- a,
908
- !1
909
- );
910
- }
911
- set attributeValue(t) {
912
- this._attributeValue = t, this.setCSSProperties();
913
- }
987
+ var ge = class {
988
+ constructor(e, t, n, r) {
989
+ this.component = e, this.attributeName = t, this.cssVariable = r, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = n, Object.defineProperty(this.component, this.toCamelCase(this.attributeName), {
990
+ get: () => this.component.getAttribute(this.attributeName),
991
+ set: (e) => {
992
+ this.component.setAttribute(this.attributeName, e);
993
+ }
994
+ });
995
+ }
996
+ toCamelCase(e) {
997
+ return e.replace(/[-_]+(.)?/g, (e, t) => t ? t.toUpperCase() : "");
998
+ }
999
+ init(e) {
1000
+ this.setCSSProperty(this.attributeName, e), this.setCSSProperties();
1001
+ }
1002
+ attributeChangedCallback(e, t, n) {
1003
+ if (t !== n) switch (!0) {
1004
+ case e === this.attributeName:
1005
+ case e === `${this.attributeName}--mobile`:
1006
+ case e === `${this.attributeName}--tablet`:
1007
+ case e === `${this.attributeName}--laptop`:
1008
+ case e === `${this.attributeName}--desktop`:
1009
+ this.setCSSProperty(e, n);
1010
+ break;
1011
+ default: return;
1012
+ }
1013
+ }
1014
+ setCSSProperty(e, t, n = !0) {
1015
+ let [, r = ""] = e.split("--");
1016
+ this.component.style.setProperty(`${this.cssVariable}${n ? "-all" : ""}${r ? `-${r}` : ""}`, `${this._attributeValue(t, r)}`);
1017
+ }
1018
+ setCSSProperties() {
1019
+ let e = this.component.getAttribute(this.attributeName);
1020
+ e && (this.setCSSProperty(this.attributeName, e), this.setCSSProperty(this.attributeNameMobile, e), this.setCSSProperty(this.attributeNameTablet, e), this.setCSSProperty(this.attributeNameLaptop, e), this.setCSSProperty(this.attributeNameDesktop, e));
1021
+ let t = this.component.getAttribute(this.attributeNameMobile);
1022
+ t && this.setCSSProperty(this.attributeNameMobile, t, !1);
1023
+ let n = this.component.getAttribute(this.attributeNameTablet);
1024
+ n && this.setCSSProperty(this.attributeNameTablet, n, !1);
1025
+ let r = this.component.getAttribute(this.attributeNameLaptop);
1026
+ r && this.setCSSProperty(this.attributeNameLaptop, r, !1);
1027
+ let i = this.component.getAttribute(this.attributeNameDesktop);
1028
+ i && this.setCSSProperty(this.attributeNameDesktop, i, !1);
1029
+ }
1030
+ set attributeValue(e) {
1031
+ this._attributeValue = e, this.setCSSProperties();
1032
+ }
1033
+ }, X = /* @__PURE__ */ new Map(), _e = 500;
1034
+ function Z(e) {
1035
+ let t = document.createElement("template");
1036
+ return t.innerHTML = e, t;
914
1037
  }
915
- export {
916
- Z as AttributeBreakpointHandlerDelegate,
917
- p as PxElement,
918
- j as VerticallyExtendedElement,
919
- u as WithExtraAttributes,
920
- F as addGlobalStylesheet,
921
- X as assetContainerImgWidthValues,
922
- B as backgroundColorValues,
923
- V as backgroundSizeValues,
924
- G as borderColorValues,
925
- q as borderRadiusValues,
926
- E as borderSideValues,
927
- P as borderValues,
928
- R as boxShadowValues,
929
- K as checkName,
930
- N as colorValues,
931
- y as cssGridAlignSelfValues,
932
- S as cssGridColSpanValues,
933
- A as cssGridJustifySelfValues,
934
- $ as cssGridOrderValues,
935
- L as cssGridPlaceSelfValues,
936
- Y as cssTokenBreakpoints,
937
- w as flexboxAlignSelfValues,
938
- M as fontsizeValues,
939
- D as fontweightValues,
940
- I as gapValues,
941
- m as getSupportedAttributeNames,
942
- f as getSupportedPropertyNames,
943
- J as getViewportFormat,
944
- H as gradientValues,
945
- C as gridGapValues,
946
- z as headingValues,
947
- x as iconSizeValues,
948
- T as iconSizeValuesKC,
949
- h as isComponentDebug,
950
- U as isFalsy,
951
- v as log,
952
- W as noBorderRadiusValues,
953
- _ as paddingValues,
954
- O as textalignValues,
955
- Q as transferAccessibilityAttributes
956
- };
1038
+ function Q(e) {
1039
+ return Z(e);
1040
+ }
1041
+ function $(e) {
1042
+ let t = X.get(e);
1043
+ return t || (t = Z(e), X.size < _e && X.set(e, t)), t;
1044
+ }
1045
+ function ve(e, t) {
1046
+ let n = typeof t == "string" ? $(t) : t;
1047
+ e.replaceChildren(document.importNode(n.content, !0));
1048
+ }
1049
+ //#endregion
1050
+ export { ge as AttributeBreakpointHandlerDelegate, M as PxElement, N as VerticallyExtendedElement, j as WithExtraAttributes, i as WrappedInteractiveStateController, z as accessibilityAttributes, F as addGlobalStylesheet, k as assetContainerImgWidthValues, S as backgroundColorValues, C as backgroundSizeValues, c as booleanPropertyToAttributeSetter, b as borderColorValues, ie as borderRadiusValues, x as borderSideValues, re as borderValues, w as boxShadowValues, R as checkName, g as colorValues, Q as createTemplate, u as cssGridAlignSelfValues, f as cssGridColSpanValues, d as cssGridJustifySelfValues, p as cssGridOrderValues, m as cssGridPlaceSelfValues, he as cssTokenBreakpoints, l as flexboxAlignSelfValues, h as fontsizeValues, _ as fontweightValues, D as gapValues, $ as getTemplate, L as getViewportFormat, E as gradientValues, ee as gridGapValues, T as headingValues, v as iconSizeValues, y as iconSizeValuesKC, n as isComponentDebug, I as isFalsy, r as log, H as nativeAnchorAttributes, Y as nativeAnchorMethods, J as nativeAnchorProperties, V as nativeButtonAttributes, q as nativeButtonMethods, K as nativeButtonProperties, me as nativeFieldsetMethods, pe as nativeFieldsetProperties, fe as nativeImageMethods, de as nativeImageProperties, U as nativeInputAttributes, oe as nativeInputMethods, ae as nativeInputProperties, ue as nativeSelectMethods, le as nativeSelectProperties, ce as nativeTextAreaMethods, se as nativeTextAreaProperties, O as noBorderRadiusValues, P as omitKeys, ne as paddingValues, s as propertyToAttributeSetter, ve as renderTemplate, te as textalignValues, B as transferAccessibilityAttributes };