@proximus/lavender-carousel 2.0.0-alpha.2 → 2.0.0-alpha.200

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,428 +1,416 @@
1
- var q = (r) => {
2
- throw TypeError(r);
1
+ import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, accessibilityAttributes as r, backgroundColorValues as i, booleanPropertyToAttributeSetter as a, checkName as o, gapValues as s, iconSizeValuesKC as c, log as l, propertyToAttributeSetter as u } from "@proximus/lavender-common";
2
+ //#region src/carousel.css?inline
3
+ var d = ":host{display:block}:host *{box-sizing:border-box}:host{--px-carousel-visible-items:1;--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([visible-items=\"1\"]){--px-carousel-visible-items:1}:host([visible-items=\"2\"]){--px-carousel-visible-items:2}:host([visible-items=\"3\"]){--px-carousel-visible-items:3}:host([visible-items=\"4\"]){--px-carousel-visible-items:4}:host([visible-items=\"5\"]){--px-carousel-visible-items:5}:host([visible-items=\"6\"]){--px-carousel-visible-items:6}:host([visible-items=\"7\"]){--px-carousel-visible-items:7}:host([visible-items=\"8\"]){--px-carousel-visible-items:8}:host([visible-items=\"9\"]){--px-carousel-visible-items:9}:host([visible-items--mobile=\"1\"]){--px-carousel-visible-items--mobile:1}:host([visible-items--mobile=\"2\"]){--px-carousel-visible-items--mobile:2}:host([visible-items--mobile=\"3\"]){--px-carousel-visible-items--mobile:3}:host([visible-items--mobile=\"4\"]){--px-carousel-visible-items--mobile:4}:host([visible-items--mobile=\"5\"]){--px-carousel-visible-items--mobile:5}:host([visible-items--mobile=\"6\"]){--px-carousel-visible-items--mobile:6}:host([visible-items--mobile=\"7\"]){--px-carousel-visible-items--mobile:7}:host([visible-items--mobile=\"8\"]){--px-carousel-visible-items--mobile:8}:host([visible-items--mobile=\"9\"]){--px-carousel-visible-items--mobile:9}:host([visible-items--tablet=\"1\"]){--px-carousel-visible-items--tablet:1}:host([visible-items--tablet=\"2\"]){--px-carousel-visible-items--tablet:2}:host([visible-items--tablet=\"3\"]){--px-carousel-visible-items--tablet:3}:host([visible-items--tablet=\"4\"]){--px-carousel-visible-items--tablet:4}:host([visible-items--tablet=\"5\"]){--px-carousel-visible-items--tablet:5}:host([visible-items--tablet=\"6\"]){--px-carousel-visible-items--tablet:6}:host([visible-items--tablet=\"7\"]){--px-carousel-visible-items--tablet:7}:host([visible-items--tablet=\"8\"]){--px-carousel-visible-items--tablet:8}:host([visible-items--tablet=\"9\"]){--px-carousel-visible-items--tablet:9}:host([visible-items--laptop=\"1\"]){--px-carousel-visible-items--laptop:1}:host([visible-items--laptop=\"2\"]){--px-carousel-visible-items--laptop:2}:host([visible-items--laptop=\"3\"]){--px-carousel-visible-items--laptop:3}:host([visible-items--laptop=\"4\"]){--px-carousel-visible-items--laptop:4}:host([visible-items--laptop=\"5\"]){--px-carousel-visible-items--laptop:5}:host([visible-items--laptop=\"6\"]){--px-carousel-visible-items--laptop:6}:host([visible-items--laptop=\"7\"]){--px-carousel-visible-items--laptop:7}:host([visible-items--laptop=\"8\"]){--px-carousel-visible-items--laptop:8}:host([visible-items--laptop=\"9\"]){--px-carousel-visible-items--laptop:9}:host([visible-items--desktop=\"1\"]){--px-carousel-visible-items--desktop:1}:host([visible-items--desktop=\"2\"]){--px-carousel-visible-items--desktop:2}:host([visible-items--desktop=\"3\"]){--px-carousel-visible-items--desktop:3}:host([visible-items--desktop=\"4\"]){--px-carousel-visible-items--desktop:4}:host([visible-items--desktop=\"5\"]){--px-carousel-visible-items--desktop:5}:host([visible-items--desktop=\"6\"]){--px-carousel-visible-items--desktop:6}:host([visible-items--desktop=\"7\"]){--px-carousel-visible-items--desktop:7}:host([visible-items--desktop=\"8\"]){--px-carousel-visible-items--desktop:8}:host([visible-items--desktop=\"9\"]){--px-carousel-visible-items--desktop:9}:host([gap=default]){--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([gap=s]){--px-carousel-gap-default:var(--px-spacing-s-desktop)}:host([gap=xs]){--px-carousel-gap-default:var(--px-spacing-xs-desktop)}:host([gap=\"2xs\"]){--px-carousel-gap-default:var(--px-spacing-2xs-desktop)}:host([gap=l]){--px-carousel-gap-default:var(--px-spacing-l-desktop)}:host([gap=none]){--px-carousel-gap-default:0}:host([gap--mobile=default]){--px-carousel-gap-default--mobile:var(--px-spacing-default-mobile)}:host([gap--mobile=s]){--px-carousel-gap-default--mobile:var(--px-spacing-s-mobile)}:host([gap--mobile=xs]){--px-carousel-gap-default--mobile:var(--px-spacing-xs-mobile)}:host([gap--mobile=\"2xs\"]){--px-carousel-gap-default--mobile:var(--px-spacing-2xs-mobile)}:host([gap--mobile=l]){--px-carousel-gap-default--mobile:var(--px-spacing-l-mobile)}:host([gap--mobile=none]){--px-carousel-gap-default--mobile:0}:host([gap--tablet=default]){--px-carousel-gap-default--tablet:var(--px-spacing-default-tablet)}:host([gap--tablet=s]){--px-carousel-gap-default--tablet:var(--px-spacing-s-tablet)}:host([gap--tablet=xs]){--px-carousel-gap-default--tablet:var(--px-spacing-xs-tablet)}:host([gap--tablet=\"2xs\"]){--px-carousel-gap-default--tablet:var(--px-spacing-2xs-tablet)}:host([gap--tablet=l]){--px-carousel-gap-default--tablet:var(--px-spacing-l-tablet)}:host([gap--tablet=none]){--px-carousel-gap-default--tablet:0}:host([gap--laptop=default]){--px-carousel-gap-default--laptop:var(--px-spacing-default-laptop)}:host([gap--laptop=s]){--px-carousel-gap-default--laptop:var(--px-spacing-s-laptop)}:host([gap--laptop=xs]){--px-carousel-gap-default--laptop:var(--px-spacing-xs-laptop)}:host([gap--laptop=\"2xs\"]){--px-carousel-gap-default--laptop:var(--px-spacing-2xs-laptop)}:host([gap--laptop=l]){--px-carousel-gap-default--laptop:var(--px-spacing-l-laptop)}:host([gap--laptop=none]){--px-carousel-gap-default--laptop:0}:host([gap--desktop=default]){--px-carousel-gap-default--desktop:var(--px-spacing-default-desktop)}:host([gap--desktop=s]){--px-carousel-gap-default--desktop:var(--px-spacing-s-desktop)}:host([gap--desktop=xs]){--px-carousel-gap-default--desktop:var(--px-spacing-xs-desktop)}:host([gap--desktop=\"2xs\"]){--px-carousel-gap-default--desktop:var(--px-spacing-2xs-desktop)}:host([gap--desktop=l]){--px-carousel-gap-default--desktop:var(--px-spacing-l-desktop)}:host([gap--desktop=none]){--px-carousel-gap-default--desktop:0}.carousel{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default));display:flex;overflow:auto hidden}@media screen and (width<=48rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48.0625rem) and (width<=64rem){.carousel{gap:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default))}}@media screen and (width>=64.0625rem) and (width<=90rem){.carousel{gap:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default))}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media screen and (width<=48rem){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", f = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;border-radius:var(--px-radius-main);--visible-items:var(--px-carousel-visible-items--desktop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)));min-width:calc((100% - max(var(--visible-items), 2) * var(--spacing)) / var(--visible-items) - 64px / max(var(--visible-items), 2));background:#fff;justify-content:center;align-items:center;overflow:hidden}@media screen and (width<=48rem){:host{--visible-items:var(--px-carousel-visible-items--mobile,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default,var(--px-spacing-s-mobile)))}}@media screen and (width>=48.0625rem) and (width<=64rem){:host{--visible-items:var(--px-carousel-visible-items--tablet,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width>=64.0625rem) and (width<=90rem){:host{--visible-items:var(--px-carousel-visible-items--laptop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width<=48rem){:host{scroll-snap-align:center;flex:1 0 var(--px-carousel-min-width-mobile,var(--px-carousel-min-width-all-mobile))!important}}@media screen and (width>=48rem) and (width<=64rem){:host{flex:1 0 var(--px-carousel-min-width-tablet,var(--px-carousel-min-width-all-tablet))!important}}", p = ":host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}", m = new CSSStyleSheet();
4
+ m.replaceSync(p);
5
+ var h = [
6
+ "",
7
+ "default",
8
+ "row",
9
+ "row-reverse",
10
+ "column",
11
+ "column-reverse"
12
+ ], g = [
13
+ "",
14
+ "default",
15
+ "stretch",
16
+ "flex-start",
17
+ "start",
18
+ "flex-end",
19
+ "end",
20
+ "center",
21
+ "baseline"
22
+ ], _ = [
23
+ "",
24
+ "default",
25
+ "flex-start",
26
+ "start",
27
+ "flex-end",
28
+ "end",
29
+ "center",
30
+ "space-between",
31
+ "space-around",
32
+ "space-evenly"
33
+ ], v = [
34
+ "",
35
+ "default",
36
+ "nowrap",
37
+ "wrap",
38
+ "wrap-reverse"
39
+ ], y = [
40
+ "",
41
+ "visible",
42
+ "hidden",
43
+ "scroll",
44
+ "auto"
45
+ ], b = class extends n {
46
+ constructor() {
47
+ super(m), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.template = "<div class=\"flex-container\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template;
48
+ }
49
+ connectedCallback() {
50
+ this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
51
+ }
52
+ static get observedAttributes() {
53
+ return [
54
+ ...super.observedAttributes,
55
+ "direction",
56
+ "direction--mobile",
57
+ "direction--tablet",
58
+ "direction--laptop",
59
+ "direction--desktop",
60
+ "gap",
61
+ "gap--mobile",
62
+ "gap--tablet",
63
+ "gap--laptop",
64
+ "gap--desktop",
65
+ "justify-content",
66
+ "justify-content--mobile",
67
+ "justify-content--tablet",
68
+ "justify-content--laptop",
69
+ "justify-content--desktop",
70
+ "align-items",
71
+ "align-items--mobile",
72
+ "align-items--tablet",
73
+ "align-items--laptop",
74
+ "align-items--desktop",
75
+ "wrap",
76
+ "wrap--mobile",
77
+ "wrap--tablet",
78
+ "wrap--laptop",
79
+ "wrap--desktop",
80
+ "overflow-x",
81
+ "overflow-x--mobile",
82
+ "overflow-x--tablet",
83
+ "overflow-x--laptop",
84
+ "overflow-x--desktop"
85
+ ];
86
+ }
87
+ attributeChangedCallback(e, t, n) {
88
+ switch (e) {
89
+ case "gap":
90
+ case "gap--mobile":
91
+ case "gap--tablet":
92
+ case "gap--laptop":
93
+ case "gap--desktop":
94
+ this.updateFlexProperties(e, t, n, s);
95
+ break;
96
+ case "justify-content":
97
+ case "justify-content--mobile":
98
+ case "justify-content--tablet":
99
+ case "justify-content--laptop":
100
+ case "justify-content--desktop":
101
+ this.updateFlexProperties(e, t, n, _);
102
+ break;
103
+ case "align-items":
104
+ case "align-items--mobile":
105
+ case "align-items--tablet":
106
+ case "align-items--laptop":
107
+ case "align-items--desktop":
108
+ this.updateFlexProperties(e, t, n, g);
109
+ break;
110
+ case "wrap":
111
+ case "wrap--mobile":
112
+ case "wrap--tablet":
113
+ case "wrap--laptop":
114
+ case "wrap--desktop":
115
+ this.updateFlexProperties(e, t, n, v);
116
+ break;
117
+ case "direction":
118
+ case "direction--mobile":
119
+ case "direction--tablet":
120
+ case "direction--laptop":
121
+ case "direction--desktop":
122
+ this.updateFlexProperties(e, t, n, h);
123
+ break;
124
+ case "overflow-x":
125
+ case "overflow-x--mobile":
126
+ case "overflow-x--tablet":
127
+ case "overflow-x--laptop":
128
+ case "overflow-x--desktop":
129
+ this.updateOverflowX(e, t, n, y);
130
+ break;
131
+ default: super.attributeChangedCallback(e, t, n);
132
+ }
133
+ }
134
+ updateOverflowX(e, t, n, r) {
135
+ if (!o(r, n)) {
136
+ l(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
137
+ return;
138
+ }
139
+ this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
140
+ }
141
+ updateFlexProperties(e, t, n, r) {
142
+ this.checkName(r, n) || l(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
143
+ let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e, o = [];
144
+ if (!i) this.getAttribute(a + "--mobile") || o.push("mobile"), this.getAttribute(a + "--tablet") || o.push("tablet"), this.getAttribute(a + "--laptop") || o.push("laptop"), this.getAttribute(a + "--desktop") || o.push("desktop"), o.forEach((e) => {
145
+ this.updateStyle(a, e, t, r), this.updateStyle(a, e, n, r);
146
+ });
147
+ else {
148
+ let i = e.split("--")[1];
149
+ this.updateStyle(a, i, t, r), this.updateStyle(a, i, n, r);
150
+ }
151
+ }
152
+ updateStyle(e, t, n, r) {
153
+ n && (e === "gap" && r && r.includes(n) ? (this.$el.style.setProperty(`--flex-${e}--${t}-value`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`), this.style.setProperty(`--host-gap--${t}`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`)) : this.$el.style.setProperty(`--flex-${e}--${t}-value`, n));
154
+ }
155
+ get direction() {
156
+ return this.getAttribute("direction");
157
+ }
158
+ set direction(e) {
159
+ u(this, "direction", e);
160
+ }
161
+ get directionMobile() {
162
+ return this.getAttribute("direction--mobile");
163
+ }
164
+ set directionMobile(e) {
165
+ u(this, "direction--mobile", e);
166
+ }
167
+ get directionTablet() {
168
+ return this.getAttribute("direction--tablet");
169
+ }
170
+ set directionTablet(e) {
171
+ u(this, "direction--tablet", e);
172
+ }
173
+ get directionLaptop() {
174
+ return this.getAttribute("direction--laptop");
175
+ }
176
+ set directionLaptop(e) {
177
+ u(this, "direction--laptop", e);
178
+ }
179
+ get directionDesktop() {
180
+ return this.getAttribute("direction--desktop");
181
+ }
182
+ set directionDesktop(e) {
183
+ u(this, "direction--desktop", e);
184
+ }
185
+ get gap() {
186
+ return this.getAttribute("gap");
187
+ }
188
+ set gap(e) {
189
+ u(this, "gap", e);
190
+ }
191
+ get gapMobile() {
192
+ return this.getAttribute("gap--mobile");
193
+ }
194
+ set gapMobile(e) {
195
+ u(this, "gap--mobile", e);
196
+ }
197
+ get gapTablet() {
198
+ return this.getAttribute("gap--tablet");
199
+ }
200
+ set gapTablet(e) {
201
+ u(this, "gap--tablet", e);
202
+ }
203
+ get gapLaptop() {
204
+ return this.getAttribute("gap--laptop");
205
+ }
206
+ set gapLaptop(e) {
207
+ u(this, "gap--laptop", e);
208
+ }
209
+ get gapDesktop() {
210
+ return this.getAttribute("gap--desktop");
211
+ }
212
+ set gapDesktop(e) {
213
+ u(this, "gap--desktop", e);
214
+ }
215
+ get justifyContent() {
216
+ return this.getAttribute("justify-content");
217
+ }
218
+ set justifyContent(e) {
219
+ u(this, "justify-content", e);
220
+ }
221
+ get justifyContentMobile() {
222
+ return this.getAttribute("justify-content--mobile");
223
+ }
224
+ set justifyContentMobile(e) {
225
+ u(this, "justify-content--mobile", e);
226
+ }
227
+ get justifyContentTablet() {
228
+ return this.getAttribute("justify-content--tablet");
229
+ }
230
+ set justifyContentTablet(e) {
231
+ u(this, "justify-content--tablet", e);
232
+ }
233
+ get justifyContentLaptop() {
234
+ return this.getAttribute("justify-content--laptop");
235
+ }
236
+ set justifyContentLaptop(e) {
237
+ u(this, "justify-content--laptop", e);
238
+ }
239
+ get justifyContentDesktop() {
240
+ return this.getAttribute("justify-content--desktop");
241
+ }
242
+ set justifyContentDesktop(e) {
243
+ u(this, "justify-content--desktop", e);
244
+ }
245
+ get alignItems() {
246
+ return this.getAttribute("align-items");
247
+ }
248
+ set alignItems(e) {
249
+ u(this, "align-items", e);
250
+ }
251
+ get alignItemsMobile() {
252
+ return this.getAttribute("align-items--mobile");
253
+ }
254
+ set alignItemsMobile(e) {
255
+ u(this, "align-items--mobile", e);
256
+ }
257
+ get alignItemsTablet() {
258
+ return this.getAttribute("align-items--tablet");
259
+ }
260
+ set alignItemsTablet(e) {
261
+ u(this, "align-items--tablet", e);
262
+ }
263
+ get alignItemsLaptop() {
264
+ return this.getAttribute("align-items--laptop");
265
+ }
266
+ set alignItemsLaptop(e) {
267
+ u(this, "align-items--laptop", e);
268
+ }
269
+ get alignItemsDesktop() {
270
+ return this.getAttribute("align-items--desktop");
271
+ }
272
+ set alignItemsDesktop(e) {
273
+ u(this, "align-items--desktop", e);
274
+ }
275
+ get wrap() {
276
+ return this.getAttribute("wrap");
277
+ }
278
+ set wrap(e) {
279
+ u(this, "wrap", e);
280
+ }
281
+ get wrapMobile() {
282
+ return this.getAttribute("wrap--mobile");
283
+ }
284
+ set wrapMobile(e) {
285
+ u(this, "wrap--mobile", e);
286
+ }
287
+ get wrapTablet() {
288
+ return this.getAttribute("wrap--tablet");
289
+ }
290
+ set wrapTablet(e) {
291
+ u(this, "wrap--tablet", e);
292
+ }
293
+ get wrapLaptop() {
294
+ return this.getAttribute("wrap--laptop");
295
+ }
296
+ set wrapLaptop(e) {
297
+ u(this, "wrap--laptop", e);
298
+ }
299
+ get wrapDesktop() {
300
+ return this.getAttribute("wrap--desktop");
301
+ }
302
+ set wrapDesktop(e) {
303
+ u(this, "wrap--desktop", e);
304
+ }
305
+ get overflowX() {
306
+ return this.getAttribute("overflow-x");
307
+ }
308
+ set overflowX(e) {
309
+ u(this, "overflow-x", e);
310
+ }
311
+ get overflowXMobile() {
312
+ return this.getAttribute("overflow-x--mobile");
313
+ }
314
+ set overflowXMobile(e) {
315
+ u(this, "overflow-x--mobile", e);
316
+ }
317
+ get overflowXTablet() {
318
+ return this.getAttribute("overflow-x--tablet");
319
+ }
320
+ set overflowXTablet(e) {
321
+ u(this, "overflow-x--tablet", e);
322
+ }
323
+ get overflowXLaptop() {
324
+ return this.getAttribute("overflow-x--laptop");
325
+ }
326
+ set overflowXLaptop(e) {
327
+ u(this, "overflow-x--laptop", e);
328
+ }
329
+ get overflowXDesktop() {
330
+ return this.getAttribute("overflow-x--desktop");
331
+ }
332
+ set overflowXDesktop(e) {
333
+ u(this, "overflow-x--desktop", e);
334
+ }
335
+ get $el() {
336
+ return this.shadowRoot.querySelector(".flex-container");
337
+ }
3
338
  };
4
- var O = (r, t, e) => t.has(r) || q("Cannot " + e);
5
- var d = (r, t, e) => (O(r, t, "read from private field"), e ? e.call(r) : t.get(r)), m = (r, t, e) => t.has(r) ? q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), C = (r, t, e, i) => (O(r, t, "write to private field"), i ? i.call(r, e) : t.set(r, e), e);
6
- import { WithExtraAttributes as T, AttributeBreakpointHandlerDelegate as F, gapValues as B, checkName as rt, backgroundColorValues as st, PxElement as ot, transferAccessibilityAttributes as at, iconSizeValuesKC as nt, cssTokenBreakpoints as lt } from "@proximus/lavender-common";
7
- const ct = ":host{display:block}:host *{box-sizing:border-box}.carousel{overflow:hidden;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-spacing-default-desktop)}@media only screen and (max-width: 768px){.carousel{gap:var(--px-spacing-default-mobile)}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media only screen and (max-width: 768px){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", dt = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;align-items:center;justify-content:center;flex:1 0 var( --px-carousel-min-width-desktop, var(--px-carousel-min-width-all-desktop) );border-radius:var(--px-radius-main);background:#fff;overflow:hidden}@media screen and (max-width: 768px){:host{scroll-snap-align:center;flex:1 0 var( --px-carousel-min-width-mobile, var(--px-carousel-min-width-all-mobile) )!important}}@media screen and (min-width: 768px) and (max-width: 1024px){:host{flex:1 0 var( --px-carousel-min-width-tablet, var(--px-carousel-min-width-all-tablet) )!important}}", pt = ':host{display:block}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', G = new CSSStyleSheet();
8
- G.replaceSync(pt);
9
- const ut = [
10
- "",
11
- "default",
12
- "row",
13
- "row-reverse",
14
- "column",
15
- "column-reverse"
16
- ], ht = [
17
- "",
18
- "default",
19
- "stretch",
20
- "flex-start",
21
- "flex-end",
22
- "center",
23
- "baseline"
24
- ], bt = [
25
- "",
26
- "default",
27
- "flex-start",
28
- "flex-end",
29
- "center",
30
- "space-between",
31
- "space-around",
32
- "space-evenly"
33
- ], gt = ["", "default", "nowrap", "wrap", "wrap-reverse"], vt = ["", "visible", "hidden", "scroll", "auto"];
34
- class E extends T {
35
- constructor() {
36
- super(G), this.overflowXAttributeDelegate = new F(
37
- this,
38
- "overflow-x",
39
- (t) => t,
40
- "--overflow-x"
41
- ), this.template = `<div class="flex-container">
42
- <slot></slot>
43
- </div>`, this.shadowRoot.innerHTML = this.template;
44
- }
45
- connectedCallback() {
46
- this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
47
- }
48
- static get observedAttributes() {
49
- return [
50
- ...super.observedAttributes,
51
- "direction",
52
- "direction--mobile",
53
- "direction--tablet",
54
- "direction--laptop",
55
- "direction--desktop",
56
- "gap",
57
- "gap--mobile",
58
- "gap--tablet",
59
- "gap--laptop",
60
- "gap--desktop",
61
- "justify-content",
62
- "justify-content--mobile",
63
- "justify-content--tablet",
64
- "justify-content--laptop",
65
- "justify-content--desktop",
66
- "align-items",
67
- "align-items--mobile",
68
- "align-items--tablet",
69
- "align-items--laptop",
70
- "align-items--desktop",
71
- "wrap",
72
- "wrap--mobile",
73
- "wrap--tablet",
74
- "wrap--laptop",
75
- "wrap--desktop",
76
- "overflow-x",
77
- "overflow-x--mobile",
78
- "overflow-x--tablet",
79
- "overflow-x--laptop",
80
- "overflow-x--desktop"
81
- ];
82
- }
83
- attributeChangedCallback(t, e, i) {
84
- switch (t) {
85
- case "gap":
86
- case "gap--mobile":
87
- case "gap--tablet":
88
- case "gap--laptop":
89
- case "gap--desktop":
90
- this.updateFlexProperties(t, e, i, B);
91
- break;
92
- case "justify-content":
93
- case "justify-content--mobile":
94
- case "justify-content--tablet":
95
- case "justify-content--laptop":
96
- case "justify-content--desktop":
97
- this.updateFlexProperties(
98
- t,
99
- e,
100
- i,
101
- bt
102
- );
103
- break;
104
- case "align-items":
105
- case "align-items--mobile":
106
- case "align-items--tablet":
107
- case "align-items--laptop":
108
- case "align-items--desktop":
109
- this.updateFlexProperties(t, e, i, ht);
110
- break;
111
- case "wrap":
112
- case "wrap--mobile":
113
- case "wrap--tablet":
114
- case "wrap--laptop":
115
- case "wrap--desktop":
116
- this.updateFlexProperties(t, e, i, gt);
117
- break;
118
- case "direction":
119
- case "direction--mobile":
120
- case "direction--tablet":
121
- case "direction--laptop":
122
- case "direction--desktop":
123
- this.updateFlexProperties(t, e, i, ut);
124
- break;
125
- case "overflow-x":
126
- case "overflow-x--mobile":
127
- case "overflow-x--tablet":
128
- case "overflow-x--laptop":
129
- case "overflow-x--desktop":
130
- this.updateOverflowX(t, e, i, vt);
131
- break;
132
- default:
133
- super.attributeChangedCallback(t, e, i);
134
- break;
135
- }
136
- }
137
- updateOverflowX(t, e, i, s) {
138
- if (!rt(s, i)) {
139
- console.error(`${i} is not an allowed ${t} value`);
140
- return;
141
- }
142
- this.overflowXAttributeDelegate.attributeChangedCallback(
143
- t,
144
- e,
145
- i
146
- );
147
- }
148
- updateFlexProperties(t, e, i, s) {
149
- this.checkName(s, i) || console.error(`${i} is not a valid value for ${s}`);
150
- const n = t.indexOf("--") > -1, l = n ? t.split("--")[0] : t, a = [];
151
- if (!n)
152
- this.getAttribute(l + "--mobile") || a.push("mobile"), this.getAttribute(l + "--tablet") || a.push("tablet"), this.getAttribute(l + "--laptop") || a.push("laptop"), this.getAttribute(l + "--desktop") || a.push("desktop"), a.forEach((c) => {
153
- this.updateStyle(l, c, e, s), this.updateStyle(l, c, i, s);
154
- });
155
- else {
156
- const c = t.split("--")[1];
157
- this.updateStyle(l, c, e, s), this.updateStyle(l, c, i, s);
158
- }
159
- }
160
- updateStyle(t, e, i, s) {
161
- i && (t === "gap" && s && s.includes(i) ? this.$el.style.setProperty(
162
- `--flex-${t}--${e}-value`,
163
- `var(--px-spacing-${i}-${e === "laptop" ? "desktop" : e})`
164
- ) : this.$el.style.setProperty(
165
- `--flex-${t}--${e}-value`,
166
- i
167
- ));
168
- }
169
- get direction() {
170
- return this.getAttribute("direction");
171
- }
172
- set direction(t) {
173
- this.setAttribute("direction", t);
174
- }
175
- get directionMobile() {
176
- return this.getAttribute("direction--mobile");
177
- }
178
- set directionMobile(t) {
179
- this.setAttribute("direction--mobile", t);
180
- }
181
- get directionTablet() {
182
- return this.getAttribute("direction--tablet");
183
- }
184
- set directionTablet(t) {
185
- this.setAttribute("direction--tablet", t);
186
- }
187
- get directionLaptop() {
188
- return this.getAttribute("direction--laptop");
189
- }
190
- set directionLaptop(t) {
191
- this.setAttribute("direction--laptop", t);
192
- }
193
- get directionDesktop() {
194
- return this.getAttribute("direction--desktop");
195
- }
196
- set directionDesktop(t) {
197
- this.setAttribute("direction--desktop", t);
198
- }
199
- get gap() {
200
- return this.getAttribute("gap");
201
- }
202
- set gap(t) {
203
- this.setAttribute("gap", t);
204
- }
205
- get gapMobile() {
206
- return this.getAttribute("gap--mobile");
207
- }
208
- set gapMobile(t) {
209
- this.setAttribute("gap--mobile", t);
210
- }
211
- get gapTablet() {
212
- return this.getAttribute("gap--tablet");
213
- }
214
- set gapTablet(t) {
215
- this.setAttribute("gap--tablet", t);
216
- }
217
- get gapLaptop() {
218
- return this.getAttribute("gap--laptop");
219
- }
220
- set gapLaptop(t) {
221
- this.setAttribute("gap--laptop", t);
222
- }
223
- get gapDesktop() {
224
- return this.getAttribute("gap--desktop");
225
- }
226
- set gapDesktop(t) {
227
- this.setAttribute("gap--desktop", t);
228
- }
229
- get justifyContent() {
230
- return this.getAttribute("justify-content");
231
- }
232
- set justifyContent(t) {
233
- this.setAttribute("justify-content", t);
234
- }
235
- get justifyContentMobile() {
236
- return this.getAttribute("justify-content--mobile");
237
- }
238
- set justifyContentMobile(t) {
239
- this.setAttribute("justify-content--mobile", t);
240
- }
241
- get justifyContentTablet() {
242
- return this.getAttribute("justify-content--tablet");
243
- }
244
- set justifyContentTablet(t) {
245
- this.setAttribute("justify-content--tablet", t);
246
- }
247
- get justifyContentLaptop() {
248
- return this.getAttribute("justify-content--laptop");
249
- }
250
- set justifyContentLaptop(t) {
251
- this.setAttribute("justify-content--laptop", t);
252
- }
253
- get justifyContentDesktop() {
254
- return this.getAttribute("justify-content--desktop");
255
- }
256
- set justifyContentDesktop(t) {
257
- this.setAttribute("justify-content--desktop", t);
258
- }
259
- get alignItems() {
260
- return this.getAttribute("align-items");
261
- }
262
- set alignItems(t) {
263
- this.setAttribute("align-items", t);
264
- }
265
- get alignItemsMobile() {
266
- return this.getAttribute("align-items--mobile");
267
- }
268
- set alignItemsMobile(t) {
269
- this.setAttribute("align-items--mobile", t);
270
- }
271
- get alignItemsTablet() {
272
- return this.getAttribute("align-items--tablet");
273
- }
274
- set alignItemsTablet(t) {
275
- this.setAttribute("align-items--tablet", t);
276
- }
277
- get alignItemsLaptop() {
278
- return this.getAttribute("align-items--laptop");
279
- }
280
- set alignItemsLaptop(t) {
281
- this.setAttribute("align-items--laptop", t);
282
- }
283
- get alignItemsDesktop() {
284
- return this.getAttribute("align-items--desktop");
285
- }
286
- set alignItemsDesktop(t) {
287
- this.setAttribute("align-items--desktop", t);
288
- }
289
- get wrap() {
290
- return this.getAttribute("wrap");
291
- }
292
- set wrap(t) {
293
- this.setAttribute("wrap", t);
294
- }
295
- get wrapMobile() {
296
- return this.getAttribute("wrap--mobile");
297
- }
298
- set wrapMobile(t) {
299
- this.setAttribute("wrap--mobile", t);
300
- }
301
- get wrapTablet() {
302
- return this.getAttribute("wrap--tablet");
303
- }
304
- set wrapTablet(t) {
305
- this.setAttribute("wrap--tablet", t);
306
- }
307
- get wrapLaptop() {
308
- return this.getAttribute("wrap--laptop");
309
- }
310
- set wrapLaptop(t) {
311
- this.setAttribute("wrap--laptop", t);
312
- }
313
- get wrapDesktop() {
314
- return this.getAttribute("wrap--desktop");
315
- }
316
- set wrapDesktop(t) {
317
- this.setAttribute("wrap--desktop", t);
318
- }
319
- get overflowX() {
320
- return this.getAttribute("overflow-x");
321
- }
322
- set overflowX(t) {
323
- this.setAttribute("overflow-x", t);
324
- }
325
- get overflowXMobile() {
326
- return this.getAttribute("overflow-x--mobile");
327
- }
328
- set overflowXMobile(t) {
329
- this.setAttribute("overflow-x--mobile", t);
330
- }
331
- get overflowXTablet() {
332
- return this.getAttribute("overflow-x--tablet");
333
- }
334
- set overflowXTablet(t) {
335
- this.setAttribute("overflow-x--tablet", t);
336
- }
337
- get overflowXLaptop() {
338
- return this.getAttribute("overflow-x--laptop");
339
- }
340
- set overflowXLaptop(t) {
341
- this.setAttribute("overflow-x--laptop", t);
342
- }
343
- get overflowXDesktop() {
344
- return this.getAttribute("overflow-x--desktop");
345
- }
346
- set overflowXDesktop(t) {
347
- this.setAttribute("overflow-x--desktop", t);
348
- }
349
- get $el() {
350
- return this.shadowRoot.querySelector(".flex-container");
351
- }
352
- }
353
- customElements.get("px-stack") || customElements.define("px-stack", E);
354
- class ft extends E {
355
- constructor() {
356
- super();
357
- }
358
- connectedCallback() {
359
- super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
360
- }
361
- }
362
- customElements.get("px-vstack") || customElements.define("px-vstack", ft);
363
- class xt extends E {
364
- constructor() {
365
- super();
366
- }
367
- connectedCallback() {
368
- super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
369
- }
370
- }
371
- customElements.get("px-hstack") || customElements.define("px-hstack", xt);
372
- class mt extends HTMLElement {
373
- constructor() {
374
- super(), this.isZeroSized = !1, this.growValue = "1";
375
- }
376
- static get observedAttributes() {
377
- return ["grow"];
378
- }
379
- attributeChangedCallback(t, e, i) {
380
- t === "grow" && (this.growValue = i || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
381
- }
382
- connectedCallback() {
383
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver((t) => {
384
- t.forEach((e) => {
385
- this.handleSizeChange(
386
- e.contentRect.width === 0 || e.contentRect.height === 0
387
- );
388
- });
389
- }), this.resizeObserver.observe(this), this.scheduleRecheck();
390
- }
391
- disconnectedCallback() {
392
- var t;
393
- (t = this.resizeObserver) == null || t.disconnect(), this.recheckHandle && (cancelAnimationFrame(this.recheckHandle), this.recheckHandle = void 0);
394
- }
395
- get grow() {
396
- return this.getAttribute("grow");
397
- }
398
- set grow(t) {
399
- this.setAttribute("grow", t);
400
- }
401
- scheduleRecheck() {
402
- this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
403
- this.recheckHandle = void 0, this.recalculateVisibility();
404
- });
405
- }
406
- recalculateVisibility() {
407
- if (!this.isConnected)
408
- return;
409
- this.style.display = "", this.style.flexGrow = this.growValue;
410
- const t = this.getBoundingClientRect(), e = t.width === 0 || t.height === 0;
411
- this.handleSizeChange(e);
412
- }
413
- handleSizeChange(t) {
414
- this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
415
- }
416
- updateParticipation() {
417
- this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
418
- }
419
- }
420
- customElements.get("px-spacer") || customElements.define("px-spacer", mt);
421
- const kt = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", _ = new CSSStyleSheet();
422
- _.replaceSync(kt);
423
- class yt extends T {
424
- constructor() {
425
- super(_), this.template = (t) => `
339
+ customElements.get("px-stack") || customElements.define("px-stack", b);
340
+ var x = class extends b {
341
+ constructor() {
342
+ super();
343
+ }
344
+ connectedCallback() {
345
+ super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
346
+ }
347
+ };
348
+ customElements.get("px-vstack") || customElements.define("px-vstack", x);
349
+ var ee = class extends b {
350
+ constructor() {
351
+ super();
352
+ }
353
+ connectedCallback() {
354
+ super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
355
+ }
356
+ };
357
+ customElements.get("px-hstack") || customElements.define("px-hstack", ee);
358
+ //#endregion
359
+ //#region ../Layout/src/Spacer.ts
360
+ var te = class extends HTMLElement {
361
+ constructor() {
362
+ super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
363
+ }
364
+ static get observedAttributes() {
365
+ return ["grow", "nogap"];
366
+ }
367
+ attributeChangedCallback(e, t, n) {
368
+ e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
369
+ }
370
+ connectedCallback() {
371
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
372
+ this.handleSizeChange();
373
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
374
+ }
375
+ disconnectedCallback() {
376
+ this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
377
+ }
378
+ get grow() {
379
+ return this.getAttribute("grow");
380
+ }
381
+ set grow(e) {
382
+ this.setAttribute("grow", `${e}`);
383
+ }
384
+ scheduleRecheck() {
385
+ this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
386
+ this.recheckHandle = void 0, this.recalculateVisibility();
387
+ });
388
+ }
389
+ recalculateVisibility() {
390
+ this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
391
+ }
392
+ handleSizeChange() {
393
+ let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
394
+ this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
395
+ }
396
+ updateParticipation() {
397
+ this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
398
+ }
399
+ get nogap() {
400
+ return this.hasAttribute("nogap");
401
+ }
402
+ set nogap(e) {
403
+ e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
404
+ }
405
+ };
406
+ customElements.get("px-spacer") || customElements.define("px-spacer", te);
407
+ //#endregion
408
+ //#region ../Layout/src/Page.css?inline
409
+ var ne = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", S = new CSSStyleSheet();
410
+ S.replaceSync(ne);
411
+ var re = class extends n {
412
+ constructor() {
413
+ super(S), this.template = () => `
426
414
  <px-container border-radius="none" padding="none">
427
415
  <px-vstack>
428
416
  <px-container id="header-container" border-radius="none">
@@ -459,15 +447,6 @@ class yt extends T {
459
447
  <px-spacer></px-spacer>
460
448
  </px-hstack>
461
449
  </px-container>
462
- ${t ? ` <px-hstack>
463
- <px-spacer></px-spacer>
464
- <px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
465
- <px-vstack gap="s">
466
- <slot name="image-sticky-container"></slot>
467
- </px-vstack>
468
- </px-container>
469
- <px-spacer></px-spacer>
470
- </px-hstack>` : ""}
471
450
  <px-container
472
451
  id="body-container"
473
452
  id="main"
@@ -524,217 +503,217 @@ class yt extends T {
524
503
  </px-container>
525
504
  </px-vstack>
526
505
  </px-container>
527
- `, this.shadowRoot.innerHTML = this.template(!!this.$imageStickySlot);
528
- }
529
- static get observedAttributes() {
530
- return [
531
- ...super.observedAttributes,
532
- "background-image",
533
- "gap",
534
- "background-color",
535
- "padding-vertical",
536
- "padding-horizontal"
537
- ];
538
- }
539
- get $wideImage() {
540
- return this.shadowRoot.querySelector("#image-box");
541
- }
542
- get $bodyVStackContainer() {
543
- return this.shadowRoot.querySelector("#header-vstack-container");
544
- }
545
- get $bodyContainer() {
546
- return this.shadowRoot.querySelector("#body-container");
547
- }
548
- get $contactContainer() {
549
- return this.shadowRoot.querySelector("#contact-container");
550
- }
551
- get $footerContainer() {
552
- return this.shadowRoot.querySelector("#footer-container");
553
- }
554
- get $headerContainer() {
555
- return this.shadowRoot.querySelector("#header-container");
556
- }
557
- get $imageContainer() {
558
- return this.shadowRoot.querySelector("#image-container");
559
- }
560
- get backgroundImage() {
561
- return this.getAttribute("background-image");
562
- }
563
- get $imageStickySlot() {
564
- return this.querySelector('*[slot="image-sticky-container"]');
565
- }
566
- get $main() {
567
- return this.shadowRoot.querySelector("#main");
568
- }
569
- get backgroundColor() {
570
- return this.getAttribute("background-color") || "none";
571
- }
572
- get paddingVertical() {
573
- return this.getAttribute("padding-vertical");
574
- }
575
- get paddingHorizontal() {
576
- return this.getAttribute("padding-horizontal");
577
- }
578
- set paddingVertical(t) {
579
- this.setAttribute("padding-vertical", t);
580
- }
581
- set paddingHorizontal(t) {
582
- this.setAttribute("padding-horizontal", t);
583
- }
584
- get gap() {
585
- return this.getAttribute("gap");
586
- }
587
- connectedCallback() {
588
- this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
589
- }
590
- attributeChangedCallback(t, e, i) {
591
- if (e !== i)
592
- switch (t) {
593
- case "background-image":
594
- this.$imageContainer.setAttribute("background-image", i);
595
- break;
596
- case "gap":
597
- this.$bodyVStackContainer.setAttribute("gap", i);
598
- break;
599
- case "background-color":
600
- this.$bodyContainer.setAttribute(
601
- "background-color",
602
- st.indexOf(i) > 0 ? i : "none"
603
- );
604
- break;
605
- case "padding-vertical":
606
- this.handlePaddingVerticalChange(i);
607
- break;
608
- case "padding-horizontal":
609
- this.handlePaddingHorizontalChange(i);
610
- break;
611
- default:
612
- super.attributeChangedCallback(t, e, i);
613
- }
614
- }
615
- handlePaddingVerticalChange(t) {
616
- this.$headerContainer.setAttribute("padding-top", t), this.$footerContainer.setAttribute("padding-bottom", t);
617
- }
618
- handlePaddingHorizontalChange(t) {
619
- this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
620
- }
621
- }
622
- customElements.get("px-page") === void 0 && customElements.define("px-page", yt);
623
- const wt = ".btn-icon{font-size:var(--px-font-size-base);display:inline-flex;width:var(--px-size-l);height:var(--px-size-l);vertical-align:middle;align-items:center;justify-content:center;cursor:pointer;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);background:var(--px-color-background-container-primary-default);color:var(--px-color-icon-brand-inverted);border-radius:var(--px-radius-pill);padding:var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid transparent}.btn-icon,.btn-icon *{box-sizing:border-box}.btn-icon ::slotted(px-icon){line-height:0}.btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-default);color:var(--px-color-icon-brand-default);border-color:var(--px-color-border-state-hover-default)}.btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-icon-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn-icon: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-icon[disabled],.btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-state-disabled-default);cursor:default;pointer-events:none}.btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-brand-default);cursor:inherit}.btn-icon--size-small{padding:var(--px-padding-2xs-mobile);width:var(--px-size-m);height:var(--px-size-m)}.btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-default);color:var(--px-color-icon-brand-default)}.btn-icon--variant-naked{background-color:transparent;color:var(--px-color-icon-brand-default);width:auto;height:auto}:host([inverted]) .btn-icon{background:var(--px-color-background-container-primary-inverted);color:var(--px-color-icon-brand-default)}:host([inverted]) .btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-inverted);color:var(--px-color-icon-brand-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-default);color:var(--px-color-icon-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn-icon[disabled],:host([inverted]) .btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-state-disabled-inverted)}:host([inverted]) .btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-brand-inverted);border-color:transparent}:host([inverted]) .btn-icon.btn-icon--variant-naked{background-color:transparent;color:var(--px-color-icon-brand-inverted)}:host([inverted]) .btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-inverted);color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}@media only screen and (min-width: 1025px){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}", Z = new CSSStyleSheet();
624
- Z.replaceSync(wt);
625
- const At = ["", "default", "small"], $t = [
626
- "",
627
- "default",
628
- "secondary",
629
- "naked"
630
- ], R = class R extends ot {
631
- constructor() {
632
- super(Z), this.template = () => "<slot></slot>";
633
- const t = document.createElement(this.nativeName);
634
- t.classList.add("btn-icon"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
635
- }
636
- static get observedAttributes() {
637
- return [
638
- ...super.observedAttributes,
639
- "inverted",
640
- "loading",
641
- "size",
642
- "variant",
643
- "aria-expanded"
644
- ];
645
- }
646
- connectedCallback() {
647
- super.connectedCallback();
648
- const t = this.querySelector("px-icon");
649
- if (t) {
650
- const e = t.getAttribute("size"), i = t.getAttribute("color");
651
- t.addEventListener("click", () => {
652
- this.$el.focus();
653
- }), e || t.setAttribute("size", "s"), this.size === "small" && t.setAttribute("size", "xs"), i || t.setAttribute("color", "inherit");
654
- }
655
- at(this, this.$el, !1);
656
- }
657
- attributeChangedCallback(t, e, i) {
658
- if (e !== i)
659
- switch (t) {
660
- case "loading":
661
- this.updateLoading();
662
- break;
663
- case "size":
664
- this.updateSize(e, i);
665
- break;
666
- case "variant":
667
- this.updateVariant(e, i);
668
- break;
669
- case "aria-expanded":
670
- i && (this.$el.setAttribute("aria-expanded", i), this.removeAttribute("aria-expanded"));
671
- break;
672
- default:
673
- super.attributeChangedCallback(t, e, i);
674
- break;
675
- }
676
- }
677
- _toggleClass(t, e) {
678
- t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(t), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(e);
679
- }
680
- updateLoading() {
681
- this.$el.classList.toggle("btn-icon--state-loading");
682
- }
683
- updateSize(t, e) {
684
- this.checkName(At, e) ? (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--size-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--size-${e}`)) : console.error(`${e} is not a valid size value`);
685
- }
686
- updateVariant(t, e) {
687
- this.checkName($t, e) ? (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--variant-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--variant-${e}`)) : console.error(`${e} is not a valid variant value`);
688
- }
689
- get inverted() {
690
- return this.getAttribute("inverted");
691
- }
692
- set inverted(t) {
693
- this.setAttribute("inverted", t);
694
- }
695
- get loading() {
696
- return this.getAttribute("loading");
697
- }
698
- set loading(t) {
699
- this.setAttribute("loading", t);
700
- }
701
- get size() {
702
- return this.getAttribute("size");
703
- }
704
- set size(t) {
705
- this.setAttribute("size", t);
706
- }
707
- get variant() {
708
- return this.getAttribute("variant");
709
- }
710
- set variant(t) {
711
- this.setAttribute("variant", t);
712
- }
713
- get ariaExpanded() {
714
- return this.getAttribute("aria-expanded");
715
- }
716
- set ariaExpanded(t) {
717
- t ? this.setAttribute("aria-expanded", t) : this.removeAttribute("aria-expanded");
718
- }
506
+ `, this.shadowRoot.innerHTML = this.template();
507
+ }
508
+ static get observedAttributes() {
509
+ return [
510
+ ...super.observedAttributes,
511
+ "background-image",
512
+ "gap",
513
+ "background-color",
514
+ "padding-vertical",
515
+ "padding-horizontal"
516
+ ];
517
+ }
518
+ get $wideImage() {
519
+ return this.shadowRoot.querySelector("#image-box");
520
+ }
521
+ get $bodyVStackContainer() {
522
+ return this.shadowRoot.querySelector("#header-vstack-container");
523
+ }
524
+ get $bodyContainer() {
525
+ return this.shadowRoot.querySelector("#body-container");
526
+ }
527
+ get $contactContainer() {
528
+ return this.shadowRoot.querySelector("#contact-container");
529
+ }
530
+ get $footerContainer() {
531
+ return this.shadowRoot.querySelector("#footer-container");
532
+ }
533
+ get $headerContainer() {
534
+ return this.shadowRoot.querySelector("#header-container");
535
+ }
536
+ get $imageContainer() {
537
+ return this.shadowRoot.querySelector("#image-container");
538
+ }
539
+ get backgroundImage() {
540
+ return this.getAttribute("background-image");
541
+ }
542
+ get $main() {
543
+ return this.shadowRoot.querySelector("#main");
544
+ }
545
+ get backgroundColor() {
546
+ return this.getAttribute("background-color") || "none";
547
+ }
548
+ get paddingVertical() {
549
+ return this.getAttribute("padding-vertical");
550
+ }
551
+ get paddingHorizontal() {
552
+ return this.getAttribute("padding-horizontal");
553
+ }
554
+ set paddingVertical(e) {
555
+ this.setAttribute("padding-vertical", `${e}`);
556
+ }
557
+ set paddingHorizontal(e) {
558
+ this.setAttribute("padding-horizontal", `${e}`);
559
+ }
560
+ get gap() {
561
+ return this.getAttribute("gap");
562
+ }
563
+ connectedCallback() {
564
+ this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
565
+ }
566
+ attributeChangedCallback(e, t, n) {
567
+ if (t !== n) switch (e) {
568
+ case "background-image":
569
+ this.$imageContainer.setAttribute("background-image", n);
570
+ break;
571
+ case "gap":
572
+ this.$bodyVStackContainer.setAttribute("gap", n);
573
+ break;
574
+ case "background-color":
575
+ this.$bodyContainer.setAttribute("background-color", i.indexOf(n) > 0 ? n : "none");
576
+ break;
577
+ case "padding-vertical":
578
+ this.handlePaddingVerticalChange(n);
579
+ break;
580
+ case "padding-horizontal":
581
+ this.handlePaddingHorizontalChange(n);
582
+ break;
583
+ default: super.attributeChangedCallback(e, t, n);
584
+ }
585
+ }
586
+ handlePaddingVerticalChange(e) {
587
+ this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
588
+ }
589
+ handlePaddingHorizontalChange(e) {
590
+ this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
591
+ }
592
+ };
593
+ customElements.get("px-page") === void 0 && customElements.define("px-page", re);
594
+ //#endregion
595
+ //#region ../ButtonIcon/src/buttonicon.css?inline
596
+ var ie = ".btn-icon,.btn-icon *{box-sizing:border-box}.btn-icon{font-size:var(--px-font-size-base);width:var(--px-size-l);height:var(--px-size-l);vertical-align:middle;cursor:pointer;--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);background:var(--px-color-background-container-primary-default);color:var(--px-color-icon-brand-inverted);border-radius:var(--px-radius-pill);padding:var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid transparent;justify-content:center;align-items:center;display:inline-flex}.btn-icon ::slotted(px-icon){line-height:0}.btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-default);color:var(--px-color-icon-brand-default);border-color:var(--px-color-border-state-hover-default)}.btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-icon-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn-icon: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-icon[disabled],.btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-state-disabled-default);cursor:default;pointer-events:none}.btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-brand-default);cursor:inherit}.btn-icon--size-small{padding:var(--px-padding-2xs-mobile);width:var(--px-size-m);height:var(--px-size-m)}.btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-default);color:var(--px-color-icon-brand-default)}.btn-icon--variant-naked{color:var(--px-color-icon-brand-default);background-color:#0000;width:auto;height:auto}:host([inverted]) .btn-icon{background:var(--px-color-background-container-primary-inverted);color:var(--px-color-icon-brand-default)}:host([inverted]) .btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-inverted);color:var(--px-color-icon-brand-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-default);color:var(--px-color-icon-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn-icon[disabled],:host([inverted]) .btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-state-disabled-inverted)}:host([inverted]) .btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-brand-inverted);border-color:#0000}:host([inverted]) .btn-icon.btn-icon--variant-naked{color:var(--px-color-icon-brand-inverted);background-color:#0000}:host([inverted]) .btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-inverted);color:var(--px-color-icon-brand-inverted)}@media screen and (width>=48rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}@media screen and (width>=64.0625rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}", C = new CSSStyleSheet();
597
+ C.replaceSync(ie);
598
+ var w = [
599
+ "",
600
+ "default",
601
+ "small"
602
+ ], T = [
603
+ "",
604
+ "default",
605
+ "secondary",
606
+ "naked"
607
+ ], E = class e extends t {
608
+ static {
609
+ this.nativeName = "button";
610
+ }
611
+ constructor() {
612
+ super(C), this.template = () => "<slot></slot>";
613
+ let t = document.createElement(e.nativeName);
614
+ t.classList.add("btn-icon"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
615
+ }
616
+ static get observedAttributes() {
617
+ return [
618
+ ...super.observedAttributes,
619
+ ...r,
620
+ "inverted",
621
+ "loading",
622
+ "size",
623
+ "variant",
624
+ "aria-expanded"
625
+ ];
626
+ }
627
+ connectedCallback() {
628
+ let e = this.querySelector("px-icon");
629
+ if (e) {
630
+ let t = e.getAttribute("size"), n = e.getAttribute("color");
631
+ e.addEventListener("click", () => {
632
+ this.$el.focus();
633
+ }), t || e.setAttribute("size", "s"), this.size === "small" && e.setAttribute("size", "xs"), n || e.setAttribute("color", "inherit");
634
+ }
635
+ }
636
+ attributeChangedCallback(e, t, n) {
637
+ if (t !== n) switch (e) {
638
+ case "loading":
639
+ this.updateLoading();
640
+ break;
641
+ case "size":
642
+ this.updateSize(t, n);
643
+ break;
644
+ case "variant":
645
+ this.updateVariant(t, n);
646
+ break;
647
+ case "aria-expanded":
648
+ n && (this.$el.setAttribute("aria-expanded", n), this.removeAttribute("aria-expanded"));
649
+ break;
650
+ default: super.attributeChangedCallback(e, t, n);
651
+ }
652
+ }
653
+ _toggleClass(e, t) {
654
+ e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(e), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(t);
655
+ }
656
+ updateLoading() {
657
+ this.$el.classList.toggle("btn-icon--state-loading");
658
+ }
659
+ updateSize(e, t) {
660
+ this.checkName(w, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--size-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--size-${t}`)) : l(`"${t}" is not a valid size value for ${this.tagName.toLowerCase()}. Allowed values are: "${w.join("\", \"")}".`);
661
+ }
662
+ updateVariant(e, t) {
663
+ this.checkName(T, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--variant-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--variant-${t}`)) : l(`"${t}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${T.join("\", \"")}".`);
664
+ }
665
+ get inverted() {
666
+ return this.hasAttribute("inverted");
667
+ }
668
+ set inverted(e) {
669
+ this._updateBooleanAttribute("inverted", e);
670
+ }
671
+ get loading() {
672
+ return this.hasAttribute("loading");
673
+ }
674
+ set loading(e) {
675
+ this._updateBooleanAttribute("loading", e);
676
+ }
677
+ get size() {
678
+ return this.getAttribute("size");
679
+ }
680
+ set size(e) {
681
+ this._updateAttribute("size", e);
682
+ }
683
+ get variant() {
684
+ return this.getAttribute("variant");
685
+ }
686
+ set variant(e) {
687
+ this._updateAttribute("variant", e);
688
+ }
689
+ get ariaExpanded() {
690
+ return this.getAttribute("aria-expanded");
691
+ }
692
+ set ariaExpanded(e) {
693
+ this._updateAttribute("aria-expanded", e);
694
+ }
719
695
  };
720
- R.nativeName = "button";
721
- let L = R;
722
- customElements.get("px-button-icon") || customElements.define("px-button-icon", L);
723
- class St extends HTMLElement {
724
- constructor() {
725
- super();
726
- }
727
- static get observedAttributes() {
728
- return ["name", "src", "type", "format"];
729
- }
730
- connectedCallback() {
731
- if (document.querySelectorAll(
732
- `px-icon-set[name="${this.getAttribute("name")}"]`
733
- ).length > 1 && (console.warn(
734
- "Only one <px-icon-set> component is allowed, self removing"
735
- ), this.remove()), this.getAttribute("type") === "font") {
736
- const e = document.createElement("style");
737
- e.setAttribute("type", "text/css"), e.setAttribute("data-name", this.getAttribute("name")), e.textContent = `
696
+ customElements.get("px-button-icon") || customElements.define("px-button-icon", E);
697
+ //#endregion
698
+ //#region ../Icon/common/src/IconSet.ts
699
+ var ae = class extends HTMLElement {
700
+ constructor() {
701
+ super();
702
+ }
703
+ static get observedAttributes() {
704
+ return [
705
+ "name",
706
+ "src",
707
+ "type",
708
+ "format"
709
+ ];
710
+ }
711
+ connectedCallback() {
712
+ if (document.querySelectorAll(`px-icon-set[name="${this.getAttribute("name")}"]`).length > 1 && (console.warn("Only one <px-icon-set> component is allowed, self removing"), this.remove()), this.getAttribute("type") === "font") {
713
+ let e = document.createElement("style");
714
+ e.setAttribute("type", "text/css");
715
+ let t = this.getAttribute("name");
716
+ t && e.setAttribute("data-name", t), e.textContent = `
738
717
  @font-face {
739
718
  font-family: 'lavender';
740
719
  src:
@@ -744,439 +723,375 @@ class St extends HTMLElement {
744
723
  font-display: block;
745
724
  }
746
725
  `, document.head.appendChild(e);
747
- }
748
- }
749
- disconnectedCallback() {
750
- const t = document.querySelector(
751
- `style[data-name="${this.getAttribute("name")}"]`
752
- );
753
- t && t.remove();
754
- }
755
- }
756
- customElements.get("px-icon-set") || customElements.define("px-icon-set", St);
757
- const Ct = [
758
- "Brand",
759
- "Accent",
760
- "Neutral",
761
- "Dimmed",
762
- "PurposeSuccess",
763
- "PurposeWarning",
764
- "PurposeError",
765
- "PurposeUnlimited",
766
- "PurposePromo",
767
- "StateHover",
768
- "StateActive",
769
- "StateDisabled"
770
- ], zt = ["Inherit", ...Ct].map(
771
- (r) => r.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
772
- ), jt = ":host{display:inline-flex;flex-direction:column;justify-content:center}svg{font-size:var(--px-size-icon-s);line-height:var(--px-font-line-height-xs);width:1em;height:1em;color:var(--px-color-icon-brand-default)}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", U = new CSSStyleSheet();
773
- U.replaceSync(jt);
774
- const Lt = [
775
- "name",
776
- "size",
777
- "color",
778
- "aria-label",
779
- "inverted",
780
- "from",
781
- "disabled"
782
- ];
783
- var h, p, w;
784
- class Tt extends T {
785
- constructor(...e) {
786
- var i;
787
- super(...e, U);
788
- m(this, h);
789
- m(this, p);
790
- m(this, w, () => `<svg aria-hidden="true">
791
- <use xlink:href="#icon-${this.name}"></use>
792
- </svg>`);
793
- this.shadowRoot.innerHTML = d(this, w).call(this), C(this, p, (i = this.attachInternals) == null ? void 0 : i.call(this)), d(this, p) && (d(this, p).role = "img");
794
- }
795
- static get observedAttributes() {
796
- return [...super.observedAttributes, ...Lt];
797
- }
798
- attributeChangedCallback(e, i, s) {
799
- if (i !== s)
800
- switch (e) {
801
- case "name":
802
- this.updateName(i, s);
803
- break;
804
- case "size":
805
- this.updateAttribute(e, i, s, nt);
806
- break;
807
- case "color":
808
- this.updateAttribute(e, i, s, zt);
809
- break;
810
- case "disabled":
811
- this.color = "state-disabled";
812
- break;
813
- case "aria-label":
814
- if (!d(this, p))
815
- return;
816
- s ? d(this, p).ariaHidden = "false" : d(this, p).ariaHidden = "true";
817
- break;
818
- }
819
- }
820
- connectedCallback() {
821
- const e = document.querySelectorAll("px-icon-set");
822
- e || console.log("<px-icon-set> component not found");
823
- for (const i of e) {
824
- if (!i.getAttribute("name") || !i.getAttribute("src")) {
825
- console.error("Icon name or src not found");
826
- continue;
827
- }
828
- i.getAttribute("name") === this.from && i.getAttribute("type") !== "font" && (C(this, h, i.getAttribute("src")), this.$el.firstElementChild.setAttribute(
829
- "xlink:href",
830
- `${d(this, h)}#icon-${this.name}`
831
- ));
832
- }
833
- !this.ariaLabel && d(this, p) && (d(this, p).ariaHidden = "true");
834
- }
835
- updateAttribute(e, i, s, n) {
836
- i !== null && i !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${i}`) : this.$el.classList.toggle(i)), s !== null && s !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${s}`) : this.$el.classList.toggle(s)), this.checkName(n, s) || console.error(`${s} is not an allowed ${e} value`);
837
- }
838
- updateName(e, i) {
839
- d(this, h) && this.$el.firstElementChild.setAttribute(
840
- "xlink:href",
841
- `${d(this, h)}#icon-${i}`
842
- );
843
- }
844
- get $el() {
845
- return this.shadowRoot.querySelector("svg");
846
- }
847
- get name() {
848
- return this.getAttribute("name");
849
- }
850
- set name(e) {
851
- this.setAttribute("name", e);
852
- }
853
- get size() {
854
- return this.getAttribute("size");
855
- }
856
- set size(e) {
857
- this.setAttribute("size", e);
858
- }
859
- get color() {
860
- return this.getAttribute("color");
861
- }
862
- set color(e) {
863
- this.setAttribute("color", e);
864
- }
865
- get arialabel() {
866
- return this.getAttribute("aria-label");
867
- }
868
- set arialabel(e) {
869
- this.setAttribute("aria-label", e);
870
- }
871
- get inverted() {
872
- return this.getAttribute("inverted");
873
- }
874
- set inverted(e) {
875
- this.setAttribute("inverted", e);
876
- }
877
- get from() {
878
- return this.getAttribute("from");
879
- }
880
- set from(e) {
881
- this.setAttribute("from", e);
882
- }
883
- get disabled() {
884
- return this.getAttribute("disabled");
885
- }
886
- set disabled(e) {
887
- this.setAttribute("disabled", e);
888
- }
889
- }
890
- h = new WeakMap(), p = new WeakMap(), w = new WeakMap();
891
- customElements.get("px-icon") || customElements.define("px-icon", Tt);
892
- const Et = ":host{--px-appleseed-size-l: 14px;--px-appleseed-size-m: 10px;--px-appleseed-size-s: 6px;--px-appleseed-size-xs: 4px}.container{display:flex}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(4)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(5)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2)>div,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(1)>div,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(1)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :nth-child(1)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.appleseed{width:var(--px-size-icon-m);height:var(--px-size-icon-m);display:flex;justify-content:center;align-items:center}@media only screen and (max-width: 47.938em){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}.appleseed-6-plus>div,.appleseed-6-minus>div{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-brand-default);border-radius:var(--px-radius-main);height:var(--px-appleseed-size-m);width:var(--px-appleseed-size-m)}.appleseed-6-plus[active]>div,.appleseed-6-minus[active]>div{width:var(--px-appleseed-size-l);height:var(--px-appleseed-size-l);background-color:var(--px-color-icon-brand-default)}", K = new CSSStyleSheet();
893
- K.replaceSync(Et);
894
- class It extends HTMLElement {
895
- constructor() {
896
- super(), this.template = (t, e) => `<div class="container">
897
- ${Array.from(
898
- { length: Math.min(t, 5) },
899
- (i, s) => `<div id="seed-${s}" ${e === s ? "active" : ""} class="appleseed ${t > 5 ? "appleseed-6-plus" : "appleseed-6-minus"}">
726
+ }
727
+ }
728
+ disconnectedCallback() {
729
+ let e = document.querySelector(`style[data-name="${this.getAttribute("name")}"]`);
730
+ e && e.remove();
731
+ }
732
+ };
733
+ customElements.get("px-icon-set") || customElements.define("px-icon-set", ae);
734
+ var oe = [
735
+ "Inherit",
736
+ "Brand",
737
+ "Accent",
738
+ "Neutral",
739
+ "Dimmed",
740
+ "PurposeSuccess",
741
+ "PurposeWarning",
742
+ "PurposeError",
743
+ "PurposeUnlimited",
744
+ "PurposePromo",
745
+ "StateHover",
746
+ "StateActive",
747
+ "StateDisabled"
748
+ ].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)), se = ":host{flex-direction:column;justify-content:center;display:inline-flex}svg{font-size:var(--px-size-icon-s);width:1em;height:1em;color:var(--px-color-icon-accent-default);line-height:1}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", D = new CSSStyleSheet();
749
+ D.replaceSync(se);
750
+ var O = class extends n {
751
+ #e = null;
752
+ #t;
753
+ #n = () => "<svg aria-hidden=\"true\">\n <use></use>\n </svg>";
754
+ static get observedAttributes() {
755
+ return [
756
+ ...super.observedAttributes,
757
+ "name",
758
+ "size",
759
+ "color",
760
+ "aria-label",
761
+ "inverted",
762
+ "from",
763
+ "disabled"
764
+ ];
765
+ }
766
+ constructor(...e) {
767
+ super(...e, D), this.shadowRoot.innerHTML = this.#n(), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
768
+ }
769
+ attributeChangedCallback(e, t, n) {
770
+ if (t !== n) switch (e) {
771
+ case "name":
772
+ this.updateName(t, n);
773
+ break;
774
+ case "size":
775
+ this.updateAttribute(e, t, n, c);
776
+ break;
777
+ case "color":
778
+ this.updateAttribute(e, t, n, oe);
779
+ break;
780
+ case "disabled":
781
+ this.color = "state-disabled";
782
+ break;
783
+ case "aria-label":
784
+ if (!this.#t) return;
785
+ n ? (this.#t.ariaHidden = "false", this.ariaHidden = "false") : (this.#t.ariaHidden = "true", this.ariaHidden = "true");
786
+ }
787
+ }
788
+ connectedCallback() {
789
+ this.role = "img";
790
+ let e = document.querySelectorAll("px-icon-set");
791
+ e || console.log("<px-icon-set> component not found");
792
+ for (let t of e) {
793
+ if (!t.getAttribute("name") || !t.getAttribute("src")) {
794
+ console.error("Icon name or src not found");
795
+ continue;
796
+ }
797
+ t.getAttribute("name") === this.from && t.getAttribute("type") !== "font" && (this.#e = t.getAttribute("src"), this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${this.name}`));
798
+ }
799
+ !this.ariaLabel && this.#t && (this.#t.ariaHidden = "true", this.ariaHidden = "true"), this.parentElement?.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
800
+ }
801
+ updateAttribute(e, t, n, r) {
802
+ t !== null && t !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${t}`) : this.$el.classList.toggle(t)), n !== null && n !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${n}`) : this.$el.classList.toggle(n)), this.checkName(r, n) || l(`${n} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`);
803
+ }
804
+ updateName(e, t) {
805
+ this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
806
+ }
807
+ get $el() {
808
+ return this.shadowRoot.querySelector("svg");
809
+ }
810
+ get name() {
811
+ return this.getAttribute("name");
812
+ }
813
+ set name(e) {
814
+ u(this, "name", e);
815
+ }
816
+ get size() {
817
+ return this.getAttribute("size");
818
+ }
819
+ set size(e) {
820
+ u(this, "size", e);
821
+ }
822
+ get color() {
823
+ return this.getAttribute("color");
824
+ }
825
+ set color(e) {
826
+ u(this, "color", e);
827
+ }
828
+ get arialabel() {
829
+ return this.getAttribute("aria-label");
830
+ }
831
+ set arialabel(e) {
832
+ u(this, "aria-label", e);
833
+ }
834
+ get inverted() {
835
+ return this.hasAttribute("inverted");
836
+ }
837
+ set inverted(e) {
838
+ a(this, "inverted", e);
839
+ }
840
+ get from() {
841
+ return this.getAttribute("from");
842
+ }
843
+ set from(e) {
844
+ u(this, "from", e);
845
+ }
846
+ get disabled() {
847
+ return this.hasAttribute("disabled");
848
+ }
849
+ set disabled(e) {
850
+ a(this, "disabled", e);
851
+ }
852
+ };
853
+ customElements.get("px-icon") || customElements.define("px-icon", O);
854
+ //#endregion
855
+ //#region src/appleseed.css?inline
856
+ var k = ":host{--px-appleseed-size-l:14px;--px-appleseed-size-m:10px;--px-appleseed-size-s:6px;--px-appleseed-size-xs:4px}.container{display:flex}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2),.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4))>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :first-child,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(5))>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.appleseed{width:var(--px-size-icon-m);height:var(--px-size-icon-m);justify-content:center;align-items:center;display:flex}@media screen and (width<=47.938rem){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}:is(.appleseed-6-plus,.appleseed-6-minus)>div{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-brand-default);border-radius:var(--px-radius-main);height:var(--px-appleseed-size-m);width:var(--px-appleseed-size-m)}:is(.appleseed-6-plus,.appleseed-6-minus)[active]>div{width:var(--px-appleseed-size-l);height:var(--px-appleseed-size-l);background-color:var(--px-color-icon-brand-default)}", A = new CSSStyleSheet();
857
+ A.replaceSync(k);
858
+ var j = class extends HTMLElement {
859
+ constructor() {
860
+ super(), this.template = (e, t) => `<div class="container">
861
+ ${Array.from({ length: Math.min(e, 5) }, (n, r) => `<div id="seed-${r}" ${t === r ? "active" : ""} class="appleseed ${e > 5 ? "appleseed-6-plus" : "appleseed-6-minus"}">
900
862
  <div></div>
901
- </div>`
902
- ).join("")}
903
- </div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [K], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
904
- }
905
- static get observedAttributes() {
906
- return ["amount", "active"];
907
- }
908
- attributeChangedCallback(t, e, i) {
909
- if (e !== i)
910
- switch (t) {
911
- case "amount":
912
- this.shadowRoot.innerHTML = this.template(
913
- parseInt(i) || 0,
914
- this.active
915
- );
916
- break;
917
- case "active":
918
- this.handleActive(e, i);
919
- break;
920
- }
921
- }
922
- handleActive(t, e) {
923
- var i;
924
- t === null || e === void 0 || (this.$active.removeAttribute("active"), (i = this.shadowRoot.querySelector(`#seed-${e}`)) == null || i.setAttribute("active", ""));
925
- }
926
- get $active() {
927
- return this.shadowRoot.querySelector("[active]");
928
- }
929
- get amount() {
930
- return parseInt(this.getAttribute("amount")) || 0;
931
- }
932
- get active() {
933
- return parseInt(this.getAttribute("active")) || 0;
934
- }
935
- }
936
- customElements.get("px-appleseed") || customElements.define("px-appleseed", It);
937
- function k(r) {
938
- var t = typeof r;
939
- return r != null && (t == "object" || t == "function");
940
- }
941
- var Rt = typeof global == "object" && global && global.Object === Object && global, Mt = typeof self == "object" && self && self.Object === Object && self, J = Rt || Mt || Function("return this")(), z = function() {
942
- return J.Date.now();
943
- }, Ht = /\s/;
944
- function Pt(r) {
945
- for (var t = r.length; t-- && Ht.test(r.charAt(t)); )
946
- ;
947
- return t;
948
- }
949
- var Dt = /^\s+/;
950
- function qt(r) {
951
- return r && r.slice(0, Pt(r) + 1).replace(Dt, "");
863
+ </div>`).join("")}
864
+ </div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [A], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
865
+ }
866
+ static get observedAttributes() {
867
+ return ["amount", "active"];
868
+ }
869
+ attributeChangedCallback(e, t, n) {
870
+ if (t !== n) switch (e) {
871
+ case "amount":
872
+ this.shadowRoot.innerHTML = this.template(parseInt(n) || 0, this.active);
873
+ break;
874
+ case "active": this.handleActive(t, n);
875
+ }
876
+ }
877
+ handleActive(e, t) {
878
+ e !== null && t !== void 0 && (this.$active?.removeAttribute("active"), this.shadowRoot.querySelector(`#seed-${t}`)?.setAttribute("active", ""));
879
+ }
880
+ get $active() {
881
+ return this.shadowRoot.querySelector("[active]");
882
+ }
883
+ get amount() {
884
+ return parseInt(this.getAttribute("amount") ?? "0") || 0;
885
+ }
886
+ get active() {
887
+ return parseInt(this.getAttribute("active") ?? "0") || 0;
888
+ }
889
+ };
890
+ customElements.get("px-appleseed") || customElements.define("px-appleseed", j);
891
+ //#endregion
892
+ //#region ../../../node_modules/lodash-es/isObject.js
893
+ function M(e) {
894
+ var t = typeof e;
895
+ return e != null && (t == "object" || t == "function");
952
896
  }
953
- var y = J.Symbol, Q = Object.prototype, Ot = Q.hasOwnProperty, Wt = Q.toString, f = y ? y.toStringTag : void 0;
954
- function Nt(r) {
955
- var t = Ot.call(r, f), e = r[f];
956
- try {
957
- r[f] = void 0;
958
- var i = !0;
959
- } catch {
960
- }
961
- var s = Wt.call(r);
962
- return i && (t ? r[f] = e : delete r[f]), s;
897
+ //#endregion
898
+ //#region ../../../node_modules/lodash-es/_freeGlobal.js
899
+ var ce = typeof global == "object" && global && global.Object === Object && global, le = typeof self == "object" && self && self.Object === Object && self, N = ce || le || Function("return this")(), P = function() {
900
+ return N.Date.now();
901
+ }, F = /\s/;
902
+ function I(e) {
903
+ for (var t = e.length; t-- && F.test(e.charAt(t)););
904
+ return t;
963
905
  }
964
- var Xt = Object.prototype, Ft = Xt.toString;
965
- function Bt(r) {
966
- return Ft.call(r);
906
+ //#endregion
907
+ //#region ../../../node_modules/lodash-es/_baseTrim.js
908
+ var L = /^\s+/;
909
+ function R(e) {
910
+ return e && e.slice(0, I(e) + 1).replace(L, "");
967
911
  }
968
- var Gt = "[object Null]", _t = "[object Undefined]", W = y ? y.toStringTag : void 0;
969
- function Zt(r) {
970
- return r == null ? r === void 0 ? _t : Gt : W && W in Object(r) ? Nt(r) : Bt(r);
912
+ //#endregion
913
+ //#region ../../../node_modules/lodash-es/_Symbol.js
914
+ var z = N.Symbol, B = Object.prototype, V = B.hasOwnProperty, H = B.toString, U = z ? z.toStringTag : void 0;
915
+ function W(e) {
916
+ var t = V.call(e, U), n = e[U];
917
+ try {
918
+ e[U] = void 0;
919
+ var r = !0;
920
+ } catch {}
921
+ var i = H.call(e);
922
+ return r && (t ? e[U] = n : delete e[U]), i;
971
923
  }
972
- function Ut(r) {
973
- return r != null && typeof r == "object";
924
+ //#endregion
925
+ //#region ../../../node_modules/lodash-es/_objectToString.js
926
+ var ue = Object.prototype.toString;
927
+ function de(e) {
928
+ return ue.call(e);
974
929
  }
975
- var Kt = "[object Symbol]";
976
- function Jt(r) {
977
- return typeof r == "symbol" || Ut(r) && Zt(r) == Kt;
930
+ //#endregion
931
+ //#region ../../../node_modules/lodash-es/_baseGetTag.js
932
+ var fe = "[object Null]", pe = "[object Undefined]", G = z ? z.toStringTag : void 0;
933
+ function me(e) {
934
+ return e == null ? e === void 0 ? pe : fe : G && G in Object(e) ? W(e) : de(e);
978
935
  }
979
- var N = NaN, Qt = /^[-+]0x[0-9a-f]+$/i, Yt = /^0b[01]+$/i, Vt = /^0o[0-7]+$/i, te = parseInt;
980
- function X(r) {
981
- if (typeof r == "number")
982
- return r;
983
- if (Jt(r))
984
- return N;
985
- if (k(r)) {
986
- var t = typeof r.valueOf == "function" ? r.valueOf() : r;
987
- r = k(t) ? t + "" : t;
988
- }
989
- if (typeof r != "string")
990
- return r === 0 ? r : +r;
991
- r = qt(r);
992
- var e = Yt.test(r);
993
- return e || Vt.test(r) ? te(r.slice(2), e ? 2 : 8) : Qt.test(r) ? N : +r;
936
+ //#endregion
937
+ //#region ../../../node_modules/lodash-es/isObjectLike.js
938
+ function he(e) {
939
+ return typeof e == "object" && !!e;
994
940
  }
995
- var ee = "Expected a function", ie = Math.max, re = Math.min;
996
- function se(r, t, e) {
997
- var i, s, n, l, a, c, b = 0, M = !1, g = !1, A = !0;
998
- if (typeof r != "function")
999
- throw new TypeError(ee);
1000
- t = X(t) || 0, k(e) && (M = !!e.leading, g = "maxWait" in e, n = g ? ie(X(e.maxWait) || 0, t) : n, A = "trailing" in e ? !!e.trailing : A);
1001
- function $(o) {
1002
- var u = i, v = s;
1003
- return i = s = void 0, b = o, l = r.apply(v, u), l;
1004
- }
1005
- function V(o) {
1006
- return b = o, a = setTimeout(x, t), M ? $(o) : l;
1007
- }
1008
- function tt(o) {
1009
- var u = o - c, v = o - b, D = t - u;
1010
- return g ? re(D, n - v) : D;
1011
- }
1012
- function H(o) {
1013
- var u = o - c, v = o - b;
1014
- return c === void 0 || u >= t || u < 0 || g && v >= n;
1015
- }
1016
- function x() {
1017
- var o = z();
1018
- if (H(o))
1019
- return P(o);
1020
- a = setTimeout(x, tt(o));
1021
- }
1022
- function P(o) {
1023
- return a = void 0, A && i ? $(o) : (i = s = void 0, l);
1024
- }
1025
- function et() {
1026
- a !== void 0 && clearTimeout(a), b = 0, i = c = s = a = void 0;
1027
- }
1028
- function it() {
1029
- return a === void 0 ? l : P(z());
1030
- }
1031
- function S() {
1032
- var o = z(), u = H(o);
1033
- if (i = arguments, s = this, c = o, u) {
1034
- if (a === void 0)
1035
- return V(c);
1036
- if (g)
1037
- return clearTimeout(a), a = setTimeout(x, t), $(c);
1038
- }
1039
- return a === void 0 && (a = setTimeout(x, t)), l;
1040
- }
1041
- return S.cancel = et, S.flush = it, S;
941
+ //#endregion
942
+ //#region ../../../node_modules/lodash-es/isSymbol.js
943
+ var ge = "[object Symbol]";
944
+ function _e(e) {
945
+ return typeof e == "symbol" || he(e) && me(e) == ge;
1042
946
  }
1043
- var oe = "Expected a function";
1044
- function ae(r, t, e) {
1045
- var i = !0, s = !0;
1046
- if (typeof r != "function")
1047
- throw new TypeError(oe);
1048
- return k(e) && (i = "leading" in e ? !!e.leading : i, s = "trailing" in e ? !!e.trailing : s), se(r, t, {
1049
- leading: i,
1050
- maxWait: t,
1051
- trailing: s
1052
- });
947
+ //#endregion
948
+ //#region ../../../node_modules/lodash-es/toNumber.js
949
+ var K = NaN, ve = /^[-+]0x[0-9a-f]+$/i, ye = /^0b[01]+$/i, be = /^0o[0-7]+$/i, q = parseInt;
950
+ function J(e) {
951
+ if (typeof e == "number") return e;
952
+ if (_e(e)) return K;
953
+ if (M(e)) {
954
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
955
+ e = M(t) ? t + "" : t;
956
+ }
957
+ if (typeof e != "string") return e === 0 ? e : +e;
958
+ e = R(e);
959
+ var n = ye.test(e);
960
+ return n || be.test(e) ? q(e.slice(2), n ? 2 : 8) : ve.test(e) ? K : +e;
1053
961
  }
1054
- const I = new CSSStyleSheet();
1055
- I.replaceSync(ct);
1056
- const ne = (r, t, e) => `:host([${r}${e ? `--${e}` : ""}='${t}']) .carousel`, le = "px-spacing", j = (r) => (t, e) => `calc(((100% - ${Math.max(parseInt(t), 2)} * ( var(--px-spacing-${r}-${e}))) / ${t}) - ( 64px / ${Math.max(parseInt(t), 2)}))`;
1057
- class ce extends HTMLElement {
1058
- constructor() {
1059
- super(), this.visibleItemsAttributeDelegate = new F(
1060
- this,
1061
- "visible-items",
1062
- j("s"),
1063
- "--px-carousel-min-width"
1064
- ), this.template = `<px-vstack gap="default">
1065
- <div class="carousel">
1066
- <slot></slot>
1067
- </div>
1068
- <px-hstack
1069
- id="appleseed-container"
1070
- justify-content="space-between"
1071
- justify-content--mobile="center"
1072
- >
1073
- <px-appleseed active="0"></px-appleseed>
1074
- <px-hstack id="button-icons" gap="default">
1075
- <px-button-icon disabled id="previous" aria-hidden="true">
1076
- <px-icon name="chevron_left" from="lavender"></px-icon>
1077
- </px-button-icon>
1078
- <px-button-icon id="next" aria-hidden="true">
1079
- <px-icon name="chevron_right" from="lavender"></px-icon>
1080
- </px-button-icon>
1081
- </px-hstack>
1082
- </px-hstack>
1083
- </px-vstack>`, this.onScroll = () => {
1084
- const t = this.$carousel.scrollLeft, e = this.$carousel.scrollWidth, i = this.$carousel.clientWidth;
1085
- let s = 0;
1086
- window.innerWidth < 768 ? s = Math.round(
1087
- t / (e - i) * (this.itemNumbers - 1)
1088
- ) : Math.ceil(t + i) + 10 >= e ? s = this.itemNumbers - 1 : s = Math.floor(t / this.$firstItem.offsetWidth + 1) - 1;
1089
- let n = s;
1090
- this.itemNumbers > 5 && (s > 2 && s < this.itemNumbers - 2 ? n = 2 : s === this.itemNumbers - 2 ? n = 3 : s === this.itemNumbers - 1 && (n = 4)), this.$appleseed.setAttribute("active", `${n}`), this.handleNextPrevious();
1091
- }, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
1092
- I,
1093
- lt(
1094
- "gap",
1095
- ne,
1096
- B,
1097
- le
1098
- )
1099
- ];
1100
- }
1101
- static get observedAttributes() {
1102
- return ["visible-items"];
1103
- }
1104
- attributeChangedCallback(t, e, i) {
1105
- if (e !== i)
1106
- switch (t) {
1107
- case "gap":
1108
- case "gap--mobile":
1109
- case "gap--tablet":
1110
- case "gap--desktop":
1111
- this.visibleItemsAttributeDelegate.attributeValue = j(i);
1112
- break;
1113
- default:
1114
- this.visibleItemsAttributeDelegate.attributeChangedCallback(
1115
- t,
1116
- e,
1117
- i
1118
- );
1119
- }
1120
- }
1121
- connectedCallback() {
1122
- this.visibleItemsAttributeDelegate.init("1"), this.visibleItemsAttributeDelegate.attributeValue = j(
1123
- this.getAttribute("gap") || "s"
1124
- ), requestAnimationFrame(() => {
1125
- this.handleAppleSeedDisplay();
1126
- }), this.$appleseed.setAttribute("amount", `${this.itemNumbers}`), this.$carousel.addEventListener("scroll", ae(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
1127
- this.$carousel.scrollLeft -= this.$carousel.clientWidth;
1128
- }), this.$next.addEventListener("click", () => {
1129
- this.$carousel.scrollLeft += this.$carousel.clientWidth;
1130
- }), window.addEventListener("resize", () => {
1131
- this.handleAppleSeedDisplay();
1132
- });
1133
- }
1134
- handleNextPrevious() {
1135
- const t = this.$carousel.scrollLeft, e = this.$carousel.scrollWidth, i = this.$carousel.clientWidth;
1136
- t === 0 ? this.$previous.setAttribute("disabled", "") : this.$previous.removeAttribute("disabled"), t + i >= e ? this.$next.setAttribute("disabled", "") : this.$next.removeAttribute("disabled");
1137
- }
1138
- handleAppleSeedDisplay() {
1139
- this.isScrolling() ? this.$appleseedContainer.style.display = "block" : this.$appleseedContainer.style.display = "none";
1140
- }
1141
- isScrolling() {
1142
- return this.$carousel.scrollWidth - this.$carousel.clientWidth > 10;
1143
- }
1144
- get $appleseedContainer() {
1145
- return this.shadowRoot.querySelector("#appleseed-container");
1146
- }
1147
- get $appleseed() {
1148
- return this.$appleseedContainer.querySelector("px-appleseed");
1149
- }
1150
- get $carousel() {
1151
- return this.shadowRoot.querySelector(".carousel");
1152
- }
1153
- get $previous() {
1154
- return this.shadowRoot.querySelector("#previous");
1155
- }
1156
- get $next() {
1157
- return this.shadowRoot.querySelector("#next");
1158
- }
1159
- get $firstItem() {
1160
- return this.querySelector("px-carousel-item");
1161
- }
1162
- get itemNumbers() {
1163
- return this.querySelectorAll("px-carousel-item").length;
1164
- }
962
+ //#endregion
963
+ //#region ../../../node_modules/lodash-es/debounce.js
964
+ var xe = "Expected a function", Se = Math.max, Ce = Math.min;
965
+ function we(e, t, n) {
966
+ var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
967
+ if (typeof e != "function") throw TypeError(xe);
968
+ t = J(t) || 0, M(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? Se(J(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
969
+ function p(t) {
970
+ var n = r, a = i;
971
+ return r = i = void 0, l = t, o = e.apply(a, n), o;
972
+ }
973
+ function m(e) {
974
+ return l = e, s = setTimeout(_, t), u ? p(e) : o;
975
+ }
976
+ function h(e) {
977
+ var n = e - c, r = e - l, i = t - n;
978
+ return d ? Ce(i, a - r) : i;
979
+ }
980
+ function g(e) {
981
+ var n = e - c, r = e - l;
982
+ return c === void 0 || n >= t || n < 0 || d && r >= a;
983
+ }
984
+ function _() {
985
+ var e = P();
986
+ if (g(e)) return v(e);
987
+ s = setTimeout(_, h(e));
988
+ }
989
+ function v(e) {
990
+ return s = void 0, f && r ? p(e) : (r = i = void 0, o);
991
+ }
992
+ function y() {
993
+ s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
994
+ }
995
+ function b() {
996
+ return s === void 0 ? o : v(P());
997
+ }
998
+ function x() {
999
+ var e = P(), n = g(e);
1000
+ if (r = arguments, i = this, c = e, n) {
1001
+ if (s === void 0) return m(c);
1002
+ if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
1003
+ }
1004
+ return s === void 0 && (s = setTimeout(_, t)), o;
1005
+ }
1006
+ return x.cancel = y, x.flush = b, x;
1165
1007
  }
1166
- customElements.get("px-carousel") || customElements.define("px-carousel", ce);
1167
- const Y = new CSSStyleSheet();
1168
- Y.replaceSync(dt);
1169
- class de extends HTMLElement {
1170
- constructor() {
1171
- super(), this.template = `
1172
- <div class="carousel-item">
1173
- <slot></slot>
1174
- </div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [I, Y];
1175
- }
1008
+ //#endregion
1009
+ //#region ../../../node_modules/lodash-es/throttle.js
1010
+ var Te = "Expected a function";
1011
+ function Ee(e, t, n) {
1012
+ var r = !0, i = !0;
1013
+ if (typeof e != "function") throw TypeError(Te);
1014
+ return M(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), we(e, t, {
1015
+ leading: r,
1016
+ maxWait: t,
1017
+ trailing: i
1018
+ });
1176
1019
  }
1177
- customElements.get("px-carousel-item") || customElements.define("px-carousel-item", de);
1178
- export {
1179
- It as AppleSeed,
1180
- ce as Carousel,
1181
- de as CarouselItem
1020
+ //#endregion
1021
+ //#region src/Carousel.ts
1022
+ var Y = new CSSStyleSheet();
1023
+ Y.replaceSync(d);
1024
+ var X = "px-carousel-item-connected", Z = class extends HTMLElement {
1025
+ constructor() {
1026
+ super(), this.template = "<px-vstack gap=\"default\">\n <div class=\"carousel\">\n <slot></slot>\n </div>\n <px-hstack\n id=\"appleseed-container\"\n justify-content=\"space-between\"\n justify-content--mobile=\"center\"\n >\n <px-appleseed active=\"0\"></px-appleseed>\n <px-hstack id=\"button-icons\" gap=\"default\">\n <px-button-icon disabled id=\"previous\" aria-hidden=\"true\">\n <px-icon name=\"chevron_left\" from=\"lavender\"></px-icon>\n </px-button-icon>\n <px-button-icon id=\"next\" aria-hidden=\"true\">\n <px-icon name=\"chevron_right\" from=\"lavender\"></px-icon>\n </px-button-icon>\n </px-hstack>\n </px-hstack>\n </px-vstack>", this.onScroll = () => {
1027
+ let e = this.$carousel.scrollLeft, t = this.$carousel.scrollWidth, n = this.$carousel.clientWidth, r = 0;
1028
+ r = window.innerWidth < 768 ? Math.round(e / (t - n) * (this.itemNumbers - 1)) : Math.ceil(e + n) + 10 >= t ? this.itemNumbers - 1 : Math.floor(e / this.$firstItem.offsetWidth + 1) - 1;
1029
+ let i = r;
1030
+ this.itemNumbers > 5 && (r > 2 && r < this.itemNumbers - 2 ? i = 2 : r === this.itemNumbers - 2 ? i = 3 : r === this.itemNumbers - 1 && (i = 4)), this.$appleseed.setAttribute("active", `${i}`), this.handleNextPrevious();
1031
+ }, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Y];
1032
+ }
1033
+ connectedCallback() {
1034
+ this.addEventListener(X, () => {
1035
+ this.#e();
1036
+ }), this.#e(), this.$carousel.addEventListener("scroll", Ee(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
1037
+ this.$carousel.scrollLeft -= this.$carousel.clientWidth;
1038
+ }), this.$next.addEventListener("click", () => {
1039
+ this.$carousel.scrollLeft += this.$carousel.clientWidth;
1040
+ }), window.addEventListener("resize", () => {
1041
+ this.handleAppleSeedDisplay();
1042
+ });
1043
+ }
1044
+ #e() {
1045
+ this.$appleseed.setAttribute("amount", `${this.itemNumbers}`), requestAnimationFrame(() => {
1046
+ this.handleAppleSeedDisplay();
1047
+ });
1048
+ }
1049
+ handleNextPrevious() {
1050
+ let e = this.$carousel.scrollLeft, t = this.$carousel.scrollWidth, n = this.$carousel.clientWidth;
1051
+ e === 0 ? this.$previous.setAttribute("disabled", "") : this.$previous.removeAttribute("disabled"), e + n >= t ? this.$next.setAttribute("disabled", "") : this.$next.removeAttribute("disabled");
1052
+ }
1053
+ handleAppleSeedDisplay() {
1054
+ this.isScrolling() ? this.$appleseedContainer.style.display = "block" : this.$appleseedContainer.style.display = "none";
1055
+ }
1056
+ isScrolling() {
1057
+ return this.$carousel.scrollWidth - this.$carousel.clientWidth > 10;
1058
+ }
1059
+ get $appleseedContainer() {
1060
+ return this.shadowRoot.querySelector("#appleseed-container");
1061
+ }
1062
+ get $appleseed() {
1063
+ return this.$appleseedContainer.querySelector("px-appleseed");
1064
+ }
1065
+ get $carousel() {
1066
+ return this.shadowRoot.querySelector(".carousel");
1067
+ }
1068
+ get $previous() {
1069
+ return this.shadowRoot.querySelector("#previous");
1070
+ }
1071
+ get $next() {
1072
+ return this.shadowRoot.querySelector("#next");
1073
+ }
1074
+ get $firstItem() {
1075
+ return this.querySelector("px-carousel-item");
1076
+ }
1077
+ get itemNumbers() {
1078
+ return this.querySelectorAll("px-carousel-item").length;
1079
+ }
1080
+ };
1081
+ customElements.get("px-carousel") || customElements.define("px-carousel", Z);
1082
+ var Q = new CSSStyleSheet();
1083
+ Q.replaceSync(f);
1084
+ var $ = class extends HTMLElement {
1085
+ constructor() {
1086
+ super(), this.template = "\n <div class=\"carousel-item\">\n <slot></slot>\n </div>", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Q];
1087
+ }
1088
+ connectedCallback() {
1089
+ this.dispatchEvent(new CustomEvent(X, {
1090
+ bubbles: !0,
1091
+ composed: !0
1092
+ }));
1093
+ }
1182
1094
  };
1095
+ customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
1096
+ //#endregion
1097
+ export { j as AppleSeed, X as CAROUSEL_ITEM_CONNECTED_EVENT, Z as Carousel, $ as CarouselItem };