@aventusjs/cli 0.0.38 → 0.0.40

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.
@@ -11,6 +11,10 @@ type ProcessConfig = {
11
11
  handleErrors: (msg: string, errors: Aventus.GenericError[]) => void;
12
12
  };
13
13
 
14
+ class AventusUI {
15
+ static configure(): void;
16
+ }
17
+
14
18
  namespace Toast {
15
19
  /**
16
20
  * Defines the possible positions where a toast notification can appear on the screen.
@@ -65,6 +69,7 @@ class ProgressCircle extends Aventus.WebComponent implements Aventus.DefaultComp
65
69
  * Lifecycle hook called after the component is created. It attaches a ResizeObserver to the component to re-render the progress circle whenever the component's size changes, ensuring responsiveness. Also performs an initial render.
66
70
  */
67
71
  protected postCreation(): void;
72
+ private __1aca4783324766a91f99bbc1a4b3b73dmethodValidateView;
68
73
  }
69
74
 
70
75
  namespace Navigation {
@@ -87,6 +92,9 @@ interface PageConfig {
87
92
  * Manages the state and history of routes within an Aventus application.
88
93
  */
89
94
  class RouterStateManager extends Aventus.StateManager {
95
+ private hash;
96
+ getHash(): string;
97
+ setState(state: Aventus.State | string): Promise<boolean>;
90
98
  /**
91
99
  * Retrieves the singleton instance of the RouterStateManager.
92
100
  */
@@ -129,6 +137,7 @@ class RouterLink extends Aventus.WebComponent implements Aventus.DefaultComponen
129
137
  * Lifecycle hook called after the component is created. Registers the active listener and adds the click event handler.
130
138
  */
131
139
  protected postCreation(): void;
140
+ private __ad88894dc7dea62195d227cdd21fc210methodValidateView;
132
141
  }
133
142
  }
134
143
 
@@ -167,6 +176,7 @@ class Link extends Aventus.WebComponent implements Aventus.DefaultComponent {
167
176
  * Lifecycle hook called after the component is created. Registers the active listener and adds the click event handler.
168
177
  */
169
178
  protected postCreation(): void;
179
+ private __7e4c6c9fe944acd9b1174c61347fdcb6methodValidateView;
170
180
  }
171
181
  }
172
182
 
@@ -201,55 +211,226 @@ interface ModalOptions<T = any> {
201
211
  }
202
212
  }
203
213
 
204
- /**
205
- * Tracks touch or pointer events to calculate movement, delta, and velocity.
206
- */
207
- class Tracker {
214
+ namespace Layout {
215
+ class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponent {
208
216
  /**
209
- * Multiplier for velocity calculations based on device pixel ratio.
217
+ * Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.
210
218
  */
211
- private readonly velocityMultiplier;
219
+ @Property((target: Scrollable) => {
220
+ target.changeZoom();
221
+ })
222
+ zoom: number;
212
223
  /**
213
- * Timestamp of the last update.
224
+ * Reflects whether the vertical scrollbar is currently visible.
214
225
  */
215
- updateTime: number;
226
+ @Attribute()
227
+ private y_scroll_visible;
216
228
  /**
217
- * Change in position since the last update.
229
+ * Reflects whether the horizontal scrollbar is currently visible.
218
230
  */
219
- delta: {
220
- x: number;
221
- y: number;
222
- };
231
+ @Attribute()
232
+ private x_scroll_visible;
223
233
  /**
224
- * Current velocity of the tracker.
234
+ * Determines if the custom scrollbars will be floating over the content or occupy space.
225
235
  */
226
- velocity: {
227
- x: number;
228
- y: number;
229
- };
236
+ @Attribute()
237
+ floating_scroll: boolean;
230
238
  /**
231
- * Last recorded position.
239
+ * Determines if horizontal scrolling is allowed.
232
240
  */
233
- lastPosition: {
234
- x: number;
235
- y: number;
236
- };
241
+ @Attribute()
242
+ x_scroll: boolean;
237
243
  /**
238
- * Initializes a new Tracker instance.
244
+ * Determines if vertical scrolling is allowed.
239
245
  */
240
- constructor(touch: Touch | PointerEvent | MouseEvent);
246
+ @Attribute()
247
+ y_scroll: boolean;
241
248
  /**
242
- * Updates the tracker's position, delta, and velocity.
249
+ * If true, the custom scrollers will hide when not in use and reappear on interaction.
243
250
  */
244
- update(touch: Touch | PointerEvent | MouseEvent): void;
251
+ @Attribute()
252
+ auto_hide: boolean;
245
253
  /**
246
- * Extracts pointer data from a given event.
254
+ * If true, disables all user interaction (scrolling, zooming, dragging) with the component.
255
+ */
256
+ @Attribute()
257
+ disable: boolean;
258
+ /**
259
+ * Internal property to prevent user text selection during drag interactions.
260
+ */
261
+ @Attribute()
262
+ private no_user_select;
263
+ /**
264
+ * If true, allows scrolling by dragging with the mouse.
265
+ */
266
+ @Attribute()
267
+ mouse_drag: boolean;
268
+ /**
269
+ * If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.
247
270
  */
248
- private getPointerData;
271
+ @Attribute()
272
+ flex: boolean;
249
273
  /**
250
- * Retrieves the client coordinates from a pointer event.
274
+ * Reference to the internal DIV element that wraps the actual scrollable content.
251
275
  */
252
- private getPosition;
276
+ @ViewElement()
277
+ private contentWrapper;
278
+ /**
279
+ * Reference to the internal DIV element that handles zooming transformations.
280
+ */
281
+ @ViewElement()
282
+ private contentZoom;
283
+ /**
284
+ * Reference to the main container element of the Scrollable component.
285
+ */
286
+ @ViewElement()
287
+ private mainContainer;
288
+ /**
289
+ * Reference to an internal DIV element used for adjusting content area based on scrollbar presence.
290
+ */
291
+ @ViewElement()
292
+ private contentHidder;
293
+ /**
294
+ * Reference to the container element for the vertical scrollbar.
295
+ */
296
+ @ViewElement()
297
+ private verticalScrollerContainer;
298
+ /**
299
+ * Reference to the draggable element representing the vertical scrollbar thumb.
300
+ */
301
+ @ViewElement()
302
+ private verticalScroller;
303
+ /**
304
+ * Reference to the container element for the horizontal scrollbar.
305
+ */
306
+ @ViewElement()
307
+ private horizontalScrollerContainer;
308
+ /**
309
+ * Reference to the draggable element representing the horizontal scrollbar thumb.
310
+ */
311
+ @ViewElement()
312
+ private horizontalScroller;
313
+ /**
314
+ * An instance of Aventus.ResizeObserver to detect size changes of the component and its content.
315
+ */
316
+ private observer?;
317
+ /**
318
+ * Stores the actual dimensions (offsetWidth, offsetHeight) of the content wrapper.
319
+ */
320
+ private contentWrapperSize;
321
+ /**
322
+ * Stores the current visible dimensions (width, height) of the content area.
323
+ */
324
+ private display;
325
+ /**
326
+ * Stores the calculated margin adjustments due to scrollbar presence.
327
+ */
328
+ private margin;
329
+ /**
330
+ * Utility object to access horizontal/vertical scroller elements.
331
+ */
332
+ private scroller;
333
+ /**
334
+ * Stores the maximum scrollable distance (width, height) in pixels.
335
+ */
336
+ private max;
337
+ /**
338
+ * Stores setTimeout IDs for auto-hiding scrollbars.
339
+ */
340
+ private hideDelay;
341
+ /**
342
+ * Getter for the current horizontal scroll position.
343
+ */
344
+ get x(): number;
345
+ /**
346
+ * Getter for the current vertical scroll position.
347
+ */
348
+ get y(): number;
349
+ /**
350
+ * Getter for the maximum horizontal scroll position.
351
+ */
352
+ get xMax(): number;
353
+ /**
354
+ * Getter for the maximum vertical scroll position.
355
+ */
356
+ get yMax(): number;
357
+ private scrollTimeout;
358
+ @Signal((target: Scrollable) => {
359
+ if(target.allowResizeObserver) {
360
+ target.dimensionRefreshed();
361
+ }
362
+ })
363
+ allowResizeObserver: boolean;
364
+ /**
365
+ * Callback triggered whenever the scroll position changes.
366
+ */
367
+ onScrollChange: Aventus.Callback<(x: number, y: number) => void>;
368
+ /**
369
+ * Callback triggered whenever the zoom level changes.
370
+ */
371
+ onZoomChange: Aventus.Callback<(zoom: number) => void>;
372
+ /**
373
+ * Calculates the actual offsetWidth and offsetHeight of the content area, accounting for zoom, and determines if dimensions have changed.
374
+ */
375
+ private calculateRealSize;
376
+ /**
377
+ * Calculates and adjusts the position of the scrollbar containers based on direction.
378
+ */
379
+ private calculatePositionScrollerContainer;
380
+ /**
381
+ * Calculates and adjusts the position of the vertical scrollbar container.
382
+ */
383
+ private calculatePositionScrollerContainerY;
384
+ /**
385
+ * Calculates and adjusts the position of the horizontal scrollbar container.
386
+ */
387
+ private calculatePositionScrollerContainerX;
388
+ /**
389
+ * Calculates and sets the size of the custom scrollbar thumb for a given direction.
390
+ */
391
+ private calculateSizeScroller;
392
+ /**
393
+ * Applies the zoom transformation to contentZoom and triggers a dimension refresh.
394
+ */
395
+ private changeZoom;
396
+ /**
397
+ * Recalculates and updates all scroll-related dimensions and positions. Manages scrollbar visibility and ensures correct layout after size changes.
398
+ */
399
+ private dimensionRefreshed;
400
+ /**
401
+ * Creates and returns an Aventus.ResizeObserver instance configured to call dimensionRefreshed() on resize events.
402
+ */
403
+ private createResizeObserver;
404
+ /**
405
+ * Initializes and attaches the ResizeObserver to monitor the component and its contentWrapper for size changes.
406
+ */
407
+ private addResizeObserver;
408
+ protected onScrollEvent(e: Event): void;
409
+ /**
410
+ *
411
+ */
412
+ protected calculatePosition(): void;
413
+ /**
414
+ * Triggers the onScrollChange callback with the current x and y scroll positions.
415
+ */
416
+ private triggerScrollChange;
417
+ /**
418
+ * Helper function for safe division, returning nb1 if nb2 is zero or falsy.
419
+ */
420
+ private div;
421
+ private applyAutoHide;
422
+ private addScrollDrag;
423
+ scrollX(x: number): void;
424
+ scrollY(y: number): void;
425
+ private addAction;
426
+ protected focusElementByAnchor(): void;
427
+ protected addHashWatch(): void;
428
+ /**
429
+ * Lifecycle hook called after the component is created. Initializes dimensions, sets up resize observers, and adds interaction actions.
430
+ */
431
+ protected postCreation(): void;
432
+ private __e9d33dfb24b87e5b4deaa705c21273f1methodValidateView;
433
+ }
253
434
  }
254
435
 
255
436
  namespace Layout {
@@ -258,9 +439,10 @@ namespace Layout {
258
439
  */
259
440
  class Row extends Aventus.WebComponent implements Aventus.DefaultComponent {
260
441
  /**
261
- * Initializes a new instance of the Row component. Sets CSS containerName to "row" and containerType to "inline-size" to enable CSS Container Queries for responsive child styling.
442
+ * Sets up the CSS container after the custom element has been constructed.
262
443
  */
263
- constructor();
444
+ protected postCreation(): void;
445
+ private __1ed79842e4e0cd6ae81e036433255a67methodValidateView;
264
446
  }
265
447
  }
266
448
 
@@ -326,6 +508,7 @@ class Collapse extends Aventus.WebComponent implements Aventus.DefaultComponent
326
508
  * Toggles the open property, switching the collapse component's state between open and closed.
327
509
  */
328
510
  protected toggleOpen(): void;
511
+ private __33c9198d585ea235887aa4e231969274methodValidateView;
329
512
  }
330
513
 
331
514
  namespace Layout {
@@ -456,43 +639,95 @@ class Col extends Aventus.WebComponent implements Aventus.DefaultComponent {
456
639
  */
457
640
  @Attribute()
458
641
  center: boolean;
642
+ private __f679197b666e2383c42552d349c81576methodValidateView;
459
643
  }
460
644
  }
461
645
 
462
646
  /**
463
- * A sophisticated image display component that handles responsive sizing, different content modes (stretch, contains, cover), and asynchronous loading of both raster images and SVG files. It ensures images are displayed correctly within their container, even with dynamic resizing.
647
+ * Tracks touch or pointer events to calculate movement, delta, and velocity.
464
648
  */
465
- class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
649
+ class Tracker {
466
650
  /**
467
- * If true, the image will be loaded and cached as a base64 string.
651
+ * Multiplier for velocity calculations based on device pixel ratio.
468
652
  */
469
- @Attribute()
470
- cache: boolean;
653
+ private readonly velocityMultiplier;
471
654
  /**
472
- * The URL of the image to display. Changes to this property trigger onSrcChanged().
655
+ * Timestamp of the last update.
473
656
  */
474
- @Property((target: Img) => {
475
- target.onSrcChanged();
476
- })
477
- src?: string;
657
+ updateTime: number;
478
658
  /**
479
- * Determines how the image content should fit within its container. - 'stretch': Stretches the image to fill the container. - 'contains': Scales the image to fit within the container while preserving its aspect ratio. - 'cover': Scales the image to cover the entire container while preserving its aspect ratio.
659
+ * Change in position since the last update.
480
660
  */
481
- @Property((target: Img) => {
482
- if(target.src != "") {
483
- target.calculateSize();
484
- }
485
- })
486
- mode: 'stretch' | 'contains' | 'cover';
661
+ delta: {
662
+ x: number;
663
+ y: number;
664
+ };
487
665
  /**
488
- * Reference to the HTMLImageElement within the component's template, used for raster images.
666
+ * Current velocity of the tracker.
489
667
  */
490
- @ViewElement()
491
- protected imgEl: HTMLImageElement;
668
+ velocity: {
669
+ x: number;
670
+ y: number;
671
+ };
492
672
  /**
493
- * Reference to the HTMLDivElement within the component's template, used for SVG content.
673
+ * Last recorded position.
494
674
  */
495
- @ViewElement()
675
+ lastPosition: {
676
+ x: number;
677
+ y: number;
678
+ };
679
+ /**
680
+ * Initializes a new Tracker instance.
681
+ */
682
+ constructor(touch: Touch | PointerEvent | MouseEvent);
683
+ /**
684
+ * Updates the tracker's position, delta, and velocity.
685
+ */
686
+ update(touch: Touch | PointerEvent | MouseEvent): void;
687
+ /**
688
+ * Extracts pointer data from a given event.
689
+ */
690
+ private getPointerData;
691
+ /**
692
+ * Retrieves the client coordinates from a pointer event.
693
+ */
694
+ private getPosition;
695
+ }
696
+
697
+ /**
698
+ * A sophisticated image display component that handles responsive sizing, different content modes (stretch, contains, cover), and asynchronous loading of both raster images and SVG files. It ensures images are displayed correctly within their container, even with dynamic resizing.
699
+ */
700
+ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
701
+ /**
702
+ * If true, the image will be loaded and cached as a base64 string.
703
+ */
704
+ @Attribute()
705
+ cache: boolean;
706
+ /**
707
+ * The URL of the image to display. Changes to this property trigger onSrcChanged().
708
+ */
709
+ @Property((target: Img) => {
710
+ target.onSrcChanged();
711
+ })
712
+ src?: string;
713
+ /**
714
+ * Determines how the image content should fit within its container. - 'stretch': Stretches the image to fill the container. - 'contains': Scales the image to fit within the container while preserving its aspect ratio. - 'cover': Scales the image to cover the entire container while preserving its aspect ratio.
715
+ */
716
+ @Property((target: Img) => {
717
+ if(target.src != "") {
718
+ target.calculateSize();
719
+ }
720
+ })
721
+ mode: 'stretch' | 'contains' | 'cover';
722
+ /**
723
+ * Reference to the HTMLImageElement within the component's template, used for raster images.
724
+ */
725
+ @ViewElement()
726
+ protected imgEl: HTMLImageElement;
727
+ /**
728
+ * Reference to the HTMLDivElement within the component's template, used for SVG content.
729
+ */
730
+ @ViewElement()
496
731
  protected svgEl: HTMLDivElement;
497
732
  /**
498
733
  * A flag to prevent redundant size calculations during calculateSize.
@@ -526,6 +761,7 @@ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
526
761
  * Lifecycle hook called after the component is created. Initializes and observes the component with Aventus.ResizeObserver to react to dimension changes and trigger calculateSize().
527
762
  */
528
763
  protected postCreation(): void;
764
+ private __9020edeab1d7e487ec55b7f0ba357ff7methodValidateView;
529
765
  }
530
766
 
531
767
  namespace Form {
@@ -543,6 +779,10 @@ namespace Form {
543
779
  type ObjectParameter<T extends any> = T extends (...args: any) => any ? Aventus.Last<Parameters<T>> extends Object ? Aventus.Last<Parameters<T>> : never : never;
544
780
  }
545
781
 
782
+ namespace Form {
783
+ type IsUnion<T, U = T> = T extends U ? [U] extends [T] ? false : true : never;
784
+ }
785
+
546
786
  namespace Form {
547
787
  /**
548
788
  * Represents the internal structure of a single form field or part, including its value, validation rules, and associated elements.
@@ -552,8 +792,8 @@ interface InternalFormPart<T = any> {
552
792
  * The value of the form part, which can be of type T or an object with get and set methods.
553
793
  */
554
794
  value: {
555
- get: () => T;
556
- set: (value: T | undefined) => void;
795
+ get(): T;
796
+ set(value: T | undefined): void;
557
797
  };
558
798
  /**
559
799
  * A validation function for the form part.
@@ -564,6 +804,7 @@ interface InternalFormPart<T = any> {
564
804
  */
565
805
  validateOnChange?: boolean;
566
806
  onValueChange: Aventus.Callback<() => void>;
807
+ /** Receives schema errors and may add validation errors; returning an empty list does not clear schema errors. */
567
808
  onValidation: Aventus.Callback<(errors: string[]) => Promise<string[]>, Promise<string[]>>;
568
809
  register: (element: Aventus.Form.IFormElement) => void;
569
810
  unregister: (element: Aventus.Form.IFormElement) => void;
@@ -572,23 +813,10 @@ interface InternalFormPart<T = any> {
572
813
  }
573
814
  }
574
815
 
575
- namespace Form {
576
- type IsUnion<T, U = T> = T extends U ? [U] extends [T] ? false : true : never;
577
- }
578
-
579
816
  namespace Form {
580
817
  type FilterPrefix<T> = T extends `getPrefix` ? never : T;
581
818
  }
582
819
 
583
- namespace Form {
584
- /**
585
- * Represents the internal structure of a form, mapping field names to their internal form parts.
586
- */
587
- type InternalForm<T> = {
588
- [K in keyof T]?: Aventus.Form.InternalFormPart<T[K]>;
589
- };
590
- }
591
-
592
820
  namespace Form {
593
821
  type OmitClass<T> = Exclude<{
594
822
  [K in keyof T]: T[K] extends Function ? never : K;
@@ -684,6 +912,7 @@ abstract class Tabs<T extends Aventus.Layout.Tabs.Tab, U extends Aventus.Layout.
684
912
  * Lifecycle hook called after the component is created. Overrides the base method to load the tabs when the component is instantiated.
685
913
  */
686
914
  protected postCreation(): void;
915
+ private __341d86639f6d509eb682d1a03efb4426methodValidateView;
687
916
  }
688
917
  }
689
918
 
@@ -702,12 +931,31 @@ namespace Form {
702
931
  type FormValidate = (field: string, value: unknown) => Aventus.Form.FormValidateResult;
703
932
  }
704
933
 
934
+ namespace Form {
935
+ /**
936
+ * Represents the value handled by a form once the absence marker has been removed.
937
+ * Form APIs add `undefined` themselves where a value may be absent.
938
+ */
939
+ type DefinedFormValue<T> = Exclude<T, undefined>;
940
+ }
941
+
942
+ namespace Form {
943
+ /**
944
+ * Represents the internal structure of a form, mapping field names to their internal form parts.
945
+ */
946
+ type InternalForm<T> = {
947
+ [K in keyof T]?: Aventus.Form.InternalFormPart<Aventus.Form.DefinedFormValue<T[K]>>;
948
+ };
949
+ }
950
+
705
951
  namespace Form {
706
952
  /**
707
953
  * Represents a validation function for a value of type T.
708
954
  * The function takes a value of type T or undefined and returns a FormValidateResult.
709
955
  */
710
- type FormPartValidate<T> = (value: T | undefined, name: string, globalValidation: () => Promise<void>) => Aventus.Form.FormValidateResult;
956
+ type FormPartValidate<T> = {
957
+ bivarianceHack(value: T | undefined, name: string, globalValidation: () => Promise<void>): Aventus.Form.FormValidateResult;
958
+ }['bivarianceHack'];
711
959
  }
712
960
 
713
961
  namespace Form {
@@ -878,9 +1126,9 @@ namespace Form {
878
1126
  */
879
1127
  interface IFormElement<T = any> {
880
1128
  errors: string[];
881
- value: T | undefined;
882
- onChange: Aventus.Callback<(value: T) => void>;
883
- formPart?: Aventus.Form.InternalFormPart<T>;
1129
+ value: Aventus.Form.DefinedFormValue<T> | undefined;
1130
+ onChange: Aventus.Callback<(value: Aventus.Form.DefinedFormValue<T> | undefined) => void>;
1131
+ formPart?: Aventus.Form.InternalFormPart<Aventus.Form.DefinedFormValue<T>>;
884
1132
  }
885
1133
  }
886
1134
 
@@ -910,7 +1158,7 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
910
1158
  @Watch((target: FormElement<T>) => {
911
1159
  target.onValueChange(target.value);
912
1160
  })
913
- value: T | undefined;
1161
+ value: Aventus.Form.DefinedFormValue<T> | undefined;
914
1162
  /**
915
1163
  * List of error messages for the current form element. Changes to this property trigger onErrorsChange().
916
1164
  */
@@ -926,9 +1174,9 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
926
1174
  * Gets or sets the element's part within the overall form handler. Setting this property will unlink and relink the form part.
927
1175
  */
928
1176
  @Injectable()
929
- get form(): Aventus.Form.InternalFormPart<T> | undefined;
1177
+ get form(): Aventus.Form.InternalFormPart<Aventus.Form.DefinedFormValue<T>> | undefined;
930
1178
  @Injectable()
931
- set form(value: Aventus.Form.InternalFormPart<T> | undefined);
1179
+ set form(value: Aventus.Form.InternalFormPart<Aventus.Form.DefinedFormValue<T>> | undefined);
932
1180
  /**
933
1181
  * Provides access to the form internals of the custom element, used for interacting with form validity state and setting form values.
934
1182
  */
@@ -948,7 +1196,7 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
948
1196
  /**
949
1197
  * Callback triggered when the value of the form element changes.
950
1198
  */
951
- onChange: Aventus.Callback<(value: T | undefined) => void>;
1199
+ onChange: Aventus.Callback<(value: Aventus.Form.DefinedFormValue<T> | undefined) => void>;
952
1200
  /**
953
1201
  * Refreshes the element's value and clears its errors based on the state of the associated form part.
954
1202
  */
@@ -982,11 +1230,11 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
982
1230
  /**
983
1231
  * Updates the element's value, triggers the onChange callback, and updates the form's value if linked.
984
1232
  */
985
- protected triggerChange(value: T | undefined): void;
1233
+ protected triggerChange(value: Aventus.Form.DefinedFormValue<T> | undefined): void;
986
1234
  /**
987
1235
  * Called when the value property changes. Links the new value to the form.
988
1236
  */
989
- protected onValueChange(value: T | undefined): void;
1237
+ protected onValueChange(value: Aventus.Form.DefinedFormValue<T> | undefined): void;
990
1238
  /**
991
1239
  * Called when the errors property changes. Updates has_errors and links errors to the form.
992
1240
  */
@@ -1015,6 +1263,7 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
1015
1263
  * Lifecycle hook called before the component is destroyed. Unlinks the element from the form.
1016
1264
  */
1017
1265
  protected postDestruction(): void;
1266
+ private __c7d833e22c71522dccdfc0535e030dccmethodValidateView;
1018
1267
  }
1019
1268
  }
1020
1269
 
@@ -1066,6 +1315,7 @@ abstract class ButtonElement extends Aventus.WebComponent implements Aventus.Def
1066
1315
  * Lifecycle hook called after the component is created. Registers the button with the parent form and sets up event listeners for submission.
1067
1316
  */
1068
1317
  protected postCreation(): void;
1318
+ private __8a03bf2c6330dba29944077271d4ba6cmethodValidateView;
1069
1319
  }
1070
1320
  }
1071
1321
 
@@ -1139,6 +1389,7 @@ class Form<T extends any = any, R = any> extends Aventus.WebComponent implements
1139
1389
  * Asynchronously handles the form submission process. It finds the associated FormHandler if not already set, manages loading states of buttons, and either calls a custom submission function or triggers validation and the onSubmit callback.
1140
1390
  */
1141
1391
  requestSubmit(): Promise<void>;
1392
+ private __e342a7778ed12db88b680ae2fb351d0amethodValidateView;
1142
1393
  }
1143
1394
  }
1144
1395
 
@@ -1312,881 +1563,884 @@ class FormHandlerController<T extends Aventus.HttpRoute, M extends Aventus.Form.
1312
1563
  }
1313
1564
  }
1314
1565
 
1315
- namespace Lib {
1316
1566
  /**
1317
- * Manages global keyboard shortcuts, allowing subscription and unsubscription for custom key combinations.
1567
+ * Records and manages multiple touch/pointer events for gestures like pinch-to-zoom.
1318
1568
  */
1319
- class ShortcutManager {
1569
+ class TouchRecord {
1320
1570
  /**
1321
- * Stores registered shortcut callbacks.
1571
+ * The identifier of the currently active touch/pointer.
1322
1572
  */
1323
- private static memory;
1573
+ private _activeTouchID?;
1324
1574
  /**
1325
- * List of shortcut key combinations that should automatically prevent default browser behavior.
1575
+ * A map of active touch/pointer IDs to their respective Trackers.
1326
1576
  */
1327
- private static autoPrevents;
1577
+ private _touchList;
1328
1578
  /**
1329
- * Indicates if the ShortcutManager has been initialized.
1579
+ * Returns a primitive zero-value coordinate object.
1330
1580
  */
1331
- private static isInit;
1581
+ private get _primitiveValue();
1332
1582
  /**
1333
- * Currently pressed keys.
1583
+ * Checks if there is an active touch/pointer event.
1334
1584
  */
1335
- private static arrayKeys;
1585
+ isActive(): boolean;
1336
1586
  /**
1337
- * Stores options for each registered shortcut callback.
1587
+ * Retrieves the delta movement of the active tracker.
1338
1588
  */
1339
- private static options;
1589
+ getDelta(): any;
1340
1590
  /**
1341
- * Stores temporarily replaced shortcut callbacks.
1591
+ * Retrieves the velocity of the active tracker.
1342
1592
  */
1343
- private static replacingMemory;
1593
+ getVelocity(): any;
1344
1594
  /**
1345
- * Checks if a given key is a printable character or a space.
1595
+ * Returns the number of active touch/pointer events.
1346
1596
  */
1347
- private static isTxt;
1597
+ getNbOfTouches(): any;
1348
1598
  /**
1349
- * Converts a key combination into a standardized string representation.
1599
+ * Returns an array of active Tracker instances.
1350
1600
  */
1351
- private static getText;
1601
+ getTouches(): any;
1352
1602
  /**
1353
- * Subscribes a callback function to a specific keyboard shortcut combination.
1603
+ * Calculates the easing distance based on current velocity and damping.
1354
1604
  */
1355
- static subscribe(combinaison: (Aventus.Lib.SpecialTouch | string)[] | (Aventus.Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>, options?: Aventus.Lib.ShortcutManagerOptions): void;
1605
+ getEasingDistance(damping: number): {
1606
+ x: number;
1607
+ y: number;
1608
+ };
1356
1609
  /**
1357
- * Unsubscribes a callback function from a keyboard shortcut combination.
1610
+ * Starts tracking new touch/pointer events.
1358
1611
  */
1359
- static unsubscribe(combinaison: (Aventus.Lib.SpecialTouch | string)[] | (Aventus.Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>): void;
1612
+ track(evt: TouchEvent | PointerEvent | MouseEvent): {
1613
+ [id: number]: Aventus.Tracker;
1614
+ };
1360
1615
  /**
1361
- * Handles keydown events, processing registered shortcuts and preventing default behavior.
1616
+ * Updates existing tracked touch/pointer events.
1362
1617
  */
1363
- private static onKeyDown;
1618
+ update(evt: TouchEvent | PointerEvent | MouseEvent): {
1619
+ [id: number]: Aventus.Tracker;
1620
+ };
1364
1621
  /**
1365
- * Handles keyup events, removing the released key from the currently pressed keys.
1622
+ * Releases tracking for ended touch/pointer events.
1366
1623
  */
1367
- private static onKeyUp;
1624
+ release(evt: TouchEvent | PointerEvent | MouseEvent): void;
1368
1625
  /**
1369
- * Initializes the ShortcutManager, setting up global event listeners.
1626
+ * Retrieves a unique identifier for a touch or pointer event.
1370
1627
  */
1371
- static init(): void;
1628
+ private _getIdentifier;
1372
1629
  /**
1373
- * Sets key combinations that should automatically prevent default browser behavior.
1630
+ * Adds a new touch/pointer event to the tracker list.
1374
1631
  */
1375
- static setAutoPrevents(combinaisons: (Aventus.Lib.SpecialTouch | string)[][]): void;
1632
+ private _add;
1376
1633
  /**
1377
- * Deinitializes the ShortcutManager, removing global event listeners.
1634
+ * Renews an existing touch/pointer event in the tracker list.
1378
1635
  */
1379
- private static uninit;
1380
- }
1636
+ private _renew;
1637
+ /**
1638
+ * Deletes a touch/pointer event from the tracker list.
1639
+ */
1640
+ private _delete;
1641
+ /**
1642
+ * Checks if a touch/pointer event is being tracked.
1643
+ */
1644
+ private _has;
1645
+ /**
1646
+ * Sets the identifier of the currently active touch/pointer event.
1647
+ */
1648
+ private _setActiveID;
1649
+ /**
1650
+ * Retrieves the currently active Tracker instance.
1651
+ */
1652
+ private _getActiveTracker;
1381
1653
  }
1382
1654
 
1383
1655
  namespace Layout {
1384
1656
  /**
1385
- * Provides a comprehensive visual grid system and guide management for UI development. Features include configurable grid lines, rulers, draggable guides with magnetic snapping, and persistent storage for guide positions.
1657
+ * A highly customizable and interactive scroll container web component. It supports advanced features like zooming, pinch-to-zoom, custom scrollbars, auto-hide scrollbars, momentum scrolling, mouse-dragging for scrolling, and auto-scrolling.
1386
1658
  */
1387
- class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
1659
+ class AdvancedScrollable extends Aventus.WebComponent implements Aventus.DefaultComponent {
1388
1660
  /**
1389
- * The unit of measurement for grid and ruler calculations. Changes update CSS variables for ruler styling.
1661
+ * Locks scrolling for a Scrollable component that is a parent of the given element.
1390
1662
  */
1391
- @Property((target: GridHelper) => {
1392
- target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1393
- target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1394
- target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1395
- })
1396
- unit: 'px' | 'rem' | 'cm' | 'mm' | 'in';
1663
+ static lock(element: Aventus.WebComponent): void;
1397
1664
  /**
1398
- * The number of columns in the grid. If 0, col_width is used.
1665
+ * Unlocks scrolling for a Scrollable component that is a parent of the given element.
1399
1666
  */
1400
- @Property()
1401
- nb_col: number;
1667
+ static unlock(element: Aventus.WebComponent): void;
1402
1668
  /**
1403
- * The number of rows in the grid. If 0, row_height is used.
1669
+ * Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.
1404
1670
  */
1405
- @Property((target: GridHelper) => {
1406
-
1671
+ @Property((target: AdvancedScrollable) => {
1672
+ target.changeZoom();
1407
1673
  })
1408
- nb_row: number;
1674
+ zoom: number;
1409
1675
  /**
1410
- * The width of each column. Used if nb_col is 0.
1676
+ * The minimum allowed zoom level for the content.
1411
1677
  */
1412
- @Property()
1413
- col_width: number;
1678
+ @Attribute()
1679
+ min_zoom: number;
1414
1680
  /**
1415
- * The height of each row. Used if nb_row is 0.
1681
+ * The maximum allowed zoom level for the content.
1416
1682
  */
1417
- @Property((target: GridHelper) => {
1418
-
1419
- })
1420
- row_height: number;
1683
+ @Attribute()
1684
+ max_zoom: number;
1421
1685
  /**
1422
- * Whether to display the rulers.
1686
+ * Reflects whether the vertical scrollbar is currently visible.
1423
1687
  */
1424
1688
  @Attribute()
1425
- show_rulers: boolean;
1689
+ private y_scroll_visible;
1426
1690
  /**
1427
- * Whether to display the grid lines.
1691
+ * Reflects whether the horizontal scrollbar is currently visible.
1428
1692
  */
1429
1693
  @Attribute()
1430
- show_grid: boolean;
1694
+ private x_scroll_visible;
1431
1695
  /**
1432
- * Whether to display the rulers.
1696
+ * Determines if the custom scrollbars will be floating over the content or occupy space.
1433
1697
  */
1434
1698
  @Attribute()
1435
- show_ruler: boolean;
1699
+ floating_scroll: boolean;
1436
1700
  /**
1437
- * Whether to display the draggable guides.
1701
+ * Determines if horizontal scrolling is allowed.
1438
1702
  */
1439
1703
  @Attribute()
1440
- show_guides: boolean;
1704
+ x_scroll: boolean;
1441
1705
  /**
1442
- * If true, guides cannot be dragged or created.
1706
+ * Determines if vertical scrolling is allowed.
1443
1707
  */
1444
1708
  @Attribute()
1445
- lock: boolean;
1709
+ y_scroll: boolean;
1446
1710
  /**
1447
- * Overall visibility of the GridHelper component.
1711
+ * If true, the custom scrollers will hide when not in use and reappear on interaction.
1448
1712
  */
1449
1713
  @Attribute()
1450
- visible: boolean;
1714
+ auto_hide: boolean;
1451
1715
  /**
1452
- * The size (thickness) of the rulers in the specified unit.
1716
+ * Controls the decay rate of momentum scrolling (value between 0 and 1).
1453
1717
  */
1454
- @Property((target: GridHelper) => {
1455
- target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1456
- target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1457
- target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1458
- })
1459
- ruler_size: number;
1718
+ @Attribute()
1719
+ break: number;
1460
1720
  /**
1461
- * The base step size for grid lines and guide snapping in the specified unit.
1721
+ * If true, disables all user interaction (scrolling, zooming, dragging) with the component.
1462
1722
  */
1463
- @Property()
1464
- step: number;
1723
+ @Attribute()
1724
+ disable: boolean;
1465
1725
  /**
1466
- * A larger step size for major grid lines, if different from step.
1726
+ * Internal property to prevent user text selection during drag interactions.
1467
1727
  */
1468
- @Property()
1469
- step_big: number;
1728
+ @Attribute()
1729
+ private no_user_select;
1470
1730
  /**
1471
- * The magnetic snap distance for guides in the specified unit.
1731
+ * If true, allows scrolling by dragging with the mouse.
1472
1732
  */
1473
- @Property()
1474
- magnetic: number;
1733
+ @Attribute()
1734
+ mouse_drag: boolean;
1475
1735
  /**
1476
- * Reference to the main grid container element.
1736
+ * If true, enables pinch-to-zoom functionality for touch devices.
1477
1737
  */
1478
- @ViewElement()
1479
- protected gridEl: HTMLDivElement;
1738
+ @Attribute()
1739
+ pinch: boolean;
1480
1740
  /**
1481
- * Reference to the element containing column grid lines.
1741
+ * If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.
1482
1742
  */
1483
- @ViewElement()
1484
- protected colsEl: HTMLDivElement;
1743
+ @Attribute()
1744
+ flex: boolean;
1485
1745
  /**
1486
- * Reference to the element containing row grid lines.
1746
+ * Reference to the internal DIV element that wraps the actual scrollable content.
1487
1747
  */
1488
1748
  @ViewElement()
1489
- protected rowsEl: HTMLDivElement;
1749
+ private contentWrapper;
1490
1750
  /**
1491
- * Reference to the top ruler element.
1751
+ * Reference to the internal DIV element that handles zooming transformations.
1492
1752
  */
1493
1753
  @ViewElement()
1494
- protected rulerTopEl: HTMLDivElement;
1754
+ private contentZoom;
1495
1755
  /**
1496
- * Reference to the left ruler element.
1756
+ * Reference to the main container element of the Scrollable component.
1497
1757
  */
1498
1758
  @ViewElement()
1499
- protected rulerLeftEl: HTMLDivElement;
1759
+ private mainContainer;
1500
1760
  /**
1501
- * Reference to the content area of the top ruler.
1761
+ * Reference to an internal DIV element used for adjusting content area based on scrollbar presence.
1502
1762
  */
1503
1763
  @ViewElement()
1504
- protected rulerTopContentEl: HTMLDivElement;
1764
+ private contentHidder;
1505
1765
  /**
1506
- * Reference to the content area of the left ruler.
1766
+ * Reference to the container element for the vertical scrollbar.
1507
1767
  */
1508
1768
  @ViewElement()
1509
- protected rulerLeftContentEl: HTMLDivElement;
1769
+ private verticalScrollerContainer;
1510
1770
  /**
1511
- * Reference to the element containing the draggable guides.
1771
+ * Reference to the draggable element representing the vertical scrollbar thumb.
1512
1772
  */
1513
1773
  @ViewElement()
1514
- protected guidesEl: HTMLDivElement;
1774
+ private verticalScroller;
1515
1775
  /**
1516
- * Reference to the lock indicator element.
1776
+ * Reference to the container element for the horizontal scrollbar.
1517
1777
  */
1518
1778
  @ViewElement()
1519
- protected lockEl: HTMLDivElement;
1779
+ private horizontalScrollerContainer;
1520
1780
  /**
1521
- * Converts a given number from the component's unit to pixels.
1781
+ * Reference to the draggable element representing the horizontal scrollbar thumb.
1522
1782
  */
1523
- inPx(nb: number): number;
1783
+ @ViewElement()
1784
+ private horizontalScroller;
1524
1785
  /**
1525
- * Converts a given number from pixels to the component's unit.
1786
+ * An instance of Aventus.ResizeObserver to detect size changes of the component and its content.
1526
1787
  */
1527
- fromPx(nbPx: number): number;
1788
+ private observer?;
1528
1789
  /**
1529
- * Toggles the lock property, enabling or disabling guide interaction.
1790
+ * Stores the current visible dimensions (width, height) of the content area.
1530
1791
  */
1531
- protected toggleLock(): void;
1792
+ private display;
1532
1793
  /**
1533
- * Renders the grid lines (columns and rows) based on configured nb_col, nb_row, col_width, and row_height.
1794
+ * Stores the maximum scrollable distance (width, height) in pixels.
1534
1795
  */
1535
- protected draw(): void;
1796
+ private max;
1536
1797
  /**
1537
- * Renders the top ruler, including major and minor step markers, based on step, step_big, and ruler_size.
1798
+ * Stores the calculated margin adjustments due to scrollbar presence.
1538
1799
  */
1539
- protected drawRulerTop(): void;
1800
+ private margin;
1540
1801
  /**
1541
- * Renders the left ruler, including major and minor step markers, based on step, step_big, and ruler_size.
1802
+ * Stores the current scroll position (x, y) in pixels.
1542
1803
  */
1543
- protected drawRulerLeft(): void;
1804
+ private position;
1544
1805
  /**
1545
- * Adds drag-and-drop functionality to the left ruler area for creating and moving horizontal GridGuideHelper instances. Also adds a double-press listener to prompt for a specific top position.
1806
+ * Stores the current momentum (velocity) for momentum scrolling.
1546
1807
  */
1547
- protected addDragLeft(): void;
1808
+ private momentum;
1548
1809
  /**
1549
- * Adds drag-and-drop functionality to the top ruler area for creating and moving vertical GridGuideHelper instances. Also adds a double-press listener to prompt for a specific left position.
1810
+ * Stores the actual dimensions (offsetWidth, offsetHeight) of the content wrapper.
1550
1811
  */
1551
- protected addDragTop(): void;
1812
+ private contentWrapperSize;
1552
1813
  /**
1553
- * Programmatically creates a vertical guide at a specified left position.
1814
+ * Utility object to access horizontal/vertical scroller elements.
1554
1815
  */
1555
- createGuideFromLeft(left: number): void;
1816
+ private scroller;
1556
1817
  /**
1557
- * Programmatically creates a horizontal guide at a specified top position.
1818
+ * Utility object to access horizontal/vertical scroller container elements.
1558
1819
  */
1559
- createGuideFromTop(top: number): void;
1820
+ private scrollerContainer;
1560
1821
  /**
1561
- * Sets up keyboard shortcuts (e.g., Ctrl+K followed by 'v' for visible, 'g' for grid, 'r' for ruler, 'j' for guides, 'l' for lock) to control the visibility and state of grid elements.
1822
+ * Stores setTimeout IDs for auto-hiding scrollbars.
1562
1823
  */
1563
- protected addShortCut(): void;
1824
+ private hideDelay;
1564
1825
  /**
1565
- * Attaches a ResizeObserver to the component to redraw the grid and rulers when the component's dimensions change.
1826
+ * An instance of TouchRecord to track touch events for multi-touch and pinch gestures.
1566
1827
  */
1567
- protected addResize(): void;
1828
+ private touchRecord;
1568
1829
  /**
1569
- * Saves the positions of the currently active GridGuideHelper instances to localStorage for persistence.
1830
+ * The number of active pointers (touches/mouse buttons).
1570
1831
  */
1571
- save(): void;
1832
+ private pointerCount;
1572
1833
  /**
1573
- * Loads saved guide positions from localStorage and recreates GridGuideHelper instances.
1834
+ * Flag indicating if the component has been rendered at least once.
1574
1835
  */
1575
- reload(): void;
1836
+ private loadedOnce;
1576
1837
  /**
1577
- * Lifecycle hook called after the component is created. Initializes the component by reloading saved guides, adding resize observers, keyboard shortcuts, and drag functionalities for rulers, and drawing the initial grid.
1838
+ * Stores the scroll position as a percentage during reloads or size changes.
1578
1839
  */
1579
- protected postCreation(): void;
1580
- }
1581
- }
1582
-
1583
- namespace Layout {
1584
- /**
1585
- * Utility component for providing visual guides (like rulers or snap lines) within a grid layout. It allows users to drag these guides and snap them to a predefined grid, aiding in precise UI alignment.
1586
- */
1587
- class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
1588
-
1840
+ private savedPercent?;
1589
1841
  /**
1590
- * Specifies the orientation of the guide: "x" for vertical, "y" for horizontal.
1842
+ * Flag indicating if the user is currently dragging a custom scrollbar.
1591
1843
  */
1592
- @Attribute()
1593
- direction: "y" | "x";
1844
+ private isDragScroller;
1594
1845
  /**
1595
- * Indicates whether the guide is currently being dragged.
1846
+ * Cached SVG element used for DOMMatrix creation.
1596
1847
  */
1597
- @Attribute()
1598
- moving: boolean;
1848
+ private cachedSvg?;
1599
1849
  /**
1600
- * Reference to the HTML element within the component's template, likely used to display the guide's current position.
1850
+ * Stores the midpoint between two touch points for pinch gestures.
1601
1851
  */
1602
- @ViewElement()
1603
- protected positionEl: HTMLDivElement;
1852
+ private previousMidPoint?;
1604
1853
  /**
1605
- * Reference to the parent GridHelper component, which provides context for grid properties like step and magnetic snap.
1854
+ * Stores the distance between two touch points for pinch gestures.
1606
1855
  */
1607
- container: Aventus.Layout.GridHelper;
1856
+ private previousDistance?;
1608
1857
  /**
1609
- * Updates the inner HTML of the component to display the guide's current position, converted to the appropriate unit by the container.
1858
+ * Stores the initial translation during a pinch gesture.
1610
1859
  */
1611
- displayValue(v: number): void;
1860
+ private startTranslate;
1612
1861
  /**
1613
- * Callback executed when dragging starts. Sets the moving attribute to true.
1862
+ * Getter for the current horizontal scroll position.
1614
1863
  */
1615
- @BindThis()
1616
- onStart(): void;
1864
+ get x(): number;
1617
1865
  /**
1618
- * Calculates a new position for the guide, applying a "magnetic" snapping effect based on the GridHelper's magnetic and step properties.
1866
+ * Getter for the current vertical scroll position.
1619
1867
  */
1620
- protected applyMagnetic(valuePx: number): number;
1868
+ get y(): number;
1621
1869
  /**
1622
- * Callback executed during horizontal dragging. Updates the guide's top style and positionEl's left style, applying magnetic snapping and displaying the new value.
1870
+ * Getter for the maximum horizontal scroll position.
1623
1871
  */
1624
- @BindThis()
1625
- onMoveX(e: Aventus.NormalizedEvent): void;
1872
+ get xMax(): number;
1626
1873
  /**
1627
- * Callback executed during vertical dragging. Updates the guide's left style and positionEl's top style, applying magnetic snapping and displaying the new value.
1874
+ * Getter for the maximum vertical scroll position.
1628
1875
  */
1629
- @BindThis()
1630
- onMoveY(e: Aventus.NormalizedEvent): void;
1876
+ get yMax(): number;
1631
1877
  /**
1632
- * Callback executed when dragging stops. Sets moving to false and calls the save() method on the parent container.
1878
+ * Initializes a new instance of the Scrollable component, binding event handlers and setting up the animation instance.
1633
1879
  */
1634
- @BindThis()
1635
- onStop(): void;
1880
+ constructor();
1636
1881
  /**
1637
- * Lifecycle hook called after the component is created. Initializes DragAndDrop functionality based on the direction and sets up a PressManager for double-press events to remove the guide. It also finds its parent GridHelper if not already set.
1882
+ * Callback triggered whenever the scroll position changes.
1638
1883
  */
1639
- protected postCreation(): void;
1640
- }
1641
- }
1642
-
1643
- /**
1644
- * Records and manages multiple touch/pointer events for gestures like pinch-to-zoom.
1645
- */
1646
- class TouchRecord {
1884
+ onScrollChange: Aventus.Callback<(x: number, y: number) => void>;
1647
1885
  /**
1648
- * The identifier of the currently active touch/pointer.
1886
+ * Callback triggered whenever the zoom level changes.
1649
1887
  */
1650
- private _activeTouchID?;
1888
+ onZoomChange: Aventus.Callback<(zoom: number) => void>;
1651
1889
  /**
1652
- * A map of active touch/pointer IDs to their respective Trackers.
1890
+ * The animation instance responsible for smooth momentum scrolling.
1653
1891
  */
1654
- private _touchList;
1892
+ private renderAnimation;
1655
1893
  /**
1656
- * Returns a primitive zero-value coordinate object.
1894
+ * Creates and configures the Aventus.Animation instance for momentum scrolling.
1657
1895
  */
1658
- private get _primitiveValue();
1896
+ private createAnimation;
1659
1897
  /**
1660
- * Checks if there is an active touch/pointer event.
1898
+ * Calculates the next scroll position and remaining momentum for a given direction.
1661
1899
  */
1662
- isActive(): boolean;
1900
+ private nextPosition;
1663
1901
  /**
1664
- * Retrieves the delta movement of the active tracker.
1902
+ * Applies the calculated scroll position for a given direction, updates the scroller element's transform, manages auto-hide for scrollbars, and triggers the onScrollChange callback.
1665
1903
  */
1666
- getDelta(): any;
1904
+ private scrollDirection;
1667
1905
  /**
1668
- * Retrieves the velocity of the active tracker.
1906
+ * Scrolls the content to a specified percentage of the total scrollable distance.
1669
1907
  */
1670
- getVelocity(): any;
1908
+ private scrollDirectionPercent;
1671
1909
  /**
1672
- * Returns the number of active touch/pointer events.
1910
+ * Ensures that the scroll value remains within the valid bounds (0 to max[direction]).
1673
1911
  */
1674
- getNbOfTouches(): any;
1912
+ private correctScrollValue;
1675
1913
  /**
1676
- * Returns an array of active Tracker instances.
1914
+ * Triggers the onScrollChange callback with the current x and y scroll positions.
1677
1915
  */
1678
- getTouches(): any;
1916
+ private triggerScrollChange;
1679
1917
  /**
1680
- * Calculates the easing distance based on current velocity and damping.
1918
+ * Scrolls the content to a specific absolute (x, y) pixel position.
1681
1919
  */
1682
- getEasingDistance(damping: number): {
1683
- x: number;
1684
- y: number;
1685
- };
1920
+ scrollToPosition(x: number, y: number): void;
1686
1921
  /**
1687
- * Starts tracking new touch/pointer events.
1922
+ * Scrolls the content horizontally to a specific absolute pixel position.
1688
1923
  */
1689
- track(evt: TouchEvent | PointerEvent | MouseEvent): {
1690
- [id: number]: Aventus.Tracker;
1691
- };
1924
+ scrollX(x: number): void;
1692
1925
  /**
1693
- * Updates existing tracked touch/pointer events.
1926
+ * Scrolls the content horizontally to a specific percentage of its total width.
1694
1927
  */
1695
- update(evt: TouchEvent | PointerEvent | MouseEvent): {
1696
- [id: number]: Aventus.Tracker;
1697
- };
1928
+ scrollXPercent(x: number): void;
1698
1929
  /**
1699
- * Releases tracking for ended touch/pointer events.
1930
+ * Scrolls the content vertically to a specific absolute pixel position.
1700
1931
  */
1701
- release(evt: TouchEvent | PointerEvent | MouseEvent): void;
1932
+ scrollY(y: number): void;
1702
1933
  /**
1703
- * Retrieves a unique identifier for a touch or pointer event.
1934
+ * Scrolls the content vertically to a specific percentage of its total height.
1704
1935
  */
1705
- private _getIdentifier;
1936
+ scrollYPercent(y: number): void;
1706
1937
  /**
1707
- * Adds a new touch/pointer event to the tracker list.
1938
+ * Stores setInterval IDs for active auto-scrolling directions.
1708
1939
  */
1709
- private _add;
1940
+ private autoScrollInterval;
1710
1941
  /**
1711
- * Renews an existing touch/pointer event in the tracker list.
1942
+ * Stores the calculated pixel speed for auto-scrolling in each direction.
1712
1943
  */
1713
- private _renew;
1944
+ private autoScrollSpeed;
1714
1945
  /**
1715
- * Deletes a touch/pointer event from the tracker list.
1946
+ * Initiates auto-scrolling to the right.
1716
1947
  */
1717
- private _delete;
1948
+ private startAutoScrollRight;
1718
1949
  /**
1719
- * Checks if a touch/pointer event is being tracked.
1950
+ * Starts auto-scrolling the content to the right with a specified speed percentage.
1720
1951
  */
1721
- private _has;
1952
+ autoScrollRight(percent?: number): void;
1722
1953
  /**
1723
- * Sets the identifier of the currently active touch/pointer event.
1954
+ * Stops any active auto-scrolling to the right.
1724
1955
  */
1725
- private _setActiveID;
1956
+ stopAutoScrollRight(): void;
1726
1957
  /**
1727
- * Retrieves the currently active Tracker instance.
1958
+ * Initiates auto-scrolling to the left.
1728
1959
  */
1729
- private _getActiveTracker;
1730
- }
1731
-
1732
- namespace Layout {
1733
- /**
1734
- * A highly customizable and interactive scroll container web component. It supports advanced features like zooming, pinch-to-zoom, custom scrollbars, auto-hide scrollbars, momentum scrolling, mouse-dragging for scrolling, and auto-scrolling.
1735
- */
1736
- class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponent {
1960
+ private startAutoScrollLeft;
1737
1961
  /**
1738
- * Locks scrolling for a Scrollable component that is a parent of the given element.
1962
+ * Starts auto-scrolling the content to the left with a specified speed percentage.
1739
1963
  */
1740
- static lock(element: Aventus.WebComponent): void;
1964
+ autoScrollLeft(percent?: number): void;
1741
1965
  /**
1742
- * Unlocks scrolling for a Scrollable component that is a parent of the given element.
1966
+ * Stops any active auto-scrolling to the left.
1743
1967
  */
1744
- static unlock(element: Aventus.WebComponent): void;
1968
+ stopAutoScrollLeft(): void;
1745
1969
  /**
1746
- * Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.
1970
+ * Initiates auto-scrolling upwards.
1747
1971
  */
1748
- @Property((target: Scrollable) => {
1749
- target.changeZoom();
1750
- })
1751
- zoom: number;
1972
+ private startAutoScrollTop;
1752
1973
  /**
1753
- * The minimum allowed zoom level for the content.
1974
+ * Starts auto-scrolling the content upwards with a specified speed percentage.
1754
1975
  */
1755
- @Attribute()
1756
- min_zoom: number;
1976
+ autoScrollTop(percent?: number): void;
1757
1977
  /**
1758
- * The maximum allowed zoom level for the content.
1978
+ * Stops any active auto-scrolling upwards.
1759
1979
  */
1760
- @Attribute()
1761
- max_zoom: number;
1980
+ stopAutoScrollTop(): void;
1762
1981
  /**
1763
- * Reflects whether the vertical scrollbar is currently visible.
1982
+ * Initiates auto-scrolling downwards.
1764
1983
  */
1765
- @Attribute()
1766
- private y_scroll_visible;
1984
+ private startAutoScrollBottom;
1767
1985
  /**
1768
- * Reflects whether the horizontal scrollbar is currently visible.
1986
+ * Starts auto-scrolling the content downwards with a specified speed percentage.
1769
1987
  */
1770
- @Attribute()
1771
- private x_scroll_visible;
1988
+ autoScrollBottom(percent?: number): void;
1772
1989
  /**
1773
- * Determines if the custom scrollbars will be floating over the content or occupy space.
1990
+ * Stops any active auto-scrolling downwards.
1774
1991
  */
1775
- @Attribute()
1776
- floating_scroll: boolean;
1992
+ stopAutoScrollBottom(): void;
1777
1993
  /**
1778
- * Determines if horizontal scrolling is allowed.
1994
+ * Creates a new SVG DOMMatrix for transformations.
1779
1995
  */
1780
- @Attribute()
1781
- x_scroll: boolean;
1996
+ private createMatrix;
1782
1997
  /**
1783
- * Determines if vertical scrolling is allowed.
1998
+ * Calculates the midpoint between two touch trackers.
1784
1999
  */
1785
- @Attribute()
1786
- y_scroll: boolean;
2000
+ private getMidPoint;
1787
2001
  /**
1788
- * If true, the custom scrollers will hide when not in use and reappear on interaction.
2002
+ * Calculates the distance between two touch trackers.
1789
2003
  */
1790
- @Attribute()
1791
- auto_hide: boolean;
2004
+ private getDistance;
1792
2005
  /**
1793
- * Controls the decay rate of momentum scrolling (value between 0 and 1).
2006
+ * Zooms the content around a specific client coordinate.
1794
2007
  */
1795
- @Attribute()
1796
- break: number;
2008
+ zoomOnPoint(clientX: number, clientY: number, newZoom: number): void;
1797
2009
  /**
1798
- * If true, disables all user interaction (scrolling, zooming, dragging) with the component.
2010
+ * Handles the logic for pinch-to-zoom gestures.
1799
2011
  */
1800
- @Attribute()
1801
- disable: boolean;
2012
+ private pinchAction;
1802
2013
  /**
1803
- * Internal property to prevent user text selection during drag interactions.
2014
+ * Manages press, drag, and touch events for the scrollable component.
1804
2015
  */
1805
- @Attribute()
1806
- private no_user_select;
2016
+ private pressManager;
1807
2017
  /**
1808
- * If true, allows scrolling by dragging with the mouse.
2018
+ * Attaches primary event listeners for wheel, touch (via PressManager), and pointer events.
1809
2019
  */
1810
- @Attribute()
1811
- mouse_drag: boolean;
2020
+ private addAction;
1812
2021
  /**
1813
- * If true, enables pinch-to-zoom functionality for touch devices.
2022
+ * Attaches event listeners to document.body for move-related touch/pointer events.
1814
2023
  */
1815
- @Attribute()
1816
- pinch: boolean;
2024
+ private addActionMove;
1817
2025
  /**
1818
- * If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.
2026
+ * Removes event listeners from document.body for move-related touch/pointer events.
1819
2027
  */
1820
- @Attribute()
1821
- flex: boolean;
2028
+ private removeActionMove;
1822
2029
  /**
1823
- * Reference to the internal DIV element that wraps the actual scrollable content.
2030
+ * Adds drag-and-drop functionality to the custom scrollbar elements (horizontal or vertical).
1824
2031
  */
1825
- @ViewElement()
1826
- private contentWrapper;
2032
+ private addScrollDrag;
1827
2033
  /**
1828
- * Reference to the internal DIV element that handles zooming transformations.
2034
+ * Determines whether a scroll event should stop propagation based on scroll boundaries.
1829
2035
  */
1830
- @ViewElement()
1831
- private contentZoom;
2036
+ private shouldStopPropagation;
1832
2037
  /**
1833
- * Reference to the main container element of the Scrollable component.
2038
+ * Adds a delta value to the current momentum and starts the rendering animation.
1834
2039
  */
1835
- @ViewElement()
1836
- private mainContainer;
2040
+ private addDelta;
1837
2041
  /**
1838
- * Reference to an internal DIV element used for adjusting content area based on scrollbar presence.
2042
+ * Event handler for wheel events, managing scrolling and pinch-to-zoom (with Ctrl key).
1839
2043
  */
1840
- @ViewElement()
1841
- private contentHidder;
2044
+ private onWheel;
1842
2045
  /**
1843
- * Reference to the container element for the vertical scrollbar.
2046
+ * Handles the start of a touch or pointer event, initiating tracking.
1844
2047
  */
1845
- @ViewElement()
1846
- private verticalScrollerContainer;
2048
+ private onTouchStartPointer;
1847
2049
  /**
1848
- * Reference to the draggable element representing the vertical scrollbar thumb.
2050
+ * General handler for touch/pointer/mouse start events, resetting momentum and tracking touches.
1849
2051
  */
1850
- @ViewElement()
1851
- private verticalScroller;
2052
+ private onTouchStart;
1852
2053
  /**
1853
- * Reference to the container element for the horizontal scrollbar.
2054
+ * Handles move events for touch or pointer, updating touch tracking.
1854
2055
  */
1855
- @ViewElement()
1856
- private horizontalScrollerContainer;
2056
+ private onTouchMovePointer;
1857
2057
  /**
1858
- * Reference to the draggable element representing the horizontal scrollbar thumb.
2058
+ * General handler for touch/pointer/mouse move events, processing pinch-to-zoom or scrolling.
1859
2059
  */
1860
- @ViewElement()
1861
- private horizontalScroller;
2060
+ private onTouchMove;
1862
2061
  /**
1863
- * An instance of Aventus.ResizeObserver to detect size changes of the component and its content.
2062
+ * Handles end events for touch or pointer, releasing touch tracking.
1864
2063
  */
1865
- private observer?;
2064
+ private onTouchEndPointer;
1866
2065
  /**
1867
- * Stores the current visible dimensions (width, height) of the content area.
2066
+ * General handler for touch/pointer/mouse end events, applying easing momentum and cleaning up.
1868
2067
  */
1869
- private display;
2068
+ private onTouchEnd;
1870
2069
  /**
1871
- * Stores the maximum scrollable distance (width, height) in pixels.
2070
+ * Calculates the actual offsetWidth and offsetHeight of the content area, accounting for zoom, and determines if dimensions have changed.
1872
2071
  */
1873
- private max;
2072
+ private calculateRealSize;
1874
2073
  /**
1875
- * Stores the calculated margin adjustments due to scrollbar presence.
2074
+ * Calculates and adjusts the position of the scrollbar containers based on direction.
1876
2075
  */
1877
- private margin;
2076
+ private calculatePositionScrollerContainer;
1878
2077
  /**
1879
- * Stores the current scroll position (x, y) in pixels.
2078
+ * Calculates and adjusts the position of the vertical scrollbar container.
1880
2079
  */
1881
- private position;
2080
+ private calculatePositionScrollerContainerY;
1882
2081
  /**
1883
- * Stores the current momentum (velocity) for momentum scrolling.
2082
+ * Calculates and adjusts the position of the horizontal scrollbar container.
1884
2083
  */
1885
- private momentum;
2084
+ private calculatePositionScrollerContainerX;
1886
2085
  /**
1887
- * Stores the actual dimensions (offsetWidth, offsetHeight) of the content wrapper.
2086
+ * Calculates and sets the size of the custom scrollbar thumb for a given direction.
1888
2087
  */
1889
- private contentWrapperSize;
2088
+ private calculateSizeScroller;
1890
2089
  /**
1891
- * Utility object to access horizontal/vertical scroller elements.
2090
+ * Applies the zoom transformation to contentZoom and triggers a dimension refresh.
1892
2091
  */
1893
- private scroller;
2092
+ private changeZoom;
1894
2093
  /**
1895
- * Utility object to access horizontal/vertical scroller container elements.
2094
+ * Recalculates and updates all scroll-related dimensions and positions. Manages scrollbar visibility and ensures correct layout after size changes.
1896
2095
  */
1897
- private scrollerContainer;
2096
+ private dimensionRefreshed;
1898
2097
  /**
1899
- * Stores setTimeout IDs for auto-hiding scrollbars.
2098
+ * Creates and returns an Aventus.ResizeObserver instance configured to call dimensionRefreshed() on resize events.
1900
2099
  */
1901
- private hideDelay;
2100
+ private createResizeObserver;
1902
2101
  /**
1903
- * An instance of TouchRecord to track touch events for multi-touch and pinch gestures.
2102
+ * Initializes and attaches the ResizeObserver to monitor the component and its contentWrapper for size changes.
1904
2103
  */
1905
- private touchRecord;
2104
+ private addResizeObserver;
1906
2105
  /**
1907
- * The number of active pointers (touches/mouse buttons).
2106
+ * Helper function for safe division, returning nb1 if nb2 is zero or falsy.
1908
2107
  */
1909
- private pointerCount;
2108
+ private div;
1910
2109
  /**
1911
- * Flag indicating if the component has been rendered at least once.
2110
+ * Lifecycle hook called after the component is created. Initializes dimensions, sets up resize observers, and adds interaction actions.
1912
2111
  */
1913
- private loadedOnce;
2112
+ protected postCreation(): void;
2113
+ private __1f4097dca60c0f010bbd786d30ec5348methodValidateView;
2114
+ }
2115
+ }
2116
+
2117
+ namespace Lib {
2118
+ /**
2119
+ * Manages global keyboard shortcuts, allowing subscription and unsubscription for custom key combinations.
2120
+ */
2121
+ class ShortcutManager {
1914
2122
  /**
1915
- * Stores the scroll position as a percentage during reloads or size changes.
2123
+ * Stores registered shortcut callbacks.
1916
2124
  */
1917
- private savedPercent?;
2125
+ private static memory;
1918
2126
  /**
1919
- * Flag indicating if the user is currently dragging a custom scrollbar.
2127
+ * List of shortcut key combinations that should automatically prevent default browser behavior.
1920
2128
  */
1921
- private isDragScroller;
2129
+ private static autoPrevents;
1922
2130
  /**
1923
- * Cached SVG element used for DOMMatrix creation.
2131
+ * Indicates if the ShortcutManager has been initialized.
1924
2132
  */
1925
- private cachedSvg?;
2133
+ private static isInit;
1926
2134
  /**
1927
- * Stores the midpoint between two touch points for pinch gestures.
2135
+ * Currently pressed keys.
1928
2136
  */
1929
- private previousMidPoint?;
2137
+ private static arrayKeys;
1930
2138
  /**
1931
- * Stores the distance between two touch points for pinch gestures.
2139
+ * Stores options for each registered shortcut callback.
1932
2140
  */
1933
- private previousDistance?;
2141
+ private static options;
1934
2142
  /**
1935
- * Stores the initial translation during a pinch gesture.
2143
+ * Stores temporarily replaced shortcut callbacks.
1936
2144
  */
1937
- private startTranslate;
2145
+ private static replacingMemory;
1938
2146
  /**
1939
- * Getter for the current horizontal scroll position.
2147
+ * Checks if a given key is a printable character or a space.
1940
2148
  */
1941
- get x(): number;
2149
+ private static isTxt;
1942
2150
  /**
1943
- * Getter for the current vertical scroll position.
2151
+ * Converts a key combination into a standardized string representation.
1944
2152
  */
1945
- get y(): number;
2153
+ private static getText;
1946
2154
  /**
1947
- * Getter for the maximum horizontal scroll position.
2155
+ * Subscribes a callback function to a specific keyboard shortcut combination.
1948
2156
  */
1949
- get xMax(): number;
2157
+ static subscribe(combinaison: (Aventus.Lib.SpecialTouch | string)[] | (Aventus.Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>, options?: Aventus.Lib.ShortcutManagerOptions): void;
1950
2158
  /**
1951
- * Getter for the maximum vertical scroll position.
2159
+ * Unsubscribes a callback function from a keyboard shortcut combination.
1952
2160
  */
1953
- get yMax(): number;
2161
+ static unsubscribe(combinaison: (Aventus.Lib.SpecialTouch | string)[] | (Aventus.Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>): void;
1954
2162
  /**
1955
- * Initializes a new instance of the Scrollable component, binding event handlers and setting up the animation instance.
2163
+ * Handles keydown events, processing registered shortcuts and preventing default behavior.
1956
2164
  */
1957
- constructor();
2165
+ private static onKeyDown;
1958
2166
  /**
1959
- * Callback triggered whenever the scroll position changes.
2167
+ * Handles keyup events, removing the released key from the currently pressed keys.
1960
2168
  */
1961
- onScrollChange: Aventus.Callback<(x: number, y: number) => void>;
2169
+ private static onKeyUp;
1962
2170
  /**
1963
- * Callback triggered whenever the zoom level changes.
2171
+ * Initializes the ShortcutManager, setting up global event listeners.
1964
2172
  */
1965
- onZoomChange: Aventus.Callback<(zoom: number) => void>;
2173
+ static init(): void;
1966
2174
  /**
1967
- * The animation instance responsible for smooth momentum scrolling.
2175
+ * Sets key combinations that should automatically prevent default browser behavior.
1968
2176
  */
1969
- private renderAnimation;
2177
+ static setAutoPrevents(combinaisons: (Aventus.Lib.SpecialTouch | string)[][]): void;
1970
2178
  /**
1971
- * Creates and configures the Aventus.Animation instance for momentum scrolling.
2179
+ * Deinitializes the ShortcutManager, removing global event listeners.
1972
2180
  */
1973
- private createAnimation;
1974
- /**
1975
- * Calculates the next scroll position and remaining momentum for a given direction.
1976
- */
1977
- private nextPosition;
1978
- /**
1979
- * Applies the calculated scroll position for a given direction, updates the scroller element's transform, manages auto-hide for scrollbars, and triggers the onScrollChange callback.
1980
- */
1981
- private scrollDirection;
1982
- /**
1983
- * Scrolls the content to a specified percentage of the total scrollable distance.
1984
- */
1985
- private scrollDirectionPercent;
1986
- /**
1987
- * Ensures that the scroll value remains within the valid bounds (0 to max[direction]).
1988
- */
1989
- private correctScrollValue;
2181
+ private static uninit;
2182
+ }
2183
+ }
2184
+
2185
+ namespace Layout {
2186
+ /**
2187
+ * Provides a comprehensive visual grid system and guide management for UI development. Features include configurable grid lines, rulers, draggable guides with magnetic snapping, and persistent storage for guide positions.
2188
+ */
2189
+ class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
1990
2190
  /**
1991
- * Triggers the onScrollChange callback with the current x and y scroll positions.
2191
+ * The unit of measurement for grid and ruler calculations. Changes update CSS variables for ruler styling.
1992
2192
  */
1993
- private triggerScrollChange;
2193
+ @Property((target: GridHelper) => {
2194
+ target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2195
+ target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2196
+ target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2197
+ })
2198
+ unit: 'px' | 'rem' | 'cm' | 'mm' | 'in';
1994
2199
  /**
1995
- * Scrolls the content to a specific absolute (x, y) pixel position.
2200
+ * The number of columns in the grid. If 0, col_width is used.
1996
2201
  */
1997
- scrollToPosition(x: number, y: number): void;
2202
+ @Property()
2203
+ nb_col: number;
1998
2204
  /**
1999
- * Scrolls the content horizontally to a specific absolute pixel position.
2205
+ * The number of rows in the grid. If 0, row_height is used.
2000
2206
  */
2001
- scrollX(x: number): void;
2207
+ @Property((target: GridHelper) => {
2208
+
2209
+ })
2210
+ nb_row: number;
2002
2211
  /**
2003
- * Scrolls the content horizontally to a specific percentage of its total width.
2212
+ * The width of each column. Used if nb_col is 0.
2004
2213
  */
2005
- scrollXPercent(x: number): void;
2214
+ @Property()
2215
+ col_width: number;
2006
2216
  /**
2007
- * Scrolls the content vertically to a specific absolute pixel position.
2217
+ * The height of each row. Used if nb_row is 0.
2008
2218
  */
2009
- scrollY(y: number): void;
2219
+ @Property((target: GridHelper) => {
2220
+
2221
+ })
2222
+ row_height: number;
2010
2223
  /**
2011
- * Scrolls the content vertically to a specific percentage of its total height.
2224
+ * Whether to display the rulers.
2012
2225
  */
2013
- scrollYPercent(y: number): void;
2226
+ @Attribute()
2227
+ show_rulers: boolean;
2014
2228
  /**
2015
- * Stores setInterval IDs for active auto-scrolling directions.
2229
+ * Whether to display the grid lines.
2016
2230
  */
2017
- private autoScrollInterval;
2231
+ @Attribute()
2232
+ show_grid: boolean;
2018
2233
  /**
2019
- * Stores the calculated pixel speed for auto-scrolling in each direction.
2234
+ * Whether to display the rulers.
2020
2235
  */
2021
- private autoScrollSpeed;
2236
+ @Attribute()
2237
+ show_ruler: boolean;
2022
2238
  /**
2023
- * Initiates auto-scrolling to the right.
2239
+ * Whether to display the draggable guides.
2024
2240
  */
2025
- private startAutoScrollRight;
2241
+ @Attribute()
2242
+ show_guides: boolean;
2026
2243
  /**
2027
- * Starts auto-scrolling the content to the right with a specified speed percentage.
2244
+ * If true, guides cannot be dragged or created.
2028
2245
  */
2029
- autoScrollRight(percent?: number): void;
2246
+ @Attribute()
2247
+ lock: boolean;
2030
2248
  /**
2031
- * Stops any active auto-scrolling to the right.
2249
+ * Overall visibility of the GridHelper component.
2032
2250
  */
2033
- stopAutoScrollRight(): void;
2251
+ @Attribute()
2252
+ visible: boolean;
2034
2253
  /**
2035
- * Initiates auto-scrolling to the left.
2254
+ * The size (thickness) of the rulers in the specified unit.
2036
2255
  */
2037
- private startAutoScrollLeft;
2256
+ @Property((target: GridHelper) => {
2257
+ target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2258
+ target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2259
+ target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
2260
+ })
2261
+ ruler_size: number;
2038
2262
  /**
2039
- * Starts auto-scrolling the content to the left with a specified speed percentage.
2263
+ * The base step size for grid lines and guide snapping in the specified unit.
2040
2264
  */
2041
- autoScrollLeft(percent?: number): void;
2265
+ @Property()
2266
+ step: number;
2042
2267
  /**
2043
- * Stops any active auto-scrolling to the left.
2268
+ * A larger step size for major grid lines, if different from step.
2044
2269
  */
2045
- stopAutoScrollLeft(): void;
2270
+ @Property()
2271
+ step_big: number;
2046
2272
  /**
2047
- * Initiates auto-scrolling upwards.
2273
+ * The magnetic snap distance for guides in the specified unit.
2048
2274
  */
2049
- private startAutoScrollTop;
2275
+ @Property()
2276
+ magnetic: number;
2050
2277
  /**
2051
- * Starts auto-scrolling the content upwards with a specified speed percentage.
2278
+ * Reference to the main grid container element.
2052
2279
  */
2053
- autoScrollTop(percent?: number): void;
2280
+ @ViewElement()
2281
+ protected gridEl: HTMLDivElement;
2054
2282
  /**
2055
- * Stops any active auto-scrolling upwards.
2283
+ * Reference to the element containing column grid lines.
2056
2284
  */
2057
- stopAutoScrollTop(): void;
2285
+ @ViewElement()
2286
+ protected colsEl: HTMLDivElement;
2058
2287
  /**
2059
- * Initiates auto-scrolling downwards.
2288
+ * Reference to the element containing row grid lines.
2060
2289
  */
2061
- private startAutoScrollBottom;
2290
+ @ViewElement()
2291
+ protected rowsEl: HTMLDivElement;
2062
2292
  /**
2063
- * Starts auto-scrolling the content downwards with a specified speed percentage.
2293
+ * Reference to the top ruler element.
2064
2294
  */
2065
- autoScrollBottom(percent?: number): void;
2295
+ @ViewElement()
2296
+ protected rulerTopEl: HTMLDivElement;
2066
2297
  /**
2067
- * Stops any active auto-scrolling downwards.
2298
+ * Reference to the left ruler element.
2068
2299
  */
2069
- stopAutoScrollBottom(): void;
2300
+ @ViewElement()
2301
+ protected rulerLeftEl: HTMLDivElement;
2070
2302
  /**
2071
- * Creates a new SVG DOMMatrix for transformations.
2303
+ * Reference to the content area of the top ruler.
2072
2304
  */
2073
- private createMatrix;
2305
+ @ViewElement()
2306
+ protected rulerTopContentEl: HTMLDivElement;
2074
2307
  /**
2075
- * Calculates the midpoint between two touch trackers.
2308
+ * Reference to the content area of the left ruler.
2076
2309
  */
2077
- private getMidPoint;
2310
+ @ViewElement()
2311
+ protected rulerLeftContentEl: HTMLDivElement;
2078
2312
  /**
2079
- * Calculates the distance between two touch trackers.
2313
+ * Reference to the element containing the draggable guides.
2080
2314
  */
2081
- private getDistance;
2315
+ @ViewElement()
2316
+ protected guidesEl: HTMLDivElement;
2082
2317
  /**
2083
- * Zooms the content around a specific client coordinate.
2318
+ * Reference to the lock indicator element.
2084
2319
  */
2085
- zoomOnPoint(clientX: number, clientY: number, newZoom: number): void;
2320
+ @ViewElement()
2321
+ protected lockEl: HTMLDivElement;
2086
2322
  /**
2087
- * Handles the logic for pinch-to-zoom gestures.
2323
+ * Converts a given number from the component's unit to pixels.
2088
2324
  */
2089
- private pinchAction;
2325
+ inPx(nb: number): number;
2090
2326
  /**
2091
- * Manages press, drag, and touch events for the scrollable component.
2327
+ * Converts a given number from pixels to the component's unit.
2092
2328
  */
2093
- private pressManager;
2329
+ fromPx(nbPx: number): number;
2094
2330
  /**
2095
- * Attaches primary event listeners for wheel, touch (via PressManager), and pointer events.
2331
+ * Toggles the lock property, enabling or disabling guide interaction.
2096
2332
  */
2097
- private addAction;
2333
+ protected toggleLock(): void;
2098
2334
  /**
2099
- * Attaches event listeners to document.body for move-related touch/pointer events.
2335
+ * Renders the grid lines (columns and rows) based on configured nb_col, nb_row, col_width, and row_height.
2100
2336
  */
2101
- private addActionMove;
2337
+ protected draw(): void;
2102
2338
  /**
2103
- * Removes event listeners from document.body for move-related touch/pointer events.
2339
+ * Renders the top ruler, including major and minor step markers, based on step, step_big, and ruler_size.
2104
2340
  */
2105
- private removeActionMove;
2341
+ protected drawRulerTop(): void;
2106
2342
  /**
2107
- * Adds drag-and-drop functionality to the custom scrollbar elements (horizontal or vertical).
2343
+ * Renders the left ruler, including major and minor step markers, based on step, step_big, and ruler_size.
2108
2344
  */
2109
- private addScrollDrag;
2345
+ protected drawRulerLeft(): void;
2110
2346
  /**
2111
- * Determines whether a scroll event should stop propagation based on scroll boundaries.
2347
+ * Adds drag-and-drop functionality to the left ruler area for creating and moving horizontal GridGuideHelper instances. Also adds a double-press listener to prompt for a specific top position.
2112
2348
  */
2113
- private shouldStopPropagation;
2349
+ protected addDragLeft(): void;
2114
2350
  /**
2115
- * Adds a delta value to the current momentum and starts the rendering animation.
2351
+ * Adds drag-and-drop functionality to the top ruler area for creating and moving vertical GridGuideHelper instances. Also adds a double-press listener to prompt for a specific left position.
2116
2352
  */
2117
- private addDelta;
2353
+ protected addDragTop(): void;
2118
2354
  /**
2119
- * Event handler for wheel events, managing scrolling and pinch-to-zoom (with Ctrl key).
2355
+ * Programmatically creates a vertical guide at a specified left position.
2120
2356
  */
2121
- private onWheel;
2357
+ createGuideFromLeft(left: number): void;
2122
2358
  /**
2123
- * Handles the start of a touch or pointer event, initiating tracking.
2359
+ * Programmatically creates a horizontal guide at a specified top position.
2124
2360
  */
2125
- private onTouchStartPointer;
2361
+ createGuideFromTop(top: number): void;
2126
2362
  /**
2127
- * General handler for touch/pointer/mouse start events, resetting momentum and tracking touches.
2363
+ * Sets up keyboard shortcuts (e.g., Ctrl+K followed by 'v' for visible, 'g' for grid, 'r' for ruler, 'j' for guides, 'l' for lock) to control the visibility and state of grid elements.
2128
2364
  */
2129
- private onTouchStart;
2365
+ protected addShortCut(): void;
2130
2366
  /**
2131
- * Handles move events for touch or pointer, updating touch tracking.
2367
+ * Attaches a ResizeObserver to the component to redraw the grid and rulers when the component's dimensions change.
2132
2368
  */
2133
- private onTouchMovePointer;
2369
+ protected addResize(): void;
2134
2370
  /**
2135
- * General handler for touch/pointer/mouse move events, processing pinch-to-zoom or scrolling.
2371
+ * Saves the positions of the currently active GridGuideHelper instances to localStorage for persistence.
2136
2372
  */
2137
- private onTouchMove;
2373
+ save(): void;
2138
2374
  /**
2139
- * Handles end events for touch or pointer, releasing touch tracking.
2375
+ * Loads saved guide positions from localStorage and recreates GridGuideHelper instances.
2140
2376
  */
2141
- private onTouchEndPointer;
2377
+ reload(): void;
2142
2378
  /**
2143
- * General handler for touch/pointer/mouse end events, applying easing momentum and cleaning up.
2379
+ * Lifecycle hook called after the component is created. Initializes the component by reloading saved guides, adding resize observers, keyboard shortcuts, and drag functionalities for rulers, and drawing the initial grid.
2144
2380
  */
2145
- private onTouchEnd;
2381
+ protected postCreation(): void;
2382
+ private __96bef8e5601e05d1929b4ee65a07a90amethodValidateView;
2383
+ }
2384
+ }
2385
+
2386
+ namespace Layout {
2387
+ /**
2388
+ * Utility component for providing visual guides (like rulers or snap lines) within a grid layout. It allows users to drag these guides and snap them to a predefined grid, aiding in precise UI alignment.
2389
+ */
2390
+ class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
2391
+
2146
2392
  /**
2147
- * Calculates the actual offsetWidth and offsetHeight of the content area, accounting for zoom, and determines if dimensions have changed.
2393
+ * Specifies the orientation of the guide: "x" for vertical, "y" for horizontal.
2148
2394
  */
2149
- private calculateRealSize;
2395
+ @Attribute()
2396
+ direction: "y" | "x";
2150
2397
  /**
2151
- * Calculates and adjusts the position of the scrollbar containers based on direction.
2398
+ * Indicates whether the guide is currently being dragged.
2152
2399
  */
2153
- private calculatePositionScrollerContainer;
2400
+ @Attribute()
2401
+ moving: boolean;
2154
2402
  /**
2155
- * Calculates and adjusts the position of the vertical scrollbar container.
2403
+ * Reference to the HTML element within the component's template, likely used to display the guide's current position.
2156
2404
  */
2157
- private calculatePositionScrollerContainerY;
2405
+ @ViewElement()
2406
+ protected positionEl: HTMLDivElement;
2158
2407
  /**
2159
- * Calculates and adjusts the position of the horizontal scrollbar container.
2408
+ * Reference to the parent GridHelper component, which provides context for grid properties like step and magnetic snap.
2160
2409
  */
2161
- private calculatePositionScrollerContainerX;
2410
+ container: Aventus.Layout.GridHelper;
2162
2411
  /**
2163
- * Calculates and sets the size of the custom scrollbar thumb for a given direction.
2412
+ * Updates the inner HTML of the component to display the guide's current position, converted to the appropriate unit by the container.
2164
2413
  */
2165
- private calculateSizeScroller;
2414
+ displayValue(v: number): void;
2166
2415
  /**
2167
- * Applies the zoom transformation to contentZoom and triggers a dimension refresh.
2416
+ * Callback executed when dragging starts. Sets the moving attribute to true.
2168
2417
  */
2169
- private changeZoom;
2418
+ @BindThis()
2419
+ onStart(): void;
2170
2420
  /**
2171
- * Recalculates and updates all scroll-related dimensions and positions. Manages scrollbar visibility and ensures correct layout after size changes.
2421
+ * Calculates a new position for the guide, applying a "magnetic" snapping effect based on the GridHelper's magnetic and step properties.
2172
2422
  */
2173
- private dimensionRefreshed;
2423
+ protected applyMagnetic(valuePx: number): number;
2174
2424
  /**
2175
- * Creates and returns an Aventus.ResizeObserver instance configured to call dimensionRefreshed() on resize events.
2425
+ * Callback executed during horizontal dragging. Updates the guide's top style and positionEl's left style, applying magnetic snapping and displaying the new value.
2176
2426
  */
2177
- private createResizeObserver;
2427
+ @BindThis()
2428
+ onMoveX(e: Aventus.NormalizedEvent): void;
2178
2429
  /**
2179
- * Initializes and attaches the ResizeObserver to monitor the component and its contentWrapper for size changes.
2430
+ * Callback executed during vertical dragging. Updates the guide's left style and positionEl's top style, applying magnetic snapping and displaying the new value.
2180
2431
  */
2181
- private addResizeObserver;
2432
+ @BindThis()
2433
+ onMoveY(e: Aventus.NormalizedEvent): void;
2182
2434
  /**
2183
- * Helper function for safe division, returning nb1 if nb2 is zero or falsy.
2435
+ * Callback executed when dragging stops. Sets moving to false and calls the save() method on the parent container.
2184
2436
  */
2185
- private div;
2437
+ @BindThis()
2438
+ onStop(): void;
2186
2439
  /**
2187
- * Lifecycle hook called after the component is created. Initializes dimensions, sets up resize observers, and adds interaction actions.
2440
+ * Lifecycle hook called after the component is created. Initializes DragAndDrop functionality based on the direction and sets up a PressManager for double-press events to remove the guide. It also finds its parent GridHelper if not already set.
2188
2441
  */
2189
2442
  protected postCreation(): void;
2443
+ private __3fa820429b687b70790c9057fddd9785methodValidateView;
2190
2444
  }
2191
2445
  }
2192
2446
 
@@ -2233,6 +2487,7 @@ abstract class TabHeader<T extends Aventus.Layout.Tabs.Tab> extends Aventus.WebC
2233
2487
  * Lifecycle hook called after the component is created. Overrides the base method to set up press event listeners.
2234
2488
  */
2235
2489
  protected postCreation(): void;
2490
+ private __8a26b12d9d26da323af780206ccddc63methodValidateView;
2236
2491
  }
2237
2492
  }
2238
2493
 
@@ -2258,6 +2513,7 @@ abstract class Tab extends Aventus.WebComponent implements Aventus.DefaultCompon
2258
2513
  * Abstract method that concrete tab implementations must provide. It should return a unique string identifier for the tab, used to link the tab content with its header.
2259
2514
  */
2260
2515
  abstract identifier(): string;
2516
+ private __dfd8961df920e2c5ef48c071239871bbmethodValidateView;
2261
2517
  }
2262
2518
  }
2263
2519
 
@@ -2346,6 +2602,7 @@ abstract class ModalElement<T, U extends Aventus.Modal.ModalOptions<T> = Aventus
2346
2602
  @BindThis()
2347
2603
  protected resolve(response: T, no_close?: boolean): void;
2348
2604
  protected postCreation(): void;
2605
+ private __4bc201e75f3470c42a8daa4497d41d13methodValidateView;
2349
2606
  }
2350
2607
  }
2351
2608
 
@@ -2418,6 +2675,7 @@ abstract class Page<Slug extends Aventus.UriParamsValue = {}> extends Aventus.We
2418
2675
  loadData(state: Aventus.State, path: string): Aventus.Asyncable<boolean | Aventus.State | string>;
2419
2676
  getSlugs(): Partial<Slug> | undefined;
2420
2677
  getSlugs(path: string): Partial<Slug> | undefined;
2678
+ private __28f46aa347ff8ae3a30d15be1cff2d2cmethodValidateView;
2421
2679
  }
2422
2680
  }
2423
2681
 
@@ -2431,6 +2689,7 @@ class Default404 extends Aventus.Navigation.Page implements Aventus.DefaultCompo
2431
2689
  * Overrides the configure method from the base Page class. It returns a PageConfig object with destroy: true, indicating that this page should be destroyed (unloaded) when navigated away from.
2432
2690
  */
2433
2691
  configure(): Aventus.Asyncable<Aventus.Navigation.PageConfig>;
2692
+ private __f88a4d7b578c312aa433d1cb258acdb8methodValidateView;
2434
2693
  }
2435
2694
  }
2436
2695
 
@@ -2499,7 +2758,7 @@ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultCom
2499
2758
  /**
2500
2759
  * Getter for the application's RouterStateManager instance.
2501
2760
  */
2502
- protected get stateManager(): Aventus.StateManager;
2761
+ protected get stateManager(): Aventus.RouterStateManager;
2503
2762
  /**
2504
2763
  * Registers a route that loads its page component asynchronously.
2505
2764
  */
@@ -2567,6 +2826,7 @@ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultCom
2567
2826
  * Lifecycle hook called after the component is created. Initializes the router by registering routes, setting the first URL, and setting up onpopstate for browser history navigation.
2568
2827
  */
2569
2828
  protected postCreation(): void;
2829
+ private __2fdb899e1009c34e410a0b04ed0b370cmethodValidateView;
2570
2830
  }
2571
2831
  }
2572
2832
 
@@ -2652,6 +2912,7 @@ abstract class ToastElement<T extends Aventus.Toast.ToastOptions = Aventus.Toast
2652
2912
  * Lifecycle hook called after the component is created. If showAsked is true, it activates the toast and starts the auto-hide delay.
2653
2913
  */
2654
2914
  protected postCreation(): void;
2915
+ private __2d2ed719f08ee12a15972c589f090dadmethodValidateView;
2655
2916
  }
2656
2917
  }
2657
2918
 
@@ -2781,6 +3042,7 @@ class ToastManager extends Aventus.WebComponent implements Aventus.DefaultCompon
2781
3042
  * Lifecycle hook called when the component is disconnected from the DOM. Clears the static singleton ToastManager.instance if it was this instance.
2782
3043
  */
2783
3044
  protected postDisconnect(): void;
3045
+ private __9b7f2f6f4158ee7dc190242e76c122b3methodValidateView;
2784
3046
  }
2785
3047
  }
2786
3048
 
@@ -2812,16 +3074,16 @@ class Process {
2812
3074
  }
2813
3075
  //#endregion js def //
2814
3076
  //#region js src //
2815
- {"namespace":"Aventus","available":[{"code":"const ProgressCircle = class ProgressCircle extends Aventus.WebComponent {\n static get observedAttributes() {return [\"value\", \"stroke_width\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'value'() { return this.getNumberProp('value') }\n set 'value'(val) { this.setNumberAttr('value', val) }\nget 'stroke_width'() { return this.getNumberProp('stroke_width') }\n set 'stroke_width'(val) { this.setNumberAttr('stroke_width', val) }\n svg;\n backCircle;\n percentCircle;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"value\", ((target) => {\n target.render();\n}));\nthis.__addPropertyActions(\"stroke_width\", ((target) => {\n target.render();\n}));\n }\n static __style = `:host{--_progress-circle-back-circle-color: var(--progress-circle-back-circle-color, rgba(191, 219, 254, .5));--_progress-circle-percent-circle-color: var(--progress-circle-percent-circle-color, #3b82f6);--_progress-circle-transition: var(--progress-circle-transition, stroke 0.3s cubic-bezier(.4, 0, .2, 1), stroke-dashoffset 0.3s cubic-bezier(.4, 0, .2, 1))}:host{align-items:center;aspect-ratio:1/1;display:flex;flex-direction:column;justify-content:center;position:relative;width:60px}:host .container{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;width:100%}:host .container svg{height:100%;transform:rotate(-90deg);width:100%}:host .container svg .back-circle{fill:rgba(0,0,0,0);stroke:var(--_progress-circle-back-circle-color);transition:stroke linear .2s}:host .container svg .percent-circle{fill:rgba(0,0,0,0);stroke:var(--_progress-circle-percent-circle-color);transition:var(--_progress-circle-transition)}:host .content{display:flex;position:absolute}`;\n __getStatic() {\n return ProgressCircle;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ProgressCircle.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"container\" _id=\"progresscircle_0\"></div><div class=\"content\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"containerEl\",\n \"ids\": [\n \"progresscircle_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"ProgressCircle\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('value')){ this['value'] = 40; }\nif(!this.hasAttribute('stroke_width')){ this['stroke_width'] = 6; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('value');\nthis.__upgradeProperty('stroke_width');\n }\n getLimitedValue(input) {\n if (input === undefined) {\n return 0;\n }\n else if (input > 100) {\n return 100;\n }\n else {\n return input;\n }\n }\n render() {\n let min = Math.min(this.offsetWidth, this.offsetHeight);\n if (min == 0)\n return;\n const value = this.getLimitedValue(this.value);\n const radius = min / 2;\n const strokeWidth = this.stroke_width;\n const normalizedRadius = radius - strokeWidth / 2;\n const circumference = normalizedRadius * 2 * Math.PI;\n const strokeDashoffset = (value / 100) * circumference;\n const offset = circumference - strokeDashoffset;\n let appendSvg = false;\n if (!this.svg) {\n appendSvg = true;\n this.svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n }\n this.svg.setAttribute(\"width\", radius * 2 + \"\");\n this.svg.setAttribute(\"height\", radius * 2 + \"\");\n this.svg.setAttribute(\"viewBox\", \"0 0 \" + (radius * 2) + \" \" + (radius * 2));\n if (!this.backCircle) {\n this.backCircle = document.createElementNS(\"http://www.w3.org/2000/svg\", \"circle\");\n this.svg.appendChild(this.backCircle);\n }\n this.backCircle.classList.add(\"back-circle\");\n this.backCircle.setAttribute(\"r\", normalizedRadius + \"\");\n this.backCircle.setAttribute(\"cx\", radius + \"\");\n this.backCircle.setAttribute(\"cy\", radius + \"\");\n this.backCircle.setAttribute(\"stroke-width\", strokeWidth + \"\");\n this.backCircle.setAttribute(\"stroke-linecap\", \"round\");\n if (!this.percentCircle) {\n this.percentCircle = document.createElementNS(\"http://www.w3.org/2000/svg\", \"circle\");\n this.svg.appendChild(this.percentCircle);\n }\n this.percentCircle.classList.add(\"percent-circle\");\n this.percentCircle.setAttribute(\"r\", normalizedRadius + \"\");\n this.percentCircle.setAttribute(\"cx\", radius + \"\");\n this.percentCircle.setAttribute(\"cy\", radius + \"\");\n this.percentCircle.setAttribute(\"stroke-width\", strokeWidth + \"\");\n this.percentCircle.setAttribute(\"stroke-dasharray\", circumference + \" \" + circumference);\n this.percentCircle.setAttribute(\"stroke-dashoffset\", offset + \"\");\n this.percentCircle.setAttribute(\"stroke-linecap\", \"round\");\n if (appendSvg) {\n this.containerEl.appendChild(this.svg);\n }\n }\n postCreation() {\n new Aventus.ResizeObserver(() => {\n this.render();\n }).observe(this);\n this.render();\n }\n}\nProgressCircle.Namespace=`Aventus`;\nProgressCircle.Tag=`av-progress-circle`;\n__as1(_, 'ProgressCircle', ProgressCircle);\nif(!window.customElements.get('av-progress-circle')){window.customElements.define('av-progress-circle', ProgressCircle);Aventus.WebComponentInstance.registerDefinition(ProgressCircle);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Property","isStrong":false},{"fullName":"ViewElement","isStrong":false}],"fullName":"Aventus.ProgressCircle","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-progress-circle","slots":{"default":{"local":true}}},{"code":"let RouterStateManager=class RouterStateManager extends Aventus.StateManager {\n /**\n * Retrieves the singleton instance of the RouterStateManager.\n */\n static getInstance() {\n return Aventus.Instance.get(RouterStateManager);\n }\n}\nRouterStateManager.Namespace=`Aventus`;\n__as1(_, 'RouterStateManager', RouterStateManager);\n","dependencies":[{"fullName":"Aventus.StateManager","isStrong":true}],"fullName":"Aventus.RouterStateManager","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Navigation.RouterLink = class RouterLink extends Aventus.WebComponent {\n get 'state'() { return this.getStringAttr('state') }\n set 'state'(val) { this.setStringAttr('state', val) }\nget 'active_state'() { return this.getStringAttr('active_state') }\n set 'active_state'(val) { this.setStringAttr('active_state', val) }\n onActiveChange = new Aventus.Callback();\n static __style = `:host a{color:inherit;display:contents;text-decoration:none}`;\n __getStatic() {\n return RouterLink;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(RouterLink.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<a _id=\"routerlink_0\"><slot></slot></a>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"content\": {\n \"routerlink_0°href\": {\n \"fct\": (c) => `${c.print(c.comp.__ad88894dc7dea62195d227cdd21fc210method0())}`,\n \"once\": true\n }\n },\n \"events\": [\n {\n \"eventName\": \"click\",\n \"id\": \"routerlink_0\",\n \"fct\": (e, c) => c.comp.prevent(e)\n }\n ]\n});\n }\n getClassName() {\n return \"RouterLink\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('state')){ this['state'] = undefined; }\nif(!this.hasAttribute('active_state')){ this['active_state'] = undefined; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('state');\nthis.__upgradeProperty('active_state');\n }\n addClickEvent() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n if (this.state === undefined)\n return;\n let state = this.state;\n if (this.state.startsWith(\".\")) {\n state = Aventus.Instance.get(RouterStateManager).getState()?.name ?? \"\";\n if (!state.endsWith(\"/\")) {\n state += \"/\";\n }\n state += this.state;\n state = Aventus.Uri.normalize(state);\n }\n Aventus.State.activate(state, Aventus.Instance.get(RouterStateManager));\n }\n });\n }\n registerActiveStateListener() {\n let activeState = this.state;\n if (this.active_state) {\n activeState = this.active_state;\n }\n if (activeState === undefined)\n return;\n Aventus.Instance.get(RouterStateManager).subscribe(activeState, {\n active: () => {\n this.classList.add(\"active\");\n this.onActiveChange.trigger(true);\n },\n inactive: () => {\n this.classList.remove(\"active\");\n this.onActiveChange.trigger(false);\n }\n });\n }\n prevent(e) {\n e.preventDefault();\n }\n postCreation() {\n this.registerActiveStateListener();\n this.addClickEvent();\n }\n __ad88894dc7dea62195d227cdd21fc210method0() {\n return this.state;\n }\n}\nNavigation.RouterLink.Namespace=`Aventus.Navigation`;\nNavigation.RouterLink.Tag=`av-router-link`;\n__as1(_.Navigation, 'RouterLink', Navigation.RouterLink);\nif(!window.customElements.get('av-router-link')){window.customElements.define('av-router-link', Navigation.RouterLink);Aventus.WebComponentInstance.registerDefinition(Navigation.RouterLink);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Deprecated","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.NotVoid","isStrong":false}],"fullName":"Aventus.Navigation.RouterLink","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-router-link","slots":{"default":{"local":true}}},{"code":"Navigation.Link = class Link extends Aventus.WebComponent {\n get 'to'() { return this.getStringAttr('to') }\n set 'to'(val) { this.setStringAttr('to', val) }\nget 'active_pattern'() { return this.getStringAttr('active_pattern') }\n set 'active_pattern'(val) { this.setStringAttr('active_pattern', val) }\n onActiveChange = new Aventus.Callback();\n static __style = `:host{display:contents}:host a{color:inherit;display:contents;text-decoration:none}`;\n __getStatic() {\n return Link;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Link.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<a _id=\"link_0\"><slot></slot></a>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"content\": {\n \"link_0°href\": {\n \"fct\": (c) => `${c.print(c.comp.__7e4c6c9fe944acd9b1174c61347fdcb6method0())}`,\n \"once\": true\n }\n },\n \"events\": [\n {\n \"eventName\": \"click\",\n \"id\": \"link_0\",\n \"fct\": (e, c) => c.comp.prevent(e)\n }\n ]\n});\n }\n getClassName() {\n return \"Link\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('to')){ this['to'] = undefined; }\nif(!this.hasAttribute('active_pattern')){ this['active_pattern'] = undefined; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('to');\nthis.__upgradeProperty('active_pattern');\n }\n addClickEvent() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n if (this.to === undefined)\n return false;\n let to = this.to;\n if (this.to.startsWith(\".\")) {\n to = Aventus.Instance.get(RouterStateManager).getState()?.name ?? \"\";\n if (!to.endsWith(\"/\")) {\n to += \"/\";\n }\n to += this.to;\n to = Aventus.Uri.normalize(to);\n }\n Aventus.State.activate(to, Aventus.Instance.get(RouterStateManager));\n return true;\n }\n });\n }\n registerActivetoListener() {\n let activeto = this.to;\n if (this.active_pattern) {\n activeto = this.active_pattern;\n }\n if (activeto === undefined)\n return;\n Aventus.Instance.get(RouterStateManager).subscribe(activeto, {\n active: () => {\n this.classList.add(\"active\");\n this.onActiveChange.trigger(true);\n },\n inactive: () => {\n this.classList.remove(\"active\");\n this.onActiveChange.trigger(false);\n }\n });\n }\n prevent(e) {\n e.preventDefault();\n }\n postCreation() {\n this.registerActivetoListener();\n this.addClickEvent();\n }\n __7e4c6c9fe944acd9b1174c61347fdcb6method0() {\n return this.to;\n }\n}\nNavigation.Link.Namespace=`Aventus.Navigation`;\nNavigation.Link.Tag=`av-link`;\n__as1(_.Navigation, 'Link', Navigation.Link);\nif(!window.customElements.get('av-link')){window.customElements.define('av-link', Navigation.Link);Aventus.WebComponentInstance.registerDefinition(Navigation.Link);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.NotVoid","isStrong":false}],"fullName":"Aventus.Navigation.Link","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-link","slots":{"default":{"local":true}}},{"code":"let Tracker=class Tracker {\n /**\n * Multiplier for velocity calculations based on device pixel ratio.\n */\n velocityMultiplier = window.devicePixelRatio;\n /**\n * Timestamp of the last update.\n */\n updateTime = performance.now();\n /**\n * Change in position since the last update.\n */\n delta = { x: 0, y: 0 };\n /**\n * Current velocity of the tracker.\n */\n velocity = { x: 0, y: 0 };\n /**\n * Last recorded position.\n */\n lastPosition = { x: 0, y: 0 };\n /**\n * Initializes a new Tracker instance.\n */\n constructor(touch) {\n this.lastPosition = this.getPosition(touch);\n }\n /**\n * Updates the tracker's position, delta, and velocity.\n */\n update(touch) {\n const { velocity, updateTime, lastPosition, } = this;\n const now = performance.now();\n const position = this.getPosition(touch);\n const delta = {\n x: -(position.x - lastPosition.x),\n y: -(position.y - lastPosition.y),\n };\n const duration = (now - updateTime) || 16.7;\n const vx = delta.x / duration * 16.7;\n const vy = delta.y / duration * 16.7;\n velocity.x = vx * this.velocityMultiplier;\n velocity.y = vy * this.velocityMultiplier;\n this.delta = delta;\n this.updateTime = now;\n this.lastPosition = position;\n }\n /**\n * Extracts pointer data from a given event.\n */\n getPointerData(evt) {\n return evt.touches ? evt.touches[evt.touches.length - 1] : evt;\n }\n /**\n * Retrieves the client coordinates from a pointer event.\n */\n getPosition(evt) {\n const data = this.getPointerData(evt);\n return {\n x: data.clientX,\n y: data.clientY,\n };\n }\n}\nTracker.Namespace=`Aventus`;\n__as1(_, 'Tracker', Tracker);\n","dependencies":[],"fullName":"Aventus.Tracker","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.Row = class Row extends Aventus.WebComponent {\n static __style = `:host{--_col-gap: var(--col-gap, 0px);--_col-gap-y: var(--col-gap-y, var(--_col-gap));--_col-gap-x: var(--col-gap-x, var(--_col-gap))}:host{container-name:row;container-type:inline-size;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--_col-gap-y) var(--_col-gap-x);width:100%}`;\n constructor() {\n super();\n this.style.containerName = \"row\";\n this.style.containerType = \"inline-size\";\n }\n __getStatic() {\n return Row;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Row.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Row\";\n }\n}\nLayout.Row.Namespace=`Aventus.Layout`;\nLayout.Row.Tag=`av-row`;\n__as1(_.Layout, 'Row', Layout.Row);\nif(!window.customElements.get('av-row')){window.customElements.define('av-row', Layout.Row);Aventus.WebComponentInstance.registerDefinition(Layout.Row);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true}],"fullName":"Aventus.Layout.Row","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-row","slots":{"default":{"local":true}}},{"code":"(function (SpecialTouch) {\n SpecialTouch[SpecialTouch[\"Backspace\"] = 0] = \"Backspace\";\n SpecialTouch[SpecialTouch[\"Insert\"] = 1] = \"Insert\";\n SpecialTouch[SpecialTouch[\"End\"] = 2] = \"End\";\n SpecialTouch[SpecialTouch[\"PageDown\"] = 3] = \"PageDown\";\n SpecialTouch[SpecialTouch[\"PageUp\"] = 4] = \"PageUp\";\n SpecialTouch[SpecialTouch[\"Escape\"] = 5] = \"Escape\";\n SpecialTouch[SpecialTouch[\"AltGraph\"] = 6] = \"AltGraph\";\n SpecialTouch[SpecialTouch[\"Control\"] = 7] = \"Control\";\n SpecialTouch[SpecialTouch[\"Alt\"] = 8] = \"Alt\";\n SpecialTouch[SpecialTouch[\"Shift\"] = 9] = \"Shift\";\n SpecialTouch[SpecialTouch[\"CapsLock\"] = 10] = \"CapsLock\";\n SpecialTouch[SpecialTouch[\"Tab\"] = 11] = \"Tab\";\n SpecialTouch[SpecialTouch[\"Delete\"] = 12] = \"Delete\";\n SpecialTouch[SpecialTouch[\"ArrowRight\"] = 13] = \"ArrowRight\";\n SpecialTouch[SpecialTouch[\"ArrowLeft\"] = 14] = \"ArrowLeft\";\n SpecialTouch[SpecialTouch[\"ArrowUp\"] = 15] = \"ArrowUp\";\n SpecialTouch[SpecialTouch[\"ArrowDown\"] = 16] = \"ArrowDown\";\n SpecialTouch[SpecialTouch[\"Enter\"] = 17] = \"Enter\";\n})(Lib.SpecialTouch || (Lib.SpecialTouch = {}));\n__as1(_.Lib, 'SpecialTouch', Lib.SpecialTouch);\n","dependencies":[],"fullName":"Aventus.Lib.SpecialTouch","required":false,"type":6,"isExported":true,"convertibleName":""},{"code":"const Collapse = class Collapse extends Aventus.WebComponent {\n get 'open'() { return this.getBoolAttr('open') }\n set 'open'(val) { this.setBoolAttr('open', val) }\nget 'no_animation'() { return this.getBoolAttr('no_animation') }\n set 'no_animation'(val) { this.setBoolAttr('no_animation', val) }\nget 'horizontal'() { return this.getBoolAttr('horizontal') }\n set 'horizontal'(val) { this.setBoolAttr('horizontal', val) }\nget 'reverse'() { return this.getBoolAttr('reverse') }\n set 'reverse'(val) { this.setBoolAttr('reverse', val) }\n static __style = `:host{--_collapse-transition-duration: var(--collapse-transition-duration, 0.5s);--_collapse-transition-timing-function: var(--collapse-transition-timing-function, cubic-bezier(0.65, 0, 0.15, 1))}:host .title{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host .collapse{display:grid;transition-duration:var(--_collapse-transition-duration);transition-timing-function:var(--_collapse-transition-timing-function);transition-property:grid-template-rows,grid-template-columns}:host .collapse .content{overflow:hidden}:host([no_animation]) .collapse{transition:none}:host(:not([horizontal])) .collapse{grid-template-rows:0fr}:host([open]:not([horizontal])) .collapse{grid-template-rows:1fr}:host([horizontal]) .collapse{grid-template-columns:0fr}:host([open][horizontal]) .collapse{grid-template-columns:1fr}:host([reverse]) .collapse{justify-content:end}`;\n __getStatic() {\n return Collapse;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Collapse.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'header':`<slot name=\"header\"></slot>`,'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"title\" _id=\"collapse_0\">\r <slot name=\"header\"></slot>\r</div><div class=\"collapse\" _id=\"collapse_1\">\r <div class=\"content\">\r <slot></slot>\r </div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"events\": [\n {\n \"eventName\": \"transitionend\",\n \"id\": \"collapse_1\",\n \"fct\": (e, c) => c.comp.transitionEnd(e)\n }\n ],\n \"pressEvents\": [\n {\n \"id\": \"collapse_0\",\n \"onPress\": (e, pressInstance, c) => { c.comp.toggleOpen(e, pressInstance); }\n }\n ]\n});\n }\n getClassName() {\n return \"Collapse\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('open')) { this.attributeChangedCallback('open', false, false); }\nif(!this.hasAttribute('no_animation')) { this.attributeChangedCallback('no_animation', false, false); }\nif(!this.hasAttribute('horizontal')) { this.attributeChangedCallback('horizontal', false, false); }\nif(!this.hasAttribute('reverse')) { this.attributeChangedCallback('reverse', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('open');\nthis.__upgradeProperty('no_animation');\nthis.__upgradeProperty('horizontal');\nthis.__upgradeProperty('reverse');\n }\n __listBoolProps() { return [\"open\",\"no_animation\",\"horizontal\",\"reverse\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n transitionEnd(e) {\n let cst = e.constructor;\n const new_e = new cst(e.type, e);\n this.dispatchEvent(new_e);\n }\n toggleOpen() {\n this.open = !this.open;\n }\n}\nCollapse.Namespace=`Aventus`;\nCollapse.Tag=`av-collapse`;\n__as1(_, 'Collapse', Collapse);\nif(!window.customElements.get('av-collapse')){window.customElements.define('av-collapse', Collapse);Aventus.WebComponentInstance.registerDefinition(Collapse);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false}],"fullName":"Aventus.Collapse","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-collapse","slots":{"header":{"local":true},"default":{"local":true}}},{"code":"Layout.Col = class Col extends Aventus.WebComponent {\n get 'use_container'() { return this.getBoolAttr('use_container') }\n set 'use_container'(val) { this.setBoolAttr('use_container', val) }\nget 'size'() { return this.getNumberAttr('size') }\n set 'size'(val) { this.setNumberAttr('size', val) }\nget 'size_xs'() { return this.getNumberAttr('size_xs') }\n set 'size_xs'(val) { this.setNumberAttr('size_xs', val) }\nget 'size_sm'() { return this.getNumberAttr('size_sm') }\n set 'size_sm'(val) { this.setNumberAttr('size_sm', val) }\nget 'size_md'() { return this.getNumberAttr('size_md') }\n set 'size_md'(val) { this.setNumberAttr('size_md', val) }\nget 'size_lg'() { return this.getNumberAttr('size_lg') }\n set 'size_lg'(val) { this.setNumberAttr('size_lg', val) }\nget 'size_xl'() { return this.getNumberAttr('size_xl') }\n set 'size_xl'(val) { this.setNumberAttr('size_xl', val) }\nget 'offset'() { return this.getNumberAttr('offset') }\n set 'offset'(val) { this.setNumberAttr('offset', val) }\nget 'offset_xs'() { return this.getNumberAttr('offset_xs') }\n set 'offset_xs'(val) { this.setNumberAttr('offset_xs', val) }\nget 'offset_sm'() { return this.getNumberAttr('offset_sm') }\n set 'offset_sm'(val) { this.setNumberAttr('offset_sm', val) }\nget 'offset_md'() { return this.getNumberAttr('offset_md') }\n set 'offset_md'(val) { this.setNumberAttr('offset_md', val) }\nget 'offset_lg'() { return this.getNumberAttr('offset_lg') }\n set 'offset_lg'(val) { this.setNumberAttr('offset_lg', val) }\nget 'offset_xl'() { return this.getNumberAttr('offset_xl') }\n set 'offset_xl'(val) { this.setNumberAttr('offset_xl', val) }\nget 'offset_right'() { return this.getNumberAttr('offset_right') }\n set 'offset_right'(val) { this.setNumberAttr('offset_right', val) }\nget 'offset_right_xs'() { return this.getNumberAttr('offset_right_xs') }\n set 'offset_right_xs'(val) { this.setNumberAttr('offset_right_xs', val) }\nget 'offset_right_sm'() { return this.getNumberAttr('offset_right_sm') }\n set 'offset_right_sm'(val) { this.setNumberAttr('offset_right_sm', val) }\nget 'offset_right_md'() { return this.getNumberAttr('offset_right_md') }\n set 'offset_right_md'(val) { this.setNumberAttr('offset_right_md', val) }\nget 'offset_right_lg'() { return this.getNumberAttr('offset_right_lg') }\n set 'offset_right_lg'(val) { this.setNumberAttr('offset_right_lg', val) }\nget 'offset_right_xl'() { return this.getNumberAttr('offset_right_xl') }\n set 'offset_right_xl'(val) { this.setNumberAttr('offset_right_xl', val) }\nget 'center'() { return this.getBoolAttr('center') }\n set 'center'(val) { this.setBoolAttr('center', val) }\n static use_container = false;\n static __style = `:host{--_col-padding: var(--col-padding, 8px)}:host{display:flex;padding:var(--_col-padding)}:host([center]){justify-content:center}:host([size=\"0\"]){width:0}:host([offset=\"0\"]){margin-left:0}:host([offset_right=\"0\"]){margin-right:0}:host([size=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([offset=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([offset_right=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([size=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([offset=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([offset_right=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([size=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([offset=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([offset_right=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([size=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([offset=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([offset_right=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([size=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([offset=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([offset_right=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([size=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([offset=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([offset_right=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([size=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([offset=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([offset_right=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([size=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([offset=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([offset_right=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([size=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([offset=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([offset_right=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([size=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([offset=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([offset_right=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([size=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([offset=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([offset_right=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([size=\"12\"]){width:100%}:host([offset=\"12\"]){margin-left:100%}:host([offset_right=\"12\"]){margin-right:100%}@container row (min-width: 300px){:host([use_container][size_xs=\"0\"]){width:0}:host([use_container][offset_xs=\"0\"]){margin-left:0}:host([use_container][offset_right_xs=\"0\"]){margin-right:0}:host([use_container][size_xs=\"0\"]){display:none}:host([use_container][size_xs=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_xs=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_xs=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_xs=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_xs=\"12\"]){width:100%}:host([use_container][offset_xs=\"12\"]){margin-left:100%}:host([use_container][offset_right_xs=\"12\"]){margin-right:100%}}@media screen and (min-width: 300px){:host(:not([use_container])[size_xs=\"0\"]){width:0}:host(:not([use_container])[offset_xs=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_xs=\"0\"]){margin-right:0}:host(:not([use_container])[size_xs=\"0\"]){display:none}:host(:not([use_container])[size_xs=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_xs=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xs=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xs=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_xs=\"12\"]){width:100%}:host(:not([use_container])[offset_xs=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_xs=\"12\"]){margin-right:100%}}@container row (min-width: 540px){:host([use_container][size_sm=\"0\"]){width:0}:host([use_container][offset_sm=\"0\"]){margin-left:0}:host([use_container][offset_right_sm=\"0\"]){margin-right:0}:host([use_container][size_sm=\"0\"]){display:none}:host([use_container][size_sm=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_sm=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_sm=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_sm=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_sm=\"12\"]){width:100%}:host([use_container][offset_sm=\"12\"]){margin-left:100%}:host([use_container][offset_right_sm=\"12\"]){margin-right:100%}}@media screen and (min-width: 540px){:host(:not([use_container])[size_sm=\"0\"]){width:0}:host(:not([use_container])[offset_sm=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_sm=\"0\"]){margin-right:0}:host(:not([use_container])[size_sm=\"0\"]){display:none}:host(:not([use_container])[size_sm=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_sm=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_sm=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_sm=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_sm=\"12\"]){width:100%}:host(:not([use_container])[offset_sm=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_sm=\"12\"]){margin-right:100%}}@container row (min-width: 720px){:host([use_container][size_md=\"0\"]){width:0}:host([use_container][offset_md=\"0\"]){margin-left:0}:host([use_container][offset_right_md=\"0\"]){margin-right:0}:host([use_container][size_md=\"0\"]){display:none}:host([use_container][size_md=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_md=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_md=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_md=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_md=\"12\"]){width:100%}:host([use_container][offset_md=\"12\"]){margin-left:100%}:host([use_container][offset_right_md=\"12\"]){margin-right:100%}}@media screen and (min-width: 720px){:host(:not([use_container])[size_md=\"0\"]){width:0}:host(:not([use_container])[offset_md=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_md=\"0\"]){margin-right:0}:host(:not([use_container])[size_md=\"0\"]){display:none}:host(:not([use_container])[size_md=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_md=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_md=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_md=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_md=\"12\"]){width:100%}:host(:not([use_container])[offset_md=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_md=\"12\"]){margin-right:100%}}@container row (min-width: 960px){:host([use_container][size_lg=\"0\"]){width:0}:host([use_container][offset_lg=\"0\"]){margin-left:0}:host([use_container][offset_right_lg=\"0\"]){margin-right:0}:host([use_container][size_lg=\"0\"]){display:none}:host([use_container][size_lg=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_lg=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_lg=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_lg=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_lg=\"12\"]){width:100%}:host([use_container][offset_lg=\"12\"]){margin-left:100%}:host([use_container][offset_right_lg=\"12\"]){margin-right:100%}}@media screen and (min-width: 960px){:host(:not([use_container])[size_lg=\"0\"]){width:0}:host(:not([use_container])[offset_lg=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_lg=\"0\"]){margin-right:0}:host(:not([use_container])[size_lg=\"0\"]){display:none}:host(:not([use_container])[size_lg=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_lg=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_lg=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_lg=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_lg=\"12\"]){width:100%}:host(:not([use_container])[offset_lg=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_lg=\"12\"]){margin-right:100%}}@container row (min-width: 1140px){:host([use_container][size_xl=\"0\"]){width:0}:host([use_container][offset_xl=\"0\"]){margin-left:0}:host([use_container][offset_right_xl=\"0\"]){margin-right:0}:host([use_container][size_xl=\"0\"]){display:none}:host([use_container][size_xl=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_xl=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_xl=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_xl=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_xl=\"12\"]){width:100%}:host([use_container][offset_xl=\"12\"]){margin-left:100%}:host([use_container][offset_right_xl=\"12\"]){margin-right:100%}}@media screen and (min-width: 1140px){:host(:not([use_container])[size_xl=\"0\"]){width:0}:host(:not([use_container])[offset_xl=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_xl=\"0\"]){margin-right:0}:host(:not([use_container])[size_xl=\"0\"]){display:none}:host(:not([use_container])[size_xl=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_xl=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xl=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xl=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_xl=\"12\"]){width:100%}:host(:not([use_container])[offset_xl=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_xl=\"12\"]){margin-right:100%}}`;\n __getStatic() {\n return Col;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Col.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Col\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('use_container') && Layout.Col.use_container) {this.setAttribute('use_container' ,'true'); }\nif(!this.hasAttribute('size')){ this['size'] = undefined; }\nif(!this.hasAttribute('size_xs')){ this['size_xs'] = undefined; }\nif(!this.hasAttribute('size_sm')){ this['size_sm'] = undefined; }\nif(!this.hasAttribute('size_md')){ this['size_md'] = undefined; }\nif(!this.hasAttribute('size_lg')){ this['size_lg'] = undefined; }\nif(!this.hasAttribute('size_xl')){ this['size_xl'] = undefined; }\nif(!this.hasAttribute('offset')){ this['offset'] = undefined; }\nif(!this.hasAttribute('offset_xs')){ this['offset_xs'] = undefined; }\nif(!this.hasAttribute('offset_sm')){ this['offset_sm'] = undefined; }\nif(!this.hasAttribute('offset_md')){ this['offset_md'] = undefined; }\nif(!this.hasAttribute('offset_lg')){ this['offset_lg'] = undefined; }\nif(!this.hasAttribute('offset_xl')){ this['offset_xl'] = undefined; }\nif(!this.hasAttribute('offset_right')){ this['offset_right'] = undefined; }\nif(!this.hasAttribute('offset_right_xs')){ this['offset_right_xs'] = undefined; }\nif(!this.hasAttribute('offset_right_sm')){ this['offset_right_sm'] = undefined; }\nif(!this.hasAttribute('offset_right_md')){ this['offset_right_md'] = undefined; }\nif(!this.hasAttribute('offset_right_lg')){ this['offset_right_lg'] = undefined; }\nif(!this.hasAttribute('offset_right_xl')){ this['offset_right_xl'] = undefined; }\nif(!this.hasAttribute('center')) { this.attributeChangedCallback('center', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('use_container');\nthis.__upgradeProperty('size');\nthis.__upgradeProperty('size_xs');\nthis.__upgradeProperty('size_sm');\nthis.__upgradeProperty('size_md');\nthis.__upgradeProperty('size_lg');\nthis.__upgradeProperty('size_xl');\nthis.__upgradeProperty('offset');\nthis.__upgradeProperty('offset_xs');\nthis.__upgradeProperty('offset_sm');\nthis.__upgradeProperty('offset_md');\nthis.__upgradeProperty('offset_lg');\nthis.__upgradeProperty('offset_xl');\nthis.__upgradeProperty('offset_right');\nthis.__upgradeProperty('offset_right_xs');\nthis.__upgradeProperty('offset_right_sm');\nthis.__upgradeProperty('offset_right_md');\nthis.__upgradeProperty('offset_right_lg');\nthis.__upgradeProperty('offset_right_xl');\nthis.__upgradeProperty('center');\n }\n __listBoolProps() { return [\"use_container\",\"center\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n static configure(options) {\n if (options.use_container !== undefined)\n this.use_container = options.use_container;\n }\n}\nLayout.Col.Namespace=`Aventus.Layout`;\nLayout.Col.Tag=`av-col`;\n__as1(_.Layout, 'Col', Layout.Col);\nif(!window.customElements.get('av-col')){window.customElements.define('av-col', Layout.Col);Aventus.WebComponentInstance.registerDefinition(Layout.Col);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.ColOptions","isStrong":false},{"fullName":"StoryValue","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.Layout.Col","isStrong":false}],"fullName":"Aventus.Layout.Col","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-col","slots":{"default":{"local":true}}},{"code":"const Img = class Img extends Aventus.WebComponent {\n static get observedAttributes() {return [\"src\", \"mode\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'cache'() { return this.getBoolAttr('cache') }\n set 'cache'(val) { this.setBoolAttr('cache', val) }\n get 'src'() { return this.getStringProp('src') }\n set 'src'(val) { this.setStringAttr('src', val) }\nget 'mode'() { return this.getStringProp('mode') }\n set 'mode'(val) { this.setStringAttr('mode', val) }\n isCalculing;\n maxCalculateSize = 10;\n ratio = 1;\n resizeObserver;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"src\", ((target) => {\n target.onSrcChanged();\n}));\nthis.__addPropertyActions(\"mode\", ((target) => {\n if (target.src != \"\") {\n target.calculateSize();\n }\n}));\n }\n static __style = `:host{--_img-color: var(--img-color);--_img-stroke-color: var(--img-stroke-color, var(--_img-color));--_img-fill-color: var(--img-fill-color, var(--_img-color));--_img-color-transition: var(--img-color-transition, none)}:host{display:inline-block;overflow:hidden;font-size:0}:host *{box-sizing:border-box}:host img{opacity:0;transition:filter .3s linear}:host .svg{display:none;height:100%;width:100%}:host .svg svg{height:100%;width:100%}:host([src$=\".svg\"]) img{display:none}:host([src$=\".svg\"]) .svg{display:flex}:host([src$=\".svg\"]) .svg svg{transition:var(--_img-color-transition);stroke:var(--_img-stroke-color);fill:var(--_img-fill-color)}:host([display_bigger]) img{cursor:pointer}:host([display_bigger]) img:hover{filter:brightness(50%)}`;\n __getStatic() {\n return Img;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Img.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<img _id=\"img_0\" /><div class=\"svg\" _id=\"img_1\"></div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"imgEl\",\n \"ids\": [\n \"img_0\"\n ]\n },\n {\n \"name\": \"svgEl\",\n \"ids\": [\n \"img_1\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Img\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('cache')) { this.attributeChangedCallback('cache', false, false); }\nif(!this.hasAttribute('src')){ this['src'] = undefined; }\nif(!this.hasAttribute('mode')){ this['mode'] = \"contains\"; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('cache');\nthis.__upgradeProperty('src');\nthis.__upgradeProperty('mode');\n }\n __listBoolProps() { return [\"cache\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n calculateSize(attempt = 0) {\n if (this.isCalculing || !this.imgEl || !this.svgEl) {\n return;\n }\n if (this.src == \"\") {\n return;\n }\n this.isCalculing = true;\n if (getComputedStyle(this).display == 'none') {\n return;\n }\n if (attempt == this.maxCalculateSize) {\n this.isCalculing = false;\n return;\n }\n let element = this.imgEl;\n if (this.src?.endsWith(\".svg\")) {\n element = this.svgEl;\n }\n this.style.width = '';\n this.style.height = '';\n element.style.width = '';\n element.style.height = '';\n if (element.offsetWidth == 0 && element.offsetHeight == 0) {\n setTimeout(() => {\n this.isCalculing = false;\n this.calculateSize(attempt + 1);\n }, 100);\n return;\n }\n let style = getComputedStyle(this);\n let addedY = Number(style.paddingTop.replace(\"px\", \"\")) + Number(style.paddingBottom.replace(\"px\", \"\")) + Number(style.borderTopWidth.replace(\"px\", \"\")) + Number(style.borderBottomWidth.replace(\"px\", \"\"));\n let addedX = Number(style.paddingLeft.replace(\"px\", \"\")) + Number(style.paddingRight.replace(\"px\", \"\")) + Number(style.borderLeftWidth.replace(\"px\", \"\")) + Number(style.borderRightWidth.replace(\"px\", \"\"));\n let availableHeight = this.offsetHeight - addedY;\n let availableWidth = this.offsetWidth - addedX;\n let sameWidth = (element.offsetWidth == availableWidth);\n let sameHeight = (element.offsetHeight == availableHeight);\n this.ratio = element.offsetWidth / element.offsetHeight;\n if (sameWidth && !sameHeight) {\n // height is set\n element.style.width = (availableHeight * this.ratio) + 'px';\n element.style.height = availableHeight + 'px';\n }\n else if (!sameWidth && sameHeight) {\n // width is set\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n else if (!sameWidth && !sameHeight) {\n if (this.mode == \"stretch\") {\n element.style.width = '100%';\n element.style.height = '100%';\n }\n else if (this.mode == \"contains\") {\n // suppose this height is max\n let newWidth = (availableHeight * this.ratio);\n if (newWidth <= availableWidth) {\n //we can apply this value\n element.style.width = newWidth + 'px';\n element.style.height = availableHeight + 'px';\n }\n else {\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n }\n else if (this.mode == \"cover\") {\n // suppose this height is min\n let newWidth = (availableHeight * this.ratio);\n if (newWidth >= availableWidth) {\n //we can apply this value\n element.style.width = newWidth + 'px';\n element.style.height = availableHeight + 'px';\n }\n else {\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n }\n }\n //center img\n let diffTop = (this.offsetHeight - element.offsetHeight - addedY) / 2;\n let diffLeft = (this.offsetWidth - element.offsetWidth - addedX) / 2;\n element.style.transform = \"translate(\" + diffLeft + \"px, \" + diffTop + \"px)\";\n element.style.opacity = '1';\n this.isCalculing = false;\n }\n async onSrcChanged() {\n if (!this.src || !this.svgEl || !this.imgEl) {\n return;\n }\n if (this.src.endsWith(\".svg\")) {\n let svgContent = await Aventus.ResourceLoader.load(this.src);\n this.svgEl.innerHTML = svgContent;\n this.calculateSize();\n }\n else if (this.cache) {\n let base64 = await Aventus.ResourceLoader.load({\n url: this.src,\n type: 'img'\n });\n this.imgEl.setAttribute(\"src\", base64);\n this.calculateSize();\n }\n else {\n this.imgEl.setAttribute(\"src\", this.src);\n this.calculateSize();\n }\n }\n postDestruction() {\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n }\n postCreation() {\n this.resizeObserver = new Aventus.ResizeObserver({\n fps: 10,\n callback: () => {\n this.calculateSize();\n }\n });\n this.resizeObserver.observe(this);\n }\n}\nImg.Namespace=`Aventus`;\nImg.Tag=`av-img`;\n__as1(_, 'Img', Img);\nif(!window.customElements.get('av-img')){window.customElements.define('av-img', Img);Aventus.WebComponentInstance.registerDefinition(Img);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"Property","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false}],"fullName":"Aventus.Img","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-img","slots":{}},{"code":"Form.isSubclassOf=function isSubclassOf(subClass, superClass) {\n if (typeof subClass !== 'function' || typeof superClass !== 'function')\n return false;\n let proto = subClass.prototype;\n while (proto) {\n if (proto === superClass.prototype)\n return true;\n proto = Object.getPrototypeOf(proto);\n }\n return false;\n}\n__as1(_.Form, 'isSubclassOf', Form.isSubclassOf);\n","dependencies":[],"fullName":"Aventus.Form.isSubclassOf","required":false,"type":4,"isExported":true,"convertibleName":""},{"code":"Layout.Tabs.Tabs = class Tabs extends Aventus.WebComponent {\n activeHeader;\n tabs = {};\n static __style = ``;\n constructor() {\n super();\n if (this.constructor == Tabs) {\n throw \"can't instanciate an abstract class\";\n }\n this.reloadFromSlot = this.reloadFromSlot.bind(this);\n }\n __getStatic() {\n return Tabs;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Tabs.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"header\" _id=\"tabs_0\"></div><div class=\"body\" _id=\"tabs_1\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"headerEl\",\n \"ids\": [\n \"tabs_0\"\n ]\n },\n {\n \"name\": \"bodyEl\",\n \"ids\": [\n \"tabs_1\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Tabs\";\n }\n async loadTabs() {\n // let elements = this.elements;\n let elements = this.getElementsInSlot();\n let first = null;\n for (let element of elements) {\n if (element instanceof _.Layout.Tabs.Tab) {\n element.style.display = 'none';\n this.tabs[element.identifier()] = element;\n let header = new (this.defineTabHeader())();\n this.headerEl.appendChild(header);\n await header.init(element, this);\n if (first == null) {\n first = header;\n }\n else if (!first.tab.selected && element.selected) {\n first = header;\n }\n element.loaded = true;\n }\n }\n if (first) {\n this.setActive(first);\n }\n this.shadowRoot.querySelector(\"slot\")?.addEventListener(\"slotchange\", this.reloadFromSlot);\n }\n async reloadFromSlot() {\n let elements = this.getElementsInSlot();\n let actualTabs = Object.keys(this.tabs);\n let first = null;\n let orders = [];\n for (let element of elements) {\n if (element instanceof _.Layout.Tabs.Tab) {\n element.style.display = 'none';\n const el = element;\n const identifier = element.identifier();\n const indexActual = actualTabs.indexOf(identifier);\n orders.push(identifier);\n if (indexActual == -1) {\n this.tabs[identifier] = el;\n let header = new (this.defineTabHeader())();\n this.headerEl.appendChild(header);\n await header.init(el, this);\n if (first == null) {\n first = header;\n }\n }\n else {\n actualTabs.splice(indexActual, 1);\n if (first == null) {\n first = this.tabs[identifier].tabHeader;\n }\n }\n element.loaded = true;\n }\n }\n for (let missing of actualTabs) {\n this.tabs[missing].tabHeader?.remove();\n delete this.tabs[missing];\n }\n let hasSelected = false;\n for (let identifier in this.tabs) {\n if (this.tabs[identifier].selected) {\n if (!hasSelected) {\n hasSelected = true;\n first = this.tabs[identifier].tabHeader;\n }\n else {\n this.tabs[identifier].selected = false;\n this.tabs[identifier].tabHeader.active = false;\n this.tabs[identifier].style.display = 'none';\n this.tabs[identifier].selected = false;\n }\n }\n }\n if (first != null) {\n this.setActive(first);\n }\n for (let i = 0, j = 0; i < orders.length; i++, j++) {\n const shouldBe = this.tabs[orders[i]].tabHeader;\n if (!shouldBe)\n continue;\n while (j < this.headerEl.children.length && !(this.headerEl.children[j] instanceof _.Layout.Tabs.TabHeader)) {\n j++;\n }\n if (shouldBe != this.headerEl.children[j]) {\n this.headerEl.appendChild(shouldBe);\n }\n }\n }\n setActive(tabHeader) {\n if (typeof tabHeader == 'number') {\n if (this.headerEl.children.length > tabHeader) {\n const header = this.headerEl.children[tabHeader];\n if (header instanceof _.Layout.Tabs.TabHeader) {\n return this.setActive(header);\n }\n }\n return false;\n }\n else if (typeof tabHeader == 'string') {\n const header = this.tabs[tabHeader].tabHeader;\n if (header)\n return this.setActive(header);\n return false;\n }\n if (this.activeHeader) {\n this.activeHeader.active = false;\n this.activeHeader.tab.selected = false;\n this.activeHeader.tab.style.display = 'none';\n }\n this.activeHeader = tabHeader;\n this.activeHeader.active = true;\n this.activeHeader.tab.style.display = '';\n this.activeHeader.tab.selected = true;\n return true;\n }\n postCreation() {\n super.postCreation();\n this.loadTabs();\n }\n}\nLayout.Tabs.Tabs.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'Tabs', Layout.Tabs.Tabs);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Tabs.Tab","isStrong":false},{"fullName":"Aventus.Layout.Tabs.TabHeader","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false}],"fullName":"Aventus.Layout.Tabs.Tabs","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.Validator=class Validator {\n /**\n * The default error message for the validator.\n */\n static msg = \"There is an error\";\n /**\n * Statically tests a value against one or more validators.\n */\n static async Test(validators, value, name, globalValidation) {\n if (!Array.isArray(validators)) {\n validators = [validators];\n }\n let result = [];\n for (let validator of validators) {\n let resultTemp = new validator();\n const temp = await resultTemp.validate(value, name, globalValidation);\n if (temp === false) {\n result.push('Le champs n\\'est pas valide');\n }\n else if (Array.isArray(temp)) {\n for (let error of temp) {\n result.push(error);\n }\n }\n else if (typeof temp == 'string') {\n result.push(temp);\n }\n }\n return result.length == 0 ? undefined : result;\n }\n _msg;\n /**\n * Initializes a new Validator instance with an optional custom error message.\n */\n constructor(msg) {\n this._msg = msg;\n this.validate = this.validate.bind(this);\n }\n /**\n * Retrieves the error message for the validator, optionally replacing placeholders.\n */\n getMsg(replace) {\n let msg = this._msg ?? this.constructor['msg'];\n if (typeof msg == 'function')\n msg = msg();\n if (replace) {\n for (let field in replace) {\n msg = msg.replace(new RegExp(`\\\\{ *${field} *\\\\}`, 'g'), replace[field]);\n }\n }\n return msg;\n }\n}\nForm.Validator.Namespace=`Aventus.Form`;\n__as1(_.Form, 'Validator', Form.Validator);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}],"fullName":"Aventus.Form.Validator","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.Validators.Required=class Required extends _.Form.Validator {\n /**\n * The default error message for a required field.\n */\n static msg = \"Le champs {name} est requis\";\n /**\n * @inheritdoc\n * Validates if the provided value is not undefined, null, or an empty string.\n */\n validate(value, name, globalValidation) {\n const txt = this.getMsg({ name });\n if (value === undefined || value === null) {\n return txt;\n }\n if (typeof value == 'string' && value.trim() == \"\") {\n return txt;\n }\n return true;\n }\n}\nForm.Validators.Required.Namespace=`Aventus.Form.Validators`;\n__as1(_.Form.Validators, 'Required', Form.Validators.Required);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":true}],"fullName":"Aventus.Form.Validators.Required","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.Validators.Email=class Email extends _.Form.Validator {\n /**\n * The default error message for invalid email addresses.\n */\n static msg = \"Please enter a valid email address\";\n /**\n * @inheritdoc\n * Validates if the provided value is a valid email address.\n */\n validate(value, name, globalValidation) {\n if (typeof value == \"string\" && value) {\n if (value.match(/[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,}\\b/) != null) {\n return true;\n }\n return this.getMsg({ name });\n }\n return true;\n }\n}\nForm.Validators.Email.Namespace=`Aventus.Form.Validators`;\n__as1(_.Form.Validators, 'Email', Form.Validators.Email);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":true}],"fullName":"Aventus.Form.Validators.Email","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.FormElement = class FormElement extends Aventus.WebComponent {\n static get observedAttributes() {return [\"disabled\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'has_errors'() { return this.getBoolAttr('has_errors') }\n set 'has_errors'(val) { this.setBoolAttr('has_errors', val) }\n get 'disabled'() { return this.getBoolProp('disabled') }\n set 'disabled'(val) { this.setBoolAttr('disabled', val) }\n get 'value'() {\n\t\t\t\t\t\treturn this.__watch[\"value\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'value'(val) {\n\t\t\t\t\t\tthis.__watch[\"value\"] = val;\n\t\t\t\t\t}\nget 'errors'() {\n\t\t\t\t\t\treturn this.__watch[\"errors\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'errors'(val) {\n\t\t\t\t\t\tthis.__watch[\"errors\"] = val;\n\t\t\t\t\t}\n static get formAssociated() { return true; }\n _form;\n get form() {\n return this._form;\n }\n set form(value) {\n this.unlinkFormPart();\n this._form = value;\n this.linkFormPart();\n }\n internals;\n canLinkValueToForm = false;\n handler = undefined;\n onChange = new Aventus.Callback();\n __registerWatchesActions() {\n this.__addWatchesActions(\"value\", ((target) => {\n target.onValueChange(target.value);\n}));\nthis.__addWatchesActions(\"errors\", ((target) => {\n target.onErrorsChange();\n}));\n super.__registerWatchesActions();\n}\n static __style = ``;\n constructor() {\n super();\n this.internals = this.attachInternals();\n if (this.constructor == FormElement) {\n throw \"can't instanciate an abstract class\";\n }\n this.refreshValueFromForm = this.refreshValueFromForm.bind(this);\n this.onFormValidation = this.onFormValidation.bind(this);\n }\n __getStatic() {\n return FormElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(FormElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"FormElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('has_errors')) { this.attributeChangedCallback('has_errors', false, false); }\nif(!this.hasAttribute('disabled')) { this.attributeChangedCallback('disabled', false, false); }\n }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"value\"] = undefined;\nw[\"errors\"] = [];\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('form');\nthis.__upgradeProperty('has_errors');\nthis.__upgradeProperty('disabled');\nthis.__correctGetter('value');\nthis.__correctGetter('errors');\n }\n __listBoolProps() { return [\"has_errors\",\"disabled\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n refreshValueFromForm() {\n if (this._form) {\n this.errors = [];\n this.value = this._form.value.get();\n }\n }\n unlinkFormPart() {\n if (this._form) {\n this._form.unregister(this);\n this._form.onValueChange.remove(this.refreshValueFromForm);\n this._form.onValidation.remove(this.onFormValidation);\n }\n }\n linkFormPart() {\n if (this._form) {\n this._form.register(this);\n this._form.onValueChange.add(this.refreshValueFromForm);\n this._form.onValidation.add(this.onFormValidation);\n this.refreshValueFromForm();\n }\n else {\n this.value = undefined;\n }\n }\n async onFormValidation(errors) {\n let _errors = await this.validation();\n if (_errors.length == 0) {\n _errors = errors;\n }\n else if (errors.length > 0) {\n for (let error of errors) {\n if (!_errors.includes(error)) {\n _errors.push(error);\n }\n }\n }\n this.errors = _errors;\n return this.errors;\n }\n async validate() {\n if (!this.form) {\n this.errors = await this.validation();\n return this.errors.length == 0;\n }\n return await this.form.test();\n }\n async validation() {\n return [];\n }\n clearErrors() {\n this.errors = [];\n }\n triggerChange(value) {\n this.value = value;\n this.onChange.trigger(this.value);\n if (this.form) {\n this.form.value.set(this.value);\n }\n }\n onValueChange(value) {\n this.linkValueToForm();\n }\n onErrorsChange() {\n this.has_errors = this.errors.length > 0;\n this.linkErrorToForm();\n }\n linkErrorToForm() {\n if (!this.canLinkValueToForm)\n return;\n if (this.has_errors) {\n this.internals.setValidity({\n customError: true\n }, this.errors.join(' & '));\n }\n else {\n this.internals.setValidity({});\n }\n }\n linkValueToForm() {\n if (!this.canLinkValueToForm)\n return;\n if (this.value === undefined) {\n this.internals.setFormValue(null);\n }\n else {\n this.internals.setFormValue(this.value + '');\n }\n }\n formAssociatedCallback(form) {\n this.canLinkValueToForm = true;\n this.linkValueToForm();\n this.linkErrorToForm();\n this.validate();\n }\n formDisabledCallback(disabled) {\n this.disabled = disabled;\n }\n postCreation() {\n super.postCreation();\n let handler = this.findParentByType(_.Form.Form.formElements)?.registerElement(this);\n }\n postDestruction() {\n super.postDestruction();\n this.unlinkFormPart();\n }\n}\nForm.FormElement.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormElement', Form.FormElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IFormElement","isStrong":true},{"fullName":"Storybook","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"Property","isStrong":false},{"fullName":"Watch","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Injectable","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false}],"fullName":"Aventus.Form.FormElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.ButtonElement = class ButtonElement extends Aventus.WebComponent {\n static get observedAttributes() {return [\"type\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'type'() { return this.getStringProp('type') }\n set 'type'(val) { this.setStringAttr('type', val) }\n static get formAssociated() { return true; }\n internals;\n handler = undefined;\n form = undefined;\n static __style = ``;\n constructor() {\n super();\n this.internals = this.attachInternals();\n if (this.constructor == ButtonElement) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return ButtonElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ButtonElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ButtonElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('type')){ this['type'] = 'button'; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('type');\n }\n async triggerSubmit() {\n if (this.type == \"submit\") {\n if (\"loading\" in this) {\n if (this.loading)\n return;\n this.loading = true;\n }\n if (this.form) {\n await this.form.requestSubmit();\n }\n else if (this.internals.form) {\n this.internals.form.requestSubmit();\n }\n else if (this.handler) {\n await this.handler.requestSubmit();\n }\n if (\"loading\" in this) {\n this.loading = false;\n }\n }\n }\n registerSubmit() {\n this.handler = this.findParentByType(_.Form.Form.formElements)?.registerSubmit(this);\n if (this.type == \"submit\") {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.triggerSubmit();\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (e.key == 'Enter') {\n this.triggerSubmit();\n }\n });\n }\n }\n postCreation() {\n super.postCreation();\n this.registerSubmit();\n }\n}\nForm.ButtonElement.Namespace=`Aventus.Form`;\n__as1(_.Form, 'ButtonElement', Form.ButtonElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Property","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Injectable","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false}],"fullName":"Aventus.Form.ButtonElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.Form = class Form extends Aventus.WebComponent {\n static get defaultConfig() {\n return _.Form.FormHandler._globalConfig;\n }\n static set formElements(value) {\n _.Form.FormHandler._IFormElements = value;\n }\n static get formElements() {\n return _.Form.FormHandler._IFormElements;\n }\n form;\n request;\n elements = [];\n btns = [];\n onSubmit = new Aventus.Callback();\n static __style = `:host{width:100%}`;\n constructor() {\n super();\n this.checkEnter = this.checkEnter.bind(this);\n }\n __getStatic() {\n return Form;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Form.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Form\";\n }\n checkEnter(e) {\n if (e.key == \"Enter\") {\n this.requestSubmit();\n }\n }\n registerElement(element) {\n if (this.elements.length > 0) {\n this.elements[this.elements.length - 1].removeEventListener(\"keyup\", this.checkEnter);\n }\n this.elements.push(element);\n element.addEventListener(\"keyup\", this.checkEnter);\n return this;\n }\n registerSubmit(element) {\n this.btns.push(element);\n return this;\n }\n async requestSubmit() {\n if (!this.form) {\n for (let element of this.elements) {\n this.form = element.form?.handler;\n if (this.form)\n break;\n }\n }\n if (this.form) {\n if (this.request || this.form.hasSubmitFct) {\n for (let btn of this.btns) {\n if (\"loading\" in btn) {\n btn.loading = true;\n }\n }\n await this.form.submit(this.request);\n for (let btn of this.btns) {\n if (\"loading\" in btn) {\n btn.loading = false;\n }\n }\n }\n else if (await this.form.validate()) {\n this.onSubmit.trigger();\n }\n }\n else {\n this.onSubmit.trigger();\n }\n }\n static createFromController(controller, schema, config, config2) {\n if (typeof schema == \"string\") {\n let _name = schema;\n let _schema = config;\n let _config = config2;\n return _.Form.FormHandlerController.createWithName(controller, _name, _schema, _config);\n }\n let form = _.Form.FormHandlerController.create(controller, schema, config);\n return form;\n }\n static create(schema, config) {\n let form = new _.Form.FormHandler(schema, config);\n return form;\n }\n static configure(value) {\n _.Form.FormHandler._globalConfig = value;\n }\n}\nForm.Form.Namespace=`Aventus.Form`;\nForm.Form.Tag=`av-form`;\n__as1(_.Form, 'Form', Form.Form);\nif(!window.customElements.get('av-form')){window.customElements.define('av-form', Form.Form);Aventus.WebComponentInstance.registerDefinition(Form.Form);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Aventus.Form.MethodNameExist","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"Aventus.Form.FormHandlerControllerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandlerController","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Injectable","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.ButtonElement","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false}],"fullName":"Aventus.Form.Form","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-form","slots":{"default":{"local":true}}},{"code":"Form.FormHandler=class FormHandler {\n /**\n * Global configuration settings for FormHandler instances.\n */\n static _globalConfig;\n /**\n * List of constructors for elements that implement IForm.\n */\n static _IFormElements = [Form.Form];\n /**\n * Internal watcher instance for tracking form data changes.\n */\n __watcher;\n /**\n * The data item associated with the form.\n */\n get item() {\n return this.__watcher.item;\n }\n /**\n * Sets the data item associated with the form.\n */\n set item(item) {\n this.__watcher.item = item;\n }\n /**\n * Provides access to the internal form parts for the schema.\n */\n get parts() {\n return this.__watcher.form;\n }\n /**\n * Internal map of registered form elements by field name.\n */\n _elements = {};\n /**\n * Provides access to the registered form elements.\n */\n get elements() {\n return { ...this._elements };\n }\n /**\n * Global validation function for the form.\n */\n _globalValidation;\n /**\n * Indicates if validation should occur on input change.\n */\n _validateOnChange = false;\n /**\n * Fallback handler for validation errors not linked to a specific input.\n */\n _onValidateFallback;\n /**\n * Fallback handler for server-side errors not linked to a specific input.\n */\n _onServerFallback;\n /**\n * Function to extract field-specific error messages from a generic error.\n */\n _extractor;\n /**\n * Callback executed upon successful form submission.\n */\n _onSuccess;\n /**\n * The internal function responsible for submitting the form.\n */\n _submitFct;\n /**\n * Checks if a submission function is defined for the form.\n */\n get hasSubmitFct() {\n return this._submitFct != undefined;\n }\n /**\n * The default values for the form fields.\n */\n defaultValues;\n /**\n * Callback triggered when an item's property changes.\n */\n onItemChange = new Aventus.Callback();\n /**\n * Initializes a new FormHandler instance with a given schema and optional configuration.\n */\n constructor(schema, config) {\n this.writeValidationIntoConsole = this.writeValidationIntoConsole.bind(this);\n this.writeErrorIntoConsole = this.writeErrorIntoConsole.bind(this);\n this.defaultExtractor = this.defaultExtractor.bind(this);\n this._globalValidation = config?.validate ?? Form.FormHandler._globalConfig?.validate;\n this._validateOnChange = config?.validateOnChange ?? Form.FormHandler._globalConfig?.validateOnChange ?? false;\n this._onValidateFallback = config?.onValidateFallback ?? Form.FormHandler._globalConfig?.onValidateFallback ?? this.writeValidationIntoConsole;\n this._onServerFallback = config?.onServerFallback ?? Form.FormHandler._globalConfig?.onServerFallback ?? this.writeErrorIntoConsole;\n this._extractor = config?.extractor ?? Form.FormHandler._globalConfig?.extractor ?? this.defaultExtractor;\n this._onSuccess = config?.onSuccess ?? Form.FormHandler._globalConfig?.onSuccess;\n this._submitFct = config?.submit;\n this.defaultValues = config?.defaultValues ?? {};\n this.onWatcherChanged = this.onWatcherChanged.bind(this);\n this.__watcher = Aventus.Watcher.get({\n form: {},\n item: this.defaultValues\n }, this.onWatcherChanged);\n this.__watcher.form = this.transformForm(schema);\n }\n /**\n * Logs validation errors to the console.\n */\n writeValidationIntoConsole(errors) {\n for (let name in errors) {\n if (!errors[name])\n continue;\n for (let error of errors[name]) {\n console.log(name + \": \" + error);\n }\n }\n }\n /**\n * Logs generic errors to the console.\n */\n writeErrorIntoConsole(errors) {\n for (let error in errors) {\n console.log(error);\n }\n }\n /**\n * Transforms the raw form schema into an internal representation.\n */\n transformForm(form) {\n const result = form;\n const normalizePart = (part) => {\n let needTransform = true;\n if (typeof part == 'object' && !Array.isArray(part)) {\n const keys = Object.keys(part);\n const keysAllows = ['validate', 'validateOnChange'];\n let isValid = true;\n for (let i = 0; i < keys.length; i++) {\n const allows = keysAllows;\n if (!allows.includes(keys[i])) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n needTransform = false;\n }\n }\n if (needTransform) {\n return {\n validate: part\n };\n }\n return part;\n };\n const createKey = (key) => {\n const f = form;\n f[key] = normalizePart(f[key]);\n this.transformFormPart(key, f[key]);\n };\n for (let key in result) {\n createKey(key);\n }\n return result;\n }\n /**\n * Transforms a single form part within the internal form representation.\n */\n transformFormPart(key, part) {\n if (!part)\n return;\n const realPart = part;\n realPart.onValidation = new Aventus.Callback();\n realPart.onValueChange = new Aventus.Callback();\n realPart.handler = this;\n if (part.validate) {\n const isConstructor = (validate) => {\n return Aventus.isClass(validate);\n };\n let validate;\n if (Array.isArray(part.validate)) {\n const fcts = [];\n for (let temp of part.validate) {\n if (temp instanceof _.Form.Validator) {\n fcts.push(temp.validate);\n }\n else if (isConstructor(temp)) {\n let resultTemp = new temp();\n fcts.push(resultTemp.validate);\n }\n else {\n fcts.push(temp);\n }\n }\n validate = async (value, name, globalFct) => {\n let result = [];\n for (let fct of fcts) {\n const temp = await fct(value, name, globalFct);\n if (temp === false) {\n result.push('Le champs n\\'est pas valide');\n }\n else if (Array.isArray(temp)) {\n for (let error of temp) {\n result.push(error);\n }\n }\n else if (typeof temp == 'string') {\n result.push(temp);\n }\n }\n return result.length == 0 ? undefined : result;\n };\n }\n else if (part.validate instanceof _.Form.Validator) {\n validate = part.validate.validate;\n }\n else if (isConstructor(part.validate)) {\n let cst = part.validate;\n let resultTemp = new cst();\n validate = resultTemp.validate;\n }\n else {\n validate = part.validate;\n }\n realPart.validate = validate;\n }\n realPart.test = async () => {\n const result = await this.validate(key);\n return result;\n };\n if (!this._elements[key]) {\n this._elements[key] = [];\n }\n realPart.register = (el) => {\n if (this._elements[key] && !this._elements[key].includes(el)) {\n this._elements[key].push(el);\n }\n };\n realPart.unregister = (el) => {\n if (!this._elements[key])\n return;\n const index = this._elements[key].indexOf(el);\n if (index != -1) {\n this._elements[key].splice(index, 1);\n }\n };\n realPart.value = {\n get: () => {\n return Aventus.getValueFromObject(key, this.item);\n },\n set: (value) => {\n return Aventus.setValueToObject(key, this.item, value);\n }\n };\n return;\n }\n /**\n * Handles changes observed by the watcher, triggering value change and validation for relevant form parts.\n */\n async onWatcherChanged(action, path, value) {\n if (!this.parts)\n return;\n if (path == \"item\") {\n for (let key in this.parts) {\n let formPart = this.parts[key];\n formPart.onValueChange.trigger();\n }\n }\n else if (path.startsWith(\"item.\")) {\n let key = path.substring(\"item.\".length);\n const parts = this.parts;\n if (parts[key]) {\n let formPart = parts[key];\n formPart.onValueChange.trigger();\n const validateOnChange = formPart.validateOnChange === undefined ? this._validateOnChange : formPart.validateOnChange;\n if (validateOnChange) {\n this.validate(key);\n }\n }\n this.onItemChange.trigger(action, key, value);\n }\n }\n async _validate(key) {\n try {\n if (!this.parts)\n return { \"@general\": [\"Aucun formulaire trouvé\"] };\n if (key !== undefined) {\n let errorsForm = [];\n if (this.parts[key]) {\n let formPart = this.parts[key];\n let value = formPart.value.get();\n const resultToError = (result) => {\n if (result === false) {\n errorsForm.push('Le champs n\\'est pas valide');\n }\n else if (typeof result == 'string' && result !== \"\") {\n errorsForm.push(result);\n }\n else if (Array.isArray(result)) {\n errorsForm = [...errorsForm, ...result];\n }\n };\n if (formPart.validate) {\n const global = async () => {\n if (this._globalValidation) {\n const result = await this._globalValidation(key, value);\n resultToError(result);\n }\n };\n let result = await formPart.validate(value, key, global);\n resultToError(result);\n }\n else if (this._globalValidation) {\n const result = await this._globalValidation(key, value);\n resultToError(result);\n }\n const proms = formPart.onValidation.trigger(errorsForm);\n const errors2d = await Promise.all(proms);\n const errors = [];\n for (let errorsTemp of errors2d) {\n for (let errorTemp of errorsTemp) {\n if (!errors.includes(errorTemp)) {\n errors.push(errorTemp);\n }\n }\n }\n errorsForm = errors;\n }\n return errorsForm.length == 0 ? {} : { [key]: errorsForm };\n }\n let errors = {};\n for (let key in this.parts) {\n errors = { ...errors, ...await this._validate(key) };\n }\n return errors;\n }\n catch (e) {\n return { \"@general\": [e + \"\"] };\n }\n }\n async validate(key) {\n const result = await this._validate(key);\n const unhandle = {};\n let triggerUnhandle = false;\n const els = this._elements;\n for (let key in result) {\n if (!els[key] || els[key].length == 0) {\n triggerUnhandle = true;\n unhandle[key] = result[key];\n }\n }\n if (triggerUnhandle && this._onValidateFallback) {\n this._onValidateFallback(unhandle);\n }\n return Object.keys(result).length == 0;\n }\n /**\n * Handles form submission, including validation and execution of the submission function.\n */\n async submit(query) {\n const result = await this.validate();\n if (!result) {\n return null;\n }\n return this.execute(query);\n }\n transformToSend(item) {\n return item;\n }\n /**\n * Executes the form's submission function after validation.\n */\n async execute(query) {\n if (!query) {\n query = this._submitFct;\n }\n if (!query) {\n const res = new Aventus.VoidWithError();\n res.errors.push(new Aventus.GenericError(403, \"No submit function defined\"));\n return res;\n }\n if (typeof query == \"function\") {\n if (!this.item) {\n const result = new Aventus.VoidWithError();\n result.errors.push(new Aventus.GenericError(404, \"No item inside the form\"));\n return result;\n }\n query = query(this.transformToSend(this.item));\n }\n let queryResult = await query;\n if (queryResult.errors.length > 0) {\n queryResult.errors = this.parseErrors(queryResult);\n if (queryResult.errors.length > 0 && this._onServerFallback) {\n this._onServerFallback(queryResult.errors);\n }\n }\n else {\n let result = queryResult instanceof Aventus.ResultWithError ? queryResult.result : undefined;\n if (this._onSuccess)\n await this._onSuccess(result);\n }\n return queryResult;\n }\n /**\n * Extracts field-specific error messages from a generic error object.\n */\n defaultExtractor(error) {\n if (Array.isArray(error.details)) {\n for (let detail of error.details) {\n if (Object.hasOwn(detail, \"Name\")) {\n return [{ fieldName: detail.Name, messages: [error.message] }];\n }\n }\n }\n const result = [];\n const details = error.details;\n for (let key in details) {\n const messages = details[key];\n result.push({\n fieldName: key,\n messages: messages\n });\n }\n return result;\n }\n /**\n * Parse errors and display them inside the FormElement if possible\n */\n parseErrors(queryResult) {\n const unappliedErrors = [];\n const elements = this.elements;\n for (const error of queryResult.errors) {\n const extractions = this._extractor(error);\n let applied = false;\n for (const { fieldName, messages } of extractions) {\n const targetElements = elements[fieldName];\n if (targetElements) {\n for (let element of targetElements) {\n element.errors.push(...messages);\n }\n applied = true;\n }\n }\n if (!applied) {\n unappliedErrors.push(error);\n }\n }\n return unappliedErrors;\n }\n /**\n * Reset form with default values\n */\n reset() {\n this.item = this.defaultValues;\n }\n}\nForm.FormHandler.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormHandler', Form.FormHandler);\n","dependencies":[{"fullName":"Internal","isStrong":true},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"Aventus.isClass","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.InternalForm","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":true}],"fullName":"Aventus.Form.FormHandler","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.FormHandlerController=class FormHandlerController extends _.Form.FormHandler {\n _controller;\n _formKey;\n /**\n * The HttpRoute controller constructor.\n */\n get controller() {\n return this._controller;\n }\n /**\n * Creates a FormHandlerController instance, inferring the submission method if only one exists.\n */\n static create(controller, schema, config) {\n const fcts = Object.getOwnPropertyNames(controller.prototype).filter(m => m !== \"constructor\");\n if (fcts.length == 1) {\n if (!config) {\n config = {};\n }\n const ctrl = new controller();\n config.submit = ctrl[fcts[0]];\n return new Form.FormHandlerController(controller, schema, config);\n }\n throw \"There isn't exaclty one function inside your controller \" + JSON.stringify(fcts) + \". You must use the function createWithName\";\n }\n /**\n * Creates a FormHandlerController instance with a explicitly named submission method.\n */\n static createWithName(controller, name, schema, config) {\n if (!config) {\n config = {};\n }\n config.submit = new controller()[name];\n return new Form.FormHandlerController(controller, schema, config);\n }\n /**\n * Creates a FormHandlerController instance, inferring the submission method if only one exists.\n */\n static createSubForm(controller, formKey, schema, config) {\n const fcts = Object.getOwnPropertyNames(controller.prototype).filter(m => m !== \"constructor\");\n if (fcts.length == 1) {\n if (!config) {\n config = {};\n }\n const ctrl = new controller();\n config.submit = ctrl[fcts[0]];\n return new Form.FormHandlerController(controller, schema, config, formKey);\n }\n throw \"There isn't exaclty one function inside your controller \" + JSON.stringify(fcts) + \". You must use the function createWithName\";\n }\n /**\n * Creates a FormHandlerController instance with a explicitly named submission method.\n */\n static createSubFormWithName(controller, name, formKey, schema, config) {\n if (!config) {\n config = {};\n }\n config.submit = new controller()[name];\n return new Form.FormHandlerController(controller, schema, config, formKey);\n }\n /**\n * Initializes a new FormHandlerController instance.\n */\n constructor(controller, schema, config, formKey) {\n super(schema, config);\n this._controller = controller;\n this._formKey = formKey;\n }\n transformToSend(item) {\n if (this._formKey)\n return {\n [this._formKey]: item\n };\n return item;\n }\n}\nForm.FormHandlerController.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormHandlerController', Form.FormHandlerController);\n","dependencies":[{"fullName":"Aventus.Form.FormHandler","isStrong":true},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Aventus.Form.MethodNameExist","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormHandlerControllerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandlerController","isStrong":false}],"fullName":"Aventus.Form.FormHandlerController","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Lib.ShortcutManager=class ShortcutManager {\n /**\n * Stores registered shortcut callbacks.\n */\n static memory = {};\n /**\n * List of shortcut key combinations that should automatically prevent default browser behavior.\n */\n static autoPrevents = [];\n /**\n * Indicates if the ShortcutManager has been initialized.\n */\n static isInit = false;\n /**\n * Currently pressed keys.\n */\n static arrayKeys = [];\n /**\n * Stores options for each registered shortcut callback.\n */\n static options = new Map();\n /**\n * Stores temporarily replaced shortcut callbacks.\n */\n static replacingMemory = {};\n /**\n * Checks if a given key is a printable character or a space.\n */\n static isTxt(touch) {\n return touch.match(/[a-zA-Z0-9_\\+\\-]/g) || touch == \" \";\n }\n /**\n * Converts a key combination into a standardized string representation.\n */\n static getText(combinaison) {\n let allTouches = [];\n for (let touch of combinaison) {\n let realTouch = \"\";\n if (typeof touch == \"number\" && Lib.SpecialTouch[touch] !== undefined) {\n realTouch = Lib.SpecialTouch[touch];\n }\n else if (this.isTxt(touch)) {\n realTouch = touch;\n }\n else {\n throw \"I can't use \" + touch + \" to add a shortcut\";\n }\n allTouches.push(realTouch);\n }\n allTouches.sort();\n return allTouches.join(\"+\");\n }\n /**\n * Subscribes a callback function to a specific keyboard shortcut combination.\n */\n static subscribe(combinaison, cb, options) {\n if (!Array.isArray(combinaison)) {\n combinaison = [combinaison];\n }\n let key = this.getText(combinaison);\n if (options?.replaceTemp) {\n if (Lib.ShortcutManager.memory[key]) {\n if (!this.replacingMemory[key]) {\n this.replacingMemory[key] = [];\n }\n this.replacingMemory[key].push(Lib.ShortcutManager.memory[key]);\n delete Lib.ShortcutManager.memory[key];\n }\n }\n if (!Lib.ShortcutManager.memory[key]) {\n Lib.ShortcutManager.memory[key] = [];\n }\n if (!Lib.ShortcutManager.memory[key].includes(cb)) {\n Lib.ShortcutManager.memory[key].push(cb);\n if (options) {\n this.options.set(cb, options);\n }\n }\n if (!Lib.ShortcutManager.isInit) {\n Lib.ShortcutManager.init();\n }\n }\n /**\n * Unsubscribes a callback function from a keyboard shortcut combination.\n */\n static unsubscribe(combinaison, cb) {\n if (!Array.isArray(combinaison)) {\n combinaison = [combinaison];\n }\n let key = this.getText(combinaison);\n if (Lib.ShortcutManager.memory[key]) {\n let index = Lib.ShortcutManager.memory[key].indexOf(cb);\n if (index != -1) {\n Lib.ShortcutManager.memory[key].splice(index, 1);\n let options = this.options.get(cb);\n if (options) {\n this.options.delete(cb);\n }\n if (Lib.ShortcutManager.memory[key].length == 0) {\n delete Lib.ShortcutManager.memory[key];\n if (options?.replaceTemp) {\n if (this.replacingMemory[key]) {\n if (this.replacingMemory[key].length > 0) {\n Lib.ShortcutManager.memory[key] = this.replacingMemory[key].pop();\n if (this.replacingMemory[key].length == 0) {\n delete this.replacingMemory[key];\n }\n }\n else {\n delete this.replacingMemory[key];\n }\n }\n }\n }\n if (Object.keys(Lib.ShortcutManager.memory).length == 0 && Lib.ShortcutManager.isInit) {\n //ShortcutManager.uninit();\n }\n }\n }\n }\n /**\n * Handles keydown events, processing registered shortcuts and preventing default behavior.\n */\n static async onKeyDown(e) {\n if (e.ctrlKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Control];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (e.altKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Alt];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (e.shiftKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Shift];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (this.isTxt(e.key) && !this.arrayKeys.includes(e.key)) {\n this.arrayKeys.push(e.key);\n }\n else if (Lib.SpecialTouch[e.key] !== undefined && !this.arrayKeys.includes(e.key)) {\n this.arrayKeys.push(e.key);\n }\n this.arrayKeys.sort();\n let key = this.arrayKeys.join(\"+\");\n if (Lib.ShortcutManager.memory[key]) {\n let preventDefault = true;\n for (let cb of Lib.ShortcutManager.memory[key]) {\n let options = this.options.get(cb);\n if (options && options.preventDefault === false) {\n preventDefault = false;\n }\n }\n this.arrayKeys = [];\n for (let cb of Lib.ShortcutManager.memory[key]) {\n const result = await cb();\n if (result === false) {\n preventDefault = result;\n }\n }\n if (preventDefault) {\n e.preventDefault();\n }\n }\n else if (Lib.ShortcutManager.autoPrevents.includes(key)) {\n e.preventDefault();\n }\n }\n /**\n * Handles keyup events, removing the released key from the currently pressed keys.\n */\n static onKeyUp(e) {\n let index = this.arrayKeys.indexOf(e.key);\n if (index != -1) {\n this.arrayKeys.splice(index, 1);\n }\n }\n /**\n * Initializes the ShortcutManager, setting up global event listeners.\n */\n static init() {\n if (Lib.ShortcutManager.isInit)\n return;\n Lib.ShortcutManager.isInit = true;\n this.onKeyDown = this.onKeyDown.bind(this);\n this.onKeyUp = this.onKeyUp.bind(this);\n Lib.ShortcutManager.autoPrevents = [\n this.getText([Lib.SpecialTouch.Control, \"s\"]),\n this.getText([Lib.SpecialTouch.Control, \"p\"]),\n this.getText([Lib.SpecialTouch.Control, \"l\"]),\n this.getText([Lib.SpecialTouch.Control, \"k\"]),\n this.getText([Lib.SpecialTouch.Control, \"j\"]),\n this.getText([Lib.SpecialTouch.Control, \"h\"]),\n this.getText([Lib.SpecialTouch.Control, \"g\"]),\n this.getText([Lib.SpecialTouch.Control, \"f\"]),\n this.getText([Lib.SpecialTouch.Control, \"d\"]),\n this.getText([Lib.SpecialTouch.Control, \"o\"]),\n this.getText([Lib.SpecialTouch.Control, \"u\"]),\n this.getText([Lib.SpecialTouch.Control, \"e\"]),\n ];\n window.addEventListener(\"blur\", () => {\n this.arrayKeys = [];\n });\n document.body.addEventListener(\"keydown\", this.onKeyDown);\n document.body.addEventListener(\"keyup\", this.onKeyUp);\n }\n /**\n * Sets key combinations that should automatically prevent default browser behavior.\n */\n static setAutoPrevents(combinaisons) {\n if (!Lib.ShortcutManager.isInit) {\n this.init();\n }\n Lib.ShortcutManager.autoPrevents = [];\n for (let combinaison of combinaisons) {\n Lib.ShortcutManager.autoPrevents.push(this.getText(combinaison));\n }\n }\n /**\n * Deinitializes the ShortcutManager, removing global event listeners.\n */\n static uninit() {\n document.body.removeEventListener(\"keydown\", this.onKeyDown);\n document.body.removeEventListener(\"keyup\", this.onKeyUp);\n this.arrayKeys = [];\n Lib.ShortcutManager.isInit = false;\n }\n}\nLib.ShortcutManager.Namespace=`Aventus.Lib`;\n__as1(_.Lib, 'ShortcutManager', Lib.ShortcutManager);\n","dependencies":[{"fullName":"Aventus.Lib.ShortcutManagerOptions","isStrong":true},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false}],"fullName":"Aventus.Lib.ShortcutManager","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.GridHelper = class GridHelper extends Aventus.WebComponent {\n static get observedAttributes() {return [\"unit\", \"nb_col\", \"nb_row\", \"col_width\", \"row_height\", \"ruler_size\", \"step\", \"step_big\", \"magnetic\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'show_rulers'() { return this.getBoolAttr('show_rulers') }\n set 'show_rulers'(val) { this.setBoolAttr('show_rulers', val) }\nget 'show_grid'() { return this.getBoolAttr('show_grid') }\n set 'show_grid'(val) { this.setBoolAttr('show_grid', val) }\nget 'show_ruler'() { return this.getBoolAttr('show_ruler') }\n set 'show_ruler'(val) { this.setBoolAttr('show_ruler', val) }\nget 'show_guides'() { return this.getBoolAttr('show_guides') }\n set 'show_guides'(val) { this.setBoolAttr('show_guides', val) }\nget 'lock'() { return this.getBoolAttr('lock') }\n set 'lock'(val) { this.setBoolAttr('lock', val) }\nget 'visible'() { return this.getBoolAttr('visible') }\n set 'visible'(val) { this.setBoolAttr('visible', val) }\n get 'unit'() { return this.getStringProp('unit') }\n set 'unit'(val) { this.setStringAttr('unit', val) }\nget 'nb_col'() { return this.getNumberProp('nb_col') }\n set 'nb_col'(val) { this.setNumberAttr('nb_col', val) }\nget 'nb_row'() { return this.getNumberProp('nb_row') }\n set 'nb_row'(val) { this.setNumberAttr('nb_row', val) }\nget 'col_width'() { return this.getNumberProp('col_width') }\n set 'col_width'(val) { this.setNumberAttr('col_width', val) }\nget 'row_height'() { return this.getNumberProp('row_height') }\n set 'row_height'(val) { this.setNumberAttr('row_height', val) }\nget 'ruler_size'() { return this.getNumberProp('ruler_size') }\n set 'ruler_size'(val) { this.setNumberAttr('ruler_size', val) }\nget 'step'() { return this.getNumberProp('step') }\n set 'step'(val) { this.setNumberAttr('step', val) }\nget 'step_big'() { return this.getNumberProp('step_big') }\n set 'step_big'(val) { this.setNumberAttr('step_big', val) }\nget 'magnetic'() { return this.getNumberProp('magnetic') }\n set 'magnetic'(val) { this.setNumberAttr('magnetic', val) }\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"unit\", ((target) => {\n target.rulerLeftEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.rulerTopEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.lockEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n}));\nthis.__addPropertyActions(\"nb_row\", ((target) => {\n}));\nthis.__addPropertyActions(\"row_height\", ((target) => {\n}));\nthis.__addPropertyActions(\"ruler_size\", ((target) => {\n target.rulerLeftEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.rulerTopEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.lockEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n}));\n }\n static __style = `:host{--ruler-color: white;display:none;font-family:Arial,Helvetica,sans-serif;inset:0;pointer-events:none;position:fixed;user-select:none;z-index:9999}:host .grid{inset:0;position:absolute}:host .grid .cols,:host .grid .rows{display:flex;inset:0;position:absolute}:host .grid .rows{flex-direction:column}:host .grid .col{flex-shrink:0;height:100%;position:relative;width:var(--local-col-width)}:host .grid .col::after{background-color:#e78181;content:\"\";height:100%;position:absolute;right:-1px;top:0;width:2px}:host .grid .col:last-child::after{display:none}:host .grid .row{flex-shrink:0;height:var(--local-row-height);position:relative;width:100%}:host .grid .row::after{background-color:#e78181;bottom:-1px;content:\"\";height:2px;left:0;position:absolute;width:100%}:host .grid .row:last-child::after{display:none}:host .ruler-top{background-color:var(--ruler-color);height:var(--ruler-size);pointer-events:all;position:absolute;top:0;width:100%;z-index:3}:host .ruler-top::after{bottom:0;box-shadow:5px 0 5px #818181;content:\"\";height:100%;left:var(--ruler-size);pointer-events:none;position:absolute;width:calc(100% - var(--ruler-size))}:host .ruler-top .ruler-content{display:flex;flex-direction:row;height:100%;overflow:hidden;padding-left:var(--ruler-size)}:host .ruler-top .ruler-content .step{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;text-align:left;width:var(--step-width)}:host .ruler-top .ruler-content .step span{align-items:center;display:flex;flex-grow:1;font-size:10px;transform:translateX(-50%);width:min-content}:host .ruler-top .ruler-content .step::after{background-color:#3d3d3d;content:\"\";display:inline-block;flex-shrink:0;height:3px;transform:translateX(-50%);width:2px}:host .ruler-top .ruler-content .step.big::after{background-color:#000;height:8px}:host .ruler-left{height:100%;pointer-events:all;position:absolute;top:0;width:var(--ruler-size);z-index:4}:host .ruler-left::after{box-shadow:0px 5px 5px #818181;content:\"\";height:calc(100% - var(--ruler-size));left:0;pointer-events:none;position:absolute;top:var(--ruler-size);width:100%}:host .ruler-left .ruler-content{display:flex;flex-direction:column;height:100%;overflow:hidden;padding-top:var(--ruler-size);position:relative;width:100%}:host .ruler-left .ruler-content::before{background-color:var(--ruler-color);content:\"\";inset:0;position:absolute;top:var(--ruler-size);z-index:2}:host .ruler-left .ruler-content .step{display:flex;flex-direction:row;flex-shrink:0;height:var(--step-height);justify-content:space-between;position:relative;text-align:left;z-index:3}:host .ruler-left .ruler-content .step span{display:flex;flex-grow:1;font-size:10px;height:min-content;justify-content:center;transform:translateY(-50%)}:host .ruler-left .ruler-content .step::after{background-color:#3d3d3d;content:\"\";display:inline-block;flex-shrink:0;height:2px;transform:translateY(-50%);width:3px}:host .ruler-left .ruler-content .step.big::after{background-color:#000;width:8px}:host .lock{align-items:center;cursor:pointer;display:flex;height:var(--ruler-size);justify-content:center;left:0;pointer-events:all;position:absolute;top:0;width:var(--ruler-size);z-index:5}:host .lock svg{aspect-ratio:1;display:inline-block;width:50%}:host .lock .close{display:none}:host([visible]){display:block}:host(:not([show_grid])) .grid{display:none}:host(:not([show_ruler])) .ruler-top{display:none}:host(:not([show_ruler])) .ruler-left{display:none}:host(:not([show_guides])) .guides{display:none}:host([lock]){--ruler-color: #eeeeee}:host([lock]) .ruler-top,:host([lock]) .ruler-left{cursor:not-allowed}:host([lock]) .guides av-grid-guide-helper{pointer-events:none}:host([lock]) .lock .open{display:none}:host([lock]) .lock .close{display:inline-block}`;\n __getStatic() {\n return GridHelper;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(GridHelper.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<div class=\"lock\" _id=\"gridhelper_0\">\r <svg class=\"close\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"></rect>\r <path d=\"M7 11V7a5 5 0 0 1 10 0v4\"></path>\r </svg>\r <svg class=\"open\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"></rect>\r <path d=\"M7 11V7a5 5 0 0 1 9.9-1\"></path>\r </svg>\r</div><div class=\"ruler-top\" _id=\"gridhelper_1\">\r <div class=\"ruler-content\" _id=\"gridhelper_2\"></div>\r</div><div class=\"ruler-left\" _id=\"gridhelper_3\">\r <div class=\"ruler-content\" _id=\"gridhelper_4\"></div>\r</div><div class=\"grid\" _id=\"gridhelper_5\">\r <div class=\"cols\" _id=\"gridhelper_6\"></div>\r <div class=\"rows\" _id=\"gridhelper_7\"></div>\r</div><div class=\"guides\" _id=\"gridhelper_8\">\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"lockEl\",\n \"ids\": [\n \"gridhelper_0\"\n ]\n },\n {\n \"name\": \"rulerTopEl\",\n \"ids\": [\n \"gridhelper_1\"\n ]\n },\n {\n \"name\": \"rulerTopContentEl\",\n \"ids\": [\n \"gridhelper_2\"\n ]\n },\n {\n \"name\": \"rulerLeftEl\",\n \"ids\": [\n \"gridhelper_3\"\n ]\n },\n {\n \"name\": \"rulerLeftContentEl\",\n \"ids\": [\n \"gridhelper_4\"\n ]\n },\n {\n \"name\": \"gridEl\",\n \"ids\": [\n \"gridhelper_5\"\n ]\n },\n {\n \"name\": \"colsEl\",\n \"ids\": [\n \"gridhelper_6\"\n ]\n },\n {\n \"name\": \"rowsEl\",\n \"ids\": [\n \"gridhelper_7\"\n ]\n },\n {\n \"name\": \"guidesEl\",\n \"ids\": [\n \"gridhelper_8\"\n ]\n }\n ],\n \"pressEvents\": [\n {\n \"id\": \"gridhelper_0\",\n \"onPress\": (e, pressInstance, c) => { c.comp.toggleLock(e, pressInstance); }\n }\n ]\n});\n }\n getClassName() {\n return \"GridHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('show_rulers')) { this.attributeChangedCallback('show_rulers', false, false); }\nif(!this.hasAttribute('show_grid')) {this.setAttribute('show_grid' ,'true'); }\nif(!this.hasAttribute('show_ruler')) {this.setAttribute('show_ruler' ,'true'); }\nif(!this.hasAttribute('show_guides')) {this.setAttribute('show_guides' ,'true'); }\nif(!this.hasAttribute('lock')) {this.setAttribute('lock' ,'true'); }\nif(!this.hasAttribute('visible')) {this.setAttribute('visible' ,'true'); }\nif(!this.hasAttribute('unit')){ this['unit'] = 'px'; }\nif(!this.hasAttribute('nb_col')){ this['nb_col'] = 0; }\nif(!this.hasAttribute('nb_row')){ this['nb_row'] = 0; }\nif(!this.hasAttribute('col_width')){ this['col_width'] = undefined; }\nif(!this.hasAttribute('row_height')){ this['row_height'] = undefined; }\nif(!this.hasAttribute('ruler_size')){ this['ruler_size'] = 25; }\nif(!this.hasAttribute('step')){ this['step'] = 20; }\nif(!this.hasAttribute('step_big')){ this['step_big'] = undefined; }\nif(!this.hasAttribute('magnetic')){ this['magnetic'] = 0; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('show_rulers');\nthis.__upgradeProperty('show_grid');\nthis.__upgradeProperty('show_ruler');\nthis.__upgradeProperty('show_guides');\nthis.__upgradeProperty('lock');\nthis.__upgradeProperty('visible');\nthis.__upgradeProperty('unit');\nthis.__upgradeProperty('nb_col');\nthis.__upgradeProperty('nb_row');\nthis.__upgradeProperty('col_width');\nthis.__upgradeProperty('row_height');\nthis.__upgradeProperty('ruler_size');\nthis.__upgradeProperty('step');\nthis.__upgradeProperty('step_big');\nthis.__upgradeProperty('magnetic');\n }\n __listBoolProps() { return [\"show_rulers\",\"show_grid\",\"show_ruler\",\"show_guides\",\"lock\",\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n inPx(nb) {\n if (this.unit == 'px') {\n return nb;\n }\n if (this.unit == 'rem') {\n return nb * 16;\n }\n if (this.unit == 'mm') {\n return nb * 3.7795275591;\n }\n if (this.unit == 'cm') {\n return nb * 37.795275591;\n }\n if (this.unit == 'in') {\n return nb * 96;\n }\n if (this.unit == 'pt') {\n return nb * 1.33333333;\n }\n throw 'unit not supported';\n }\n fromPx(nbPx) {\n if (this.unit == 'px') {\n return nbPx;\n }\n if (this.unit == 'rem') {\n return Math.round(nbPx / 16 * 100) / 100;\n }\n if (this.unit == 'mm') {\n return Math.round(nbPx * 0.2645833333 * 100) / 100;\n }\n if (this.unit == 'cm') {\n return Math.round(nbPx * 0.02645833333 * 100) / 100;\n }\n if (this.unit == 'in') {\n return Math.round(nbPx / 96 * 100) / 100;\n }\n if (this.unit == 'pt') {\n return Math.round(nbPx * 0.75 * 100) / 100;\n }\n throw 'unit not supported';\n }\n toggleLock() {\n this.lock = !this.lock;\n }\n draw() {\n let nbCol = 0;\n if (this.nb_col) {\n this.gridEl.style.setProperty('--local-col-width', `calc(100% / ${this.nb_col})`);\n nbCol = this.nb_col;\n }\n else {\n let width = this.col_width;\n if (width == 0) {\n width = this.fromPx(16);\n }\n this.gridEl.style.setProperty('--local-col-width', width + this.unit);\n nbCol = Math.ceil(this.offsetWidth / this.inPx(width));\n }\n if (this.colsEl.children.length != nbCol) {\n this.colsEl.innerHTML = '';\n for (let i = 0; i < nbCol; i++) {\n const col = document.createElement(\"DIV\");\n col.classList.add('col');\n this.colsEl.appendChild(col);\n }\n }\n let nbRow = 0;\n if (this.nb_row) {\n this.gridEl.style.setProperty('--local-row-height', `calc(100% / ${this.nb_row})`);\n nbRow = this.nb_row;\n }\n else {\n let height = this.row_height;\n if (height == 0) {\n height = this.fromPx(16);\n }\n this.gridEl.style.setProperty('--local-row-height', height + this.unit);\n nbRow = Math.ceil(this.offsetHeight / this.inPx(height));\n }\n if (this.rowsEl.children.length != nbRow) {\n this.rowsEl.innerHTML = '';\n for (let i = 0; i < nbRow; i++) {\n const row = document.createElement(\"DIV\");\n row.classList.add('row');\n this.rowsEl.appendChild(row);\n }\n }\n }\n drawRulerTop() {\n const step = this.step;\n const bigStep = this.step_big == 0 ? this.step : this.step_big;\n const rulerSize = this.ruler_size;\n this.rulerTopEl.style.setProperty(\"--step-width\", step + this.unit);\n const nb = Math.ceil(this.offsetWidth / this.inPx(step));\n const createStep = (nb, isBig, w) => {\n const d = document.createElement('div');\n d.classList.add(\"step\");\n if (w) {\n d.style.width = w + this.unit;\n }\n if (isBig) {\n d.classList.add(\"big\");\n }\n const s = document.createElement(\"span\");\n if (isBig)\n s.innerHTML = nb + '';\n d.appendChild(s);\n this.rulerTopContentEl.appendChild(d);\n };\n let i = 0;\n while (step * i - rulerSize < 0) {\n i++;\n }\n createStep(rulerSize, true, step * i - rulerSize);\n for (; i < nb; i++) {\n if (i * step <= rulerSize)\n continue;\n const isBig = (step * i) % bigStep == 0;\n createStep(i * step, isBig);\n }\n }\n drawRulerLeft() {\n const step = this.step;\n const bigStep = this.step_big == 0 ? this.step : this.step_big;\n const rulerSize = this.ruler_size;\n this.rulerLeftEl.style.setProperty(\"--step-height\", step + this.unit);\n const nb = Math.ceil(this.offsetHeight / this.inPx(step));\n const createStep = (nb, isBig, h) => {\n const d = document.createElement('div');\n d.classList.add(\"step\");\n if (h) {\n d.style.height = h + this.unit;\n }\n if (isBig) {\n d.classList.add(\"big\");\n }\n const s = document.createElement(\"span\");\n if (isBig)\n s.innerHTML = nb + '';\n d.appendChild(s);\n this.rulerLeftContentEl.appendChild(d);\n };\n let i = 0;\n while (step * i - rulerSize < 0) {\n i++;\n }\n createStep(rulerSize, true, step * i - rulerSize);\n for (; i < nb; i++) {\n if (i * step <= rulerSize)\n continue;\n const isBig = (step * i) % bigStep == 0;\n createStep(i * step, isBig);\n }\n }\n addDragLeft() {\n let el = undefined;\n new Aventus.PressManager({\n element: this.rulerLeftContentEl,\n onDblPress: () => {\n const nbtxt = prompt(\"Top Position\");\n if (nbtxt) {\n const nb = Number(nbtxt);\n if (!isNaN(nb)) {\n this.createGuideFromTop(nb);\n }\n }\n }\n });\n new Aventus.DragAndDrop({\n element: this.rulerLeftContentEl,\n applyDrag: false,\n onStart: (e) => {\n if (this.lock)\n return false;\n el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.container = this;\n this.guidesEl.appendChild(el);\n el.onStart();\n return true;\n },\n onMove: (e) => {\n if (el) {\n el.onMoveY(e);\n }\n },\n onStop: () => {\n if (el) {\n el.onStop();\n }\n }\n });\n }\n addDragTop() {\n let el = undefined;\n new Aventus.PressManager({\n element: this.rulerTopContentEl,\n onDblPress: () => {\n const nbtxt = prompt(\"Left Position\");\n if (nbtxt) {\n const nb = Number(nbtxt);\n if (!isNaN(nb)) {\n this.createGuideFromLeft(nb);\n }\n }\n }\n });\n new Aventus.DragAndDrop({\n element: this.rulerTopContentEl,\n applyDrag: false,\n onStart: (e) => {\n if (this.lock)\n return false;\n el = new _.Layout.GridGuideHelper();\n el.container = this;\n el.direction = 'x';\n this.guidesEl.appendChild(el);\n el.onStart();\n return true;\n },\n onMove: (e) => {\n if (el) {\n el.onMoveX(e);\n }\n },\n onStop: () => {\n if (el) {\n el.onStop();\n }\n }\n });\n }\n createGuideFromLeft(left) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.container = this;\n el.style.left = left + this.unit;\n this.guidesEl.appendChild(el);\n this.save();\n }\n createGuideFromTop(top) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'x';\n el.container = this;\n el.style.top = top + this.unit;\n this.guidesEl.appendChild(el);\n this.save();\n }\n addShortCut() {\n let isKActive = false;\n let timeout = 0;\n Lib.ShortcutManager.subscribe([Lib.SpecialTouch.Control, 'k'], () => {\n isKActive = true;\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n isKActive = false;\n }, 1000);\n });\n const commande = (letter, cb) => {\n Lib.ShortcutManager.subscribe([letter], () => {\n if (!isKActive)\n return false;\n isKActive = false;\n cb();\n return;\n });\n Lib.ShortcutManager.subscribe([Lib.SpecialTouch.Control, letter], () => {\n if (!isKActive)\n return false;\n isKActive = false;\n cb();\n return;\n });\n };\n commande('v', () => { this.visible = !this.visible; });\n commande('g', () => { this.show_grid = !this.show_grid; });\n commande('r', () => { this.show_ruler = !this.show_ruler; });\n commande('j', () => { this.show_guides = !this.show_guides; });\n commande('l', () => { this.lock = !this.lock; });\n }\n addResize() {\n new Aventus.ResizeObserver({\n callback: () => {\n this.draw();\n this.drawRulerTop();\n this.drawRulerLeft();\n },\n fps: 30\n }).observe(this);\n }\n save() {\n const data = { x: [], y: [] };\n for (let child of this.guidesEl.children) {\n if (child instanceof _.Layout.GridGuideHelper) {\n if (child.direction == 'x') {\n data.x.push(child.offsetTop);\n }\n else {\n data.y.push(child.offsetLeft);\n }\n }\n }\n const id = this.id != '' ? this.id : 'grid-helper';\n localStorage.setItem(id, JSON.stringify(data));\n }\n reload() {\n const id = this.id != '' ? this.id : 'grid-helper';\n const items = localStorage.getItem(id);\n if (items) {\n const data = JSON.parse(items);\n for (let g of data.x) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'x';\n el.style.top = g + this.unit;\n el.container = this;\n this.guidesEl.appendChild(el);\n }\n for (let g of data.y) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.style.left = g + this.unit;\n el.container = this;\n this.guidesEl.appendChild(el);\n }\n }\n }\n postCreation() {\n this.reload();\n this.addResize();\n this.addShortCut();\n this.addDragLeft();\n this.addDragTop();\n this.draw();\n }\n}\nLayout.GridHelper.Namespace=`Aventus.Layout`;\nLayout.GridHelper.Tag=`av-grid-helper`;\n__as1(_.Layout, 'GridHelper', Layout.GridHelper);\nif(!window.customElements.get('av-grid-helper')){window.customElements.define('av-grid-helper', Layout.GridHelper);Aventus.WebComponentInstance.registerDefinition(Layout.GridHelper);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Property","isStrong":false},{"fullName":"Aventus.Layout.GridHelper","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Layout.GridGuideHelper","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false}],"fullName":"Aventus.Layout.GridHelper","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid-helper","slots":{}},{"code":"Layout.GridGuideHelper = class GridGuideHelper extends Aventus.WebComponent {\n get 'direction'() { return this.getStringAttr('direction') }\n set 'direction'(val) { this.setStringAttr('direction', val) }\nget 'moving'() { return this.getBoolAttr('moving') }\n set 'moving'(val) { this.setBoolAttr('moving', val) }\n container;\n static __style = `:host{background-color:#c7c7c7;left:0;pointer-events:all;position:absolute;top:0;font-family:inherit}:host .position{background-color:#c7c7c7;border-radius:5px;padding:5px 15px;position:absolute;display:none;font-size:11px}:host(:hover){background-color:red}:host([direction=x]){cursor:ns-resize;height:2px;width:100%;transform:translateY(-50%)}:host([direction=x]) .position{bottom:10px}:host([direction=y]){cursor:ew-resize;height:100%;width:2px;transform:translateX(-50%)}:host([direction=y]) .position{left:10px}:host([moving]) .position{display:flex}`;\n constructor() {\n super();\n this.onStart = this.onStart.bind(this);\n this.onMoveX = this.onMoveX.bind(this);\n this.onMoveY = this.onMoveY.bind(this);\n this.onStop = this.onStop.bind(this);\n }\n __getStatic() {\n return GridGuideHelper;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(GridGuideHelper.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"position\" _id=\"gridguidehelper_0\"><slot></slot></div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"positionEl\",\n \"ids\": [\n \"gridguidehelper_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"GridGuideHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('direction')){ this['direction'] = \"x\"; }\nif(!this.hasAttribute('moving')) { this.attributeChangedCallback('moving', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('direction');\nthis.__upgradeProperty('moving');\n }\n __listBoolProps() { return [\"moving\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n displayValue(v) {\n this.innerHTML = this.container.fromPx(v) + this.container.unit;\n }\n onStart() {\n this.moving = true;\n }\n applyMagnetic(valuePx) {\n const m = this.container.inPx(this.container.magnetic);\n if (m == 0)\n return valuePx;\n const step = this.container.inPx(this.container.step);\n const div = Math.round(valuePx / step) * step;\n return Math.abs(div - valuePx) < m ? div : valuePx;\n }\n onMoveX(e) {\n const valuePx = this.applyMagnetic(e.pageY - this.container.getBoundingClientRect().y);\n this.style.top = valuePx + 'px';\n this.positionEl.style.left = e.pageX - this.container.getBoundingClientRect().x + 10 + 'px';\n this.displayValue(valuePx);\n }\n onMoveY(e) {\n const valuePx = this.applyMagnetic(e.pageX - this.container.getBoundingClientRect().x);\n this.style.left = valuePx + 'px';\n this.positionEl.style.top = e.pageY - this.container.getBoundingClientRect().y - 20 + 'px';\n this.displayValue(valuePx);\n }\n onStop() {\n this.moving = false;\n this.container.save();\n }\n postCreation() {\n if (!this.container)\n this.container = this.findParentByType(_.Layout.GridHelper);\n if (this.direction == \"x\") {\n new Aventus.DragAndDrop({\n element: this,\n offsetDrag: 0,\n applyDrag: false,\n onStart: () => {\n this.onStart();\n },\n onMove: (e) => {\n this.onMoveX(e);\n },\n onStop: () => {\n this.onStop();\n }\n });\n }\n else {\n new Aventus.DragAndDrop({\n element: this,\n offsetDrag: 0,\n applyDrag: false,\n onStart: () => {\n this.onStart();\n },\n onMove: (e) => {\n this.onMoveY(e);\n },\n onStop: () => {\n this.onStop();\n }\n });\n }\n new Aventus.PressManager({\n element: this,\n onDblPress: () => {\n const helper = this.findParentByType(_.Layout.GridHelper);\n this.remove();\n helper?.save();\n }\n });\n }\n}\nLayout.GridGuideHelper.Namespace=`Aventus.Layout`;\nLayout.GridGuideHelper.Tag=`av-grid-guide-helper`;\n__as1(_.Layout, 'GridGuideHelper', Layout.GridGuideHelper);\nif(!window.customElements.get('av-grid-guide-helper')){window.customElements.define('av-grid-guide-helper', Layout.GridGuideHelper);Aventus.WebComponentInstance.registerDefinition(Layout.GridGuideHelper);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Layout.GridHelper","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Aventus.NormalizedEvent","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false}],"fullName":"Aventus.Layout.GridGuideHelper","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid-guide-helper","slots":{"default":{"local":true}}},{"code":"let TouchRecord=class TouchRecord {\n /**\n * The identifier of the currently active touch/pointer.\n */\n _activeTouchID;\n /**\n * A map of active touch/pointer IDs to their respective Trackers.\n */\n _touchList = {};\n /**\n * Returns a primitive zero-value coordinate object.\n */\n get _primitiveValue() {\n return { x: 0, y: 0 };\n }\n /**\n * Checks if there is an active touch/pointer event.\n */\n isActive() {\n return this._activeTouchID !== undefined;\n }\n /**\n * Retrieves the delta movement of the active tracker.\n */\n getDelta() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.delta };\n }\n /**\n * Retrieves the velocity of the active tracker.\n */\n getVelocity() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.velocity };\n }\n /**\n * Returns the number of active touch/pointer events.\n */\n getNbOfTouches() {\n return Object.values(this._touchList).length;\n }\n /**\n * Returns an array of active Tracker instances.\n */\n getTouches() {\n return Object.values(this._touchList);\n }\n /**\n * Calculates the easing distance based on current velocity and damping.\n */\n getEasingDistance(damping) {\n const deAcceleration = 1 - damping;\n let distance = {\n x: 0,\n y: 0,\n };\n const vel = this.getVelocity();\n Object.keys(vel).forEach((_dir) => {\n const dir = _dir;\n let v = Math.abs(vel[dir]) <= 10 ? 0 : vel[dir];\n while (v !== 0) {\n distance[dir] += v;\n v = (v * deAcceleration) | 0;\n }\n });\n return distance;\n }\n /**\n * Starts tracking new touch/pointer events.\n */\n track(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n const { targetTouches, } = evt;\n Array.from(targetTouches).forEach(touch => {\n this._add(touch);\n });\n }\n else {\n this._add(evt);\n }\n return this._touchList;\n }\n /**\n * Updates existing tracked touch/pointer events.\n */\n update(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n const { touches, changedTouches, } = evt;\n Array.from(touches).forEach(touch => {\n this._renew(touch);\n });\n this._setActiveID(changedTouches);\n }\n else if (evt instanceof PointerEvent) {\n this._renew(evt);\n this._setActiveID(evt);\n }\n return this._touchList;\n }\n /**\n * Releases tracking for ended touch/pointer events.\n */\n release(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n Array.from(evt.changedTouches).forEach(touch => {\n this._delete(touch);\n });\n }\n else {\n this._delete(evt);\n }\n }\n /**\n * Retrieves a unique identifier for a touch or pointer event.\n */\n _getIdentifier(touch) {\n if ('Touch' in window && touch instanceof Touch)\n return touch.identifier;\n if (touch instanceof PointerEvent)\n return touch.pointerId;\n return touch.button;\n }\n /**\n * Adds a new touch/pointer event to the tracker list.\n */\n _add(touch) {\n if (this._has(touch)) {\n this._delete(touch);\n }\n const tracker = new Tracker(touch);\n const identifier = this._getIdentifier(touch);\n this._touchList[identifier] = tracker;\n }\n /**\n * Renews an existing touch/pointer event in the tracker list.\n */\n _renew(touch) {\n if (!this._has(touch)) {\n return;\n }\n const identifier = this._getIdentifier(touch);\n const tracker = this._touchList[identifier];\n tracker.update(touch);\n }\n /**\n * Deletes a touch/pointer event from the tracker list.\n */\n _delete(touch) {\n const identifier = this._getIdentifier(touch);\n delete this._touchList[identifier];\n if (this._activeTouchID == identifier) {\n this._activeTouchID = undefined;\n }\n }\n /**\n * Checks if a touch/pointer event is being tracked.\n */\n _has(touch) {\n const identifier = this._getIdentifier(touch);\n return this._touchList.hasOwnProperty(identifier);\n }\n /**\n * Sets the identifier of the currently active touch/pointer event.\n */\n _setActiveID(touches) {\n if (touches instanceof PointerEvent || touches instanceof MouseEvent) {\n this._activeTouchID = this._getIdentifier(touches);\n }\n else {\n this._activeTouchID = touches[touches.length - 1].identifier;\n }\n }\n /**\n * Retrieves the currently active Tracker instance.\n */\n _getActiveTracker() {\n const { _touchList, _activeTouchID, } = this;\n if (_activeTouchID !== undefined) {\n return _touchList[_activeTouchID];\n }\n return undefined;\n }\n}\nTouchRecord.Namespace=`Aventus`;\n__as1(_, 'TouchRecord', TouchRecord);\n","dependencies":[{"fullName":"Aventus.Tracker","isStrong":false}],"fullName":"Aventus.TouchRecord","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.Scrollable = class Scrollable extends Aventus.WebComponent {\n static get observedAttributes() {return [\"zoom\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'min_zoom'() { return this.getNumberAttr('min_zoom') }\n set 'min_zoom'(val) { this.setNumberAttr('min_zoom', val) }\nget 'max_zoom'() { return this.getNumberAttr('max_zoom') }\n set 'max_zoom'(val) { this.setNumberAttr('max_zoom', val) }\nget 'y_scroll_visible'() { return this.getBoolAttr('y_scroll_visible') }\n set 'y_scroll_visible'(val) { this.setBoolAttr('y_scroll_visible', val) }\nget 'x_scroll_visible'() { return this.getBoolAttr('x_scroll_visible') }\n set 'x_scroll_visible'(val) { this.setBoolAttr('x_scroll_visible', val) }\nget 'floating_scroll'() { return this.getBoolAttr('floating_scroll') }\n set 'floating_scroll'(val) { this.setBoolAttr('floating_scroll', val) }\nget 'x_scroll'() { return this.getBoolAttr('x_scroll') }\n set 'x_scroll'(val) { this.setBoolAttr('x_scroll', val) }\nget 'y_scroll'() { return this.getBoolAttr('y_scroll') }\n set 'y_scroll'(val) { this.setBoolAttr('y_scroll', val) }\nget 'auto_hide'() { return this.getBoolAttr('auto_hide') }\n set 'auto_hide'(val) { this.setBoolAttr('auto_hide', val) }\nget 'break'() { return this.getNumberAttr('break') }\n set 'break'(val) { this.setNumberAttr('break', val) }\nget 'disable'() { return this.getBoolAttr('disable') }\n set 'disable'(val) { this.setBoolAttr('disable', val) }\nget 'no_user_select'() { return this.getBoolAttr('no_user_select') }\n set 'no_user_select'(val) { this.setBoolAttr('no_user_select', val) }\nget 'mouse_drag'() { return this.getBoolAttr('mouse_drag') }\n set 'mouse_drag'(val) { this.setBoolAttr('mouse_drag', val) }\nget 'pinch'() { return this.getBoolAttr('pinch') }\n set 'pinch'(val) { this.setBoolAttr('pinch', val) }\nget 'flex'() { return this.getBoolAttr('flex') }\n set 'flex'(val) { this.setBoolAttr('flex', val) }\n get 'zoom'() { return this.getNumberProp('zoom') }\n set 'zoom'(val) { this.setNumberAttr('zoom', val) }\n observer;\n display = { x: 0, y: 0 };\n max = {\n x: 0,\n y: 0\n };\n margin = {\n x: 0,\n y: 0\n };\n position = {\n x: 0,\n y: 0\n };\n momentum = { x: 0, y: 0 };\n contentWrapperSize = { x: 0, y: 0 };\n scroller = {\n x: () => {\n if (!this.horizontalScroller) {\n throw 'can\\'t find the horizontalScroller';\n }\n return this.horizontalScroller;\n },\n y: () => {\n if (!this.verticalScroller) {\n throw 'can\\'t find the verticalScroller';\n }\n return this.verticalScroller;\n }\n };\n scrollerContainer = {\n x: () => {\n if (!this.horizontalScrollerContainer) {\n throw 'can\\'t find the horizontalScrollerContainer';\n }\n return this.horizontalScrollerContainer;\n },\n y: () => {\n if (!this.verticalScrollerContainer) {\n throw 'can\\'t find the verticalScrollerContainer';\n }\n return this.verticalScrollerContainer;\n }\n };\n hideDelay = { x: 0, y: 0 };\n touchRecord;\n pointerCount = 0;\n loadedOnce = false;\n savedPercent;\n isDragScroller = false;\n cachedSvg;\n previousMidPoint;\n previousDistance;\n startTranslate = { x: 0, y: 0 };\n get x() {\n return this.position.x;\n }\n get y() {\n return this.position.y;\n }\n get xMax() {\n return this.max.x;\n }\n get yMax() {\n return this.max.y;\n }\n onScrollChange = new Aventus.Callback();\n onZoomChange = new Aventus.Callback();\n renderAnimation;\n autoScrollInterval = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n };\n autoScrollSpeed = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n };\n pressManager;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"zoom\", ((target) => {\n target.changeZoom();\n}));\n }\n static __style = `:host{--_scrollbar-container-color: var(--scrollbar-container-color, transparent);--_scrollbar-color: var(--scrollbar-color, #757575);--_scrollbar-active-color: var(--scrollbar-active-color, #858585);--_scroller-width: var(--scroller-width, 6px);--_scroller-top: var(--scroller-top, 3px);--_scroller-bottom: var(--scroller-bottom, 3px);--_scroller-right: var(--scroller-right, 3px);--_scroller-left: var(--scroller-left, 3px);--_scrollbar-content-padding: var(--scrollbar-content-padding, 0);--_scrollbar-container-display: var(--scrollbar-container-display, inline-block)}:host{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:clip;position:relative;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;width:100%}:host .scroll-main-container{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;width:100%}:host .scroll-main-container .content-zoom{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;transform-origin:0 0;width:100%;z-index:4}:host .scroll-main-container .content-zoom .content-hidder{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:clip;position:relative;width:100%}:host .scroll-main-container .content-zoom .content-hidder .content-wrapper{display:var(--_scrollbar-container-display);height:100%;min-height:inherit;min-width:inherit;padding:var(--_scrollbar-content-padding);position:relative;width:100%}:host .scroll-main-container .scroller-wrapper .container-scroller{display:none;overflow:hidden;position:absolute;transition:transform .2s linear;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller{background-color:var(--_scrollbar-container-color);border-radius:5px}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller .scroller{background-color:var(--_scrollbar-color);border-radius:5px;cursor:pointer;position:absolute;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .scroller.active{background-color:var(--_scrollbar-active-color)}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical{height:calc(100% - var(--_scroller-bottom)*2 - var(--_scroller-width));padding-left:var(--_scroller-left);right:var(--_scroller-right);top:var(--_scroller-bottom);transform:0;width:calc(var(--_scroller-width) + var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical.hide{transform:translateX(calc(var(--_scroller-width) + var(--_scroller-left)))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller .scroller{width:calc(100% - var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal{bottom:var(--_scroller-bottom);height:calc(var(--_scroller-width) + var(--_scroller-top));left:var(--_scroller-right);padding-top:var(--_scroller-top);transform:0;width:calc(100% - var(--_scroller-right)*2 - var(--_scroller-width))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal.hide{transform:translateY(calc(var(--_scroller-width) + var(--_scroller-top)))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller .scroller{height:calc(100% - var(--_scroller-top))}:host([y_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{height:auto}:host([x_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{width:auto}:host([y_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.vertical{display:block}:host([x_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.horizontal{display:block}:host([no_user_select]) .content-wrapper *{user-select:none}:host([no_user_select]) ::slotted{user-select:none}:host([flex]){display:flex;flex-direction:column;min-height:0}:host([flex]) .scroll-main-container{display:flex;flex-direction:column}:host([flex]) .scroll-main-container .content-zoom{display:flex;flex-direction:column}`;\n constructor() {\n super();\n this.renderAnimation = this.createAnimation();\n this.onWheel = this.onWheel.bind(this);\n this.onTouchStart = this.onTouchStart.bind(this);\n this.onTouchMovePointer = this.onTouchMovePointer.bind(this);\n this.onTouchMove = this.onTouchMove.bind(this);\n this.onTouchMovePointer = this.onTouchMovePointer.bind(this);\n this.onTouchEnd = this.onTouchEnd.bind(this);\n this.onTouchEndPointer = this.onTouchEndPointer.bind(this);\n this.touchRecord = new TouchRecord();\n }\n __getStatic() {\n return Scrollable;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Scrollable.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"scroll-main-container\" _id=\"scrollable_0\">\r <div class=\"content-zoom\" _id=\"scrollable_1\">\r <div class=\"content-hidder\" _id=\"scrollable_2\">\r <div class=\"content-wrapper\" part=\"content-wrapper\" _id=\"scrollable_3\">\r <slot></slot>\r </div>\r </div>\r </div>\r <div class=\"scroller-wrapper\">\r <div class=\"container-scroller vertical\" _id=\"scrollable_4\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"scrollable_5\"></div>\r </div>\r </div>\r <div class=\"container-scroller horizontal\" _id=\"scrollable_6\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"scrollable_7\"></div>\r </div>\r </div>\r </div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"mainContainer\",\n \"ids\": [\n \"scrollable_0\"\n ]\n },\n {\n \"name\": \"contentZoom\",\n \"ids\": [\n \"scrollable_1\"\n ]\n },\n {\n \"name\": \"contentHidder\",\n \"ids\": [\n \"scrollable_2\"\n ]\n },\n {\n \"name\": \"contentWrapper\",\n \"ids\": [\n \"scrollable_3\"\n ]\n },\n {\n \"name\": \"verticalScrollerContainer\",\n \"ids\": [\n \"scrollable_4\"\n ]\n },\n {\n \"name\": \"verticalScroller\",\n \"ids\": [\n \"scrollable_5\"\n ]\n },\n {\n \"name\": \"horizontalScrollerContainer\",\n \"ids\": [\n \"scrollable_6\"\n ]\n },\n {\n \"name\": \"horizontalScroller\",\n \"ids\": [\n \"scrollable_7\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Scrollable\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('min_zoom')){ this['min_zoom'] = 1; }\nif(!this.hasAttribute('max_zoom')){ this['max_zoom'] = undefined; }\nif(!this.hasAttribute('y_scroll_visible')) { this.attributeChangedCallback('y_scroll_visible', false, false); }\nif(!this.hasAttribute('x_scroll_visible')) { this.attributeChangedCallback('x_scroll_visible', false, false); }\nif(!this.hasAttribute('floating_scroll')) { this.attributeChangedCallback('floating_scroll', false, false); }\nif(!this.hasAttribute('x_scroll')) { this.attributeChangedCallback('x_scroll', false, false); }\nif(!this.hasAttribute('y_scroll')) {this.setAttribute('y_scroll' ,'true'); }\nif(!this.hasAttribute('auto_hide')) { this.attributeChangedCallback('auto_hide', false, false); }\nif(!this.hasAttribute('break')){ this['break'] = 0.1; }\nif(!this.hasAttribute('disable')) { this.attributeChangedCallback('disable', false, false); }\nif(!this.hasAttribute('no_user_select')) { this.attributeChangedCallback('no_user_select', false, false); }\nif(!this.hasAttribute('mouse_drag')) { this.attributeChangedCallback('mouse_drag', false, false); }\nif(!this.hasAttribute('pinch')) { this.attributeChangedCallback('pinch', false, false); }\nif(!this.hasAttribute('flex')) { this.attributeChangedCallback('flex', false, false); }\nif(!this.hasAttribute('zoom')){ this['zoom'] = 1; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('x');\nthis.__correctGetter('y');\nthis.__correctGetter('xMax');\nthis.__correctGetter('yMax');\nthis.__upgradeProperty('min_zoom');\nthis.__upgradeProperty('max_zoom');\nthis.__upgradeProperty('y_scroll_visible');\nthis.__upgradeProperty('x_scroll_visible');\nthis.__upgradeProperty('floating_scroll');\nthis.__upgradeProperty('x_scroll');\nthis.__upgradeProperty('y_scroll');\nthis.__upgradeProperty('auto_hide');\nthis.__upgradeProperty('break');\nthis.__upgradeProperty('disable');\nthis.__upgradeProperty('no_user_select');\nthis.__upgradeProperty('mouse_drag');\nthis.__upgradeProperty('pinch');\nthis.__upgradeProperty('flex');\nthis.__upgradeProperty('zoom');\n }\n __listBoolProps() { return [\"y_scroll_visible\",\"x_scroll_visible\",\"floating_scroll\",\"x_scroll\",\"y_scroll\",\"auto_hide\",\"disable\",\"no_user_select\",\"mouse_drag\",\"pinch\",\"flex\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n createAnimation() {\n return new Aventus.Animation({\n fps: 60,\n animate: () => {\n const nextX = this.nextPosition('x');\n const nextY = this.nextPosition('y');\n this.momentum.x = nextX.momentum;\n this.momentum.y = nextY.momentum;\n this.scrollDirection('x', nextX.position);\n this.scrollDirection('y', nextY.position);\n if (!this.momentum.x && !this.momentum.y) {\n this.renderAnimation.stop();\n }\n },\n stopped: () => {\n if (this.momentum.x || this.momentum.y) {\n this.renderAnimation.start();\n }\n }\n });\n }\n nextPosition(direction) {\n const current = this.position[direction];\n const remain = this.momentum[direction];\n let result = {\n momentum: 0,\n position: 0,\n };\n if (Math.abs(remain) <= 0.1) {\n result.position = current + remain;\n }\n else {\n const _break = this.pointerCount > 0 ? 0.5 : this.break;\n let nextMomentum = remain * (1 - _break);\n nextMomentum |= 0;\n result.momentum = nextMomentum;\n result.position = current + remain - nextMomentum;\n }\n let correctPosition = this.correctScrollValue(result.position, direction);\n if (correctPosition != result.position) {\n result.position = correctPosition;\n result.momentum = 0;\n }\n return result;\n }\n scrollDirection(direction, value) {\n const max = this.max[direction];\n if (max != 0) {\n this.position[direction] = this.correctScrollValue(value, direction);\n }\n else {\n this.position[direction] = 0;\n }\n let container = this.scrollerContainer[direction]();\n let scroller = this.scroller[direction]();\n if (this.auto_hide) {\n container.classList.remove(\"hide\");\n clearTimeout(this.hideDelay[direction]);\n this.hideDelay[direction] = setTimeout(() => {\n container.classList.add(\"hide\");\n }, 1000);\n }\n let containerSize = direction == 'y' ? container.offsetHeight : container.offsetWidth;\n if (this.contentWrapperSize[direction] != 0) {\n let scrollPosition = this.div(this.position[direction], this.contentWrapperSize[direction]) * containerSize;\n scroller.style.transform = `translate${direction.toUpperCase()}(${scrollPosition}px)`;\n this.contentWrapper.style.transform = `translate3d(${-1 * this.x}px, ${-1 * this.y}px, 0)`;\n }\n this.triggerScrollChange();\n }\n scrollDirectionPercent(direction, percent) {\n const max = this.max[direction];\n this.scrollDirection(direction, max * percent / 100);\n }\n correctScrollValue(value, direction) {\n if (value < 0) {\n value = 0;\n }\n else if (value > this.max[direction]) {\n value = this.max[direction];\n }\n return value;\n }\n triggerScrollChange() {\n this.onScrollChange.trigger(this.x, this.y);\n }\n scrollToPosition(x, y) {\n this.scrollDirection('x', x);\n this.scrollDirection('y', y);\n }\n scrollX(x) {\n this.scrollDirection('x', x);\n }\n scrollXPercent(x) {\n this.scrollDirectionPercent('x', x);\n }\n scrollY(y) {\n this.scrollDirection('y', y);\n }\n scrollYPercent(y) {\n this.scrollDirectionPercent('y', y);\n }\n startAutoScrollRight() {\n if (!this.autoScrollInterval.right) {\n this.stopAutoScrollLeft();\n this.autoScrollInterval.right = setInterval(() => {\n if (this.x == this.max.x) {\n this.stopAutoScrollRight();\n return;\n }\n this.addDelta({\n x: this.autoScrollSpeed.right,\n y: 0\n });\n }, 100);\n }\n }\n autoScrollRight(percent = 50) {\n let slow = this.max.x * 1 / 100;\n let fast = this.max.x * 10 / 100;\n this.autoScrollSpeed.right = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollRight();\n }\n stopAutoScrollRight() {\n if (this.autoScrollInterval.right) {\n clearInterval(this.autoScrollInterval.right);\n this.autoScrollInterval.right = 0;\n }\n }\n startAutoScrollLeft() {\n if (!this.autoScrollInterval.left) {\n this.stopAutoScrollRight();\n this.autoScrollInterval.left = setInterval(() => {\n if (this.x == 0) {\n this.stopAutoScrollLeft();\n return;\n }\n this.addDelta({\n x: this.autoScrollSpeed.left * -1,\n y: 0\n });\n }, 100);\n }\n }\n autoScrollLeft(percent = 50) {\n let slow = this.max.x * 1 / 100;\n let fast = this.max.x * 10 / 100;\n this.autoScrollSpeed.left = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollLeft();\n }\n stopAutoScrollLeft() {\n if (this.autoScrollInterval.left) {\n clearInterval(this.autoScrollInterval.left);\n this.autoScrollInterval.left = 0;\n }\n }\n startAutoScrollTop() {\n if (!this.autoScrollInterval.top) {\n this.stopAutoScrollBottom();\n this.autoScrollInterval.top = setInterval(() => {\n if (this.y == 0) {\n this.stopAutoScrollTop();\n return;\n }\n this.addDelta({\n x: 0,\n y: this.autoScrollSpeed.top * -1\n });\n }, 100);\n }\n }\n autoScrollTop(percent = 50) {\n let slow = this.max.y * 1 / 100;\n let fast = this.max.y * 10 / 100;\n this.autoScrollSpeed.top = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollTop();\n }\n stopAutoScrollTop() {\n if (this.autoScrollInterval.top) {\n clearInterval(this.autoScrollInterval.top);\n this.autoScrollInterval.top = 0;\n }\n }\n startAutoScrollBottom() {\n if (!this.autoScrollInterval.bottom) {\n this.stopAutoScrollTop();\n this.autoScrollInterval.bottom = setInterval(() => {\n if (this.y == this.max.y) {\n this.stopAutoScrollBottom();\n return;\n }\n this.addDelta({\n x: 0,\n y: this.autoScrollSpeed.bottom\n });\n }, 100);\n }\n }\n autoScrollBottom(percent = 50) {\n let slow = this.max.y * 1 / 100;\n let fast = this.max.y * 10 / 100;\n this.autoScrollSpeed.bottom = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollBottom();\n }\n stopAutoScrollBottom() {\n if (this.autoScrollInterval.bottom) {\n clearInterval(this.autoScrollInterval.bottom);\n this.autoScrollInterval.bottom = 0;\n }\n }\n createMatrix() {\n if (!this.cachedSvg) {\n this.cachedSvg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n }\n return this.cachedSvg.createSVGMatrix();\n }\n getMidPoint(a, b) {\n return {\n x: (a.lastPosition.x + b.lastPosition.x) / 2,\n y: (a.lastPosition.y + b.lastPosition.y) / 2,\n };\n }\n getDistance(a, b) {\n return Math.sqrt((b.lastPosition.x - a.lastPosition.x) ** 2 + (b.lastPosition.y - a.lastPosition.y) ** 2);\n }\n zoomOnPoint(clientX, clientY, newZoom) {\n let targetCoordinates = this.getBoundingClientRect();\n let mousePositionRelativeToTarget = {\n x: targetCoordinates.x - clientX,\n y: targetCoordinates.y - clientY\n };\n let oldScale = this.zoom;\n let newScale;\n if (this.max_zoom > 0) {\n newScale = Math.max(this.min_zoom, Math.min(this.max_zoom, newZoom));\n }\n else {\n newScale = Math.max(this.min_zoom, newZoom);\n }\n let scaleDiff = this.div(newScale, oldScale);\n const matrix = this.createMatrix()\n .translate(this.x, this.y)\n .translate(mousePositionRelativeToTarget.x, mousePositionRelativeToTarget.y)\n .scale(scaleDiff)\n .translate(-mousePositionRelativeToTarget.x, -mousePositionRelativeToTarget.y)\n .scale(this.zoom);\n const newZoomFinal = matrix.a || 1;\n const newX = matrix.e || 0;\n const newY = matrix.f || 0;\n this.zoom = newZoomFinal;\n this.onZoomChange.trigger(newZoomFinal);\n this.scrollDirection('x', newX);\n this.scrollDirection('y', newY);\n }\n pinchAction() {\n const touches = this.touchRecord.getTouches();\n if (touches.length == 2) {\n const newMidpoint = this.getMidPoint(touches[0], touches[1]);\n const prevMidpoint = this.previousMidPoint ?? newMidpoint;\n const positioningElRect = this.getBoundingClientRect();\n const originX = (positioningElRect.left + this.x - this.startTranslate.x) - prevMidpoint.x;\n const originY = (positioningElRect.top + this.y - this.startTranslate.y) - prevMidpoint.y;\n const newDistance = this.getDistance(touches[0], touches[1]);\n const prevDistance = this.previousDistance;\n let scaleDiff = prevDistance ? this.div(newDistance, prevDistance) : 1;\n const panX = prevMidpoint.x - newMidpoint.x;\n const panY = prevMidpoint.y - newMidpoint.y;\n let oldScale = this.zoom;\n let newScale;\n if (this.max_zoom > 0) {\n newScale = Math.max(this.min_zoom, Math.min(this.max_zoom, oldScale * scaleDiff));\n }\n else {\n newScale = Math.max(this.min_zoom, oldScale * scaleDiff);\n }\n scaleDiff = this.div(newScale, oldScale);\n const matrix = this.createMatrix()\n .translate(panX, panY)\n .translate(originX, originY)\n .translate(this.x, this.y)\n .scale(scaleDiff)\n .translate(-originX, -originY)\n .scale(this.zoom);\n const newZoom = matrix.a || 1;\n const newX = matrix.e || 0;\n const newY = matrix.f || 0;\n this.zoom = newZoom;\n this.onZoomChange.trigger(newZoom);\n this.scrollDirection('x', newX);\n this.scrollDirection('y', newY);\n this.previousMidPoint = newMidpoint;\n this.previousDistance = newDistance;\n }\n return null;\n }\n addAction() {\n this.addEventListener(\"wheel\", this.onWheel, { passive: false });\n this.pressManager = new Aventus.PressManager({\n element: this,\n offsetDrag: 0,\n onPressStart: (e) => {\n this.touchRecord.track(e.event);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n },\n onPressEnd: (e) => {\n this.touchRecord.release(e.event);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n },\n onDragStart: (e) => {\n if (!this.pinch && !this.x_scroll_visible && !this.y_scroll_visible) {\n return false;\n }\n return this.onTouchStartPointer(e);\n },\n onDrag: (e) => {\n this.onTouchMovePointer(e);\n },\n onDragEnd: (e) => {\n this.onTouchEndPointer(e);\n }\n });\n // this.addEventListener(\"touchstart\", this.onTouchStart);\n // this.addEventListener(\"trigger_pointer_pressstart\", this.onTouchStartPointer);\n if (this.mouse_drag) {\n // this.addEventListener(\"mousedown\", this.onTouchStart);\n }\n this.addScrollDrag('x');\n this.addScrollDrag('y');\n }\n addActionMove() {\n // document.body.addEventListener(\"touchmove\", this.onTouchMove);\n // document.body.addEventListener(\"trigger_pointer_pressmove\", this.onTouchMovePointer);\n // document.body.addEventListener(\"touchcancel\", this.onTouchEnd);\n // document.body.addEventListener(\"touchend\", this.onTouchEnd);\n // document.body.addEventListener(\"trigger_pointer_pressend\", this.onTouchEndPointer);\n if (this.mouse_drag) {\n // document.body.addEventListener(\"mousemove\", this.onTouchMove);\n // document.body.addEventListener(\"mouseup\", this.onTouchEnd);\n }\n }\n removeActionMove() {\n // document.body.removeEventListener(\"touchmove\", this.onTouchMove);\n // document.body.removeEventListener(\"trigger_pointer_pressmove\", this.onTouchMovePointer);\n // document.body.removeEventListener(\"touchcancel\", this.onTouchEnd);\n // document.body.removeEventListener(\"touchend\", this.onTouchEnd);\n // document.body.removeEventListener(\"trigger_pointer_pressend\", this.onTouchEndPointer);\n // document.body.removeEventListener(\"mousemove\", this.onTouchMove);\n // document.body.removeEventListener(\"mouseup\", this.onTouchEnd);\n }\n addScrollDrag(direction) {\n let scroller = this.scroller[direction]();\n let startPosition = 0;\n new Aventus.DragAndDrop({\n element: scroller,\n applyDrag: false,\n usePercent: true,\n offsetDrag: 0,\n isDragEnable: () => !this.disable,\n onStart: (e) => {\n this.isDragScroller = true;\n this.no_user_select = true;\n scroller.classList.add(\"active\");\n startPosition = this.position[direction];\n },\n onMove: (e, position) => {\n let delta = position[direction] / 100 * this.contentWrapperSize[direction];\n let value = startPosition + delta;\n this.scrollDirection(direction, value);\n },\n onStop: () => {\n this.no_user_select = false;\n scroller.classList.remove(\"active\");\n this.isDragScroller = false;\n }\n });\n }\n shouldStopPropagation(e, delta) {\n if (!this.y_scroll && this.x_scroll) {\n if ((delta.x > 0 && this.x != this.max.x) ||\n (delta.x <= 0 && this.x != 0)) {\n e.stopPropagation();\n }\n }\n else {\n if ((delta.y > 0 && this.y != this.max.y) ||\n (delta.y <= 0 && this.y != 0)) {\n e.stopPropagation();\n }\n }\n }\n addDelta(delta) {\n if (this.disable) {\n return;\n }\n this.momentum.x += delta.x;\n this.momentum.y += delta.y;\n this.renderAnimation?.start();\n }\n onWheel(e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation();\n if (this.pinch) {\n let factor = 0.9;\n if (e.deltaY < 0) {\n factor = 1.1;\n }\n this.zoomOnPoint(e.clientX, e.clientY, this.zoom * factor);\n }\n return;\n }\n const DELTA_MODE = [1.0, 28.0, 500.0];\n const mode = DELTA_MODE[e.deltaMode] || DELTA_MODE[0];\n let newValue = {\n x: 0,\n y: e.deltaY * mode,\n };\n if (!this.y_scroll && this.x_scroll) {\n newValue = {\n x: e.deltaY * mode,\n y: 0,\n };\n }\n else if (this.x_scroll && e.altKey) {\n newValue = {\n x: e.deltaY * mode,\n y: 0,\n };\n }\n this.shouldStopPropagation(e, newValue);\n this.addDelta(newValue);\n }\n onTouchStartPointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchStart(ev);\n return true;\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchStart(ev);\n return true;\n }\n }\n return false;\n }\n onTouchStart(e) {\n if (this.isDragScroller)\n return;\n this.touchRecord.track(e);\n this.momentum = {\n x: 0,\n y: 0\n };\n if (this.pointerCount === 0) {\n this.addActionMove();\n }\n this.pointerCount = this.touchRecord.getNbOfTouches();\n if (this.pinch && this.pointerCount == 2) {\n this.startTranslate = { x: this.x, y: this.y };\n }\n }\n onTouchMovePointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchMove(ev);\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchMove(ev);\n }\n }\n }\n onTouchMove(e) {\n if (this.isDragScroller)\n return;\n this.touchRecord.update(e);\n if (this.pinch && this.pointerCount == 2) {\n // zoom\n e.stopPropagation();\n this.renderAnimation?.stop();\n this.pinchAction();\n }\n else {\n const delta = this.touchRecord.getDelta();\n this.shouldStopPropagation(e, delta);\n this.addDelta(delta);\n }\n }\n onTouchEndPointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchEnd(ev);\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchEnd(ev);\n }\n }\n }\n onTouchEnd(e) {\n if (this.isDragScroller)\n return;\n const delta = this.touchRecord.getEasingDistance(this.break);\n this.shouldStopPropagation(e, delta);\n this.addDelta(delta);\n this.touchRecord.release(e);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n if (this.pointerCount === 0) {\n this.removeActionMove();\n }\n if (this.pointerCount < 2) {\n this.previousMidPoint = undefined;\n this.previousDistance = undefined;\n }\n }\n calculateRealSize() {\n if (!this.contentZoom || !this.mainContainer || !this.contentWrapper) {\n return false;\n }\n const currentOffsetWidth = this.contentZoom.offsetWidth;\n const currentOffsetHeight = this.contentZoom.offsetHeight;\n let hasChanged = false;\n if (this.contentWrapper.offsetWidth != this.contentWrapperSize.x || this.contentWrapper.offsetHeight != this.contentWrapperSize.y)\n hasChanged = true;\n this.contentWrapperSize.x = this.contentWrapper.offsetWidth;\n this.contentWrapperSize.y = this.contentWrapper.offsetHeight;\n if (this.zoom < 1) {\n // scale the container for zoom\n this.contentZoom.style.width = this.div(this.mainContainer.offsetWidth, this.zoom) + 'px';\n this.contentZoom.style.height = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n this.contentZoom.style.maxHeight = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n if (currentOffsetHeight != this.display.y || currentOffsetWidth != this.display.x)\n hasChanged = true;\n this.display.y = currentOffsetHeight;\n this.display.x = currentOffsetWidth;\n }\n else {\n const newX = this.div(currentOffsetWidth, this.zoom);\n const newY = this.div(currentOffsetHeight, this.zoom);\n if (newY != this.display.y || newX != this.display.x)\n hasChanged = true;\n this.display.y = newY;\n this.display.x = newX;\n this.contentZoom.style.width = '';\n this.contentZoom.style.height = '';\n this.contentZoom.style.maxHeight = '';\n }\n return hasChanged;\n }\n calculatePositionScrollerContainer(direction) {\n if (direction == 'y') {\n this.calculatePositionScrollerContainerY();\n }\n else {\n this.calculatePositionScrollerContainerX();\n }\n }\n calculatePositionScrollerContainerY() {\n const leftMissing = this.mainContainer.offsetWidth - this.verticalScrollerContainer.offsetLeft;\n if (leftMissing > 0 && this.y_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.width = 'calc(100% - ' + leftMissing + 'px)';\n this.contentHidder.style.marginRight = leftMissing + 'px';\n this.margin.x = leftMissing;\n }\n else {\n this.contentHidder.style.width = '';\n this.contentHidder.style.marginRight = '';\n this.margin.x = 0;\n }\n }\n calculatePositionScrollerContainerX() {\n const topMissing = this.mainContainer.offsetHeight - this.horizontalScrollerContainer.offsetTop;\n if (topMissing > 0 && this.x_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.height = 'calc(100% - ' + topMissing + 'px)';\n this.contentHidder.style.marginBottom = topMissing + 'px';\n this.margin.y = topMissing;\n }\n else {\n this.contentHidder.style.height = '';\n this.contentHidder.style.marginBottom = '';\n this.margin.y = 0;\n }\n }\n calculateSizeScroller(direction) {\n const scrollerSize = (this.div((this.display[direction] - this.margin[direction]), this.contentWrapperSize[direction]) * 100);\n if (direction == \"y\") {\n this.scroller[direction]().style.height = scrollerSize + '%';\n }\n else {\n this.scroller[direction]().style.width = scrollerSize + '%';\n }\n let maxScrollContent = this.contentWrapperSize[direction] - this.display[direction];\n if (maxScrollContent < 0) {\n maxScrollContent = 0;\n }\n this.max[direction] = maxScrollContent + this.margin[direction];\n }\n changeZoom() {\n this.contentZoom.style.transform = 'scale(' + this.zoom + ')';\n this.dimensionRefreshed(true);\n }\n dimensionRefreshed(force = false) {\n if (this.contentWrapper.offsetHeight > 0 && this.contentWrapper.offsetWidth > 0) {\n this.loadedOnce = true;\n if (this.savedPercent) {\n this.position.x = this.contentWrapper.offsetWidth * this.savedPercent.x;\n this.position.y = this.contentWrapper.offsetHeight * this.savedPercent.y;\n this.savedPercent = undefined;\n }\n }\n else if (this.loadedOnce) {\n this.savedPercent = {\n x: this.div(this.position.x, this.contentWrapperSize.x),\n y: this.div(this.position.y, this.contentWrapperSize.y)\n };\n }\n if (!this.calculateRealSize() && !force) {\n return;\n }\n if (this.contentWrapperSize.y - this.display.y > 0) {\n if (!this.y_scroll_visible) {\n this.y_scroll_visible = true;\n this.calculatePositionScrollerContainer('y');\n }\n this.calculateSizeScroller('y');\n this.scrollDirection('y', this.y);\n }\n else if (this.y_scroll_visible) {\n this.y_scroll_visible = false;\n this.calculatePositionScrollerContainer('y');\n this.calculateSizeScroller('y');\n this.scrollDirection('y', 0);\n }\n if (this.contentWrapperSize.x - this.display.x > 0) {\n if (!this.x_scroll_visible) {\n this.x_scroll_visible = true;\n this.calculatePositionScrollerContainer('x');\n }\n this.calculateSizeScroller('x');\n this.scrollDirection('x', this.x);\n }\n else if (this.x_scroll_visible) {\n this.x_scroll_visible = false;\n this.calculatePositionScrollerContainer('x');\n this.calculateSizeScroller('x');\n this.scrollDirection('x', 0);\n }\n }\n createResizeObserver() {\n let inProgress = false;\n return new Aventus.ResizeObserver({\n callback: entries => {\n if (inProgress) {\n return;\n }\n inProgress = true;\n this.dimensionRefreshed();\n inProgress = false;\n },\n fps: 30\n });\n }\n addResizeObserver() {\n if (this.observer == undefined) {\n this.observer = this.createResizeObserver();\n }\n this.observer.observe(this.contentWrapper);\n this.observer.observe(this);\n }\n div(nb1, nb2) {\n if (!nb2)\n return nb1;\n return nb1 / nb2;\n }\n postCreation() {\n this.dimensionRefreshed();\n this.addResizeObserver();\n this.addAction();\n }\n static lock(element) {\n const container = element.findParentByType(Layout.Scrollable);\n if (container) {\n container.disable = true;\n }\n }\n static unlock(element) {\n const container = element.findParentByType(Layout.Scrollable);\n if (container) {\n container.disable = false;\n }\n }\n}\nLayout.Scrollable.Namespace=`Aventus.Layout`;\nLayout.Scrollable.Tag=`av-scrollable`;\n__as1(_.Layout, 'Scrollable', Layout.Scrollable);\nif(!window.customElements.get('av-scrollable')){window.customElements.define('av-scrollable', Layout.Scrollable);Aventus.WebComponentInstance.registerDefinition(Layout.Scrollable);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Scrollable","isStrong":false},{"fullName":"Property","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.TouchRecord","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Animation","isStrong":false},{"fullName":"Aventus.Tracker","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.NormalizedEvent","isStrong":false}],"fullName":"Aventus.Layout.Scrollable","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-scrollable","slots":{"default":{"local":true}}},{"code":"Layout.Tabs.TabHeader = class TabHeader extends Aventus.WebComponent {\n get 'active'() { return this.getBoolAttr('active') }\n set 'active'(val) { this.setBoolAttr('active', val) }\n _tab;\n get tab() {\n return this._tab;\n }\n tabs;\n static __style = ``;\n constructor() {\n super();\n if (this.constructor == TabHeader) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return TabHeader;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(TabHeader.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"TabHeader\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('active')) { this.attributeChangedCallback('active', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('tab');\nthis.__upgradeProperty('active');\n }\n __listBoolProps() { return [\"active\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async init(tab, tabs) {\n this.tabs = tabs;\n this._tab = tab;\n tab.tabHeader = this;\n await this.render();\n }\n onPress() {\n if (!this.active) {\n this.tabs.setActive(this);\n }\n }\n addPress() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.onPress();\n }\n });\n }\n postCreation() {\n super.postCreation();\n this.addPress();\n }\n}\nLayout.Tabs.TabHeader.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'TabHeader', Layout.Tabs.TabHeader);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Tabs.Tab","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.Layout.Tabs.Tabs","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}],"fullName":"Aventus.Layout.Tabs.TabHeader","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Layout.Tabs.Tab = class Tab extends Aventus.WebComponent {\n get 'selected'() { return this.getBoolAttr('selected') }\n set 'selected'(val) { this.setBoolAttr('selected', val) }\nget 'loaded'() { return this.getBoolAttr('loaded') }\n set 'loaded'(val) { this.setBoolAttr('loaded', val) }\n tabHeader;\n static __style = `:host(:not([loaded])){display:none}`;\n constructor() {\n super();\n if (this.constructor == Tab) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Tab;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Tab.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Tab\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('selected')) { this.attributeChangedCallback('selected', false, false); }\nif(!this.hasAttribute('loaded')) { this.attributeChangedCallback('loaded', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('selected');\nthis.__upgradeProperty('loaded');\n }\n __listBoolProps() { return [\"selected\",\"loaded\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n}\nLayout.Tabs.Tab.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'Tab', Layout.Tabs.Tab);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"InternalProtected","isStrong":false},{"fullName":"Aventus.Layout.Tabs.TabHeader","isStrong":false}],"fullName":"Aventus.Layout.Tabs.Tab","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Modal.ModalElement = class ModalElement extends Aventus.WebComponent {\n get 'options'() {\n\t\t\t\t\t\treturn this.__watch[\"options\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'options'(val) {\n\t\t\t\t\t\tthis.__watch[\"options\"] = val;\n\t\t\t\t\t}\n static defaultCloseWithEsc = true;\n static defaultCloseWithClick = true;\n static defaultRejectValue = null;\n cb;\n pressManagerClickClose;\n pressManagerPrevent;\n __registerWatchesActions() {\n this.__addWatchesActions(\"options\", ((target, action, path, value) => {\n target.onOptionsChanged();\n}));\n super.__registerWatchesActions();\n}\n static __style = `:host{--_modal-z-index: var(--modal-z-index, 60)}:host{align-items:center;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--_modal-z-index)}:host .modal{background-color:#fff;padding:1.5rem;position:relative}`;\n constructor() {\n super();\n this.options = this.configure();\n if (this.options.closeWithClick === undefined)\n this.options.closeWithClick = Modal.ModalElement.defaultCloseWithClick;\n if (this.options.closeWithEsc === undefined)\n this.options.closeWithEsc = Modal.ModalElement.defaultCloseWithEsc;\n if (!Object.hasOwn(this.options, \"rejectValue\")) {\n this.options.rejectValue = Modal.ModalElement.defaultRejectValue;\n }\n if (this.constructor == ModalElement) {\n throw \"can't instanciate an abstract class\";\n }\n this.close = this.close.bind(this);\n this.reject = this.reject.bind(this);\n this.resolve = this.resolve.bind(this);\n }\n __getStatic() {\n return ModalElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ModalElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"modal\" _id=\"modalelement_0\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"modalEl\",\n \"ids\": [\n \"modalelement_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"ModalElement\";\n }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"options\"] = undefined;\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('options');\n }\n onOptionsChanged() { }\n init(cb) {\n this.cb = cb;\n if (this.options.closeWithEsc) {\n Lib.ShortcutManager.subscribe(Lib.SpecialTouch.Escape, this.reject, { replaceTemp: true });\n }\n if (this.options.closeWithClick) {\n this.pressManagerClickClose = new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.reject();\n }\n });\n this.pressManagerPrevent = new Aventus.PressManager({\n element: this.modalEl,\n onPress: () => { }\n });\n }\n }\n show(element) {\n return Modal.ModalElement._show(this, element);\n }\n close() {\n Lib.ShortcutManager.unsubscribe(Lib.SpecialTouch.Escape, this.reject);\n this.pressManagerClickClose?.destroy();\n this.pressManagerPrevent?.destroy();\n this.remove();\n }\n reject(no_close) {\n if (this.cb) {\n this.cb(this.options.rejectValue ?? null);\n }\n if (no_close !== true) {\n this.close();\n }\n }\n resolve(response, no_close) {\n if (this.cb) {\n this.cb(response);\n }\n if (no_close !== true) {\n this.close();\n }\n }\n postCreation() {\n super.postCreation();\n this.modalEl.setAttribute(\"role\", \"dialog\");\n this.modalEl.setAttribute(\"aria-modal\", \"true\");\n }\n static configure(options) {\n if (options.closeWithClick !== undefined)\n this.defaultCloseWithClick = options.closeWithClick;\n if (options.closeWithEsc !== undefined)\n this.defaultCloseWithEsc = options.closeWithEsc;\n if (!Object.hasOwn(options, \"rejectValue\")) {\n this.defaultRejectValue = options.rejectValue;\n }\n }\n static _show(modal, element) {\n return new Promise((resolve) => {\n modal.init((response) => {\n resolve(response);\n });\n if (!element) {\n element = document.body;\n }\n element.appendChild(modal);\n });\n }\n}\nModal.ModalElement.Namespace=`Aventus.Modal`;\n__as1(_.Modal, 'ModalElement', Modal.ModalElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Modal.ModalOptions","isStrong":false},{"fullName":"Aventus.Modal.ModalElement","isStrong":false},{"fullName":"TResult","isStrong":false},{"fullName":"TOptions","isStrong":false},{"fullName":"Aventus.Modal.ExtractTypeModal","isStrong":false},{"fullName":"TModal","isStrong":false},{"fullName":"Watch","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false},{"fullName":"BindThis","isStrong":false}],"fullName":"Aventus.Modal.ModalElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Navigation.Page = class Page extends Aventus.WebComponent {\n static get observedAttributes() {return [\"visible\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'visible'() { return this.getBoolProp('visible') }\n set 'visible'(val) { this.setBoolAttr('visible', val) }\n router;\n state;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"visible\", ((target) => {\n if (target.visible) {\n target.onShow();\n }\n else {\n target.onHide();\n }\n}));\n }\n static __style = `:host{display:block}:host(:not([visible])){display:none}`;\n constructor() {\n super();\n if (this.constructor == Page) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Page;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Page.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Page\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('visible')) { this.attributeChangedCallback('visible', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('visible');\n }\n __listBoolProps() { return [\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async show(state) {\n this.state = state;\n if (!this.visible)\n this.visible = true;\n else\n this.onShow();\n }\n async hide() {\n this.visible = false;\n this.state = undefined;\n }\n onShow() {\n }\n onHide() {\n }\n isAllowed(state, pattern, router) {\n return true;\n }\n loadData(state, path) {\n return true;\n }\n getSlugs(path) {\n const slugs = this.router?.getSlugs();\n return slugs;\n }\n}\nNavigation.Page.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'Page', Navigation.Page);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.UriParamsValue","isStrong":false},{"fullName":"Property","isStrong":false},{"fullName":"Aventus.Navigation.Page","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Navigation.PageConfig","isStrong":false},{"fullName":"Aventus.State","isStrong":false}],"fullName":"Aventus.Navigation.Page","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Navigation.Default404 = class Default404 extends Navigation.Page {\n static __style = `:host{align-items:center;height:100%;justify-content:center;width:100%}:host h1{font-size:48px;text-align:center}:host([visible]){display:flex}`;\n __getStatic() {\n return Default404;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Default404.__style);\n return arrStyle;\n }\n __getHtml() {\nsuper.__getHtml();\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<h1>Error 404</h1>` }\n });\n}\n getClassName() {\n return \"Default404\";\n }\n configure() {\n return {\n destroy: true\n };\n }\n}\nNavigation.Default404.Namespace=`Aventus.Navigation`;\nNavigation.Default404.Tag=`av-default-404`;\n__as1(_.Navigation, 'Default404', Navigation.Default404);\nif(!window.customElements.get('av-default-404')){window.customElements.define('av-default-404', Navigation.Default404);Aventus.WebComponentInstance.registerDefinition(Navigation.Default404);}\n","dependencies":[{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Navigation.PageConfig","isStrong":false}],"fullName":"Aventus.Navigation.Default404","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-default-404","slots":{}},{"code":"Navigation.Router = class Router extends Aventus.WebComponent {\n get 'initializing'() { return this.getBoolAttr('initializing') }\n set 'initializing'(val) { this.setBoolAttr('initializing', val) }\n static page404 = _.Navigation.Default404;\n static destroyPage = false;\n oldPage;\n allRoutes = {};\n activePath = \"\";\n activeState;\n oneStateActive = false;\n showPageMutex = new Aventus.Mutex();\n isReplace = false;\n get stateManager() {\n return Aventus.Instance.get(RouterStateManager);\n }\n page404;\n static __style = `:host{display:block}`;\n constructor() {\n super();\n this.validError404 = this.validError404.bind(this);\n this.canChangeState = this.canChangeState.bind(this);\n this.stateManager.canChangeState(this.canChangeState);\n if (this.constructor == Router) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Router;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Router.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'before':`<slot name=\"before\"></slot>`,'after':`<slot name=\"after\"></slot>` }, \n blocks: { 'default':`<slot name=\"before\"></slot><main class=\"content\" _id=\"router_0\"></main><slot name=\"after\"></slot>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"contentEl\",\n \"ids\": [\n \"router_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Router\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('initializing')) {this.setAttribute('initializing' ,'true'); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('stateManager');\nthis.__upgradeProperty('initializing');\n }\n __listBoolProps() { return [\"initializing\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n addRouteAsync(options) {\n this.allRoutes[options.route] = options;\n }\n addRoute(route, elementCtr) {\n this.allRoutes[route] = {\n route: route,\n scriptUrl: '',\n render: () => elementCtr\n };\n }\n async register() {\n try {\n await this.defineRoutes();\n this.stateManager.onAfterStateChanged(this.validError404);\n for (let key in this.allRoutes) {\n this.initRoute(key);\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n initRoute(path) {\n let element = undefined;\n let allRoutes = this.allRoutes;\n this.stateManager.subscribe(path, {\n active: (currentState) => {\n this.oneStateActive = true;\n this.showPageMutex.safeRunLastAsync(async () => {\n let isNew = false;\n if (!element || !element.parentElement) {\n let options = allRoutes[path];\n if (options.scriptUrl != \"\") {\n await Aventus.ResourceLoader.loadInHead(options.scriptUrl);\n }\n let cst = options.render();\n element = new cst;\n element.router = this;\n isNew = true;\n }\n const canResult = await element.isAllowed(currentState, path, this);\n if (canResult !== true) {\n if (canResult === false) {\n return;\n }\n this.navigate(canResult, { replace: true });\n return;\n }\n const loadDataResult = await element.loadData(currentState, path);\n if (loadDataResult !== true) {\n if (loadDataResult === false) {\n return;\n }\n this.navigate(loadDataResult, { replace: true });\n return;\n }\n if (isNew)\n this.contentEl.appendChild(element);\n if (this.oldPage && this.oldPage != element) {\n await this.oldPage.hide();\n const { destroy } = await this.oldPage.configure();\n if (destroy === undefined && this.shouldDestroyFrame(this.oldPage)) {\n this.oldPage.remove();\n }\n else if (destroy === true) {\n this.oldPage.remove();\n }\n }\n let oldPage = this.oldPage;\n let oldUrl = this.activePath;\n this.oldPage = element;\n this.activePath = path;\n this.activeState = currentState;\n await element.show(currentState);\n const { title, description, keywords } = await element.configure();\n if (title !== undefined)\n document.title = title;\n if (keywords !== undefined) {\n let meta = document.querySelector('meta[name=\"keywords\"]');\n if (!meta) {\n meta = document.createElement('meta');\n }\n meta.setAttribute(\"content\", keywords.join(\", \"));\n }\n if (description !== undefined) {\n let meta = document.querySelector('meta[name=\"description\"]');\n if (!meta) {\n meta = document.createElement('meta');\n }\n meta.setAttribute(\"content\", description);\n }\n if (this.bindToUrl() && window.location.pathname != currentState.name) {\n let newUrl = window.location.origin + currentState.name;\n if (this.isReplace) {\n window.history.replaceState({}, title ?? \"\", newUrl);\n }\n else {\n window.history.pushState({}, title ?? \"\", newUrl);\n }\n }\n this.onNewPage(oldUrl, oldPage, path, element);\n });\n },\n inactive: () => {\n this.oneStateActive = false;\n }\n });\n }\n async validError404() {\n if (!this.oneStateActive) {\n let Page404 = this.error404(this.stateManager.getState()) ?? Navigation.Router.page404;\n if (Page404) {\n if (!this.page404 || !this.page404.parentElement) {\n this.page404 = new Page404();\n this.page404.router = this;\n this.contentEl.appendChild(this.page404);\n }\n if (this.oldPage && this.oldPage != this.page404) {\n await this.oldPage.hide();\n }\n if (this.bindToUrl()) {\n const currentState = this.stateManager.getState();\n if (currentState && window.location.pathname != currentState.name) {\n let newUrl = window.location.origin + currentState.name;\n if (this.isReplace) {\n window.history.replaceState({}, \"Not found\", newUrl);\n }\n else {\n window.history.pushState({}, \"Not found\", newUrl);\n }\n }\n }\n this.activeState = undefined;\n this.oldPage = this.page404;\n this.activePath = '';\n await this.page404.show(this.activeState);\n }\n }\n }\n error404(state) {\n return null;\n }\n onNewPage(oldUrl, oldPage, newUrl, newPage) {\n }\n getSlugs(path) {\n return this.stateManager.getStateSlugs(path ?? this.activePath);\n }\n async canChangeState(newState) {\n return true;\n }\n async navigate(state, options) {\n if (options?.replace) {\n this.isReplace = true;\n }\n const result = await this.stateManager.setState(state);\n if (options?.replace) {\n this.isReplace = false;\n }\n return result;\n }\n bindToUrl() {\n return true;\n }\n defaultUrl() {\n return \"/\";\n }\n shouldDestroyFrame(page) {\n return Navigation.Router.destroyPage;\n }\n setFirstUrl() {\n let oldUrl = window.localStorage.getItem(\"navigation_url\");\n if (oldUrl !== null) {\n Aventus.State.activate(oldUrl, this.stateManager);\n window.localStorage.removeItem(\"navigation_url\");\n }\n else if (this.bindToUrl()) {\n Aventus.State.activate(window.location.pathname, this.stateManager);\n }\n else {\n let defaultUrl = this.defaultUrl();\n if (defaultUrl) {\n Aventus.State.activate(defaultUrl, this.stateManager);\n }\n }\n }\n async init() {\n await this.register();\n this.setFirstUrl();\n if (this.bindToUrl()) {\n window.onpopstate = (e) => {\n if (window.location.pathname != this.stateManager.getState()?.name) {\n Aventus.State.activate(window.location.pathname, this.stateManager);\n }\n };\n }\n this.initializing = false;\n }\n postCreation() {\n this.init();\n }\n static configure(options) {\n if (options.page404 !== undefined)\n this.page404 = options.page404;\n if (options.destroyPage !== undefined)\n this.destroyPage = options.destroyPage;\n }\n}\nNavigation.Router.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'Router', Navigation.Router);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":true},{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.Navigation.Default404","isStrong":true},{"fullName":"Aventus.Navigation.RouterOptions","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Navigation.RouteAsyncOption","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.StateManager","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.UriParamsValue","isStrong":false}],"fullName":"Aventus.Navigation.Router","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"before":{"local":true},"after":{"local":true}}},{"code":"Toast.ToastElement = class ToastElement extends Aventus.WebComponent {\n get 'position'() { return this.getStringAttr('position') }\n set 'position'(val) { this.setStringAttr('position', val) }\nget 'delay'() { return this.getNumberAttr('delay') }\n set 'delay'(val) { this.setNumberAttr('delay', val) }\nget 'is_active'() { return this.getBoolAttr('is_active') }\n set 'is_active'(val) { this.setBoolAttr('is_active', val) }\n showAsked = false;\n onHideCallback = () => { };\n timeout = 0;\n hasTransition = false;\n waitTransitionCbs = [];\n static __style = `:host{position:absolute}:host(:not([is_active])){opacity:0;visibility:hidden}:host([position=\"bottom left\"]){bottom:0px;left:0px}:host([position=\"top left\"]){left:0;top:0}:host([position=\"bottom right\"]){bottom:0;right:0}:host([position=\"top right\"]){right:0;top:0}:host([position=top]){left:50%;top:0;transform:translateX(-50%)}:host([position=bottom]){bottom:0;left:50%;transform:translateX(-50%)}`;\n constructor() {\n super();\n this.addTransition();\n if (this.constructor == ToastElement) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return ToastElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ToastElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ToastElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('position')){ this['position'] = _.Toast.ToastManager.defaultPosition; }\nif(!this.hasAttribute('delay')){ this['delay'] = _.Toast.ToastManager.defaultDelay; }\nif(!this.hasAttribute('is_active')) { this.attributeChangedCallback('is_active', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('position');\nthis.__upgradeProperty('delay');\nthis.__upgradeProperty('is_active');\n }\n __listBoolProps() { return [\"is_active\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n _setOptions(options) {\n if (options.position !== undefined)\n this.position = options.position;\n if (options.delay !== undefined)\n this.delay = options.delay;\n return this.setOptions(options);\n }\n show(onHideCallback) {\n this.onHideCallback = onHideCallback;\n if (this.isReady) {\n this.is_active = true;\n this.startDelay();\n }\n else {\n this.showAsked = true;\n }\n }\n startDelay() {\n if (this.delay > 0) {\n this.timeout = setTimeout(() => {\n this.close();\n }, this.delay);\n }\n }\n async close() {\n if (this.onHideCallback) {\n this.is_active = false;\n this.onHideCallback(false);\n this.remove();\n }\n }\n addTransition() {\n this.addEventListener(\"transitionstart\", (e) => {\n this.hasTransition = true;\n });\n this.addEventListener(\"transitionend\", () => {\n this.hasTransition = false;\n let cbs = [...this.waitTransitionCbs];\n this.waitTransitionCbs = [];\n for (let cb of cbs) {\n cb();\n }\n });\n }\n waitTransition() {\n if (this.hasTransition) {\n return new Promise((resolve) => {\n this.waitTransitionCbs.push(resolve);\n });\n }\n return new Promise((resolve) => {\n resolve();\n });\n }\n postCreation() {\n if (this.showAsked) {\n this.is_active = true;\n this.startDelay();\n }\n }\n static add(options) {\n return _.Toast.ToastManager.add(options);\n }\n}\nToast.ToastElement.Namespace=`Aventus.Toast`;\n__as1(_.Toast, 'ToastElement', Toast.ToastElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Toast.ToastOptions","isStrong":false},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"StoryValue","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.Toast.ToastPosition","isStrong":false},{"fullName":"Internal","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}],"fullName":"Aventus.Toast.ToastElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Toast.ToastManager = class ToastManager extends Aventus.WebComponent {\n get 'not_main'() { return this.getBoolAttr('not_main') }\n set 'not_main'(val) { this.setBoolAttr('not_main', val) }\n static defaultToast;\n static defaultToastManager;\n static defaultPosition = 'top right';\n static defaultDelay = 5000;\n static gap = 10;\n static heightLimitPercent = 100;\n static instance;\n activeToasts = {\n top: [],\n 'top left': [],\n 'bottom left': [],\n bottom: [],\n 'bottom right': [],\n 'top right': [],\n };\n waitingToasts = {\n top: [],\n 'top left': [],\n 'bottom left': [],\n bottom: [],\n 'bottom right': [],\n 'top right': [],\n };\n get containerHeight() {\n return this.offsetHeight;\n }\n get heightLimit() {\n return this.containerHeight * Toast.ToastManager.heightLimitPercent / 100;\n }\n mutex = new Aventus.Mutex();\n static __style = `:host{--_toast-space-bottom: var(--toast-space-bottom, 20px);--_toast-space-top: var(--toast-space-top, 20px);--_toast-space-right: var(--toast-space-right, 10px);--_toast-space-left: var(--toast-space-left, 10px);--_toast-z-index: var(--toast-z-index, 70)}:host{bottom:var(--_toast-space-bottom);left:var(--_toast-space-left);overflow:visible;pointer-events:none;position:fixed;right:var(--_toast-space-right);top:var(--_toast-space-top);z-index:var(--_toast-z-index)}:host ::slotted(*){pointer-events:auto}`;\n __getStatic() {\n return ToastManager;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ToastManager.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ToastManager\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('not_main')) { this.attributeChangedCallback('not_main', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('containerHeight');\nthis.__correctGetter('heightLimit');\nthis.__upgradeProperty('not_main');\n }\n __listBoolProps() { return [\"not_main\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async add(toast) {\n await this.mutex.waitOne();\n let realToast;\n if (toast instanceof _.Toast.ToastElement) {\n realToast = toast;\n }\n else {\n if (!Toast.ToastManager.defaultToast)\n throw \"No default toast. Try ToastManager.configure()\";\n realToast = new Toast.ToastManager.defaultToast();\n await realToast._setOptions(toast);\n }\n this.appendChild(realToast);\n if (realToast.position == \"bottom\") {\n return this._notifyBottom(realToast, true);\n }\n else if (realToast.position == \"bottom left\") {\n return this._notifyBottomLeft(realToast, true);\n }\n else if (realToast.position == \"top left\") {\n return this._notifyTopLeft(realToast, true);\n }\n else if (realToast.position == \"bottom right\") {\n return this._notifyBottomRight(realToast, true);\n }\n else if (realToast.position == \"top right\") {\n return this._notifyTopRight(realToast, true);\n }\n else if (realToast.position == \"top\") {\n return this._notifyTop(realToast, true);\n }\n return false;\n }\n _calculateBottom(toast, firstTime, position) {\n return new Promise(async (resolve) => {\n let height = toast.offsetHeight;\n const _remove = (result) => {\n let index = this.activeToasts[position].indexOf(toast);\n if (index > -1) {\n this.activeToasts[position].splice(index, 1);\n }\n if (this.waitingToasts[position].length > 0) {\n let nextNotif = this.waitingToasts[position].splice(0, 1)[0];\n this._calculateBottom(nextNotif, false, position);\n }\n else {\n let bottom = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.bottom = bottom + 'px';\n bottom += notif.offsetHeight + Toast.ToastManager.gap;\n }\n }\n resolve(result);\n };\n let length = this.activeToasts[position].length;\n if (length == 0) {\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else {\n let totHeight = 0;\n for (let notif of this.activeToasts[position]) {\n await notif.waitTransition();\n totHeight += notif.offsetHeight + Toast.ToastManager.gap;\n }\n if (totHeight + height < this.heightLimit) {\n this.activeToasts[position].splice(0, 0, toast);\n let bottom = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.bottom = bottom + 'px';\n bottom += notif.offsetHeight + Toast.ToastManager.gap;\n }\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n this.mutex.release();\n });\n }\n _calculateTop(toast, firstTime, position) {\n return new Promise(async (resolve) => {\n let height = toast.offsetHeight;\n const _remove = (result) => {\n let index = this.activeToasts[position].indexOf(toast);\n if (index > -1) {\n this.activeToasts[position].splice(index, 1);\n }\n if (this.waitingToasts[position].length > 0) {\n let nextNotif = this.waitingToasts[position].splice(0, 1)[0];\n this._calculateTop(nextNotif, false, position);\n }\n else {\n let top = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.top = top + 'px';\n top += notif.offsetHeight + Toast.ToastManager.gap;\n }\n }\n resolve(result);\n };\n let length = this.activeToasts[position].length;\n if (length == 0) {\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else {\n let totHeight = 0;\n for (let notif of this.activeToasts[position]) {\n await notif.waitTransition();\n totHeight += notif.offsetHeight + Toast.ToastManager.gap;\n }\n if (totHeight + height < this.heightLimit) {\n this.activeToasts[position].splice(0, 0, toast);\n let top = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.top = top + 'px';\n top += notif.offsetHeight + Toast.ToastManager.gap;\n }\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n this.mutex.release();\n });\n }\n async _notifyBottomRight(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom right\");\n }\n async _notifyTopRight(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top right\");\n }\n async _notifyBottomLeft(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom left\");\n }\n async _notifyTopLeft(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top left\");\n }\n async _notifyTop(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top\");\n }\n async _notifyBottom(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom\");\n }\n postConnect() {\n super.postConnect();\n if (!Toast.ToastManager.instance && !this.not_main) {\n Toast.ToastManager.instance = this;\n }\n }\n postDisconnect() {\n if (Toast.ToastManager.instance == this) {\n Toast.ToastManager.instance = undefined;\n }\n }\n static add(toast) {\n if (!this.instance) {\n this.instance = this.defaultToastManager ? new this.defaultToastManager() : new Toast.ToastManager();\n document.body.appendChild(this.instance);\n }\n return this.instance.add(toast);\n }\n static configure(options) {\n const opts = options;\n const t = this;\n for (let key in options) {\n if (opts[key] !== undefined)\n t[key] = opts[key];\n }\n }\n}\nToast.ToastManager.Namespace=`Aventus.Toast`;\nToast.ToastManager.Tag=`av-toast-manager`;\n__as1(_.Toast, 'ToastManager', Toast.ToastManager);\nif(!window.customElements.get('av-toast-manager')){window.customElements.define('av-toast-manager', Toast.ToastManager);Aventus.WebComponentInstance.registerDefinition(Toast.ToastManager);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":true},{"fullName":"Aventus.Toast.ToastElement","isStrong":true},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"Internal","isStrong":true},{"fullName":"Aventus.Toast.ToastPosition","isStrong":true},{"fullName":"Aventus.Toast.ToastOptions","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Toast.ToastManagerOptions","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false},{"fullName":"Attribute","isStrong":false}],"fullName":"Aventus.Toast.ToastManager","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-toast-manager","slots":{"default":{"local":true}}},{"code":"let Process=class Process {\n /**\n * Static handler for processing generic errors.\n */\n static handleErrors;\n /**\n * Configures the Process utility with custom error handling.\n */\n static configure(config) {\n this.handleErrors = config.handleErrors;\n }\n static async execute(prom) {\n const queryResult = await prom;\n return await this.parseErrors(queryResult);\n }\n static async parseErrors(result) {\n if (result.errors.length > 0) {\n if (this.handleErrors) {\n let msg = result.errors.map(p => p.message.replace(/\\n/g, '<br/>')).join(\"<br/>\");\n this.handleErrors(msg, result.errors);\n }\n return undefined;\n }\n if (result instanceof Aventus.ResultWithError)\n return result.result;\n if (result instanceof Aventus.VoidWithError)\n return result.success;\n return undefined;\n }\n}\nProcess.Namespace=`Aventus`;\n__as1(_, 'Process', Process);\n","dependencies":[{"fullName":"Aventus.GenericError","isStrong":true},{"fullName":"Aventus.ProcessConfig","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.ExtractFromError","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false}],"fullName":"Aventus.Process","required":false,"type":1,"isExported":true,"convertibleName":""}],"existing":[{"fullName":"Aventus.ProcessConfig","dependencies":[{"fullName":"Aventus.GenericError","isStrong":false}]},{"fullName":"Aventus.Toast.ToastPosition","dependencies":[]},{"fullName":"Aventus.Navigation.PageConfig","dependencies":[]},{"fullName":"Aventus.Navigation.RouteAsyncOption","dependencies":[{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Modal.ModalOptions","dependencies":[]},{"fullName":"Aventus.Lib.ShortcutManagerOptions","dependencies":[]},{"fullName":"Aventus.Layout.ColOptions","dependencies":[]},{"fullName":"Aventus.Form.LastParameter","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Last","isStrong":false}]},{"fullName":"Aventus.Form.ObjectParameter","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Last","isStrong":false}]},{"fullName":"Aventus.Form.InternalFormPart","dependencies":[{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false}]},{"fullName":"Aventus.Form.IsUnion","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"U","isStrong":false}]},{"fullName":"Aventus.Form.FilterPrefix","dependencies":[{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.InternalForm","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false}]},{"fullName":"Aventus.Form.OmitClass","dependencies":[]},{"fullName":"Aventus.Form.WithError","dependencies":[{"fullName":"Storybook","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false}]},{"fullName":"Aventus.Form.ExtractError","dependencies":[{"fullName":"X","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false}]},{"fullName":"Aventus.Form.Constructor","dependencies":[{"fullName":"AllowAbstract","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Toast.ToastManagerOptions","dependencies":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Toast.ToastElement","isStrong":false},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"Aventus.Toast.ToastPosition","isStrong":false}]},{"fullName":"Aventus.Navigation.RouterOptions","dependencies":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Form.FormValidateResult","dependencies":[{"fullName":"Aventus.Asyncable","isStrong":false}]},{"fullName":"Aventus.Form.FormValidate","dependencies":[{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidate","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidateList","dependencies":[{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.Validator","isStrong":false}]},{"fullName":"Aventus.Form.SubmitFunction","dependencies":[{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.FormHandlerConfig","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"R","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false}]},{"fullName":"Aventus.Form.FormPart","dependencies":[{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.FormSchema","dependencies":[{"fullName":"Aventus.Form.OmitClass","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"K","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.MethodName","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.FilterPrefix","isStrong":false}]},{"fullName":"Aventus.Form.MethodResult","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"M","isStrong":false}]},{"fullName":"Aventus.Form.MethodNameExist","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.IsUnion","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false}]},{"fullName":"Aventus.Form.MethodBody","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Key","isStrong":false},{"fullName":"Aventus.Form.LastParameter","isStrong":false}]},{"fullName":"Aventus.Form.MethodResultParsed","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"Aventus.Form.MethodResult","isStrong":false},{"fullName":"M","isStrong":false}]},{"fullName":"Aventus.Form.FormHandlerControllerConfig","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"Key","isStrong":false},{"fullName":"Aventus.Form.MethodResultParsed","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}]},{"fullName":"Aventus.Form.IFormElement","dependencies":[{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false}]},{"fullName":"Aventus.Form.IForm","dependencies":[{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.ButtonElement","isStrong":false}]},{"fullName":"Aventus.Modal.ExtractTypeModal","dependencies":[{"fullName":"Aventus.Modal.ModalElement","isStrong":false},{"fullName":"U","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.Modal.ModalOptions","isStrong":false},{"fullName":"X","isStrong":false}]},{"fullName":"Aventus.Toast.ToastOptions","dependencies":[{"fullName":"Aventus.Toast.ToastPosition","isStrong":false}]}]}
3077
+ {"namespace":"Aventus","available":[{"code":"let AventusUI=class AventusUI {\n static configure() {\n }\n}\nAventusUI.Namespace=`Aventus`;\n__as1(_, 'AventusUI', AventusUI);\n","dependencies":[],"fullName":"Aventus.AventusUI","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"const ProgressCircle = class ProgressCircle extends Aventus.WebComponent {\n static get observedAttributes() {return [\"value\", \"stroke_width\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'value'() { return this.getNumberProp('value') }\n set 'value'(val) { this.setNumberAttr('value', val) }\nget 'stroke_width'() { return this.getNumberProp('stroke_width') }\n set 'stroke_width'(val) { this.setNumberAttr('stroke_width', val) }\n svg;\n backCircle;\n percentCircle;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"value\", ((target) => {\n target.render();\n}));\nthis.__addPropertyActions(\"stroke_width\", ((target) => {\n target.render();\n}));\n }\n static __style = `:host{--_progress-circle-back-circle-color: var(--progress-circle-back-circle-color, rgba(191, 219, 254, .5));--_progress-circle-percent-circle-color: var(--progress-circle-percent-circle-color, #3b82f6);--_progress-circle-transition: var(--progress-circle-transition, stroke 0.3s cubic-bezier(.4, 0, .2, 1), stroke-dashoffset 0.3s cubic-bezier(.4, 0, .2, 1))}:host{align-items:center;aspect-ratio:1/1;display:flex;flex-direction:column;justify-content:center;position:relative;width:60px}:host .container{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;width:100%}:host .container svg{height:100%;transform:rotate(-90deg);width:100%}:host .container svg .back-circle{fill:rgba(0,0,0,0);stroke:var(--_progress-circle-back-circle-color);transition:stroke linear .2s}:host .container svg .percent-circle{fill:rgba(0,0,0,0);stroke:var(--_progress-circle-percent-circle-color);transition:var(--_progress-circle-transition)}:host .content{display:flex;position:absolute}`;\n __getStatic() {\n return ProgressCircle;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ProgressCircle.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"container\" _id=\"progresscircle_0\"></div><div class=\"content\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"containerEl\",\n \"ids\": [\n \"progresscircle_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"ProgressCircle\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('value')){ this['value'] = 40; }\nif(!this.hasAttribute('stroke_width')){ this['stroke_width'] = 6; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('value');\nthis.__upgradeProperty('stroke_width');\n }\n getLimitedValue(input) {\n if (input === undefined) {\n return 0;\n }\n else if (input > 100) {\n return 100;\n }\n else {\n return input;\n }\n }\n render() {\n let min = Math.min(this.offsetWidth, this.offsetHeight);\n if (min == 0)\n return;\n const value = this.getLimitedValue(this.value);\n const radius = min / 2;\n const strokeWidth = this.stroke_width;\n const normalizedRadius = radius - strokeWidth / 2;\n const circumference = normalizedRadius * 2 * Math.PI;\n const strokeDashoffset = (value / 100) * circumference;\n const offset = circumference - strokeDashoffset;\n let appendSvg = false;\n if (!this.svg) {\n appendSvg = true;\n this.svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n }\n this.svg.setAttribute(\"width\", radius * 2 + \"\");\n this.svg.setAttribute(\"height\", radius * 2 + \"\");\n this.svg.setAttribute(\"viewBox\", \"0 0 \" + (radius * 2) + \" \" + (radius * 2));\n if (!this.backCircle) {\n this.backCircle = document.createElementNS(\"http://www.w3.org/2000/svg\", \"circle\");\n this.svg.appendChild(this.backCircle);\n }\n this.backCircle.classList.add(\"back-circle\");\n this.backCircle.setAttribute(\"r\", normalizedRadius + \"\");\n this.backCircle.setAttribute(\"cx\", radius + \"\");\n this.backCircle.setAttribute(\"cy\", radius + \"\");\n this.backCircle.setAttribute(\"stroke-width\", strokeWidth + \"\");\n this.backCircle.setAttribute(\"stroke-linecap\", \"round\");\n if (!this.percentCircle) {\n this.percentCircle = document.createElementNS(\"http://www.w3.org/2000/svg\", \"circle\");\n this.svg.appendChild(this.percentCircle);\n }\n this.percentCircle.classList.add(\"percent-circle\");\n this.percentCircle.setAttribute(\"r\", normalizedRadius + \"\");\n this.percentCircle.setAttribute(\"cx\", radius + \"\");\n this.percentCircle.setAttribute(\"cy\", radius + \"\");\n this.percentCircle.setAttribute(\"stroke-width\", strokeWidth + \"\");\n this.percentCircle.setAttribute(\"stroke-dasharray\", circumference + \" \" + circumference);\n this.percentCircle.setAttribute(\"stroke-dashoffset\", offset + \"\");\n this.percentCircle.setAttribute(\"stroke-linecap\", \"round\");\n if (appendSvg) {\n this.containerEl.appendChild(this.svg);\n }\n }\n postCreation() {\n new Aventus.ResizeObserver(() => {\n this.render();\n }).observe(this);\n this.render();\n }\n}\nProgressCircle.Namespace=`Aventus`;\nProgressCircle.Tag=`av-progress-circle`;\n__as1(_, 'ProgressCircle', ProgressCircle);\nif(!window.customElements.get('av-progress-circle')){window.customElements.define('av-progress-circle', ProgressCircle);Aventus.WebComponentInstance.registerDefinition(ProgressCircle);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.ResizeObserver","isStrong":false}],"fullName":"Aventus.ProgressCircle","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-progress-circle","slots":{"default":{"local":true}}},{"code":"let RouterStateManager=class RouterStateManager extends Aventus.StateManager {\n hash = \"\";\n getHash() {\n return this.hash;\n }\n async setState(state) {\n if (typeof state !== \"string\") {\n const hashIndex = state.name.indexOf(\"#\");\n this.hash = hashIndex === -1 ? \"\" : state.name.substring(hashIndex);\n return super.setState(state);\n }\n const hashIndex = state.indexOf(\"#\");\n this.hash = hashIndex === -1 ? \"\" : state.substring(hashIndex);\n return super.setState(hashIndex === -1 ? state : state.substring(0, hashIndex));\n }\n /**\n * Retrieves the singleton instance of the RouterStateManager.\n */\n static getInstance() {\n return Aventus.Instance.get(RouterStateManager);\n }\n}\nRouterStateManager.Namespace=`Aventus`;\n__as1(_, 'RouterStateManager', RouterStateManager);\n","dependencies":[{"fullName":"Aventus.StateManager","isStrong":true},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false}],"fullName":"Aventus.RouterStateManager","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Navigation.RouterLink = class RouterLink extends Aventus.WebComponent {\n get 'state'() { return this.getStringAttr('state') }\n set 'state'(val) { this.setStringAttr('state', val) }\nget 'active_state'() { return this.getStringAttr('active_state') }\n set 'active_state'(val) { this.setStringAttr('active_state', val) }\n onActiveChange = new Aventus.Callback();\n static __style = `:host a{color:inherit;display:contents;text-decoration:none}`;\n __getStatic() {\n return RouterLink;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(RouterLink.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<a _id=\"routerlink_0\"><slot></slot></a>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"content\": {\n \"routerlink_0°href\": {\n \"fct\": (c) => `${c.print(c.comp.__ad88894dc7dea62195d227cdd21fc210method0())}`,\n \"once\": true\n }\n },\n \"events\": [\n {\n \"eventName\": \"click\",\n \"id\": \"routerlink_0\",\n \"fct\": (e, c) => c.comp.prevent(e)\n }\n ]\n});\n }\n getClassName() {\n return \"RouterLink\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('state')){ this['state'] = undefined; }\nif(!this.hasAttribute('active_state')){ this['active_state'] = undefined; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('state');\nthis.__upgradeProperty('active_state');\n }\n addClickEvent() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n if (this.state === undefined)\n return;\n let state = this.state;\n if (this.state.startsWith(\".\")) {\n state = Aventus.Instance.get(RouterStateManager).getState()?.name ?? \"\";\n if (!state.endsWith(\"/\")) {\n state += \"/\";\n }\n state += this.state;\n state = Aventus.Uri.normalize(state);\n }\n Aventus.State.activate(state, Aventus.Instance.get(RouterStateManager));\n }\n });\n }\n registerActiveStateListener() {\n let activeState = this.state;\n if (this.active_state) {\n activeState = this.active_state;\n }\n if (activeState === undefined)\n return;\n Aventus.Instance.get(RouterStateManager).subscribe(activeState, {\n active: () => {\n this.classList.add(\"active\");\n this.onActiveChange.trigger(true);\n },\n inactive: () => {\n this.classList.remove(\"active\");\n this.onActiveChange.trigger(false);\n }\n });\n }\n prevent(e) {\n e.preventDefault();\n }\n postCreation() {\n this.registerActiveStateListener();\n this.addClickEvent();\n }\n __ad88894dc7dea62195d227cdd21fc210method0() {\n return this.state;\n }\n}\nNavigation.RouterLink.Namespace=`Aventus.Navigation`;\nNavigation.RouterLink.Tag=`av-router-link`;\n__as1(_.Navigation, 'RouterLink', Navigation.RouterLink);\nif(!window.customElements.get('av-router-link')){window.customElements.define('av-router-link', Navigation.RouterLink);Aventus.WebComponentInstance.registerDefinition(Navigation.RouterLink);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.Uri","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.NotVoid","isStrong":false}],"fullName":"Aventus.Navigation.RouterLink","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-router-link","slots":{"default":{"local":true}}},{"code":"Navigation.Link = class Link extends Aventus.WebComponent {\n get 'to'() { return this.getStringAttr('to') }\n set 'to'(val) { this.setStringAttr('to', val) }\nget 'active_pattern'() { return this.getStringAttr('active_pattern') }\n set 'active_pattern'(val) { this.setStringAttr('active_pattern', val) }\n onActiveChange = new Aventus.Callback();\n static __style = `:host{display:contents}:host a{color:inherit;display:contents;text-decoration:none}`;\n __getStatic() {\n return Link;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Link.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<a _id=\"link_0\"><slot></slot></a>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"content\": {\n \"link_0°href\": {\n \"fct\": (c) => `${c.print(c.comp.__7e4c6c9fe944acd9b1174c61347fdcb6method0())}`,\n \"once\": true\n }\n },\n \"events\": [\n {\n \"eventName\": \"click\",\n \"id\": \"link_0\",\n \"fct\": (e, c) => c.comp.prevent(e)\n }\n ]\n});\n }\n getClassName() {\n return \"Link\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('to')){ this['to'] = undefined; }\nif(!this.hasAttribute('active_pattern')){ this['active_pattern'] = undefined; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('to');\nthis.__upgradeProperty('active_pattern');\n }\n addClickEvent() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n if (this.to === undefined)\n return false;\n let to = this.to;\n if (this.to.startsWith(\".\")) {\n to = Aventus.Instance.get(RouterStateManager).getState()?.name ?? \"\";\n if (!to.endsWith(\"/\")) {\n to += \"/\";\n }\n to += this.to;\n to = Aventus.Uri.normalize(to);\n }\n Aventus.State.activate(to, Aventus.Instance.get(RouterStateManager));\n return true;\n }\n });\n }\n registerActivetoListener() {\n let activeto = this.to;\n if (this.active_pattern) {\n activeto = this.active_pattern;\n }\n if (activeto === undefined)\n return;\n Aventus.Instance.get(RouterStateManager).subscribe(activeto, {\n active: () => {\n this.classList.add(\"active\");\n this.onActiveChange.trigger(true);\n },\n inactive: () => {\n this.classList.remove(\"active\");\n this.onActiveChange.trigger(false);\n }\n });\n }\n prevent(e) {\n e.preventDefault();\n }\n postCreation() {\n this.registerActivetoListener();\n this.addClickEvent();\n }\n __7e4c6c9fe944acd9b1174c61347fdcb6method0() {\n return this.to;\n }\n}\nNavigation.Link.Namespace=`Aventus.Navigation`;\nNavigation.Link.Tag=`av-link`;\n__as1(_.Navigation, 'Link', Navigation.Link);\nif(!window.customElements.get('av-link')){window.customElements.define('av-link', Navigation.Link);Aventus.WebComponentInstance.registerDefinition(Navigation.Link);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.Uri","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.NotVoid","isStrong":false}],"fullName":"Aventus.Navigation.Link","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-link","slots":{"default":{"local":true}}},{"code":"Layout.Scrollable = class Scrollable extends Aventus.WebComponent {\n static get observedAttributes() {return [\"zoom\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'y_scroll_visible'() { return this.getBoolAttr('y_scroll_visible') }\n set 'y_scroll_visible'(val) { this.setBoolAttr('y_scroll_visible', val) }\nget 'x_scroll_visible'() { return this.getBoolAttr('x_scroll_visible') }\n set 'x_scroll_visible'(val) { this.setBoolAttr('x_scroll_visible', val) }\nget 'floating_scroll'() { return this.getBoolAttr('floating_scroll') }\n set 'floating_scroll'(val) { this.setBoolAttr('floating_scroll', val) }\nget 'x_scroll'() { return this.getBoolAttr('x_scroll') }\n set 'x_scroll'(val) { this.setBoolAttr('x_scroll', val) }\nget 'y_scroll'() { return this.getBoolAttr('y_scroll') }\n set 'y_scroll'(val) { this.setBoolAttr('y_scroll', val) }\nget 'auto_hide'() { return this.getBoolAttr('auto_hide') }\n set 'auto_hide'(val) { this.setBoolAttr('auto_hide', val) }\nget 'disable'() { return this.getBoolAttr('disable') }\n set 'disable'(val) { this.setBoolAttr('disable', val) }\nget 'no_user_select'() { return this.getBoolAttr('no_user_select') }\n set 'no_user_select'(val) { this.setBoolAttr('no_user_select', val) }\nget 'mouse_drag'() { return this.getBoolAttr('mouse_drag') }\n set 'mouse_drag'(val) { this.setBoolAttr('mouse_drag', val) }\nget 'flex'() { return this.getBoolAttr('flex') }\n set 'flex'(val) { this.setBoolAttr('flex', val) }\n get 'zoom'() { return this.getNumberProp('zoom') }\n set 'zoom'(val) { this.setNumberAttr('zoom', val) }\n get 'allowResizeObserver'() {\n\t\t\t\t\t\treturn this.__signals[\"allowResizeObserver\"].value;\n\t\t\t\t\t}\n\t\t\t\t\tset 'allowResizeObserver'(val) {\n\t\t\t\t\t\tthis.__signals[\"allowResizeObserver\"].value = val;\n\t\t\t\t\t}\n observer;\n contentWrapperSize = { x: 0, y: 0 };\n display = { x: 0, y: 0 };\n margin = {\n x: 0,\n y: 0\n };\n scroller = {\n x: () => {\n if (!this.horizontalScroller) {\n throw 'can\\'t find the horizontalScroller';\n }\n return this.horizontalScroller;\n },\n y: () => {\n if (!this.verticalScroller) {\n throw 'can\\'t find the verticalScroller';\n }\n return this.verticalScroller;\n }\n };\n max = {\n x: 0,\n y: 0\n };\n hideDelay = { x: 0, y: 0 };\n get x() {\n return this.contentHidder.scrollLeft;\n }\n get y() {\n return this.contentHidder.scrollTop;\n }\n get xMax() {\n return this.max.x;\n }\n get yMax() {\n return this.max.y;\n }\n scrollTimeout = 0;\n onScrollChange = new Aventus.Callback();\n onZoomChange = new Aventus.Callback();\n __registerSignalsActions() { this.__signals[\"allowResizeObserver\"] = null;\n super.__registerSignalsActions(); this.__addSignalActions(\"allowResizeObserver\", ((target) => {\n if (target.allowResizeObserver) {\n target.dimensionRefreshed();\n }\n}));\n }\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"zoom\", ((target) => {\n target.changeZoom();\n}));\n }\n static __style = `:host{--_scrollbar-container-color: var(--scrollbar-container-color, transparent);--_scrollbar-color: var(--scrollbar-color, #757575);--_scrollbar-active-color: var(--scrollbar-active-color, #858585);--_scroller-width: var(--scroller-width, 6px);--_scroller-top: var(--scroller-top, 3px);--_scroller-bottom: var(--scroller-bottom, 3px);--_scroller-right: var(--scroller-right, 3px);--_scroller-left: var(--scroller-left, 3px);--_scrollbar-content-padding: var(--scrollbar-content-padding, 0);--_scrollbar-container-display: var(--scrollbar-container-display, inline-block)}:host{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:clip;position:relative;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;width:100%}:host .scroll-main-container{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;width:100%}:host .scroll-main-container .content-zoom{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;transform-origin:0 0;width:100%;z-index:4}:host .scroll-main-container .content-zoom .content-hidder{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;position:relative;scrollbar-width:none;width:100%}:host .scroll-main-container .content-zoom .content-hidder::-webkit-scrollbar{display:none}:host .scroll-main-container .content-zoom .content-hidder .content-wrapper{display:var(--_scrollbar-container-display);height:100%;min-height:inherit;min-width:inherit;padding:var(--_scrollbar-content-padding);position:relative;width:100%}:host .scroll-main-container .scroller-wrapper .container-scroller{display:none;overflow:hidden;position:absolute;transition:transform .2s linear;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller{background-color:var(--_scrollbar-container-color);border-radius:5px}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller .scroller{background-color:var(--_scrollbar-color);border-radius:5px;cursor:pointer;position:absolute;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .scroller.active{background-color:var(--_scrollbar-active-color)}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical{height:calc(100% - var(--_scroller-bottom)*2 - var(--_scroller-width));padding-left:var(--_scroller-left);right:var(--_scroller-right);top:var(--_scroller-bottom);transform:0;width:calc(var(--_scroller-width) + var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical.hide{transform:translateX(calc(var(--_scroller-width) + var(--_scroller-left)))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller .scroller{width:calc(100% - var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal{bottom:var(--_scroller-bottom);height:calc(var(--_scroller-width) + var(--_scroller-top));left:var(--_scroller-right);padding-top:var(--_scroller-top);transform:0;width:calc(100% - var(--_scroller-right)*2 - var(--_scroller-width))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal.hide{transform:translateY(calc(var(--_scroller-width) + var(--_scroller-top)))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller .scroller{height:calc(100% - var(--_scroller-top))}:host([y_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{height:auto}:host([x_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{width:auto}:host([y_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.vertical{display:block}:host([x_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.horizontal{display:block}:host([no_user_select]) .content-wrapper *{user-select:none}:host([no_user_select]) ::slotted{user-select:none}:host([flex]){display:flex;flex-direction:column;min-height:0}:host([flex]) .scroll-main-container{display:flex;flex-direction:column}:host([flex]) .scroll-main-container .content-zoom{display:flex;flex-direction:column}:host([disable]) .scroll-main-container .content-zoom .content-hidder{overflow:hidden}:host([disable]) .scroll-main-container .scroller-wrapper{display:none}:host([is_scrolling]) .content-wrapper{pointer-events:none}`;\n __getStatic() {\n return Scrollable;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Scrollable.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"scroll-main-container\" _id=\"scrollable_0\">\r <div class=\"content-zoom\" _id=\"scrollable_1\">\r <div class=\"content-hidder\" _id=\"scrollable_2\">\r <div class=\"content-wrapper\" part=\"content-wrapper\" _id=\"scrollable_3\">\r <slot></slot>\r </div>\r </div>\r </div>\r <div class=\"scroller-wrapper\">\r <div class=\"container-scroller vertical\" _id=\"scrollable_4\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"scrollable_5\"></div>\r </div>\r </div>\r <div class=\"container-scroller horizontal\" _id=\"scrollable_6\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"scrollable_7\"></div>\r </div>\r </div>\r </div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"mainContainer\",\n \"ids\": [\n \"scrollable_0\"\n ]\n },\n {\n \"name\": \"contentZoom\",\n \"ids\": [\n \"scrollable_1\"\n ]\n },\n {\n \"name\": \"contentHidder\",\n \"ids\": [\n \"scrollable_2\"\n ]\n },\n {\n \"name\": \"contentWrapper\",\n \"ids\": [\n \"scrollable_3\"\n ]\n },\n {\n \"name\": \"verticalScrollerContainer\",\n \"ids\": [\n \"scrollable_4\"\n ]\n },\n {\n \"name\": \"verticalScroller\",\n \"ids\": [\n \"scrollable_5\"\n ]\n },\n {\n \"name\": \"horizontalScrollerContainer\",\n \"ids\": [\n \"scrollable_6\"\n ]\n },\n {\n \"name\": \"horizontalScroller\",\n \"ids\": [\n \"scrollable_7\"\n ]\n }\n ],\n \"events\": [\n {\n \"eventName\": \"scroll\",\n \"id\": \"scrollable_2\",\n \"fct\": (e, c) => c.comp.onScrollEvent(e)\n }\n ]\n});\n }\n getClassName() {\n return \"Scrollable\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('y_scroll_visible')) { this.attributeChangedCallback('y_scroll_visible', false, false); }\nif(!this.hasAttribute('x_scroll_visible')) { this.attributeChangedCallback('x_scroll_visible', false, false); }\nif(!this.hasAttribute('floating_scroll')) { this.attributeChangedCallback('floating_scroll', false, false); }\nif(!this.hasAttribute('x_scroll')) { this.attributeChangedCallback('x_scroll', false, false); }\nif(!this.hasAttribute('y_scroll')) {this.setAttribute('y_scroll' ,'true'); }\nif(!this.hasAttribute('auto_hide')) { this.attributeChangedCallback('auto_hide', false, false); }\nif(!this.hasAttribute('disable')) { this.attributeChangedCallback('disable', false, false); }\nif(!this.hasAttribute('no_user_select')) { this.attributeChangedCallback('no_user_select', false, false); }\nif(!this.hasAttribute('mouse_drag')) { this.attributeChangedCallback('mouse_drag', false, false); }\nif(!this.hasAttribute('flex')) { this.attributeChangedCallback('flex', false, false); }\nif(!this.hasAttribute('zoom')){ this['zoom'] = 1; }\n }\n __defaultValuesSignal(s) { super.__defaultValuesSignal(s); s[\"allowResizeObserver\"] = true;\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('x');\nthis.__correctGetter('y');\nthis.__correctGetter('xMax');\nthis.__correctGetter('yMax');\nthis.__upgradeProperty('y_scroll_visible');\nthis.__upgradeProperty('x_scroll_visible');\nthis.__upgradeProperty('floating_scroll');\nthis.__upgradeProperty('x_scroll');\nthis.__upgradeProperty('y_scroll');\nthis.__upgradeProperty('auto_hide');\nthis.__upgradeProperty('disable');\nthis.__upgradeProperty('no_user_select');\nthis.__upgradeProperty('mouse_drag');\nthis.__upgradeProperty('flex');\nthis.__upgradeProperty('zoom');\nthis.__correctGetter('allowResizeObserver');\n }\n __listBoolProps() { return [\"y_scroll_visible\",\"x_scroll_visible\",\"floating_scroll\",\"x_scroll\",\"y_scroll\",\"auto_hide\",\"disable\",\"no_user_select\",\"mouse_drag\",\"flex\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n calculateRealSize() {\n if (!this.contentZoom || !this.mainContainer || !this.contentWrapper) {\n return false;\n }\n const currentOffsetWidth = this.contentZoom.offsetWidth;\n const currentOffsetHeight = this.contentZoom.offsetHeight;\n let hasChanged = false;\n if (this.contentWrapper.offsetWidth != this.contentWrapperSize.x || this.contentWrapper.offsetHeight != this.contentWrapperSize.y)\n hasChanged = true;\n this.contentWrapperSize.x = this.contentWrapper.offsetWidth;\n this.contentWrapperSize.y = this.contentWrapper.offsetHeight;\n if (this.zoom < 1) {\n // scale the container for zoom\n this.contentZoom.style.width = this.div(this.mainContainer.offsetWidth, this.zoom) + 'px';\n this.contentZoom.style.height = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n this.contentZoom.style.maxHeight = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n if (currentOffsetHeight != this.display.y || currentOffsetWidth != this.display.x)\n hasChanged = true;\n this.display.y = currentOffsetHeight;\n this.display.x = currentOffsetWidth;\n }\n else {\n const newX = this.div(currentOffsetWidth, this.zoom);\n const newY = this.div(currentOffsetHeight, this.zoom);\n if (newY != this.display.y || newX != this.display.x)\n hasChanged = true;\n this.display.y = newY;\n this.display.x = newX;\n this.contentZoom.style.width = '';\n this.contentZoom.style.height = '';\n this.contentZoom.style.maxHeight = '';\n }\n return hasChanged;\n }\n calculatePositionScrollerContainer(direction) {\n if (direction == 'y') {\n this.calculatePositionScrollerContainerY();\n }\n else {\n this.calculatePositionScrollerContainerX();\n }\n }\n calculatePositionScrollerContainerY() {\n const leftMissing = this.mainContainer.offsetWidth - this.verticalScrollerContainer.offsetLeft;\n if (leftMissing > 0 && this.y_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.width = 'calc(100% - ' + leftMissing + 'px)';\n this.contentHidder.style.marginRight = leftMissing + 'px';\n this.margin.x = leftMissing;\n }\n else {\n this.contentHidder.style.width = '';\n this.contentHidder.style.marginRight = '';\n this.margin.x = 0;\n }\n }\n calculatePositionScrollerContainerX() {\n const topMissing = this.mainContainer.offsetHeight - this.horizontalScrollerContainer.offsetTop;\n if (topMissing > 0 && this.x_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.height = 'calc(100% - ' + topMissing + 'px)';\n this.contentHidder.style.marginBottom = topMissing + 'px';\n this.margin.y = topMissing;\n }\n else {\n this.contentHidder.style.height = '';\n this.contentHidder.style.marginBottom = '';\n this.margin.y = 0;\n }\n }\n calculateSizeScroller(direction) {\n const scrollerSize = (this.div((this.display[direction] - this.margin[direction]), this.contentWrapperSize[direction]) * 100);\n if (direction == \"y\") {\n this.scroller[direction]().style.height = scrollerSize + '%';\n }\n else {\n this.scroller[direction]().style.width = scrollerSize + '%';\n }\n let maxScrollContent = this.contentWrapperSize[direction] - this.display[direction];\n if (maxScrollContent < 0) {\n maxScrollContent = 0;\n }\n this.max[direction] = maxScrollContent + this.margin[direction];\n }\n changeZoom() {\n this.contentZoom.style.transform = 'scale(' + this.zoom + ')';\n this.dimensionRefreshed(true);\n }\n dimensionRefreshed(force = false) {\n if (!this.calculateRealSize() && !force) {\n return;\n }\n if (this.contentWrapperSize.y - this.display.y > 0) {\n if (!this.y_scroll_visible) {\n this.y_scroll_visible = true;\n this.calculatePositionScrollerContainer('y');\n }\n this.calculateSizeScroller('y');\n }\n else if (this.y_scroll_visible) {\n this.y_scroll_visible = false;\n this.calculatePositionScrollerContainer('y');\n this.calculateSizeScroller('y');\n }\n if (this.contentWrapperSize.x - this.display.x > 0) {\n if (!this.x_scroll_visible) {\n this.x_scroll_visible = true;\n this.calculatePositionScrollerContainer('x');\n }\n this.calculateSizeScroller('x');\n }\n else if (this.x_scroll_visible) {\n this.x_scroll_visible = false;\n this.calculatePositionScrollerContainer('x');\n this.calculateSizeScroller('x');\n }\n }\n createResizeObserver() {\n let inProgress = false;\n return new Aventus.ResizeObserver({\n callback: entries => {\n if (inProgress) {\n return;\n }\n if (!this.allowResizeObserver)\n return;\n inProgress = true;\n this.dimensionRefreshed();\n inProgress = false;\n },\n fps: 30\n });\n }\n addResizeObserver() {\n if (this.observer == undefined) {\n this.observer = this.createResizeObserver();\n }\n this.observer.observe(this.contentWrapper);\n this.observer.observe(this);\n }\n onScrollEvent(e) {\n this.calculatePosition();\n window.dispatchEvent(new CustomEvent(\"scroll\", { detail: { source: this } }));\n }\n calculatePosition() {\n if (!this.hasAttribute('is-scrolling')) {\n this.setAttribute('is-scrolling', '');\n }\n const container = this.contentHidder;\n // Calcul de la position verticale\n if (this.y_scroll_visible) {\n const scrollTop = container.scrollTop;\n const scrollHeight = container.scrollHeight;\n const clientHeight = container.clientHeight;\n // Ratio de déplacement (0 à 1)\n const scrollPercentY = scrollTop / (scrollHeight - clientHeight);\n // Taille disponible dans le conteneur de la scrollbar\n const trackHeight = this.verticalScrollerContainer.offsetHeight;\n const thumbHeight = this.verticalScroller.offsetHeight;\n const maxMoveY = trackHeight - thumbHeight;\n // Application de la transformation\n const translateY = scrollPercentY * maxMoveY;\n this.verticalScroller.style.transform = `translateY(${translateY}px)`;\n if (this.auto_hide) {\n this.verticalScrollerContainer.classList.remove(\"hide\");\n clearTimeout(this.hideDelay['y']);\n this.hideDelay['y'] = setTimeout(() => {\n this.verticalScrollerContainer.classList.add(\"hide\");\n }, 1000);\n }\n }\n // Calcul de la position horizontale\n if (this.x_scroll_visible) {\n const scrollLeft = container.scrollLeft;\n const scrollWidth = container.scrollWidth;\n const clientWidth = container.clientWidth;\n const scrollPercentX = scrollLeft / (scrollWidth - clientWidth);\n const trackWidth = this.horizontalScrollerContainer.offsetWidth;\n const thumbWidth = this.horizontalScroller.offsetWidth;\n const maxMoveX = trackWidth - thumbWidth;\n const translateX = scrollPercentX * maxMoveX;\n this.horizontalScroller.style.transform = `translateX(${translateX}px)`;\n if (this.auto_hide) {\n this.horizontalScrollerContainer.classList.remove(\"hide\");\n clearTimeout(this.hideDelay['x']);\n this.hideDelay['x'] = setTimeout(() => {\n this.horizontalScrollerContainer.classList.add(\"hide\");\n }, 1000);\n }\n }\n this.triggerScrollChange();\n clearTimeout(this.scrollTimeout);\n this.scrollTimeout = setTimeout(() => {\n this.removeAttribute('is-scrolling');\n }, 150);\n }\n triggerScrollChange() {\n this.onScrollChange.trigger(this.x, this.y);\n }\n div(nb1, nb2) {\n if (!nb2)\n return nb1;\n return nb1 / nb2;\n }\n applyAutoHide() {\n if (this.auto_hide) {\n this.horizontalScrollerContainer.classList.remove(\"hide\");\n clearTimeout(this.hideDelay['x']);\n this.hideDelay['x'] = setTimeout(() => {\n this.horizontalScrollerContainer.classList.add(\"hide\");\n }, 1000);\n this.verticalScrollerContainer.classList.remove(\"hide\");\n clearTimeout(this.hideDelay['y']);\n this.hideDelay['y'] = setTimeout(() => {\n this.verticalScrollerContainer.classList.add(\"hide\");\n }, 1000);\n }\n }\n addScrollDrag(direction) {\n let scroller = this.scroller[direction]();\n let startScroll = 0;\n const drag = new Aventus.DragAndDrop({\n element: scroller,\n applyDrag: false,\n usePercent: true,\n offsetDrag: 0,\n isDragEnable: () => !this.disable,\n onStart: (e) => {\n this.no_user_select = true;\n scroller.classList.add(\"active\");\n if (direction === 'y') {\n startScroll = this.contentHidder.scrollTop;\n }\n else {\n startScroll = this.contentHidder.scrollLeft;\n }\n },\n onMove: (e, position) => {\n const scrollDelta = (position[direction] / 100) * this.contentWrapperSize[direction];\n if (direction === 'y') {\n this.contentHidder.scrollTop = startScroll + scrollDelta;\n }\n else {\n this.contentHidder.scrollLeft = startScroll + scrollDelta;\n }\n },\n onStop: () => {\n this.no_user_select = false;\n scroller.classList.remove(\"active\");\n }\n });\n }\n scrollX(x) {\n this.contentHidder.scrollLeft = x;\n this.calculatePositionScrollerContainer('x');\n }\n scrollY(y) {\n this.contentHidder.scrollTop = y;\n this.calculatePositionScrollerContainer('y');\n }\n addAction() {\n if (this.mouse_drag) {\n let startScrollX = 0;\n let startScrollY = 0;\n let posX = 0;\n let posY = 0;\n this.addEventListener(\"pointerdown\", (e) => {\n if (!this.x_scroll_visible && !this.y_scroll_visible) {\n return;\n }\n startScrollX = this.contentHidder.scrollLeft;\n startScrollY = this.contentHidder.scrollTop;\n posX = e.pageX;\n posY = e.pageY;\n this.no_user_select = true;\n const move = (e) => {\n if (this.x_scroll_visible) {\n this.contentHidder.scrollLeft = startScrollX + (posX - e.pageX);\n }\n if (this.y_scroll_visible) {\n this.contentHidder.scrollTop = startScrollY + (posY - e.pageY);\n }\n };\n const stop = (e) => {\n this.no_user_select = false;\n document.removeEventListener(\"pointermove\", move);\n document.removeEventListener(\"pointerup\", stop);\n document.removeEventListener(\"pointercancel\", stop);\n };\n document.addEventListener(\"pointermove\", move);\n document.addEventListener(\"pointerup\", stop);\n document.addEventListener(\"pointercancel\", stop);\n });\n // new PressManager({\n // element: this,\n // offsetDrag: 0,\n // onDragStart: (e) => {\n // if(!this.x_scroll_visible && !this.y_scroll_visible) {\n // return false;\n // }\n // if(e.event instanceof PointerEvent) {\n // startScrollX = this.contentHidder.scrollLeft;\n // startScrollY = this.contentHidder.scrollTop;\n // posX = e.event.pageX;\n // posY = e.event.pageY;\n // this.no_user_select = true;\n // return true;\n // }\n // return false;\n // },\n // onDrag: (e) => {\n // if(e.event instanceof PointerEvent) {\n // }\n // },\n // onDragEnd: (e) => {\n // this.no_user_select = false;\n // }\n // });\n }\n this.addScrollDrag('x');\n this.addScrollDrag('y');\n }\n focusElementByAnchor() {\n const id = window.location.hash.substring(1);\n if (id) {\n const elements = this.getElementsInSlot();\n for (let element of elements) {\n const target = element.id == id ? element : element.querySelector(\"#\" + id);\n if (target) {\n target.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n }\n }\n }\n }\n addHashWatch() {\n window.addEventListener(\"hashchange\", () => {\n if (this.offsetHeight > 0 && this.offsetWidth > 0) {\n this.focusElementByAnchor();\n }\n });\n this.addEventListener(\"hashcheck\", () => {\n if (this.offsetHeight > 0 && this.offsetWidth > 0) {\n this.focusElementByAnchor();\n }\n });\n }\n postCreation() {\n this.dimensionRefreshed();\n this.addResizeObserver();\n this.applyAutoHide();\n this.addAction();\n this.focusElementByAnchor();\n this.addHashWatch();\n }\n}\nLayout.Scrollable.Namespace=`Aventus.Layout`;\nLayout.Scrollable.Tag=`av-scrollable`;\n__as1(_.Layout, 'Scrollable', Layout.Scrollable);\nif(!window.customElements.get('av-scrollable')){window.customElements.define('av-scrollable', Layout.Scrollable);Aventus.WebComponentInstance.registerDefinition(Layout.Scrollable);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Scrollable","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false}],"fullName":"Aventus.Layout.Scrollable","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-scrollable","slots":{"default":{"local":true}}},{"code":"Layout.Row = class Row extends Aventus.WebComponent {\n static __style = `:host{--_col-gap: var(--col-gap, 0px);--_col-gap-y: var(--col-gap-y, var(--_col-gap));--_col-gap-x: var(--col-gap-x, var(--_col-gap))}:host{container-name:row;container-type:inline-size;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--_col-gap-y) var(--_col-gap-x);width:100%}`;\n __getStatic() {\n return Row;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Row.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Row\";\n }\n postCreation() {\n super.postCreation();\n this.style.containerName = \"row\";\n this.style.containerType = \"inline-size\";\n }\n}\nLayout.Row.Namespace=`Aventus.Layout`;\nLayout.Row.Tag=`av-row`;\n__as1(_.Layout, 'Row', Layout.Row);\nif(!window.customElements.get('av-row')){window.customElements.define('av-row', Layout.Row);Aventus.WebComponentInstance.registerDefinition(Layout.Row);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true}],"fullName":"Aventus.Layout.Row","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-row","slots":{"default":{"local":true}}},{"code":"(function (SpecialTouch) {\n SpecialTouch[SpecialTouch[\"Backspace\"] = 0] = \"Backspace\";\n SpecialTouch[SpecialTouch[\"Insert\"] = 1] = \"Insert\";\n SpecialTouch[SpecialTouch[\"End\"] = 2] = \"End\";\n SpecialTouch[SpecialTouch[\"PageDown\"] = 3] = \"PageDown\";\n SpecialTouch[SpecialTouch[\"PageUp\"] = 4] = \"PageUp\";\n SpecialTouch[SpecialTouch[\"Escape\"] = 5] = \"Escape\";\n SpecialTouch[SpecialTouch[\"AltGraph\"] = 6] = \"AltGraph\";\n SpecialTouch[SpecialTouch[\"Control\"] = 7] = \"Control\";\n SpecialTouch[SpecialTouch[\"Alt\"] = 8] = \"Alt\";\n SpecialTouch[SpecialTouch[\"Shift\"] = 9] = \"Shift\";\n SpecialTouch[SpecialTouch[\"CapsLock\"] = 10] = \"CapsLock\";\n SpecialTouch[SpecialTouch[\"Tab\"] = 11] = \"Tab\";\n SpecialTouch[SpecialTouch[\"Delete\"] = 12] = \"Delete\";\n SpecialTouch[SpecialTouch[\"ArrowRight\"] = 13] = \"ArrowRight\";\n SpecialTouch[SpecialTouch[\"ArrowLeft\"] = 14] = \"ArrowLeft\";\n SpecialTouch[SpecialTouch[\"ArrowUp\"] = 15] = \"ArrowUp\";\n SpecialTouch[SpecialTouch[\"ArrowDown\"] = 16] = \"ArrowDown\";\n SpecialTouch[SpecialTouch[\"Enter\"] = 17] = \"Enter\";\n})(Lib.SpecialTouch || (Lib.SpecialTouch = {}));\n__as1(_.Lib, 'SpecialTouch', Lib.SpecialTouch);\n","dependencies":[],"fullName":"Aventus.Lib.SpecialTouch","required":false,"type":6,"isExported":true,"convertibleName":""},{"code":"const Collapse = class Collapse extends Aventus.WebComponent {\n get 'open'() { return this.getBoolAttr('open') }\n set 'open'(val) { this.setBoolAttr('open', val) }\nget 'no_animation'() { return this.getBoolAttr('no_animation') }\n set 'no_animation'(val) { this.setBoolAttr('no_animation', val) }\nget 'horizontal'() { return this.getBoolAttr('horizontal') }\n set 'horizontal'(val) { this.setBoolAttr('horizontal', val) }\nget 'reverse'() { return this.getBoolAttr('reverse') }\n set 'reverse'(val) { this.setBoolAttr('reverse', val) }\n static __style = `:host{--_collapse-transition-duration: var(--collapse-transition-duration, 0.5s);--_collapse-transition-timing-function: var(--collapse-transition-timing-function, cubic-bezier(0.65, 0, 0.15, 1))}:host .title{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host .collapse{display:grid;transition-duration:var(--_collapse-transition-duration);transition-timing-function:var(--_collapse-transition-timing-function);transition-property:grid-template-rows,grid-template-columns}:host .collapse .content{overflow:hidden}:host([no_animation]) .collapse{transition:none}:host(:not([horizontal])) .collapse{grid-template-rows:0fr}:host([open]:not([horizontal])) .collapse{grid-template-rows:1fr}:host([horizontal]) .collapse{grid-template-columns:0fr}:host([open][horizontal]) .collapse{grid-template-columns:1fr}:host([reverse]) .collapse{justify-content:end}`;\n __getStatic() {\n return Collapse;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Collapse.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'header':`<slot name=\"header\"></slot>`,'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"title\" _id=\"collapse_0\">\r <slot name=\"header\"></slot>\r</div><div class=\"collapse\" _id=\"collapse_1\">\r <div class=\"content\">\r <slot></slot>\r </div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"events\": [\n {\n \"eventName\": \"transitionend\",\n \"id\": \"collapse_1\",\n \"fct\": (e, c) => c.comp.transitionEnd(e)\n }\n ],\n \"pressEvents\": [\n {\n \"id\": \"collapse_0\",\n \"onPress\": (e, pressInstance, c) => { c.comp.toggleOpen(e, pressInstance); }\n }\n ]\n});\n }\n getClassName() {\n return \"Collapse\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('open')) { this.attributeChangedCallback('open', false, false); }\nif(!this.hasAttribute('no_animation')) { this.attributeChangedCallback('no_animation', false, false); }\nif(!this.hasAttribute('horizontal')) { this.attributeChangedCallback('horizontal', false, false); }\nif(!this.hasAttribute('reverse')) { this.attributeChangedCallback('reverse', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('open');\nthis.__upgradeProperty('no_animation');\nthis.__upgradeProperty('horizontal');\nthis.__upgradeProperty('reverse');\n }\n __listBoolProps() { return [\"open\",\"no_animation\",\"horizontal\",\"reverse\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n transitionEnd(e) {\n let cst = e.constructor;\n const new_e = new cst(e.type, e);\n this.dispatchEvent(new_e);\n }\n toggleOpen() {\n this.open = !this.open;\n }\n}\nCollapse.Namespace=`Aventus`;\nCollapse.Tag=`av-collapse`;\n__as1(_, 'Collapse', Collapse);\nif(!window.customElements.get('av-collapse')){window.customElements.define('av-collapse', Collapse);Aventus.WebComponentInstance.registerDefinition(Collapse);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true}],"fullName":"Aventus.Collapse","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-collapse","slots":{"header":{"local":true},"default":{"local":true}}},{"code":"Layout.Col = class Col extends Aventus.WebComponent {\n get 'use_container'() { return this.getBoolAttr('use_container') }\n set 'use_container'(val) { this.setBoolAttr('use_container', val) }\nget 'size'() { return this.getNumberAttr('size') }\n set 'size'(val) { this.setNumberAttr('size', val) }\nget 'size_xs'() { return this.getNumberAttr('size_xs') }\n set 'size_xs'(val) { this.setNumberAttr('size_xs', val) }\nget 'size_sm'() { return this.getNumberAttr('size_sm') }\n set 'size_sm'(val) { this.setNumberAttr('size_sm', val) }\nget 'size_md'() { return this.getNumberAttr('size_md') }\n set 'size_md'(val) { this.setNumberAttr('size_md', val) }\nget 'size_lg'() { return this.getNumberAttr('size_lg') }\n set 'size_lg'(val) { this.setNumberAttr('size_lg', val) }\nget 'size_xl'() { return this.getNumberAttr('size_xl') }\n set 'size_xl'(val) { this.setNumberAttr('size_xl', val) }\nget 'offset'() { return this.getNumberAttr('offset') }\n set 'offset'(val) { this.setNumberAttr('offset', val) }\nget 'offset_xs'() { return this.getNumberAttr('offset_xs') }\n set 'offset_xs'(val) { this.setNumberAttr('offset_xs', val) }\nget 'offset_sm'() { return this.getNumberAttr('offset_sm') }\n set 'offset_sm'(val) { this.setNumberAttr('offset_sm', val) }\nget 'offset_md'() { return this.getNumberAttr('offset_md') }\n set 'offset_md'(val) { this.setNumberAttr('offset_md', val) }\nget 'offset_lg'() { return this.getNumberAttr('offset_lg') }\n set 'offset_lg'(val) { this.setNumberAttr('offset_lg', val) }\nget 'offset_xl'() { return this.getNumberAttr('offset_xl') }\n set 'offset_xl'(val) { this.setNumberAttr('offset_xl', val) }\nget 'offset_right'() { return this.getNumberAttr('offset_right') }\n set 'offset_right'(val) { this.setNumberAttr('offset_right', val) }\nget 'offset_right_xs'() { return this.getNumberAttr('offset_right_xs') }\n set 'offset_right_xs'(val) { this.setNumberAttr('offset_right_xs', val) }\nget 'offset_right_sm'() { return this.getNumberAttr('offset_right_sm') }\n set 'offset_right_sm'(val) { this.setNumberAttr('offset_right_sm', val) }\nget 'offset_right_md'() { return this.getNumberAttr('offset_right_md') }\n set 'offset_right_md'(val) { this.setNumberAttr('offset_right_md', val) }\nget 'offset_right_lg'() { return this.getNumberAttr('offset_right_lg') }\n set 'offset_right_lg'(val) { this.setNumberAttr('offset_right_lg', val) }\nget 'offset_right_xl'() { return this.getNumberAttr('offset_right_xl') }\n set 'offset_right_xl'(val) { this.setNumberAttr('offset_right_xl', val) }\nget 'center'() { return this.getBoolAttr('center') }\n set 'center'(val) { this.setBoolAttr('center', val) }\n static use_container = false;\n static __style = `:host{--_col-padding: var(--col-padding, 8px)}:host{display:flex;padding:var(--_col-padding)}:host([center]){justify-content:center}:host([size=\"0\"]){display:none}:host([size=\"0\"]){width:0}:host([offset=\"0\"]){margin-left:0}:host([offset_right=\"0\"]){margin-right:0}:host([size=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([offset=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([offset_right=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([size=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([offset=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([offset_right=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([size=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([offset=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([offset_right=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([size=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([offset=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([offset_right=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([size=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([offset=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([offset_right=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([size=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([offset=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([offset_right=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([size=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([offset=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([offset_right=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([size=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([offset=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([offset_right=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([size=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([offset=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([offset_right=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([size=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([offset=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([offset_right=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([size=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([offset=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([offset_right=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([size=\"12\"]){width:100%}:host([offset=\"12\"]){margin-left:100%}:host([offset_right=\"12\"]){margin-right:100%}@container row (min-width: 300px){:host([use_container][size_xs=\"0\"]){width:0}:host([use_container][offset_xs=\"0\"]){margin-left:0}:host([use_container][offset_right_xs=\"0\"]){margin-right:0}:host([use_container][size_xs=\"0\"]){display:none}:host([use_container][size_xs=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_xs=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_xs=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_xs=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_xs=\"12\"]){width:100%}:host([use_container][offset_xs=\"12\"]){margin-left:100%}:host([use_container][offset_right_xs=\"12\"]){margin-right:100%}}@media screen and (min-width: 300px){:host(:not([use_container])[size_xs=\"0\"]){width:0}:host(:not([use_container])[offset_xs=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_xs=\"0\"]){margin-right:0}:host(:not([use_container])[size_xs=\"0\"]){display:none}:host(:not([use_container])[size_xs=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_xs=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xs=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xs=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_xs=\"12\"]){width:100%}:host(:not([use_container])[offset_xs=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_xs=\"12\"]){margin-right:100%}}@container row (min-width: 540px){:host([use_container][size_sm=\"0\"]){width:0}:host([use_container][offset_sm=\"0\"]){margin-left:0}:host([use_container][offset_right_sm=\"0\"]){margin-right:0}:host([use_container][size_sm=\"0\"]){display:none}:host([use_container][size_sm=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_sm=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_sm=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_sm=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_sm=\"12\"]){width:100%}:host([use_container][offset_sm=\"12\"]){margin-left:100%}:host([use_container][offset_right_sm=\"12\"]){margin-right:100%}}@media screen and (min-width: 540px){:host(:not([use_container])[size_sm=\"0\"]){width:0}:host(:not([use_container])[offset_sm=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_sm=\"0\"]){margin-right:0}:host(:not([use_container])[size_sm=\"0\"]){display:none}:host(:not([use_container])[size_sm=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_sm=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_sm=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_sm=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_sm=\"12\"]){width:100%}:host(:not([use_container])[offset_sm=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_sm=\"12\"]){margin-right:100%}}@container row (min-width: 720px){:host([use_container][size_md=\"0\"]){width:0}:host([use_container][offset_md=\"0\"]){margin-left:0}:host([use_container][offset_right_md=\"0\"]){margin-right:0}:host([use_container][size_md=\"0\"]){display:none}:host([use_container][size_md=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_md=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_md=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_md=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_md=\"12\"]){width:100%}:host([use_container][offset_md=\"12\"]){margin-left:100%}:host([use_container][offset_right_md=\"12\"]){margin-right:100%}}@media screen and (min-width: 720px){:host(:not([use_container])[size_md=\"0\"]){width:0}:host(:not([use_container])[offset_md=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_md=\"0\"]){margin-right:0}:host(:not([use_container])[size_md=\"0\"]){display:none}:host(:not([use_container])[size_md=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_md=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_md=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_md=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_md=\"12\"]){width:100%}:host(:not([use_container])[offset_md=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_md=\"12\"]){margin-right:100%}}@container row (min-width: 960px){:host([use_container][size_lg=\"0\"]){width:0}:host([use_container][offset_lg=\"0\"]){margin-left:0}:host([use_container][offset_right_lg=\"0\"]){margin-right:0}:host([use_container][size_lg=\"0\"]){display:none}:host([use_container][size_lg=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_lg=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_lg=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_lg=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_lg=\"12\"]){width:100%}:host([use_container][offset_lg=\"12\"]){margin-left:100%}:host([use_container][offset_right_lg=\"12\"]){margin-right:100%}}@media screen and (min-width: 960px){:host(:not([use_container])[size_lg=\"0\"]){width:0}:host(:not([use_container])[offset_lg=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_lg=\"0\"]){margin-right:0}:host(:not([use_container])[size_lg=\"0\"]){display:none}:host(:not([use_container])[size_lg=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_lg=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_lg=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_lg=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_lg=\"12\"]){width:100%}:host(:not([use_container])[offset_lg=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_lg=\"12\"]){margin-right:100%}}@container row (min-width: 1140px){:host([use_container][size_xl=\"0\"]){width:0}:host([use_container][offset_xl=\"0\"]){margin-left:0}:host([use_container][offset_right_xl=\"0\"]){margin-right:0}:host([use_container][size_xl=\"0\"]){display:none}:host([use_container][size_xl=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host([use_container][size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host([use_container][size_xl=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host([use_container][size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host([use_container][size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host([use_container][size_xl=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host([use_container][size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host([use_container][size_xl=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host([use_container][size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][size_xl=\"12\"]){width:100%}:host([use_container][offset_xl=\"12\"]){margin-left:100%}:host([use_container][offset_right_xl=\"12\"]){margin-right:100%}}@media screen and (min-width: 1140px){:host(:not([use_container])[size_xl=\"0\"]){width:0}:host(:not([use_container])[offset_xl=\"0\"]){margin-left:0}:host(:not([use_container])[offset_right_xl=\"0\"]){margin-right:0}:host(:not([use_container])[size_xl=\"0\"]){display:none}:host(:not([use_container])[size_xl=\"1\"]){width:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap-x, 0px) * 11 / 12))}:host(:not([use_container])[size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap-x, 0px) * 5 / 6))}:host(:not([use_container])[size_xl=\"3\"]){width:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap-x, 0px) * 3 / 4))}:host(:not([use_container])[size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap-x, 0px) * 2 / 3))}:host(:not([use_container])[size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap-x, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xl=\"6\"]){width:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap-x, 0px) * 1 / 2))}:host(:not([use_container])[size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap-x, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap-x, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xl=\"9\"]){width:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap-x, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap-x, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap-x, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[size_xl=\"12\"]){width:100%}:host(:not([use_container])[offset_xl=\"12\"]){margin-left:100%}:host(:not([use_container])[offset_right_xl=\"12\"]){margin-right:100%}}`;\n __getStatic() {\n return Col;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Col.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Col\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('use_container') && Layout.Col.use_container) {this.setAttribute('use_container' ,'true'); }\nif(!this.hasAttribute('size')){ this['size'] = undefined; }\nif(!this.hasAttribute('size_xs')){ this['size_xs'] = undefined; }\nif(!this.hasAttribute('size_sm')){ this['size_sm'] = undefined; }\nif(!this.hasAttribute('size_md')){ this['size_md'] = undefined; }\nif(!this.hasAttribute('size_lg')){ this['size_lg'] = undefined; }\nif(!this.hasAttribute('size_xl')){ this['size_xl'] = undefined; }\nif(!this.hasAttribute('offset')){ this['offset'] = undefined; }\nif(!this.hasAttribute('offset_xs')){ this['offset_xs'] = undefined; }\nif(!this.hasAttribute('offset_sm')){ this['offset_sm'] = undefined; }\nif(!this.hasAttribute('offset_md')){ this['offset_md'] = undefined; }\nif(!this.hasAttribute('offset_lg')){ this['offset_lg'] = undefined; }\nif(!this.hasAttribute('offset_xl')){ this['offset_xl'] = undefined; }\nif(!this.hasAttribute('offset_right')){ this['offset_right'] = undefined; }\nif(!this.hasAttribute('offset_right_xs')){ this['offset_right_xs'] = undefined; }\nif(!this.hasAttribute('offset_right_sm')){ this['offset_right_sm'] = undefined; }\nif(!this.hasAttribute('offset_right_md')){ this['offset_right_md'] = undefined; }\nif(!this.hasAttribute('offset_right_lg')){ this['offset_right_lg'] = undefined; }\nif(!this.hasAttribute('offset_right_xl')){ this['offset_right_xl'] = undefined; }\nif(!this.hasAttribute('center')) { this.attributeChangedCallback('center', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('use_container');\nthis.__upgradeProperty('size');\nthis.__upgradeProperty('size_xs');\nthis.__upgradeProperty('size_sm');\nthis.__upgradeProperty('size_md');\nthis.__upgradeProperty('size_lg');\nthis.__upgradeProperty('size_xl');\nthis.__upgradeProperty('offset');\nthis.__upgradeProperty('offset_xs');\nthis.__upgradeProperty('offset_sm');\nthis.__upgradeProperty('offset_md');\nthis.__upgradeProperty('offset_lg');\nthis.__upgradeProperty('offset_xl');\nthis.__upgradeProperty('offset_right');\nthis.__upgradeProperty('offset_right_xs');\nthis.__upgradeProperty('offset_right_sm');\nthis.__upgradeProperty('offset_right_md');\nthis.__upgradeProperty('offset_right_lg');\nthis.__upgradeProperty('offset_right_xl');\nthis.__upgradeProperty('center');\n }\n __listBoolProps() { return [\"use_container\",\"center\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n static configure(options) {\n if (options.use_container !== undefined)\n this.use_container = options.use_container;\n }\n}\nLayout.Col.Namespace=`Aventus.Layout`;\nLayout.Col.Tag=`av-col`;\n__as1(_.Layout, 'Col', Layout.Col);\nif(!window.customElements.get('av-col')){window.customElements.define('av-col', Layout.Col);Aventus.WebComponentInstance.registerDefinition(Layout.Col);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.ColOptions","isStrong":false},{"fullName":"Aventus.Layout.Col","isStrong":false}],"fullName":"Aventus.Layout.Col","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-col","slots":{"default":{"local":true}}},{"code":"let Tracker=class Tracker {\n /**\n * Multiplier for velocity calculations based on device pixel ratio.\n */\n velocityMultiplier = window.devicePixelRatio;\n /**\n * Timestamp of the last update.\n */\n updateTime = performance.now();\n /**\n * Change in position since the last update.\n */\n delta = { x: 0, y: 0 };\n /**\n * Current velocity of the tracker.\n */\n velocity = { x: 0, y: 0 };\n /**\n * Last recorded position.\n */\n lastPosition = { x: 0, y: 0 };\n /**\n * Initializes a new Tracker instance.\n */\n constructor(touch) {\n this.lastPosition = this.getPosition(touch);\n }\n /**\n * Updates the tracker's position, delta, and velocity.\n */\n update(touch) {\n const { velocity, updateTime, lastPosition, } = this;\n const now = performance.now();\n const position = this.getPosition(touch);\n const delta = {\n x: -(position.x - lastPosition.x),\n y: -(position.y - lastPosition.y),\n };\n const duration = (now - updateTime) || 16.7;\n const vx = delta.x / duration * 16.7;\n const vy = delta.y / duration * 16.7;\n velocity.x = vx * this.velocityMultiplier;\n velocity.y = vy * this.velocityMultiplier;\n this.delta = delta;\n this.updateTime = now;\n this.lastPosition = position;\n }\n /**\n * Extracts pointer data from a given event.\n */\n getPointerData(evt) {\n return evt.touches ? evt.touches[evt.touches.length - 1] : evt;\n }\n /**\n * Retrieves the client coordinates from a pointer event.\n */\n getPosition(evt) {\n const data = this.getPointerData(evt);\n return {\n x: data.clientX,\n y: data.clientY,\n };\n }\n}\nTracker.Namespace=`Aventus`;\n__as1(_, 'Tracker', Tracker);\n","dependencies":[],"fullName":"Aventus.Tracker","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"const Img = class Img extends Aventus.WebComponent {\n static get observedAttributes() {return [\"src\", \"mode\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'cache'() { return this.getBoolAttr('cache') }\n set 'cache'(val) { this.setBoolAttr('cache', val) }\n get 'src'() { return this.getStringProp('src') }\n set 'src'(val) { this.setStringAttr('src', val) }\nget 'mode'() { return this.getStringProp('mode') }\n set 'mode'(val) { this.setStringAttr('mode', val) }\n isCalculing;\n maxCalculateSize = 10;\n ratio = 1;\n resizeObserver;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"src\", ((target) => {\n target.onSrcChanged();\n}));\nthis.__addPropertyActions(\"mode\", ((target) => {\n if (target.src != \"\") {\n target.calculateSize();\n }\n}));\n }\n static __style = `:host{--_img-color: var(--img-color);--_img-stroke-color: var(--img-stroke-color, var(--_img-color));--_img-fill-color: var(--img-fill-color, var(--_img-color));--_img-color-transition: var(--img-color-transition, none)}:host{display:inline-block;overflow:hidden;font-size:0}:host *{box-sizing:border-box}:host img{opacity:0;transition:filter .3s linear}:host .svg{display:none;height:100%;width:100%}:host .svg svg{height:100%;width:100%}:host([src$=\".svg\"]) img{display:none}:host([src$=\".svg\"]) .svg{display:flex}:host([src$=\".svg\"]) .svg svg{transition:var(--_img-color-transition);stroke:var(--_img-stroke-color);fill:var(--_img-fill-color)}:host([display_bigger]) img{cursor:pointer}:host([display_bigger]) img:hover{filter:brightness(50%)}`;\n __getStatic() {\n return Img;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Img.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<img _id=\"img_0\" /><div class=\"svg\" _id=\"img_1\"></div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"imgEl\",\n \"ids\": [\n \"img_0\"\n ]\n },\n {\n \"name\": \"svgEl\",\n \"ids\": [\n \"img_1\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Img\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('cache')) { this.attributeChangedCallback('cache', false, false); }\nif(!this.hasAttribute('src')){ this['src'] = undefined; }\nif(!this.hasAttribute('mode')){ this['mode'] = \"contains\"; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('cache');\nthis.__upgradeProperty('src');\nthis.__upgradeProperty('mode');\n }\n __listBoolProps() { return [\"cache\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n calculateSize(attempt = 0) {\n if (this.isCalculing || !this.imgEl || !this.svgEl) {\n return;\n }\n if (this.src == \"\") {\n return;\n }\n this.isCalculing = true;\n if (getComputedStyle(this).display == 'none') {\n return;\n }\n if (attempt == this.maxCalculateSize) {\n this.isCalculing = false;\n return;\n }\n let element = this.imgEl;\n if (this.src?.endsWith(\".svg\")) {\n element = this.svgEl;\n }\n this.style.width = '';\n this.style.height = '';\n element.style.width = '';\n element.style.height = '';\n if (element.offsetWidth == 0 && element.offsetHeight == 0) {\n setTimeout(() => {\n this.isCalculing = false;\n this.calculateSize(attempt + 1);\n }, 100);\n return;\n }\n let style = getComputedStyle(this);\n let addedY = Number(style.paddingTop.replace(\"px\", \"\")) + Number(style.paddingBottom.replace(\"px\", \"\")) + Number(style.borderTopWidth.replace(\"px\", \"\")) + Number(style.borderBottomWidth.replace(\"px\", \"\"));\n let addedX = Number(style.paddingLeft.replace(\"px\", \"\")) + Number(style.paddingRight.replace(\"px\", \"\")) + Number(style.borderLeftWidth.replace(\"px\", \"\")) + Number(style.borderRightWidth.replace(\"px\", \"\"));\n let availableHeight = this.offsetHeight - addedY;\n let availableWidth = this.offsetWidth - addedX;\n let sameWidth = (element.offsetWidth == availableWidth);\n let sameHeight = (element.offsetHeight == availableHeight);\n this.ratio = element.offsetWidth / element.offsetHeight;\n if (sameWidth && !sameHeight) {\n // height is set\n element.style.width = (availableHeight * this.ratio) + 'px';\n element.style.height = availableHeight + 'px';\n }\n else if (!sameWidth && sameHeight) {\n // width is set\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n else if (!sameWidth && !sameHeight) {\n if (this.mode == \"stretch\") {\n element.style.width = '100%';\n element.style.height = '100%';\n }\n else if (this.mode == \"contains\") {\n // suppose this height is max\n let newWidth = (availableHeight * this.ratio);\n if (newWidth <= availableWidth) {\n //we can apply this value\n element.style.width = newWidth + 'px';\n element.style.height = availableHeight + 'px';\n }\n else {\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n }\n else if (this.mode == \"cover\") {\n // suppose this height is min\n let newWidth = (availableHeight * this.ratio);\n if (newWidth >= availableWidth) {\n //we can apply this value\n element.style.width = newWidth + 'px';\n element.style.height = availableHeight + 'px';\n }\n else {\n element.style.width = availableWidth + 'px';\n element.style.height = (availableWidth / this.ratio) + 'px';\n }\n }\n }\n //center img\n let diffTop = (this.offsetHeight - element.offsetHeight - addedY) / 2;\n let diffLeft = (this.offsetWidth - element.offsetWidth - addedX) / 2;\n element.style.transform = \"translate(\" + diffLeft + \"px, \" + diffTop + \"px)\";\n element.style.opacity = '1';\n this.isCalculing = false;\n }\n async onSrcChanged() {\n if (!this.src || !this.svgEl || !this.imgEl) {\n return;\n }\n if (this.src.endsWith(\".svg\")) {\n let svgContent = await Aventus.ResourceLoader.load(this.src);\n this.svgEl.innerHTML = svgContent;\n this.calculateSize();\n }\n else if (this.cache) {\n let base64 = await Aventus.ResourceLoader.load({\n url: this.src,\n type: 'img'\n });\n this.imgEl.setAttribute(\"src\", base64);\n this.calculateSize();\n }\n else {\n this.imgEl.setAttribute(\"src\", this.src);\n this.calculateSize();\n }\n }\n postDestruction() {\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n }\n postCreation() {\n this.resizeObserver = new Aventus.ResizeObserver({\n fps: 10,\n callback: () => {\n this.calculateSize();\n }\n });\n this.resizeObserver.observe(this);\n }\n}\nImg.Namespace=`Aventus`;\nImg.Tag=`av-img`;\n__as1(_, 'Img', Img);\nif(!window.customElements.get('av-img')){window.customElements.define('av-img', Img);Aventus.WebComponentInstance.registerDefinition(Img);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.ResourceLoader","isStrong":false}],"fullName":"Aventus.Img","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-img","slots":{}},{"code":"Form.isSubclassOf=function isSubclassOf(subClass, superClass) {\n if (typeof subClass !== 'function' || typeof superClass !== 'function')\n return false;\n let proto = subClass.prototype;\n while (proto) {\n if (proto === superClass.prototype)\n return true;\n proto = Object.getPrototypeOf(proto);\n }\n return false;\n}\n__as1(_.Form, 'isSubclassOf', Form.isSubclassOf);\n","dependencies":[],"fullName":"Aventus.Form.isSubclassOf","required":false,"type":4,"isExported":true,"convertibleName":""},{"code":"Layout.Tabs.Tabs = class Tabs extends Aventus.WebComponent {\n activeHeader;\n tabs = {};\n static __style = ``;\n constructor() {\n super();\n if (this.constructor == Tabs) {\n throw \"can't instanciate an abstract class\";\n }\n this.reloadFromSlot = this.reloadFromSlot.bind(this);\n }\n __getStatic() {\n return Tabs;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Tabs.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"header\" _id=\"tabs_0\"></div><div class=\"body\" _id=\"tabs_1\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"headerEl\",\n \"ids\": [\n \"tabs_0\"\n ]\n },\n {\n \"name\": \"bodyEl\",\n \"ids\": [\n \"tabs_1\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Tabs\";\n }\n async loadTabs() {\n // let elements = this.elements;\n let elements = this.getElementsInSlot();\n let first = null;\n for (let element of elements) {\n if (element instanceof _.Layout.Tabs.Tab) {\n element.style.display = 'none';\n this.tabs[element.identifier()] = element;\n let header = new (this.defineTabHeader())();\n this.headerEl.appendChild(header);\n await header.init(element, this);\n if (first == null) {\n first = header;\n }\n else if (!first.tab.selected && element.selected) {\n first = header;\n }\n element.loaded = true;\n }\n }\n if (first) {\n this.setActive(first);\n }\n this.shadowRoot.querySelector(\"slot\")?.addEventListener(\"slotchange\", this.reloadFromSlot);\n }\n async reloadFromSlot() {\n let elements = this.getElementsInSlot();\n let actualTabs = Object.keys(this.tabs);\n let first = null;\n let orders = [];\n for (let element of elements) {\n if (element instanceof _.Layout.Tabs.Tab) {\n element.style.display = 'none';\n const el = element;\n const identifier = element.identifier();\n const indexActual = actualTabs.indexOf(identifier);\n orders.push(identifier);\n if (indexActual == -1) {\n this.tabs[identifier] = el;\n let header = new (this.defineTabHeader())();\n this.headerEl.appendChild(header);\n await header.init(el, this);\n if (first == null) {\n first = header;\n }\n }\n else {\n actualTabs.splice(indexActual, 1);\n if (first == null) {\n first = this.tabs[identifier].tabHeader;\n }\n }\n element.loaded = true;\n }\n }\n for (let missing of actualTabs) {\n this.tabs[missing].tabHeader?.remove();\n delete this.tabs[missing];\n }\n let hasSelected = false;\n for (let identifier in this.tabs) {\n if (this.tabs[identifier].selected) {\n if (!hasSelected) {\n hasSelected = true;\n first = this.tabs[identifier].tabHeader;\n }\n else {\n this.tabs[identifier].selected = false;\n this.tabs[identifier].tabHeader.active = false;\n this.tabs[identifier].style.display = 'none';\n this.tabs[identifier].selected = false;\n }\n }\n }\n if (first != null) {\n this.setActive(first);\n }\n for (let i = 0, j = 0; i < orders.length; i++, j++) {\n const shouldBe = this.tabs[orders[i]].tabHeader;\n if (!shouldBe)\n continue;\n while (j < this.headerEl.children.length && !(this.headerEl.children[j] instanceof _.Layout.Tabs.TabHeader)) {\n j++;\n }\n if (shouldBe != this.headerEl.children[j]) {\n this.headerEl.appendChild(shouldBe);\n }\n }\n }\n setActive(tabHeader) {\n if (typeof tabHeader == 'number') {\n if (this.headerEl.children.length > tabHeader) {\n const header = this.headerEl.children[tabHeader];\n if (header instanceof _.Layout.Tabs.TabHeader) {\n return this.setActive(header);\n }\n }\n return false;\n }\n else if (typeof tabHeader == 'string') {\n const header = this.tabs[tabHeader]?.tabHeader;\n if (header)\n return this.setActive(header);\n return false;\n }\n if (this.activeHeader) {\n this.activeHeader.active = false;\n this.activeHeader.tab.selected = false;\n this.activeHeader.tab.style.display = 'none';\n }\n this.activeHeader = tabHeader;\n this.activeHeader.active = true;\n this.activeHeader.tab.style.display = '';\n this.activeHeader.tab.selected = true;\n return true;\n }\n postCreation() {\n super.postCreation();\n this.loadTabs();\n }\n}\nLayout.Tabs.Tabs.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'Tabs', Layout.Tabs.Tabs);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Tabs.Tab","isStrong":false},{"fullName":"Aventus.Layout.Tabs.TabHeader","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false}],"fullName":"Aventus.Layout.Tabs.Tabs","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.Validator=class Validator {\n /**\n * The default error message for the validator.\n */\n static msg = \"There is an error\";\n /**\n * Statically tests a value against one or more validators.\n */\n static async Test(validators, value, name, globalValidation) {\n if (!Array.isArray(validators)) {\n validators = [validators];\n }\n let result = [];\n for (let validator of validators) {\n let resultTemp = new validator();\n const temp = await resultTemp.validate(value, name, globalValidation);\n if (temp === false) {\n result.push('Le champs n\\'est pas valide');\n }\n else if (Array.isArray(temp)) {\n for (let error of temp) {\n result.push(error);\n }\n }\n else if (typeof temp == 'string') {\n result.push(temp);\n }\n }\n return result.length == 0 ? undefined : result;\n }\n _msg;\n /**\n * Initializes a new Validator instance with an optional custom error message.\n */\n constructor(msg) {\n this._msg = msg;\n this.validate = this.validate.bind(this);\n }\n /**\n * Retrieves the error message for the validator, optionally replacing placeholders.\n */\n getMsg(replace) {\n let msg = this._msg ?? this.constructor['msg'];\n if (typeof msg == 'function')\n msg = msg();\n if (replace) {\n for (let field in replace) {\n msg = msg.replace(new RegExp(`\\\\{ *${field} *\\\\}`, 'g'), replace[field]);\n }\n }\n return msg;\n }\n}\nForm.Validator.Namespace=`Aventus.Form`;\n__as1(_.Form, 'Validator', Form.Validator);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}],"fullName":"Aventus.Form.Validator","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.Validators.Required=class Required extends _.Form.Validator {\n /**\n * The default error message for a required field.\n */\n static msg = \"Le champs {name} est requis\";\n /**\n * @inheritdoc\n * Validates if the provided value is not undefined, null, or an empty string.\n */\n validate(value, name, globalValidation) {\n const txt = this.getMsg({ name });\n if (value === undefined || value === null) {\n return txt;\n }\n if (typeof value == 'string' && value.trim() == \"\") {\n return txt;\n }\n return true;\n }\n}\nForm.Validators.Required.Namespace=`Aventus.Form.Validators`;\n__as1(_.Form.Validators, 'Required', Form.Validators.Required);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":true}],"fullName":"Aventus.Form.Validators.Required","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.Validators.Email=class Email extends _.Form.Validator {\n /**\n * The default error message for invalid email addresses.\n */\n static msg = \"Please enter a valid email address\";\n /**\n * @inheritdoc\n * Validates if the provided value is a valid email address.\n */\n validate(value, name, globalValidation) {\n if (typeof value == \"string\" && value) {\n if (value.match(/[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,}\\b/) != null) {\n return true;\n }\n return this.getMsg({ name });\n }\n return true;\n }\n}\nForm.Validators.Email.Namespace=`Aventus.Form.Validators`;\n__as1(_.Form.Validators, 'Email', Form.Validators.Email);\n","dependencies":[{"fullName":"Aventus.Form.Validator","isStrong":true}],"fullName":"Aventus.Form.Validators.Email","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.FormElement = class FormElement extends Aventus.WebComponent {\n static get observedAttributes() {return [\"disabled\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'has_errors'() { return this.getBoolAttr('has_errors') }\n set 'has_errors'(val) { this.setBoolAttr('has_errors', val) }\n get 'disabled'() { return this.getBoolProp('disabled') }\n set 'disabled'(val) { this.setBoolAttr('disabled', val) }\n get 'value'() {\n\t\t\t\t\t\treturn this.__watch[\"value\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'value'(val) {\n\t\t\t\t\t\tthis.__watch[\"value\"] = val;\n\t\t\t\t\t}\nget 'errors'() {\n\t\t\t\t\t\treturn this.__watch[\"errors\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'errors'(val) {\n\t\t\t\t\t\tthis.__watch[\"errors\"] = val;\n\t\t\t\t\t}\n static get formAssociated() { return true; }\n _form;\n get form() {\n return this._form;\n }\n set form(value) {\n this.unlinkFormPart();\n this._form = value;\n this.linkFormPart();\n }\n internals;\n canLinkValueToForm = false;\n handler = undefined;\n onChange = new Aventus.Callback();\n __registerWatchesActions() {\n this.__addWatchesActions(\"value\", ((target) => {\n target.onValueChange(target.value);\n}));\nthis.__addWatchesActions(\"errors\", ((target) => {\n target.onErrorsChange();\n}));\n super.__registerWatchesActions();\n}\n static __style = ``;\n constructor() {\n super();\n this.internals = this.attachInternals();\n if (this.constructor == FormElement) {\n throw \"can't instanciate an abstract class\";\n }\n this.refreshValueFromForm = this.refreshValueFromForm.bind(this);\n this.onFormValidation = this.onFormValidation.bind(this);\n }\n __getStatic() {\n return FormElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(FormElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"FormElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('has_errors')) { this.attributeChangedCallback('has_errors', false, false); }\nif(!this.hasAttribute('disabled')) { this.attributeChangedCallback('disabled', false, false); }\n }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"value\"] = undefined;\nw[\"errors\"] = [];\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('form');\nthis.__upgradeProperty('has_errors');\nthis.__upgradeProperty('disabled');\nthis.__correctGetter('value');\nthis.__correctGetter('errors');\n }\n __listBoolProps() { return [\"has_errors\",\"disabled\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n refreshValueFromForm() {\n if (this._form) {\n this.errors = [];\n this.value = this._form.value.get();\n }\n }\n unlinkFormPart() {\n if (this._form) {\n this._form.unregister(this);\n this._form.onValueChange.remove(this.refreshValueFromForm);\n this._form.onValidation.remove(this.onFormValidation);\n }\n }\n linkFormPart() {\n if (this._form) {\n this._form.register(this);\n this._form.onValueChange.add(this.refreshValueFromForm);\n this._form.onValidation.add(this.onFormValidation);\n this.refreshValueFromForm();\n }\n else {\n this.value = undefined;\n }\n }\n async onFormValidation(errors) {\n let _errors = await this.validation();\n if (_errors.length == 0) {\n _errors = errors;\n }\n else if (errors.length > 0) {\n for (let error of errors) {\n if (!_errors.includes(error)) {\n _errors.push(error);\n }\n }\n }\n this.errors = _errors;\n return this.errors;\n }\n async validate() {\n if (!this.form) {\n this.errors = await this.validation();\n return this.errors.length == 0;\n }\n return await this.form.test();\n }\n async validation() {\n return [];\n }\n clearErrors() {\n this.errors = [];\n }\n triggerChange(value) {\n this.value = value;\n this.onChange.trigger(this.value);\n if (this.form) {\n this.form.value.set(this.value);\n }\n }\n onValueChange(value) {\n this.linkValueToForm();\n }\n onErrorsChange() {\n this.has_errors = this.errors.length > 0;\n this.linkErrorToForm();\n }\n linkErrorToForm() {\n if (!this.canLinkValueToForm)\n return;\n if (this.has_errors) {\n this.internals.setValidity({\n customError: true\n }, this.errors.join(' & '));\n }\n else {\n this.internals.setValidity({});\n }\n }\n linkValueToForm() {\n if (!this.canLinkValueToForm)\n return;\n if (this.value === undefined) {\n this.internals.setFormValue(null);\n }\n else {\n this.internals.setFormValue(this.value + '');\n }\n }\n formAssociatedCallback(form) {\n this.canLinkValueToForm = true;\n this.linkValueToForm();\n this.linkErrorToForm();\n this.validate();\n }\n formDisabledCallback(disabled) {\n this.disabled = disabled;\n }\n postCreation() {\n super.postCreation();\n let handler = this.findParentByType(_.Form.Form.formElements)?.registerElement(this);\n }\n postDestruction() {\n super.postDestruction();\n this.unlinkFormPart();\n }\n}\nForm.FormElement.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormElement', Form.FormElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IFormElement","isStrong":true},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.DefinedFormValue","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false}],"fullName":"Aventus.Form.FormElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.ButtonElement = class ButtonElement extends Aventus.WebComponent {\n static get observedAttributes() {return [\"type\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'type'() { return this.getStringProp('type') }\n set 'type'(val) { this.setStringAttr('type', val) }\n static get formAssociated() { return true; }\n internals;\n handler = undefined;\n form = undefined;\n static __style = ``;\n constructor() {\n super();\n this.internals = this.attachInternals();\n if (this.constructor == ButtonElement) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return ButtonElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ButtonElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ButtonElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('type')){ this['type'] = 'button'; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('type');\n }\n async triggerSubmit() {\n if (this.type == \"submit\") {\n if (\"loading\" in this) {\n if (this.loading)\n return;\n this.loading = true;\n }\n if (this.form) {\n await this.form.requestSubmit();\n }\n else if (this.internals.form) {\n this.internals.form.requestSubmit();\n }\n else if (this.handler) {\n await this.handler.requestSubmit();\n }\n if (\"loading\" in this) {\n this.loading = false;\n }\n }\n }\n registerSubmit() {\n this.handler = this.findParentByType(_.Form.Form.formElements)?.registerSubmit(this);\n if (this.type == \"submit\") {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.triggerSubmit();\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (e.key == 'Enter') {\n this.triggerSubmit();\n }\n });\n }\n }\n postCreation() {\n super.postCreation();\n this.registerSubmit();\n }\n}\nForm.ButtonElement.Namespace=`Aventus.Form`;\n__as1(_.Form, 'ButtonElement', Form.ButtonElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false}],"fullName":"Aventus.Form.ButtonElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.Form = class Form extends Aventus.WebComponent {\n static get defaultConfig() {\n return _.Form.FormHandler._globalConfig;\n }\n static set formElements(value) {\n _.Form.FormHandler._IFormElements = value;\n }\n static get formElements() {\n return _.Form.FormHandler._IFormElements;\n }\n form;\n request;\n elements = [];\n btns = [];\n onSubmit = new Aventus.Callback();\n static __style = `:host{width:100%}`;\n constructor() {\n super();\n this.checkEnter = this.checkEnter.bind(this);\n }\n __getStatic() {\n return Form;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Form.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Form\";\n }\n checkEnter(e) {\n if (e.key == \"Enter\") {\n this.requestSubmit();\n }\n }\n registerElement(element) {\n if (this.elements.length > 0) {\n this.elements[this.elements.length - 1].removeEventListener(\"keyup\", this.checkEnter);\n }\n this.elements.push(element);\n element.addEventListener(\"keyup\", this.checkEnter);\n return this;\n }\n registerSubmit(element) {\n this.btns.push(element);\n return this;\n }\n async requestSubmit() {\n if (!this.form) {\n for (let element of this.elements) {\n this.form = element.form?.handler;\n if (this.form)\n break;\n }\n }\n if (this.form) {\n if (this.request || this.form.hasSubmitFct) {\n for (let btn of this.btns) {\n if (\"loading\" in btn) {\n btn.loading = true;\n }\n }\n await this.form.submit(this.request);\n for (let btn of this.btns) {\n if (\"loading\" in btn) {\n btn.loading = false;\n }\n }\n }\n else if (await this.form.validate()) {\n this.onSubmit.trigger();\n }\n }\n else {\n this.onSubmit.trigger();\n }\n }\n static createFromController(controller, schema, config, config2) {\n if (typeof schema == \"string\") {\n let _name = schema;\n let _schema = config;\n let _config = config2;\n return _.Form.FormHandlerController.createWithName(controller, _name, _schema, _config);\n }\n let form = _.Form.FormHandlerController.create(controller, schema, config);\n return form;\n }\n static create(schema, config) {\n let form = new _.Form.FormHandler(schema, config);\n return form;\n }\n static configure(value) {\n _.Form.FormHandler._globalConfig = value;\n }\n}\nForm.Form.Namespace=`Aventus.Form`;\nForm.Form.Tag=`av-form`;\n__as1(_.Form, 'Form', Form.Form);\nif(!window.customElements.get('av-form')){window.customElements.define('av-form', Form.Form);Aventus.WebComponentInstance.registerDefinition(Form.Form);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Aventus.Form.MethodNameExist","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"Aventus.Form.FormHandlerControllerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandlerController","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.ButtonElement","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false}],"fullName":"Aventus.Form.Form","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-form","slots":{"default":{"local":true}}},{"code":"Form.FormHandler=class FormHandler {\n /**\n * Global configuration settings for FormHandler instances.\n */\n static _globalConfig;\n /**\n * List of constructors for elements that implement IForm.\n */\n static _IFormElements = [Form.Form];\n /**\n * Internal watcher instance for tracking form data changes.\n */\n __watcher;\n /**\n * The data item associated with the form.\n */\n get item() {\n return this.__watcher.item;\n }\n /**\n * Sets the data item associated with the form.\n */\n set item(item) {\n this.__watcher.item = item;\n }\n /**\n * Provides access to the internal form parts for the schema.\n */\n get parts() {\n return this.__watcher.form;\n }\n /**\n * Internal map of registered form elements by field name.\n */\n _elements = {};\n /**\n * Provides access to the registered form elements.\n */\n get elements() {\n return { ...this._elements };\n }\n /**\n * Global validation function for the form.\n */\n _globalValidation;\n /**\n * Indicates if validation should occur on input change.\n */\n _validateOnChange = false;\n /**\n * Fallback handler for validation errors not linked to a specific input.\n */\n _onValidateFallback;\n /**\n * Fallback handler for server-side errors not linked to a specific input.\n */\n _onServerFallback;\n /**\n * Function to extract field-specific error messages from a generic error.\n */\n _extractor;\n /**\n * Callback executed upon successful form submission.\n */\n _onSuccess;\n /**\n * The internal function responsible for submitting the form.\n */\n _submitFct;\n /**\n * Checks if a submission function is defined for the form.\n */\n get hasSubmitFct() {\n return this._submitFct != undefined;\n }\n /**\n * The default values for the form fields.\n */\n defaultValues;\n /**\n * Callback triggered when an item's property changes.\n */\n onItemChange = new Aventus.Callback();\n /**\n * Initializes a new FormHandler instance with a given schema and optional configuration.\n */\n constructor(schema, config) {\n this.writeValidationIntoConsole = this.writeValidationIntoConsole.bind(this);\n this.writeErrorIntoConsole = this.writeErrorIntoConsole.bind(this);\n this.defaultExtractor = this.defaultExtractor.bind(this);\n this._globalValidation = config?.validate ?? Form.FormHandler._globalConfig?.validate;\n this._validateOnChange = config?.validateOnChange ?? Form.FormHandler._globalConfig?.validateOnChange ?? false;\n this._onValidateFallback = config?.onValidateFallback ?? Form.FormHandler._globalConfig?.onValidateFallback ?? this.writeValidationIntoConsole;\n this._onServerFallback = config?.onServerFallback ?? Form.FormHandler._globalConfig?.onServerFallback ?? this.writeErrorIntoConsole;\n this._extractor = config?.extractor ?? Form.FormHandler._globalConfig?.extractor ?? this.defaultExtractor;\n this._onSuccess = config?.onSuccess ?? Form.FormHandler._globalConfig?.onSuccess;\n this._submitFct = config?.submit;\n this.defaultValues = structuredClone(config?.defaultValues ?? {});\n this.onWatcherChanged = this.onWatcherChanged.bind(this);\n this.__watcher = Aventus.Watcher.get({\n form: {},\n item: structuredClone(this.defaultValues)\n }, this.onWatcherChanged);\n this.__watcher.form = this.transformForm(schema);\n }\n /**\n * Logs validation errors to the console.\n */\n writeValidationIntoConsole(errors) {\n for (let name in errors) {\n if (!errors[name])\n continue;\n for (let error of errors[name]) {\n console.log(name + \": \" + error);\n }\n }\n }\n /**\n * Logs generic errors to the console.\n */\n writeErrorIntoConsole(errors) {\n for (let error in errors) {\n console.log(error);\n }\n }\n /**\n * Transforms the raw form schema into an internal representation.\n */\n transformForm(form) {\n const result = form;\n const normalizePart = (part) => {\n let needTransform = true;\n if (typeof part == 'object' && !Array.isArray(part)) {\n const keys = Object.keys(part);\n const keysAllows = ['validate', 'validateOnChange'];\n let isValid = true;\n for (let i = 0; i < keys.length; i++) {\n const allows = keysAllows;\n if (!allows.includes(keys[i])) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n needTransform = false;\n }\n }\n if (needTransform) {\n return {\n validate: part\n };\n }\n return part;\n };\n const createKey = (key) => {\n const f = form;\n f[key] = normalizePart(f[key]);\n this.transformFormPart(key, f[key]);\n };\n for (let key in result) {\n createKey(key);\n }\n return result;\n }\n /**\n * Transforms a single form part within the internal form representation.\n */\n transformFormPart(key, part) {\n if (!part)\n return;\n const realPart = part;\n realPart.onValidation = new Aventus.Callback();\n realPart.onValueChange = new Aventus.Callback();\n realPart.handler = this;\n if (part.validate) {\n const isConstructor = (validate) => {\n return Aventus.isClass(validate);\n };\n let validate;\n if (Array.isArray(part.validate)) {\n const fcts = [];\n for (let temp of part.validate) {\n if (temp instanceof _.Form.Validator) {\n fcts.push(temp.validate);\n }\n else if (isConstructor(temp)) {\n let resultTemp = new temp();\n fcts.push(resultTemp.validate);\n }\n else {\n fcts.push(temp);\n }\n }\n validate = async (value, name, globalFct) => {\n let result = [];\n for (let fct of fcts) {\n const temp = await fct(value, name, globalFct);\n if (temp === false) {\n result.push('Le champs n\\'est pas valide');\n }\n else if (Array.isArray(temp)) {\n for (let error of temp) {\n result.push(error);\n }\n }\n else if (typeof temp == 'string') {\n result.push(temp);\n }\n }\n return result.length == 0 ? undefined : result;\n };\n }\n else if (part.validate instanceof _.Form.Validator) {\n validate = part.validate.validate;\n }\n else if (isConstructor(part.validate)) {\n let cst = part.validate;\n let resultTemp = new cst();\n validate = resultTemp.validate;\n }\n else {\n validate = part.validate;\n }\n realPart.validate = validate;\n }\n realPart.test = async () => {\n const result = await this.validate(key);\n return result;\n };\n if (!this._elements[key]) {\n this._elements[key] = [];\n }\n realPart.register = (el) => {\n if (this._elements[key] && !this._elements[key].includes(el)) {\n this._elements[key].push(el);\n }\n };\n realPart.unregister = (el) => {\n if (!this._elements[key])\n return;\n const index = this._elements[key].indexOf(el);\n if (index != -1) {\n this._elements[key].splice(index, 1);\n }\n };\n realPart.value = {\n get: () => {\n return Aventus.getValueFromObject(key, this.item);\n },\n set: (value) => {\n return Aventus.setValueToObject(key, this.item, value);\n }\n };\n return;\n }\n /**\n * Handles changes observed by the watcher, triggering value change and validation for relevant form parts.\n */\n async onWatcherChanged(action, path, value) {\n if (!this.parts)\n return;\n if (path == \"item\") {\n for (let key in this.parts) {\n let formPart = this.parts[key];\n formPart.onValueChange.trigger();\n }\n }\n else if (path.startsWith(\"item.\")) {\n let key = path.substring(\"item.\".length);\n const parts = this.parts;\n if (parts[key]) {\n let formPart = parts[key];\n formPart.onValueChange.trigger();\n const validateOnChange = formPart.validateOnChange === undefined ? this._validateOnChange : formPart.validateOnChange;\n if (validateOnChange) {\n this.validate(key);\n }\n }\n this.onItemChange.trigger(action, key, value);\n }\n }\n async _validate(key) {\n try {\n if (!this.parts)\n return { \"@general\": [\"Aucun formulaire trouvé\"] };\n if (key !== undefined) {\n let errorsForm = [];\n if (this.parts[key]) {\n let formPart = this.parts[key];\n let value = formPart.value.get();\n const resultToError = (result) => {\n if (result === false) {\n errorsForm.push('Le champs n\\'est pas valide');\n }\n else if (typeof result == 'string' && result !== \"\") {\n errorsForm.push(result);\n }\n else if (Array.isArray(result)) {\n errorsForm = [...errorsForm, ...result];\n }\n };\n if (formPart.validate) {\n const global = async () => {\n if (this._globalValidation) {\n const result = await this._globalValidation(key, value);\n resultToError(result);\n }\n };\n let result = await formPart.validate(value, key, global);\n resultToError(result);\n }\n else if (this._globalValidation) {\n const result = await this._globalValidation(key, value);\n resultToError(result);\n }\n const proms = formPart.onValidation.trigger(errorsForm);\n const errors2d = await Promise.all(proms);\n const errors = [...new Set(errorsForm)];\n for (let errorsTemp of errors2d) {\n for (let errorTemp of errorsTemp) {\n if (!errors.includes(errorTemp)) {\n errors.push(errorTemp);\n }\n }\n }\n errorsForm = errors;\n }\n return errorsForm.length == 0 ? {} : { [key]: errorsForm };\n }\n let errors = {};\n for (let key in this.parts) {\n errors = { ...errors, ...await this._validate(key) };\n }\n return errors;\n }\n catch (e) {\n return { \"@general\": [e + \"\"] };\n }\n }\n async validate(key) {\n const result = await this._validate(key);\n const unhandle = {};\n let triggerUnhandle = false;\n const els = this._elements;\n for (let key in result) {\n if (!els[key] || els[key].length == 0) {\n triggerUnhandle = true;\n unhandle[key] = result[key];\n }\n }\n if (triggerUnhandle && this._onValidateFallback) {\n this._onValidateFallback(unhandle);\n }\n return Object.keys(result).length == 0;\n }\n /**\n * Handles form submission, including validation and execution of the submission function.\n */\n async submit(query) {\n const result = await this.validate();\n if (!result) {\n return null;\n }\n return this.execute(query);\n }\n transformToSend(item) {\n return item;\n }\n /**\n * Executes the form's submission function after validation.\n */\n async execute(query) {\n if (!query) {\n query = this._submitFct;\n }\n if (!query) {\n const res = new Aventus.VoidWithError();\n res.errors.push(new Aventus.GenericError(403, \"No submit function defined\"));\n return res;\n }\n if (typeof query == \"function\") {\n if (!this.item) {\n const result = new Aventus.VoidWithError();\n result.errors.push(new Aventus.GenericError(404, \"No item inside the form\"));\n return result;\n }\n query = query(this.transformToSend(this.item));\n }\n let queryResult = await query;\n if (queryResult.errors.length > 0) {\n queryResult.errors = this.parseErrors(queryResult);\n if (queryResult.errors.length > 0 && this._onServerFallback) {\n this._onServerFallback(queryResult.errors);\n }\n }\n else {\n let result = queryResult instanceof Aventus.ResultWithError ? queryResult.result : undefined;\n if (this._onSuccess)\n await this._onSuccess(result);\n }\n return queryResult;\n }\n /**\n * Extracts field-specific error messages from a generic error object.\n */\n defaultExtractor(error) {\n if (Array.isArray(error.details)) {\n for (let detail of error.details) {\n if (Object.hasOwn(detail, \"Name\")) {\n return [{ fieldName: detail.Name, messages: [error.message] }];\n }\n }\n }\n const result = [];\n const details = error.details;\n for (let key in details) {\n const messages = details[key];\n result.push({\n fieldName: key,\n messages: messages\n });\n }\n return result;\n }\n /**\n * Parse errors and display them inside the FormElement if possible\n */\n parseErrors(queryResult) {\n const unappliedErrors = [];\n const elements = this.elements;\n for (const error of queryResult.errors) {\n const extractions = this._extractor(error);\n let applied = false;\n for (const { fieldName, messages } of extractions) {\n const targetElements = elements[fieldName];\n if (targetElements) {\n for (let element of targetElements) {\n element.errors.push(...messages);\n }\n applied = true;\n }\n }\n if (!applied) {\n unappliedErrors.push(error);\n }\n }\n return unappliedErrors;\n }\n /**\n * Reset form with default values\n */\n reset() {\n this.item = structuredClone(this.defaultValues);\n }\n}\nForm.FormHandler.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormHandler', Form.FormHandler);\n","dependencies":[{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Watcher","isStrong":false},{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"Aventus.isClass","isStrong":false},{"fullName":"Aventus.getValueFromObject","isStrong":false},{"fullName":"Aventus.setValueToObject","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.InternalForm","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":true}],"fullName":"Aventus.Form.FormHandler","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.FormHandlerController=class FormHandlerController extends _.Form.FormHandler {\n _controller;\n _formKey;\n /**\n * The HttpRoute controller constructor.\n */\n get controller() {\n return this._controller;\n }\n /**\n * Creates a FormHandlerController instance, inferring the submission method if only one exists.\n */\n static create(controller, schema, config) {\n const fcts = Object.getOwnPropertyNames(controller.prototype).filter(m => m !== \"constructor\");\n if (fcts.length == 1) {\n if (!config) {\n config = {};\n }\n const ctrl = new controller();\n config.submit = ctrl[fcts[0]];\n return new Form.FormHandlerController(controller, schema, config);\n }\n throw \"There isn't exaclty one function inside your controller \" + JSON.stringify(fcts) + \". You must use the function createWithName\";\n }\n /**\n * Creates a FormHandlerController instance with a explicitly named submission method.\n */\n static createWithName(controller, name, schema, config) {\n if (!config) {\n config = {};\n }\n config.submit = new controller()[name];\n return new Form.FormHandlerController(controller, schema, config);\n }\n /**\n * Creates a FormHandlerController instance, inferring the submission method if only one exists.\n */\n static createSubForm(controller, formKey, schema, config) {\n const fcts = Object.getOwnPropertyNames(controller.prototype).filter(m => m !== \"constructor\");\n if (fcts.length == 1) {\n if (!config) {\n config = {};\n }\n const ctrl = new controller();\n config.submit = ctrl[fcts[0]];\n return new Form.FormHandlerController(controller, schema, config, formKey);\n }\n throw \"There isn't exaclty one function inside your controller \" + JSON.stringify(fcts) + \". You must use the function createWithName\";\n }\n /**\n * Creates a FormHandlerController instance with a explicitly named submission method.\n */\n static createSubFormWithName(controller, name, formKey, schema, config) {\n if (!config) {\n config = {};\n }\n config.submit = new controller()[name];\n return new Form.FormHandlerController(controller, schema, config, formKey);\n }\n /**\n * Initializes a new FormHandlerController instance.\n */\n constructor(controller, schema, config, formKey) {\n super(schema, config);\n this._controller = controller;\n this._formKey = formKey;\n }\n transformToSend(item) {\n if (this._formKey)\n return {\n [this._formKey]: item\n };\n return item;\n }\n}\nForm.FormHandlerController.Namespace=`Aventus.Form`;\n__as1(_.Form, 'FormHandlerController', Form.FormHandlerController);\n","dependencies":[{"fullName":"Aventus.Form.FormHandler","isStrong":true},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Aventus.Form.MethodNameExist","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormHandlerControllerConfig","isStrong":false},{"fullName":"Aventus.Form.FormHandlerController","isStrong":false}],"fullName":"Aventus.Form.FormHandlerController","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"let TouchRecord=class TouchRecord {\n /**\n * The identifier of the currently active touch/pointer.\n */\n _activeTouchID;\n /**\n * A map of active touch/pointer IDs to their respective Trackers.\n */\n _touchList = {};\n /**\n * Returns a primitive zero-value coordinate object.\n */\n get _primitiveValue() {\n return { x: 0, y: 0 };\n }\n /**\n * Checks if there is an active touch/pointer event.\n */\n isActive() {\n return this._activeTouchID !== undefined;\n }\n /**\n * Retrieves the delta movement of the active tracker.\n */\n getDelta() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.delta };\n }\n /**\n * Retrieves the velocity of the active tracker.\n */\n getVelocity() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.velocity };\n }\n /**\n * Returns the number of active touch/pointer events.\n */\n getNbOfTouches() {\n return Object.values(this._touchList).length;\n }\n /**\n * Returns an array of active Tracker instances.\n */\n getTouches() {\n return Object.values(this._touchList);\n }\n /**\n * Calculates the easing distance based on current velocity and damping.\n */\n getEasingDistance(damping) {\n const deAcceleration = 1 - damping;\n let distance = {\n x: 0,\n y: 0,\n };\n const vel = this.getVelocity();\n Object.keys(vel).forEach((_dir) => {\n const dir = _dir;\n let v = Math.abs(vel[dir]) <= 10 ? 0 : vel[dir];\n while (v !== 0) {\n distance[dir] += v;\n v = (v * deAcceleration) | 0;\n }\n });\n return distance;\n }\n /**\n * Starts tracking new touch/pointer events.\n */\n track(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n const { targetTouches, } = evt;\n Array.from(targetTouches).forEach(touch => {\n this._add(touch);\n });\n }\n else {\n this._add(evt);\n }\n return this._touchList;\n }\n /**\n * Updates existing tracked touch/pointer events.\n */\n update(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n const { touches, changedTouches, } = evt;\n Array.from(touches).forEach(touch => {\n this._renew(touch);\n });\n this._setActiveID(changedTouches);\n }\n else if (evt instanceof PointerEvent) {\n this._renew(evt);\n this._setActiveID(evt);\n }\n return this._touchList;\n }\n /**\n * Releases tracking for ended touch/pointer events.\n */\n release(evt) {\n if ('TouchEvent' in window && evt instanceof TouchEvent) {\n Array.from(evt.changedTouches).forEach(touch => {\n this._delete(touch);\n });\n }\n else {\n this._delete(evt);\n }\n }\n /**\n * Retrieves a unique identifier for a touch or pointer event.\n */\n _getIdentifier(touch) {\n if ('Touch' in window && touch instanceof Touch)\n return touch.identifier;\n if (touch instanceof PointerEvent)\n return touch.pointerId;\n return touch.button;\n }\n /**\n * Adds a new touch/pointer event to the tracker list.\n */\n _add(touch) {\n if (this._has(touch)) {\n this._delete(touch);\n }\n const tracker = new Tracker(touch);\n const identifier = this._getIdentifier(touch);\n this._touchList[identifier] = tracker;\n }\n /**\n * Renews an existing touch/pointer event in the tracker list.\n */\n _renew(touch) {\n if (!this._has(touch)) {\n return;\n }\n const identifier = this._getIdentifier(touch);\n const tracker = this._touchList[identifier];\n tracker.update(touch);\n }\n /**\n * Deletes a touch/pointer event from the tracker list.\n */\n _delete(touch) {\n const identifier = this._getIdentifier(touch);\n delete this._touchList[identifier];\n if (this._activeTouchID == identifier) {\n this._activeTouchID = undefined;\n }\n }\n /**\n * Checks if a touch/pointer event is being tracked.\n */\n _has(touch) {\n const identifier = this._getIdentifier(touch);\n return this._touchList.hasOwnProperty(identifier);\n }\n /**\n * Sets the identifier of the currently active touch/pointer event.\n */\n _setActiveID(touches) {\n if (touches instanceof PointerEvent || touches instanceof MouseEvent) {\n this._activeTouchID = this._getIdentifier(touches);\n }\n else {\n this._activeTouchID = touches[touches.length - 1].identifier;\n }\n }\n /**\n * Retrieves the currently active Tracker instance.\n */\n _getActiveTracker() {\n const { _touchList, _activeTouchID, } = this;\n if (_activeTouchID !== undefined) {\n return _touchList[_activeTouchID];\n }\n return undefined;\n }\n}\nTouchRecord.Namespace=`Aventus`;\n__as1(_, 'TouchRecord', TouchRecord);\n","dependencies":[{"fullName":"Aventus.Tracker","isStrong":false}],"fullName":"Aventus.TouchRecord","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.AdvancedScrollable = class AdvancedScrollable extends Aventus.WebComponent {\n static get observedAttributes() {return [\"zoom\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'min_zoom'() { return this.getNumberAttr('min_zoom') }\n set 'min_zoom'(val) { this.setNumberAttr('min_zoom', val) }\nget 'max_zoom'() { return this.getNumberAttr('max_zoom') }\n set 'max_zoom'(val) { this.setNumberAttr('max_zoom', val) }\nget 'y_scroll_visible'() { return this.getBoolAttr('y_scroll_visible') }\n set 'y_scroll_visible'(val) { this.setBoolAttr('y_scroll_visible', val) }\nget 'x_scroll_visible'() { return this.getBoolAttr('x_scroll_visible') }\n set 'x_scroll_visible'(val) { this.setBoolAttr('x_scroll_visible', val) }\nget 'floating_scroll'() { return this.getBoolAttr('floating_scroll') }\n set 'floating_scroll'(val) { this.setBoolAttr('floating_scroll', val) }\nget 'x_scroll'() { return this.getBoolAttr('x_scroll') }\n set 'x_scroll'(val) { this.setBoolAttr('x_scroll', val) }\nget 'y_scroll'() { return this.getBoolAttr('y_scroll') }\n set 'y_scroll'(val) { this.setBoolAttr('y_scroll', val) }\nget 'auto_hide'() { return this.getBoolAttr('auto_hide') }\n set 'auto_hide'(val) { this.setBoolAttr('auto_hide', val) }\nget 'break'() { return this.getNumberAttr('break') }\n set 'break'(val) { this.setNumberAttr('break', val) }\nget 'disable'() { return this.getBoolAttr('disable') }\n set 'disable'(val) { this.setBoolAttr('disable', val) }\nget 'no_user_select'() { return this.getBoolAttr('no_user_select') }\n set 'no_user_select'(val) { this.setBoolAttr('no_user_select', val) }\nget 'mouse_drag'() { return this.getBoolAttr('mouse_drag') }\n set 'mouse_drag'(val) { this.setBoolAttr('mouse_drag', val) }\nget 'pinch'() { return this.getBoolAttr('pinch') }\n set 'pinch'(val) { this.setBoolAttr('pinch', val) }\nget 'flex'() { return this.getBoolAttr('flex') }\n set 'flex'(val) { this.setBoolAttr('flex', val) }\n get 'zoom'() { return this.getNumberProp('zoom') }\n set 'zoom'(val) { this.setNumberAttr('zoom', val) }\n observer;\n display = { x: 0, y: 0 };\n max = {\n x: 0,\n y: 0\n };\n margin = {\n x: 0,\n y: 0\n };\n position = {\n x: 0,\n y: 0\n };\n momentum = { x: 0, y: 0 };\n contentWrapperSize = { x: 0, y: 0 };\n scroller = {\n x: () => {\n if (!this.horizontalScroller) {\n throw 'can\\'t find the horizontalScroller';\n }\n return this.horizontalScroller;\n },\n y: () => {\n if (!this.verticalScroller) {\n throw 'can\\'t find the verticalScroller';\n }\n return this.verticalScroller;\n }\n };\n scrollerContainer = {\n x: () => {\n if (!this.horizontalScrollerContainer) {\n throw 'can\\'t find the horizontalScrollerContainer';\n }\n return this.horizontalScrollerContainer;\n },\n y: () => {\n if (!this.verticalScrollerContainer) {\n throw 'can\\'t find the verticalScrollerContainer';\n }\n return this.verticalScrollerContainer;\n }\n };\n hideDelay = { x: 0, y: 0 };\n touchRecord;\n pointerCount = 0;\n loadedOnce = false;\n savedPercent;\n isDragScroller = false;\n cachedSvg;\n previousMidPoint;\n previousDistance;\n startTranslate = { x: 0, y: 0 };\n get x() {\n return this.position.x;\n }\n get y() {\n return this.position.y;\n }\n get xMax() {\n return this.max.x;\n }\n get yMax() {\n return this.max.y;\n }\n onScrollChange = new Aventus.Callback();\n onZoomChange = new Aventus.Callback();\n renderAnimation;\n autoScrollInterval = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n };\n autoScrollSpeed = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n };\n pressManager;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"zoom\", ((target) => {\n target.changeZoom();\n}));\n }\n static __style = `:host{--_scrollbar-container-color: var(--scrollbar-container-color, transparent);--_scrollbar-color: var(--scrollbar-color, #757575);--_scrollbar-active-color: var(--scrollbar-active-color, #858585);--_scroller-width: var(--scroller-width, 6px);--_scroller-top: var(--scroller-top, 3px);--_scroller-bottom: var(--scroller-bottom, 3px);--_scroller-right: var(--scroller-right, 3px);--_scroller-left: var(--scroller-left, 3px);--_scrollbar-content-padding: var(--scrollbar-content-padding, 0);--_scrollbar-container-display: var(--scrollbar-container-display, inline-block)}:host{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:clip;position:relative;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;width:100%}:host .scroll-main-container{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;width:100%}:host .scroll-main-container .content-zoom{display:block;height:100%;min-height:inherit;min-width:inherit;position:relative;transform-origin:0 0;width:100%;z-index:4}:host .scroll-main-container .content-zoom .content-hidder{display:block;height:100%;min-height:inherit;min-width:inherit;overflow:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;position:relative;scrollbar-width:none;width:100%}:host .scroll-main-container .content-zoom .content-hidder::-webkit-scrollbar{display:none}:host .scroll-main-container .content-zoom .content-hidder .content-wrapper{display:var(--_scrollbar-container-display);height:100%;min-height:inherit;min-width:inherit;padding:var(--_scrollbar-content-padding);position:relative;width:100%}:host .scroll-main-container .scroller-wrapper .container-scroller{display:none;overflow:hidden;position:absolute;transition:transform .2s linear;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller{background-color:var(--_scrollbar-container-color);border-radius:5px}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller .scroller{background-color:var(--_scrollbar-color);border-radius:5px;cursor:pointer;position:absolute;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;z-index:5}:host .scroll-main-container .scroller-wrapper .container-scroller .scroller.active{background-color:var(--_scrollbar-active-color)}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical{height:calc(100% - var(--_scroller-bottom)*2 - var(--_scroller-width));padding-left:var(--_scroller-left);right:var(--_scroller-right);top:var(--_scroller-bottom);transform:0;width:calc(var(--_scroller-width) + var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical.hide{transform:translateX(calc(var(--_scroller-width) + var(--_scroller-left)))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical .shadow-scroller .scroller{width:calc(100% - var(--_scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal{bottom:var(--_scroller-bottom);height:calc(var(--_scroller-width) + var(--_scroller-top));left:var(--_scroller-right);padding-top:var(--_scroller-top);transform:0;width:calc(100% - var(--_scroller-right)*2 - var(--_scroller-width))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal.hide{transform:translateY(calc(var(--_scroller-width) + var(--_scroller-top)))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller{height:100%}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal .shadow-scroller .scroller{height:calc(100% - var(--_scroller-top))}:host([y_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{height:auto}:host([x_scroll]) .scroll-main-container .content-zoom .content-hidder .content-wrapper{width:auto}:host([y_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.vertical{display:block}:host([x_scroll_visible]) .scroll-main-container .scroller-wrapper .container-scroller.horizontal{display:block}:host([no_user_select]) .content-wrapper *{user-select:none}:host([no_user_select]) ::slotted{user-select:none}:host([flex]){display:flex;flex-direction:column;min-height:0}:host([flex]) .scroll-main-container{display:flex;flex-direction:column}:host([flex]) .scroll-main-container .content-zoom{display:flex;flex-direction:column}:host([disable]) .scroll-main-container .content-zoom .content-hidder{overflow:hidden}:host([disable]) .scroll-main-container .scroller-wrapper{display:none}:host([is_scrolling]) .content-wrapper{pointer-events:none}`;\n constructor() {\n super();\n this.renderAnimation = this.createAnimation();\n this.onWheel = this.onWheel.bind(this);\n this.onTouchStart = this.onTouchStart.bind(this);\n this.onTouchMovePointer = this.onTouchMovePointer.bind(this);\n this.onTouchMove = this.onTouchMove.bind(this);\n this.onTouchMovePointer = this.onTouchMovePointer.bind(this);\n this.onTouchEnd = this.onTouchEnd.bind(this);\n this.onTouchEndPointer = this.onTouchEndPointer.bind(this);\n this.touchRecord = new TouchRecord();\n }\n __getStatic() {\n return AdvancedScrollable;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(AdvancedScrollable.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"scroll-main-container\" _id=\"advancedscrollable_0\">\r <div class=\"content-zoom\" _id=\"advancedscrollable_1\">\r <div class=\"content-hidder\" _id=\"advancedscrollable_2\">\r <div class=\"content-wrapper\" part=\"content-wrapper\" _id=\"advancedscrollable_3\">\r <slot></slot>\r </div>\r </div>\r </div>\r <div class=\"scroller-wrapper\">\r <div class=\"container-scroller vertical\" _id=\"advancedscrollable_4\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"advancedscrollable_5\"></div>\r </div>\r </div>\r <div class=\"container-scroller horizontal\" _id=\"advancedscrollable_6\">\r <div class=\"shadow-scroller\">\r <div class=\"scroller\" _id=\"advancedscrollable_7\"></div>\r </div>\r </div>\r </div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"mainContainer\",\n \"ids\": [\n \"advancedscrollable_0\"\n ]\n },\n {\n \"name\": \"contentZoom\",\n \"ids\": [\n \"advancedscrollable_1\"\n ]\n },\n {\n \"name\": \"contentHidder\",\n \"ids\": [\n \"advancedscrollable_2\"\n ]\n },\n {\n \"name\": \"contentWrapper\",\n \"ids\": [\n \"advancedscrollable_3\"\n ]\n },\n {\n \"name\": \"verticalScrollerContainer\",\n \"ids\": [\n \"advancedscrollable_4\"\n ]\n },\n {\n \"name\": \"verticalScroller\",\n \"ids\": [\n \"advancedscrollable_5\"\n ]\n },\n {\n \"name\": \"horizontalScrollerContainer\",\n \"ids\": [\n \"advancedscrollable_6\"\n ]\n },\n {\n \"name\": \"horizontalScroller\",\n \"ids\": [\n \"advancedscrollable_7\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"AdvancedScrollable\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('min_zoom')){ this['min_zoom'] = 1; }\nif(!this.hasAttribute('max_zoom')){ this['max_zoom'] = undefined; }\nif(!this.hasAttribute('y_scroll_visible')) { this.attributeChangedCallback('y_scroll_visible', false, false); }\nif(!this.hasAttribute('x_scroll_visible')) { this.attributeChangedCallback('x_scroll_visible', false, false); }\nif(!this.hasAttribute('floating_scroll')) { this.attributeChangedCallback('floating_scroll', false, false); }\nif(!this.hasAttribute('x_scroll')) { this.attributeChangedCallback('x_scroll', false, false); }\nif(!this.hasAttribute('y_scroll')) {this.setAttribute('y_scroll' ,'true'); }\nif(!this.hasAttribute('auto_hide')) { this.attributeChangedCallback('auto_hide', false, false); }\nif(!this.hasAttribute('break')){ this['break'] = 0.1; }\nif(!this.hasAttribute('disable')) { this.attributeChangedCallback('disable', false, false); }\nif(!this.hasAttribute('no_user_select')) { this.attributeChangedCallback('no_user_select', false, false); }\nif(!this.hasAttribute('mouse_drag')) { this.attributeChangedCallback('mouse_drag', false, false); }\nif(!this.hasAttribute('pinch')) { this.attributeChangedCallback('pinch', false, false); }\nif(!this.hasAttribute('flex')) { this.attributeChangedCallback('flex', false, false); }\nif(!this.hasAttribute('zoom')){ this['zoom'] = 1; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('x');\nthis.__correctGetter('y');\nthis.__correctGetter('xMax');\nthis.__correctGetter('yMax');\nthis.__upgradeProperty('min_zoom');\nthis.__upgradeProperty('max_zoom');\nthis.__upgradeProperty('y_scroll_visible');\nthis.__upgradeProperty('x_scroll_visible');\nthis.__upgradeProperty('floating_scroll');\nthis.__upgradeProperty('x_scroll');\nthis.__upgradeProperty('y_scroll');\nthis.__upgradeProperty('auto_hide');\nthis.__upgradeProperty('break');\nthis.__upgradeProperty('disable');\nthis.__upgradeProperty('no_user_select');\nthis.__upgradeProperty('mouse_drag');\nthis.__upgradeProperty('pinch');\nthis.__upgradeProperty('flex');\nthis.__upgradeProperty('zoom');\n }\n __listBoolProps() { return [\"y_scroll_visible\",\"x_scroll_visible\",\"floating_scroll\",\"x_scroll\",\"y_scroll\",\"auto_hide\",\"disable\",\"no_user_select\",\"mouse_drag\",\"pinch\",\"flex\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n createAnimation() {\n return new Aventus.Animation({\n fps: 60,\n animate: () => {\n const nextX = this.nextPosition('x');\n const nextY = this.nextPosition('y');\n this.momentum.x = nextX.momentum;\n this.momentum.y = nextY.momentum;\n this.scrollDirection('x', nextX.position);\n this.scrollDirection('y', nextY.position);\n if (!this.momentum.x && !this.momentum.y) {\n this.renderAnimation.stop();\n }\n },\n stopped: () => {\n if (this.momentum.x || this.momentum.y) {\n this.renderAnimation.start();\n }\n }\n });\n }\n nextPosition(direction) {\n const current = this.position[direction];\n const remain = this.momentum[direction];\n let result = {\n momentum: 0,\n position: 0,\n };\n if (Math.abs(remain) <= 0.1) {\n result.position = current + remain;\n }\n else {\n const _break = this.pointerCount > 0 ? 0.5 : this.break;\n let nextMomentum = remain * (1 - _break);\n nextMomentum |= 0;\n result.momentum = nextMomentum;\n result.position = current + remain - nextMomentum;\n }\n let correctPosition = this.correctScrollValue(result.position, direction);\n if (correctPosition != result.position) {\n result.position = correctPosition;\n result.momentum = 0;\n }\n return result;\n }\n scrollDirection(direction, value) {\n const max = this.max[direction];\n if (max != 0) {\n this.position[direction] = this.correctScrollValue(value, direction);\n }\n else {\n this.position[direction] = 0;\n }\n let container = this.scrollerContainer[direction]();\n let scroller = this.scroller[direction]();\n if (this.auto_hide) {\n container.classList.remove(\"hide\");\n clearTimeout(this.hideDelay[direction]);\n this.hideDelay[direction] = setTimeout(() => {\n container.classList.add(\"hide\");\n }, 1000);\n }\n let containerSize = direction == 'y' ? container.offsetHeight : container.offsetWidth;\n if (this.contentWrapperSize[direction] != 0) {\n let scrollPosition = this.div(this.position[direction], this.contentWrapperSize[direction]) * containerSize;\n scroller.style.transform = `translate${direction.toUpperCase()}(${scrollPosition}px)`;\n this.contentWrapper.style.transform = `translate3d(${-1 * this.x}px, ${-1 * this.y}px, 0)`;\n }\n this.triggerScrollChange();\n }\n scrollDirectionPercent(direction, percent) {\n const max = this.max[direction];\n this.scrollDirection(direction, max * percent / 100);\n }\n correctScrollValue(value, direction) {\n if (value < 0) {\n value = 0;\n }\n else if (value > this.max[direction]) {\n value = this.max[direction];\n }\n return value;\n }\n triggerScrollChange() {\n this.onScrollChange.trigger(this.x, this.y);\n }\n scrollToPosition(x, y) {\n this.scrollDirection('x', x);\n this.scrollDirection('y', y);\n }\n scrollX(x) {\n this.scrollDirection('x', x);\n }\n scrollXPercent(x) {\n this.scrollDirectionPercent('x', x);\n }\n scrollY(y) {\n this.scrollDirection('y', y);\n }\n scrollYPercent(y) {\n this.scrollDirectionPercent('y', y);\n }\n startAutoScrollRight() {\n if (!this.autoScrollInterval.right) {\n this.stopAutoScrollLeft();\n this.autoScrollInterval.right = setInterval(() => {\n if (this.x == this.max.x) {\n this.stopAutoScrollRight();\n return;\n }\n this.addDelta({\n x: this.autoScrollSpeed.right,\n y: 0\n });\n }, 100);\n }\n }\n autoScrollRight(percent = 50) {\n let slow = this.max.x * 1 / 100;\n let fast = this.max.x * 10 / 100;\n this.autoScrollSpeed.right = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollRight();\n }\n stopAutoScrollRight() {\n if (this.autoScrollInterval.right) {\n clearInterval(this.autoScrollInterval.right);\n this.autoScrollInterval.right = 0;\n }\n }\n startAutoScrollLeft() {\n if (!this.autoScrollInterval.left) {\n this.stopAutoScrollRight();\n this.autoScrollInterval.left = setInterval(() => {\n if (this.x == 0) {\n this.stopAutoScrollLeft();\n return;\n }\n this.addDelta({\n x: this.autoScrollSpeed.left * -1,\n y: 0\n });\n }, 100);\n }\n }\n autoScrollLeft(percent = 50) {\n let slow = this.max.x * 1 / 100;\n let fast = this.max.x * 10 / 100;\n this.autoScrollSpeed.left = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollLeft();\n }\n stopAutoScrollLeft() {\n if (this.autoScrollInterval.left) {\n clearInterval(this.autoScrollInterval.left);\n this.autoScrollInterval.left = 0;\n }\n }\n startAutoScrollTop() {\n if (!this.autoScrollInterval.top) {\n this.stopAutoScrollBottom();\n this.autoScrollInterval.top = setInterval(() => {\n if (this.y == 0) {\n this.stopAutoScrollTop();\n return;\n }\n this.addDelta({\n x: 0,\n y: this.autoScrollSpeed.top * -1\n });\n }, 100);\n }\n }\n autoScrollTop(percent = 50) {\n let slow = this.max.y * 1 / 100;\n let fast = this.max.y * 10 / 100;\n this.autoScrollSpeed.top = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollTop();\n }\n stopAutoScrollTop() {\n if (this.autoScrollInterval.top) {\n clearInterval(this.autoScrollInterval.top);\n this.autoScrollInterval.top = 0;\n }\n }\n startAutoScrollBottom() {\n if (!this.autoScrollInterval.bottom) {\n this.stopAutoScrollTop();\n this.autoScrollInterval.bottom = setInterval(() => {\n if (this.y == this.max.y) {\n this.stopAutoScrollBottom();\n return;\n }\n this.addDelta({\n x: 0,\n y: this.autoScrollSpeed.bottom\n });\n }, 100);\n }\n }\n autoScrollBottom(percent = 50) {\n let slow = this.max.y * 1 / 100;\n let fast = this.max.y * 10 / 100;\n this.autoScrollSpeed.bottom = (fast - slow) * (percent / 100) + slow;\n this.startAutoScrollBottom();\n }\n stopAutoScrollBottom() {\n if (this.autoScrollInterval.bottom) {\n clearInterval(this.autoScrollInterval.bottom);\n this.autoScrollInterval.bottom = 0;\n }\n }\n createMatrix() {\n if (!this.cachedSvg) {\n this.cachedSvg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n }\n return this.cachedSvg.createSVGMatrix();\n }\n getMidPoint(a, b) {\n return {\n x: (a.lastPosition.x + b.lastPosition.x) / 2,\n y: (a.lastPosition.y + b.lastPosition.y) / 2,\n };\n }\n getDistance(a, b) {\n return Math.sqrt((b.lastPosition.x - a.lastPosition.x) ** 2 + (b.lastPosition.y - a.lastPosition.y) ** 2);\n }\n zoomOnPoint(clientX, clientY, newZoom) {\n let targetCoordinates = this.getBoundingClientRect();\n let mousePositionRelativeToTarget = {\n x: targetCoordinates.x - clientX,\n y: targetCoordinates.y - clientY\n };\n let oldScale = this.zoom;\n let newScale;\n if (this.max_zoom > 0) {\n newScale = Math.max(this.min_zoom, Math.min(this.max_zoom, newZoom));\n }\n else {\n newScale = Math.max(this.min_zoom, newZoom);\n }\n let scaleDiff = this.div(newScale, oldScale);\n const matrix = this.createMatrix()\n .translate(this.x, this.y)\n .translate(mousePositionRelativeToTarget.x, mousePositionRelativeToTarget.y)\n .scale(scaleDiff)\n .translate(-mousePositionRelativeToTarget.x, -mousePositionRelativeToTarget.y)\n .scale(this.zoom);\n const newZoomFinal = matrix.a || 1;\n const newX = matrix.e || 0;\n const newY = matrix.f || 0;\n this.zoom = newZoomFinal;\n this.onZoomChange.trigger(newZoomFinal);\n this.scrollDirection('x', newX);\n this.scrollDirection('y', newY);\n }\n pinchAction() {\n const touches = this.touchRecord.getTouches();\n if (touches.length == 2) {\n const newMidpoint = this.getMidPoint(touches[0], touches[1]);\n const prevMidpoint = this.previousMidPoint ?? newMidpoint;\n const positioningElRect = this.getBoundingClientRect();\n const originX = (positioningElRect.left + this.x - this.startTranslate.x) - prevMidpoint.x;\n const originY = (positioningElRect.top + this.y - this.startTranslate.y) - prevMidpoint.y;\n const newDistance = this.getDistance(touches[0], touches[1]);\n const prevDistance = this.previousDistance;\n let scaleDiff = prevDistance ? this.div(newDistance, prevDistance) : 1;\n const panX = prevMidpoint.x - newMidpoint.x;\n const panY = prevMidpoint.y - newMidpoint.y;\n let oldScale = this.zoom;\n let newScale;\n if (this.max_zoom > 0) {\n newScale = Math.max(this.min_zoom, Math.min(this.max_zoom, oldScale * scaleDiff));\n }\n else {\n newScale = Math.max(this.min_zoom, oldScale * scaleDiff);\n }\n scaleDiff = this.div(newScale, oldScale);\n const matrix = this.createMatrix()\n .translate(panX, panY)\n .translate(originX, originY)\n .translate(this.x, this.y)\n .scale(scaleDiff)\n .translate(-originX, -originY)\n .scale(this.zoom);\n const newZoom = matrix.a || 1;\n const newX = matrix.e || 0;\n const newY = matrix.f || 0;\n this.zoom = newZoom;\n this.onZoomChange.trigger(newZoom);\n this.scrollDirection('x', newX);\n this.scrollDirection('y', newY);\n this.previousMidPoint = newMidpoint;\n this.previousDistance = newDistance;\n }\n return null;\n }\n addAction() {\n this.addEventListener(\"wheel\", this.onWheel, { passive: false });\n this.pressManager = new Aventus.PressManager({\n element: this,\n offsetDrag: 0,\n onPressStart: (e) => {\n this.touchRecord.track(e.event);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n },\n onPressEnd: (e) => {\n this.touchRecord.release(e.event);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n },\n onDragStart: (e) => {\n if (!this.pinch && !this.x_scroll_visible && !this.y_scroll_visible) {\n return false;\n }\n return this.onTouchStartPointer(e);\n },\n onDrag: (e) => {\n this.onTouchMovePointer(e);\n },\n onDragEnd: (e) => {\n this.onTouchEndPointer(e);\n }\n });\n // this.addEventListener(\"touchstart\", this.onTouchStart);\n // this.addEventListener(\"trigger_pointer_pressstart\", this.onTouchStartPointer);\n if (this.mouse_drag) {\n // this.addEventListener(\"mousedown\", this.onTouchStart);\n }\n this.addScrollDrag('x');\n this.addScrollDrag('y');\n }\n addActionMove() {\n // document.body.addEventListener(\"touchmove\", this.onTouchMove);\n // document.body.addEventListener(\"trigger_pointer_pressmove\", this.onTouchMovePointer);\n // document.body.addEventListener(\"touchcancel\", this.onTouchEnd);\n // document.body.addEventListener(\"touchend\", this.onTouchEnd);\n // document.body.addEventListener(\"trigger_pointer_pressend\", this.onTouchEndPointer);\n if (this.mouse_drag) {\n // document.body.addEventListener(\"mousemove\", this.onTouchMove);\n // document.body.addEventListener(\"mouseup\", this.onTouchEnd);\n }\n }\n removeActionMove() {\n // document.body.removeEventListener(\"touchmove\", this.onTouchMove);\n // document.body.removeEventListener(\"trigger_pointer_pressmove\", this.onTouchMovePointer);\n // document.body.removeEventListener(\"touchcancel\", this.onTouchEnd);\n // document.body.removeEventListener(\"touchend\", this.onTouchEnd);\n // document.body.removeEventListener(\"trigger_pointer_pressend\", this.onTouchEndPointer);\n // document.body.removeEventListener(\"mousemove\", this.onTouchMove);\n // document.body.removeEventListener(\"mouseup\", this.onTouchEnd);\n }\n addScrollDrag(direction) {\n let scroller = this.scroller[direction]();\n let startPosition = 0;\n new Aventus.DragAndDrop({\n element: scroller,\n applyDrag: false,\n usePercent: true,\n offsetDrag: 0,\n isDragEnable: () => !this.disable,\n onStart: (e) => {\n this.isDragScroller = true;\n this.no_user_select = true;\n scroller.classList.add(\"active\");\n startPosition = this.position[direction];\n },\n onMove: (e, position) => {\n let delta = position[direction] / 100 * this.contentWrapperSize[direction];\n let value = startPosition + delta;\n this.scrollDirection(direction, value);\n },\n onStop: () => {\n this.no_user_select = false;\n scroller.classList.remove(\"active\");\n this.isDragScroller = false;\n }\n });\n }\n shouldStopPropagation(e, delta) {\n if (!this.y_scroll && this.x_scroll) {\n if ((delta.x > 0 && this.x != this.max.x) ||\n (delta.x <= 0 && this.x != 0)) {\n e.stopPropagation();\n }\n }\n else {\n if ((delta.y > 0 && this.y != this.max.y) ||\n (delta.y <= 0 && this.y != 0)) {\n e.stopPropagation();\n }\n }\n }\n addDelta(delta) {\n if (this.disable) {\n return;\n }\n this.momentum.x += delta.x;\n this.momentum.y += delta.y;\n this.renderAnimation?.start();\n }\n onWheel(e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation();\n if (this.pinch) {\n let factor = 0.9;\n if (e.deltaY < 0) {\n factor = 1.1;\n }\n this.zoomOnPoint(e.clientX, e.clientY, this.zoom * factor);\n }\n return;\n }\n const DELTA_MODE = [1.0, 28.0, 500.0];\n const mode = DELTA_MODE[e.deltaMode] || DELTA_MODE[0];\n let newValue = {\n x: 0,\n y: e.deltaY * mode,\n };\n if (!this.y_scroll && this.x_scroll) {\n newValue = {\n x: e.deltaY * mode,\n y: 0,\n };\n }\n else if (this.x_scroll && e.altKey) {\n newValue = {\n x: e.deltaY * mode,\n y: 0,\n };\n }\n this.shouldStopPropagation(e, newValue);\n this.addDelta(newValue);\n }\n onTouchStartPointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchStart(ev);\n return true;\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchStart(ev);\n return true;\n }\n }\n return false;\n }\n onTouchStart(e) {\n if (this.isDragScroller)\n return;\n this.touchRecord.track(e);\n this.momentum = {\n x: 0,\n y: 0\n };\n if (this.pointerCount === 0) {\n this.addActionMove();\n }\n this.pointerCount = this.touchRecord.getNbOfTouches();\n if (this.pinch && this.pointerCount == 2) {\n this.startTranslate = { x: this.x, y: this.y };\n }\n }\n onTouchMovePointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchMove(ev);\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchMove(ev);\n }\n }\n }\n onTouchMove(e) {\n if (this.isDragScroller)\n return;\n this.touchRecord.update(e);\n if (this.pinch && this.pointerCount == 2) {\n // zoom\n e.stopPropagation();\n this.renderAnimation?.stop();\n this.pinchAction();\n }\n else {\n const delta = this.touchRecord.getDelta();\n this.shouldStopPropagation(e, delta);\n this.addDelta(delta);\n }\n }\n onTouchEndPointer(e) {\n const ev = e.event;\n if ('TouchEvent' in window && ev instanceof TouchEvent) {\n this.onTouchEnd(ev);\n }\n else if (ev instanceof PointerEvent) {\n if (this.mouse_drag || ev.pointerType == \"touch\") {\n this.onTouchEnd(ev);\n }\n }\n }\n onTouchEnd(e) {\n if (this.isDragScroller)\n return;\n const delta = this.touchRecord.getEasingDistance(this.break);\n this.shouldStopPropagation(e, delta);\n this.addDelta(delta);\n this.touchRecord.release(e);\n this.pointerCount = this.touchRecord.getNbOfTouches();\n if (this.pointerCount === 0) {\n this.removeActionMove();\n }\n if (this.pointerCount < 2) {\n this.previousMidPoint = undefined;\n this.previousDistance = undefined;\n }\n }\n calculateRealSize() {\n if (!this.contentZoom || !this.mainContainer || !this.contentWrapper) {\n return false;\n }\n const currentOffsetWidth = this.contentZoom.offsetWidth;\n const currentOffsetHeight = this.contentZoom.offsetHeight;\n let hasChanged = false;\n if (this.contentWrapper.offsetWidth != this.contentWrapperSize.x || this.contentWrapper.offsetHeight != this.contentWrapperSize.y)\n hasChanged = true;\n this.contentWrapperSize.x = this.contentWrapper.offsetWidth;\n this.contentWrapperSize.y = this.contentWrapper.offsetHeight;\n if (this.zoom < 1) {\n // scale the container for zoom\n this.contentZoom.style.width = this.div(this.mainContainer.offsetWidth, this.zoom) + 'px';\n this.contentZoom.style.height = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n this.contentZoom.style.maxHeight = this.div(this.mainContainer.offsetHeight, this.zoom) + 'px';\n if (currentOffsetHeight != this.display.y || currentOffsetWidth != this.display.x)\n hasChanged = true;\n this.display.y = currentOffsetHeight;\n this.display.x = currentOffsetWidth;\n }\n else {\n const newX = this.div(currentOffsetWidth, this.zoom);\n const newY = this.div(currentOffsetHeight, this.zoom);\n if (newY != this.display.y || newX != this.display.x)\n hasChanged = true;\n this.display.y = newY;\n this.display.x = newX;\n this.contentZoom.style.width = '';\n this.contentZoom.style.height = '';\n this.contentZoom.style.maxHeight = '';\n }\n return hasChanged;\n }\n calculatePositionScrollerContainer(direction) {\n if (direction == 'y') {\n this.calculatePositionScrollerContainerY();\n }\n else {\n this.calculatePositionScrollerContainerX();\n }\n }\n calculatePositionScrollerContainerY() {\n const leftMissing = this.mainContainer.offsetWidth - this.verticalScrollerContainer.offsetLeft;\n if (leftMissing > 0 && this.y_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.width = 'calc(100% - ' + leftMissing + 'px)';\n this.contentHidder.style.marginRight = leftMissing + 'px';\n this.margin.x = leftMissing;\n }\n else {\n this.contentHidder.style.width = '';\n this.contentHidder.style.marginRight = '';\n this.margin.x = 0;\n }\n }\n calculatePositionScrollerContainerX() {\n const topMissing = this.mainContainer.offsetHeight - this.horizontalScrollerContainer.offsetTop;\n if (topMissing > 0 && this.x_scroll_visible && !this.floating_scroll) {\n this.contentHidder.style.height = 'calc(100% - ' + topMissing + 'px)';\n this.contentHidder.style.marginBottom = topMissing + 'px';\n this.margin.y = topMissing;\n }\n else {\n this.contentHidder.style.height = '';\n this.contentHidder.style.marginBottom = '';\n this.margin.y = 0;\n }\n }\n calculateSizeScroller(direction) {\n const scrollerSize = (this.div((this.display[direction] - this.margin[direction]), this.contentWrapperSize[direction]) * 100);\n if (direction == \"y\") {\n this.scroller[direction]().style.height = scrollerSize + '%';\n }\n else {\n this.scroller[direction]().style.width = scrollerSize + '%';\n }\n let maxScrollContent = this.contentWrapperSize[direction] - this.display[direction];\n if (maxScrollContent < 0) {\n maxScrollContent = 0;\n }\n this.max[direction] = maxScrollContent + this.margin[direction];\n }\n changeZoom() {\n this.contentZoom.style.transform = 'scale(' + this.zoom + ')';\n this.dimensionRefreshed(true);\n }\n dimensionRefreshed(force = false) {\n if (this.contentWrapper.offsetHeight > 0 && this.contentWrapper.offsetWidth > 0) {\n this.loadedOnce = true;\n if (this.savedPercent) {\n this.position.x = this.contentWrapper.offsetWidth * this.savedPercent.x;\n this.position.y = this.contentWrapper.offsetHeight * this.savedPercent.y;\n this.savedPercent = undefined;\n }\n }\n else if (this.loadedOnce) {\n this.savedPercent = {\n x: this.div(this.position.x, this.contentWrapperSize.x),\n y: this.div(this.position.y, this.contentWrapperSize.y)\n };\n }\n if (!this.calculateRealSize() && !force) {\n return;\n }\n if (this.contentWrapperSize.y - this.display.y > 0) {\n if (!this.y_scroll_visible) {\n this.y_scroll_visible = true;\n this.calculatePositionScrollerContainer('y');\n }\n this.calculateSizeScroller('y');\n this.scrollDirection('y', this.y);\n }\n else if (this.y_scroll_visible) {\n this.y_scroll_visible = false;\n this.calculatePositionScrollerContainer('y');\n this.calculateSizeScroller('y');\n this.scrollDirection('y', 0);\n }\n if (this.contentWrapperSize.x - this.display.x > 0) {\n if (!this.x_scroll_visible) {\n this.x_scroll_visible = true;\n this.calculatePositionScrollerContainer('x');\n }\n this.calculateSizeScroller('x');\n this.scrollDirection('x', this.x);\n }\n else if (this.x_scroll_visible) {\n this.x_scroll_visible = false;\n this.calculatePositionScrollerContainer('x');\n this.calculateSizeScroller('x');\n this.scrollDirection('x', 0);\n }\n }\n createResizeObserver() {\n let inProgress = false;\n return new Aventus.ResizeObserver({\n callback: entries => {\n if (inProgress) {\n return;\n }\n inProgress = true;\n this.dimensionRefreshed();\n inProgress = false;\n },\n fps: 30\n });\n }\n addResizeObserver() {\n if (this.observer == undefined) {\n this.observer = this.createResizeObserver();\n }\n this.observer.observe(this.contentWrapper);\n this.observer.observe(this);\n }\n div(nb1, nb2) {\n if (!nb2)\n return nb1;\n return nb1 / nb2;\n }\n postCreation() {\n this.dimensionRefreshed();\n this.addResizeObserver();\n this.addAction();\n }\n static lock(element) {\n const container = element.findParentByType(Layout.AdvancedScrollable);\n if (container) {\n container.disable = true;\n }\n }\n static unlock(element) {\n const container = element.findParentByType(Layout.AdvancedScrollable);\n if (container) {\n container.disable = false;\n }\n }\n}\nLayout.AdvancedScrollable.Namespace=`Aventus.Layout`;\nLayout.AdvancedScrollable.Tag=`av-advanced-scrollable`;\n__as1(_.Layout, 'AdvancedScrollable', Layout.AdvancedScrollable);\nif(!window.customElements.get('av-advanced-scrollable')){window.customElements.define('av-advanced-scrollable', Layout.AdvancedScrollable);Aventus.WebComponentInstance.registerDefinition(Layout.AdvancedScrollable);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.AdvancedScrollable","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.TouchRecord","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Animation","isStrong":false},{"fullName":"Aventus.Tracker","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"Aventus.NormalizedEvent","isStrong":false}],"fullName":"Aventus.Layout.AdvancedScrollable","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-advanced-scrollable","slots":{"default":{"local":true}}},{"code":"Lib.ShortcutManager=class ShortcutManager {\n /**\n * Stores registered shortcut callbacks.\n */\n static memory = {};\n /**\n * List of shortcut key combinations that should automatically prevent default browser behavior.\n */\n static autoPrevents = [];\n /**\n * Indicates if the ShortcutManager has been initialized.\n */\n static isInit = false;\n /**\n * Currently pressed keys.\n */\n static arrayKeys = [];\n /**\n * Stores options for each registered shortcut callback.\n */\n static options = new Map();\n /**\n * Stores temporarily replaced shortcut callbacks.\n */\n static replacingMemory = {};\n /**\n * Checks if a given key is a printable character or a space.\n */\n static isTxt(touch) {\n return touch.match(/[a-zA-Z0-9_\\+\\-]/g) || touch == \" \";\n }\n /**\n * Converts a key combination into a standardized string representation.\n */\n static getText(combinaison) {\n let allTouches = [];\n for (let touch of combinaison) {\n let realTouch = \"\";\n if (typeof touch == \"number\" && Lib.SpecialTouch[touch] !== undefined) {\n realTouch = Lib.SpecialTouch[touch];\n }\n else if (this.isTxt(touch)) {\n realTouch = touch;\n }\n else {\n throw \"I can't use \" + touch + \" to add a shortcut\";\n }\n allTouches.push(realTouch);\n }\n allTouches.sort();\n return allTouches.join(\"+\");\n }\n /**\n * Subscribes a callback function to a specific keyboard shortcut combination.\n */\n static subscribe(combinaison, cb, options) {\n if (!Array.isArray(combinaison)) {\n combinaison = [combinaison];\n }\n let key = this.getText(combinaison);\n if (options?.replaceTemp) {\n if (Lib.ShortcutManager.memory[key]) {\n if (!this.replacingMemory[key]) {\n this.replacingMemory[key] = [];\n }\n this.replacingMemory[key].push(Lib.ShortcutManager.memory[key]);\n delete Lib.ShortcutManager.memory[key];\n }\n }\n if (!Lib.ShortcutManager.memory[key]) {\n Lib.ShortcutManager.memory[key] = [];\n }\n if (!Lib.ShortcutManager.memory[key].includes(cb)) {\n Lib.ShortcutManager.memory[key].push(cb);\n if (options) {\n this.options.set(cb, options);\n }\n }\n if (!Lib.ShortcutManager.isInit) {\n Lib.ShortcutManager.init();\n }\n }\n /**\n * Unsubscribes a callback function from a keyboard shortcut combination.\n */\n static unsubscribe(combinaison, cb) {\n if (!Array.isArray(combinaison)) {\n combinaison = [combinaison];\n }\n let key = this.getText(combinaison);\n if (Lib.ShortcutManager.memory[key]) {\n let index = Lib.ShortcutManager.memory[key].indexOf(cb);\n if (index != -1) {\n Lib.ShortcutManager.memory[key].splice(index, 1);\n let options = this.options.get(cb);\n if (options) {\n this.options.delete(cb);\n }\n if (Lib.ShortcutManager.memory[key].length == 0) {\n delete Lib.ShortcutManager.memory[key];\n if (options?.replaceTemp) {\n if (this.replacingMemory[key]) {\n if (this.replacingMemory[key].length > 0) {\n Lib.ShortcutManager.memory[key] = this.replacingMemory[key].pop();\n if (this.replacingMemory[key].length == 0) {\n delete this.replacingMemory[key];\n }\n }\n else {\n delete this.replacingMemory[key];\n }\n }\n }\n }\n if (Object.keys(Lib.ShortcutManager.memory).length == 0 && Lib.ShortcutManager.isInit) {\n //ShortcutManager.uninit();\n }\n }\n }\n }\n /**\n * Handles keydown events, processing registered shortcuts and preventing default behavior.\n */\n static async onKeyDown(e) {\n if (e.ctrlKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Control];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (e.altKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Alt];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (e.shiftKey) {\n let txt = Lib.SpecialTouch[Lib.SpecialTouch.Shift];\n if (!this.arrayKeys.includes(txt)) {\n this.arrayKeys.push(txt);\n }\n }\n if (this.isTxt(e.key) && !this.arrayKeys.includes(e.key)) {\n this.arrayKeys.push(e.key);\n }\n else if (Lib.SpecialTouch[e.key] !== undefined && !this.arrayKeys.includes(e.key)) {\n this.arrayKeys.push(e.key);\n }\n this.arrayKeys.sort();\n let key = this.arrayKeys.join(\"+\");\n if (Lib.ShortcutManager.memory[key]) {\n let preventDefault = true;\n for (let cb of Lib.ShortcutManager.memory[key]) {\n let options = this.options.get(cb);\n if (options && options.preventDefault === false) {\n preventDefault = false;\n }\n }\n this.arrayKeys = [];\n for (let cb of Lib.ShortcutManager.memory[key]) {\n const result = await cb();\n if (result === false) {\n preventDefault = result;\n }\n }\n if (preventDefault) {\n e.preventDefault();\n }\n }\n else if (Lib.ShortcutManager.autoPrevents.includes(key)) {\n e.preventDefault();\n }\n }\n /**\n * Handles keyup events, removing the released key from the currently pressed keys.\n */\n static onKeyUp(e) {\n let index = this.arrayKeys.indexOf(e.key);\n if (index != -1) {\n this.arrayKeys.splice(index, 1);\n }\n }\n /**\n * Initializes the ShortcutManager, setting up global event listeners.\n */\n static init() {\n if (Lib.ShortcutManager.isInit)\n return;\n Lib.ShortcutManager.isInit = true;\n this.onKeyDown = this.onKeyDown.bind(this);\n this.onKeyUp = this.onKeyUp.bind(this);\n Lib.ShortcutManager.autoPrevents = [\n this.getText([Lib.SpecialTouch.Control, \"s\"]),\n this.getText([Lib.SpecialTouch.Control, \"p\"]),\n this.getText([Lib.SpecialTouch.Control, \"l\"]),\n this.getText([Lib.SpecialTouch.Control, \"k\"]),\n this.getText([Lib.SpecialTouch.Control, \"j\"]),\n this.getText([Lib.SpecialTouch.Control, \"h\"]),\n this.getText([Lib.SpecialTouch.Control, \"g\"]),\n this.getText([Lib.SpecialTouch.Control, \"f\"]),\n this.getText([Lib.SpecialTouch.Control, \"d\"]),\n this.getText([Lib.SpecialTouch.Control, \"o\"]),\n this.getText([Lib.SpecialTouch.Control, \"u\"]),\n this.getText([Lib.SpecialTouch.Control, \"e\"]),\n ];\n window.addEventListener(\"blur\", () => {\n this.arrayKeys = [];\n });\n document.body.addEventListener(\"keydown\", this.onKeyDown);\n document.body.addEventListener(\"keyup\", this.onKeyUp);\n }\n /**\n * Sets key combinations that should automatically prevent default browser behavior.\n */\n static setAutoPrevents(combinaisons) {\n if (!Lib.ShortcutManager.isInit) {\n this.init();\n }\n Lib.ShortcutManager.autoPrevents = [];\n for (let combinaison of combinaisons) {\n Lib.ShortcutManager.autoPrevents.push(this.getText(combinaison));\n }\n }\n /**\n * Deinitializes the ShortcutManager, removing global event listeners.\n */\n static uninit() {\n document.body.removeEventListener(\"keydown\", this.onKeyDown);\n document.body.removeEventListener(\"keyup\", this.onKeyUp);\n this.arrayKeys = [];\n Lib.ShortcutManager.isInit = false;\n }\n}\nLib.ShortcutManager.Namespace=`Aventus.Lib`;\n__as1(_.Lib, 'ShortcutManager', Lib.ShortcutManager);\n","dependencies":[{"fullName":"Aventus.Lib.ShortcutManagerOptions","isStrong":true},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false}],"fullName":"Aventus.Lib.ShortcutManager","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.GridHelper = class GridHelper extends Aventus.WebComponent {\n static get observedAttributes() {return [\"unit\", \"nb_col\", \"nb_row\", \"col_width\", \"row_height\", \"ruler_size\", \"step\", \"step_big\", \"magnetic\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'show_rulers'() { return this.getBoolAttr('show_rulers') }\n set 'show_rulers'(val) { this.setBoolAttr('show_rulers', val) }\nget 'show_grid'() { return this.getBoolAttr('show_grid') }\n set 'show_grid'(val) { this.setBoolAttr('show_grid', val) }\nget 'show_ruler'() { return this.getBoolAttr('show_ruler') }\n set 'show_ruler'(val) { this.setBoolAttr('show_ruler', val) }\nget 'show_guides'() { return this.getBoolAttr('show_guides') }\n set 'show_guides'(val) { this.setBoolAttr('show_guides', val) }\nget 'lock'() { return this.getBoolAttr('lock') }\n set 'lock'(val) { this.setBoolAttr('lock', val) }\nget 'visible'() { return this.getBoolAttr('visible') }\n set 'visible'(val) { this.setBoolAttr('visible', val) }\n get 'unit'() { return this.getStringProp('unit') }\n set 'unit'(val) { this.setStringAttr('unit', val) }\nget 'nb_col'() { return this.getNumberProp('nb_col') }\n set 'nb_col'(val) { this.setNumberAttr('nb_col', val) }\nget 'nb_row'() { return this.getNumberProp('nb_row') }\n set 'nb_row'(val) { this.setNumberAttr('nb_row', val) }\nget 'col_width'() { return this.getNumberProp('col_width') }\n set 'col_width'(val) { this.setNumberAttr('col_width', val) }\nget 'row_height'() { return this.getNumberProp('row_height') }\n set 'row_height'(val) { this.setNumberAttr('row_height', val) }\nget 'ruler_size'() { return this.getNumberProp('ruler_size') }\n set 'ruler_size'(val) { this.setNumberAttr('ruler_size', val) }\nget 'step'() { return this.getNumberProp('step') }\n set 'step'(val) { this.setNumberAttr('step', val) }\nget 'step_big'() { return this.getNumberProp('step_big') }\n set 'step_big'(val) { this.setNumberAttr('step_big', val) }\nget 'magnetic'() { return this.getNumberProp('magnetic') }\n set 'magnetic'(val) { this.setNumberAttr('magnetic', val) }\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"unit\", ((target) => {\n target.rulerLeftEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.rulerTopEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.lockEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n}));\nthis.__addPropertyActions(\"nb_row\", ((target) => {\n}));\nthis.__addPropertyActions(\"row_height\", ((target) => {\n}));\nthis.__addPropertyActions(\"ruler_size\", ((target) => {\n target.rulerLeftEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.rulerTopEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n target.lockEl.style.setProperty(\"--ruler-size\", target.ruler_size + target.unit);\n}));\n }\n static __style = `:host{--ruler-color: white;display:none;font-family:Arial,Helvetica,sans-serif;inset:0;pointer-events:none;position:fixed;user-select:none;z-index:9999}:host .grid{inset:0;position:absolute}:host .grid .cols,:host .grid .rows{display:flex;inset:0;position:absolute}:host .grid .rows{flex-direction:column}:host .grid .col{flex-shrink:0;height:100%;position:relative;width:var(--local-col-width)}:host .grid .col::after{background-color:#e78181;content:\"\";height:100%;position:absolute;right:-1px;top:0;width:2px}:host .grid .col:last-child::after{display:none}:host .grid .row{flex-shrink:0;height:var(--local-row-height);position:relative;width:100%}:host .grid .row::after{background-color:#e78181;bottom:-1px;content:\"\";height:2px;left:0;position:absolute;width:100%}:host .grid .row:last-child::after{display:none}:host .ruler-top{background-color:var(--ruler-color);height:var(--ruler-size);pointer-events:all;position:absolute;top:0;width:100%;z-index:3}:host .ruler-top::after{bottom:0;box-shadow:5px 0 5px #818181;content:\"\";height:100%;left:var(--ruler-size);pointer-events:none;position:absolute;width:calc(100% - var(--ruler-size))}:host .ruler-top .ruler-content{display:flex;flex-direction:row;height:100%;overflow:hidden;padding-left:var(--ruler-size)}:host .ruler-top .ruler-content .step{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;text-align:left;width:var(--step-width)}:host .ruler-top .ruler-content .step span{align-items:center;display:flex;flex-grow:1;font-size:10px;transform:translateX(-50%);width:min-content}:host .ruler-top .ruler-content .step::after{background-color:#3d3d3d;content:\"\";display:inline-block;flex-shrink:0;height:3px;transform:translateX(-50%);width:2px}:host .ruler-top .ruler-content .step.big::after{background-color:#000;height:8px}:host .ruler-left{height:100%;pointer-events:all;position:absolute;top:0;width:var(--ruler-size);z-index:4}:host .ruler-left::after{box-shadow:0px 5px 5px #818181;content:\"\";height:calc(100% - var(--ruler-size));left:0;pointer-events:none;position:absolute;top:var(--ruler-size);width:100%}:host .ruler-left .ruler-content{display:flex;flex-direction:column;height:100%;overflow:hidden;padding-top:var(--ruler-size);position:relative;width:100%}:host .ruler-left .ruler-content::before{background-color:var(--ruler-color);content:\"\";inset:0;position:absolute;top:var(--ruler-size);z-index:2}:host .ruler-left .ruler-content .step{display:flex;flex-direction:row;flex-shrink:0;height:var(--step-height);justify-content:space-between;position:relative;text-align:left;z-index:3}:host .ruler-left .ruler-content .step span{display:flex;flex-grow:1;font-size:10px;height:min-content;justify-content:center;transform:translateY(-50%)}:host .ruler-left .ruler-content .step::after{background-color:#3d3d3d;content:\"\";display:inline-block;flex-shrink:0;height:2px;transform:translateY(-50%);width:3px}:host .ruler-left .ruler-content .step.big::after{background-color:#000;width:8px}:host .lock{align-items:center;cursor:pointer;display:flex;height:var(--ruler-size);justify-content:center;left:0;pointer-events:all;position:absolute;top:0;width:var(--ruler-size);z-index:5}:host .lock svg{aspect-ratio:1;display:inline-block;width:50%}:host .lock .close{display:none}:host([visible]){display:block}:host(:not([show_grid])) .grid{display:none}:host(:not([show_ruler])) .ruler-top{display:none}:host(:not([show_ruler])) .ruler-left{display:none}:host(:not([show_guides])) .guides{display:none}:host([lock]){--ruler-color: #eeeeee}:host([lock]) .ruler-top,:host([lock]) .ruler-left{cursor:not-allowed}:host([lock]) .guides av-grid-guide-helper{pointer-events:none}:host([lock]) .lock .open{display:none}:host([lock]) .lock .close{display:inline-block}`;\n __getStatic() {\n return GridHelper;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(GridHelper.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<div class=\"lock\" _id=\"gridhelper_0\">\r <svg class=\"close\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"></rect>\r <path d=\"M7 11V7a5 5 0 0 1 10 0v4\"></path>\r </svg>\r <svg class=\"open\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"></rect>\r <path d=\"M7 11V7a5 5 0 0 1 9.9-1\"></path>\r </svg>\r</div><div class=\"ruler-top\" _id=\"gridhelper_1\">\r <div class=\"ruler-content\" _id=\"gridhelper_2\"></div>\r</div><div class=\"ruler-left\" _id=\"gridhelper_3\">\r <div class=\"ruler-content\" _id=\"gridhelper_4\"></div>\r</div><div class=\"grid\" _id=\"gridhelper_5\">\r <div class=\"cols\" _id=\"gridhelper_6\"></div>\r <div class=\"rows\" _id=\"gridhelper_7\"></div>\r</div><div class=\"guides\" _id=\"gridhelper_8\">\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"lockEl\",\n \"ids\": [\n \"gridhelper_0\"\n ]\n },\n {\n \"name\": \"rulerTopEl\",\n \"ids\": [\n \"gridhelper_1\"\n ]\n },\n {\n \"name\": \"rulerTopContentEl\",\n \"ids\": [\n \"gridhelper_2\"\n ]\n },\n {\n \"name\": \"rulerLeftEl\",\n \"ids\": [\n \"gridhelper_3\"\n ]\n },\n {\n \"name\": \"rulerLeftContentEl\",\n \"ids\": [\n \"gridhelper_4\"\n ]\n },\n {\n \"name\": \"gridEl\",\n \"ids\": [\n \"gridhelper_5\"\n ]\n },\n {\n \"name\": \"colsEl\",\n \"ids\": [\n \"gridhelper_6\"\n ]\n },\n {\n \"name\": \"rowsEl\",\n \"ids\": [\n \"gridhelper_7\"\n ]\n },\n {\n \"name\": \"guidesEl\",\n \"ids\": [\n \"gridhelper_8\"\n ]\n }\n ],\n \"pressEvents\": [\n {\n \"id\": \"gridhelper_0\",\n \"onPress\": (e, pressInstance, c) => { c.comp.toggleLock(e, pressInstance); }\n }\n ]\n});\n }\n getClassName() {\n return \"GridHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('show_rulers')) { this.attributeChangedCallback('show_rulers', false, false); }\nif(!this.hasAttribute('show_grid')) {this.setAttribute('show_grid' ,'true'); }\nif(!this.hasAttribute('show_ruler')) {this.setAttribute('show_ruler' ,'true'); }\nif(!this.hasAttribute('show_guides')) {this.setAttribute('show_guides' ,'true'); }\nif(!this.hasAttribute('lock')) {this.setAttribute('lock' ,'true'); }\nif(!this.hasAttribute('visible')) {this.setAttribute('visible' ,'true'); }\nif(!this.hasAttribute('unit')){ this['unit'] = 'px'; }\nif(!this.hasAttribute('nb_col')){ this['nb_col'] = 0; }\nif(!this.hasAttribute('nb_row')){ this['nb_row'] = 0; }\nif(!this.hasAttribute('col_width')){ this['col_width'] = undefined; }\nif(!this.hasAttribute('row_height')){ this['row_height'] = undefined; }\nif(!this.hasAttribute('ruler_size')){ this['ruler_size'] = 25; }\nif(!this.hasAttribute('step')){ this['step'] = 20; }\nif(!this.hasAttribute('step_big')){ this['step_big'] = undefined; }\nif(!this.hasAttribute('magnetic')){ this['magnetic'] = 0; }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('show_rulers');\nthis.__upgradeProperty('show_grid');\nthis.__upgradeProperty('show_ruler');\nthis.__upgradeProperty('show_guides');\nthis.__upgradeProperty('lock');\nthis.__upgradeProperty('visible');\nthis.__upgradeProperty('unit');\nthis.__upgradeProperty('nb_col');\nthis.__upgradeProperty('nb_row');\nthis.__upgradeProperty('col_width');\nthis.__upgradeProperty('row_height');\nthis.__upgradeProperty('ruler_size');\nthis.__upgradeProperty('step');\nthis.__upgradeProperty('step_big');\nthis.__upgradeProperty('magnetic');\n }\n __listBoolProps() { return [\"show_rulers\",\"show_grid\",\"show_ruler\",\"show_guides\",\"lock\",\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n inPx(nb) {\n if (this.unit == 'px') {\n return nb;\n }\n if (this.unit == 'rem') {\n return nb * 16;\n }\n if (this.unit == 'mm') {\n return nb * 3.7795275591;\n }\n if (this.unit == 'cm') {\n return nb * 37.795275591;\n }\n if (this.unit == 'in') {\n return nb * 96;\n }\n if (this.unit == 'pt') {\n return nb * 1.33333333;\n }\n throw 'unit not supported';\n }\n fromPx(nbPx) {\n if (this.unit == 'px') {\n return nbPx;\n }\n if (this.unit == 'rem') {\n return Math.round(nbPx / 16 * 100) / 100;\n }\n if (this.unit == 'mm') {\n return Math.round(nbPx * 0.2645833333 * 100) / 100;\n }\n if (this.unit == 'cm') {\n return Math.round(nbPx * 0.02645833333 * 100) / 100;\n }\n if (this.unit == 'in') {\n return Math.round(nbPx / 96 * 100) / 100;\n }\n if (this.unit == 'pt') {\n return Math.round(nbPx * 0.75 * 100) / 100;\n }\n throw 'unit not supported';\n }\n toggleLock() {\n this.lock = !this.lock;\n }\n draw() {\n let nbCol = 0;\n if (this.nb_col) {\n this.gridEl.style.setProperty('--local-col-width', `calc(100% / ${this.nb_col})`);\n nbCol = this.nb_col;\n }\n else {\n let width = this.col_width;\n if (width == 0) {\n width = this.fromPx(16);\n }\n this.gridEl.style.setProperty('--local-col-width', width + this.unit);\n nbCol = Math.ceil(this.offsetWidth / this.inPx(width));\n }\n if (this.colsEl.children.length != nbCol) {\n this.colsEl.innerHTML = '';\n for (let i = 0; i < nbCol; i++) {\n const col = document.createElement(\"DIV\");\n col.classList.add('col');\n this.colsEl.appendChild(col);\n }\n }\n let nbRow = 0;\n if (this.nb_row) {\n this.gridEl.style.setProperty('--local-row-height', `calc(100% / ${this.nb_row})`);\n nbRow = this.nb_row;\n }\n else {\n let height = this.row_height;\n if (height == 0) {\n height = this.fromPx(16);\n }\n this.gridEl.style.setProperty('--local-row-height', height + this.unit);\n nbRow = Math.ceil(this.offsetHeight / this.inPx(height));\n }\n if (this.rowsEl.children.length != nbRow) {\n this.rowsEl.innerHTML = '';\n for (let i = 0; i < nbRow; i++) {\n const row = document.createElement(\"DIV\");\n row.classList.add('row');\n this.rowsEl.appendChild(row);\n }\n }\n }\n drawRulerTop() {\n const step = this.step;\n const bigStep = this.step_big == 0 ? this.step : this.step_big;\n const rulerSize = this.ruler_size;\n this.rulerTopEl.style.setProperty(\"--step-width\", step + this.unit);\n const nb = Math.ceil(this.offsetWidth / this.inPx(step));\n const createStep = (nb, isBig, w) => {\n const d = document.createElement('div');\n d.classList.add(\"step\");\n if (w) {\n d.style.width = w + this.unit;\n }\n if (isBig) {\n d.classList.add(\"big\");\n }\n const s = document.createElement(\"span\");\n if (isBig)\n s.innerHTML = nb + '';\n d.appendChild(s);\n this.rulerTopContentEl.appendChild(d);\n };\n let i = 0;\n while (step * i - rulerSize < 0) {\n i++;\n }\n createStep(rulerSize, true, step * i - rulerSize);\n for (; i < nb; i++) {\n if (i * step <= rulerSize)\n continue;\n const isBig = (step * i) % bigStep == 0;\n createStep(i * step, isBig);\n }\n }\n drawRulerLeft() {\n const step = this.step;\n const bigStep = this.step_big == 0 ? this.step : this.step_big;\n const rulerSize = this.ruler_size;\n this.rulerLeftEl.style.setProperty(\"--step-height\", step + this.unit);\n const nb = Math.ceil(this.offsetHeight / this.inPx(step));\n const createStep = (nb, isBig, h) => {\n const d = document.createElement('div');\n d.classList.add(\"step\");\n if (h) {\n d.style.height = h + this.unit;\n }\n if (isBig) {\n d.classList.add(\"big\");\n }\n const s = document.createElement(\"span\");\n if (isBig)\n s.innerHTML = nb + '';\n d.appendChild(s);\n this.rulerLeftContentEl.appendChild(d);\n };\n let i = 0;\n while (step * i - rulerSize < 0) {\n i++;\n }\n createStep(rulerSize, true, step * i - rulerSize);\n for (; i < nb; i++) {\n if (i * step <= rulerSize)\n continue;\n const isBig = (step * i) % bigStep == 0;\n createStep(i * step, isBig);\n }\n }\n addDragLeft() {\n let el = undefined;\n new Aventus.PressManager({\n element: this.rulerLeftContentEl,\n onDblPress: () => {\n const nbtxt = prompt(\"Top Position\");\n if (nbtxt) {\n const nb = Number(nbtxt);\n if (!isNaN(nb)) {\n this.createGuideFromTop(nb);\n }\n }\n }\n });\n new Aventus.DragAndDrop({\n element: this.rulerLeftContentEl,\n applyDrag: false,\n onStart: (e) => {\n if (this.lock)\n return false;\n el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.container = this;\n this.guidesEl.appendChild(el);\n el.onStart();\n return true;\n },\n onMove: (e) => {\n if (el) {\n el.onMoveY(e);\n }\n },\n onStop: () => {\n if (el) {\n el.onStop();\n }\n }\n });\n }\n addDragTop() {\n let el = undefined;\n new Aventus.PressManager({\n element: this.rulerTopContentEl,\n onDblPress: () => {\n const nbtxt = prompt(\"Left Position\");\n if (nbtxt) {\n const nb = Number(nbtxt);\n if (!isNaN(nb)) {\n this.createGuideFromLeft(nb);\n }\n }\n }\n });\n new Aventus.DragAndDrop({\n element: this.rulerTopContentEl,\n applyDrag: false,\n onStart: (e) => {\n if (this.lock)\n return false;\n el = new _.Layout.GridGuideHelper();\n el.container = this;\n el.direction = 'x';\n this.guidesEl.appendChild(el);\n el.onStart();\n return true;\n },\n onMove: (e) => {\n if (el) {\n el.onMoveX(e);\n }\n },\n onStop: () => {\n if (el) {\n el.onStop();\n }\n }\n });\n }\n createGuideFromLeft(left) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.container = this;\n el.style.left = left + this.unit;\n this.guidesEl.appendChild(el);\n this.save();\n }\n createGuideFromTop(top) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'x';\n el.container = this;\n el.style.top = top + this.unit;\n this.guidesEl.appendChild(el);\n this.save();\n }\n addShortCut() {\n let isKActive = false;\n let timeout = 0;\n Lib.ShortcutManager.subscribe([Lib.SpecialTouch.Control, 'k'], () => {\n isKActive = true;\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n isKActive = false;\n }, 1000);\n });\n const commande = (letter, cb) => {\n Lib.ShortcutManager.subscribe([letter], () => {\n if (!isKActive)\n return false;\n isKActive = false;\n cb();\n return;\n });\n Lib.ShortcutManager.subscribe([Lib.SpecialTouch.Control, letter], () => {\n if (!isKActive)\n return false;\n isKActive = false;\n cb();\n return;\n });\n };\n commande('v', () => { this.visible = !this.visible; });\n commande('g', () => { this.show_grid = !this.show_grid; });\n commande('r', () => { this.show_ruler = !this.show_ruler; });\n commande('j', () => { this.show_guides = !this.show_guides; });\n commande('l', () => { this.lock = !this.lock; });\n }\n addResize() {\n new Aventus.ResizeObserver({\n callback: () => {\n this.draw();\n this.drawRulerTop();\n this.drawRulerLeft();\n },\n fps: 30\n }).observe(this);\n }\n save() {\n const data = { x: [], y: [] };\n for (let child of this.guidesEl.children) {\n if (child instanceof _.Layout.GridGuideHelper) {\n if (child.direction == 'x') {\n data.x.push(child.offsetTop);\n }\n else {\n data.y.push(child.offsetLeft);\n }\n }\n }\n const id = this.id != '' ? this.id : 'grid-helper';\n localStorage.setItem(id, JSON.stringify(data));\n }\n reload() {\n const id = this.id != '' ? this.id : 'grid-helper';\n const items = localStorage.getItem(id);\n if (items) {\n const data = JSON.parse(items);\n for (let g of data.x) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'x';\n el.style.top = g + this.unit;\n el.container = this;\n this.guidesEl.appendChild(el);\n }\n for (let g of data.y) {\n const el = new _.Layout.GridGuideHelper();\n el.direction = 'y';\n el.style.left = g + this.unit;\n el.container = this;\n this.guidesEl.appendChild(el);\n }\n }\n }\n postCreation() {\n this.reload();\n this.addResize();\n this.addShortCut();\n this.addDragLeft();\n this.addDragTop();\n this.draw();\n }\n}\nLayout.GridHelper.Namespace=`Aventus.Layout`;\nLayout.GridHelper.Tag=`av-grid-helper`;\n__as1(_.Layout, 'GridHelper', Layout.GridHelper);\nif(!window.customElements.get('av-grid-helper')){window.customElements.define('av-grid-helper', Layout.GridHelper);Aventus.WebComponentInstance.registerDefinition(Layout.GridHelper);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.GridHelper","isStrong":false},{"fullName":"Aventus.Layout.GridGuideHelper","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false}],"fullName":"Aventus.Layout.GridHelper","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid-helper","slots":{}},{"code":"Layout.GridGuideHelper = class GridGuideHelper extends Aventus.WebComponent {\n get 'direction'() { return this.getStringAttr('direction') }\n set 'direction'(val) { this.setStringAttr('direction', val) }\nget 'moving'() { return this.getBoolAttr('moving') }\n set 'moving'(val) { this.setBoolAttr('moving', val) }\n container;\n static __style = `:host{background-color:#c7c7c7;left:0;pointer-events:all;position:absolute;top:0;font-family:inherit}:host .position{background-color:#c7c7c7;border-radius:5px;padding:5px 15px;position:absolute;display:none;font-size:11px}:host(:hover){background-color:red}:host([direction=x]){cursor:ns-resize;height:2px;width:100%;transform:translateY(-50%)}:host([direction=x]) .position{bottom:10px}:host([direction=y]){cursor:ew-resize;height:100%;width:2px;transform:translateX(-50%)}:host([direction=y]) .position{left:10px}:host([moving]) .position{display:flex}`;\n constructor() {\n super();\n this.onStart = this.onStart.bind(this);\n this.onMoveX = this.onMoveX.bind(this);\n this.onMoveY = this.onMoveY.bind(this);\n this.onStop = this.onStop.bind(this);\n }\n __getStatic() {\n return GridGuideHelper;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(GridGuideHelper.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"position\" _id=\"gridguidehelper_0\"><slot></slot></div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"positionEl\",\n \"ids\": [\n \"gridguidehelper_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"GridGuideHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('direction')){ this['direction'] = \"x\"; }\nif(!this.hasAttribute('moving')) { this.attributeChangedCallback('moving', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('direction');\nthis.__upgradeProperty('moving');\n }\n __listBoolProps() { return [\"moving\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n displayValue(v) {\n this.innerHTML = this.container.fromPx(v) + this.container.unit;\n }\n onStart() {\n this.moving = true;\n }\n applyMagnetic(valuePx) {\n const m = this.container.inPx(this.container.magnetic);\n if (m == 0)\n return valuePx;\n const step = this.container.inPx(this.container.step);\n const div = Math.round(valuePx / step) * step;\n return Math.abs(div - valuePx) < m ? div : valuePx;\n }\n onMoveX(e) {\n const valuePx = this.applyMagnetic(e.pageY - this.container.getBoundingClientRect().y);\n this.style.top = valuePx + 'px';\n this.positionEl.style.left = e.pageX - this.container.getBoundingClientRect().x + 10 + 'px';\n this.displayValue(valuePx);\n }\n onMoveY(e) {\n const valuePx = this.applyMagnetic(e.pageX - this.container.getBoundingClientRect().x);\n this.style.left = valuePx + 'px';\n this.positionEl.style.top = e.pageY - this.container.getBoundingClientRect().y - 20 + 'px';\n this.displayValue(valuePx);\n }\n onStop() {\n this.moving = false;\n this.container.save();\n }\n postCreation() {\n if (!this.container)\n this.container = this.findParentByType(_.Layout.GridHelper);\n if (this.direction == \"x\") {\n new Aventus.DragAndDrop({\n element: this,\n offsetDrag: 0,\n applyDrag: false,\n onStart: () => {\n this.onStart();\n },\n onMove: (e) => {\n this.onMoveX(e);\n },\n onStop: () => {\n this.onStop();\n }\n });\n }\n else {\n new Aventus.DragAndDrop({\n element: this,\n offsetDrag: 0,\n applyDrag: false,\n onStart: () => {\n this.onStart();\n },\n onMove: (e) => {\n this.onMoveY(e);\n },\n onStop: () => {\n this.onStop();\n }\n });\n }\n new Aventus.PressManager({\n element: this,\n onDblPress: () => {\n const helper = this.findParentByType(_.Layout.GridHelper);\n this.remove();\n helper?.save();\n }\n });\n }\n}\nLayout.GridGuideHelper.Namespace=`Aventus.Layout`;\nLayout.GridGuideHelper.Tag=`av-grid-guide-helper`;\n__as1(_.Layout, 'GridGuideHelper', Layout.GridGuideHelper);\nif(!window.customElements.get('av-grid-guide-helper')){window.customElements.define('av-grid-guide-helper', Layout.GridGuideHelper);Aventus.WebComponentInstance.registerDefinition(Layout.GridGuideHelper);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.GridHelper","isStrong":false},{"fullName":"Aventus.NormalizedEvent","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false}],"fullName":"Aventus.Layout.GridGuideHelper","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid-guide-helper","slots":{"default":{"local":true}}},{"code":"Layout.Tabs.TabHeader = class TabHeader extends Aventus.WebComponent {\n get 'active'() { return this.getBoolAttr('active') }\n set 'active'(val) { this.setBoolAttr('active', val) }\n _tab;\n get tab() {\n return this._tab;\n }\n tabs;\n static __style = ``;\n constructor() {\n super();\n if (this.constructor == TabHeader) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return TabHeader;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(TabHeader.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"TabHeader\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('active')) { this.attributeChangedCallback('active', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('tab');\nthis.__upgradeProperty('active');\n }\n __listBoolProps() { return [\"active\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async init(tab, tabs) {\n this.tabs = tabs;\n this._tab = tab;\n tab.tabHeader = this;\n await this.render();\n }\n onPress() {\n if (!this.active) {\n this.tabs.setActive(this);\n }\n }\n addPress() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.onPress();\n }\n });\n }\n postCreation() {\n super.postCreation();\n this.addPress();\n }\n}\nLayout.Tabs.TabHeader.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'TabHeader', Layout.Tabs.TabHeader);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Tabs.Tab","isStrong":false},{"fullName":"Aventus.Layout.Tabs.Tabs","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false}],"fullName":"Aventus.Layout.Tabs.TabHeader","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Layout.Tabs.Tab = class Tab extends Aventus.WebComponent {\n get 'selected'() { return this.getBoolAttr('selected') }\n set 'selected'(val) { this.setBoolAttr('selected', val) }\nget 'loaded'() { return this.getBoolAttr('loaded') }\n set 'loaded'(val) { this.setBoolAttr('loaded', val) }\n tabHeader;\n static __style = `:host(:not([loaded])){display:none}`;\n constructor() {\n super();\n if (this.constructor == Tab) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Tab;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Tab.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Tab\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('selected')) { this.attributeChangedCallback('selected', false, false); }\nif(!this.hasAttribute('loaded')) { this.attributeChangedCallback('loaded', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('selected');\nthis.__upgradeProperty('loaded');\n }\n __listBoolProps() { return [\"selected\",\"loaded\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n}\nLayout.Tabs.Tab.Namespace=`Aventus.Layout.Tabs`;\n__as1(_.Layout.Tabs, 'Tab', Layout.Tabs.Tab);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Tabs.TabHeader","isStrong":false}],"fullName":"Aventus.Layout.Tabs.Tab","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Modal.ModalElement = class ModalElement extends Aventus.WebComponent {\n get 'options'() {\n\t\t\t\t\t\treturn this.__watch[\"options\"];\n\t\t\t\t\t}\n\t\t\t\t\tset 'options'(val) {\n\t\t\t\t\t\tthis.__watch[\"options\"] = val;\n\t\t\t\t\t}\n static defaultCloseWithEsc = true;\n static defaultCloseWithClick = true;\n static defaultRejectValue = null;\n cb;\n pressManagerClickClose;\n pressManagerPrevent;\n __registerWatchesActions() {\n this.__addWatchesActions(\"options\", ((target, action, path, value) => {\n target.onOptionsChanged();\n}));\n super.__registerWatchesActions();\n}\n static __style = `:host{--_modal-z-index: var(--modal-z-index, 60)}:host{align-items:center;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--_modal-z-index)}:host .modal{background-color:#fff;padding:1.5rem;position:relative}`;\n constructor() {\n super();\n this.options = this.configure();\n if (this.options.closeWithClick === undefined)\n this.options.closeWithClick = Modal.ModalElement.defaultCloseWithClick;\n if (this.options.closeWithEsc === undefined)\n this.options.closeWithEsc = Modal.ModalElement.defaultCloseWithEsc;\n if (!Object.hasOwn(this.options, \"rejectValue\")) {\n this.options.rejectValue = Modal.ModalElement.defaultRejectValue;\n }\n if (this.constructor == ModalElement) {\n throw \"can't instanciate an abstract class\";\n }\n this.close = this.close.bind(this);\n this.reject = this.reject.bind(this);\n this.resolve = this.resolve.bind(this);\n }\n __getStatic() {\n return ModalElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ModalElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<div class=\"modal\" _id=\"modalelement_0\">\r\t<slot></slot>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"modalEl\",\n \"ids\": [\n \"modalelement_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"ModalElement\";\n }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"options\"] = undefined;\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('options');\n }\n onOptionsChanged() { }\n init(cb) {\n this.cb = cb;\n if (this.options.closeWithEsc) {\n Lib.ShortcutManager.subscribe(Lib.SpecialTouch.Escape, this.reject, { replaceTemp: true });\n }\n if (this.options.closeWithClick) {\n this.pressManagerClickClose = new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.reject();\n }\n });\n this.pressManagerPrevent = new Aventus.PressManager({\n element: this.modalEl,\n onPress: () => { }\n });\n }\n }\n show(element) {\n return Modal.ModalElement._show(this, element);\n }\n close() {\n Lib.ShortcutManager.unsubscribe(Lib.SpecialTouch.Escape, this.reject);\n this.pressManagerClickClose?.destroy();\n this.pressManagerPrevent?.destroy();\n this.remove();\n }\n reject(no_close) {\n if (this.cb) {\n this.cb(this.options.rejectValue ?? null);\n }\n if (no_close !== true) {\n this.close();\n }\n }\n resolve(response, no_close) {\n if (this.cb) {\n this.cb(response);\n }\n if (no_close !== true) {\n this.close();\n }\n }\n postCreation() {\n super.postCreation();\n this.modalEl.setAttribute(\"role\", \"dialog\");\n this.modalEl.setAttribute(\"aria-modal\", \"true\");\n }\n static configure(options) {\n if (options.closeWithClick !== undefined)\n this.defaultCloseWithClick = options.closeWithClick;\n if (options.closeWithEsc !== undefined)\n this.defaultCloseWithEsc = options.closeWithEsc;\n if (Object.hasOwn(options, \"rejectValue\")) {\n this.defaultRejectValue = options.rejectValue;\n }\n }\n static _show(modal, element) {\n return new Promise((resolve) => {\n modal.init((response) => {\n resolve(response);\n });\n if (!element) {\n element = document.body;\n }\n element.appendChild(modal);\n });\n }\n}\nModal.ModalElement.Namespace=`Aventus.Modal`;\n__as1(_.Modal, 'ModalElement', Modal.ModalElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Modal.ModalOptions","isStrong":false},{"fullName":"Aventus.Modal.ModalElement","isStrong":false},{"fullName":"TResult","isStrong":false},{"fullName":"TOptions","isStrong":false},{"fullName":"Aventus.Modal.ExtractTypeModal","isStrong":false},{"fullName":"TModal","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false}],"fullName":"Aventus.Modal.ModalElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Navigation.Page = class Page extends Aventus.WebComponent {\n static get observedAttributes() {return [\"visible\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'visible'() { return this.getBoolProp('visible') }\n set 'visible'(val) { this.setBoolAttr('visible', val) }\n router;\n state;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"visible\", ((target) => {\n if (target.visible) {\n target.onShow();\n }\n else {\n target.onHide();\n }\n}));\n }\n static __style = `:host{display:block}:host(:not([visible])){display:none}`;\n constructor() {\n super();\n if (this.constructor == Page) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Page;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Page.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"Page\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('visible')) { this.attributeChangedCallback('visible', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('visible');\n }\n __listBoolProps() { return [\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async show(state) {\n this.state = state;\n if (!this.visible)\n this.visible = true;\n else\n this.onShow();\n }\n async hide() {\n this.visible = false;\n this.state = undefined;\n }\n onShow() {\n }\n onHide() {\n }\n isAllowed(state, pattern, router) {\n return true;\n }\n loadData(state, path) {\n return true;\n }\n getSlugs(path) {\n const slugs = this.router?.getSlugs(path);\n return slugs;\n }\n}\nNavigation.Page.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'Page', Navigation.Page);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.UriParamsValue","isStrong":false},{"fullName":"Aventus.Navigation.Page","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Navigation.PageConfig","isStrong":false},{"fullName":"Aventus.State","isStrong":false}],"fullName":"Aventus.Navigation.Page","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Navigation.Default404 = class Default404 extends Navigation.Page {\n static __style = `:host{align-items:center;height:100%;justify-content:center;width:100%}:host h1{font-size:48px;text-align:center}:host([visible]){display:flex}`;\n __getStatic() {\n return Default404;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Default404.__style);\n return arrStyle;\n }\n __getHtml() {\nsuper.__getHtml();\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<h1>Error 404</h1>` }\n });\n}\n getClassName() {\n return \"Default404\";\n }\n configure() {\n return {\n destroy: true\n };\n }\n}\nNavigation.Default404.Namespace=`Aventus.Navigation`;\nNavigation.Default404.Tag=`av-default-404`;\n__as1(_.Navigation, 'Default404', Navigation.Default404);\nif(!window.customElements.get('av-default-404')){window.customElements.define('av-default-404', Navigation.Default404);Aventus.WebComponentInstance.registerDefinition(Navigation.Default404);}\n","dependencies":[{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Navigation.PageConfig","isStrong":false}],"fullName":"Aventus.Navigation.Default404","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-default-404","slots":{}},{"code":"Navigation.Router = class Router extends Aventus.WebComponent {\n get 'initializing'() { return this.getBoolAttr('initializing') }\n set 'initializing'(val) { this.setBoolAttr('initializing', val) }\n static page404 = _.Navigation.Default404;\n static destroyPage = false;\n oldPage;\n allRoutes = {};\n activePath = \"\";\n activeState;\n oneStateActive = false;\n showPageMutex = new Aventus.Mutex();\n isReplace = false;\n get stateManager() {\n return Aventus.Instance.get(RouterStateManager);\n }\n page404;\n static __style = `:host{display:block}`;\n constructor() {\n super();\n this.validError404 = this.validError404.bind(this);\n this.canChangeState = this.canChangeState.bind(this);\n this.stateManager.canChangeState(this.canChangeState);\n if (this.constructor == Router) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return Router;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Router.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'before':`<slot name=\"before\"></slot>`,'after':`<slot name=\"after\"></slot>` }, \n blocks: { 'default':`<slot name=\"before\"></slot><main class=\"content\" _id=\"router_0\"></main><slot name=\"after\"></slot>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\nthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"contentEl\",\n \"ids\": [\n \"router_0\"\n ]\n }\n ]\n});\n }\n getClassName() {\n return \"Router\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('initializing')) {this.setAttribute('initializing' ,'true'); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('stateManager');\nthis.__upgradeProperty('initializing');\n }\n __listBoolProps() { return [\"initializing\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n addRouteAsync(options) {\n this.allRoutes[options.route] = options;\n }\n addRoute(route, elementCtr) {\n this.allRoutes[route] = {\n route: route,\n scriptUrl: '',\n render: () => elementCtr\n };\n }\n async register() {\n try {\n await this.defineRoutes();\n this.stateManager.onAfterStateChanged(this.validError404);\n for (let key in this.allRoutes) {\n this.initRoute(key);\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n initRoute(path) {\n let element = undefined;\n let allRoutes = this.allRoutes;\n this.stateManager.subscribe(path, {\n active: (currentState) => {\n this.oneStateActive = true;\n this.showPageMutex.safeRunLastAsync(async () => {\n let isNew = false;\n if (!element || !element.parentElement) {\n let options = allRoutes[path];\n if (options.scriptUrl != \"\") {\n await Aventus.ResourceLoader.loadInHead(options.scriptUrl);\n }\n let cst = options.render();\n element = new cst;\n element.router = this;\n isNew = true;\n }\n const canResult = await element.isAllowed(currentState, path, this);\n if (canResult !== true) {\n if (canResult === false) {\n return;\n }\n this.navigate(canResult, { replace: true });\n return;\n }\n const loadDataResult = await element.loadData(currentState, path);\n if (loadDataResult !== true) {\n if (loadDataResult === false) {\n return;\n }\n this.navigate(loadDataResult, { replace: true });\n return;\n }\n if (isNew)\n this.contentEl.appendChild(element);\n if (this.oldPage && this.oldPage != element) {\n await this.oldPage.hide();\n const { destroy } = await this.oldPage.configure();\n if (destroy === undefined && this.shouldDestroyFrame(this.oldPage)) {\n this.oldPage.remove();\n }\n else if (destroy === true) {\n this.oldPage.remove();\n }\n }\n let oldPage = this.oldPage;\n let oldUrl = this.activePath;\n this.oldPage = element;\n this.activePath = path;\n this.activeState = currentState;\n await element.show(currentState);\n const { title, description, keywords } = await element.configure();\n if (title !== undefined)\n document.title = title;\n if (keywords !== undefined) {\n let meta = document.querySelector('meta[name=\"keywords\"]');\n if (!meta) {\n meta = document.createElement('meta');\n }\n meta.setAttribute(\"content\", keywords.join(\", \"));\n }\n if (description !== undefined) {\n let meta = document.querySelector('meta[name=\"description\"]');\n if (!meta) {\n meta = document.createElement('meta');\n }\n meta.setAttribute(\"content\", description);\n }\n let newPath = currentState.name + this.stateManager.getHash();\n if (this.bindToUrl() && window.location.pathname + window.location.hash != newPath) {\n const oldLocation = window.location.href;\n const hashOnlyChange = window.location.pathname === currentState.name;\n let newUrl = window.location.origin + newPath;\n if (this.isReplace) {\n window.history.replaceState({}, title ?? \"\", newUrl);\n }\n else {\n window.history.pushState({}, title ?? \"\", newUrl);\n }\n if (hashOnlyChange && oldLocation !== window.location.href) {\n window.dispatchEvent(new HashChangeEvent(\"hashchange\", {\n oldURL: oldLocation,\n newURL: window.location.href\n }));\n }\n }\n this.onNewPage(oldUrl, oldPage, path, element);\n });\n },\n inactive: () => {\n this.oneStateActive = false;\n }\n });\n }\n async validError404() {\n if (!this.oneStateActive) {\n let Page404 = this.error404(this.stateManager.getState()) ?? Navigation.Router.page404;\n if (Page404) {\n if (!this.page404 || !this.page404.parentElement) {\n this.page404 = new Page404();\n this.page404.router = this;\n this.contentEl.appendChild(this.page404);\n }\n if (this.oldPage && this.oldPage != this.page404) {\n await this.oldPage.hide();\n }\n if (this.bindToUrl()) {\n const currentState = this.stateManager.getState();\n if (currentState && window.location.pathname + window.location.hash != currentState.name + this.stateManager.getHash()) {\n const oldLocation = window.location.href;\n const hashOnlyChange = window.location.pathname === currentState.name;\n let newUrl = window.location.origin + currentState.name + this.stateManager.getHash();\n if (this.isReplace) {\n window.history.replaceState({}, \"Not found\", newUrl);\n }\n else {\n window.history.pushState({}, \"Not found\", newUrl);\n }\n if (hashOnlyChange && oldLocation !== window.location.href) {\n window.dispatchEvent(new HashChangeEvent(\"hashchange\", {\n oldURL: oldLocation,\n newURL: window.location.href\n }));\n }\n }\n }\n this.activeState = undefined;\n this.oldPage = this.page404;\n this.activePath = '';\n await this.page404.show(this.activeState);\n }\n }\n }\n error404(state) {\n return null;\n }\n onNewPage(oldUrl, oldPage, newUrl, newPage) {\n }\n getSlugs(path) {\n return this.stateManager.getStateSlugs(path ?? this.activePath);\n }\n async canChangeState(newState) {\n return true;\n }\n async navigate(state, options) {\n if (options?.replace) {\n this.isReplace = true;\n }\n const result = await this.stateManager.setState(state);\n if (options?.replace) {\n this.isReplace = false;\n }\n return result;\n }\n bindToUrl() {\n return true;\n }\n defaultUrl() {\n return \"/\";\n }\n shouldDestroyFrame(page) {\n return Navigation.Router.destroyPage;\n }\n setFirstUrl() {\n let oldUrl = window.localStorage.getItem(\"navigation_url\");\n if (oldUrl !== null) {\n Aventus.State.activate(oldUrl, this.stateManager);\n window.localStorage.removeItem(\"navigation_url\");\n }\n else if (this.bindToUrl()) {\n Aventus.State.activate(window.location.pathname + window.location.hash, this.stateManager);\n }\n else {\n let defaultUrl = this.defaultUrl();\n if (defaultUrl) {\n Aventus.State.activate(defaultUrl, this.stateManager);\n }\n }\n }\n async init() {\n await this.register();\n this.setFirstUrl();\n if (this.bindToUrl()) {\n window.onpopstate = (e) => {\n if (window.location.pathname != this.stateManager.getState()?.name) {\n Aventus.State.activate(window.location.pathname + window.location.hash, this.stateManager);\n }\n };\n }\n this.initializing = false;\n }\n postCreation() {\n this.init();\n }\n static configure(options) {\n if (options.page404 !== undefined)\n this.page404 = options.page404;\n if (options.destroyPage !== undefined)\n this.destroyPage = options.destroyPage;\n }\n}\nNavigation.Router.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'Router', Navigation.Router);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":true},{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.Navigation.Default404","isStrong":true},{"fullName":"Aventus.Navigation.RouterOptions","isStrong":false},{"fullName":"Aventus.Navigation.RouteAsyncOption","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.ResourceLoader","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.UriParamsValue","isStrong":false}],"fullName":"Aventus.Navigation.Router","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"before":{"local":true},"after":{"local":true}}},{"code":"Toast.ToastElement = class ToastElement extends Aventus.WebComponent {\n get 'position'() { return this.getStringAttr('position') }\n set 'position'(val) { this.setStringAttr('position', val) }\nget 'delay'() { return this.getNumberAttr('delay') }\n set 'delay'(val) { this.setNumberAttr('delay', val) }\nget 'is_active'() { return this.getBoolAttr('is_active') }\n set 'is_active'(val) { this.setBoolAttr('is_active', val) }\n showAsked = false;\n onHideCallback = () => { };\n timeout = 0;\n hasTransition = false;\n waitTransitionCbs = [];\n static __style = `:host{position:absolute}:host(:not([is_active])){opacity:0;visibility:hidden}:host([position=\"bottom left\"]){bottom:0px;left:0px}:host([position=\"top left\"]){left:0;top:0}:host([position=\"bottom right\"]){bottom:0;right:0}:host([position=\"top right\"]){right:0;top:0}:host([position=top]){left:50%;top:0;transform:translateX(-50%)}:host([position=bottom]){bottom:0;left:50%;transform:translateX(-50%)}`;\n constructor() {\n super();\n this.addTransition();\n if (this.constructor == ToastElement) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return ToastElement;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ToastElement.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ToastElement\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('position')){ this['position'] = _.Toast.ToastManager.defaultPosition; }\nif(!this.hasAttribute('delay')){ this['delay'] = _.Toast.ToastManager.defaultDelay; }\nif(!this.hasAttribute('is_active')) { this.attributeChangedCallback('is_active', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('position');\nthis.__upgradeProperty('delay');\nthis.__upgradeProperty('is_active');\n }\n __listBoolProps() { return [\"is_active\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n _setOptions(options) {\n if (options.position !== undefined)\n this.position = options.position;\n if (options.delay !== undefined)\n this.delay = options.delay;\n return this.setOptions(options);\n }\n show(onHideCallback) {\n this.onHideCallback = onHideCallback;\n if (this.isReady) {\n this.is_active = true;\n this.startDelay();\n }\n else {\n this.showAsked = true;\n }\n }\n startDelay() {\n if (this.delay > 0) {\n this.timeout = setTimeout(() => {\n this.close();\n }, this.delay);\n }\n }\n async close() {\n if (this.onHideCallback) {\n this.is_active = false;\n this.onHideCallback(false);\n this.remove();\n }\n }\n addTransition() {\n this.addEventListener(\"transitionstart\", (e) => {\n this.hasTransition = true;\n });\n this.addEventListener(\"transitionend\", () => {\n this.hasTransition = false;\n let cbs = [...this.waitTransitionCbs];\n this.waitTransitionCbs = [];\n for (let cb of cbs) {\n cb();\n }\n });\n }\n waitTransition() {\n if (this.hasTransition) {\n return new Promise((resolve) => {\n this.waitTransitionCbs.push(resolve);\n });\n }\n return new Promise((resolve) => {\n resolve();\n });\n }\n postCreation() {\n if (this.showAsked) {\n this.is_active = true;\n this.startDelay();\n }\n }\n static add(options) {\n return _.Toast.ToastManager.add(options);\n }\n}\nToast.ToastElement.Namespace=`Aventus.Toast`;\n__as1(_.Toast, 'ToastElement', Toast.ToastElement);\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Toast.ToastOptions","isStrong":false},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"Aventus.Toast.ToastPosition","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}],"fullName":"Aventus.Toast.ToastElement","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Toast.ToastManager = class ToastManager extends Aventus.WebComponent {\n get 'not_main'() { return this.getBoolAttr('not_main') }\n set 'not_main'(val) { this.setBoolAttr('not_main', val) }\n static defaultToast;\n static defaultToastManager;\n static defaultPosition = 'top right';\n static defaultDelay = 5000;\n static gap = 10;\n static heightLimitPercent = 100;\n static instance;\n activeToasts = {\n top: [],\n 'top left': [],\n 'bottom left': [],\n bottom: [],\n 'bottom right': [],\n 'top right': [],\n };\n waitingToasts = {\n top: [],\n 'top left': [],\n 'bottom left': [],\n bottom: [],\n 'bottom right': [],\n 'top right': [],\n };\n get containerHeight() {\n return this.offsetHeight;\n }\n get heightLimit() {\n return this.containerHeight * Toast.ToastManager.heightLimitPercent / 100;\n }\n mutex = new Aventus.Mutex();\n static __style = `:host{--_toast-space-bottom: var(--toast-space-bottom, 20px);--_toast-space-top: var(--toast-space-top, 20px);--_toast-space-right: var(--toast-space-right, 10px);--_toast-space-left: var(--toast-space-left, 10px);--_toast-z-index: var(--toast-z-index, 70)}:host{bottom:var(--_toast-space-bottom);left:var(--_toast-space-left);overflow:visible;pointer-events:none;position:fixed;right:var(--_toast-space-right);top:var(--_toast-space-top);z-index:var(--_toast-z-index)}:host ::slotted(*){pointer-events:auto}`;\n __getStatic() {\n return ToastManager;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(ToastManager.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"ToastManager\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('not_main')) { this.attributeChangedCallback('not_main', false, false); }\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('containerHeight');\nthis.__correctGetter('heightLimit');\nthis.__upgradeProperty('not_main');\n }\n __listBoolProps() { return [\"not_main\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async add(toast) {\n await this.mutex.waitOne();\n let realToast;\n if (toast instanceof _.Toast.ToastElement) {\n realToast = toast;\n }\n else {\n if (!Toast.ToastManager.defaultToast)\n throw \"No default toast. Try ToastManager.configure()\";\n realToast = new Toast.ToastManager.defaultToast();\n await realToast._setOptions(toast);\n }\n this.appendChild(realToast);\n if (realToast.position == \"bottom\") {\n return this._notifyBottom(realToast, true);\n }\n else if (realToast.position == \"bottom left\") {\n return this._notifyBottomLeft(realToast, true);\n }\n else if (realToast.position == \"top left\") {\n return this._notifyTopLeft(realToast, true);\n }\n else if (realToast.position == \"bottom right\") {\n return this._notifyBottomRight(realToast, true);\n }\n else if (realToast.position == \"top right\") {\n return this._notifyTopRight(realToast, true);\n }\n else if (realToast.position == \"top\") {\n return this._notifyTop(realToast, true);\n }\n return false;\n }\n _calculateBottom(toast, firstTime, position) {\n return new Promise(async (resolve) => {\n let height = toast.offsetHeight;\n const _remove = (result) => {\n let index = this.activeToasts[position].indexOf(toast);\n if (index > -1) {\n this.activeToasts[position].splice(index, 1);\n }\n if (this.waitingToasts[position].length > 0) {\n let nextNotif = this.waitingToasts[position].splice(0, 1)[0];\n this._calculateBottom(nextNotif, false, position);\n }\n else {\n let bottom = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.bottom = bottom + 'px';\n bottom += notif.offsetHeight + Toast.ToastManager.gap;\n }\n }\n resolve(result);\n };\n let length = this.activeToasts[position].length;\n if (length == 0) {\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else {\n let totHeight = 0;\n for (let notif of this.activeToasts[position]) {\n await notif.waitTransition();\n totHeight += notif.offsetHeight + Toast.ToastManager.gap;\n }\n if (totHeight + height < this.heightLimit) {\n this.activeToasts[position].splice(0, 0, toast);\n let bottom = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.bottom = bottom + 'px';\n bottom += notif.offsetHeight + Toast.ToastManager.gap;\n }\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n this.mutex.release();\n });\n }\n _calculateTop(toast, firstTime, position) {\n return new Promise(async (resolve) => {\n let height = toast.offsetHeight;\n const _remove = (result) => {\n let index = this.activeToasts[position].indexOf(toast);\n if (index > -1) {\n this.activeToasts[position].splice(index, 1);\n }\n if (this.waitingToasts[position].length > 0) {\n let nextNotif = this.waitingToasts[position].splice(0, 1)[0];\n this._calculateTop(nextNotif, false, position);\n }\n else {\n let top = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.top = top + 'px';\n top += notif.offsetHeight + Toast.ToastManager.gap;\n }\n }\n resolve(result);\n };\n let length = this.activeToasts[position].length;\n if (length == 0) {\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else {\n let totHeight = 0;\n for (let notif of this.activeToasts[position]) {\n await notif.waitTransition();\n totHeight += notif.offsetHeight + Toast.ToastManager.gap;\n }\n if (totHeight + height < this.heightLimit) {\n this.activeToasts[position].splice(0, 0, toast);\n let top = 0;\n for (let i = 0; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n notif.style.top = top + 'px';\n top += notif.offsetHeight + Toast.ToastManager.gap;\n }\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n this.mutex.release();\n });\n }\n async _notifyBottomRight(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom right\");\n }\n async _notifyTopRight(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top right\");\n }\n async _notifyBottomLeft(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom left\");\n }\n async _notifyTopLeft(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top left\");\n }\n async _notifyTop(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top\");\n }\n async _notifyBottom(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom\");\n }\n postConnect() {\n super.postConnect();\n if (!Toast.ToastManager.instance && !this.not_main) {\n Toast.ToastManager.instance = this;\n }\n }\n postDisconnect() {\n if (Toast.ToastManager.instance == this) {\n Toast.ToastManager.instance = undefined;\n }\n }\n static add(toast) {\n if (!this.instance) {\n this.instance = this.defaultToastManager ? new this.defaultToastManager() : new Toast.ToastManager();\n document.body.appendChild(this.instance);\n }\n return this.instance.add(toast);\n }\n static configure(options) {\n const opts = options;\n const t = this;\n for (let key in options) {\n if (opts[key] !== undefined)\n t[key] = opts[key];\n }\n }\n}\nToast.ToastManager.Namespace=`Aventus.Toast`;\nToast.ToastManager.Tag=`av-toast-manager`;\n__as1(_.Toast, 'ToastManager', Toast.ToastManager);\nif(!window.customElements.get('av-toast-manager')){window.customElements.define('av-toast-manager', Toast.ToastManager);Aventus.WebComponentInstance.registerDefinition(Toast.ToastManager);}\n","dependencies":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":true},{"fullName":"Aventus.Toast.ToastElement","isStrong":true},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"Aventus.Toast.ToastPosition","isStrong":true},{"fullName":"Aventus.Toast.ToastOptions","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Toast.ToastManagerOptions","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false}],"fullName":"Aventus.Toast.ToastManager","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-toast-manager","slots":{"default":{"local":true}}},{"code":"let Process=class Process {\n /**\n * Static handler for processing generic errors.\n */\n static handleErrors;\n /**\n * Configures the Process utility with custom error handling.\n */\n static configure(config) {\n this.handleErrors = config.handleErrors;\n }\n static async execute(prom) {\n const queryResult = await prom;\n return await this.parseErrors(queryResult);\n }\n static async parseErrors(result) {\n if (result.errors.length > 0) {\n if (this.handleErrors) {\n let msg = result.errors.map(p => p.message.replace(/\\n/g, '<br/>')).join(\"<br/>\");\n this.handleErrors(msg, result.errors);\n }\n return undefined;\n }\n if (result instanceof Aventus.ResultWithError)\n return result.result;\n if (result instanceof Aventus.VoidWithError)\n return result.success;\n return undefined;\n }\n}\nProcess.Namespace=`Aventus`;\n__as1(_, 'Process', Process);\n","dependencies":[{"fullName":"Aventus.GenericError","isStrong":true},{"fullName":"Aventus.ProcessConfig","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.ExtractFromError","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false}],"fullName":"Aventus.Process","required":false,"type":1,"isExported":true,"convertibleName":""}],"existing":[{"fullName":"Aventus.ProcessConfig","dependencies":[{"fullName":"Aventus.GenericError","isStrong":false}]},{"fullName":"Aventus.Toast.ToastPosition","dependencies":[]},{"fullName":"Aventus.Navigation.PageConfig","dependencies":[]},{"fullName":"Aventus.Navigation.RouteAsyncOption","dependencies":[{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Modal.ModalOptions","dependencies":[]},{"fullName":"Aventus.Lib.ShortcutManagerOptions","dependencies":[]},{"fullName":"Aventus.Layout.ColOptions","dependencies":[]},{"fullName":"Aventus.Form.LastParameter","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Last","isStrong":false}]},{"fullName":"Aventus.Form.ObjectParameter","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Last","isStrong":false}]},{"fullName":"Aventus.Form.IsUnion","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"U","isStrong":false}]},{"fullName":"Aventus.Form.InternalFormPart","dependencies":[{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false}]},{"fullName":"Aventus.Form.FilterPrefix","dependencies":[{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.OmitClass","dependencies":[]},{"fullName":"Aventus.Form.WithError","dependencies":[{"fullName":"X","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false}]},{"fullName":"Aventus.Form.ExtractError","dependencies":[{"fullName":"X","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false}]},{"fullName":"Aventus.Form.Constructor","dependencies":[{"fullName":"AllowAbstract","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Toast.ToastManagerOptions","dependencies":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Toast.ToastElement","isStrong":false},{"fullName":"Aventus.Toast.ToastManager","isStrong":false},{"fullName":"Aventus.Toast.ToastPosition","isStrong":false}]},{"fullName":"Aventus.Navigation.RouterOptions","dependencies":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Form.FormValidateResult","dependencies":[{"fullName":"Aventus.Asyncable","isStrong":false}]},{"fullName":"Aventus.Form.FormValidate","dependencies":[{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.DefinedFormValue","dependencies":[{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.InternalForm","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Aventus.Form.DefinedFormValue","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidate","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidateList","dependencies":[{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Form.Validator","isStrong":false}]},{"fullName":"Aventus.Form.SubmitFunction","dependencies":[{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.FormHandlerConfig","dependencies":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"R","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false}]},{"fullName":"Aventus.Form.FormPart","dependencies":[{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.FormSchema","dependencies":[{"fullName":"Aventus.Form.OmitClass","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"K","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.MethodName","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.FilterPrefix","isStrong":false}]},{"fullName":"Aventus.Form.MethodResult","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"M","isStrong":false}]},{"fullName":"Aventus.Form.MethodNameExist","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.IsUnion","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false}]},{"fullName":"Aventus.Form.MethodBody","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Key","isStrong":false},{"fullName":"Aventus.Form.LastParameter","isStrong":false}]},{"fullName":"Aventus.Form.MethodResultParsed","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"Ctrl","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"Aventus.Form.MethodResult","isStrong":false},{"fullName":"M","isStrong":false}]},{"fullName":"Aventus.Form.FormHandlerControllerConfig","dependencies":[{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Form.MethodName","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.ObjectParameter","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Form.MethodBody","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"Key","isStrong":false},{"fullName":"Aventus.Form.MethodResultParsed","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}]},{"fullName":"Aventus.Form.IFormElement","dependencies":[{"fullName":"Aventus.Form.DefinedFormValue","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false}]},{"fullName":"Aventus.Form.IForm","dependencies":[{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.ButtonElement","isStrong":false}]},{"fullName":"Aventus.Modal.ExtractTypeModal","dependencies":[{"fullName":"Aventus.Modal.ModalElement","isStrong":false},{"fullName":"U","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.Modal.ModalOptions","isStrong":false},{"fullName":"X","isStrong":false}]},{"fullName":"Aventus.Toast.ToastOptions","dependencies":[{"fullName":"Aventus.Toast.ToastPosition","isStrong":false}]}]}
2816
3078
  //#endregion js src //
2817
3079
  //#region css def //
2818
- {"av-button-element":[],"av-form":[],"av-form-element":[],"av-img":[{"name":"--img-color"},{"name":"--img-stroke-color","chainValues":["--_img-color"],"defaultValue":"--_img-color"},{"name":"--img-fill-color","chainValues":["--_img-color"],"defaultValue":"--_img-color"},{"name":"--img-color-transition","chainValues":["none"],"defaultValue":"none"}],"av-col":[{"name":"--col-padding","chainValues":["8px"],"defaultValue":"8px"}],"av-collapse":[{"name":"--collapse-transition-duration","chainValues":["0.5s"],"defaultValue":"0.5s"},{"name":"--collapse-transition-timing-function","chainValues":["1"],"defaultValue":"1"}],"av-grid-guide-helper":[],"av-grid-helper":[],"av-row":[{"name":"--col-gap","chainValues":["0px"],"defaultValue":"0px"},{"name":"--col-gap-y","chainValues":["--_col-gap"],"defaultValue":"--_col-gap"},{"name":"--col-gap-x","chainValues":["--_col-gap"],"defaultValue":"--_col-gap"}],"av-scrollable":[{"name":"--scrollbar-container-color","chainValues":["transparent"],"defaultValue":"transparent"},{"name":"--scrollbar-color","chainValues":["#757575"],"defaultValue":"#757575"},{"name":"--scrollbar-active-color","chainValues":["#858585"],"defaultValue":"#858585"},{"name":"--scroller-width","chainValues":["6px"],"defaultValue":"6px"},{"name":"--scroller-top","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-bottom","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-right","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-left","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scrollbar-content-padding","chainValues":["0"],"defaultValue":"0"},{"name":"--scrollbar-container-display","chainValues":["inline-block"],"defaultValue":"inline-block"}],"av-tab":[],"av-tab-header":[],"av-tabs":[],"av-modal-element":[{"name":"--modal-z-index","chainValues":["60"],"defaultValue":"60"}],"av-default-404":[],"av-link":[],"av-page":[],"av-router":[],"av-router-link":[],"av-progress-circle":[{"name":"--progress-circle-back-circle-color","chainValues":[".5"],"defaultValue":".5"},{"name":"--progress-circle-percent-circle-color","chainValues":["#3b82f6"],"defaultValue":"#3b82f6"},{"name":"--progress-circle-transition","chainValues":["1"],"defaultValue":"1"}],"av-toast-element":[],"av-toast-manager":[{"name":"--toast-space-bottom","chainValues":["20px"],"defaultValue":"20px"},{"name":"--toast-space-top","chainValues":["20px"],"defaultValue":"20px"},{"name":"--toast-space-right","chainValues":["10px"],"defaultValue":"10px"},{"name":"--toast-space-left","chainValues":["10px"],"defaultValue":"10px"},{"name":"--toast-z-index","chainValues":["70"],"defaultValue":"70"}]}
3080
+ {"av-button-element":[],"av-form":[],"av-form-element":[],"av-img":[{"name":"--img-color"},{"name":"--img-stroke-color","chainValues":["--_img-color"],"defaultValue":"--_img-color"},{"name":"--img-fill-color","chainValues":["--_img-color"],"defaultValue":"--_img-color"},{"name":"--img-color-transition","chainValues":["none"],"defaultValue":"none"}],"av-advanced-scrollable":[{"name":"--scrollbar-container-color","chainValues":["transparent"],"defaultValue":"transparent"},{"name":"--scrollbar-color","chainValues":["#757575"],"defaultValue":"#757575"},{"name":"--scrollbar-active-color","chainValues":["#858585"],"defaultValue":"#858585"},{"name":"--scroller-width","chainValues":["6px"],"defaultValue":"6px"},{"name":"--scroller-top","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-bottom","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-right","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-left","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scrollbar-content-padding","chainValues":["0"],"defaultValue":"0"},{"name":"--scrollbar-container-display","chainValues":["inline-block"],"defaultValue":"inline-block"}],"av-col":[{"name":"--col-padding","chainValues":["8px"],"defaultValue":"8px"}],"av-collapse":[{"name":"--collapse-transition-duration","chainValues":["0.5s"],"defaultValue":"0.5s"},{"name":"--collapse-transition-timing-function","chainValues":["1"],"defaultValue":"1"}],"av-grid-guide-helper":[],"av-grid-helper":[],"av-row":[{"name":"--col-gap","chainValues":["0px"],"defaultValue":"0px"},{"name":"--col-gap-y","chainValues":["--_col-gap"],"defaultValue":"--_col-gap"},{"name":"--col-gap-x","chainValues":["--_col-gap"],"defaultValue":"--_col-gap"}],"av-scrollable":[{"name":"--scrollbar-container-color","chainValues":["transparent"],"defaultValue":"transparent"},{"name":"--scrollbar-color","chainValues":["#757575"],"defaultValue":"#757575"},{"name":"--scrollbar-active-color","chainValues":["#858585"],"defaultValue":"#858585"},{"name":"--scroller-width","chainValues":["6px"],"defaultValue":"6px"},{"name":"--scroller-top","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-bottom","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-right","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scroller-left","chainValues":["3px"],"defaultValue":"3px"},{"name":"--scrollbar-content-padding","chainValues":["0"],"defaultValue":"0"},{"name":"--scrollbar-container-display","chainValues":["inline-block"],"defaultValue":"inline-block"}],"av-tab":[],"av-tab-header":[],"av-tabs":[],"av-modal-element":[{"name":"--modal-z-index","chainValues":["60"],"defaultValue":"60"}],"av-default-404":[],"av-link":[],"av-page":[],"av-router":[],"av-router-link":[],"av-progress-circle":[{"name":"--progress-circle-back-circle-color","chainValues":[".5"],"defaultValue":".5"},{"name":"--progress-circle-percent-circle-color","chainValues":["#3b82f6"],"defaultValue":"#3b82f6"},{"name":"--progress-circle-transition","chainValues":["1"],"defaultValue":"1"}],"av-toast-element":[],"av-toast-manager":[{"name":"--toast-space-bottom","chainValues":["20px"],"defaultValue":"20px"},{"name":"--toast-space-top","chainValues":["20px"],"defaultValue":"20px"},{"name":"--toast-space-right","chainValues":["10px"],"defaultValue":"10px"},{"name":"--toast-space-left","chainValues":["10px"],"defaultValue":"10px"},{"name":"--toast-z-index","chainValues":["70"],"defaultValue":"70"}]}
2819
3081
  //#endregion css def //
2820
3082
  //#region css //
2821
3083
  {}
2822
3084
  //#endregion css //
2823
3085
  //#region html //
2824
- {"av-toast-manager":{"class":"Aventus.Toast.ToastManager","name":"av-toast-manager","description":"/**\r\n * A web component that manages the display, positioning, and lifecycle of toast notifications. It provides functionality for adding new toasts, configuring default behaviors, and handling toast stacking and removal.\r\n */","attributes":{"not_main":{"name":"not_main","description":"If true, this ToastManager instance will not be set as the static singleton instance.","type":"boolean","values":[]}}},"av-progress-circle":{"class":"Aventus.ProgressCircle","name":"av-progress-circle","description":"/**\r\n * Renders a circular progress indicator using SVG. It allows customization of the progress value and the thickness of the circle stroke.\r\n */","attributes":{"value":{"name":"value","description":"Represents the progress percentage (0-100). Changes to this property trigger the render() method.","type":"number","values":[]},"stroke_width":{"name":"stroke_width","description":"Defines the thickness of the progress circle's stroke. Changes to this property trigger the render() method.","type":"number","values":[]}}},"av-router-link":{"class":"Aventus.Navigation.RouterLink","name":"av-router-link","description":"/**\r\n * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an \"active\" class based on the current route/state.\r\n */","attributes":{"state":{"name":"state","description":"Specifies the internal route state path to navigate to.","type":"string","values":[]},"active_state":{"name":"active_state","description":"If set, defines a custom pattern to determine when the link should be considered \"active\", overriding the default behavior of matching state.","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"/**\r\n * Callback triggered when the active state of the link changes.\r\n */","values":[]}}},"av-link":{"class":"Aventus.Navigation.Link","name":"av-link","description":"/**\r\n * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an \"active\" class based on the current route.\r\n */","attributes":{"to":{"name":"to","description":"Specifies the internal route path to navigate to.","type":"string","values":[]},"active_pattern":{"name":"active_pattern","description":"If set, defines a custom pattern to determine when the link should be considered \"active\", overriding the default behavior of matching to.","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"/**\r\n * Callback triggered when the active state of the link changes.\r\n */","values":[]}}},"av-row":{"class":"Aventus.Layout.Row","name":"av-row","description":"/**\r\n * A fundamental building block for creating flexible and responsive layouts. It acts as a container for Col components, arranging them horizontally, and is configured to work with CSS Container Queries.\r\n */","attributes":{}},"av-collapse":{"class":"Aventus.Collapse","name":"av-collapse","description":"/**\r\n * Provides a simple web component to toggle the visibility of content, often with a collapsing/expanding animation driven by CSS.\r\n */","attributes":{"open":{"name":"open","description":"Controls the collapsed/expanded state of the component. When true, the content is visible; when false, it's hidden.","type":"boolean","values":[]},"no_animation":{"name":"no_animation","description":"When true, disables the collapsing/expanding animation.","type":"boolean","values":[]},"horizontal":{"name":"horizontal","description":"","type":"boolean","values":[]},"reverse":{"name":"reverse","description":"","type":"boolean","values":[]}}},"av-col":{"class":"Aventus.Layout.Col","name":"av-col","description":"/**\r\n * A foundational element for creating responsive grid layouts. Its behavior (sizing, offsetting, centering) is driven by CSS rules applied based on its attributes.\r\n */","attributes":{"use_container":{"name":"use_container","description":"Indicates if the column should act as a container. Can be configured globally or overridden per instance.","type":"boolean","values":[]},"size":{"name":"size","description":"Defines the column's width.","type":"number","values":[]},"size_xs":{"name":"size_xs","description":"Defines the column's width for extra small screens.","type":"number","values":[]},"size_sm":{"name":"size_sm","description":"Defines the column's width for small screens.","type":"number","values":[]},"size_md":{"name":"size_md","description":"Defines the column's width for medium screens.","type":"number","values":[]},"size_lg":{"name":"size_lg","description":"Defines the column's width for large screens.","type":"number","values":[]},"size_xl":{"name":"size_xl","description":"Defines the column's width for extra large screens.","type":"number","values":[]},"offset":{"name":"offset","description":"Defines the column's left offset.","type":"number","values":[]},"offset_xs":{"name":"offset_xs","description":"Defines the column's left offset for extra small screens.","type":"number","values":[]},"offset_sm":{"name":"offset_sm","description":"Defines the column's left offset for small screens.","type":"number","values":[]},"offset_md":{"name":"offset_md","description":"Defines the column's left offset for medium screens.","type":"number","values":[]},"offset_lg":{"name":"offset_lg","description":"Defines the column's left offset for large screens.","type":"number","values":[]},"offset_xl":{"name":"offset_xl","description":"Defines the column's left offset for extra large screens.","type":"number","values":[]},"offset_right":{"name":"offset_right","description":"Defines the column's right offset.","type":"number","values":[]},"offset_right_xs":{"name":"offset_right_xs","description":"Defines the column's right offset for extra small screens.","type":"number","values":[]},"offset_right_sm":{"name":"offset_right_sm","description":"Defines the column's right offset for small screens.","type":"number","values":[]},"offset_right_md":{"name":"offset_right_md","description":"Defines the column's right offset for medium screens.","type":"number","values":[]},"offset_right_lg":{"name":"offset_right_lg","description":"Defines the column's right offset for large screens.","type":"number","values":[]},"offset_right_xl":{"name":"offset_right_xl","description":"Defines the column's right offset for extra large screens.","type":"number","values":[]},"center":{"name":"center","description":"When true, centers the content within the column.","type":"boolean","values":[]}}},"av-img":{"class":"Aventus.Img","name":"av-img","description":"/**\r\n * A sophisticated image display component that handles responsive sizing, different content modes (stretch, contains, cover), and asynchronous loading of both raster images and SVG files. It ensures images are displayed correctly within their container, even with dynamic resizing.\r\n */","attributes":{"cache":{"name":"cache","description":"If true, the image will be loaded and cached as a base64 string.","type":"boolean","values":[]},"src":{"name":"src","description":"The URL of the image to display. Changes to this property trigger onSrcChanged().","type":"string","values":[]},"mode":{"name":"mode","description":"Determines how the image content should fit within its container. - 'stretch': Stretches the image to fill the container. - 'contains': Scales the image to fit within the container while preserving its aspect ratio. - 'cover': Scales the image to cover the entire container while preserving its aspect ratio.","type":"string","values":[{"name":"stretch","description":""},{"name":"contains","description":""},{"name":"cover","description":""}]}}},"av-form":{"class":"Aventus.Form.Form","name":"av-form","description":"/**\r\n * Core web component for managing forms, including data handling, validation, and submission. It acts as an orchestrator for child form elements and can integrate with backend API routes.\r\n */","attributes":{"form":{"name":":form","description":"/**\r\n * The injected FormHandler instance managing form data, validation, and submission logic.\r\n */","values":[]},"request":{"name":":request","description":"/**\r\n * An injected function for custom submission handling.\r\n */","values":[]},"onSubmit":{"name":"@submit","description":"/**\r\n * Callback triggered when the form is successfully submitted after validation, and no custom request function is provided.\r\n */","values":[]}}},"av-grid-helper":{"class":"Aventus.Layout.GridHelper","name":"av-grid-helper","description":"/**\r\n * Provides a comprehensive visual grid system and guide management for UI development. Features include configurable grid lines, rulers, draggable guides with magnetic snapping, and persistent storage for guide positions.\r\n */","attributes":{"show_rulers":{"name":"show_rulers","description":"Whether to display the rulers.","type":"boolean","values":[]},"show_grid":{"name":"show_grid","description":"Whether to display the grid lines.","type":"boolean","values":[]},"show_ruler":{"name":"show_ruler","description":"Whether to display the rulers.","type":"boolean","values":[]},"show_guides":{"name":"show_guides","description":"Whether to display the draggable guides.","type":"boolean","values":[]},"lock":{"name":"lock","description":"If true, guides cannot be dragged or created.","type":"boolean","values":[]},"visible":{"name":"visible","description":"Overall visibility of the GridHelper component.","type":"boolean","values":[]},"unit":{"name":"unit","description":"The unit of measurement for grid and ruler calculations. Changes update CSS variables for ruler styling.","type":"string","values":[{"name":"px","description":""},{"name":"rem","description":""},{"name":"cm","description":""},{"name":"mm","description":""},{"name":"in","description":""}]},"nb_col":{"name":"nb_col","description":"The number of columns in the grid. If 0, col_width is used.","type":"number","values":[]},"nb_row":{"name":"nb_row","description":"The number of rows in the grid. If 0, row_height is used.","type":"number","values":[]},"col_width":{"name":"col_width","description":"The width of each column. Used if nb_col is 0.","type":"number","values":[]},"row_height":{"name":"row_height","description":"The height of each row. Used if nb_row is 0.","type":"number","values":[]},"ruler_size":{"name":"ruler_size","description":"The size (thickness) of the rulers in the specified unit.","type":"number","values":[]},"step":{"name":"step","description":"The base step size for grid lines and guide snapping in the specified unit.","type":"number","values":[]},"step_big":{"name":"step_big","description":"A larger step size for major grid lines, if different from step.","type":"number","values":[]},"magnetic":{"name":"magnetic","description":"The magnetic snap distance for guides in the specified unit.","type":"number","values":[]}}},"av-grid-guide-helper":{"class":"Aventus.Layout.GridGuideHelper","name":"av-grid-guide-helper","description":"/**\r\n * Utility component for providing visual guides (like rulers or snap lines) within a grid layout. It allows users to drag these guides and snap them to a predefined grid, aiding in precise UI alignment.\r\n */","attributes":{"direction":{"name":"direction","description":"Specifies the orientation of the guide: \"x\" for vertical, \"y\" for horizontal.","type":"string","values":[{"name":"y","description":""},{"name":"x","description":""}]},"moving":{"name":"moving","description":"Indicates whether the guide is currently being dragged.","type":"boolean","values":[]}}},"av-scrollable":{"class":"Aventus.Layout.Scrollable","name":"av-scrollable","description":"/**\r\n * A highly customizable and interactive scroll container web component. It supports advanced features like zooming, pinch-to-zoom, custom scrollbars, auto-hide scrollbars, momentum scrolling, mouse-dragging for scrolling, and auto-scrolling.\r\n */","attributes":{"min_zoom":{"name":"min_zoom","description":"The minimum allowed zoom level for the content.","type":"number","values":[]},"max_zoom":{"name":"max_zoom","description":"The maximum allowed zoom level for the content.","type":"number","values":[]},"floating_scroll":{"name":"floating_scroll","description":"Determines if the custom scrollbars will be floating over the content or occupy space.","type":"boolean","values":[]},"x_scroll":{"name":"x_scroll","description":"Determines if horizontal scrolling is allowed.","type":"boolean","values":[]},"y_scroll":{"name":"y_scroll","description":"Determines if vertical scrolling is allowed.","type":"boolean","values":[]},"auto_hide":{"name":"auto_hide","description":"If true, the custom scrollers will hide when not in use and reappear on interaction.","type":"boolean","values":[]},"break":{"name":"break","description":"Controls the decay rate of momentum scrolling (value between 0 and 1).","type":"number","values":[]},"disable":{"name":"disable","description":"If true, disables all user interaction (scrolling, zooming, dragging) with the component.","type":"boolean","values":[]},"mouse_drag":{"name":"mouse_drag","description":"If true, allows scrolling by dragging with the mouse.","type":"boolean","values":[]},"pinch":{"name":"pinch","description":"If true, enables pinch-to-zoom functionality for touch devices.","type":"boolean","values":[]},"flex":{"name":"flex","description":"If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.","type":"boolean","values":[]},"zoom":{"name":"zoom","description":"Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.","type":"number","values":[]},"onScrollChange":{"name":"@scrollChange","description":"/**\r\n * Callback triggered whenever the scroll position changes.\r\n */","values":[]},"onZoomChange":{"name":"@zoomChange","description":"/**\r\n * Callback triggered whenever the zoom level changes.\r\n */","values":[]}}},"av-default-404":{"class":"Aventus.Navigation.Default404","name":"av-default-404","description":"/**\r\n * A specialized Page component intended to be displayed when a requested route or resource is not found (a \"404 Not Found\" error).\r\n */","attributes":{"visible":{"name":"visible","description":"Controls the visibility of the page. Changes to this property trigger onShow() or onHide() methods.","type":"boolean","values":[]}}}}
3086
+ {"av-toast-manager":{"class":"Aventus.Toast.ToastManager","name":"av-toast-manager","description":"/**\r\n * A web component that manages the display, positioning, and lifecycle of toast notifications. It provides functionality for adding new toasts, configuring default behaviors, and handling toast stacking and removal.\r\n */","attributes":{"not_main":{"name":"not_main","description":"If true, this ToastManager instance will not be set as the static singleton instance.","type":"boolean","values":[]}}},"av-progress-circle":{"class":"Aventus.ProgressCircle","name":"av-progress-circle","description":"/**\r\n * Renders a circular progress indicator using SVG. It allows customization of the progress value and the thickness of the circle stroke.\r\n */","attributes":{"value":{"name":"value","description":"Represents the progress percentage (0-100). Changes to this property trigger the render() method.","type":"number","values":[]},"stroke_width":{"name":"stroke_width","description":"Defines the thickness of the progress circle's stroke. Changes to this property trigger the render() method.","type":"number","values":[]}}},"av-router-link":{"class":"Aventus.Navigation.RouterLink","name":"av-router-link","description":"/**\r\n * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an \"active\" class based on the current route/state.\r\n */","attributes":{"state":{"name":"state","description":"Specifies the internal route state path to navigate to.","type":"string","values":[]},"active_state":{"name":"active_state","description":"If set, defines a custom pattern to determine when the link should be considered \"active\", overriding the default behavior of matching state.","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"/**\r\n * Callback triggered when the active state of the link changes.\r\n */","values":[]}}},"av-link":{"class":"Aventus.Navigation.Link","name":"av-link","description":"/**\r\n * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an \"active\" class based on the current route.\r\n */","attributes":{"to":{"name":"to","description":"Specifies the internal route path to navigate to.","type":"string","values":[]},"active_pattern":{"name":"active_pattern","description":"If set, defines a custom pattern to determine when the link should be considered \"active\", overriding the default behavior of matching to.","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"/**\r\n * Callback triggered when the active state of the link changes.\r\n */","values":[]}}},"av-scrollable":{"class":"Aventus.Layout.Scrollable","name":"av-scrollable","description":"","attributes":{"floating_scroll":{"name":"floating_scroll","description":"Determines if the custom scrollbars will be floating over the content or occupy space.","type":"boolean","values":[]},"x_scroll":{"name":"x_scroll","description":"Determines if horizontal scrolling is allowed.","type":"boolean","values":[]},"y_scroll":{"name":"y_scroll","description":"Determines if vertical scrolling is allowed.","type":"boolean","values":[]},"auto_hide":{"name":"auto_hide","description":"If true, the custom scrollers will hide when not in use and reappear on interaction.","type":"boolean","values":[]},"disable":{"name":"disable","description":"If true, disables all user interaction (scrolling, zooming, dragging) with the component.","type":"boolean","values":[]},"mouse_drag":{"name":"mouse_drag","description":"If true, allows scrolling by dragging with the mouse.","type":"boolean","values":[]},"flex":{"name":"flex","description":"If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.","type":"boolean","values":[]},"zoom":{"name":"zoom","description":"Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.","type":"number","values":[]},"onScrollChange":{"name":"@scrollChange","description":"/**\r\n * Callback triggered whenever the scroll position changes.\r\n */","values":[]},"onZoomChange":{"name":"@zoomChange","description":"/**\r\n * Callback triggered whenever the zoom level changes.\r\n */","values":[]}}},"av-row":{"class":"Aventus.Layout.Row","name":"av-row","description":"/**\r\n * A fundamental building block for creating flexible and responsive layouts. It acts as a container for Col components, arranging them horizontally, and is configured to work with CSS Container Queries.\r\n */","attributes":{}},"av-collapse":{"class":"Aventus.Collapse","name":"av-collapse","description":"/**\r\n * Provides a simple web component to toggle the visibility of content, often with a collapsing/expanding animation driven by CSS.\r\n */","attributes":{"open":{"name":"open","description":"Controls the collapsed/expanded state of the component. When true, the content is visible; when false, it's hidden.","type":"boolean","values":[]},"no_animation":{"name":"no_animation","description":"When true, disables the collapsing/expanding animation.","type":"boolean","values":[]},"horizontal":{"name":"horizontal","description":"","type":"boolean","values":[]},"reverse":{"name":"reverse","description":"","type":"boolean","values":[]}}},"av-col":{"class":"Aventus.Layout.Col","name":"av-col","description":"/**\r\n * A foundational element for creating responsive grid layouts. Its behavior (sizing, offsetting, centering) is driven by CSS rules applied based on its attributes.\r\n */","attributes":{"use_container":{"name":"use_container","description":"Indicates if the column should act as a container. Can be configured globally or overridden per instance.","type":"boolean","values":[]},"size":{"name":"size","description":"Defines the column's width.","type":"number","values":[]},"size_xs":{"name":"size_xs","description":"Defines the column's width for extra small screens.","type":"number","values":[]},"size_sm":{"name":"size_sm","description":"Defines the column's width for small screens.","type":"number","values":[]},"size_md":{"name":"size_md","description":"Defines the column's width for medium screens.","type":"number","values":[]},"size_lg":{"name":"size_lg","description":"Defines the column's width for large screens.","type":"number","values":[]},"size_xl":{"name":"size_xl","description":"Defines the column's width for extra large screens.","type":"number","values":[]},"offset":{"name":"offset","description":"Defines the column's left offset.","type":"number","values":[]},"offset_xs":{"name":"offset_xs","description":"Defines the column's left offset for extra small screens.","type":"number","values":[]},"offset_sm":{"name":"offset_sm","description":"Defines the column's left offset for small screens.","type":"number","values":[]},"offset_md":{"name":"offset_md","description":"Defines the column's left offset for medium screens.","type":"number","values":[]},"offset_lg":{"name":"offset_lg","description":"Defines the column's left offset for large screens.","type":"number","values":[]},"offset_xl":{"name":"offset_xl","description":"Defines the column's left offset for extra large screens.","type":"number","values":[]},"offset_right":{"name":"offset_right","description":"Defines the column's right offset.","type":"number","values":[]},"offset_right_xs":{"name":"offset_right_xs","description":"Defines the column's right offset for extra small screens.","type":"number","values":[]},"offset_right_sm":{"name":"offset_right_sm","description":"Defines the column's right offset for small screens.","type":"number","values":[]},"offset_right_md":{"name":"offset_right_md","description":"Defines the column's right offset for medium screens.","type":"number","values":[]},"offset_right_lg":{"name":"offset_right_lg","description":"Defines the column's right offset for large screens.","type":"number","values":[]},"offset_right_xl":{"name":"offset_right_xl","description":"Defines the column's right offset for extra large screens.","type":"number","values":[]},"center":{"name":"center","description":"When true, centers the content within the column.","type":"boolean","values":[]}}},"av-img":{"class":"Aventus.Img","name":"av-img","description":"/**\r\n * A sophisticated image display component that handles responsive sizing, different content modes (stretch, contains, cover), and asynchronous loading of both raster images and SVG files. It ensures images are displayed correctly within their container, even with dynamic resizing.\r\n */","attributes":{"cache":{"name":"cache","description":"If true, the image will be loaded and cached as a base64 string.","type":"boolean","values":[]},"src":{"name":"src","description":"The URL of the image to display. Changes to this property trigger onSrcChanged().","type":"string","values":[]},"mode":{"name":"mode","description":"Determines how the image content should fit within its container. - 'stretch': Stretches the image to fill the container. - 'contains': Scales the image to fit within the container while preserving its aspect ratio. - 'cover': Scales the image to cover the entire container while preserving its aspect ratio.","type":"string","values":[{"name":"stretch","description":""},{"name":"contains","description":""},{"name":"cover","description":""}]}}},"av-form":{"class":"Aventus.Form.Form","name":"av-form","description":"/**\r\n * Core web component for managing forms, including data handling, validation, and submission. It acts as an orchestrator for child form elements and can integrate with backend API routes.\r\n */","attributes":{"form":{"name":":form","description":"/**\r\n * The injected FormHandler instance managing form data, validation, and submission logic.\r\n */","values":[]},"request":{"name":":request","description":"/**\r\n * An injected function for custom submission handling.\r\n */","values":[]},"onSubmit":{"name":"@submit","description":"/**\r\n * Callback triggered when the form is successfully submitted after validation, and no custom request function is provided.\r\n */","values":[]}}},"av-advanced-scrollable":{"class":"Aventus.Layout.AdvancedScrollable","name":"av-advanced-scrollable","description":"/**\r\n * A highly customizable and interactive scroll container web component. It supports advanced features like zooming, pinch-to-zoom, custom scrollbars, auto-hide scrollbars, momentum scrolling, mouse-dragging for scrolling, and auto-scrolling.\r\n */","attributes":{"min_zoom":{"name":"min_zoom","description":"The minimum allowed zoom level for the content.","type":"number","values":[]},"max_zoom":{"name":"max_zoom","description":"The maximum allowed zoom level for the content.","type":"number","values":[]},"floating_scroll":{"name":"floating_scroll","description":"Determines if the custom scrollbars will be floating over the content or occupy space.","type":"boolean","values":[]},"x_scroll":{"name":"x_scroll","description":"Determines if horizontal scrolling is allowed.","type":"boolean","values":[]},"y_scroll":{"name":"y_scroll","description":"Determines if vertical scrolling is allowed.","type":"boolean","values":[]},"auto_hide":{"name":"auto_hide","description":"If true, the custom scrollers will hide when not in use and reappear on interaction.","type":"boolean","values":[]},"break":{"name":"break","description":"Controls the decay rate of momentum scrolling (value between 0 and 1).","type":"number","values":[]},"disable":{"name":"disable","description":"If true, disables all user interaction (scrolling, zooming, dragging) with the component.","type":"boolean","values":[]},"mouse_drag":{"name":"mouse_drag","description":"If true, allows scrolling by dragging with the mouse.","type":"boolean","values":[]},"pinch":{"name":"pinch","description":"If true, enables pinch-to-zoom functionality for touch devices.","type":"boolean","values":[]},"flex":{"name":"flex","description":"If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.","type":"boolean","values":[]},"zoom":{"name":"zoom","description":"Sets the zoom level to apply to the container's content. Changes trigger a recalculation of dimensions and transformations.","type":"number","values":[]},"onScrollChange":{"name":"@scrollChange","description":"/**\r\n * Callback triggered whenever the scroll position changes.\r\n */","values":[]},"onZoomChange":{"name":"@zoomChange","description":"/**\r\n * Callback triggered whenever the zoom level changes.\r\n */","values":[]}}},"av-grid-helper":{"class":"Aventus.Layout.GridHelper","name":"av-grid-helper","description":"/**\r\n * Provides a comprehensive visual grid system and guide management for UI development. Features include configurable grid lines, rulers, draggable guides with magnetic snapping, and persistent storage for guide positions.\r\n */","attributes":{"show_rulers":{"name":"show_rulers","description":"Whether to display the rulers.","type":"boolean","values":[]},"show_grid":{"name":"show_grid","description":"Whether to display the grid lines.","type":"boolean","values":[]},"show_ruler":{"name":"show_ruler","description":"Whether to display the rulers.","type":"boolean","values":[]},"show_guides":{"name":"show_guides","description":"Whether to display the draggable guides.","type":"boolean","values":[]},"lock":{"name":"lock","description":"If true, guides cannot be dragged or created.","type":"boolean","values":[]},"visible":{"name":"visible","description":"Overall visibility of the GridHelper component.","type":"boolean","values":[]},"unit":{"name":"unit","description":"The unit of measurement for grid and ruler calculations. Changes update CSS variables for ruler styling.","type":"string","values":[{"name":"px","description":""},{"name":"rem","description":""},{"name":"cm","description":""},{"name":"mm","description":""},{"name":"in","description":""}]},"nb_col":{"name":"nb_col","description":"The number of columns in the grid. If 0, col_width is used.","type":"number","values":[]},"nb_row":{"name":"nb_row","description":"The number of rows in the grid. If 0, row_height is used.","type":"number","values":[]},"col_width":{"name":"col_width","description":"The width of each column. Used if nb_col is 0.","type":"number","values":[]},"row_height":{"name":"row_height","description":"The height of each row. Used if nb_row is 0.","type":"number","values":[]},"ruler_size":{"name":"ruler_size","description":"The size (thickness) of the rulers in the specified unit.","type":"number","values":[]},"step":{"name":"step","description":"The base step size for grid lines and guide snapping in the specified unit.","type":"number","values":[]},"step_big":{"name":"step_big","description":"A larger step size for major grid lines, if different from step.","type":"number","values":[]},"magnetic":{"name":"magnetic","description":"The magnetic snap distance for guides in the specified unit.","type":"number","values":[]}}},"av-grid-guide-helper":{"class":"Aventus.Layout.GridGuideHelper","name":"av-grid-guide-helper","description":"/**\r\n * Utility component for providing visual guides (like rulers or snap lines) within a grid layout. It allows users to drag these guides and snap them to a predefined grid, aiding in precise UI alignment.\r\n */","attributes":{"direction":{"name":"direction","description":"Specifies the orientation of the guide: \"x\" for vertical, \"y\" for horizontal.","type":"string","values":[{"name":"y","description":""},{"name":"x","description":""}]},"moving":{"name":"moving","description":"Indicates whether the guide is currently being dragged.","type":"boolean","values":[]}}},"av-default-404":{"class":"Aventus.Navigation.Default404","name":"av-default-404","description":"/**\r\n * A specialized Page component intended to be displayed when a requested route or resource is not found (a \"404 Not Found\" error).\r\n */","attributes":{"visible":{"name":"visible","description":"Controls the visibility of the page. Changes to this property trigger onShow() or onHide() methods.","type":"boolean","values":[]}}}}
2825
3087
  //#endregion html //
2826
3088
  //#region dependencies //
2827
3089
  {}