@proximus/lavender-input 1.0.0-alpha.18 → 1.0.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,682 @@
1
+ const x = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-value)}:host([order]){order:var(--order-value)}:host([hidden]){display:none}::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){:host([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]){order:var(--order--mobile-value)!important}::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){:host([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]){order:var(--order--tablet-value)!important}::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px) and (max-width: 1440px){:host([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 1441px){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}";
2
+ function m(a) {
3
+ const e = document.createElement(a), t = Object.getPrototypeOf(e);
4
+ return Object.getOwnPropertyNames(t);
5
+ }
6
+ const v = new CSSStyleSheet();
7
+ v.replaceSync(x);
8
+ class p extends HTMLElement {
9
+ static get observedAttributes() {
10
+ return [
11
+ "grow",
12
+ "grow--mobile",
13
+ "grow--tablet",
14
+ "grow--laptop",
15
+ "grow--desktop",
16
+ "shrink",
17
+ "shrink--mobile",
18
+ "shrink--tablet",
19
+ "shrink--laptop",
20
+ "shrink--desktop",
21
+ "basis",
22
+ "basis--mobile",
23
+ "basis--tablet",
24
+ "basis--laptop",
25
+ "basis--desktop",
26
+ "align-self",
27
+ "align-self--mobile",
28
+ "align-self--tablet",
29
+ "align-self--laptop",
30
+ "align-self--desktop",
31
+ "justify-self",
32
+ "justify-self--mobile",
33
+ "justify-self--tablet",
34
+ "justify-self--laptop",
35
+ "justify-self--desktop",
36
+ "hidden",
37
+ "hidden--mobile",
38
+ "hidden--tablet",
39
+ "hidden--laptop",
40
+ "hidden--desktop",
41
+ "shown--sr",
42
+ "col-span",
43
+ "col-span--mobile",
44
+ "col-span--tablet",
45
+ "col-span--laptop",
46
+ "col-span--desktop",
47
+ "order",
48
+ "order--mobile",
49
+ "order--tablet",
50
+ "order--laptop",
51
+ "order--desktop"
52
+ ];
53
+ }
54
+ constructor(...e) {
55
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
56
+ v,
57
+ ...e
58
+ ];
59
+ }
60
+ attributeChangedCallback(e, t, s) {
61
+ if (p.observedAttributes.indexOf(e) !== -1)
62
+ switch (e) {
63
+ case "grow":
64
+ case "grow--mobile":
65
+ case "grow--tablet":
66
+ case "grow--laptop":
67
+ case "grow--desktop":
68
+ case "shrink":
69
+ case "shrink--mobile":
70
+ case "shrink--tablet":
71
+ case "shrink--laptop":
72
+ case "shrink--desktop":
73
+ case "basis":
74
+ case "basis--mobile":
75
+ case "basis--tablet":
76
+ case "basis--laptop":
77
+ case "basis--desktop":
78
+ this.style.setProperty(`--${e}-value`, s);
79
+ break;
80
+ case "align-self":
81
+ case "align-self--mobile":
82
+ case "align-self--tablet":
83
+ case "align-self--laptop":
84
+ case "align-self--desktop":
85
+ this.updateProperties(
86
+ e,
87
+ t,
88
+ s,
89
+ this.isGrid ? A : C
90
+ );
91
+ break;
92
+ case "justify-self":
93
+ case "justify-self--mobile":
94
+ case "justify-self--tablet":
95
+ case "justify-self--laptop":
96
+ case "justify-self--desktop":
97
+ this.updateProperties(
98
+ e,
99
+ t,
100
+ s,
101
+ S
102
+ );
103
+ break;
104
+ case "col-span":
105
+ case "col-span--mobile":
106
+ case "col-span--tablet":
107
+ case "col-span--laptop":
108
+ case "col-span--desktop":
109
+ this.updateProperties(e, t, s, $);
110
+ break;
111
+ case "order":
112
+ case "order--mobile":
113
+ case "order--tablet":
114
+ case "order--laptop":
115
+ case "order--desktop":
116
+ this.updateProperties(e, t, s, D);
117
+ break;
118
+ }
119
+ }
120
+ updateProperties(e, t, s, b) {
121
+ if (b && !this.checkName(b, s)) {
122
+ console.error(`Bad ${e} value for`, this.$el);
123
+ return;
124
+ }
125
+ const g = e.indexOf("--") > -1, i = g ? e.split("--")[0] : e;
126
+ if (!g)
127
+ this.style.setProperty(
128
+ `--${i}-value`,
129
+ t
130
+ ), this.style.setProperty(
131
+ `--${i}-value`,
132
+ s
133
+ );
134
+ else {
135
+ const y = e.split("--")[1];
136
+ this.style.setProperty(
137
+ `--${i}--${y}-value`,
138
+ t
139
+ ), this.style.setProperty(
140
+ `--${i}--${y}-value`,
141
+ s
142
+ );
143
+ }
144
+ }
145
+ updateStyle(e, t, s) {
146
+ s !== null && s !== "" && s !== "default" && this.style.setProperty(
147
+ `--${e}--${t}-value`,
148
+ s
149
+ );
150
+ }
151
+ checkName(e, t) {
152
+ return e.includes(t);
153
+ }
154
+ get $el() {
155
+ return this;
156
+ }
157
+ get $parentElementName() {
158
+ var e;
159
+ return (e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase();
160
+ }
161
+ get isGrid() {
162
+ return this.$parentElementName === "px-grid";
163
+ }
164
+ get isStack() {
165
+ return this.$parentElementName === "px-stack";
166
+ }
167
+ get grow() {
168
+ return this.getAttribute("grow");
169
+ }
170
+ set grow(e) {
171
+ this.setAttribute("grow", e);
172
+ }
173
+ get growMobile() {
174
+ return this.getAttribute("grow--mobile");
175
+ }
176
+ set growMobile(e) {
177
+ this.setAttribute("grow--mobile", e);
178
+ }
179
+ get growTablet() {
180
+ return this.getAttribute("grow--tablet");
181
+ }
182
+ set growTablet(e) {
183
+ this.setAttribute("grow--tablet", e);
184
+ }
185
+ get growLaptop() {
186
+ return this.getAttribute("grow--laptop");
187
+ }
188
+ set growLaptop(e) {
189
+ this.setAttribute("grow--laptop", e);
190
+ }
191
+ get growDesktop() {
192
+ return this.getAttribute("grow--desktop");
193
+ }
194
+ set growDesktop(e) {
195
+ this.setAttribute("grow--desktop", e);
196
+ }
197
+ get shrink() {
198
+ return this.getAttribute("shrink");
199
+ }
200
+ set shrink(e) {
201
+ this.setAttribute("shrink", e);
202
+ }
203
+ get shrinkMobile() {
204
+ return this.getAttribute("shrink--mobile");
205
+ }
206
+ set shrinkMobile(e) {
207
+ this.setAttribute("shrink--mobile", e);
208
+ }
209
+ get shrinkTablet() {
210
+ return this.getAttribute("shrink--tablet");
211
+ }
212
+ set shrinkTablet(e) {
213
+ this.setAttribute("shrink--tablet", e);
214
+ }
215
+ get shrinkLaptop() {
216
+ return this.getAttribute("shrink--laptop");
217
+ }
218
+ set shrinkLaptop(e) {
219
+ this.setAttribute("shrink--laptop", e);
220
+ }
221
+ get shrinkDesktop() {
222
+ return this.getAttribute("shrink--desktop");
223
+ }
224
+ set shrinkDesktop(e) {
225
+ this.setAttribute("shrink--desktop", e);
226
+ }
227
+ get basis() {
228
+ return this.getAttribute("basis");
229
+ }
230
+ set basis(e) {
231
+ this.setAttribute("basis", e);
232
+ }
233
+ get basisMobile() {
234
+ return this.getAttribute("basis--mobile");
235
+ }
236
+ set basisMobile(e) {
237
+ this.setAttribute("basis--mobile", e);
238
+ }
239
+ get basisTablet() {
240
+ return this.getAttribute("basis--tablet");
241
+ }
242
+ set basisTablet(e) {
243
+ this.setAttribute("basis--tablet", e);
244
+ }
245
+ get basisLaptop() {
246
+ return this.getAttribute("basis--laptop");
247
+ }
248
+ set basisLaptop(e) {
249
+ this.setAttribute("basis--laptop", e);
250
+ }
251
+ get basisDesktop() {
252
+ return this.getAttribute("basis--desktop");
253
+ }
254
+ set basisDesktop(e) {
255
+ this.setAttribute("basis--desktop", e);
256
+ }
257
+ get alignSelf() {
258
+ return this.getAttribute("align-self");
259
+ }
260
+ set alignSelf(e) {
261
+ this.setAttribute("align-self", e);
262
+ }
263
+ get alignSelfMobile() {
264
+ return this.getAttribute("align-self--mobile");
265
+ }
266
+ set alignSelfMobile(e) {
267
+ this.setAttribute("align-self--mobile", e);
268
+ }
269
+ get alignSelfTablet() {
270
+ return this.getAttribute("align-self--tablet");
271
+ }
272
+ set alignSelfTablet(e) {
273
+ this.setAttribute("align-self--tablet", e);
274
+ }
275
+ get alignSelfLaptop() {
276
+ return this.getAttribute("align-self--laptop");
277
+ }
278
+ set alignSelfLaptop(e) {
279
+ this.setAttribute("align-self--laptop", e);
280
+ }
281
+ get alignSelfDesktop() {
282
+ return this.getAttribute("align-self--desktop");
283
+ }
284
+ set alignSelfDesktop(e) {
285
+ this.setAttribute("align-self--desktop", e);
286
+ }
287
+ get justifySelf() {
288
+ return this.getAttribute("justify-self");
289
+ }
290
+ set justifySelf(e) {
291
+ this.setAttribute("justify-self", e);
292
+ }
293
+ get justifySelfMobile() {
294
+ return this.getAttribute("justify-self--mobile");
295
+ }
296
+ set justifySelfMobile(e) {
297
+ this.setAttribute("justify-self--mobile", e);
298
+ }
299
+ get justifySelfTablet() {
300
+ return this.getAttribute("justify-self--tablet");
301
+ }
302
+ set justifySelfTablet(e) {
303
+ this.setAttribute("justify-self--tablet", e);
304
+ }
305
+ get justifySelfLaptop() {
306
+ return this.getAttribute("justify-self--laptop");
307
+ }
308
+ set justifySelfLaptop(e) {
309
+ this.setAttribute("justify-self--laptop", e);
310
+ }
311
+ get justifySelfDesktop() {
312
+ return this.getAttribute("justify-self--desktop");
313
+ }
314
+ set justifySelfDesktop(e) {
315
+ this.setAttribute("justify-self--desktop", e);
316
+ }
317
+ get hiddenMobile() {
318
+ return this.getAttribute("hidden--mobile");
319
+ }
320
+ set hiddenMobile(e) {
321
+ this.setAttribute("hidden--mobile", e);
322
+ }
323
+ get hiddenTablet() {
324
+ return this.getAttribute("hidden--tablet");
325
+ }
326
+ set hiddenTablet(e) {
327
+ this.setAttribute("hidden--tablet", e);
328
+ }
329
+ get hiddenLaptop() {
330
+ return this.getAttribute("hidden--laptop");
331
+ }
332
+ set hiddenLaptop(e) {
333
+ this.setAttribute("hidden--laptop", e);
334
+ }
335
+ get hiddenDesktop() {
336
+ return this.getAttribute("hidden--desktop");
337
+ }
338
+ set hiddenDesktop(e) {
339
+ this.setAttribute("hidden--desktop", e);
340
+ }
341
+ get colSpan() {
342
+ return this.getAttribute("col-span");
343
+ }
344
+ set colSpan(e) {
345
+ this.setAttribute("col-span", e);
346
+ }
347
+ get colSpanMobile() {
348
+ return this.getAttribute("col-span--mobile");
349
+ }
350
+ set colSpanMobile(e) {
351
+ this.setAttribute("col-span--mobile", e);
352
+ }
353
+ get colSpanTablet() {
354
+ return this.getAttribute("col-span--tablet");
355
+ }
356
+ set colSpanTablet(e) {
357
+ this.setAttribute("col-span--tablet", e);
358
+ }
359
+ get colSpanLaptop() {
360
+ return this.getAttribute("col-span--laptop");
361
+ }
362
+ set colSpanLaptop(e) {
363
+ this.setAttribute("col-span--laptop", e);
364
+ }
365
+ get colSpanDesktop() {
366
+ return this.getAttribute("col-span--desktop");
367
+ }
368
+ set colSpanDesktop(e) {
369
+ this.setAttribute("col-span--desktop", e);
370
+ }
371
+ get order() {
372
+ return this.getAttribute("order");
373
+ }
374
+ set order(e) {
375
+ this.setAttribute("order", e);
376
+ }
377
+ get orderMobile() {
378
+ return this.getAttribute("order--mobile");
379
+ }
380
+ set orderMobile(e) {
381
+ this.setAttribute("order--mobile", e);
382
+ }
383
+ get orderTablet() {
384
+ return this.getAttribute("order--tablet");
385
+ }
386
+ set orderTablet(e) {
387
+ this.setAttribute("order--tablet", e);
388
+ }
389
+ get orderLaptop() {
390
+ return this.getAttribute("order--laptop");
391
+ }
392
+ set orderLaptop(e) {
393
+ this.setAttribute("order--laptop", e);
394
+ }
395
+ get orderDesktop() {
396
+ return this.getAttribute("order--desktop");
397
+ }
398
+ set orderDesktop(e) {
399
+ this.setAttribute("order--desktop", e);
400
+ }
401
+ }
402
+ class w extends p {
403
+ static get observedAttributes() {
404
+ return [
405
+ ...super.observedAttributes,
406
+ ...m(this.nativeName)
407
+ ];
408
+ }
409
+ attributeChangedCallback(e, t, s) {
410
+ super.attributeChangedCallback(e, t, s), s === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, s);
411
+ }
412
+ constructor(...e) {
413
+ super(...e), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
414
+ }
415
+ connectedCallback() {
416
+ var e;
417
+ for (const t of m(this.nativeName))
418
+ if (t !== "constructor")
419
+ try {
420
+ Object.defineProperty(this, t, {
421
+ get() {
422
+ return this.$el[t];
423
+ },
424
+ set(s) {
425
+ this.$el[t] !== s && (this.$el[t] = s);
426
+ }
427
+ });
428
+ } catch (s) {
429
+ console.warn(`Could not create property ${t} for`, this.$el, s);
430
+ }
431
+ if (this.isGrid || this.isStack) {
432
+ const t = (e = this.parentElement) == null ? void 0 : e.getAttribute("direction");
433
+ this.$el.style.display = "block", (this.isGrid || this.isStack && t === "row") && (this.$el.style.height = "100%");
434
+ }
435
+ }
436
+ get $el() {
437
+ return this.shadowRoot.querySelector(this.nativeName);
438
+ }
439
+ }
440
+ const C = [
441
+ "",
442
+ "default",
443
+ "auto",
444
+ "flex-start",
445
+ "flex-end",
446
+ "center",
447
+ "baseline",
448
+ "stretch"
449
+ ], A = [
450
+ "",
451
+ "default",
452
+ "start",
453
+ "end",
454
+ "center",
455
+ "stretch"
456
+ ], S = [
457
+ "",
458
+ "default",
459
+ "start",
460
+ "end",
461
+ "center",
462
+ "stretch"
463
+ ], $ = [
464
+ "",
465
+ "1",
466
+ "2",
467
+ "3",
468
+ "4",
469
+ "5",
470
+ "6",
471
+ "7",
472
+ "8",
473
+ "9",
474
+ "10",
475
+ "11",
476
+ "12"
477
+ ], D = [
478
+ "",
479
+ "1",
480
+ "2",
481
+ "3",
482
+ "4",
483
+ "5",
484
+ "6",
485
+ "7",
486
+ "8",
487
+ "9",
488
+ "10",
489
+ "11",
490
+ "12"
491
+ ], E = `input:not([type=file]),textarea,select,#input-file-container{margin:0;outline:0;vertical-align:baseline;align-items:center;gap:var(--px-spacing-default-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);height:44px;background:var(--px-color-background-container-default-default) no-repeat;background-position:center right var(--px-padding-s-mobile);box-shadow:var(--px-color-border-neutral-default) 0 0 0 var(--px-size-border-m) inset;border:none;border-radius:var(--px-radius-main);color:var(--px-color-text-neutral-default);font-family:var(--px-font-family);font-size:var(--px-text-size-label-l-mobile);font-weight:var(--px-font-weight-body);text-align:left;box-sizing:border-box;--icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23B30000;%7D%3C/style%3E%3C/defs%3E%3Cg id='forms-error'%3E%3Cpath id='Error' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0ZM7.42,4.65a1.08,1.08,0,1,1,2.16,0V8.79a1.08,1.08,0,0,1-2.16,0Zm1.93,8.44a1.2,1.2,0,0,1-1.7-1.69,1.15,1.15,0,0,1,.85-.35,1.11,1.11,0,0,1,.84.35h0A1.21,1.21,0,0,1,9.35,13.09Z'/%3E%3C/g%3E%3C/svg%3E");--icon-success: url("data:image/svg+xml,%3Csvg id='forms-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23008000;%7D%3C/style%3E%3C/defs%3E%3Cpath id='Success' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0Zm3.69,7.08-4.29,4a.81.81,0,0,1-.56.22.84.84,0,0,1-.59-.24L4.67,9A.81.81,0,0,1,5.81,7.85L7.35,9.4,11.1,5.91a.8.8,0,0,1,1.09,1.17Z'/%3E%3C/svg%3E");--icon-search: url(data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.6451%2016.6649L12.5811%2011.7844C13.4371%2010.7503%2013.9122%209.46601%2013.9282%208.10498C13.9463%206.53112%2013.351%205.04391%2012.251%203.91824C11.1511%202.79211%209.67878%202.16202%208.10492%202.14352C8.081%202.14352%208.05753%202.14307%208.03406%202.14307C6.48637%202.14307%205.02715%202.7375%203.9182%203.82074C2.79208%204.92069%202.16199%206.393%202.14349%207.96687C2.12498%209.54118%202.72031%2011.0279%203.82026%2012.1536C4.97344%2013.3339%206.50442%2013.9261%208.03677%2013.9261C9.28408%2013.9261%2010.5303%2013.528%2011.5758%2012.7405L16.6828%2017.6633C16.8173%2017.7928%2016.9906%2017.8574%2017.164%2017.8574C17.3454%2017.8574%2017.5273%2017.7865%2017.6632%2017.6452C17.929%2017.3694%2017.9209%2016.9307%2017.6451%2016.6649ZM11.1849%2011.2595C10.3237%2012.1008%209.18546%2012.5707%207.98305%2012.5418C6.7793%2012.5278%205.65317%2012.0457%204.8123%2011.185C3.97101%2010.3238%203.5156%209.18687%203.53004%207.98312C3.54403%206.77981%204.02608%205.65369%204.88678%204.81282C5.73487%203.98413%206.85106%203.52962%208.03451%203.52962C8.05256%203.52962%208.07062%203.53007%208.08867%203.53007C9.29198%203.54406%2010.4181%204.02611%2011.2589%204.88684C12.1003%205.74802%2012.5557%206.88498%2012.5417%208.08873C12.5277%209.29249%2012.0456%2010.4186%2011.1849%2011.2595Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-cancel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -60 30 30'%3E%3Cpath d='M22.4707,-50.0977l-5.09766,5.09766l5.09766,5.09766c0.332031,0.332031 0.498047,0.732421 0.498047,1.20117c0,0.46875 -0.166016,0.86914 -0.498047,1.20117c-0.3125,0.332031 -0.708007,0.498047 -1.18652,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047l-5.09766,-5.09766l-5.09766,5.09766c-0.332031,0.332031 -0.737305,0.498047 -1.21582,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.86914 0.498047,-1.20117l5.09766,-5.09766l-5.09766,-5.09766c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.859377 0.498047,-1.17188c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.883789,0.166016 1.21582,0.498047l5.09766,5.09766l5.09766,-5.09766c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.874022,0.166016 1.18652,0.498047c0.175781,0.15625 0.302734,0.336914 0.380859,0.541992c0.0781253,0.205078 0.117188,0.415039 0.117188,0.629883c0,0.234375 -0.0390627,0.454101 -0.117188,0.65918c-0.0781253,0.205078 -0.205078,0.385742 -0.380859,0.541992Zm-7.4707,-9.90234c-2.07031,0 -4.01367,0.390627 -5.83008,1.17188c-1.81641,0.80078 -3.40332,1.87988 -4.76074,3.2373c-1.35742,1.35742 -2.43652,2.94433 -3.2373,4.76074c-0.781253,1.81641 -1.17188,3.75977 -1.17188,5.83008c0,2.07031 0.390627,4.01367 1.17188,5.83008c0.80078,1.81641 1.87988,3.40332 3.2373,4.76074c1.35742,1.35742 2.94433,2.43652 4.76074,3.2373c1.81641,0.781253 3.75977,1.17188 5.83008,1.17188c2.07031,0 4.01367,-0.390627 5.83008,-1.17188c1.81641,-0.80078 3.40332,-1.87988 4.76074,-3.2373c1.35742,-1.35742 2.43652,-2.94433 3.2373,-4.76074c0.781253,-1.81641 1.17188,-3.75977 1.17188,-5.83008c0,-2.07031 -0.390627,-4.01367 -1.17188,-5.83008c-0.80078,-1.81641 -1.87988,-3.40332 -3.2373,-4.76074c-1.35742,-1.35742 -2.94433,-2.43652 -4.76074,-3.2373c-1.81641,-0.781253 -3.75977,-1.17188 -5.83008,-1.17188Z' fill='%235c2d91'/%3E%3C/svg%3E");--icon-calendar: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M14.7369%201.68408H12.779V0.42102C12.779%200.188549%2012.5904%200%2012.358%200C12.1255%200%2011.9369%200.188549%2011.9369%200.42102V1.68408H9.92439V0.42102C9.92439%200.188549%209.73584%200%209.50337%200C9.2709%200%209.08235%200.188549%209.08235%200.42102V1.68408H7.0698V0.42102C7.0698%200.188549%206.88126%200%206.64878%200C6.41631%200%206.22777%200.188549%206.22777%200.42102V1.68408H4.21082V0.42102C4.21051%200.188549%204.02196%200%203.78949%200C3.55702%200%203.36847%200.188549%203.36847%200.42102V1.68408H2.52643C1.13098%201.68408%200%202.81537%200%204.21051V14.7369C0%2015.4344%200.565647%2016%201.26306%2016H13.4736C14.8687%2016%2016%2014.869%2016%2013.4736V2.94745C16%202.24973%2015.4344%201.68408%2014.7369%201.68408ZM15.158%2013.4736C15.158%2014.4038%2014.4041%2015.1576%2013.4739%2015.1576H1.26306C1.03059%2015.1576%200.842039%2014.9691%200.842039%2014.7366V6.73663H15.158V13.4736ZM15.158%205.89459H0.842039V4.21051C0.842039%203.28031%201.59592%202.52643%202.52612%202.52643H3.36816V3.78949C3.36816%204.02196%203.55671%204.21051%203.78918%204.21051C4.02165%204.21051%204.2102%204.02196%204.2102%203.78949V2.52643H6.22714V3.78949C6.22714%204.02196%206.41569%204.21051%206.64816%204.21051C6.88063%204.21051%207.06918%204.02196%207.06918%203.78949V2.52643H9.08173V3.78949C9.08173%204.02196%209.27028%204.21051%209.50275%204.21051C9.73522%204.21051%209.92377%204.02196%209.92377%203.78949V2.52643H11.9363V3.78949C11.9363%204.02196%2012.1249%204.21051%2012.3573%204.21051C12.5898%204.21051%2012.7784%204.02196%2012.7784%203.78949V2.52643H14.7363C14.9688%202.52643%2015.1573%202.71498%2015.1573%202.94745V5.89459H15.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-clock: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8%200C3.5818%200%200%203.5818%200%208C0%2012.4182%203.5818%2016%208%2016C12.4182%2016%2016%2012.4182%2016%208C16%203.5818%2012.4182%200%208%200ZM8%2015.158C4.04675%2015.158%200.842039%2011.9533%200.842039%208C0.842039%204.04675%204.04675%200.842039%208%200.842039C11.9533%200.842039%2015.158%204.04675%2015.158%208C15.158%2011.9533%2011.9533%2015.158%208%2015.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M7.99929%202.81256C7.76682%202.81256%207.57827%203.00111%207.57827%203.23358V7.76818C7.57607%207.89963%207.46972%208.00599%207.33827%208.00818H2.78235C2.54988%208.00818%202.36133%208.19673%202.36133%208.4292C2.36133%208.66167%202.54988%208.85022%202.78235%208.85022H7.32133C7.92117%208.85713%208.41309%208.3765%208.42031%207.77665C8.42031%207.77383%208.42031%207.771%208.42031%207.76818V3.23358C8.42031%203.00111%208.23176%202.81256%207.99929%202.81256Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E%0A);--icon-select: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M4%206.6665L8%2010.6665L12%206.6665%22%20stroke%3D%22%235C2D91%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E);--icon-upload: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M18.7284%2020H6.54327C5.14071%2020%204%2018.816%204%2017.3603V16.102C4%2015.8589%204.18949%2015.6622%204.42374%2015.6622C4.65799%2015.6622%204.84748%2015.8589%204.84748%2016.102V17.3603C4.84748%2018.3311%205.60795%2019.1204%206.54327%2019.1204H18.7279C18.9618%2019.1204%2019.1517%2018.9233%2019.1517%2018.6806V16.0738C19.1517%2015.8307%2019.3412%2015.634%2019.5754%2015.634C19.8097%2015.634%2019.9992%2015.8307%2019.9992%2016.0738V18.6806C20%2019.4074%2019.4294%2020%2018.7284%2020Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M12.4435%204.29306C12.0671%203.90231%2011.4576%203.90231%2011.0811%204.29306L11.0774%204.29697L7.39173%208.122C7.01526%208.51275%207.01526%209.14534%207.39173%209.53609C7.7682%209.92684%208.37766%209.92684%208.75413%209.53609L10.7929%207.41951H10.7967V15.0414C10.7967%2015.4799%2011.1397%2015.8354%2011.5622%2015.8354H11.9579C12.3808%2015.8354%2012.7234%2015.4799%2012.7234%2015.0414V7.41821H12.7292L14.7659%209.53218C15.1424%209.92293%2015.7523%209.92293%2016.1284%209.53218C16.5048%209.14186%2016.5048%208.50884%2016.1284%208.11853L12.4435%204.29306Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--cancel-icon-width: 3em;--cancel-icon-height: 1em;--search-icon-datalist-width: 2em;--search-icon-focus-width: var(--search-icon-datalist-width)}@media screen and (min-width: 768px){input:not([type=file]),textarea,select,#input-file-container{gap:var(--px-spacing-default-desktop);padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);font-size:var(--px-text-size-label-l-desktop);background-position:center right var(--px-padding-s-desktop)}}@media screen and (min-width: 1024px){input:not([type=file]),textarea,select,#input-file-container{gap:var(--px-spacing-default-desktop);padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);font-size:var(--px-text-size-label-l-desktop);background-position:center right var(--px-padding-s-desktop)}}input:not([type=file]).extended,textarea.extended,select.extended,#input-file-container.extended{width:100%}input:not([type=file]):focus,input:not([type=file]):hover,input:not([type=file]).error:focus,input:not([type=file]).error:hover,input:not([type=file]).success:focus,input:not([type=file]).success:hover,textarea:focus,textarea:hover,textarea.error:focus,textarea.error:hover,textarea.success:focus,textarea.success:hover,select:focus,select:hover,select.error:focus,select.error:hover,select.success:focus,select.success:hover,#input-file-container:focus,#input-file-container:hover,#input-file-container.error:focus,#input-file-container.error:hover,#input-file-container.success:focus,#input-file-container.success:hover{box-shadow:var(--px-color-border-state-hover-default) 0 0 0 var(--px-size-border-l) inset;outline:1px solid var(--px-color-border-state-hover-default)}input:not([type=file]):active,textarea:active,select:active,#input-file-container:active{box-shadow:var(--px-color-border-state-hover-default) 0 0 0 var(--px-size-border-l) inset}input:not([type=file]):disabled,textarea:disabled,select:disabled,#input-file-container:disabled{box-shadow:var(--px-color-border-neutral-default) 0 0 0 0 inset;background:transparent;padding:0;font-weight:var(--px-font-weight-title);text-align:left;height:24px}input:not([type=file]).error,textarea.error,select.error,#input-file-container.error{box-shadow:var(--px-color-border-purpose-error-default) 0 0 0 var(--px-size-border-m) inset;background-repeat:no-repeat;background-image:var(--icon-error)}input:not([type=file]).success,textarea.success,select.success,#input-file-container.success{box-shadow:var(--px-color-border-purpose-success-default) 0 0 0 var(--px-size-border-m) inset;background-image:var(--icon-success)}input:not([type=file])[type=date].success,input:not([type=file])[type=date].error,input:not([type=file])[type=time].success,input:not([type=file])[type=time].error,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].success,input:not([type=file])[type=month].error,input:not([type=file])[type=week].success,input:not([type=file])[type=week].error,input:not([type=file])[type=search].success,input:not([type=file])[type=search].error,input:not([type=file]):is(select).success,input:not([type=file]):is(select).error,input:not([type=file])#input-file-container.success,input:not([type=file])#input-file-container.error,textarea[type=date].success,textarea[type=date].error,textarea[type=time].success,textarea[type=time].error,textarea[type=datetime-local].success,textarea[type=datetime-local].error,textarea[type=month].success,textarea[type=month].error,textarea[type=week].success,textarea[type=week].error,textarea[type=search].success,textarea[type=search].error,textarea:is(select).success,textarea:is(select).error,textarea#input-file-container.success,textarea#input-file-container.error,select[type=date].success,select[type=date].error,select[type=time].success,select[type=time].error,select[type=datetime-local].success,select[type=datetime-local].error,select[type=month].success,select[type=month].error,select[type=week].success,select[type=week].error,select[type=search].success,select[type=search].error,select:is(select).success,select:is(select).error,select#input-file-container.success,select#input-file-container.error,#input-file-container[type=date].success,#input-file-container[type=date].error,#input-file-container[type=time].success,#input-file-container[type=time].error,#input-file-container[type=datetime-local].success,#input-file-container[type=datetime-local].error,#input-file-container[type=month].success,#input-file-container[type=month].error,#input-file-container[type=week].success,#input-file-container[type=week].error,#input-file-container[type=search].success,#input-file-container[type=search].error,#input-file-container:is(select).success,#input-file-container:is(select).error,#input-file-container#input-file-container.success,#input-file-container#input-file-container.error{background-position:center right 2.7em,center right 1em}input:not([type=file])[type=time],textarea[type=time],select[type=time],#input-file-container[type=time]{background-image:var(--icon-clock)}input:not([type=file])[type=time].success,textarea[type=time].success,select[type=time].success,#input-file-container[type=time].success{background-image:var(--icon-success),var(--icon-clock)}input:not([type=file])[type=time].error,textarea[type=time].error,select[type=time].error,#input-file-container[type=time].error{background-image:var(--icon-error),var(--icon-clock)}input:not([type=file])[type=date],input:not([type=file])[type=datetime-local],input:not([type=file])[type=month],input:not([type=file])[type=week],textarea[type=date],textarea[type=datetime-local],textarea[type=month],textarea[type=week],select[type=date],select[type=datetime-local],select[type=month],select[type=week],#input-file-container[type=date],#input-file-container[type=datetime-local],#input-file-container[type=month],#input-file-container[type=week]{background-image:var(--icon-calendar)}input:not([type=file])[type=date].success,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=month].success,input:not([type=file])[type=week].success,textarea[type=date].success,textarea[type=datetime-local].success,textarea[type=month].success,textarea[type=week].success,select[type=date].success,select[type=datetime-local].success,select[type=month].success,select[type=week].success,#input-file-container[type=date].success,#input-file-container[type=datetime-local].success,#input-file-container[type=month].success,#input-file-container[type=week].success{background-image:var(--icon-success),var(--icon-calendar)}input:not([type=file])[type=date].error,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].error,input:not([type=file])[type=week].error,textarea[type=date].error,textarea[type=datetime-local].error,textarea[type=month].error,textarea[type=week].error,select[type=date].error,select[type=datetime-local].error,select[type=month].error,select[type=week].error,#input-file-container[type=date].error,#input-file-container[type=datetime-local].error,#input-file-container[type=month].error,#input-file-container[type=week].error{background-image:var(--icon-error),var(--icon-calendar)}input:not([type=file])[type=date]::-webkit-calendar-picker-indicator,input:not([type=file])[type=datetime-local]::-webkit-calendar-picker-indicator,input:not([type=file])[type=month]::-webkit-calendar-picker-indicator,input:not([type=file])[type=week]::-webkit-calendar-picker-indicator,input:not([type=file])[type=time]::-webkit-calendar-picker-indicator,textarea[type=date]::-webkit-calendar-picker-indicator,textarea[type=datetime-local]::-webkit-calendar-picker-indicator,textarea[type=month]::-webkit-calendar-picker-indicator,textarea[type=week]::-webkit-calendar-picker-indicator,textarea[type=time]::-webkit-calendar-picker-indicator,select[type=date]::-webkit-calendar-picker-indicator,select[type=datetime-local]::-webkit-calendar-picker-indicator,select[type=month]::-webkit-calendar-picker-indicator,select[type=week]::-webkit-calendar-picker-indicator,select[type=time]::-webkit-calendar-picker-indicator,#input-file-container[type=date]::-webkit-calendar-picker-indicator,#input-file-container[type=datetime-local]::-webkit-calendar-picker-indicator,#input-file-container[type=month]::-webkit-calendar-picker-indicator,#input-file-container[type=week]::-webkit-calendar-picker-indicator,#input-file-container[type=time]::-webkit-calendar-picker-indicator{-webkit-appearance:none;opacity:0}input:not([type=file])[type=search],textarea[type=search],select[type=search],#input-file-container[type=search]{background-image:var(--icon-search)}input:not([type=file])[type=search]:focus::-webkit-search-cancel-button,input:not([type=file])[type=search]:hover::-webkit-search-cancel-button,textarea[type=search]:focus::-webkit-search-cancel-button,textarea[type=search]:hover::-webkit-search-cancel-button,select[type=search]:focus::-webkit-search-cancel-button,select[type=search]:hover::-webkit-search-cancel-button,#input-file-container[type=search]:focus::-webkit-search-cancel-button,#input-file-container[type=search]:hover::-webkit-search-cancel-button{-webkit-appearance:none;background-image:var(--icon-cancel);height:var(--cancel-icon-height);width:var(--cancel-icon-width);background-repeat:no-repeat}input:not([type=file])[type=search][list=suggestions],textarea[type=search][list=suggestions],select[type=search][list=suggestions],#input-file-container[type=search][list=suggestions]{background-position:center right var(--search-icon-datalist-width)}input:not([type=file])[type=search][list=suggestions]:focus,input:not([type=file])[type=search][list=suggestions]:hover,textarea[type=search][list=suggestions]:focus,textarea[type=search][list=suggestions]:hover,select[type=search][list=suggestions]:focus,select[type=search][list=suggestions]:hover,#input-file-container[type=search][list=suggestions]:focus,#input-file-container[type=search][list=suggestions]:hover{background-position:center right var(--search-icon-focus-width)}input:not([type=file])[type=search].success:focus,input:not([type=file])[type=search].success:hover,input:not([type=file])[type=search].error:focus,input:not([type=file])[type=search].error:hover,textarea[type=search].success:focus,textarea[type=search].success:hover,textarea[type=search].error:focus,textarea[type=search].error:hover,select[type=search].success:focus,select[type=search].success:hover,select[type=search].error:focus,select[type=search].error:hover,#input-file-container[type=search].success:focus,#input-file-container[type=search].success:hover,#input-file-container[type=search].error:focus,#input-file-container[type=search].error:hover{background-position:center right 1em;background-image:var(--icon-search)}input:not([type=file])[type=search].success,textarea[type=search].success,select[type=search].success,#input-file-container[type=search].success{background-image:var(--icon-success),var(--icon-search)}input:not([type=file])[type=search].error,textarea[type=search].error,select[type=search].error,#input-file-container[type=search].error{background-image:var(--icon-error),var(--icon-search)}input:not([type=file]):is(select),textarea:is(select),select:is(select),#input-file-container:is(select){background-image:var(--icon-select);-webkit-appearance:none}input:not([type=file]):is(select).success,textarea:is(select).success,select:is(select).success,#input-file-container:is(select).success{background-image:var(--icon-success),var(--icon-select)}input:not([type=file]):is(select).error,textarea:is(select).error,select:is(select).error,#input-file-container:is(select).error{background-image:var(--icon-error),var(--icon-select)}input:not([type=file]):is(textarea),textarea:is(textarea),select:is(textarea),#input-file-container:is(textarea){height:auto;flex-grow:0}input:not([type=file]):is(textarea).success,input:not([type=file]):is(textarea).error,textarea:is(textarea).success,textarea:is(textarea).error,select:is(textarea).success,select:is(textarea).error,#input-file-container:is(textarea).success,#input-file-container:is(textarea).error{background-position:top .5em right 1em}input:not([type=file])#input-file-container,textarea#input-file-container,select#input-file-container,#input-file-container#input-file-container{background-repeat:no-repeat;background-position:center right var(--px-padding-s-mobile);background-image:var(--icon-upload);display:flex;align-items:center}input:not([type=file])#input-file-container span,textarea#input-file-container span,select#input-file-container span,#input-file-container#input-file-container span{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}input:not([type=file])#input-file-container.success>span,input:not([type=file])#input-file-container.error>span,textarea#input-file-container.success>span,textarea#input-file-container.error>span,select#input-file-container.success>span,select#input-file-container.error>span,#input-file-container#input-file-container.success>span,#input-file-container#input-file-container.error>span{width:85%}input:not([type=file])#input-file-container.success,textarea#input-file-container.success,select#input-file-container.success,#input-file-container#input-file-container.success{background-image:var(--icon-success),var(--icon-upload)}input:not([type=file])#input-file-container.error,textarea#input-file-container.error,select#input-file-container.error,#input-file-container#input-file-container.error{background-image:var(--icon-error),var(--icon-upload)}slot{font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-font-line-height-m);text-align:left}slot.error{color:var(--px-color-text-purpose-error-default)}slot.success{color:var(--px-color-text-purpose-success-default)}slot[name=helper]{color:#0000008f}#container{display:inline-flex;flex-direction:column;gap:6px}#label-helper{display:flex;flex-direction:column;gap:8px}input[type=file]{-webkit-appearance:none;opacity:0;height:0;width:0}@media screen and (min-width: 768px){slot{font-size:var(--px-text-size-label-m-desktop)}}`, k = new CSSStyleSheet();
492
+ k.replaceSync(E);
493
+ class r extends w {
494
+ constructor() {
495
+ var e;
496
+ super(k), this.containerTemplate = () => `
497
+ <div id="container">
498
+ <div id="label-helper">
499
+ <label><slot name="label"></slot></label>
500
+ <slot name="helper"></slot>
501
+ </div>
502
+ <slot id="success-error"></slot>
503
+ ${this.template()}
504
+ </div>
505
+ `, this.shadowRoot.innerHTML = this.containerTemplate(), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this);
506
+ }
507
+ static get observedAttributes() {
508
+ return [...super.observedAttributes, "state", "extended"];
509
+ }
510
+ attributeChangedCallback(e, t, s) {
511
+ e === "state" && t !== s ? this.stateChangeCallback(t, s) : e === "extended" && t !== s ? this.$el.classList.toggle("extended") : super.attributeChangedCallback(e, t, s);
512
+ }
513
+ stateChangeCallback(e, t) {
514
+ this.$el.classList.toggle(e), this.$el.classList.toggle(t), t === "error" ? (this.$validationSlot.classList.toggle("error"), this.$validationSlot.classList.remove("success")) : t === "success" ? (this.$validationSlot.classList.remove("error"), this.$validationSlot.classList.toggle("success")) : (this.$el.removeAttribute("aria-invalid"), this.$validationSlot.classList.remove("error", "success"), this.$labelSlot.classList.remove("error", "success"), this.$el.style.backgroundImage = ""), this.swapLabels(e, t);
515
+ }
516
+ swapLabels(e, t) {
517
+ const s = this.shadowRoot.querySelector("#container");
518
+ e !== "error" && t === "error" ? s.insertBefore(this.$validationSlot, this.$labelHelper) : e === "error" && t !== "error" && s.insertBefore(this.$labelHelper, this.$validationSlot);
519
+ }
520
+ formData() {
521
+ if (this.$el.name) {
522
+ const e = new FormData();
523
+ return e.append(this.getAttribute("name"), this.$el.value), e;
524
+ }
525
+ }
526
+ connectedCallback() {
527
+ super.connectedCallback(), ["change", "input"].forEach((e) => {
528
+ this.$el.addEventListener(e, () => {
529
+ var t;
530
+ (t = this.internals) == null || t.setFormValue(this.formData());
531
+ });
532
+ }), this.setupForId();
533
+ }
534
+ // Form-associated callbacks
535
+ static get formAssociated() {
536
+ return !0;
537
+ }
538
+ // Set default behavior when the element is attached to a form
539
+ formResetCallback() {
540
+ this.$el.value = "";
541
+ }
542
+ formStateRestoreCallback(e) {
543
+ this.$el.value = e;
544
+ }
545
+ setupForId() {
546
+ const e = Math.random().toString(36).substr(2, 9);
547
+ this.$el.setAttribute("id", e), this.$label && this.$label.setAttribute("for", e);
548
+ }
549
+ get state() {
550
+ return this.getAttribute("state");
551
+ }
552
+ set state(e) {
553
+ this.setAttribute("state", e);
554
+ }
555
+ get extended() {
556
+ return this.getAttribute("extended");
557
+ }
558
+ set extended(e) {
559
+ this.setAttribute(
560
+ "extended",
561
+ e === "" || e === null ? "true" : e
562
+ );
563
+ }
564
+ get $labelSlot() {
565
+ return this.shadowRoot.querySelector('slot[name="label"]');
566
+ }
567
+ get $validationSlot() {
568
+ return this.shadowRoot.querySelector("#success-error");
569
+ }
570
+ get $label() {
571
+ return this.shadowRoot.querySelector("label");
572
+ }
573
+ get $labelHelper() {
574
+ return this.shadowRoot.querySelector("#label-helper");
575
+ }
576
+ }
577
+ const u = class u extends r {
578
+ constructor() {
579
+ super();
580
+ }
581
+ connectedCallback() {
582
+ if (super.connectedCallback(), this.$lightSuggestions) {
583
+ const e = document.createElement("datalist");
584
+ e.id = "suggestions", this.$el.setAttribute("list", e.id), this.$container.appendChild(e), e.innerHTML = this.$lightSuggestions.innerHTML, this.observer = new MutationObserver(() => {
585
+ this.syncDataList();
586
+ }), this.observer.observe(this.$lightSuggestions, { childList: !0 });
587
+ }
588
+ this.type === "search" && navigator.userAgent.includes("Chrome") && (this.$el.style.setProperty("--cancel-icon-height", "1.1rem"), this.$el.style.setProperty("--cancel-icon-width", "2.7rem"), this.$el.style.setProperty("--search-icon-focus-width", "2.5rem"), this.$el.style.setProperty("--search-icon-datalist-width", "1rem"));
589
+ }
590
+ syncDataList() {
591
+ this.$shadowSuggestions.innerHTML = this.$lightSuggestions.innerHTML;
592
+ }
593
+ disconnectedCallback() {
594
+ var e;
595
+ (e = this.observer) == null || e.disconnect();
596
+ }
597
+ template() {
598
+ return '<div><input type="text" /><slot name="suggestions"></slot></div>';
599
+ }
600
+ get $lightSuggestions() {
601
+ return this.querySelector("datalist");
602
+ }
603
+ get $shadowSuggestions() {
604
+ return this.shadowRoot.querySelector("datalist");
605
+ }
606
+ get $container() {
607
+ return this.shadowRoot.querySelector("div");
608
+ }
609
+ };
610
+ u.nativeName = "input";
611
+ let o = u;
612
+ customElements.get("px-input") || customElements.define("px-input", o);
613
+ const h = class h extends r {
614
+ constructor() {
615
+ super();
616
+ }
617
+ template() {
618
+ return "<textarea></textarea>";
619
+ }
620
+ };
621
+ h.nativeName = "textarea";
622
+ let n = h;
623
+ customElements.get("px-textarea") || customElements.define("px-textarea", n);
624
+ const d = class d extends r {
625
+ template() {
626
+ return '<select><slot name="options"></slot></select>';
627
+ }
628
+ constructor() {
629
+ super();
630
+ }
631
+ connectedCallback() {
632
+ super.connectedCallback();
633
+ const e = this.querySelectorAll("option");
634
+ e.length > 0 && (e.forEach((t) => {
635
+ this.$el.appendChild(t);
636
+ }), this.observer = new MutationObserver(() => {
637
+ this.$el.innerHTML = this.innerHTML;
638
+ }), this.observer.observe(this, { childList: !0 }));
639
+ }
640
+ disconnectedCallback() {
641
+ this.observer.disconnect();
642
+ }
643
+ };
644
+ d.nativeName = "select";
645
+ let l = d;
646
+ customElements.get("px-select") || customElements.define("px-select", l);
647
+ const f = class f extends r {
648
+ constructor() {
649
+ super();
650
+ }
651
+ connectedCallback() {
652
+ super.connectedCallback(), this.addEventListener("click", (e) => {
653
+ e.target === this && this.$el.click();
654
+ }), this.$el.addEventListener("change", () => {
655
+ this.$span.innerText = this.$el.files[0].name;
656
+ });
657
+ }
658
+ template() {
659
+ return '<div id="input-file-container"><span></span><input type="file" /></input>';
660
+ }
661
+ stateChangeCallback(e, t) {
662
+ super.stateChangeCallback(e, t), this.$container.classList.toggle(e), this.$container.classList.toggle(t);
663
+ }
664
+ get $container() {
665
+ return this.shadowRoot.querySelector("#input-file-container");
666
+ }
667
+ get $span() {
668
+ return this.shadowRoot.querySelector("span");
669
+ }
670
+ get $el() {
671
+ return this.shadowRoot.querySelector('input[type="file"]');
672
+ }
673
+ };
674
+ f.nativeName = "input";
675
+ let c = f;
676
+ customElements.get("px-fileupload") || customElements.define("px-fileupload", c);
677
+ export {
678
+ o as Input,
679
+ l as Select,
680
+ n as TextArea,
681
+ c as Upload
682
+ };