@proximus/lavender-carousel 2.0.0-alpha.17 → 2.0.0-alpha.170

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