@aventusjs/cli 0.0.13 → 0.0.14

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.
Files changed (74) hide show
  1. package/lib/Aventus@I18n.package.avt +61 -0
  2. package/lib/Aventus@Main.package.avt +2019 -1895
  3. package/lib/Aventus@Php.package.avt +455 -0
  4. package/lib/Aventus@Sharp.package.avt +679 -631
  5. package/lib/Aventus@UI.package.avt +1127 -412
  6. package/lib/emmet/aventus.json +7 -0
  7. package/lib/templateScript/AventusTemplate.d.ts +118 -0
  8. package/lib/templateScript/AventusTemplate.ts +420 -0
  9. package/out/705.RealServer.js +27 -0
  10. package/out/RealInteraction.js +1 -1
  11. package/out/RealServer.js +223 -261
  12. package/out/cli.js +1 -1
  13. package/package.json +1 -1
  14. package/lib/bin/CSharpToTypescript/AventusSharp.dll +0 -0
  15. package/lib/bin/CSharpToTypescript/AventusSharp.pdb +0 -0
  16. package/lib/bin/CSharpToTypescript/AventusSharp.xml +0 -2151
  17. package/lib/bin/CSharpToTypescript/BouncyCastle.Cryptography.dll +0 -0
  18. package/lib/bin/CSharpToTypescript/CSharpToTypescript.deps.json +0 -885
  19. package/lib/bin/CSharpToTypescript/CSharpToTypescript.dll +0 -0
  20. package/lib/bin/CSharpToTypescript/CSharpToTypescript.dll.config +0 -707
  21. package/lib/bin/CSharpToTypescript/CSharpToTypescript.exe +0 -0
  22. package/lib/bin/CSharpToTypescript/CSharpToTypescript.pdb +0 -0
  23. package/lib/bin/CSharpToTypescript/CSharpToTypescript.runtimeconfig.json +0 -19
  24. package/lib/bin/CSharpToTypescript/Google.Protobuf.dll +0 -0
  25. package/lib/bin/CSharpToTypescript/HttpMultipartParser.dll +0 -0
  26. package/lib/bin/CSharpToTypescript/Humanizer.dll +0 -0
  27. package/lib/bin/CSharpToTypescript/K4os.Compression.LZ4.Streams.dll +0 -0
  28. package/lib/bin/CSharpToTypescript/K4os.Compression.LZ4.dll +0 -0
  29. package/lib/bin/CSharpToTypescript/K4os.Hash.xxHash.dll +0 -0
  30. package/lib/bin/CSharpToTypescript/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  31. package/lib/bin/CSharpToTypescript/Microsoft.Build.Locator.dll +0 -0
  32. package/lib/bin/CSharpToTypescript/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  33. package/lib/bin/CSharpToTypescript/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  34. package/lib/bin/CSharpToTypescript/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll +0 -0
  35. package/lib/bin/CSharpToTypescript/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  36. package/lib/bin/CSharpToTypescript/Microsoft.CodeAnalysis.dll +0 -0
  37. package/lib/bin/CSharpToTypescript/Microsoft.IO.RecyclableMemoryStream.dll +0 -0
  38. package/lib/bin/CSharpToTypescript/Microsoft.Win32.SystemEvents.dll +0 -0
  39. package/lib/bin/CSharpToTypescript/MySql.Data.dll +0 -0
  40. package/lib/bin/CSharpToTypescript/Newtonsoft.Json.dll +0 -0
  41. package/lib/bin/CSharpToTypescript/Scriban.dll +0 -0
  42. package/lib/bin/CSharpToTypescript/System.Collections.Immutable.dll +0 -0
  43. package/lib/bin/CSharpToTypescript/System.Composition.AttributedModel.dll +0 -0
  44. package/lib/bin/CSharpToTypescript/System.Composition.Convention.dll +0 -0
  45. package/lib/bin/CSharpToTypescript/System.Composition.Hosting.dll +0 -0
  46. package/lib/bin/CSharpToTypescript/System.Composition.Runtime.dll +0 -0
  47. package/lib/bin/CSharpToTypescript/System.Composition.TypedParts.dll +0 -0
  48. package/lib/bin/CSharpToTypescript/System.Configuration.ConfigurationManager.dll +0 -0
  49. package/lib/bin/CSharpToTypescript/System.Drawing.Common.dll +0 -0
  50. package/lib/bin/CSharpToTypescript/System.IO.Pipelines.dll +0 -0
  51. package/lib/bin/CSharpToTypescript/System.Reflection.Metadata.dll +0 -0
  52. package/lib/bin/CSharpToTypescript/System.Security.Cryptography.ProtectedData.dll +0 -0
  53. package/lib/bin/CSharpToTypescript/System.Security.Permissions.dll +0 -0
  54. package/lib/bin/CSharpToTypescript/System.Text.Encoding.CodePages.dll +0 -0
  55. package/lib/bin/CSharpToTypescript/System.Text.Encodings.Web.dll +0 -0
  56. package/lib/bin/CSharpToTypescript/System.Text.Json.dll +0 -0
  57. package/lib/bin/CSharpToTypescript/System.Threading.Channels.dll +0 -0
  58. package/lib/bin/CSharpToTypescript/System.Windows.Extensions.dll +0 -0
  59. package/lib/bin/CSharpToTypescript/ZstdSharp.dll +0 -0
  60. package/lib/bin/CSharpToTypescript/package.json +0 -6
  61. package/lib/bin/CSharpToTypescript/runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll +0 -0
  62. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll +0 -0
  63. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net6.0/System.Drawing.Common.dll +0 -0
  64. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net6.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  65. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net6.0/System.Text.Encoding.CodePages.dll +0 -0
  66. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net6.0/System.Windows.Extensions.dll +0 -0
  67. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net7.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  68. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net7.0/System.Windows.Extensions.dll +0 -0
  69. package/lib/bin/CSharpToTypescript/runtimes/win/lib/net8.0/Microsoft.Win32.SystemEvents.dll +0 -0
  70. package/lib/bin/CSharpToTypescript/runtimes/win-x64/native/comerr64.dll +0 -0
  71. package/lib/bin/CSharpToTypescript/runtimes/win-x64/native/gssapi64.dll +0 -0
  72. package/lib/bin/CSharpToTypescript/runtimes/win-x64/native/k5sprt64.dll +0 -0
  73. package/lib/bin/CSharpToTypescript/runtimes/win-x64/native/krb5_64.dll +0 -0
  74. package/lib/bin/CSharpToTypescript/runtimes/win-x64/native/krbcc64.dll +0 -0
@@ -1,534 +1,1249 @@
1
- // Aventus@UI:1.0.0
1
+ // Aventus@UI:1.0.1
2
+ // npm:@aventusjs/ui
2
3
  //#region js def //
3
4
  declare global {
4
-
5
+
5
6
  namespace Aventus{
6
- class ProgressCircle extends Aventus.WebComponent implements Aventus.DefaultComponent {
7
+ type ProcessConfig = {
8
+ handleErrors: (msg: string, errors: Aventus.GenericError[]) => void;
9
+ };
10
+
11
+ namespace Toast {
12
+ type ToastPosition = 'bottom' | 'top' | 'bottom left' | 'top left' | 'bottom right' | 'top right';
13
+ }
14
+
15
+ class ProgressCircle extends Aventus.WebComponent implements Aventus.DefaultComponent {
7
16
  @Property((target: ProgressCircle) => {
8
17
  target.render();
9
18
  })
10
- value: number;
19
+ value: number;
11
20
  @Property((target: ProgressCircle) => {
12
21
  target.render();
13
22
  })
14
- stroke_width: number;
23
+ stroke_width: number;
15
24
  @ViewElement()
16
- protected containerEl: HTMLDivElement;
17
- private svg?;
18
- private backCircle?;
19
- private percentCircle?;
20
- private getLimitedValue;
21
- protected render(): void;
22
- protected postCreation(): void;
23
- }
24
-
25
- class RouterStateManager extends Aventus.StateManager {
26
- static getInstance(): RouterStateManager;
27
- }
25
+ protected containerEl: HTMLDivElement;
26
+ private svg?;
27
+ private backCircle?;
28
+ private percentCircle?;
29
+ private getLimitedValue;
30
+ protected render(): void;
31
+ protected postCreation(): void;
32
+ }
28
33
 
29
34
  namespace Navigation {
30
- class RouterLink extends Aventus.WebComponent implements Aventus.DefaultComponent {
31
- @Attribute()
32
- state?: string;
33
- /**
34
- * If set define when active class is added otherwhise class active is added when state define is active
35
- */
36
- @Attribute()
37
- active_state?: string;
38
- onActiveChange: Aventus.Callback<(isActive: boolean) => void>;
39
- protected addClickEvent(): void;
40
- protected registerActiveStateListener(): void;
41
- protected postCreation(): void;
42
- }
35
+ type LastParameter<T extends any> = T extends (...args: any) => any ? Last<Parameters<T>> : never;
43
36
  }
44
37
 
45
- namespace Navigation {
46
- type RouteAsyncOption = {
47
- route: string;
48
- scriptUrl: string;
49
- render: () => new () => Navigation.Page;
50
- };
51
- }
52
-
53
- class Tracker {
54
- private readonly velocityMultiplier;
55
- updateTime: number;
56
- delta: {
57
- x: number;
58
- y: number;
59
- };
60
- velocity: {
61
- x: number;
62
- y: number;
63
- };
64
- lastPosition: {
65
- x: number;
66
- y: number;
67
- };
68
- constructor(touch: Touch);
69
- update(touch: Touch): void;
70
- private getPointerData;
71
- private getPosition;
72
- }
38
+ namespace Modal {
39
+ interface ModalOptions<T = any> {
40
+ closeWithEsc?: boolean;
41
+ closeWithClick?: boolean;
42
+ rejectValue?: T | null;
43
+ }
44
+ }
45
+
46
+ class Tracker {
47
+ private readonly velocityMultiplier;
48
+ updateTime: number;
49
+ delta: {
50
+ x: number;
51
+ y: number;
52
+ };
53
+ velocity: {
54
+ x: number;
55
+ y: number;
56
+ };
57
+ lastPosition: {
58
+ x: number;
59
+ y: number;
60
+ };
61
+ constructor(touch: Touch | PointerEvent | MouseEvent);
62
+ update(touch: Touch | PointerEvent | MouseEvent): void;
63
+ private getPointerData;
64
+ private getPosition;
65
+ }
73
66
 
74
67
  namespace Layout {
75
- class GridCol extends Aventus.WebComponent implements Aventus.DefaultComponent {
76
- @Attribute()
77
- column?: string;
78
- @Attribute()
79
- row?: string;
68
+ class Row extends Aventus.WebComponent implements Aventus.DefaultComponent {
69
+ constructor();
70
+ }
71
+ }
72
+
73
+ namespace Lib {
74
+ enum SpecialTouch {
75
+ Backspace = 0,
76
+ Insert = 1,
77
+ End = 2,
78
+ PageDown = 3,
79
+ PageUp = 4,
80
+ Escape = 5,
81
+ AltGraph = 6,
82
+ Control = 7,
83
+ Alt = 8,
84
+ Shift = 9,
85
+ CapsLock = 10,
86
+ Tab = 11,
87
+ Delete = 12,
88
+ ArrowRight = 13,
89
+ ArrowLeft = 14,
90
+ ArrowUp = 15,
91
+ ArrowDown = 16,
92
+ Enter = 17
93
+ }
94
+ }
95
+
96
+ namespace Lib {
97
+ interface ShortcutManagerOptions {
98
+ replaceTemp?: boolean;
99
+ preventDefault?: boolean;
100
+ }
101
+ }
102
+
103
+ class Collapse extends Aventus.WebComponent implements Aventus.DefaultComponent {
80
104
  @Attribute()
81
- private c_start;
105
+ open: boolean;
82
106
  @Attribute()
83
- private c_end;
84
- }
107
+ no_animation: boolean;
108
+ /**
109
+ *
110
+ */
111
+ protected transitionEnd(e: Event): void;
112
+ /**
113
+ *
114
+ */
115
+ protected toggleOpen(): void;
85
116
  }
86
117
 
87
118
  namespace Layout {
88
- class Grid extends Aventus.WebComponent implements Aventus.DefaultComponent {
89
- @Property()
90
- cols: number;
91
- }
119
+ interface ColOptions {
120
+ use_container?: boolean;
92
121
  }
93
-
94
- namespace Layout {
95
- class DynamicRow extends Aventus.WebComponent implements Aventus.DefaultComponent {
96
- @Attribute()
97
- max_width?: string;
98
- private sizes;
99
- private calculateWidth;
100
- protected postCreation(): void;
101
- }
102
122
  }
103
123
 
104
124
  namespace Layout {
105
- class DynamicCol extends Aventus.WebComponent implements Aventus.DefaultComponent {
125
+ class Col extends Aventus.WebComponent implements Aventus.DefaultComponent {
106
126
  @Attribute()
107
- size: number;
127
+ private static use_container;
128
+ static configure(options: Layout.ColOptions): void;
108
129
  @Attribute()
109
- size_xs: number;
130
+ use_container: boolean;
110
131
  @Attribute()
111
- size_sm: number;
132
+ size: number;
112
133
  @Attribute()
113
- size_md: number;
134
+ size_xs: number;
114
135
  @Attribute()
115
- size_lg: number;
136
+ size_sm: number;
116
137
  @Attribute()
117
- size_xl: number;
138
+ size_md: number;
118
139
  @Attribute()
119
- offset: number;
140
+ size_lg: number;
120
141
  @Attribute()
121
- offset_xs: number;
142
+ size_xl: number;
122
143
  @Attribute()
123
- offset_sm: number;
144
+ offset: number;
124
145
  @Attribute()
125
- offset_md: number;
146
+ offset_xs: number;
126
147
  @Attribute()
127
- offset_lg: number;
148
+ offset_sm: number;
128
149
  @Attribute()
129
- offset_xl: number;
150
+ offset_md: number;
130
151
  @Attribute()
131
- offset_right: number;
152
+ offset_lg: number;
132
153
  @Attribute()
133
- offset_right_xs: number;
154
+ offset_xl: number;
134
155
  @Attribute()
135
- offset_right_sm: number;
156
+ offset_right: number;
136
157
  @Attribute()
137
- offset_right_md: number;
158
+ offset_right_xs: number;
138
159
  @Attribute()
139
- offset_right_lg: number;
160
+ offset_right_sm: number;
140
161
  @Attribute()
141
- offset_right_xl: number;
162
+ offset_right_md: number;
142
163
  @Attribute()
143
- nobreak: boolean;
144
- @Attribute()
145
- center: boolean;
146
- }
147
- }
148
-
149
- class Collapse extends Aventus.WebComponent implements Aventus.DefaultComponent {
164
+ offset_right_lg: number;
150
165
  @Attribute()
151
- open: boolean;
166
+ offset_right_xl: number;
152
167
  @Attribute()
153
- no_animation: boolean;
154
- /**
155
- *
156
- */
157
- protected transitionEnd(e: Event): void;
158
- /**
159
- *
160
- */
161
- protected toggleOpen(): void;
162
- }
168
+ center: boolean;
169
+ }
170
+ }
163
171
 
164
- class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
172
+ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
165
173
  @Attribute()
166
- cache: boolean;
174
+ cache: boolean;
167
175
  @Property((target: Img) => {
168
176
  target.onSrcChanged();
169
177
  })
170
- src?: string;
178
+ src?: string;
171
179
  @Property((target: Img) => {
172
180
  if(target.src != "") {
173
181
  target.calculateSize();
174
182
  }
175
183
  })
176
- mode: 'stretch' | 'contains' | 'cover';
184
+ mode: 'stretch' | 'contains' | 'cover';
177
185
  @ViewElement()
178
- protected imgEl: HTMLImageElement;
186
+ protected imgEl: HTMLImageElement;
179
187
  @ViewElement()
180
- protected svgEl: HTMLDivElement;
181
- private isCalculing?;
182
- private maxCalculateSize;
183
- private ratio;
184
- private resizeObserver?;
185
- private calculateSize;
186
- private onSrcChanged;
187
- protected postDestruction(): void;
188
- protected postCreation(): void;
189
- }
188
+ protected svgEl: HTMLDivElement;
189
+ private isCalculing?;
190
+ private maxCalculateSize;
191
+ private ratio;
192
+ private resizeObserver?;
193
+ private calculateSize;
194
+ private onSrcChanged;
195
+ protected postDestruction(): void;
196
+ protected postCreation(): void;
197
+ }
190
198
 
191
199
  namespace Form {
192
- class Form extends Aventus.WebComponent implements Aventus.DefaultComponent {
193
- }
194
- }
195
-
196
- namespace form {
197
- interface FormElement<T> extends Aventus.DefaultComponent {
198
- /**
199
- * The current value of the form element
200
- */
201
- value: T;
202
- /**
203
- * Validate if the form element is correct or not
204
- */
205
- validate(): boolean;
206
- /**
207
- * Add listener to be triggered when value changed
208
- */
209
- onChange: Aventus.Callback<(value: T) => void>;
210
- }
200
+ function isSubclassOf(subClass: Function, superClass: Function): boolean;
211
201
  }
212
202
 
213
203
  namespace Form {
214
- class Input extends Aventus.WebComponent implements Aventus.DefaultComponent, form.FormElement<string> {
215
- /**
216
- * @inheritdoc
217
- */
218
- @Property((target: Input) => {
219
- target.onAttrChange();
204
+ type ExtractError<X> = [X] extends [Aventus.ResultWithError<infer Y>] ? Y : [X] extends [Aventus.VoidWithError] ? void : X;
205
+ }
206
+
207
+ namespace Navigation {
208
+ type PageFormConfig = {
209
+ submitWithEnter?: boolean;
210
+ autoLoading?: boolean;
211
+ };
212
+ }
213
+
214
+ namespace Navigation {
215
+ abstract class Page extends Aventus.WebComponent implements Aventus.DefaultComponent {
216
+
217
+ @Property((target: Page) => {
218
+ if(target.visible) {
219
+ target.onShow();
220
+ }
221
+ else {
222
+ target.onHide();
223
+ }
220
224
  })
221
- value: string;
222
- /**
223
- *
224
- */
225
- @Property()
226
- label: string;
227
- /**
228
- * Determine if the field is required
229
- */
230
- @Attribute()
231
- required: boolean;
232
- /**
233
- * Determine if the fields is disabled
234
- */
225
+ visible: boolean;
226
+ router?: Navigation.Router;
227
+ protected state?: Aventus.State;
228
+ abstract configure(): Aventus.Asyncable<Navigation.Page.PageConfig>;
229
+ show(state?: Aventus.State): any;
230
+ hide(): any;
231
+ onShow(): void;
232
+ onHide(): void;
233
+ /**
234
+ * Add custom check
235
+ * Return true if evrything is ok
236
+ * False will prevent showing
237
+ * string or state will redirect to the page
238
+ */
239
+ isAllowed(state: Aventus.State, pattern: string, router: Navigation.Router): Aventus.Asyncable<boolean | Aventus.State | string>;
240
+ /**
241
+ * Add function to load data
242
+ * Return true if evrything is ok
243
+ * False will prevent showing
244
+ * string or state will redirect to the page
245
+ */
246
+ loadData(state: Aventus.State): Aventus.Asyncable<boolean | Aventus.State | string>;
247
+ }
248
+ }
249
+
250
+ namespace Navigation.Page {
251
+ interface PageConfig {
252
+ title?: string;
253
+ description?: string;
254
+ keywords?: string[];
255
+ destroy?: boolean;
256
+ }
257
+ }
258
+
259
+ namespace Form {
260
+ interface InternalFormPart<T = any> {
261
+ /**
262
+ * The value of the form part, which can be of type T or an object with get and set methods.
263
+ */
264
+ value: {
265
+ get: () => T;
266
+ set: (value: T | undefined) => void;
267
+ };
268
+ /**
269
+ * A validation function for the form part.
270
+ */
271
+ validate?: Form.FormPartValidate<T>;
272
+ /**
273
+ * Indicates whether validation should be performed on value change.
274
+ */
275
+ validateOnChange?: boolean;
276
+ onValueChange: Aventus.Callback<() => void>;
277
+ onValidation: Aventus.Callback<(errors: string[]) => Promise<string[]>, Promise<string[]>>;
278
+ register: (element: Form.IFormElement) => void;
279
+ unregister: (element: Form.IFormElement) => void;
280
+ test: () => Promise<boolean>;
281
+ handler: Form.FormHandler<any>;
282
+ }
283
+ }
284
+
285
+ class RouterStateManager extends Aventus.StateManager {
286
+ static getInstance(): RouterStateManager;
287
+ }
288
+
289
+ namespace Navigation {
290
+ @Deprecated()
291
+ class RouterLink extends Aventus.WebComponent implements Aventus.DefaultComponent {
235
292
  @Attribute()
236
- disabled: boolean;
293
+ state?: string;
294
+ /**
295
+ * If set define when active class is added otherwhise class active is added when state define is active
296
+ */
237
297
  @Attribute()
238
- min_length: number;
298
+ active_state?: string;
299
+ onActiveChange: Aventus.Callback<(isActive: boolean) => void>;
300
+ protected addClickEvent(): void;
301
+ protected registerActiveStateListener(): void;
302
+ protected prevent(e: Event): void;
303
+ protected postCreation(): void;
304
+ private __ad88894dc7dea62195d227cdd21fc210method0;
305
+ }
306
+ }
307
+
308
+ namespace Navigation {
309
+ class Link extends Aventus.WebComponent implements Aventus.DefaultComponent {
239
310
  @Attribute()
240
- max_length: number;
311
+ to?: string;
312
+ /**
313
+ * If set define when active class is added otherwhise class active is added when to define is active
314
+ */
241
315
  @Attribute()
242
- pattern?: string;
316
+ active_pattern?: string;
317
+ onActiveChange: Aventus.Callback<(isActive: boolean) => void>;
318
+ protected addClickEvent(): void;
319
+ protected registerActivetoListener(): void;
320
+ protected prevent(e: Event): void;
321
+ protected postCreation(): void;
322
+ private __7e4c6c9fe944acd9b1174c61347fdcb6method0;
323
+ }
324
+ }
325
+
326
+ namespace Navigation {
327
+ type RouteAsyncOption = {
328
+ route: string;
329
+ scriptUrl: string;
330
+ render: () => new () => Navigation.Page;
331
+ };
332
+ }
333
+
334
+ namespace Form {
335
+ type WithError<X> = [X] extends [void] ? Aventus.VoidWithError : Aventus.ResultWithError<X>;
336
+ }
337
+
338
+ namespace Form {
339
+ type InternalForm<T> = {
340
+ [K in keyof T]?: Form.InternalFormPart<T[K]>;
341
+ };
342
+ }
343
+
344
+ namespace Form {
345
+ type Constructor<T, AllowAbstract extends boolean = false> = AllowAbstract extends false ? new (...args: any[]) => T : abstract new (...args: any[]) => T;
346
+ }
347
+
348
+ namespace Toast {
349
+ type ToastManagerOptions = {
350
+ defaultToast: Form.Constructor<Toast.ToastElement>;
351
+ defaultToastManager: Form.Constructor<Toast.ToastManager>;
352
+ defaultPosition: Toast.ToastPosition;
353
+ defaultDelay: number;
354
+ heightLimitPercent: number;
355
+ };
356
+ }
357
+
358
+ namespace Navigation {
359
+ type KeyResult<C extends Form.Constructor<Aventus.HttpRoute>, M> = M extends undefined ? ___Aventus.Navigation.FirstKey<InstanceType<C>> : M;
360
+ }
361
+
362
+ namespace Navigation {
363
+ type Result<C extends Form.Constructor<Aventus.HttpRoute>, M extends keyof InstanceType<C>> = InstanceType<C>[M] extends (...args: any) => any ? ReturnType<InstanceType<C>[M]> : any;
364
+ }
365
+
366
+ namespace Layout.Tabs {
367
+ abstract class Tabs<T extends Layout.Tabs.Tab, U extends Layout.Tabs.TabHeader<T>> extends Aventus.WebComponent implements Aventus.DefaultComponent {
368
+
243
369
  @ViewElement()
244
- protected errorEl: HTMLDivElement;
370
+ protected headerEl: HTMLDivElement;
245
371
  @ViewElement()
246
- protected inputEl: HTMLInputElement;
247
- private customValidationRules;
248
- /**
249
- * @inheritdoc
250
- */
251
- onChange: Aventus.Callback<(value: string) => void>;
252
- protected onAttrChange(): void;
253
- protected inputChange(): void;
254
- addValidationRule(cb: (value: string) => boolean | {
255
- success: boolean;
256
- error: string;
257
- }): void;
258
- removeValidationRule(cb: (value: string) => boolean | {
259
- success: boolean;
260
- error: string;
261
- }): void;
262
- private errors;
263
- addError(msg: string): void;
264
- clearErrors(): void;
265
- printErrors(): void;
266
- /**
267
- * @inheritdoc
268
- */
269
- validate(): boolean;
270
- private __c3d0451e83f327f9ac50560c1fff4e87method0;
271
- }
372
+ protected bodyEl: HTMLDivElement;
373
+ protected activeHeader?: Layout.Tabs.TabHeader<T>;
374
+ protected tabs: {
375
+ [label: string]: T;
376
+ };
377
+ protected loadTabs(): any;
378
+ setActive(tabHeader: Layout.Tabs.TabHeader<T> | number | string): any;
379
+ protected abstract defineTabHeader(): Form.Constructor<U>;
380
+ protected postCreation(): void;
381
+ }
382
+ }
383
+
384
+ namespace Navigation {
385
+ type RouterOptions = {
386
+ page404?: Form.Constructor<Navigation.Page>;
387
+ destroyPage?: boolean;
388
+ };
389
+ }
390
+
391
+ namespace Form {
392
+ type FormValidateResult = Aventus.Asyncable<string | string[] | boolean | undefined>;
393
+ }
394
+
395
+ namespace Form {
396
+ abstract class Validator<T> {
397
+
398
+ static Test(validators: Form.Constructor<Form.Validator<any>> | Form.Constructor<Form.Validator<any>>[], value: any, name: string, globalValidation: () => Promise<void>): Promise<string[] | undefined>;
399
+ @BindThis()
400
+ abstract validate(value: T | undefined, name: string, globalValidation: () => Promise<void>): Form.FormValidateResult;
401
+ }
402
+ }
403
+
404
+ namespace Form.Validators {
405
+ class Required extends Form.Validator<any> {
406
+ static msg: string;
407
+ private _msg;
408
+ constructor(msg?: string);
409
+ /**
410
+ * @inheritdoc
411
+ */
412
+ validate(value: any | undefined, name: string, globalValidation: () => Promise<void>): string | boolean;
413
+ }
414
+ }
415
+
416
+ namespace Form.Validators {
417
+ class Email extends Form.Validator<string> {
418
+ static msg: string;
419
+ private _msg;
420
+ constructor(msg?: string);
421
+ /**
422
+ * @inheritdoc
423
+ */
424
+ validate(value: string | undefined, name: string, globalValidation: () => Promise<void>): boolean | string;
425
+ }
272
426
  }
273
427
 
274
428
  namespace Form {
275
- class Checkbox extends Aventus.WebComponent implements Aventus.DefaultComponent, form.FormElement<boolean> {
429
+ type FormValidate = (field: string, value: unknown) => Form.FormValidateResult;
430
+ }
431
+
432
+ namespace Form {
433
+ type FormPartValidate<T> = (value: T | undefined, name: string, globalValidation: () => Promise<void>) => Form.FormValidateResult;
434
+ }
435
+
436
+ namespace Form {
437
+ type FormHandlerConfig<T> = {
438
+ validate?: Form.FormValidate;
439
+ validateOnChange?: boolean;
440
+ handleValidateNoInputError?: (errors: {
441
+ [K in keyof T]?: string[];
442
+ }) => Aventus.Asyncable<void>;
443
+ handleExecuteNoInputError?: (errors: Aventus.GenericError[]) => Aventus.Asyncable<void>;
444
+ };
445
+ }
446
+
447
+ namespace Form {
448
+ type FormPartValidateList<T> = Form.FormPartValidate<T> | Form.Constructor<Form.Validator<T>> | Form.Validator<T> | (Form.Constructor<Form.Validator<T>> | Form.Validator<T>)[];
449
+ }
450
+
451
+ namespace Form {
452
+ interface FormPart<T = any> {
453
+ /**
454
+ * A validation function for the form part.
455
+ */
456
+ validate?: Form.FormPartValidateList<T>;
457
+ /**
458
+ * Indicates whether validation should be performed on value change.
459
+ */
460
+ validateOnChange?: boolean;
461
+ }
462
+ }
463
+
464
+ namespace Form {
465
+ type FormSchema<T> = {
466
+ [K in keyof T]: Form.FormPart<T[K]> | Form.FormPartValidateList<T[K]>;
467
+ };
468
+ }
469
+
470
+ namespace Form {
471
+ type SubmitFunction<T, X> = Aventus.Asyncable<Form.WithError<X>> | ((body: T) => Aventus.Asyncable<Form.WithError<X>>);
472
+ }
473
+
474
+ namespace Form {
475
+ interface IFormElement<T = any> {
476
+ errors: string[];
477
+ value: T | undefined;
478
+ onChange: Aventus.Callback<(value: T) => void>;
479
+ formPart?: Form.InternalFormPart<T>;
480
+ }
481
+ }
482
+
483
+ namespace Form {
484
+ @Storybook()
485
+ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.DefaultComponent, Form.IFormElement<T> {
486
+ static get formAssociated(): boolean;
487
+ @Attribute()
488
+ protected has_errors: boolean;
489
+ @Property()
490
+ disabled: boolean;
491
+ /**
492
+ * Value for the current form element
493
+ */
494
+ @Watch((target: FormElement<T>) => {
495
+ target.onValueChange(target.value);
496
+ })
497
+ value: T | undefined;
498
+ /**
499
+ * List of errors. You must display errors in child component
500
+ */
501
+ @Watch((target: FormElement<T>) => {
502
+ target.onErrorsChange();
503
+ })
504
+ errors: string[];
505
+ private _form?;
506
+ @Injectable()
507
+ get form(): Form.InternalFormPart<T> | undefined;
508
+ @Injectable()
509
+ set form(value: Form.InternalFormPart<T> | undefined);
510
+ protected internals: ElementInternals;
511
+ protected canLinkValueToForm: boolean;
512
+ protected handler?: Form.IForm;
513
+ constructor();
514
+ onChange: Aventus.Callback<(value: T | undefined) => void>;
515
+ @BindThis()
516
+ protected refreshValueFromForm(): void;
517
+ protected unlinkFormPart(): void;
518
+ protected linkFormPart(): void;
519
+ @BindThis()
520
+ onFormValidation(errors: string[]): Promise<string[]>;
521
+ validate(): Promise<boolean>;
522
+ /**
523
+ * Define your customs validations rules
524
+ */
525
+ protected validation(): Promise<string[]>;
526
+ /**
527
+ *
528
+ */
529
+ protected clearErrors(): void;
530
+ protected triggerChange(value: T | undefined): void;
531
+ protected onValueChange(value: T | undefined): void;
532
+ protected onErrorsChange(): void;
533
+ protected linkErrorToForm(): void;
534
+ protected linkValueToForm(): void;
535
+ protected formAssociatedCallback(form: HTMLFormElement): void;
536
+ protected formDisabledCallback(disabled: boolean): void;
537
+ protected postCreation(): void;
538
+ protected postDestruction(): void;
539
+ }
540
+ }
541
+
542
+ namespace Form {
543
+ interface IForm {
544
+ registerElement(element: Form.FormElement<any>): Form.IForm;
545
+ registerSubmit(element: Form.ButtonElement): Form.IForm;
546
+ requestSubmit(): Aventus.Asyncable<void>;
547
+ }
548
+ }
549
+
550
+ namespace Form {
551
+ abstract class ButtonElement extends Aventus.WebComponent implements Aventus.DefaultComponent {
552
+ static get formAssociated(): boolean;
553
+ @Property()
554
+ type: 'button' | 'submit' | 'reset' | 'menu';
555
+ protected internals: ElementInternals;
556
+ protected handler?: Form.IForm;
557
+ constructor();
558
+ protected triggerSubmit(): any;
559
+ protected postCreation(): void;
560
+ }
561
+ }
562
+
563
+ namespace Form {
564
+ class Form<T extends any = any> extends Aventus.WebComponent implements Aventus.DefaultComponent, Form.IForm {
565
+
566
+ static create<T>(schema: Form.FormSchema<T>, config?: Form.FormHandlerConfig<T>): Form.FormHandler<T>;
567
+ static configure(value: Form.FormHandlerConfig<any>): void;
568
+ static get defaultConfig(): Form.FormHandlerConfig<any> | undefined;
569
+ static set formElements(value: Form.Constructor<Form.IForm, true>[]);
570
+ static get formElements(): Form.Constructor<Form.IForm, true>[];
571
+ @Injectable()
572
+ form?: Form.FormHandler<any>;
573
+ @Injectable()
574
+ request?: Form.SubmitFunction<T, any>;
575
+ protected elements: Form.FormElement<any>[];
576
+ protected btns: Form.ButtonElement[];
577
+ onSubmit: Aventus.Callback<() => void>;
578
+ @BindThis()
579
+ protected checkEnter(e: KeyboardEvent): void;
580
+ registerElement(element: Form.FormElement<any>): Form.Form;
581
+ registerSubmit(element: Form.ButtonElement): Form.Form;
582
+ requestSubmit(): Promise<void>;
583
+ }
584
+ }
585
+
586
+ namespace Navigation {
587
+ abstract class PageForm<T, U> extends Navigation.Page implements Aventus.DefaultComponent, Form.IForm {
588
+ private _form;
589
+ get form(): Form.FormHandler<T>;
590
+ protected elements: Form.FormElement<any>[];
591
+ protected btns: Form.ButtonElement[];
592
+ constructor();
593
+ protected abstract formSchema(): Form.FormSchema<T>;
594
+ protected formConfig(): Form.FormHandlerConfig<T>;
595
+ protected pageConfig(): Navigation.PageFormConfig;
596
+ protected abstract defineSubmit(submit: (fct: Form.SubmitFunction<T, U>) => Promise<Form.WithError<U> | null>): Promise<Form.WithError<U> | null>;
597
+ submit(): unknown;
598
+ protected setLoading(isLoading: boolean): void;
599
+ @BindThis()
600
+ protected checkEnter(e: KeyboardEvent): void;
601
+ registerElement(element: Form.FormElement<any>): Navigation.PageForm<T, U>;
602
+ registerSubmit(element: Form.ButtonElement): Navigation.PageForm<T, U>;
603
+ requestSubmit(): Promise<void>;
604
+ }
605
+ }
606
+
607
+ namespace Navigation {
608
+ abstract class PageFormRoute<C extends Form.Constructor<Aventus.HttpRoute>, M extends undefined | keyof InstanceType<C> = undefined, RM extends Navigation.KeyResult<C, M> = Navigation.KeyResult<C, M>> extends Navigation.PageForm<Navigation.LastParameter<InstanceType<C>[RM]>, Form.ExtractError<Awaited<Navigation.Result<C, RM>>>> implements Aventus.DefaultComponent {
609
+
610
+ protected defineSubmit(submit: (fct: Form.SubmitFunction<Navigation.LastParameter<InstanceType<C>[RM]>, Form.ExtractError<Awaited<Navigation.Result<C, RM>>>>) => Promise<Form.WithError<Form.ExtractError<Awaited<Navigation.Result<C, RM>>>> | null>): Promise<Form.WithError<Form.ExtractError<Awaited<Navigation.Result<C, RM>>>> | null>;
611
+ abstract route(): M extends undefined ? C : [C, M];
612
+ beforeSubmit(): Aventus.Asyncable<void>;
613
+ abstract onResult(result: Awaited<Navigation.Result<C, RM> | null>): Aventus.Asyncable<void>;
614
+ }
615
+ }
616
+
617
+ namespace Form {
618
+ class FormHandler<T> {
619
+ @Internal()
620
+ private static _globalConfig?;
621
+ @Internal()
622
+ private static _IFormElements;
623
+ private __watcher;
624
+ get item(): T;
625
+ set item(item: T);
626
+ get parts(): Form.InternalForm<T>;
627
+ private _elements;
628
+ get elements(): {
629
+ [K in keyof T]?: Form.IFormElement[];
630
+ };
631
+ private _globalValidation?;
632
+ private _validateOnChange;
633
+ private _handleValidateNoInputError?;
634
+ private _handleExecuteNoInputError?;
635
+ defaultValues: T;
636
+ onItemChange: Aventus.Callback<(action: Aventus.WatchAction, path: string, value: any) => void>;
637
+ constructor(schema: Form.FormSchema<T>, config?: Form.FormHandlerConfig<T>, defaultValues?: T);
638
+ private writeValidationIntoConsole;
639
+ private writeErrorIntoConsole;
640
+ protected transformForm(form: Form.FormSchema<T>): Form.InternalForm<T>;
641
+ protected transformFormPart(key: keyof T, part: Form.FormPart | undefined): void;
642
+ protected onWatcherChanged(action: Aventus.WatchAction, path: string, value: any): any;
643
+ private _validate;
644
+ validate(key: keyof T): Promise<boolean>;
645
+ validate(): Promise<boolean>;
646
+ submit<X>(query: Form.SubmitFunction<T, X>): Promise<Form.WithError<X> | null>;
647
+ execute<X>(query: Form.SubmitFunction<T, X>): Promise<Form.WithError<X>>;
648
+ parseErrors<X>(queryResult: Form.WithError<X>): Aventus.GenericError[];
649
+ reset(): void;
650
+ }
651
+ }
652
+
653
+ namespace Lib {
654
+ class ShortcutManager {
655
+ private static memory;
656
+ private static autoPrevents;
657
+ private static isInit;
658
+ private static arrayKeys;
659
+ private static options;
660
+ private static replacingMemory;
661
+ private static isTxt;
662
+ private static getText;
663
+ static subscribe(combinaison: (Lib.SpecialTouch | string)[] | (Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>, options?: Lib.ShortcutManagerOptions): void;
664
+ static unsubscribe(combinaison: (Lib.SpecialTouch | string)[] | (Lib.SpecialTouch | string), cb: () => void | false | Promise<void> | Promise<false>): void;
665
+ private static onKeyDown;
666
+ private static onKeyUp;
667
+ static init(): void;
668
+ static setAutoPrevents(combinaisons: (Lib.SpecialTouch | string)[][]): void;
669
+ private static uninit;
670
+ }
671
+ }
672
+
673
+ namespace Layout {
674
+ class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
675
+ @Property((target: GridHelper) => {
676
+ target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
677
+ target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
678
+ target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
679
+ })
680
+ unit: 'px' | 'rem' | 'cm' | 'mm' | 'in';
276
681
  @Property()
277
- label: string;
278
- @Property((target: Checkbox) => {
279
- target.syncValue('checked');
682
+ nb_col: number;
683
+ @Property((target: GridHelper) => {
684
+
280
685
  })
281
- checked: boolean;
282
- /**
283
- * @inheritdoc
284
- */
285
- @Watch((target: Checkbox) => {
286
- target.syncValue('value');
686
+ nb_row: number;
687
+ @Property()
688
+ col_width: number;
689
+ @Property((target: GridHelper) => {
690
+
287
691
  })
288
- value: boolean;
289
- /**
290
- * Determine if the fields is disabled
291
- */
692
+ row_height: number;
693
+ @Attribute()
694
+ show_rulers: boolean;
695
+ @Attribute()
696
+ show_grid: boolean;
292
697
  @Attribute()
293
- disabled: boolean;
698
+ show_ruler: boolean;
294
699
  @Attribute()
295
- reverse: boolean;
700
+ show_guides: boolean;
701
+ @Attribute()
702
+ lock: boolean;
703
+ @Attribute()
704
+ visible: boolean;
705
+ @Property((target: GridHelper) => {
706
+ target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
707
+ target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
708
+ target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
709
+ })
710
+ ruler_size: number;
711
+ @Property()
712
+ step: number;
713
+ @Property()
714
+ step_big: number;
715
+ @Property()
716
+ magnetic: number;
717
+ @ViewElement()
718
+ protected gridEl: HTMLDivElement;
719
+ @ViewElement()
720
+ protected colsEl: HTMLDivElement;
721
+ @ViewElement()
722
+ protected rowsEl: HTMLDivElement;
723
+ @ViewElement()
724
+ protected rulerTopEl: HTMLDivElement;
725
+ @ViewElement()
726
+ protected rulerLeftEl: HTMLDivElement;
727
+ @ViewElement()
728
+ protected rulerTopContentEl: HTMLDivElement;
296
729
  @ViewElement()
297
- protected checkboxEl: HTMLInputElement;
298
- /**
299
- * @inheritdoc
300
- */
301
- onChange: Aventus.Callback<(value: boolean) => void>;
302
- syncValue(master: 'checked' | 'value'): void;
303
- /**
304
- * @inheritdoc
305
- */
306
- validate(): boolean;
307
- protected postCreation(): void;
308
- private __5c369bf990a8d72e34b101c6013f3aecmethod0;
309
- }
310
- }
311
-
312
- class TouchRecord {
313
- private _activeTouchID?;
314
- private _touchList;
315
- private get _primitiveValue();
316
- isActive(): boolean;
317
- getDelta(): any;
318
- getVelocity(): any;
319
- getEasingDistance(damping: number): {
320
- x: number;
321
- y: number;
322
- };
323
- track(evt: TouchEvent): {
324
- [id: number]: Tracker;
325
- };
326
- update(evt: TouchEvent): {
327
- [id: number]: Tracker;
328
- };
329
- release(evt: TouchEvent): void;
330
- private _add;
331
- private _renew;
332
- private _delete;
333
- private _has;
334
- private _setActiveID;
335
- private _getActiveTracker;
336
- }
730
+ protected rulerLeftContentEl: HTMLDivElement;
731
+ @ViewElement()
732
+ protected guidesEl: HTMLDivElement;
733
+ @ViewElement()
734
+ protected lockEl: HTMLDivElement;
735
+ inPx(nb: number): number;
736
+ fromPx(nbPx: number): number;
737
+ /**
738
+ *
739
+ */
740
+ protected toggleLock(): void;
741
+ protected draw(): void;
742
+ protected drawRulerTop(): void;
743
+ protected drawRulerLeft(): void;
744
+ protected addDragLeft(): void;
745
+ protected addDragTop(): void;
746
+ createGuideFromLeft(left: number): void;
747
+ createGuideFromTop(top: number): void;
748
+ protected addShortCut(): void;
749
+ protected addResize(): void;
750
+ save(): void;
751
+ reload(): void;
752
+ protected postCreation(): void;
753
+ }
754
+ }
337
755
 
338
756
  namespace Layout {
339
- class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponent {
340
- /**
341
- * Set the zoom to apply for the container
342
- */
757
+ class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultComponent {
758
+
759
+ @Attribute()
760
+ direction: "y" | "x";
761
+ @Attribute()
762
+ moving: boolean;
763
+ @ViewElement()
764
+ protected positionEl: HTMLDivElement;
765
+ container: Layout.GridHelper;
766
+ displayValue(v: number): void;
767
+ @BindThis()
768
+ onStart(): void;
769
+ protected applyMagnetic(valuePx: number): number;
770
+ @BindThis()
771
+ onMoveX(e: Aventus.NormalizedEvent): void;
772
+ @BindThis()
773
+ onMoveY(e: Aventus.NormalizedEvent): void;
774
+ @BindThis()
775
+ onStop(): void;
776
+ protected postCreation(): void;
777
+ }
778
+ }
779
+
780
+ class TouchRecord {
781
+ private _activeTouchID?;
782
+ private _touchList;
783
+ private get _primitiveValue();
784
+ isActive(): boolean;
785
+ getDelta(): any;
786
+ getVelocity(): any;
787
+ getNbOfTouches(): any;
788
+ getTouches(): any;
789
+ getEasingDistance(damping: number): {
790
+ x: number;
791
+ y: number;
792
+ };
793
+ track(evt: TouchEvent | PointerEvent | MouseEvent): {
794
+ [id: number]: Tracker;
795
+ };
796
+ update(evt: TouchEvent | PointerEvent | MouseEvent): {
797
+ [id: number]: Tracker;
798
+ };
799
+ release(evt: TouchEvent | PointerEvent | MouseEvent): void;
800
+ private _getIdentifier;
801
+ private _add;
802
+ private _renew;
803
+ private _delete;
804
+ private _has;
805
+ private _setActiveID;
806
+ private _getActiveTracker;
807
+ }
808
+
809
+ namespace Layout {
810
+ class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponent {
811
+ static lock(element: Aventus.WebComponent): void;
812
+ static unlock(element: Aventus.WebComponent): void;
813
+ /**
814
+ * Set the zoom to apply for the container
815
+ */
343
816
  @Property((target: Scrollable) => {
344
817
  target.changeZoom();
345
818
  })
346
- zoom: number;
819
+ zoom: number;
820
+ @Attribute()
821
+ min_zoom: number;
822
+ @Attribute()
823
+ max_zoom: number;
824
+ @Attribute()
825
+ private y_scroll_visible;
347
826
  @Attribute()
348
- private y_scroll_visible;
827
+ private x_scroll_visible;
828
+ /**
829
+ * Determine if scrollbar will be floating or not
830
+ */
349
831
  @Attribute()
350
- private x_scroll_visible;
351
- /**
352
- * Determine if scrollbar will be floating or not
353
- */
832
+ floating_scroll: boolean;
833
+ /**
834
+ * Determine if x scroll is allowed
835
+ */
354
836
  @Attribute()
355
- floating_scroll: boolean;
356
- /**
357
- * Determine if x scroll is allowed
358
- */
837
+ x_scroll: boolean;
838
+ /**
839
+ * Determine if x scroll is allowed
840
+ */
359
841
  @Attribute()
360
- x_scroll: boolean;
361
- /**
362
- * Determine if x scroll is allowed
363
- */
842
+ y_scroll: boolean;
843
+ /**
844
+ * If true, the scrollers will hide if they're not in use
845
+ */
364
846
  @Attribute()
365
- y_scroll: boolean;
366
- /**
367
- * If true, the scrollers will hide if they're not in use
368
- */
847
+ auto_hide: boolean;
369
848
  @Attribute()
370
- auto_hide: boolean;
849
+ break: number;
850
+ /**
851
+ * Disable user action
852
+ */
371
853
  @Attribute()
372
- break: number;
373
- /**
374
- * Disable user action
375
- */
854
+ disable: boolean;
376
855
  @Attribute()
377
- disable: boolean;
856
+ private no_user_select;
857
+ /**
858
+ * Allow scroll by dragging with the mouse
859
+ */
378
860
  @Attribute()
379
- private no_user_select;
861
+ mouse_drag: boolean;
862
+ @Attribute()
863
+ pinch: boolean;
380
864
  @ViewElement()
381
- private contentWrapper;
865
+ private contentWrapper;
382
866
  @ViewElement()
383
- private contentZoom;
867
+ private contentZoom;
384
868
  @ViewElement()
385
- private mainContainer;
869
+ private mainContainer;
386
870
  @ViewElement()
387
- private contentHidder;
871
+ private contentHidder;
388
872
  @ViewElement()
389
- private verticalScrollerContainer;
873
+ private verticalScrollerContainer;
390
874
  @ViewElement()
391
- private verticalScroller;
875
+ private verticalScroller;
392
876
  @ViewElement()
393
- private horizontalScrollerContainer;
877
+ private horizontalScrollerContainer;
394
878
  @ViewElement()
395
- private horizontalScroller;
396
- private observer?;
397
- private display;
398
- private _max;
399
- get max(): {
400
- x: number;
401
- y: number;
402
- };
403
- private margin;
404
- private position;
405
- private momentum;
406
- private contentWrapperSize;
407
- private scroller;
408
- private scrollerContainer;
409
- private hideDelay;
410
- private touchRecord;
411
- private pointerCount;
412
- private savedBreak;
413
- get x(): number;
414
- get y(): number;
415
- constructor();
416
- /**
417
- * Callback trigger when the scroll change
418
- */
419
- onScrollChange: Aventus.Callback<(x: number, y: number) => void>;
420
- private renderAnimation;
421
- private createAnimation;
422
- private nextPosition;
423
- private scrollDirection;
424
- private correctScrollValue;
425
- private triggerScrollChange;
426
- /**
427
- * Shortcut for functions scrollX and scrollY
428
- */
429
- scrollToPosition(x: number, y: number): void;
430
- /**
431
- * Scroll left - right
432
- */
433
- scrollX(x: number): void;
434
- /**
435
- * Scroll bottom - top
436
- */
437
- scrollY(y: number): void;
438
- private addAction;
439
- private addScrollDrag;
440
- private addDelta;
441
- private onWheel;
442
- private onTouchStart;
443
- private onTouchMove;
444
- private onTouchEnd;
445
- private calculateRealSize;
446
- private calculatePositionScrollerContainer;
447
- private calculatePositionScrollerContainerY;
448
- private calculatePositionScrollerContainerX;
449
- private calculateSizeScroller;
450
- private changeZoom;
451
- private dimensionRefreshed;
452
- private createResizeObserver;
453
- private addResizeObserver;
454
- protected postCreation(): void;
455
- }
879
+ private horizontalScroller;
880
+ private observer?;
881
+ private display;
882
+ private max;
883
+ private margin;
884
+ private position;
885
+ private momentum;
886
+ private contentWrapperSize;
887
+ private scroller;
888
+ private scrollerContainer;
889
+ private hideDelay;
890
+ private touchRecord;
891
+ private pointerCount;
892
+ private loadedOnce;
893
+ private savedPercent?;
894
+ private isDragScroller;
895
+ private cachedSvg?;
896
+ private previousMidPoint?;
897
+ private previousDistance?;
898
+ private startTranslate;
899
+ get x(): number;
900
+ get y(): number;
901
+ get xMax(): number;
902
+ get yMax(): number;
903
+ constructor();
904
+ /**
905
+ * Callback trigger when the scroll change
906
+ */
907
+ onScrollChange: Aventus.Callback<(x: number, y: number) => void>;
908
+ onZoomChange: Aventus.Callback<(zoom: number) => void>;
909
+ private renderAnimation;
910
+ private createAnimation;
911
+ private nextPosition;
912
+ private scrollDirection;
913
+ /**
914
+ * @param percent number between 0 - 100
915
+ */
916
+ private scrollDirectionPercent;
917
+ private correctScrollValue;
918
+ private triggerScrollChange;
919
+ /**
920
+ * Shortcut for functions scrollX and scrollY
921
+ */
922
+ scrollToPosition(x: number, y: number): void;
923
+ /**
924
+ * Scroll left - right
925
+ */
926
+ scrollX(x: number): void;
927
+ /**
928
+ * Scroll left - right
929
+ * @param x percent between 0 - 100
930
+ */
931
+ scrollXPercent(x: number): void;
932
+ /**
933
+ * Scroll bottom - top
934
+ */
935
+ scrollY(y: number): void;
936
+ /**
937
+ * Scroll bottom - top
938
+ * @param y percent between 0 - 100
939
+ */
940
+ scrollYPercent(y: number): void;
941
+ private autoScrollInterval;
942
+ private autoScrollSpeed;
943
+ private startAutoScrollRight;
944
+ /**
945
+ * Define a speed percent to auto scroll right
946
+ */
947
+ autoScrollRight(percent?: number): void;
948
+ /**
949
+ * Stop auto scrolling right
950
+ */
951
+ stopAutoScrollRight(): void;
952
+ private startAutoScrollLeft;
953
+ /**
954
+ * Define a speed percent to auto scroll left
955
+ */
956
+ autoScrollLeft(percent?: number): void;
957
+ /**
958
+ * Stop auto scrolling left
959
+ */
960
+ stopAutoScrollLeft(): void;
961
+ private startAutoScrollTop;
962
+ /**
963
+ * Define a speed percent to auto scroll top
964
+ */
965
+ autoScrollTop(percent?: number): void;
966
+ /**
967
+ * Stop auto scrolling top
968
+ */
969
+ stopAutoScrollTop(): void;
970
+ private startAutoScrollBottom;
971
+ /**
972
+ * Define a speed percent to auto scroll bottom
973
+ */
974
+ autoScrollBottom(percent?: number): void;
975
+ /**
976
+ * Stop auto scrolling bottom
977
+ */
978
+ stopAutoScrollBottom(): void;
979
+ private createMatrix;
980
+ private getMidPoint;
981
+ private getDistance;
982
+ /**
983
+ * Zoom on a specific point
984
+ */
985
+ zoomOnPoint(clientX: number, clientY: number, newZoom: number): void;
986
+ private pinchAction;
987
+ private pressManager;
988
+ private addAction;
989
+ private addActionMove;
990
+ private removeActionMove;
991
+ private addScrollDrag;
992
+ private shouldStopPropagation;
993
+ private addDelta;
994
+ private onWheel;
995
+ private onTouchStartPointer;
996
+ private onTouchStart;
997
+ private onTouchMovePointer;
998
+ private onTouchMove;
999
+ private onTouchEndPointer;
1000
+ private onTouchEnd;
1001
+ private calculateRealSize;
1002
+ private calculatePositionScrollerContainer;
1003
+ private calculatePositionScrollerContainerY;
1004
+ private calculatePositionScrollerContainerX;
1005
+ private calculateSizeScroller;
1006
+ private changeZoom;
1007
+ /**
1008
+ * Inform that the size has changed
1009
+ */
1010
+ private dimensionRefreshed;
1011
+ private createResizeObserver;
1012
+ private addResizeObserver;
1013
+ private div;
1014
+ protected postCreation(): void;
1015
+ }
456
1016
  }
457
1017
 
458
- namespace Navigation {
459
- abstract class Router extends Aventus.WebComponent implements Aventus.DefaultComponent {
460
- protected oldPage?: Navigation.Page;
1018
+ namespace Layout.Tabs {
1019
+ abstract class TabHeader<T extends Layout.Tabs.Tab> extends Aventus.WebComponent implements Aventus.DefaultComponent {
1020
+
1021
+ @Attribute()
1022
+ active: boolean;
1023
+ private _tab;
1024
+ get tab(): T;
1025
+ protected tabs: Layout.Tabs.Tabs<T, this>;
1026
+ init(tab: T, tabs: Layout.Tabs.Tabs<T, this>): any;
1027
+ abstract render(): Aventus.Asyncable<void>;
1028
+ onPress(): void;
1029
+ protected addPress(): void;
1030
+ protected postCreation(): void;
1031
+ }
1032
+ }
1033
+
1034
+ namespace Layout.Tabs {
1035
+ abstract class Tab extends Aventus.WebComponent implements Aventus.DefaultComponent {
1036
+
1037
+ @Attribute()
1038
+ selected: boolean;
1039
+ @InternalProtected()
1040
+ protected tabHeader?: Layout.Tabs.TabHeader<this>;
1041
+ abstract identifier(): string;
1042
+ }
1043
+ }
1044
+
1045
+ namespace Modal {
1046
+ abstract class ModalElement<T, U extends Modal.ModalOptions<T> = Modal.ModalOptions<T>> extends Aventus.WebComponent implements Aventus.DefaultComponent {
1047
+ private static defaultCloseWithEsc;
1048
+ private static defaultCloseWithClick;
1049
+ private static defaultRejectValue;
1050
+ static configure(options: Partial<Modal.ModalOptions<any>>): void;
1051
+ protected static _show<T extends Modal.ModalElement<U, X>, U = Modal.ExtractTypeModal<T>, X extends Modal.ModalOptions<U> = Modal.ModalOptions<U>>(modal: T, element?: Element): Promise<U | null>;
1052
+ protected cb?: (response: T | null) => void;
1053
+ @Watch((target: ModalElement<T, U>, action: Aventus.WatchAction, path: string, value: any) => {
1054
+ target.onOptionsChanged();
1055
+ })
1056
+ protected options: U;
461
1057
  @ViewElement()
462
- contentEl: HTMLDivElement;
463
- protected allRoutes: {
464
- [key: string]: Navigation.RouteAsyncOption;
465
- };
466
- protected activePath: string;
467
- protected activeState?: Aventus.State;
468
- protected oneStateActive: boolean;
469
- protected showPageMutex: Aventus.Mutex;
470
- constructor();
471
- /**
472
- * Add all your routes inside this function (addRoute or addRouteAsync)
473
- */
474
- protected abstract defineRoutes(): void;
475
- protected get stateManager(): Aventus.StateManager;
476
- protected addRouteAsync<T extends Navigation.Page>(options: Navigation.RouteAsyncOption): void;
477
- protected addRoute(route: string, elementCtr: new () => Navigation.Page): void;
478
- protected register(): void;
479
- protected initRoute(path: string): void;
480
- protected page404?: Navigation.Page;
481
- protected validError404(): any;
482
- protected error404(state?: Aventus.State): null | (new () => Navigation.Page);
483
- protected onNewPage(oldUrl: string, oldPage: Navigation.Page | undefined, newUrl: string, newPage: Navigation.Page): void;
484
- getSlugs(): any;
485
- protected canChangeState(newState: Aventus.State): Promise<boolean>;
486
- navigate(state: Aventus.State | string): Promise<boolean>;
487
- protected bindToUrl(): boolean;
488
- protected defaultUrl(): string | undefined;
489
- protected postCreation(): void;
490
- }
1058
+ protected modalEl: HTMLDivElement;
1059
+ protected pressManagerClickClose?: Aventus.PressManager;
1060
+ protected pressManagerPrevent?: Aventus.PressManager;
1061
+ constructor();
1062
+ abstract configure(): U;
1063
+ protected onOptionsChanged(): void;
1064
+ /**
1065
+ * Define the callback
1066
+ */
1067
+ private init;
1068
+ show(element?: Element): Promise<T | null>;
1069
+ @BindThis()
1070
+ protected close(): void;
1071
+ @BindThis()
1072
+ protected reject(no_close?: boolean): void;
1073
+ @BindThis()
1074
+ protected resolve(response: T, no_close?: boolean): void;
1075
+ }
1076
+ }
1077
+
1078
+ namespace Modal {
1079
+ type ExtractTypeModal<X extends Modal.ModalElement<U, Y>, U = any, Y extends Modal.ModalOptions = any> = X extends Modal.ModalElement<infer U, Y> ? U : never;
491
1080
  }
492
1081
 
493
1082
  namespace Navigation {
494
- abstract class Page extends Aventus.WebComponent implements Aventus.DefaultComponent {
495
-
496
- @Property((target: Page) => {
497
- if(target.visible) {
498
- target.onShow();
499
- }
500
- else {
501
- target.onHide();
502
- }
503
- })
504
- visible: boolean;
505
- currentRouter?: Navigation.Router;
506
- protected currentState?: Aventus.State;
507
- pageTitle(): string | undefined;
508
- pageDescription(): string | undefined;
509
- pageKeywords(): string[] | undefined;
510
- show(state?: Aventus.State): any;
511
- hide(): any;
512
- onShow(): void;
513
- onHide(): void;
514
- }
1083
+ class Default404 extends Navigation.Page implements Aventus.DefaultComponent {
1084
+ /**
1085
+ * @inheritdoc
1086
+ */
1087
+ configure(): Aventus.Asyncable<Navigation.Page.PageConfig>;
1088
+ }
1089
+ }
1090
+
1091
+ namespace Navigation {
1092
+ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultComponent {
1093
+ protected static page404: Form.Constructor<Navigation.Page>;
1094
+ protected static destroyPage: boolean;
1095
+ static configure(options: Navigation.RouterOptions): void;
1096
+ protected oldPage?: Navigation.Page;
1097
+ @ViewElement()
1098
+ contentEl: HTMLDivElement;
1099
+ protected allRoutes: {
1100
+ [key: string]: Navigation.RouteAsyncOption;
1101
+ };
1102
+ protected activePath: string;
1103
+ protected activeState?: Aventus.State;
1104
+ protected oneStateActive: boolean;
1105
+ protected showPageMutex: Aventus.Mutex;
1106
+ protected isReplace: boolean;
1107
+ constructor();
1108
+ /**
1109
+ * Add all your routes inside this function (addRoute or addRouteAsync)
1110
+ */
1111
+ protected abstract defineRoutes(): void;
1112
+ protected get stateManager(): Aventus.StateManager;
1113
+ protected addRouteAsync<T extends Navigation.Page>(options: Navigation.RouteAsyncOption): void;
1114
+ protected addRoute(route: string, elementCtr: new () => Navigation.Page): void;
1115
+ protected register(): void;
1116
+ protected initRoute(path: string): void;
1117
+ protected page404?: Navigation.Page;
1118
+ protected validError404(): any;
1119
+ protected error404(state?: Aventus.State): null | (new () => Navigation.Page);
1120
+ protected onNewPage(oldUrl: string, oldPage: Navigation.Page | undefined, newUrl: string, newPage: Navigation.Page): void;
1121
+ getSlugs(): Aventus.UriParamsValue | null;
1122
+ protected canChangeState(newState: Aventus.State): Promise<boolean>;
1123
+ navigate(state: Aventus.State | string, options?: {
1124
+ replace: boolean;
1125
+ }): Promise<boolean>;
1126
+ protected bindToUrl(): boolean;
1127
+ protected defaultUrl(): string | undefined;
1128
+ /**
1129
+ * Determine if the pash should be destroyed when hiding
1130
+ */
1131
+ protected shouldDestroyFrame(page: Navigation.Page): boolean;
1132
+ protected postCreation(): void;
1133
+ }
1134
+ }
1135
+
1136
+ namespace Toast {
1137
+ abstract class ToastElement<T extends Toast.ToastOptions = Toast.ToastOptions> extends Aventus.WebComponent implements Aventus.DefaultComponent {
1138
+
1139
+ static add(options: Toast.ToastOptions): Promise<boolean>;
1140
+ @Attribute()
1141
+ position: Toast.ToastPosition;
1142
+ /**
1143
+ * Use minus -1 to have an infinite timer
1144
+ */
1145
+ @Attribute()
1146
+ delay: number;
1147
+ @Attribute()
1148
+ protected is_active: boolean;
1149
+ protected showAsked: boolean;
1150
+ protected onHideCallback: (result: boolean) => void;
1151
+ timeout: number;
1152
+ private isTransition;
1153
+ private waitTransitionCbs;
1154
+ private _setOptions;
1155
+ abstract setOptions(options: T): Aventus.Asyncable<void>;
1156
+ show(onHideCallback: (result: boolean) => void): void;
1157
+ protected startDelay(): void;
1158
+ /**
1159
+ * When the user click on the cross, close the notification
1160
+ */
1161
+ protected close(): any;
1162
+ protected addTransition(): void;
1163
+ waitTransition(): Promise<void>;
1164
+ protected postCreation(): void;
1165
+ }
1166
+ }
1167
+
1168
+ namespace Toast {
1169
+ type ToastOptions = {
1170
+ position?: Toast.ToastPosition;
1171
+ /**
1172
+ * Use minus -1 to have an infinite timer
1173
+ */
1174
+ delay?: number;
1175
+ };
1176
+ }
1177
+
1178
+ namespace Toast {
1179
+ class ToastManager extends Aventus.WebComponent implements Aventus.DefaultComponent {
1180
+ private static defaultToast?;
1181
+ private static defaultToastManager?;
1182
+ @Internal()
1183
+ private static defaultPosition;
1184
+ @Internal()
1185
+ private static defaultDelay;
1186
+ private static heightLimitPercent;
1187
+ private static instance?;
1188
+ static add<T extends Toast.ToastOptions>(toast: Toast.ToastElement<T> | T): Promise<boolean>;
1189
+ static configure(options: Partial<Toast.ToastManagerOptions>): void;
1190
+ private activeToasts;
1191
+ private waitingToasts;
1192
+ get containerHeight(): number;
1193
+ get heightLimit(): number;
1194
+ protected mutex: Aventus.Mutex;
1195
+ @Attribute()
1196
+ gap: number;
1197
+ @Attribute()
1198
+ not_main: boolean;
1199
+ add<T extends Toast.ToastOptions>(toast: Toast.ToastElement<T> | T): Promise<boolean>;
1200
+ private _calculateBottom;
1201
+ private _calculateTop;
1202
+ private _notifyBottomRight;
1203
+ private _notifyTopRight;
1204
+ private _notifyBottomLeft;
1205
+ private _notifyTopLeft;
1206
+ private _notifyTop;
1207
+ private _notifyBottom;
1208
+ protected postConnect(): void;
1209
+ protected postDisonnect(): void;
1210
+ }
1211
+ }
1212
+
1213
+ class Process {
1214
+ private static handleErrors?;
1215
+ static configure(config: ProcessConfig): void;
1216
+ static execute<X extends Aventus.ResultWithError<Y> | Aventus.VoidWithError, Y>(prom: Promise<X>): Promise<Aventus.ExtractFromError<X, Y> | undefined>;
1217
+ static parseErrors<X extends Aventus.ResultWithError<Y> | Aventus.VoidWithError, Y>(result: X): Promise<Aventus.ExtractFromError<X> | undefined>;
515
1218
  }
516
1219
 
517
1220
  }
518
1221
  }
519
- //#endregion js def //
1222
+ declare module ___Aventus {
1223
+ namespace Navigation {
1224
+ type FilterPrefix<T> = T extends `getPrefix` ? never : T;
1225
+ }
1226
+
1227
+ namespace Navigation {
1228
+ type ToKey<T> = [T] extends [string] ? string extends T ? never : T extends infer U ? [U] extends [T] ? U : never : never : never;
1229
+ }
1230
+
1231
+ namespace Navigation {
1232
+ type FirstKey<T> = Navigation.ToKey<Navigation.FilterPrefix<keyof T>>;
1233
+ }
1234
+ }//#endregion js def //
520
1235
  //#region js src //
521
- {"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) }\rget 'stroke_width'() { return this.getNumberProp('stroke_width') }\n set 'stroke_width'(val) { this.setNumberAttr('stroke_width', val) }\r svg;\n backCircle;\n percentCircle;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"value\", ((target) => {\n target.render();\n}));\rthis.__addPropertyActions(\"stroke_width\", ((target) => {\n target.render();\n}));\r }\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();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"containerEl\",\n \"ids\": [\n \"progresscircle_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"ProgressCircle\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('value')){ this['value'] = 40; }\rif(!this.hasAttribute('stroke_width')){ this['stroke_width'] = 6; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('value');\rthis.__upgradeProperty('stroke_width');\r }\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_.ProgressCircle=ProgressCircle;\nif(!window.customElements.get('av-progress-circle')){window.customElements.define('av-progress-circle', ProgressCircle);Aventus.WebComponentInstance.registerDefinition(ProgressCircle);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false}],"fullName":"Aventus.ProgressCircle","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-progress-circle"},{"code":"let RouterStateManager=class RouterStateManager extends Aventus.StateManager {\n static getInstance() {\n return Aventus.Instance.get(RouterStateManager);\n }\n}\nRouterStateManager.Namespace=`Aventus`;\r\n_.RouterStateManager=RouterStateManager;\r\n","dependances":[{"fullName":"Aventus.StateManager","isStrong":true},{"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) }\rget 'active_state'() { return this.getStringAttr('active_state') }\n set 'active_state'(val) { this.setStringAttr('active_state', val) }\r onActiveChange = new Aventus.Callback();\n static __style = ``;\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':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"RouterLink\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('state')){ this['state'] = undefined; }\rif(!this.hasAttribute('active_state')){ this['active_state'] = undefined; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('state');\rthis.__upgradeProperty('active_state');\r }\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 postCreation() {\n this.registerActiveStateListener();\n this.addClickEvent();\n }\n}\nNavigation.RouterLink.Namespace=`Aventus.Navigation`;\nNavigation.RouterLink.Tag=`av-router-link`;\n_.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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"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.Navigation.RouterLink","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-router-link"},{"code":"let Tracker=class Tracker {\n velocityMultiplier = window.devicePixelRatio;\n updateTime = Date.now();\n delta = { x: 0, y: 0 };\n velocity = { x: 0, y: 0 };\n lastPosition = { x: 0, y: 0 };\n constructor(touch) {\n this.lastPosition = this.getPosition(touch);\n }\n update(touch) {\n const { velocity, updateTime, lastPosition, } = this;\n const now = Date.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 getPointerData(evt) {\n return evt.touches ? evt.touches[evt.touches.length - 1] : evt;\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`;\r\n_.Tracker=Tracker;\r\n","dependances":[{"fullName":"Touch","isStrong":false}],"fullName":"Aventus.Tracker","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Layout.GridCol = class GridCol extends Aventus.WebComponent {\n get 'column'() { return this.getStringAttr('column') }\n set 'column'(val) { this.setStringAttr('column', val) }\rget 'row'() { return this.getStringAttr('row') }\n set 'row'(val) { this.setStringAttr('row', val) }\rget 'c_start'() { return this.getNumberAttr('c_start') }\n set 'c_start'(val) { this.setNumberAttr('c_start', val) }\rget 'c_end'() { return this.getNumberAttr('c_end') }\n set 'c_end'(val) { this.setNumberAttr('c_end', val) }\r static __style = ``;\n __getStatic() {\n return GridCol;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(GridCol.__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 \"GridCol\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('column')){ this['column'] = undefined; }\rif(!this.hasAttribute('row')){ this['row'] = undefined; }\rif(!this.hasAttribute('c_start')){ this['c_start'] = undefined; }\rif(!this.hasAttribute('c_end')){ this['c_end'] = undefined; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('column');\rthis.__upgradeProperty('row');\rthis.__upgradeProperty('c_start');\rthis.__upgradeProperty('c_end');\r }\n}\nLayout.GridCol.Namespace=`Aventus.Layout`;\nLayout.GridCol.Tag=`av-grid-col`;\n_.Layout.GridCol=Layout.GridCol;\nif(!window.customElements.get('av-grid-col')){window.customElements.define('av-grid-col', Layout.GridCol);Aventus.WebComponentInstance.registerDefinition(Layout.GridCol);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false}],"fullName":"Aventus.Layout.GridCol","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid-col"},{"code":"Layout.Grid = class Grid extends Aventus.WebComponent {\n static get observedAttributes() {return [\"cols\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'cols'() { return this.getNumberProp('cols') }\n set 'cols'(val) { this.setNumberAttr('cols', val) }\r static __style = `:host{display:grid}:host([cols=j]){grid-template-columns:repeat(1, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(2, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(3, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(4, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(5, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(6, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(7, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(8, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(9, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(10, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(11, minmax(0, 1fr))}:host([cols=j]){grid-template-columns:repeat(12, minmax(0, 1fr))}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"0\"]){margin-left:0%}::slotted(av-grid-col[offset_right_xs=\"0\"]){margin-right:0%}::slotted(av-grid-col[size_xs=\"0\"]){width:0%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"1\"]){margin-left:8.3333333333%}::slotted(av-grid-col[offset_right_xs=\"1\"]){margin-right:8.3333333333%}::slotted(av-grid-col[size_xs=\"1\"]){width:8.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"2\"]){margin-left:16.6666666667%}::slotted(av-grid-col[offset_right_xs=\"2\"]){margin-right:16.6666666667%}::slotted(av-grid-col[size_xs=\"2\"]){width:16.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"3\"]){margin-left:25%}::slotted(av-grid-col[offset_right_xs=\"3\"]){margin-right:25%}::slotted(av-grid-col[size_xs=\"3\"]){width:25%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"4\"]){margin-left:33.3333333333%}::slotted(av-grid-col[offset_right_xs=\"4\"]){margin-right:33.3333333333%}::slotted(av-grid-col[size_xs=\"4\"]){width:33.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"5\"]){margin-left:41.6666666667%}::slotted(av-grid-col[offset_right_xs=\"5\"]){margin-right:41.6666666667%}::slotted(av-grid-col[size_xs=\"5\"]){width:41.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"6\"]){margin-left:50%}::slotted(av-grid-col[offset_right_xs=\"6\"]){margin-right:50%}::slotted(av-grid-col[size_xs=\"6\"]){width:50%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"7\"]){margin-left:58.3333333333%}::slotted(av-grid-col[offset_right_xs=\"7\"]){margin-right:58.3333333333%}::slotted(av-grid-col[size_xs=\"7\"]){width:58.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"8\"]){margin-left:66.6666666667%}::slotted(av-grid-col[offset_right_xs=\"8\"]){margin-right:66.6666666667%}::slotted(av-grid-col[size_xs=\"8\"]){width:66.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"9\"]){margin-left:75%}::slotted(av-grid-col[offset_right_xs=\"9\"]){margin-right:75%}::slotted(av-grid-col[size_xs=\"9\"]){width:75%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"10\"]){margin-left:83.3333333333%}::slotted(av-grid-col[offset_right_xs=\"10\"]){margin-right:83.3333333333%}::slotted(av-grid-col[size_xs=\"10\"]){width:83.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"11\"]){margin-left:91.6666666667%}::slotted(av-grid-col[offset_right_xs=\"11\"]){margin-right:91.6666666667%}::slotted(av-grid-col[size_xs=\"11\"]){width:91.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xs=\"12\"]){margin-left:100%}::slotted(av-grid-col[offset_right_xs=\"12\"]){margin-right:100%}::slotted(av-grid-col[size_xs=\"12\"]){width:100%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"0\"]){margin-left:0%}::slotted(av-grid-col[offset_right_sm=\"0\"]){margin-right:0%}::slotted(av-grid-col[size_sm=\"0\"]){width:0%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"1\"]){margin-left:8.3333333333%}::slotted(av-grid-col[offset_right_sm=\"1\"]){margin-right:8.3333333333%}::slotted(av-grid-col[size_sm=\"1\"]){width:8.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"2\"]){margin-left:16.6666666667%}::slotted(av-grid-col[offset_right_sm=\"2\"]){margin-right:16.6666666667%}::slotted(av-grid-col[size_sm=\"2\"]){width:16.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"3\"]){margin-left:25%}::slotted(av-grid-col[offset_right_sm=\"3\"]){margin-right:25%}::slotted(av-grid-col[size_sm=\"3\"]){width:25%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"4\"]){margin-left:33.3333333333%}::slotted(av-grid-col[offset_right_sm=\"4\"]){margin-right:33.3333333333%}::slotted(av-grid-col[size_sm=\"4\"]){width:33.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"5\"]){margin-left:41.6666666667%}::slotted(av-grid-col[offset_right_sm=\"5\"]){margin-right:41.6666666667%}::slotted(av-grid-col[size_sm=\"5\"]){width:41.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"6\"]){margin-left:50%}::slotted(av-grid-col[offset_right_sm=\"6\"]){margin-right:50%}::slotted(av-grid-col[size_sm=\"6\"]){width:50%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"7\"]){margin-left:58.3333333333%}::slotted(av-grid-col[offset_right_sm=\"7\"]){margin-right:58.3333333333%}::slotted(av-grid-col[size_sm=\"7\"]){width:58.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"8\"]){margin-left:66.6666666667%}::slotted(av-grid-col[offset_right_sm=\"8\"]){margin-right:66.6666666667%}::slotted(av-grid-col[size_sm=\"8\"]){width:66.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"9\"]){margin-left:75%}::slotted(av-grid-col[offset_right_sm=\"9\"]){margin-right:75%}::slotted(av-grid-col[size_sm=\"9\"]){width:75%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"10\"]){margin-left:83.3333333333%}::slotted(av-grid-col[offset_right_sm=\"10\"]){margin-right:83.3333333333%}::slotted(av-grid-col[size_sm=\"10\"]){width:83.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"11\"]){margin-left:91.6666666667%}::slotted(av-grid-col[offset_right_sm=\"11\"]){margin-right:91.6666666667%}::slotted(av-grid-col[size_sm=\"11\"]){width:91.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_sm=\"12\"]){margin-left:100%}::slotted(av-grid-col[offset_right_sm=\"12\"]){margin-right:100%}::slotted(av-grid-col[size_sm=\"12\"]){width:100%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"0\"]){margin-left:0%}::slotted(av-grid-col[offset_right_md=\"0\"]){margin-right:0%}::slotted(av-grid-col[size_md=\"0\"]){width:0%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"1\"]){margin-left:8.3333333333%}::slotted(av-grid-col[offset_right_md=\"1\"]){margin-right:8.3333333333%}::slotted(av-grid-col[size_md=\"1\"]){width:8.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"2\"]){margin-left:16.6666666667%}::slotted(av-grid-col[offset_right_md=\"2\"]){margin-right:16.6666666667%}::slotted(av-grid-col[size_md=\"2\"]){width:16.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"3\"]){margin-left:25%}::slotted(av-grid-col[offset_right_md=\"3\"]){margin-right:25%}::slotted(av-grid-col[size_md=\"3\"]){width:25%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"4\"]){margin-left:33.3333333333%}::slotted(av-grid-col[offset_right_md=\"4\"]){margin-right:33.3333333333%}::slotted(av-grid-col[size_md=\"4\"]){width:33.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"5\"]){margin-left:41.6666666667%}::slotted(av-grid-col[offset_right_md=\"5\"]){margin-right:41.6666666667%}::slotted(av-grid-col[size_md=\"5\"]){width:41.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"6\"]){margin-left:50%}::slotted(av-grid-col[offset_right_md=\"6\"]){margin-right:50%}::slotted(av-grid-col[size_md=\"6\"]){width:50%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"7\"]){margin-left:58.3333333333%}::slotted(av-grid-col[offset_right_md=\"7\"]){margin-right:58.3333333333%}::slotted(av-grid-col[size_md=\"7\"]){width:58.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"8\"]){margin-left:66.6666666667%}::slotted(av-grid-col[offset_right_md=\"8\"]){margin-right:66.6666666667%}::slotted(av-grid-col[size_md=\"8\"]){width:66.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"9\"]){margin-left:75%}::slotted(av-grid-col[offset_right_md=\"9\"]){margin-right:75%}::slotted(av-grid-col[size_md=\"9\"]){width:75%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"10\"]){margin-left:83.3333333333%}::slotted(av-grid-col[offset_right_md=\"10\"]){margin-right:83.3333333333%}::slotted(av-grid-col[size_md=\"10\"]){width:83.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"11\"]){margin-left:91.6666666667%}::slotted(av-grid-col[offset_right_md=\"11\"]){margin-right:91.6666666667%}::slotted(av-grid-col[size_md=\"11\"]){width:91.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_md=\"12\"]){margin-left:100%}::slotted(av-grid-col[offset_right_md=\"12\"]){margin-right:100%}::slotted(av-grid-col[size_md=\"12\"]){width:100%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"0\"]){margin-left:0%}::slotted(av-grid-col[offset_right_lg=\"0\"]){margin-right:0%}::slotted(av-grid-col[size_lg=\"0\"]){width:0%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"1\"]){margin-left:8.3333333333%}::slotted(av-grid-col[offset_right_lg=\"1\"]){margin-right:8.3333333333%}::slotted(av-grid-col[size_lg=\"1\"]){width:8.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"2\"]){margin-left:16.6666666667%}::slotted(av-grid-col[offset_right_lg=\"2\"]){margin-right:16.6666666667%}::slotted(av-grid-col[size_lg=\"2\"]){width:16.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"3\"]){margin-left:25%}::slotted(av-grid-col[offset_right_lg=\"3\"]){margin-right:25%}::slotted(av-grid-col[size_lg=\"3\"]){width:25%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"4\"]){margin-left:33.3333333333%}::slotted(av-grid-col[offset_right_lg=\"4\"]){margin-right:33.3333333333%}::slotted(av-grid-col[size_lg=\"4\"]){width:33.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"5\"]){margin-left:41.6666666667%}::slotted(av-grid-col[offset_right_lg=\"5\"]){margin-right:41.6666666667%}::slotted(av-grid-col[size_lg=\"5\"]){width:41.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"6\"]){margin-left:50%}::slotted(av-grid-col[offset_right_lg=\"6\"]){margin-right:50%}::slotted(av-grid-col[size_lg=\"6\"]){width:50%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"7\"]){margin-left:58.3333333333%}::slotted(av-grid-col[offset_right_lg=\"7\"]){margin-right:58.3333333333%}::slotted(av-grid-col[size_lg=\"7\"]){width:58.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"8\"]){margin-left:66.6666666667%}::slotted(av-grid-col[offset_right_lg=\"8\"]){margin-right:66.6666666667%}::slotted(av-grid-col[size_lg=\"8\"]){width:66.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"9\"]){margin-left:75%}::slotted(av-grid-col[offset_right_lg=\"9\"]){margin-right:75%}::slotted(av-grid-col[size_lg=\"9\"]){width:75%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"10\"]){margin-left:83.3333333333%}::slotted(av-grid-col[offset_right_lg=\"10\"]){margin-right:83.3333333333%}::slotted(av-grid-col[size_lg=\"10\"]){width:83.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"11\"]){margin-left:91.6666666667%}::slotted(av-grid-col[offset_right_lg=\"11\"]){margin-right:91.6666666667%}::slotted(av-grid-col[size_lg=\"11\"]){width:91.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_lg=\"12\"]){margin-left:100%}::slotted(av-grid-col[offset_right_lg=\"12\"]){margin-right:100%}::slotted(av-grid-col[size_lg=\"12\"]){width:100%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"0\"]){margin-left:0%}::slotted(av-grid-col[offset_right_xl=\"0\"]){margin-right:0%}::slotted(av-grid-col[size_xl=\"0\"]){width:0%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"1\"]){margin-left:8.3333333333%}::slotted(av-grid-col[offset_right_xl=\"1\"]){margin-right:8.3333333333%}::slotted(av-grid-col[size_xl=\"1\"]){width:8.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"2\"]){margin-left:16.6666666667%}::slotted(av-grid-col[offset_right_xl=\"2\"]){margin-right:16.6666666667%}::slotted(av-grid-col[size_xl=\"2\"]){width:16.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"3\"]){margin-left:25%}::slotted(av-grid-col[offset_right_xl=\"3\"]){margin-right:25%}::slotted(av-grid-col[size_xl=\"3\"]){width:25%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"4\"]){margin-left:33.3333333333%}::slotted(av-grid-col[offset_right_xl=\"4\"]){margin-right:33.3333333333%}::slotted(av-grid-col[size_xl=\"4\"]){width:33.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"5\"]){margin-left:41.6666666667%}::slotted(av-grid-col[offset_right_xl=\"5\"]){margin-right:41.6666666667%}::slotted(av-grid-col[size_xl=\"5\"]){width:41.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"6\"]){margin-left:50%}::slotted(av-grid-col[offset_right_xl=\"6\"]){margin-right:50%}::slotted(av-grid-col[size_xl=\"6\"]){width:50%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"7\"]){margin-left:58.3333333333%}::slotted(av-grid-col[offset_right_xl=\"7\"]){margin-right:58.3333333333%}::slotted(av-grid-col[size_xl=\"7\"]){width:58.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"8\"]){margin-left:66.6666666667%}::slotted(av-grid-col[offset_right_xl=\"8\"]){margin-right:66.6666666667%}::slotted(av-grid-col[size_xl=\"8\"]){width:66.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"9\"]){margin-left:75%}::slotted(av-grid-col[offset_right_xl=\"9\"]){margin-right:75%}::slotted(av-grid-col[size_xl=\"9\"]){width:75%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"10\"]){margin-left:83.3333333333%}::slotted(av-grid-col[offset_right_xl=\"10\"]){margin-right:83.3333333333%}::slotted(av-grid-col[size_xl=\"10\"]){width:83.3333333333%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"11\"]){margin-left:91.6666666667%}::slotted(av-grid-col[offset_right_xl=\"11\"]){margin-right:91.6666666667%}::slotted(av-grid-col[size_xl=\"11\"]){width:91.6666666667%}}@media screen and (max-width: 100px){::slotted(av-grid-col[offset_xl=\"12\"]){margin-left:100%}::slotted(av-grid-col[offset_right_xl=\"12\"]){margin-right:100%}::slotted(av-grid-col[size_xl=\"12\"]){width:100%}}`;\n __getStatic() {\n return Grid;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Grid.__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 \"Grid\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('cols')){ this['cols'] = 12; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('cols');\r }\n}\nLayout.Grid.Namespace=`Aventus.Layout`;\nLayout.Grid.Tag=`av-grid`;\n_.Layout.Grid=Layout.Grid;\nif(!window.customElements.get('av-grid')){window.customElements.define('av-grid', Layout.Grid);Aventus.WebComponentInstance.registerDefinition(Layout.Grid);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true}],"fullName":"Aventus.Layout.Grid","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-grid"},{"code":"Layout.DynamicRow = class DynamicRow extends Aventus.WebComponent {\n get 'max_width'() { return this.getStringAttr('max_width') }\n set 'max_width'(val) { this.setStringAttr('max_width', val) }\r sizes = { \"xs\": 300, \"sm\": 540, \"md\": 720, \"lg\": 960, \"xl\": 1140 };\n static __style = `:host{display:flex;flex-wrap:wrap;flex-direction:row;width:100%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"0\"]){margin-left:0%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"0\"]){margin-right:0%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"0\"]){width:0%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"1\"]){margin-left:8.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"1\"]){margin-right:8.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"1\"]){width:8.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"2\"]){margin-left:16.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"2\"]){margin-right:16.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"2\"]){width:16.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"3\"]){margin-left:25%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"3\"]){margin-right:25%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"3\"]){width:25%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"4\"]){margin-left:33.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"4\"]){margin-right:33.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"4\"]){width:33.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"5\"]){margin-left:41.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"5\"]){margin-right:41.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"5\"]){width:41.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"6\"]){margin-left:50%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"6\"]){margin-right:50%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"6\"]){width:50%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"7\"]){margin-left:58.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"7\"]){margin-right:58.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"7\"]){width:58.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"8\"]){margin-left:66.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"8\"]){margin-right:66.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"8\"]){width:66.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"9\"]){margin-left:75%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"9\"]){margin-right:75%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"9\"]){width:75%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"10\"]){margin-left:83.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"10\"]){margin-right:83.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"10\"]){width:83.3333333333%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"11\"]){margin-left:91.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"11\"]){margin-right:91.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"11\"]){width:91.6666666667%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_xs=\"12\"]){margin-left:100%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[offset_right_xs=\"12\"]){margin-right:100%}:host([max_width=\"\"]) ::slotted(av-dynamic-col[size_xs=\"12\"]){width:100%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"0\"]){margin-left:0%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"0\"]){margin-right:0%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"0\"]){width:0%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"1\"]){margin-left:8.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"1\"]){margin-right:8.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"1\"]){width:8.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"2\"]){margin-left:16.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"2\"]){margin-right:16.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"2\"]){width:16.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"3\"]){margin-left:25%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"3\"]){margin-right:25%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"3\"]){width:25%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"4\"]){margin-left:33.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"4\"]){margin-right:33.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"4\"]){width:33.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"5\"]){margin-left:41.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"5\"]){margin-right:41.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"5\"]){width:41.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"6\"]){margin-left:50%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"6\"]){margin-right:50%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"6\"]){width:50%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"7\"]){margin-left:58.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"7\"]){margin-right:58.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"7\"]){width:58.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"8\"]){margin-left:66.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"8\"]){margin-right:66.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"8\"]){width:66.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"9\"]){margin-left:75%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"9\"]){margin-right:75%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"9\"]){width:75%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"10\"]){margin-left:83.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"10\"]){margin-right:83.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"10\"]){width:83.3333333333%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"11\"]){margin-left:91.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"11\"]){margin-right:91.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"11\"]){width:91.6666666667%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_xs=\"12\"]){margin-left:100%}:host([max_width~=xs]) ::slotted(av-dynamic-col[offset_right_xs=\"12\"]){margin-right:100%}:host([max_width~=xs]) ::slotted(av-dynamic-col[size_xs=\"12\"]){width:100%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"0\"]){margin-left:0%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"0\"]){margin-right:0%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"0\"]){width:0%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"1\"]){margin-left:8.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"1\"]){margin-right:8.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"1\"]){width:8.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"2\"]){margin-left:16.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"2\"]){margin-right:16.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"2\"]){width:16.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"3\"]){margin-left:25%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"3\"]){margin-right:25%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"3\"]){width:25%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"4\"]){margin-left:33.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"4\"]){margin-right:33.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"4\"]){width:33.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"5\"]){margin-left:41.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"5\"]){margin-right:41.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"5\"]){width:41.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"6\"]){margin-left:50%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"6\"]){margin-right:50%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"6\"]){width:50%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"7\"]){margin-left:58.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"7\"]){margin-right:58.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"7\"]){width:58.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"8\"]){margin-left:66.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"8\"]){margin-right:66.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"8\"]){width:66.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"9\"]){margin-left:75%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"9\"]){margin-right:75%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"9\"]){width:75%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"10\"]){margin-left:83.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"10\"]){margin-right:83.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"10\"]){width:83.3333333333%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"11\"]){margin-left:91.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"11\"]){margin-right:91.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"11\"]){width:91.6666666667%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_sm=\"12\"]){margin-left:100%}:host([max_width~=sm]) ::slotted(av-dynamic-col[offset_right_sm=\"12\"]){margin-right:100%}:host([max_width~=sm]) ::slotted(av-dynamic-col[size_sm=\"12\"]){width:100%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"0\"]){margin-left:0%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"0\"]){margin-right:0%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"0\"]){width:0%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"1\"]){margin-left:8.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"1\"]){margin-right:8.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"1\"]){width:8.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"2\"]){margin-left:16.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"2\"]){margin-right:16.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"2\"]){width:16.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"3\"]){margin-left:25%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"3\"]){margin-right:25%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"3\"]){width:25%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"4\"]){margin-left:33.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"4\"]){margin-right:33.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"4\"]){width:33.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"5\"]){margin-left:41.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"5\"]){margin-right:41.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"5\"]){width:41.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"6\"]){margin-left:50%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"6\"]){margin-right:50%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"6\"]){width:50%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"7\"]){margin-left:58.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"7\"]){margin-right:58.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"7\"]){width:58.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"8\"]){margin-left:66.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"8\"]){margin-right:66.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"8\"]){width:66.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"9\"]){margin-left:75%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"9\"]){margin-right:75%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"9\"]){width:75%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"10\"]){margin-left:83.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"10\"]){margin-right:83.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"10\"]){width:83.3333333333%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"11\"]){margin-left:91.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"11\"]){margin-right:91.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"11\"]){width:91.6666666667%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_md=\"12\"]){margin-left:100%}:host([max_width~=md]) ::slotted(av-dynamic-col[offset_right_md=\"12\"]){margin-right:100%}:host([max_width~=md]) ::slotted(av-dynamic-col[size_md=\"12\"]){width:100%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"0\"]){margin-left:0%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"0\"]){margin-right:0%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"0\"]){width:0%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"1\"]){margin-left:8.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"1\"]){margin-right:8.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"1\"]){width:8.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"2\"]){margin-left:16.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"2\"]){margin-right:16.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"2\"]){width:16.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"3\"]){margin-left:25%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"3\"]){margin-right:25%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"3\"]){width:25%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"4\"]){margin-left:33.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"4\"]){margin-right:33.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"4\"]){width:33.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"5\"]){margin-left:41.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"5\"]){margin-right:41.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"5\"]){width:41.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"6\"]){margin-left:50%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"6\"]){margin-right:50%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"6\"]){width:50%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"7\"]){margin-left:58.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"7\"]){margin-right:58.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"7\"]){width:58.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"8\"]){margin-left:66.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"8\"]){margin-right:66.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"8\"]){width:66.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"9\"]){margin-left:75%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"9\"]){margin-right:75%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"9\"]){width:75%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"10\"]){margin-left:83.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"10\"]){margin-right:83.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"10\"]){width:83.3333333333%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"11\"]){margin-left:91.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"11\"]){margin-right:91.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"11\"]){width:91.6666666667%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_lg=\"12\"]){margin-left:100%}:host([max_width~=lg]) ::slotted(av-dynamic-col[offset_right_lg=\"12\"]){margin-right:100%}:host([max_width~=lg]) ::slotted(av-dynamic-col[size_lg=\"12\"]){width:100%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"0\"]){margin-left:0%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"0\"]){margin-right:0%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"0\"]){width:0%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"1\"]){margin-left:8.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"1\"]){margin-right:8.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"1\"]){width:8.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"2\"]){margin-left:16.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"2\"]){margin-right:16.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"2\"]){width:16.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"3\"]){margin-left:25%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"3\"]){margin-right:25%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"3\"]){width:25%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"4\"]){margin-left:33.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"4\"]){margin-right:33.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"4\"]){width:33.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"5\"]){margin-left:41.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"5\"]){margin-right:41.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"5\"]){width:41.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"6\"]){margin-left:50%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"6\"]){margin-right:50%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"6\"]){width:50%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"7\"]){margin-left:58.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"7\"]){margin-right:58.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"7\"]){width:58.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"8\"]){margin-left:66.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"8\"]){margin-right:66.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"8\"]){width:66.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"9\"]){margin-left:75%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"9\"]){margin-right:75%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"9\"]){width:75%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"10\"]){margin-left:83.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"10\"]){margin-right:83.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"10\"]){width:83.3333333333%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"11\"]){margin-left:91.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"11\"]){margin-right:91.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"11\"]){width:91.6666666667%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_xl=\"12\"]){margin-left:100%}:host([max_width~=xl]) ::slotted(av-dynamic-col[offset_right_xl=\"12\"]){margin-right:100%}:host([max_width~=xl]) ::slotted(av-dynamic-col[size_xl=\"12\"]){width:100%}`;\n __getStatic() {\n return DynamicRow;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(DynamicRow.__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 \"DynamicRow\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('max_width')){ this['max_width'] = undefined; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('max_width');\r }\n calculateWidth() {\n let size = this.offsetWidth;\n let labels = [];\n for (let key in this.sizes) {\n let value = this.sizes[key];\n if (size > value) {\n labels.push(key);\n }\n else {\n break;\n }\n }\n this.max_width = labels.join(\" \");\n }\n postCreation() {\n this.calculateWidth();\n new Aventus.ResizeObserver(entries => {\n this.calculateWidth();\n }).observe(this);\n }\n}\nLayout.DynamicRow.Namespace=`Aventus.Layout`;\nLayout.DynamicRow.Tag=`av-dynamic-row`;\n_.Layout.DynamicRow=Layout.DynamicRow;\nif(!window.customElements.get('av-dynamic-row')){window.customElements.define('av-dynamic-row', Layout.DynamicRow);Aventus.WebComponentInstance.registerDefinition(Layout.DynamicRow);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false}],"fullName":"Aventus.Layout.DynamicRow","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-dynamic-row"},{"code":"Layout.DynamicCol = class DynamicCol extends Aventus.WebComponent {\n get 'size'() { return this.getNumberAttr('size') }\n set 'size'(val) { this.setNumberAttr('size', val) }\rget 'size_xs'() { return this.getNumberAttr('size_xs') }\n set 'size_xs'(val) { this.setNumberAttr('size_xs', val) }\rget 'size_sm'() { return this.getNumberAttr('size_sm') }\n set 'size_sm'(val) { this.setNumberAttr('size_sm', val) }\rget 'size_md'() { return this.getNumberAttr('size_md') }\n set 'size_md'(val) { this.setNumberAttr('size_md', val) }\rget 'size_lg'() { return this.getNumberAttr('size_lg') }\n set 'size_lg'(val) { this.setNumberAttr('size_lg', val) }\rget 'size_xl'() { return this.getNumberAttr('size_xl') }\n set 'size_xl'(val) { this.setNumberAttr('size_xl', val) }\rget 'offset'() { return this.getNumberAttr('offset') }\n set 'offset'(val) { this.setNumberAttr('offset', val) }\rget 'offset_xs'() { return this.getNumberAttr('offset_xs') }\n set 'offset_xs'(val) { this.setNumberAttr('offset_xs', val) }\rget 'offset_sm'() { return this.getNumberAttr('offset_sm') }\n set 'offset_sm'(val) { this.setNumberAttr('offset_sm', val) }\rget 'offset_md'() { return this.getNumberAttr('offset_md') }\n set 'offset_md'(val) { this.setNumberAttr('offset_md', val) }\rget 'offset_lg'() { return this.getNumberAttr('offset_lg') }\n set 'offset_lg'(val) { this.setNumberAttr('offset_lg', val) }\rget 'offset_xl'() { return this.getNumberAttr('offset_xl') }\n set 'offset_xl'(val) { this.setNumberAttr('offset_xl', val) }\rget 'offset_right'() { return this.getNumberAttr('offset_right') }\n set 'offset_right'(val) { this.setNumberAttr('offset_right', val) }\rget 'offset_right_xs'() { return this.getNumberAttr('offset_right_xs') }\n set 'offset_right_xs'(val) { this.setNumberAttr('offset_right_xs', val) }\rget 'offset_right_sm'() { return this.getNumberAttr('offset_right_sm') }\n set 'offset_right_sm'(val) { this.setNumberAttr('offset_right_sm', val) }\rget 'offset_right_md'() { return this.getNumberAttr('offset_right_md') }\n set 'offset_right_md'(val) { this.setNumberAttr('offset_right_md', val) }\rget 'offset_right_lg'() { return this.getNumberAttr('offset_right_lg') }\n set 'offset_right_lg'(val) { this.setNumberAttr('offset_right_lg', val) }\rget 'offset_right_xl'() { return this.getNumberAttr('offset_right_xl') }\n set 'offset_right_xl'(val) { this.setNumberAttr('offset_right_xl', val) }\rget 'nobreak'() { return this.getBoolAttr('nobreak') }\n set 'nobreak'(val) { this.setBoolAttr('nobreak', val) }\rget 'center'() { return this.getBoolAttr('center') }\n set 'center'(val) { this.setBoolAttr('center', val) }\r static __style = `:host{display:flex;flex-direction:column;padding:0 10px;width:100%;margin-left:0;margin-right:0}:host([nobreak]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host([center]){text-align:center}:host([size=\"0\"]){width:0%;display:flex}:host([offset=\"0\"]){margin-left:0%}:host([offset-right=\"0\"]){margin-right:0%}:host([size=\"1\"]){width:8.3333333333%;display:flex}:host([offset=\"1\"]){margin-left:8.3333333333%}:host([offset-right=\"1\"]){margin-right:8.3333333333%}:host([size=\"2\"]){width:16.6666666667%;display:flex}:host([offset=\"2\"]){margin-left:16.6666666667%}:host([offset-right=\"2\"]){margin-right:16.6666666667%}:host([size=\"3\"]){width:25%;display:flex}:host([offset=\"3\"]){margin-left:25%}:host([offset-right=\"3\"]){margin-right:25%}:host([size=\"4\"]){width:33.3333333333%;display:flex}:host([offset=\"4\"]){margin-left:33.3333333333%}:host([offset-right=\"4\"]){margin-right:33.3333333333%}:host([size=\"5\"]){width:41.6666666667%;display:flex}:host([offset=\"5\"]){margin-left:41.6666666667%}:host([offset-right=\"5\"]){margin-right:41.6666666667%}:host([size=\"6\"]){width:50%;display:flex}:host([offset=\"6\"]){margin-left:50%}:host([offset-right=\"6\"]){margin-right:50%}:host([size=\"7\"]){width:58.3333333333%;display:flex}:host([offset=\"7\"]){margin-left:58.3333333333%}:host([offset-right=\"7\"]){margin-right:58.3333333333%}:host([size=\"8\"]){width:66.6666666667%;display:flex}:host([offset=\"8\"]){margin-left:66.6666666667%}:host([offset-right=\"8\"]){margin-right:66.6666666667%}:host([size=\"9\"]){width:75%;display:flex}:host([offset=\"9\"]){margin-left:75%}:host([offset-right=\"9\"]){margin-right:75%}:host([size=\"10\"]){width:83.3333333333%;display:flex}:host([offset=\"10\"]){margin-left:83.3333333333%}:host([offset-right=\"10\"]){margin-right:83.3333333333%}:host([size=\"11\"]){width:91.6666666667%;display:flex}:host([offset=\"11\"]){margin-left:91.6666666667%}:host([offset-right=\"11\"]){margin-right:91.6666666667%}:host([size=\"12\"]){width:100%;display:flex}:host([offset=\"12\"]){margin-left:100%}:host([offset-right=\"12\"]){margin-right:100%}`;\n __getStatic() {\n return DynamicCol;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(DynamicCol.__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 \"DynamicCol\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('size')){ this['size'] = undefined; }\rif(!this.hasAttribute('size_xs')){ this['size_xs'] = undefined; }\rif(!this.hasAttribute('size_sm')){ this['size_sm'] = undefined; }\rif(!this.hasAttribute('size_md')){ this['size_md'] = undefined; }\rif(!this.hasAttribute('size_lg')){ this['size_lg'] = undefined; }\rif(!this.hasAttribute('size_xl')){ this['size_xl'] = undefined; }\rif(!this.hasAttribute('offset')){ this['offset'] = undefined; }\rif(!this.hasAttribute('offset_xs')){ this['offset_xs'] = undefined; }\rif(!this.hasAttribute('offset_sm')){ this['offset_sm'] = undefined; }\rif(!this.hasAttribute('offset_md')){ this['offset_md'] = undefined; }\rif(!this.hasAttribute('offset_lg')){ this['offset_lg'] = undefined; }\rif(!this.hasAttribute('offset_xl')){ this['offset_xl'] = undefined; }\rif(!this.hasAttribute('offset_right')){ this['offset_right'] = undefined; }\rif(!this.hasAttribute('offset_right_xs')){ this['offset_right_xs'] = undefined; }\rif(!this.hasAttribute('offset_right_sm')){ this['offset_right_sm'] = undefined; }\rif(!this.hasAttribute('offset_right_md')){ this['offset_right_md'] = undefined; }\rif(!this.hasAttribute('offset_right_lg')){ this['offset_right_lg'] = undefined; }\rif(!this.hasAttribute('offset_right_xl')){ this['offset_right_xl'] = undefined; }\rif(!this.hasAttribute('nobreak')) { this.attributeChangedCallback('nobreak', false, false); }\rif(!this.hasAttribute('center')) { this.attributeChangedCallback('center', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('size');\rthis.__upgradeProperty('size_xs');\rthis.__upgradeProperty('size_sm');\rthis.__upgradeProperty('size_md');\rthis.__upgradeProperty('size_lg');\rthis.__upgradeProperty('size_xl');\rthis.__upgradeProperty('offset');\rthis.__upgradeProperty('offset_xs');\rthis.__upgradeProperty('offset_sm');\rthis.__upgradeProperty('offset_md');\rthis.__upgradeProperty('offset_lg');\rthis.__upgradeProperty('offset_xl');\rthis.__upgradeProperty('offset_right');\rthis.__upgradeProperty('offset_right_xs');\rthis.__upgradeProperty('offset_right_sm');\rthis.__upgradeProperty('offset_right_md');\rthis.__upgradeProperty('offset_right_lg');\rthis.__upgradeProperty('offset_right_xl');\rthis.__upgradeProperty('nobreak');\rthis.__upgradeProperty('center');\r }\n __listBoolProps() { return [\"nobreak\",\"center\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n}\nLayout.DynamicCol.Namespace=`Aventus.Layout`;\nLayout.DynamicCol.Tag=`av-dynamic-col`;\n_.Layout.DynamicCol=Layout.DynamicCol;\nif(!window.customElements.get('av-dynamic-col')){window.customElements.define('av-dynamic-col', Layout.DynamicCol);Aventus.WebComponentInstance.registerDefinition(Layout.DynamicCol);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false}],"fullName":"Aventus.Layout.DynamicCol","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-dynamic-col"},{"code":"const Collapse = class Collapse extends Aventus.WebComponent {\n get 'open'() { return this.getBoolAttr('open') }\n set 'open'(val) { this.setBoolAttr('open', val) }\rget 'no_animation'() { return this.getBoolAttr('no_animation') }\n set 'no_animation'(val) { this.setBoolAttr('no_animation', val) }\r 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;grid-template-rows:0fr;transition-duration:var(--_collapse-transition-duration);transition-timing-function:var(--_collapse-transition-timing-function);transition-property:grid-template-rows}:host .collapse .content{overflow:hidden}:host([open]) .collapse{grid-template-rows:1fr}:host([no_animation]) .collapse{transition:none}`;\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();\rthis.__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});\r }\n getClassName() {\n return \"Collapse\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('open')) { this.attributeChangedCallback('open', false, false); }\rif(!this.hasAttribute('no_animation')) { this.attributeChangedCallback('no_animation', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('open');\rthis.__upgradeProperty('no_animation');\r }\n __listBoolProps() { return [\"open\",\"no_animation\"].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_.Collapse=Collapse;\nif(!window.customElements.get('av-collapse')){window.customElements.define('av-collapse', Collapse);Aventus.WebComponentInstance.registerDefinition(Collapse);}\n","dependances":[{"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"},{"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) }\r get 'src'() { return this.getStringProp('src') }\n set 'src'(val) { this.setStringAttr('src', val) }\rget 'mode'() { return this.getStringProp('mode') }\n set 'mode'(val) { this.setStringAttr('mode', val) }\r isCalculing;\n maxCalculateSize = 10;\n ratio = 1;\n resizeObserver;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"src\", ((target) => {\n target.onSrcChanged();\n}));\rthis.__addPropertyActions(\"mode\", ((target) => {\n if (target.src != \"\") {\n target.calculateSize();\n }\n}));\r }\n static __style = `:host{--internal-img-color: var(--img-color);--internal-img-stroke-color: var(--img-stroke-color, var(--internal-img-color));--internal-img-fill-color: var(--img-fill-color, var(--internal-img-color));--internal-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(--internal-img-color-transition);stroke:var(--internal-img-stroke-color);fill:var(--internal-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();\rthis.__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});\r }\n getClassName() {\n return \"Img\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('cache')) { this.attributeChangedCallback('cache', false, false); }\rif(!this.hasAttribute('src')){ this['src'] = undefined; }\rif(!this.hasAttribute('mode')){ this['mode'] = \"contains\"; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('cache');\rthis.__upgradeProperty('src');\rthis.__upgradeProperty('mode');\r }\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_.Img=Img;\nif(!window.customElements.get('av-img')){window.customElements.define('av-img', Img);Aventus.WebComponentInstance.registerDefinition(Img);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.ResourceLoader","isStrong":false}],"fullName":"Aventus.Img","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-img"},{"code":"Form.Form = class Form extends Aventus.WebComponent {\n static __style = ``;\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}\nForm.Form.Namespace=`Aventus.Form`;\nForm.Form.Tag=`av-form`;\n_.Form.Form=Form.Form;\nif(!window.customElements.get('av-form')){window.customElements.define('av-form', Form.Form);Aventus.WebComponentInstance.registerDefinition(Form.Form);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true}],"fullName":"Aventus.Form.Form","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-form"},{"code":"Form.Input = class Input extends Aventus.WebComponent {\n static get observedAttributes() {return [\"value\", \"label\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'required'() { return this.getBoolAttr('required') }\n set 'required'(val) { this.setBoolAttr('required', val) }\rget 'disabled'() { return this.getBoolAttr('disabled') }\n set 'disabled'(val) { this.setBoolAttr('disabled', val) }\rget 'min_length'() { return this.getNumberAttr('min_length') }\n set 'min_length'(val) { this.setNumberAttr('min_length', val) }\rget 'max_length'() { return this.getNumberAttr('max_length') }\n set 'max_length'(val) { this.setNumberAttr('max_length', val) }\rget 'pattern'() { return this.getStringAttr('pattern') }\n set 'pattern'(val) { this.setStringAttr('pattern', val) }\r get 'value'() { return this.getStringProp('value') }\n set 'value'(val) { this.setStringAttr('value', val) }\rget 'label'() { return this.getStringProp('label') }\n set 'label'(val) { this.setStringAttr('label', val) }\r customValidationRules = [];\n onChange = new Aventus.Callback();\n errors = [];\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"value\", ((target) => {\n target.onAttrChange();\n}));\r }\n static __style = `:host{--internal-input-font-size: var(--input-font-size, 16px);--internal-input-label-font-size: var(--input-label-font-size, 12px);--internal-input-label-spacing: var(--input-label-spacing, 2px)}:host{margin:16px;position:relative}:host input{background-color:rgba(0,0,0,0);background-image:linear-gradient(#3d5afe, #3d5afe),linear-gradient(to top, transparent 1px, #afafaf 1px);background-position:center bottom;background-repeat:no-repeat;background-size:0% 2px,100% 2px;border:none;border-radius:0;color:#212121;display:inline-block;font:inherit;font-size:var(--internal-input-font-size);font-weight:400;margin:0;outline:none;padding:0;padding-bottom:2px;padding-top:calc(var(--internal-input-label-font-size) + var(--internal-input-label-spacing));touch-action:manipulation;-webkit-transform:translate3d(0, 0, 0);user-select:auto;vertical-align:middle;width:100%}:host input:focus{background-size:100% 2px,100% 2px;transition:background-size .3s ease}:host label{color:#3d5afe;font-size:var(--internal-input-label-font-size);-webkit-font-smoothing:antialiased;font-weight:400;left:0;pointer-events:none;position:absolute;top:0;transition:top .1s ease-in,color .1s ease-in,font-size .1s ease-in;user-select:none}:host .grid{display:grid;grid-template-rows:1fr}:host .error{color:red;display:grid;font-size:12px;margin-top:5px;transition:all linear .5s;grid-column:1;grid-row:1}:host([value=\"\"]) label{color:#afafaf;font-size:var(--internal-input-font-size);top:calc(var(--internal-input-label-font-size) + var(--internal-input-label-spacing))}`;\n __getStatic() {\n return Input;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Input.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<input id=\"input\" _id=\"input_0\" /><label for=\"input\" _id=\"input_1\"></label><div class=\"grid\">\r\t<div class=\"error\" _id=\"input_2\"></div>\r</div>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"inputEl\",\n \"ids\": [\n \"input_0\"\n ]\n },\n {\n \"name\": \"errorEl\",\n \"ids\": [\n \"input_2\"\n ]\n }\n ],\n \"content\": {\n \"input_1°@HTML\": {\n \"fct\": (c) => `${c.print(c.comp.__c3d0451e83f327f9ac50560c1fff4e87method0())}`,\n \"once\": true\n }\n },\n \"events\": [\n {\n \"eventName\": \"blur\",\n \"id\": \"input_0\",\n \"fct\": (e, c) => c.comp.validate(e)\n },\n {\n \"eventName\": \"focus\",\n \"id\": \"input_0\",\n \"fct\": (e, c) => c.comp.clearErrors(e)\n },\n {\n \"eventName\": \"input\",\n \"id\": \"input_0\",\n \"fct\": (e, c) => c.comp.inputChange(e)\n }\n ]\n});\r }\n getClassName() {\n return \"Input\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('required')) { this.attributeChangedCallback('required', false, false); }\rif(!this.hasAttribute('disabled')) { this.attributeChangedCallback('disabled', false, false); }\rif(!this.hasAttribute('min_length')){ this['min_length'] = undefined; }\rif(!this.hasAttribute('max_length')){ this['max_length'] = undefined; }\rif(!this.hasAttribute('pattern')){ this['pattern'] = undefined; }\rif(!this.hasAttribute('value')){ this['value'] = \"\"; }\rif(!this.hasAttribute('label')){ this['label'] = \"\"; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('required');\rthis.__upgradeProperty('disabled');\rthis.__upgradeProperty('min_length');\rthis.__upgradeProperty('max_length');\rthis.__upgradeProperty('pattern');\rthis.__upgradeProperty('value');\rthis.__upgradeProperty('label');\r }\n __listBoolProps() { return [\"required\",\"disabled\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n onAttrChange() {\n if (this.inputEl && this.inputEl.value != this.value) {\n this.inputEl.value = this.value;\n }\n this.validate();\n }\n inputChange() {\n this.validate();\n if (this.inputEl && this.inputEl.value != this.value) {\n this.value = this.inputEl.value;\n this.onChange.trigger([this.value]);\n }\n }\n addValidationRule(cb) {\n if (this.customValidationRules.includes(cb)) {\n this.customValidationRules.push(cb);\n }\n }\n removeValidationRule(cb) {\n let index = this.customValidationRules.indexOf(cb);\n if (index > -1) {\n this.customValidationRules.slice(index, 1);\n }\n }\n addError(msg) {\n this.errors.push(msg);\n }\n clearErrors() {\n this.errors = [];\n this.printErrors();\n }\n printErrors() {\n if (this.errorEl) {\n this.errorEl.innerHTML = this.errors.join(\"<br />\");\n }\n }\n validate() {\n this.errors = [];\n if (!this.isReady) {\n return false;\n }\n if (this.disabled) {\n return true;\n }\n if (this.required) {\n if (!this.value) {\n this.addError(\"The field is required\");\n this.printErrors();\n return false;\n }\n }\n if (this.min_length) {\n if (this.value.length < this.min_length) {\n this.addError(\"The length must be at least \" + this.min_length + \" characters\");\n }\n }\n if (this.max_length) {\n if (this.value.length > this.max_length) {\n this.addError(\"The length must be less thant \" + this.max_length + \" characters\");\n }\n }\n if (this.pattern) {\n let reg = new RegExp(this.pattern);\n if (!this.value.match(reg)) {\n this.addError(\"The field isn't valide\");\n }\n }\n for (let fct of this.customValidationRules) {\n let result = fct(this.value);\n if (result instanceof Object) {\n if (!result.success) {\n this.addError(result.error);\n }\n }\n else if (!result) {\n this.addError(\"The field isn't valide\");\n }\n }\n this.printErrors();\n return this.errors.length == 0;\n }\n __c3d0451e83f327f9ac50560c1fff4e87method0() {\n return this.label;\n }\n}\nForm.Input.Namespace=`Aventus.Form`;\nForm.Input.Tag=`av-input`;\n_.Form.Input=Form.Input;\nif(!window.customElements.get('av-input')){window.customElements.define('av-input', Form.Input);Aventus.WebComponentInstance.registerDefinition(Form.Input);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.form.FormElement","isStrong":true},{"fullName":"Aventus.Form.Input","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"NotVoid","isStrong":false}],"fullName":"Aventus.Form.Input","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-input"},{"code":"Form.Checkbox = class Checkbox extends Aventus.WebComponent {\n static get observedAttributes() {return [\"label\", \"checked\"].concat(super.observedAttributes).filter((v, i, a) => a.indexOf(v) === i);}\n get 'disabled'() { return this.getBoolAttr('disabled') }\n set 'disabled'(val) { this.setBoolAttr('disabled', val) }\rget 'reverse'() { return this.getBoolAttr('reverse') }\n set 'reverse'(val) { this.setBoolAttr('reverse', val) }\r get 'label'() { return this.getStringProp('label') }\n set 'label'(val) { this.setStringAttr('label', val) }\rget 'checked'() { return this.getBoolProp('checked') }\n set 'checked'(val) { this.setBoolAttr('checked', val) }\r 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}\r onChange = new Aventus.Callback();\n __registerWatchesActions() {\n this.__addWatchesActions(\"value\", ((target) => {\n target.syncValue('value');\n}));\r super.__registerWatchesActions();\n}\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"checked\", ((target) => {\n target.syncValue('checked');\n}));\r }\n static __style = `:host{--internal-checkbox-size: var(--checkbox-size, 18px);--internal-checkbox-label-space: var(--checkbox-label-space, 8px);--internal-checkbox-border-size: var(--checkbox-border-size, 2px);--internal-checkbox-tick-size: var(--checkbox-tick-size, var(--internal-checkbox-size));--internal-checkbox-tick-stroke-size: var(--checkbox-tick-stroke-size, 2px);--internal-checkbox-border-radius: var(--checkbox-border-radius, 2px)}:host{color:#212121;cursor:pointer;display:flex;font-family:inherit;-webkit-font-smoothing:antialiased;font-weight:400;position:relative;user-select:none;align-items:center}:host .checkbox{align-items:center;border:var(--internal-checkbox-border-size) solid #37474f;border-radius:var(--internal-checkbox-border-radius);display:flex;height:var(--internal-checkbox-size);justify-content:center;overflow:visible;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:background-color .1s linear;width:var(--internal-checkbox-size)}:host .checkbox .tick{flex-shrink:0;height:var(--internal-checkbox-tick-size);stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:var(--internal-checkbox-tick-stroke-size);transform:scale(0);transition:transform .2s ease;width:var(--internal-checkbox-tick-size)}:host label:not(:empty){cursor:pointer;margin-left:var(--internal-checkbox-label-space)}:host([checked]) .checkbox{background-color:#37474f}:host([checked]) .checkbox .tick{transform:scale(1)}:host([reverse]) .checkbox{order:2}:host([reverse]) label:not(:empty){order:1;margin-right:var(--internal-checkbox-label-space);margin-left:0}`;\n __getStatic() {\n return Checkbox;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(Checkbox.__style);\n return arrStyle;\n }\n __getHtml() {\n this.__getStatic().__template.setHTML({\n blocks: { 'default':`<span class=\"checkbox\" _id=\"checkbox_0\">\r\t<svg class=\"tick\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\t\t<path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\"></path>\r\t</svg>\r</span><label _id=\"checkbox_1\"></label>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"checkboxEl\",\n \"ids\": [\n \"checkbox_0\"\n ]\n }\n ],\n \"content\": {\n \"checkbox_1°@HTML\": {\n \"fct\": (c) => `${c.print(c.comp.__5c369bf990a8d72e34b101c6013f3aecmethod0())}`,\n \"once\": true\n }\n }\n});\r }\n getClassName() {\n return \"Checkbox\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('disabled')) { this.attributeChangedCallback('disabled', false, false); }\rif(!this.hasAttribute('reverse')) { this.attributeChangedCallback('reverse', false, false); }\rif(!this.hasAttribute('label')){ this['label'] = \"\"; }\rif(!this.hasAttribute('checked')) { this.attributeChangedCallback('checked', false, false); }\r }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"value\"] = false;\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('disabled');\rthis.__upgradeProperty('reverse');\rthis.__upgradeProperty('label');\rthis.__upgradeProperty('checked');\rthis.__correctGetter('value');\r }\n __listBoolProps() { return [\"disabled\",\"reverse\",\"checked\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n syncValue(master) {\n if (this.checked != this.value) {\n if (master == 'checked') {\n this.value = this.checked ?? false;\n }\n else {\n this.checked = this.value;\n }\n }\n if (this.checkboxEl && this.checkboxEl?.checked != this.checked) {\n this.checkboxEl.checked = this.checked ?? false;\n }\n }\n validate() {\n return true;\n }\n postCreation() {\n new Aventus.PressManager({\n element: this,\n onPress: () => {\n this.checked = !this.checked;\n this.onChange.trigger([this.checked]);\n }\n });\n }\n __5c369bf990a8d72e34b101c6013f3aecmethod0() {\n return this.label;\n }\n}\nForm.Checkbox.Namespace=`Aventus.Form`;\nForm.Checkbox.Tag=`av-checkbox`;\n_.Form.Checkbox=Form.Checkbox;\nif(!window.customElements.get('av-checkbox')){window.customElements.define('av-checkbox', Form.Checkbox);Aventus.WebComponentInstance.registerDefinition(Form.Checkbox);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.form.FormElement","isStrong":true},{"fullName":"Aventus.Form.Checkbox","isStrong":false},{"fullName":"Watch","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"NotVoid","isStrong":false}],"fullName":"Aventus.Form.Checkbox","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-checkbox"},{"code":"let TouchRecord=class TouchRecord {\n _activeTouchID;\n _touchList = {};\n get _primitiveValue() {\n return { x: 0, y: 0 };\n }\n isActive() {\n return this._activeTouchID !== undefined;\n }\n getDelta() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.delta };\n }\n getVelocity() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.velocity };\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 const dirs = Object.keys(vel);\n for (let dir of dirs) {\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 track(evt) {\n const { targetTouches, } = evt;\n const touches = Array.from(targetTouches);\n for (let touch of touches) {\n this._add(touch);\n }\n return this._touchList;\n }\n update(evt) {\n const { touches, changedTouches, } = evt;\n const touchesArray = Array.from(touches);\n for (let touch of touchesArray) {\n this._renew(touch);\n }\n this._setActiveID(changedTouches);\n return this._touchList;\n }\n release(evt) {\n delete this._activeTouchID;\n const touchesArray = Array.from(evt.changedTouches);\n for (let touch of touchesArray) {\n this._delete(touch);\n }\n }\n _add(touch) {\n if (this._has(touch)) {\n this._delete(touch);\n }\n const tracker = new Tracker(touch);\n this._touchList[touch.identifier] = tracker;\n }\n _renew(touch) {\n if (!this._has(touch)) {\n return;\n }\n const tracker = this._touchList[touch.identifier];\n tracker.update(touch);\n }\n _delete(touch) {\n delete this._touchList[touch.identifier];\n }\n _has(touch) {\n return this._touchList.hasOwnProperty(touch.identifier);\n }\n _setActiveID(touches) {\n this._activeTouchID = touches[touches.length - 1].identifier;\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`;\r\n_.TouchRecord=TouchRecord;\r\n","dependances":[{"fullName":"Aventus.Tracker","isStrong":false},{"fullName":"Touch","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 'y_scroll_visible'() { return this.getBoolAttr('y_scroll_visible') }\n set 'y_scroll_visible'(val) { this.setBoolAttr('y_scroll_visible', val) }\rget 'x_scroll_visible'() { return this.getBoolAttr('x_scroll_visible') }\n set 'x_scroll_visible'(val) { this.setBoolAttr('x_scroll_visible', val) }\rget 'floating_scroll'() { return this.getBoolAttr('floating_scroll') }\n set 'floating_scroll'(val) { this.setBoolAttr('floating_scroll', val) }\rget 'x_scroll'() { return this.getBoolAttr('x_scroll') }\n set 'x_scroll'(val) { this.setBoolAttr('x_scroll', val) }\rget 'y_scroll'() { return this.getBoolAttr('y_scroll') }\n set 'y_scroll'(val) { this.setBoolAttr('y_scroll', val) }\rget 'auto_hide'() { return this.getBoolAttr('auto_hide') }\n set 'auto_hide'(val) { this.setBoolAttr('auto_hide', val) }\rget 'break'() { return this.getNumberAttr('break') }\n set 'break'(val) { this.setNumberAttr('break', val) }\rget 'disable'() { return this.getBoolAttr('disable') }\n set 'disable'(val) { this.setBoolAttr('disable', val) }\rget 'no_user_select'() { return this.getBoolAttr('no_user_select') }\n set 'no_user_select'(val) { this.setBoolAttr('no_user_select', val) }\r get 'zoom'() { return this.getNumberProp('zoom') }\n set 'zoom'(val) { this.setNumberAttr('zoom', val) }\r observer;\n display = { x: 0, y: 0 };\n _max = {\n x: 0,\n y: 0\n };\n get max() {\n return {\n x: this._max.x,\n y: this._max.y,\n };\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 savedBreak = 1;\n get x() {\n return this.position.x;\n }\n get y() {\n return this.position.y;\n }\n onScrollChange = new Aventus.Callback();\n renderAnimation;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"zoom\", ((target) => {\n target.changeZoom();\n}));\r }\n static __style = `:host{--internal-scrollbar-container-color: var(--scrollbar-container-color, transparent);--internal-scrollbar-color: var(--scrollbar-color, #757575);--internal-scrollbar-active-color: var(--scrollbar-active-color, #858585);--internal-scroller-width: var(--scroller-width, 6px);--internal-scroller-top: var(--scroller-top, 3px);--internal-scroller-bottom: var(--scroller-bottom, 3px);--internal-scroller-right: var(--scroller-right, 3px);--internal-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:hidden;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:hidden;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(--internal-scrollbar-container-color);border-radius:5px}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller .scroller{background-color:var(--internal-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(--internal-scrollbar-active-color)}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical{height:calc(100% - var(--internal-scroller-bottom)*2 - var(--internal-scroller-width));padding-left:var(--internal-scroller-left);right:var(--internal-scroller-right);top:var(--internal-scroller-bottom);transform:0;width:calc(var(--internal-scroller-width) + var(--internal-scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical.hide{transform:translateX(calc(var(--internal-scroller-width) + var(--internal-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(--internal-scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal{bottom:var(--internal-scroller-bottom);height:calc(var(--internal-scroller-width) + var(--internal-scroller-top));left:var(--internal-scroller-right);padding-top:var(--internal-scroller-top);transform:0;width:calc(100% - var(--internal-scroller-right)*2 - var(--internal-scroller-width))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal.hide{transform:translateY(calc(var(--internal-scroller-width) + var(--internal-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(--internal-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}`;\n constructor() {\r super();\r this.renderAnimation = this.createAnimation();\r this.onWheel = this.onWheel.bind(this);\r this.onTouchStart = this.onTouchStart.bind(this);\r this.onTouchMove = this.onTouchMove.bind(this);\r this.onTouchEnd = this.onTouchEnd.bind(this);\r this.touchRecord = new TouchRecord();\r }\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();\rthis.__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});\r }\n getClassName() {\n return \"Scrollable\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('y_scroll_visible')) { this.attributeChangedCallback('y_scroll_visible', false, false); }\rif(!this.hasAttribute('x_scroll_visible')) { this.attributeChangedCallback('x_scroll_visible', false, false); }\rif(!this.hasAttribute('floating_scroll')) { this.attributeChangedCallback('floating_scroll', false, false); }\rif(!this.hasAttribute('x_scroll')) { this.attributeChangedCallback('x_scroll', false, false); }\rif(!this.hasAttribute('y_scroll')) {this.setAttribute('y_scroll' ,'true'); }\rif(!this.hasAttribute('auto_hide')) { this.attributeChangedCallback('auto_hide', false, false); }\rif(!this.hasAttribute('break')){ this['break'] = 0.1; }\rif(!this.hasAttribute('disable')) { this.attributeChangedCallback('disable', false, false); }\rif(!this.hasAttribute('no_user_select')) { this.attributeChangedCallback('no_user_select', false, false); }\rif(!this.hasAttribute('zoom')){ this['zoom'] = 1; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('max');\rthis.__correctGetter('x');\rthis.__correctGetter('y');\rthis.__upgradeProperty('y_scroll_visible');\rthis.__upgradeProperty('x_scroll_visible');\rthis.__upgradeProperty('floating_scroll');\rthis.__upgradeProperty('x_scroll');\rthis.__upgradeProperty('y_scroll');\rthis.__upgradeProperty('auto_hide');\rthis.__upgradeProperty('break');\rthis.__upgradeProperty('disable');\rthis.__upgradeProperty('no_user_select');\rthis.__upgradeProperty('zoom');\r }\n __listBoolProps() { return [\"y_scroll_visible\",\"x_scroll_visible\",\"floating_scroll\",\"x_scroll\",\"y_scroll\",\"auto_hide\",\"disable\",\"no_user_select\"].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 let nextMomentum = remain * (1 - this.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.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 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 scrollY(y) {\n this.scrollDirection('y', y);\n }\n addAction() {\n this.addEventListener(\"wheel\", this.onWheel);\n this.addEventListener(\"touchstart\", this.onTouchStart);\n this.addEventListener(\"touchmove\", this.onTouchMove);\n this.addEventListener(\"touchcancel\", this.onTouchEnd);\n this.addEventListener(\"touchend\", this.onTouchEnd);\n this.addScrollDrag('x');\n this.addScrollDrag('y');\n }\n addScrollDrag(direction) {\n let scroller = this.scroller[direction]();\n scroller.addEventListener(\"touchstart\", (e) => {\n e.stopPropagation();\n });\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.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 }\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 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 if ((newValue.x > 0 && this.x != this.max.x) ||\n (newValue.x <= 0 && this.x != 0)) {\n e.stopPropagation();\n }\n }\n else {\n if ((newValue.y > 0 && this.y != this.max.y) ||\n (newValue.y <= 0 && this.y != 0)) {\n e.stopPropagation();\n }\n }\n this.addDelta(newValue);\n }\n onTouchStart(e) {\n this.touchRecord.track(e);\n this.momentum = {\n x: 0,\n y: 0\n };\n if (this.pointerCount === 0) {\n this.savedBreak = this.break;\n this.break = Math.max(this.break, 0.5); // less frames on touchmove\n }\n this.pointerCount++;\n }\n onTouchMove(e) {\n this.touchRecord.update(e);\n const delta = this.touchRecord.getDelta();\n this.addDelta(delta);\n }\n onTouchEnd(e) {\n const delta = this.touchRecord.getEasingDistance(this.savedBreak);\n this.addDelta(delta);\n this.pointerCount--;\n if (this.pointerCount === 0) {\n this.break = this.savedBreak;\n }\n this.touchRecord.release(e);\n }\n calculateRealSize() {\n if (!this.contentZoom || !this.mainContainer || !this.contentWrapper) {\n return;\n }\n const currentOffsetWidth = this.contentZoom.offsetWidth;\n const currentOffsetHeight = this.contentZoom.offsetHeight;\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.mainContainer.offsetWidth / this.zoom + 'px';\n this.contentZoom.style.height = this.mainContainer.offsetHeight / this.zoom + 'px';\n this.display.y = currentOffsetHeight;\n this.display.x = currentOffsetWidth;\n }\n else {\n this.display.y = currentOffsetHeight / this.zoom;\n this.display.x = currentOffsetWidth / this.zoom;\n }\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.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();\n }\n dimensionRefreshed() {\n this.calculateRealSize();\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 postCreation() {\n this.addResizeObserver();\n this.addAction();\n }\n}\nLayout.Scrollable.Namespace=`Aventus.Layout`;\nLayout.Scrollable.Tag=`av-scrollable`;\n_.Layout.Scrollable=Layout.Scrollable;\nif(!window.customElements.get('av-scrollable')){window.customElements.define('av-scrollable', Layout.Scrollable);Aventus.WebComponentInstance.registerDefinition(Layout.Scrollable);}\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Scrollable","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.DragAndDrop","isStrong":false}],"fullName":"Aventus.Layout.Scrollable","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-scrollable"},{"code":"Navigation.Router = class Router extends Aventus.WebComponent {\n oldPage;\n allRoutes = {};\n activePath = \"\";\n activeState;\n oneStateActive = false;\n showPageMutex = new Aventus.Mutex();\n get stateManager() {\n return Aventus.Instance.get(RouterStateManager);\n }\n page404;\n static __style = `:host{display:block}`;\n constructor() {\r super();\r this.validError404 = this.validError404.bind(this);\r this.canChangeState = this.canChangeState.bind(this);\r this.stateManager.canChangeState(this.canChangeState);\rif (this.constructor == Router) { throw \"can't instanciate an abstract class\"; }}\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><div class=\"content\" _id=\"router_0\"></div><slot name=\"after\"></slot>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"contentEl\",\n \"ids\": [\n \"router_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"Router\";\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('stateManager');\r }\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 register() {\n try {\n 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 if (!element) {\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.currentRouter = this;\n this.contentEl.appendChild(element);\n }\n if (this.oldPage && this.oldPage != element) {\n await this.oldPage.hide();\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 let title = element.pageTitle();\n if (title !== undefined)\n document.title = title;\n let keywords = element.pageKeywords();\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 let description = element.pageDescription();\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 window.history.pushState({}, title ?? \"\", newUrl);\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());\n if (Page404) {\n if (!this.page404) {\n this.page404 = new Page404();\n this.page404.currentRouter = this;\n this.contentEl.appendChild(this.page404);\n }\n if (this.oldPage && this.oldPage != this.page404) {\n await this.oldPage.hide();\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() {\n return this.stateManager.getStateSlugs(this.activePath);\n }\n async canChangeState(newState) {\n return true;\n }\n navigate(state) {\n return this.stateManager.setState(state);\n }\n bindToUrl() {\n return true;\n }\n defaultUrl() {\n return \"/\";\n }\n postCreation() {\n this.register();\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 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 }\n}\nNavigation.Router.Namespace=`Aventus.Navigation`;\n_.Navigation.Router=Navigation.Router;\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Navigation.Page","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"Aventus.Navigation.RouteAsyncOption","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false},{"fullName":"Aventus.StateManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.ResourceLoader","isStrong":false},{"fullName":"Promise","isStrong":false}],"fullName":"Aventus.Navigation.Router","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":""},{"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) }\r currentRouter;\n currentState;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"visible\", ((target) => {\n if (target.visible) {\n target.onShow();\n }\n else {\n target.onHide();\n }\n}));\r }\n static __style = `:host{display:none}:host([visible]){display:block}`;\n constructor() { super(); \rif (this.constructor == Page) { throw \"can't instanciate an abstract class\"; } }\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); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('visible');\r }\n __listBoolProps() { return [\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n pageTitle() {\n return undefined;\n }\n pageDescription() {\n return undefined;\n }\n pageKeywords() {\n return undefined;\n }\n async show(state) {\n this.currentState = state;\n this.visible = true;\n }\n async hide() {\n this.visible = false;\n this.currentState = undefined;\n }\n onShow() {\n }\n onHide() {\n }\n}\nNavigation.Page.Namespace=`Aventus.Navigation`;\n_.Navigation.Page=Navigation.Page;\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Navigation.Page","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.State","isStrong":false}],"fullName":"Aventus.Navigation.Page","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":""}],"existing":[{"fullName":"Aventus.Navigation.RouteAsyncOption","dependances":[{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.form.FormElement","dependances":[{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Callback","isStrong":false}]}]}
1236
+ {"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) }\rget 'stroke_width'() { return this.getNumberProp('stroke_width') }\n set 'stroke_width'(val) { this.setNumberAttr('stroke_width', val) }\r svg;\n backCircle;\n percentCircle;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"value\", ((target) => {\n target.render();\n}));\rthis.__addPropertyActions(\"stroke_width\", ((target) => {\n target.render();\n}));\r }\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();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"containerEl\",\n \"ids\": [\n \"progresscircle_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"ProgressCircle\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('value')){ this['value'] = 40; }\rif(!this.hasAttribute('stroke_width')){ this['stroke_width'] = 6; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('value');\rthis.__upgradeProperty('stroke_width');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","isStrong":false},{"fullName":"SVGSVGElement","isStrong":false},{"fullName":"SVGCircleElement","isStrong":false},{"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 Tracker=class Tracker {\n velocityMultiplier = window.devicePixelRatio;\n updateTime = Date.now();\n delta = { x: 0, y: 0 };\n velocity = { x: 0, y: 0 };\n lastPosition = { x: 0, y: 0 };\n constructor(touch) {\n this.lastPosition = this.getPosition(touch);\n }\n update(touch) {\n const { velocity, updateTime, lastPosition, } = this;\n const now = Date.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 getPointerData(evt) {\n return evt.touches ? evt.touches[evt.touches.length - 1] : evt;\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`;\r\n__as1(_, 'Tracker', Tracker);\r\n","dependances":[{"fullName":"Touch","isStrong":false},{"fullName":"PointerEvent","isStrong":false},{"fullName":"MouseEvent","isStrong":false}],"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)}:host{container-name:row;container-type:inline-size;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--_col-gap);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","dependances":[{"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);\r\n","dependances":[],"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) }\rget 'no_animation'() { return this.getBoolAttr('no_animation') }\n set 'no_animation'(val) { this.setBoolAttr('no_animation', val) }\r 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;grid-template-rows:0fr;transition-duration:var(--_collapse-transition-duration);transition-timing-function:var(--_collapse-transition-timing-function);transition-property:grid-template-rows}:host .collapse .content{overflow:hidden}:host([open]) .collapse{grid-template-rows:1fr}:host([no_animation]) .collapse{transition:none}`;\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();\rthis.__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});\r }\n getClassName() {\n return \"Collapse\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('open')) { this.attributeChangedCallback('open', false, false); }\rif(!this.hasAttribute('no_animation')) { this.attributeChangedCallback('no_animation', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('open');\rthis.__upgradeProperty('no_animation');\r }\n __listBoolProps() { return [\"open\",\"no_animation\"].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","dependances":[{"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) }\rget 'size'() { return this.getNumberAttr('size') }\n set 'size'(val) { this.setNumberAttr('size', val) }\rget 'size_xs'() { return this.getNumberAttr('size_xs') }\n set 'size_xs'(val) { this.setNumberAttr('size_xs', val) }\rget 'size_sm'() { return this.getNumberAttr('size_sm') }\n set 'size_sm'(val) { this.setNumberAttr('size_sm', val) }\rget 'size_md'() { return this.getNumberAttr('size_md') }\n set 'size_md'(val) { this.setNumberAttr('size_md', val) }\rget 'size_lg'() { return this.getNumberAttr('size_lg') }\n set 'size_lg'(val) { this.setNumberAttr('size_lg', val) }\rget 'size_xl'() { return this.getNumberAttr('size_xl') }\n set 'size_xl'(val) { this.setNumberAttr('size_xl', val) }\rget 'offset'() { return this.getNumberAttr('offset') }\n set 'offset'(val) { this.setNumberAttr('offset', val) }\rget 'offset_xs'() { return this.getNumberAttr('offset_xs') }\n set 'offset_xs'(val) { this.setNumberAttr('offset_xs', val) }\rget 'offset_sm'() { return this.getNumberAttr('offset_sm') }\n set 'offset_sm'(val) { this.setNumberAttr('offset_sm', val) }\rget 'offset_md'() { return this.getNumberAttr('offset_md') }\n set 'offset_md'(val) { this.setNumberAttr('offset_md', val) }\rget 'offset_lg'() { return this.getNumberAttr('offset_lg') }\n set 'offset_lg'(val) { this.setNumberAttr('offset_lg', val) }\rget 'offset_xl'() { return this.getNumberAttr('offset_xl') }\n set 'offset_xl'(val) { this.setNumberAttr('offset_xl', val) }\rget 'offset_right'() { return this.getNumberAttr('offset_right') }\n set 'offset_right'(val) { this.setNumberAttr('offset_right', val) }\rget 'offset_right_xs'() { return this.getNumberAttr('offset_right_xs') }\n set 'offset_right_xs'(val) { this.setNumberAttr('offset_right_xs', val) }\rget 'offset_right_sm'() { return this.getNumberAttr('offset_right_sm') }\n set 'offset_right_sm'(val) { this.setNumberAttr('offset_right_sm', val) }\rget 'offset_right_md'() { return this.getNumberAttr('offset_right_md') }\n set 'offset_right_md'(val) { this.setNumberAttr('offset_right_md', val) }\rget 'offset_right_lg'() { return this.getNumberAttr('offset_right_lg') }\n set 'offset_right_lg'(val) { this.setNumberAttr('offset_right_lg', val) }\rget 'offset_right_xl'() { return this.getNumberAttr('offset_right_xl') }\n set 'offset_right_xl'(val) { this.setNumberAttr('offset_right_xl', val) }\rget 'center'() { return this.getBoolAttr('center') }\n set 'center'(val) { this.setBoolAttr('center', val) }\r static use_container = false;\n static __style = `:host{--_col-padding: var(--col-padding, 8px);--_col-gap: var(--col-gap, 0px)}:host{display:flex;padding:var(--internal-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, 0px) * 11 / 12))}:host([offset=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([offset_right=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([size=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([offset=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([offset_right=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([size=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([offset=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([offset_right=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([size=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([offset=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([offset_right=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([size=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([offset=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([offset_right=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([size=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([offset=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([offset_right=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([size=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([offset=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([offset_right=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([size=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([offset=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([offset_right=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([size=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([offset=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([offset_right=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([size=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([offset=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([offset_right=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([size=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([offset=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([offset_right=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host([use_container][offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][size_xs=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][size_xs=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][size_xs=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host(:not([use_container])[offset_xs=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xs=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[size_xs=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_xs=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xs=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[size_xs=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_xs=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xs=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[size_xs=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_xs=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xs=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[size_xs=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xs=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xs=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xs=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_xs=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xs=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[size_xs=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xs=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xs=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xs=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xs=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xs=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xs=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xs=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xs=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xs=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xs=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xs=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xs=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xs=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xs=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host([use_container][offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][size_sm=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][size_sm=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][size_sm=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host(:not([use_container])[offset_sm=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_sm=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[size_sm=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_sm=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_sm=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[size_sm=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_sm=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_sm=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[size_sm=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_sm=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_sm=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[size_sm=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_sm=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_sm=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_sm=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_sm=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_sm=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[size_sm=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_sm=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_sm=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_sm=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_sm=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_sm=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_sm=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_sm=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_sm=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_sm=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_sm=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_sm=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_sm=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_sm=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_sm=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host([use_container][offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][size_md=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][size_md=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][size_md=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host(:not([use_container])[offset_md=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_md=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[size_md=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_md=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_md=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[size_md=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_md=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_md=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[size_md=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_md=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_md=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[size_md=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_md=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_md=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_md=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_md=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_md=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[size_md=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_md=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_md=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_md=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_md=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_md=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_md=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_md=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_md=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_md=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_md=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_md=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_md=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_md=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_md=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host([use_container][offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][size_lg=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][size_lg=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][size_lg=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host(:not([use_container])[offset_lg=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_lg=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[size_lg=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_lg=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_lg=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[size_lg=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_lg=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_lg=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[size_lg=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_lg=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_lg=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[size_lg=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_lg=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_lg=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_lg=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_lg=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_lg=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[size_lg=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_lg=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_lg=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_lg=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_lg=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_lg=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_lg=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_lg=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_lg=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_lg=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_lg=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_lg=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_lg=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_lg=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_lg=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host([use_container][offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host([use_container][size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host([use_container][size_xl=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host([use_container][size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host([use_container][size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host([use_container][size_xl=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host([use_container][size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host([use_container][size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host([use_container][size_xl=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host([use_container][size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host([use_container][size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host([use_container][offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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, 0px) * 11 / 12))}:host(:not([use_container])[offset_xl=\"1\"]){margin-left:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[offset_right_xl=\"1\"]){margin-right:calc(8.3333333333% - (var(--_col-gap, 0px) * 11 / 12))}:host(:not([use_container])[size_xl=\"2\"]){width:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_xl=\"2\"]){margin-left:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[offset_right_xl=\"2\"]){margin-right:calc(16.6666666667% - (var(--_col-gap, 0px) * 5 / 6))}:host(:not([use_container])[size_xl=\"3\"]){width:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_xl=\"3\"]){margin-left:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[offset_right_xl=\"3\"]){margin-right:calc(25% - (var(--_col-gap, 0px) * 3 / 4))}:host(:not([use_container])[size_xl=\"4\"]){width:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_xl=\"4\"]){margin-left:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[offset_right_xl=\"4\"]){margin-right:calc(33.3333333333% - (var(--_col-gap, 0px) * 2 / 3))}:host(:not([use_container])[size_xl=\"5\"]){width:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_xl=\"5\"]){margin-left:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[offset_right_xl=\"5\"]){margin-right:calc(41.6666666667% - (var(--_col-gap, 0px) * 1.4 / 2.4))}:host(:not([use_container])[size_xl=\"6\"]){width:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_xl=\"6\"]){margin-left:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[offset_right_xl=\"6\"]){margin-right:calc(50% - (var(--_col-gap, 0px) * 1 / 2))}:host(:not([use_container])[size_xl=\"7\"]){width:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_xl=\"7\"]){margin-left:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[offset_right_xl=\"7\"]){margin-right:calc(58.3333333333% - (var(--_col-gap, 0px) * 0.7142857143 / 1.7142857143))}:host(:not([use_container])[size_xl=\"8\"]){width:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_xl=\"8\"]){margin-left:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[offset_right_xl=\"8\"]){margin-right:calc(66.6666666667% - (var(--_col-gap, 0px) * 0.5 / 1.5))}:host(:not([use_container])[size_xl=\"9\"]){width:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_xl=\"9\"]){margin-left:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[offset_right_xl=\"9\"]){margin-right:calc(75% - (var(--_col-gap, 0px) * 0.3333333333 / 1.3333333333))}:host(:not([use_container])[size_xl=\"10\"]){width:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_xl=\"10\"]){margin-left:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[offset_right_xl=\"10\"]){margin-right:calc(83.3333333333% - (var(--_col-gap, 0px) * 0.2 / 1.2))}:host(:not([use_container])[size_xl=\"11\"]){width:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_xl=\"11\"]){margin-left:calc(91.6666666667% - (var(--_col-gap, 0px) * 0.0909090909 / 1.0909090909))}:host(:not([use_container])[offset_right_xl=\"11\"]){margin-right:calc(91.6666666667% - (var(--_col-gap, 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')) {this.setAttribute('use_container' ,'true'); }\rif(!this.hasAttribute('size')){ this['size'] = undefined; }\rif(!this.hasAttribute('size_xs')){ this['size_xs'] = undefined; }\rif(!this.hasAttribute('size_sm')){ this['size_sm'] = undefined; }\rif(!this.hasAttribute('size_md')){ this['size_md'] = undefined; }\rif(!this.hasAttribute('size_lg')){ this['size_lg'] = undefined; }\rif(!this.hasAttribute('size_xl')){ this['size_xl'] = undefined; }\rif(!this.hasAttribute('offset')){ this['offset'] = undefined; }\rif(!this.hasAttribute('offset_xs')){ this['offset_xs'] = undefined; }\rif(!this.hasAttribute('offset_sm')){ this['offset_sm'] = undefined; }\rif(!this.hasAttribute('offset_md')){ this['offset_md'] = undefined; }\rif(!this.hasAttribute('offset_lg')){ this['offset_lg'] = undefined; }\rif(!this.hasAttribute('offset_xl')){ this['offset_xl'] = undefined; }\rif(!this.hasAttribute('offset_right')){ this['offset_right'] = undefined; }\rif(!this.hasAttribute('offset_right_xs')){ this['offset_right_xs'] = undefined; }\rif(!this.hasAttribute('offset_right_sm')){ this['offset_right_sm'] = undefined; }\rif(!this.hasAttribute('offset_right_md')){ this['offset_right_md'] = undefined; }\rif(!this.hasAttribute('offset_right_lg')){ this['offset_right_lg'] = undefined; }\rif(!this.hasAttribute('offset_right_xl')){ this['offset_right_xl'] = undefined; }\rif(!this.hasAttribute('center')) { this.attributeChangedCallback('center', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('use_container');\rthis.__upgradeProperty('size');\rthis.__upgradeProperty('size_xs');\rthis.__upgradeProperty('size_sm');\rthis.__upgradeProperty('size_md');\rthis.__upgradeProperty('size_lg');\rthis.__upgradeProperty('size_xl');\rthis.__upgradeProperty('offset');\rthis.__upgradeProperty('offset_xs');\rthis.__upgradeProperty('offset_sm');\rthis.__upgradeProperty('offset_md');\rthis.__upgradeProperty('offset_lg');\rthis.__upgradeProperty('offset_xl');\rthis.__upgradeProperty('offset_right');\rthis.__upgradeProperty('offset_right_xs');\rthis.__upgradeProperty('offset_right_sm');\rthis.__upgradeProperty('offset_right_md');\rthis.__upgradeProperty('offset_right_lg');\rthis.__upgradeProperty('offset_right_xl');\rthis.__upgradeProperty('center');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.ColOptions","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) }\r get 'src'() { return this.getStringProp('src') }\n set 'src'(val) { this.setStringAttr('src', val) }\rget 'mode'() { return this.getStringProp('mode') }\n set 'mode'(val) { this.setStringAttr('mode', val) }\r isCalculing;\n maxCalculateSize = 10;\n ratio = 1;\n resizeObserver;\n __registerPropertiesActions() { super.__registerPropertiesActions(); this.__addPropertyActions(\"src\", ((target) => {\n target.onSrcChanged();\n}));\rthis.__addPropertyActions(\"mode\", ((target) => {\n if (target.src != \"\") {\n target.calculateSize();\n }\n}));\r }\n static __style = `:host{--internal-img-color: var(--img-color);--internal-img-stroke-color: var(--img-stroke-color, var(--internal-img-color));--internal-img-fill-color: var(--img-fill-color, var(--internal-img-color));--internal-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(--internal-img-color-transition);stroke:var(--internal-img-stroke-color);fill:var(--internal-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();\rthis.__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});\r }\n getClassName() {\n return \"Img\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('cache')) { this.attributeChangedCallback('cache', false, false); }\rif(!this.hasAttribute('src')){ this['src'] = undefined; }\rif(!this.hasAttribute('mode')){ this['mode'] = \"contains\"; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('cache');\rthis.__upgradeProperty('src');\rthis.__upgradeProperty('mode');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLImageElement","isStrong":false},{"fullName":"HTMLDivElement","isStrong":false},{"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);\r\n","dependances":[],"fullName":"Aventus.Form.isSubclassOf","required":false,"type":4,"isExported":true,"convertibleName":""},{"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) }\r 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}));\r }\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); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('visible');\r }\n __listBoolProps() { return [\"visible\"].concat(super.__listBoolProps()).filter((v, i, a) => a.indexOf(v) === i); }\n async show(state) {\n this.state = state;\n this.visible = true;\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) {\n return true;\n }\n}\nNavigation.Page.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'Page', Navigation.Page);\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"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.Page.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":"let RouterStateManager=class RouterStateManager extends Aventus.StateManager {\n static getInstance() {\n return Aventus.Instance.get(RouterStateManager);\n }\n}\nRouterStateManager.Namespace=`Aventus`;\r\n__as1(_, 'RouterStateManager', RouterStateManager);\r\n","dependances":[{"fullName":"Aventus.StateManager","isStrong":true},{"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) }\rget 'active_state'() { return this.getStringAttr('active_state') }\n set 'active_state'(val) { this.setStringAttr('active_state', val) }\r 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();\rthis.__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});\r }\n getClassName() {\n return \"RouterLink\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('state')){ this['state'] = undefined; }\rif(!this.hasAttribute('active_state')){ this['active_state'] = undefined; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('state');\rthis.__upgradeProperty('active_state');\r }\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","dependances":[{"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.PressManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.Uri","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"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) }\rget 'active_pattern'() { return this.getStringAttr('active_pattern') }\n set 'active_pattern'(val) { this.setStringAttr('active_pattern', val) }\r 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();\rthis.__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});\r }\n getClassName() {\n return \"Link\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('to')){ this['to'] = undefined; }\rif(!this.hasAttribute('active_pattern')){ this['active_pattern'] = undefined; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('to');\rthis.__upgradeProperty('active_pattern');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"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":"NotVoid","isStrong":false}],"fullName":"Aventus.Navigation.Link","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-link","slots":{"default":{"local":true}}},{"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 }\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();\rthis.__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});\r }\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 element.style.display = 'none';\n if (element instanceof _.Layout.Tabs.Tab) {\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 }\n }\n if (first) {\n this.setActive(first);\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 }\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","dependances":[{"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":"HTMLDivElement","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 constructor() { this.validate = this.validate.bind(this); }\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}\nForm.Validator.Namespace=`Aventus.Form`;\r\n__as1(_.Form, 'Validator', Form.Validator);\r\n","dependances":[{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"Promise","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 static msg = \"Le champs {name} est requis\";\n _msg;\n constructor(msg) {\n super();\n this._msg = msg ?? Form.Validators.Required.msg;\n }\n /**\n * @inheritdoc\n */\n validate(value, name, globalValidation) {\n const txt = this._msg.replace(/\\{ *name *\\}/g, 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`;\r\n__as1(_.Form.Validators, 'Required', Form.Validators.Required);\r\n","dependances":[{"fullName":"Aventus.Form.Validator","isStrong":true},{"fullName":"Aventus.Form.Validators.Required","isStrong":false},{"fullName":"Promise","isStrong":false}],"fullName":"Aventus.Form.Validators.Required","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Form.Validators.Email=class Email extends _.Form.Validator {\n static msg = \"Merci de saisir un email valide\";\n _msg;\n constructor(msg) {\n super();\n this._msg = msg ?? Form.Validators.Email.msg;\n }\n /**\n * @inheritdoc\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._msg.replace(/\\{ *name *\\}/g, name);\n }\n return true;\n }\n}\nForm.Validators.Email.Namespace=`Aventus.Form.Validators`;\r\n__as1(_.Form.Validators, 'Email', Form.Validators.Email);\r\n","dependances":[{"fullName":"Aventus.Form.Validator","isStrong":true},{"fullName":"Aventus.Form.Validators.Email","isStrong":false},{"fullName":"Promise","isStrong":false}],"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) }\r get 'disabled'() { return this.getBoolProp('disabled') }\n set 'disabled'(val) { this.setBoolAttr('disabled', val) }\r 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}\rget '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}\r 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}));\rthis.__addWatchesActions(\"errors\", ((target) => {\n target.onErrorsChange();\n}));\r 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); }\rif(!this.hasAttribute('disabled')) { this.attributeChangedCallback('disabled', false, false); }\r }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"value\"] = undefined;\rw[\"errors\"] = [];\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('form');\rthis.__upgradeProperty('has_errors');\rthis.__upgradeProperty('disabled');\rthis.__correctGetter('value');\rthis.__correctGetter('errors');\r }\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","dependances":[{"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":"Watch","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Injectable","isStrong":false},{"fullName":"ElementInternals","isStrong":false},{"fullName":"Aventus.Form.IForm","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"HTMLFormElement","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) }\r static get formAssociated() { return true; }\n internals;\n handler = 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'; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('type');\r }\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.internals.form) {\n this.internals.form.requestSubmit();\n }\n else if (this.handler) {\n await this.handler.requestSubmit();\n if (\"loading\" in this) {\n this.loading = false;\n }\n }\n }\n }\n postCreation() {\n super.postCreation();\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}\nForm.ButtonElement.Namespace=`Aventus.Form`;\n__as1(_.Form, 'ButtonElement', Form.ButtonElement);\n","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"ElementInternals","isStrong":false},{"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 = ``;\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) {\n this.form.submit(this.request);\n }\n else if (await this.form.validate()) {\n this.onSubmit.trigger();\n }\n }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.Form.FormSchema","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":"KeyboardEvent","isStrong":false},{"fullName":"Aventus.Form.Form","isStrong":false},{"fullName":"Promise","isStrong":false}],"fullName":"Aventus.Form.Form","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"av-form","slots":{"default":{"local":true}}},{"code":"Navigation.PageForm = class PageForm extends Navigation.Page {\n _form;\n get form() { return this._form; }\n elements = [];\n btns = [];\n static __style = ``;\n constructor() {\n super();\n this._form = new Form.FormHandler(this.formSchema(), this.formConfig());\n if (this.constructor == PageForm) {\n throw \"can't instanciate an abstract class\";\n }\n this.checkEnter = this.checkEnter.bind(this);\n }\n __getStatic() {\n return PageForm;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(PageForm.__style);\n return arrStyle;\n }\n __getHtml() {\rsuper.__getHtml();\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"PageForm\";\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('form');\r }\n formConfig() {\n return {};\n }\n pageConfig() {\n return {\n submitWithEnter: true,\n autoLoading: true\n };\n }\n async submit() {\n this.setLoading(true);\n const result = await this.defineSubmit((fct) => this.form.submit(fct));\n this.setLoading(false);\n return result;\n }\n setLoading(isLoading) {\n const autoLoading = this.pageConfig().autoLoading;\n if (autoLoading) {\n for (let btn of this.btns) {\n if (\"loading\" in btn) {\n btn.loading = isLoading;\n }\n }\n }\n }\n checkEnter(e) {\n if (e.key == \"Enter\") {\n this.submit();\n }\n }\n registerElement(element) {\n const submitWithEnter = this.pageConfig().submitWithEnter;\n if (this.elements.length > 0) {\n if (submitWithEnter)\n this.elements[this.elements.length - 1].removeEventListener(\"keyup\", this.checkEnter);\n }\n this.elements.push(element);\n if (submitWithEnter)\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 await this.submit();\n }\n}\nNavigation.PageForm.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'PageForm', Navigation.PageForm);\n","dependances":[{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Form.FormElement","isStrong":false},{"fullName":"Aventus.Form.ButtonElement","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":false},{"fullName":"Aventus.Navigation.PageFormConfig","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"BindThis","isStrong":false},{"fullName":"KeyboardEvent","isStrong":false},{"fullName":"Aventus.Navigation.PageForm","isStrong":false}],"fullName":"Aventus.Navigation.PageForm","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Navigation.PageFormRoute = class PageFormRoute extends Navigation.PageForm {\n static __style = ``;\n constructor() {\n super();\n if (this.constructor == PageFormRoute) {\n throw \"can't instanciate an abstract class\";\n }\n }\n __getStatic() {\n return PageFormRoute;\n }\n __getStyle() {\n let arrStyle = super.__getStyle();\n arrStyle.push(PageFormRoute.__style);\n return arrStyle;\n }\n __getHtml() {\rsuper.__getHtml();\n this.__getStatic().__template.setHTML({\n slots: { 'default':`<slot></slot>` }, \n blocks: { 'default':`<slot></slot>` }\n });\n}\n getClassName() {\n return \"PageFormRoute\";\n }\n async defineSubmit(submit) {\n await this.beforeSubmit();\n const info = this.route();\n let router;\n let key = \"\";\n if (Array.isArray(info)) {\n router = new info[0];\n key = info[1];\n }\n else {\n router = new info;\n const fcts = Object.getOwnPropertyNames(info.prototype).filter(m => m !== \"constructor\");\n if (fcts.length == 1) {\n key = fcts[0];\n }\n else {\n const result = new Aventus.VoidWithError();\n result.errors.push(new Aventus.GenericError(500, \"More than one fonction is defined\"));\n return result;\n }\n }\n const result = await submit(router[key]);\n this.onResult(result);\n return result;\n }\n beforeSubmit() { }\n}\nNavigation.PageFormRoute.Namespace=`Aventus.Navigation`;\n__as1(_.Navigation, 'PageFormRoute', Navigation.PageFormRoute);\n","dependances":[{"fullName":"Aventus.Navigation.PageForm","isStrong":true},{"fullName":"Aventus.Navigation.LastParameter","isStrong":false},{"fullName":"Aventus.Form.ExtractError","isStrong":false},{"fullName":"Awaited","isStrong":false},{"fullName":"Aventus.Navigation.Result","isStrong":false},{"fullName":"InstanceType","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"Aventus.Navigation.KeyResult","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false}],"fullName":"Aventus.Navigation.PageFormRoute","required":false,"type":1,"isExported":true,"convertibleName":"","tagName":"","slots":{"default":{"local":true}}},{"code":"Form.FormHandler=class FormHandler {\n static _globalConfig;\n static _IFormElements = [Form.Form, Navigation.PageForm];\n __watcher;\n get item() {\n return this.__watcher.item;\n }\n set item(item) {\n this.__watcher.item = item;\n }\n get parts() {\n return this.__watcher.form;\n }\n _elements = {};\n get elements() {\n return { ...this._elements };\n }\n _globalValidation;\n _validateOnChange = false;\n _handleValidateNoInputError;\n _handleExecuteNoInputError;\n defaultValues;\n onItemChange = new Aventus.Callback();\n constructor(schema, config, defaultValues) {\n this.writeValidationIntoConsole = this.writeValidationIntoConsole.bind(this);\n this.writeErrorIntoConsole = this.writeErrorIntoConsole.bind(this);\n this._globalValidation = config?.validate ?? Form.FormHandler._globalConfig?.validate;\n this._validateOnChange = config?.validateOnChange ?? Form.FormHandler._globalConfig?.validateOnChange ?? false;\n this._handleValidateNoInputError = config?.handleValidateNoInputError ?? Form.FormHandler._globalConfig?.handleValidateNoInputError ?? this.writeValidationIntoConsole;\n this._handleExecuteNoInputError = config?.handleExecuteNoInputError ?? Form.FormHandler._globalConfig?.handleExecuteNoInputError ?? this.writeErrorIntoConsole;\n this.defaultValues = 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 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 writeErrorIntoConsole(errors) {\n for (let error in errors) {\n console.log(error);\n }\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 form[key] = normalizePart(form[key]);\n this.transformFormPart(key, form[key]);\n };\n for (let key in result) {\n createKey(key);\n }\n return result;\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 {\n let resultTemp = new temp();\n fcts.push(resultTemp.validate);\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 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 if (this.parts[key]) {\n let formPart = this.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 for (let key in result) {\n if (!this._elements[key] || this._elements[key].length == 0) {\n triggerUnhandle = true;\n unhandle[key] = result[key];\n }\n }\n if (triggerUnhandle && this._handleValidateNoInputError) {\n this._handleValidateNoInputError(unhandle);\n }\n return Object.keys(result).length == 0;\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 async execute(query) {\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.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._handleExecuteNoInputError) {\n this._handleExecuteNoInputError(queryResult.errors);\n }\n }\n return queryResult;\n }\n parseErrors(queryResult) {\n let noPrintErrors = [];\n const elements = this.elements;\n for (let error of queryResult.errors) {\n if (error.details) {\n if (Array.isArray(error.details)) {\n let found = false;\n for (let detail of error.details) {\n if (Object.hasOwn(detail, \"Name\")) {\n if (elements[detail.Name]) {\n for (const element of elements[detail.Name]) {\n element.errors.push(error.message);\n }\n found = true;\n break;\n }\n }\n }\n if (found) {\n continue;\n }\n }\n else {\n let found = false;\n for (let key in error.details) {\n if (elements[key]) {\n if (Array.isArray(error.details[key])) {\n for (const element of elements[key]) {\n for (let detail of error.details[key]) {\n element.errors.push(detail);\n }\n }\n found = true;\n }\n else {\n for (const element of elements[key]) {\n element.errors.push(error.details[key]);\n }\n found = true;\n }\n }\n }\n if (found) {\n continue;\n }\n }\n }\n noPrintErrors.push(error);\n }\n return noPrintErrors;\n }\n reset() {\n this.item = this.defaultValues;\n }\n}\nForm.FormHandler.Namespace=`Aventus.Form`;\r\n__as1(_.Form, 'FormHandler', Form.FormHandler);\r\n","dependances":[{"fullName":"Internal","isStrong":true},{"fullName":"Aventus.Form.FormHandlerConfig","isStrong":true},{"fullName":"Aventus.Form.Constructor","isStrong":true},{"fullName":"Aventus.Form.IForm","isStrong":true},{"fullName":"Aventus.Form.InternalForm","isStrong":false},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"Aventus.Form.FormSchema","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false},{"fullName":"Aventus.Watcher","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Form.Validator","isStrong":false},{"fullName":"Aventus.isClass","isStrong":false},{"fullName":"Aventus.getValueFromObject","isStrong":false},{"fullName":"Aventus.setValueToObject","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false},{"fullName":"Aventus.Form.SubmitFunction","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false},{"fullName":"Aventus.Navigation.PageForm","isStrong":true},{"fullName":"Aventus.Form.Form","isStrong":true}],"fullName":"Aventus.Form.FormHandler","required":false,"type":1,"isExported":true,"convertibleName":""},{"code":"Lib.ShortcutManager=class ShortcutManager {\n static memory = {};\n static autoPrevents = [];\n static isInit = false;\n static arrayKeys = [];\n static options = new Map();\n static replacingMemory = {};\n static isTxt(touch) {\n return touch.match(/[a-zA-Z0-9_\\+\\-]/g);\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 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 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 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 static onKeyUp(e) {\n let index = this.arrayKeys.indexOf(e.key);\n if (index != -1) {\n this.arrayKeys.splice(index, 1);\n }\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 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 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`;\r\n__as1(_.Lib, 'ShortcutManager', Lib.ShortcutManager);\r\n","dependances":[{"fullName":"Promise","isStrong":true},{"fullName":"Map","isStrong":true},{"fullName":"Aventus.Lib.ShortcutManagerOptions","isStrong":true},{"fullName":"Aventus.Lib.SpecialTouch","isStrong":false},{"fullName":"Aventus.Lib.ShortcutManager","isStrong":false},{"fullName":"KeyboardEvent","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) }\rget 'show_grid'() { return this.getBoolAttr('show_grid') }\n set 'show_grid'(val) { this.setBoolAttr('show_grid', val) }\rget 'show_ruler'() { return this.getBoolAttr('show_ruler') }\n set 'show_ruler'(val) { this.setBoolAttr('show_ruler', val) }\rget 'show_guides'() { return this.getBoolAttr('show_guides') }\n set 'show_guides'(val) { this.setBoolAttr('show_guides', val) }\rget 'lock'() { return this.getBoolAttr('lock') }\n set 'lock'(val) { this.setBoolAttr('lock', val) }\rget 'visible'() { return this.getBoolAttr('visible') }\n set 'visible'(val) { this.setBoolAttr('visible', val) }\r get 'unit'() { return this.getStringProp('unit') }\n set 'unit'(val) { this.setStringAttr('unit', val) }\rget 'nb_col'() { return this.getNumberProp('nb_col') }\n set 'nb_col'(val) { this.setNumberAttr('nb_col', val) }\rget 'nb_row'() { return this.getNumberProp('nb_row') }\n set 'nb_row'(val) { this.setNumberAttr('nb_row', val) }\rget 'col_width'() { return this.getNumberProp('col_width') }\n set 'col_width'(val) { this.setNumberAttr('col_width', val) }\rget 'row_height'() { return this.getNumberProp('row_height') }\n set 'row_height'(val) { this.setNumberAttr('row_height', val) }\rget 'ruler_size'() { return this.getNumberProp('ruler_size') }\n set 'ruler_size'(val) { this.setNumberAttr('ruler_size', val) }\rget 'step'() { return this.getNumberProp('step') }\n set 'step'(val) { this.setNumberAttr('step', val) }\rget 'step_big'() { return this.getNumberProp('step_big') }\n set 'step_big'(val) { this.setNumberAttr('step_big', val) }\rget 'magnetic'() { return this.getNumberProp('magnetic') }\n set 'magnetic'(val) { this.setNumberAttr('magnetic', val) }\r __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}));\rthis.__addPropertyActions(\"nb_row\", ((target) => {\n}));\rthis.__addPropertyActions(\"row_height\", ((target) => {\n}));\rthis.__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}));\r }\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();\rthis.__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});\r }\n getClassName() {\n return \"GridHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('show_rulers')) { this.attributeChangedCallback('show_rulers', false, false); }\rif(!this.hasAttribute('show_grid')) {this.setAttribute('show_grid' ,'true'); }\rif(!this.hasAttribute('show_ruler')) {this.setAttribute('show_ruler' ,'true'); }\rif(!this.hasAttribute('show_guides')) {this.setAttribute('show_guides' ,'true'); }\rif(!this.hasAttribute('lock')) {this.setAttribute('lock' ,'true'); }\rif(!this.hasAttribute('visible')) {this.setAttribute('visible' ,'true'); }\rif(!this.hasAttribute('unit')){ this['unit'] = 'px'; }\rif(!this.hasAttribute('nb_col')){ this['nb_col'] = 0; }\rif(!this.hasAttribute('nb_row')){ this['nb_row'] = 0; }\rif(!this.hasAttribute('col_width')){ this['col_width'] = undefined; }\rif(!this.hasAttribute('row_height')){ this['row_height'] = undefined; }\rif(!this.hasAttribute('ruler_size')){ this['ruler_size'] = 25; }\rif(!this.hasAttribute('step')){ this['step'] = 20; }\rif(!this.hasAttribute('step_big')){ this['step_big'] = undefined; }\rif(!this.hasAttribute('magnetic')){ this['magnetic'] = 0; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('show_rulers');\rthis.__upgradeProperty('show_grid');\rthis.__upgradeProperty('show_ruler');\rthis.__upgradeProperty('show_guides');\rthis.__upgradeProperty('lock');\rthis.__upgradeProperty('visible');\rthis.__upgradeProperty('unit');\rthis.__upgradeProperty('nb_col');\rthis.__upgradeProperty('nb_row');\rthis.__upgradeProperty('col_width');\rthis.__upgradeProperty('row_height');\rthis.__upgradeProperty('ruler_size');\rthis.__upgradeProperty('step');\rthis.__upgradeProperty('step_big');\rthis.__upgradeProperty('magnetic');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.GridHelper","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","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":"Promise","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) }\rget 'moving'() { return this.getBoolAttr('moving') }\n set 'moving'(val) { this.setBoolAttr('moving', val) }\r 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();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"positionEl\",\n \"ids\": [\n \"gridguidehelper_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"GridGuideHelper\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('direction')){ this['direction'] = \"x\"; }\rif(!this.hasAttribute('moving')) { this.attributeChangedCallback('moving', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('direction');\rthis.__upgradeProperty('moving');\r }\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","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 _activeTouchID;\n _touchList = {};\n get _primitiveValue() {\n return { x: 0, y: 0 };\n }\n isActive() {\n return this._activeTouchID !== undefined;\n }\n getDelta() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.delta };\n }\n getVelocity() {\n const tracker = this._getActiveTracker();\n if (!tracker) {\n return this._primitiveValue;\n }\n return { ...tracker.velocity };\n }\n getNbOfTouches() {\n return Object.values(this._touchList).length;\n }\n getTouches() {\n return Object.values(this._touchList);\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 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 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 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 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 _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 _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 _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 _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 _has(touch) {\n const identifier = this._getIdentifier(touch);\n return this._touchList.hasOwnProperty(identifier);\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 _getActiveTracker() {\n const { _touchList, _activeTouchID, } = this;\n if (_activeTouchID !== undefined) {\n return _touchList[_activeTouchID];\n }\n return undefined;\n }\n}\nTouchRecord.Namespace=`Aventus`;\r\n__as1(_, 'TouchRecord', TouchRecord);\r\n","dependances":[{"fullName":"Aventus.Tracker","isStrong":false},{"fullName":"TouchEvent","isStrong":false},{"fullName":"PointerEvent","isStrong":false},{"fullName":"MouseEvent","isStrong":false},{"fullName":"Touch","isStrong":false},{"fullName":"TouchList","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) }\rget 'max_zoom'() { return this.getNumberAttr('max_zoom') }\n set 'max_zoom'(val) { this.setNumberAttr('max_zoom', val) }\rget 'y_scroll_visible'() { return this.getBoolAttr('y_scroll_visible') }\n set 'y_scroll_visible'(val) { this.setBoolAttr('y_scroll_visible', val) }\rget 'x_scroll_visible'() { return this.getBoolAttr('x_scroll_visible') }\n set 'x_scroll_visible'(val) { this.setBoolAttr('x_scroll_visible', val) }\rget 'floating_scroll'() { return this.getBoolAttr('floating_scroll') }\n set 'floating_scroll'(val) { this.setBoolAttr('floating_scroll', val) }\rget 'x_scroll'() { return this.getBoolAttr('x_scroll') }\n set 'x_scroll'(val) { this.setBoolAttr('x_scroll', val) }\rget 'y_scroll'() { return this.getBoolAttr('y_scroll') }\n set 'y_scroll'(val) { this.setBoolAttr('y_scroll', val) }\rget 'auto_hide'() { return this.getBoolAttr('auto_hide') }\n set 'auto_hide'(val) { this.setBoolAttr('auto_hide', val) }\rget 'break'() { return this.getNumberAttr('break') }\n set 'break'(val) { this.setNumberAttr('break', val) }\rget 'disable'() { return this.getBoolAttr('disable') }\n set 'disable'(val) { this.setBoolAttr('disable', val) }\rget 'no_user_select'() { return this.getBoolAttr('no_user_select') }\n set 'no_user_select'(val) { this.setBoolAttr('no_user_select', val) }\rget 'mouse_drag'() { return this.getBoolAttr('mouse_drag') }\n set 'mouse_drag'(val) { this.setBoolAttr('mouse_drag', val) }\rget 'pinch'() { return this.getBoolAttr('pinch') }\n set 'pinch'(val) { this.setBoolAttr('pinch', val) }\r get 'zoom'() { return this.getNumberProp('zoom') }\n set 'zoom'(val) { this.setNumberAttr('zoom', val) }\r 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}));\r }\n static __style = `:host{--internal-scrollbar-container-color: var(--scrollbar-container-color, transparent);--internal-scrollbar-color: var(--scrollbar-color, #757575);--internal-scrollbar-active-color: var(--scrollbar-active-color, #858585);--internal-scroller-width: var(--scroller-width, 6px);--internal-scroller-top: var(--scroller-top, 3px);--internal-scroller-bottom: var(--scroller-bottom, 3px);--internal-scroller-right: var(--scroller-right, 3px);--internal-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(--internal-scrollbar-container-color);border-radius:5px}:host .scroll-main-container .scroller-wrapper .container-scroller .shadow-scroller .scroller{background-color:var(--internal-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(--internal-scrollbar-active-color)}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical{height:calc(100% - var(--internal-scroller-bottom)*2 - var(--internal-scroller-width));padding-left:var(--internal-scroller-left);right:var(--internal-scroller-right);top:var(--internal-scroller-bottom);transform:0;width:calc(var(--internal-scroller-width) + var(--internal-scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.vertical.hide{transform:translateX(calc(var(--internal-scroller-width) + var(--internal-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(--internal-scroller-left))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal{bottom:var(--internal-scroller-bottom);height:calc(var(--internal-scroller-width) + var(--internal-scroller-top));left:var(--internal-scroller-right);padding-top:var(--internal-scroller-top);transform:0;width:calc(100% - var(--internal-scroller-right)*2 - var(--internal-scroller-width))}:host .scroll-main-container .scroller-wrapper .container-scroller.horizontal.hide{transform:translateY(calc(var(--internal-scroller-width) + var(--internal-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(--internal-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}`;\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();\rthis.__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});\r }\n getClassName() {\n return \"Scrollable\";\n }\n __defaultValues() { super.__defaultValues(); if(!this.hasAttribute('min_zoom')){ this['min_zoom'] = 1; }\rif(!this.hasAttribute('max_zoom')){ this['max_zoom'] = undefined; }\rif(!this.hasAttribute('y_scroll_visible')) { this.attributeChangedCallback('y_scroll_visible', false, false); }\rif(!this.hasAttribute('x_scroll_visible')) { this.attributeChangedCallback('x_scroll_visible', false, false); }\rif(!this.hasAttribute('floating_scroll')) { this.attributeChangedCallback('floating_scroll', false, false); }\rif(!this.hasAttribute('x_scroll')) { this.attributeChangedCallback('x_scroll', false, false); }\rif(!this.hasAttribute('y_scroll')) {this.setAttribute('y_scroll' ,'true'); }\rif(!this.hasAttribute('auto_hide')) { this.attributeChangedCallback('auto_hide', false, false); }\rif(!this.hasAttribute('break')){ this['break'] = 0.1; }\rif(!this.hasAttribute('disable')) { this.attributeChangedCallback('disable', false, false); }\rif(!this.hasAttribute('no_user_select')) { this.attributeChangedCallback('no_user_select', false, false); }\rif(!this.hasAttribute('mouse_drag')) { this.attributeChangedCallback('mouse_drag', false, false); }\rif(!this.hasAttribute('pinch')) { this.attributeChangedCallback('pinch', false, false); }\rif(!this.hasAttribute('zoom')){ this['zoom'] = 1; }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('x');\rthis.__correctGetter('y');\rthis.__correctGetter('xMax');\rthis.__correctGetter('yMax');\rthis.__upgradeProperty('min_zoom');\rthis.__upgradeProperty('max_zoom');\rthis.__upgradeProperty('y_scroll_visible');\rthis.__upgradeProperty('x_scroll_visible');\rthis.__upgradeProperty('floating_scroll');\rthis.__upgradeProperty('x_scroll');\rthis.__upgradeProperty('y_scroll');\rthis.__upgradeProperty('auto_hide');\rthis.__upgradeProperty('break');\rthis.__upgradeProperty('disable');\rthis.__upgradeProperty('no_user_select');\rthis.__upgradeProperty('mouse_drag');\rthis.__upgradeProperty('pinch');\rthis.__upgradeProperty('zoom');\r }\n __listBoolProps() { return [\"y_scroll_visible\",\"x_scroll_visible\",\"floating_scroll\",\"x_scroll\",\"y_scroll\",\"auto_hide\",\"disable\",\"no_user_select\",\"mouse_drag\",\"pinch\"].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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Layout.Scrollable","isStrong":false},{"fullName":"Attribute","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","isStrong":false},{"fullName":"Aventus.ResizeObserver","isStrong":false},{"fullName":"Aventus.TouchRecord","isStrong":false},{"fullName":"SVGSVGElement","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Animation","isStrong":false},{"fullName":"DOMMatrix","isStrong":false},{"fullName":"Aventus.Tracker","isStrong":false},{"fullName":"Aventus.PressManager","isStrong":false},{"fullName":"Aventus.DragAndDrop","isStrong":false},{"fullName":"WheelEvent","isStrong":false},{"fullName":"Aventus.NormalizedEvent","isStrong":false},{"fullName":"TouchEvent","isStrong":false},{"fullName":"PointerEvent","isStrong":false},{"fullName":"MouseEvent","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) }\r _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); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('tab');\rthis.__upgradeProperty('active');\r }\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","dependances":[{"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.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) }\r tabHeader;\n static __style = ``;\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); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('selected');\r }\n __listBoolProps() { return [\"selected\"].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","dependances":[{"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}\r 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}));\r super.__registerWatchesActions();\n}\n static __style = `:host{align-items:center;display:flex;inset:0;justify-content:center;position:fixed;z-index:60}: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();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"modalEl\",\n \"ids\": [\n \"modalelement_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"ModalElement\";\n }\n __defaultValuesWatch(w) { super.__defaultValuesWatch(w); w[\"options\"] = undefined;\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('options');\r }\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 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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Modal.ModalOptions","isStrong":false},{"fullName":"Aventus.Modal.ModalElement","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.Modal.ExtractTypeModal","isStrong":false},{"fullName":"Element","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Watch","isStrong":false},{"fullName":"Aventus.WatchAction","isStrong":false},{"fullName":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","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.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() {\rsuper.__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","dependances":[{"fullName":"Aventus.Navigation.Page","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Navigation.Page.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 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><div class=\"content\" _id=\"router_0\"></div><slot name=\"after\"></slot>` }\n });\n}\n __registerTemplateAction() { super.__registerTemplateAction();\rthis.__getStatic().__template.setActions({\n \"elements\": [\n {\n \"name\": \"contentEl\",\n \"ids\": [\n \"router_0\"\n ]\n }\n ]\n});\r }\n getClassName() {\n return \"Router\";\n }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('stateManager');\r }\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 register() {\n try {\n 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);\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() {\n return this.stateManager.getStateSlugs(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 postCreation() {\n this.register();\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 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 }\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","dependances":[{"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":"ViewElement","isStrong":false},{"fullName":"HTMLDivElement","isStrong":false},{"fullName":"Aventus.Navigation.RouteAsyncOption","isStrong":false},{"fullName":"Aventus.State","isStrong":false},{"fullName":"Aventus.Mutex","isStrong":false},{"fullName":"Aventus.StateManager","isStrong":false},{"fullName":"Aventus.Instance","isStrong":false},{"fullName":"Aventus.RouterStateManager","isStrong":false},{"fullName":"Aventus.ResourceLoader","isStrong":false},{"fullName":"Aventus.Navigation.Router","isStrong":false},{"fullName":"Aventus.UriParamsValue","isStrong":false},{"fullName":"Promise","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) }\rget 'delay'() { return this.getNumberAttr('delay') }\n set 'delay'(val) { this.setNumberAttr('delay', val) }\rget 'is_active'() { return this.getBoolAttr('is_active') }\n set 'is_active'(val) { this.setBoolAttr('is_active', val) }\r showAsked = false;\n onHideCallback = () => { };\n timeout = 0;\n isTransition = false;\n waitTransitionCbs = [];\n static __style = `:host{position:absolute}:host(:not([is_active])){opacity:0;visibility:hidden}:host([position=\"bottom left\"]){bottom:var(--_toast-space-bottom);left:0px}:host([position=\"top left\"]){left:var(--_toast-space-left);top:var(--_toast-space-top)}:host([position=\"bottom right\"]){bottom:var(--_toast-space-bottom);right:var(--_toast-space-right)}:host([position=\"top right\"]){right:var(--_toast-space-right);top:var(--_toast-space-top)}:host([position=top]){left:50%;top:var(--_toast-space-top);transform:translateX(-50%)}:host([position=bottom]){bottom:var(--_toast-space-bottom);left:50%;transform:translateX(-50%)}`;\n constructor() {\n super();\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; }\rif(!this.hasAttribute('delay')){ this['delay'] = _.Toast.ToastManager.defaultDelay; }\rif(!this.hasAttribute('is_active')) { this.attributeChangedCallback('is_active', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__upgradeProperty('position');\rthis.__upgradeProperty('delay');\rthis.__upgradeProperty('is_active');\r }\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.isTransition = true;\n });\n this.addEventListener(\"transitionEnd\", () => {\n this.isTransition = 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.isTransition) {\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","dependances":[{"fullName":"Aventus.WebComponent","isStrong":true},{"fullName":"Aventus.DefaultComponent","isStrong":true},{"fullName":"Aventus.Toast.ToastOptions","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Toast.ToastManager","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 'gap'() { return this.getNumberAttr('gap') }\n set 'gap'(val) { this.setNumberAttr('gap', val) }\rget 'not_main'() { return this.getBoolAttr('not_main') }\n set 'not_main'(val) { this.setBoolAttr('not_main', val) }\r static defaultToast;\n static defaultToastManager;\n static defaultPosition = 'top right';\n static defaultDelay = 5000;\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)}:host{inset:0;overflow:hidden;pointer-events:none;position:fixed;z-index:50}: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('gap')){ this['gap'] = 10; }\rif(!this.hasAttribute('not_main')) { this.attributeChangedCallback('not_main', false, false); }\r }\n __upgradeAttributes() { super.__upgradeAttributes(); this.__correctGetter('containerHeight');\rthis.__correctGetter('heightLimit');\rthis.__upgradeProperty('gap');\rthis.__upgradeProperty('not_main');\r }\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, from) {\n return new Promise((resolve) => {\n let height = toast.offsetHeight;\n let containerHeight = this.containerHeight;\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, index);\n }\n else {\n let containerHeight = this.containerHeight;\n for (let i = 0; i < index; i++) {\n let notif = this.activeToasts[position][i];\n let bottom = containerHeight - (notif.offsetTop + notif.offsetHeight);\n notif.style.bottom = bottom - height - this.gap + 'px';\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 t of this.activeToasts[position]) {\n totHeight += t.offsetHeight + this.gap;\n }\n if (totHeight + height < this.heightLimit) {\n for (let i = from; i < this.activeToasts[position].length; i++) {\n let t = this.activeToasts[position][i];\n let bottom = containerHeight - (t.offsetTop + t.offsetHeight);\n t.style.bottom = bottom + height + this.gap + 'px';\n }\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n });\n }\n _calculateTop(toast, firstTime, position, from) {\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, index);\n }\n else {\n for (let i = 0; i < index; i++) {\n let notif = this.activeToasts[position][i];\n let top = (notif.offsetTop - height - this.gap);\n notif.style.top = top + 'px';\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 + this.gap;\n }\n if (totHeight + height < this.heightLimit) {\n for (let i = from; i < this.activeToasts[position].length; i++) {\n let notif = this.activeToasts[position][i];\n await notif.waitTransition();\n let top = (notif.offsetTop + notif.offsetHeight);\n notif.style.top = top + this.gap + 'px';\n }\n this.activeToasts[position].push(toast);\n toast.show(_remove);\n }\n else if (firstTime) {\n this.waitingToasts[position].push(toast);\n }\n }\n this.mutex.release();\n return;\n });\n }\n async _notifyBottomRight(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom right\", 0);\n }\n async _notifyTopRight(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top right\", 0);\n }\n async _notifyBottomLeft(toast, firstTime) {\n return await this._calculateBottom(toast, firstTime, \"bottom left\", 0);\n }\n async _notifyTopLeft(toast, firstTime) {\n return await this._calculateTop(toast, firstTime, \"top left\", 0);\n }\n async _notifyTop(toast, firstTime, from = 0) {\n return await this._calculateTop(toast, firstTime, \"top\", 0);\n }\n async _notifyBottom(toast, firstTime, from = 0) {\n return await this._calculateBottom(toast, firstTime, \"bottom\", from);\n }\n postConnect() {\n super.postConnect();\n if (!Toast.ToastManager.instance && !this.not_main) {\n Toast.ToastManager.instance = this;\n }\n }\n postDisonnect() {\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 for (let key in options) {\n if (options[key] !== undefined)\n this[key] = options[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","dependances":[{"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":"Promise","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 static handleErrors;\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 return undefined;\n }\n}\nProcess.Namespace=`Aventus`;\r\n__as1(_, 'Process', Process);\r\n","dependances":[{"fullName":"Aventus.GenericError","isStrong":true},{"fullName":"Aventus.ProcessConfig","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.ExtractFromError","isStrong":false}],"fullName":"Aventus.Process","required":false,"type":1,"isExported":true,"convertibleName":""}],"existing":[{"fullName":"Aventus.ProcessConfig","dependances":[{"fullName":"Aventus.GenericError","isStrong":false}]},{"fullName":"Aventus.Toast.ToastPosition","dependances":[]},{"fullName":"Aventus.Navigation.FilterPrefix","dependances":[{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Navigation.ToKey","dependances":[{"fullName":"T","isStrong":false},{"fullName":"U","isStrong":false}]},{"fullName":"Aventus.Navigation.FirstKey","dependances":[{"fullName":"Aventus.Navigation.ToKey","isStrong":false},{"fullName":"Aventus.Navigation.FilterPrefix","isStrong":false}]},{"fullName":"Aventus.Navigation.LastParameter","dependances":[{"fullName":"T","isStrong":false},{"fullName":"Last","isStrong":false},{"fullName":"Parameters","isStrong":false}]},{"fullName":"Aventus.Modal.ModalOptions","dependances":[]},{"fullName":"Aventus.Lib.ShortcutManagerOptions","dependances":[]},{"fullName":"Aventus.Layout.ColOptions","dependances":[]},{"fullName":"Aventus.Form.ExtractError","dependances":[{"fullName":"X","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false},{"fullName":"Y","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false}]},{"fullName":"Aventus.Navigation.PageFormConfig","dependances":[]},{"fullName":"Aventus.Navigation.Page.PageConfig","dependances":[]},{"fullName":"Aventus.Form.InternalFormPart","dependances":[{"fullName":"Aventus.Form.FormPartValidate","isStrong":false},{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Form.IFormElement","isStrong":false},{"fullName":"Aventus.Form.FormHandler","isStrong":false}]},{"fullName":"Aventus.Navigation.RouteAsyncOption","dependances":[{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Form.WithError","dependances":[{"fullName":"Storybook","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"Aventus.VoidWithError","isStrong":false},{"fullName":"Aventus.ResultWithError","isStrong":false}]},{"fullName":"Aventus.Form.InternalForm","dependances":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false}]},{"fullName":"Aventus.Form.Constructor","dependances":[{"fullName":"AllowAbstract","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Toast.ToastManagerOptions","dependances":[{"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.KeyResult","dependances":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"Aventus.Navigation.FirstKey","isStrong":false},{"fullName":"InstanceType","isStrong":false},{"fullName":"C","isStrong":false}]},{"fullName":"Aventus.Navigation.Result","dependances":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.HttpRoute","isStrong":false},{"fullName":"InstanceType","isStrong":false},{"fullName":"C","isStrong":false},{"fullName":"M","isStrong":false},{"fullName":"ReturnType","isStrong":false}]},{"fullName":"Aventus.Navigation.RouterOptions","dependances":[{"fullName":"Aventus.Form.Constructor","isStrong":false},{"fullName":"Aventus.Navigation.Page","isStrong":false}]},{"fullName":"Aventus.Form.FormValidateResult","dependances":[{"fullName":"Aventus.Asyncable","isStrong":false}]},{"fullName":"Aventus.Form.FormValidate","dependances":[{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidate","dependances":[{"fullName":"T","isStrong":false},{"fullName":"Promise","isStrong":false},{"fullName":"Aventus.Form.FormValidateResult","isStrong":false}]},{"fullName":"Aventus.Form.FormHandlerConfig","dependances":[{"fullName":"Aventus.Form.FormValidate","isStrong":false},{"fullName":"T","isStrong":false},{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.GenericError","isStrong":false}]},{"fullName":"Aventus.Form.FormPartValidateList","dependances":[{"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.FormPart","dependances":[{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.FormSchema","dependances":[{"fullName":"T","isStrong":false},{"fullName":"Aventus.Form.FormPart","isStrong":false},{"fullName":"Aventus.Form.FormPartValidateList","isStrong":false}]},{"fullName":"Aventus.Form.SubmitFunction","dependances":[{"fullName":"Aventus.Asyncable","isStrong":false},{"fullName":"Aventus.Form.WithError","isStrong":false},{"fullName":"X","isStrong":false},{"fullName":"T","isStrong":false}]},{"fullName":"Aventus.Form.IFormElement","dependances":[{"fullName":"Aventus.Callback","isStrong":false},{"fullName":"Aventus.Form.InternalFormPart","isStrong":false}]},{"fullName":"Aventus.Form.IForm","dependances":[{"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","dependances":[{"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","dependances":[{"fullName":"Aventus.Toast.ToastPosition","isStrong":false}]}]}
522
1237
  //#endregion js src //
523
1238
  //#region css def //
524
- {"av-checkbox":[{"name":"--checkbox-size","chainValues":["18px"]},{"name":"--checkbox-label-space","chainValues":["8px"]},{"name":"--checkbox-border-size","chainValues":["2px"]},{"name":"--checkbox-tick-size","chainValues":["--internal-checkbox-size"]},{"name":"--checkbox-tick-stroke-size","chainValues":["2px"]},{"name":"--checkbox-border-radius","chainValues":["2px"]}],"av-form":[],"av-input":[{"name":"--input-font-size","chainValues":["16px"]},{"name":"--input-label-font-size","chainValues":["12px"]},{"name":"--input-label-spacing","chainValues":["2px"]}],"av-img":[{"name":"--img-color"},{"name":"--img-stroke-color","chainValues":["--internal-img-color"]},{"name":"--img-fill-color","chainValues":["--internal-img-color"]},{"name":"--img-color-transition","chainValues":["none"]}],"av-collapse":[{"name":"--collapse-transition-duration","chainValues":["0.5s"]},{"name":"--collapse-transition-timing-function","chainValues":["1"]}],"av-dynamic-col":[],"av-dynamic-row":[],"av-grid":[],"av-grid-col":[],"av-scrollable":[{"name":"--scrollbar-container-color","chainValues":["transparent"]},{"name":"--scrollbar-color","chainValues":["#757575"]},{"name":"--scrollbar-active-color","chainValues":["#858585"]},{"name":"--scroller-width","chainValues":["6px"]},{"name":"--scroller-top","chainValues":["3px"]},{"name":"--scroller-bottom","chainValues":["3px"]},{"name":"--scroller-right","chainValues":["3px"]},{"name":"--scroller-left","chainValues":["3px"]},{"name":"--scrollbar-content-padding","chainValues":["0"]},{"name":"--scrollbar-container-display","chainValues":["inline-block"]}],"av-page":[],"av-router":[],"av-router-link":[],"av-progress-circle":[{"name":"--progress-circle-back-circle-color","chainValues":[".5"]},{"name":"--progress-circle-percent-circle-color","chainValues":["#3b82f6"]},{"name":"--progress-circle-transition","chainValues":["1"]}]}
1239
+ {"av-button-element":[],"av-form":[],"av-form-element":[],"av-img":[{"name":"--img-color"},{"name":"--img-stroke-color","chainValues":["--internal-img-color"],"defaultValue":"--internal-img-color"},{"name":"--img-fill-color","chainValues":["--internal-img-color"],"defaultValue":"--internal-img-color"},{"name":"--img-color-transition","chainValues":["none"],"defaultValue":"none"}],"av-col":[{"name":"--col-padding","chainValues":["8px"],"defaultValue":"8px"},{"name":"--col-gap","chainValues":["0px"],"defaultValue":"0px"}],"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"}],"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":[],"av-default-404":[],"av-link":[],"av-page":[],"av-page-form":[],"av-page-form-route":[],"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"}]}
525
1240
  //#endregion css def //
526
1241
  //#region css //
527
1242
  {}
528
1243
  //#endregion css //
529
1244
  //#region html //
530
- {"av-progress-circle":{"class":"Aventus.ProgressCircle","name":"av-progress-circle","description":"","attributes":{"value":{"name":"value","description":"","type":"number","values":[]},"stroke_width":{"name":"stroke_width","description":"","type":"number","values":[]}}},"av-router-link":{"class":"Aventus.Navigation.RouterLink","name":"av-router-link","description":"","attributes":{"state":{"name":"state","description":"","type":"string","values":[]},"active_state":{"name":"active_state","description":"/**\r\n * If set define when active class is added otherwhise class active is added when state define is active\r\n */","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"","values":[]}}},"av-grid-col":{"class":"Aventus.Layout.GridCol","name":"av-grid-col","description":"","attributes":{"column":{"name":"column","description":"","type":"string","values":[]},"row":{"name":"row","description":"","type":"string","values":[]}}},"av-grid":{"class":"Aventus.Layout.Grid","name":"av-grid","description":"","attributes":{"cols":{"name":"cols","description":"","type":"number","values":[]}}},"av-dynamic-row":{"class":"Aventus.Layout.DynamicRow","name":"av-dynamic-row","description":"","attributes":{"max_width":{"name":"max_width","description":"","type":"string","values":[]}}},"av-dynamic-col":{"class":"Aventus.Layout.DynamicCol","name":"av-dynamic-col","description":"","attributes":{"size":{"name":"size","description":"","type":"number","values":[]},"size_xs":{"name":"size_xs","description":"","type":"number","values":[]},"size_sm":{"name":"size_sm","description":"","type":"number","values":[]},"size_md":{"name":"size_md","description":"","type":"number","values":[]},"size_lg":{"name":"size_lg","description":"","type":"number","values":[]},"size_xl":{"name":"size_xl","description":"","type":"number","values":[]},"offset":{"name":"offset","description":"","type":"number","values":[]},"offset_xs":{"name":"offset_xs","description":"","type":"number","values":[]},"offset_sm":{"name":"offset_sm","description":"","type":"number","values":[]},"offset_md":{"name":"offset_md","description":"","type":"number","values":[]},"offset_lg":{"name":"offset_lg","description":"","type":"number","values":[]},"offset_xl":{"name":"offset_xl","description":"","type":"number","values":[]},"offset_right":{"name":"offset_right","description":"","type":"number","values":[]},"offset_right_xs":{"name":"offset_right_xs","description":"","type":"number","values":[]},"offset_right_sm":{"name":"offset_right_sm","description":"","type":"number","values":[]},"offset_right_md":{"name":"offset_right_md","description":"","type":"number","values":[]},"offset_right_lg":{"name":"offset_right_lg","description":"","type":"number","values":[]},"offset_right_xl":{"name":"offset_right_xl","description":"","type":"number","values":[]},"nobreak":{"name":"nobreak","description":"","type":"boolean","values":[]},"center":{"name":"center","description":"","type":"boolean","values":[]}}},"av-collapse":{"class":"Aventus.Collapse","name":"av-collapse","description":"","attributes":{"open":{"name":"open","description":"","type":"boolean","values":[]},"no_animation":{"name":"no_animation","description":"","type":"boolean","values":[]}}},"av-img":{"class":"Aventus.Img","name":"av-img","description":"","attributes":{"cache":{"name":"cache","description":"","type":"boolean","values":[]},"src":{"name":"src","description":"","type":"string","values":[]},"mode":{"name":"mode","description":"","type":"string","values":[{"name":"stretch","description":""},{"name":"contains","description":""},{"name":"cover","description":""}]}}},"av-form":{"class":"Aventus.Form.Form","name":"av-form","description":"","attributes":{}},"av-input":{"class":"Aventus.Form.Input","name":"av-input","description":"","attributes":{"required":{"name":"required","description":"/**\r\n * Determine if the field is required\r\n */","type":"boolean","values":[]},"disabled":{"name":"disabled","description":"/**\r\n * Determine if the fields is disabled\r\n */","type":"boolean","values":[]},"min_length":{"name":"min_length","description":"","type":"number","values":[]},"max_length":{"name":"max_length","description":"","type":"number","values":[]},"pattern":{"name":"pattern","description":"","type":"string","values":[]},"value":{"name":"value","description":"@inheritdoc\r\n ","type":"string","values":[]},"label":{"name":"label","description":"","type":"string","values":[]},"onChange":{"name":"@change","description":"@inheritdoc\r\n ","values":[]}}},"av-checkbox":{"class":"Aventus.Form.Checkbox","name":"av-checkbox","description":"","attributes":{"disabled":{"name":"disabled","description":"/**\r\n * Determine if the fields is disabled\r\n */","type":"boolean","values":[]},"reverse":{"name":"reverse","description":"","type":"boolean","values":[]},"label":{"name":"label","description":"","type":"string","values":[]},"checked":{"name":"checked","description":"","type":"boolean","values":[]},"onChange":{"name":"@change","description":"@inheritdoc\r\n ","values":[]}}},"av-scrollable":{"class":"Aventus.Layout.Scrollable","name":"av-scrollable","description":"","attributes":{"floating_scroll":{"name":"floating_scroll","description":"/**\r\n * Determine if scrollbar will be floating or not\r\n */","type":"boolean","values":[]},"x_scroll":{"name":"x_scroll","description":"/**\r\n * Determine if x scroll is allowed\r\n */","type":"boolean","values":[]},"y_scroll":{"name":"y_scroll","description":"/**\r\n * Determine if x scroll is allowed\r\n */","type":"boolean","values":[]},"auto_hide":{"name":"auto_hide","description":"/**\r\n * If true, the scrollers will hide if they're not in use\r\n */","type":"boolean","values":[]},"break":{"name":"break","description":"","type":"number","values":[]},"disable":{"name":"disable","description":"/**\r\n * Disable user action\r\n */","type":"boolean","values":[]},"zoom":{"name":"zoom","description":"/**\r\n * Set the zoom to apply for the container\r\n */","type":"number","values":[]},"onScrollChange":{"name":"@scrollChange","description":"/**\r\n * Callback trigger when the scroll change\r\n */","values":[]}}}}
1245
+ {"av-toast-manager":{"class":"Aventus.Toast.ToastManager","name":"av-toast-manager","description":"","attributes":{"gap":{"name":"gap","description":"","type":"number","values":[]},"not_main":{"name":"not_main","description":"","type":"boolean","values":[]}}},"av-progress-circle":{"class":"Aventus.ProgressCircle","name":"av-progress-circle","description":"","attributes":{"value":{"name":"value","description":"","type":"number","values":[]},"stroke_width":{"name":"stroke_width","description":"","type":"number","values":[]}}},"av-row":{"class":"Aventus.Layout.Row","name":"av-row","description":"","attributes":{}},"av-collapse":{"class":"Aventus.Collapse","name":"av-collapse","description":"","attributes":{"open":{"name":"open","description":"","type":"boolean","values":[]},"no_animation":{"name":"no_animation","description":"","type":"boolean","values":[]}}},"av-col":{"class":"Aventus.Layout.Col","name":"av-col","description":"","attributes":{"use_container":{"name":"use_container","description":"","type":"boolean","values":[]},"size":{"name":"size","description":"","type":"number","values":[]},"size_xs":{"name":"size_xs","description":"","type":"number","values":[]},"size_sm":{"name":"size_sm","description":"","type":"number","values":[]},"size_md":{"name":"size_md","description":"","type":"number","values":[]},"size_lg":{"name":"size_lg","description":"","type":"number","values":[]},"size_xl":{"name":"size_xl","description":"","type":"number","values":[]},"offset":{"name":"offset","description":"","type":"number","values":[]},"offset_xs":{"name":"offset_xs","description":"","type":"number","values":[]},"offset_sm":{"name":"offset_sm","description":"","type":"number","values":[]},"offset_md":{"name":"offset_md","description":"","type":"number","values":[]},"offset_lg":{"name":"offset_lg","description":"","type":"number","values":[]},"offset_xl":{"name":"offset_xl","description":"","type":"number","values":[]},"offset_right":{"name":"offset_right","description":"","type":"number","values":[]},"offset_right_xs":{"name":"offset_right_xs","description":"","type":"number","values":[]},"offset_right_sm":{"name":"offset_right_sm","description":"","type":"number","values":[]},"offset_right_md":{"name":"offset_right_md","description":"","type":"number","values":[]},"offset_right_lg":{"name":"offset_right_lg","description":"","type":"number","values":[]},"offset_right_xl":{"name":"offset_right_xl","description":"","type":"number","values":[]},"center":{"name":"center","description":"","type":"boolean","values":[]}}},"av-img":{"class":"Aventus.Img","name":"av-img","description":"","attributes":{"cache":{"name":"cache","description":"","type":"boolean","values":[]},"src":{"name":"src","description":"","type":"string","values":[]},"mode":{"name":"mode","description":"","type":"string","values":[{"name":"stretch","description":""},{"name":"contains","description":""},{"name":"cover","description":""}]}}},"av-router-link":{"class":"Aventus.Navigation.RouterLink","name":"av-router-link","description":"","attributes":{"state":{"name":"state","description":"","type":"string","values":[]},"active_state":{"name":"active_state","description":"If set define when active class is added otherwhise class active is added when state define is active","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"","values":[]}}},"av-link":{"class":"Aventus.Navigation.Link","name":"av-link","description":"","attributes":{"to":{"name":"to","description":"","type":"string","values":[]},"active_pattern":{"name":"active_pattern","description":"If set define when active class is added otherwhise class active is added when to define is active","type":"string","values":[]},"onActiveChange":{"name":"@activeChange","description":"","values":[]}}},"av-form":{"class":"Aventus.Form.Form","name":"av-form","description":"","attributes":{"form":{"name":":form","description":"","values":[]},"request":{"name":":request","description":"","values":[]},"onSubmit":{"name":"@submit","description":"","values":[]}}},"av-grid-helper":{"class":"Aventus.Layout.GridHelper","name":"av-grid-helper","description":"","attributes":{"show_rulers":{"name":"show_rulers","description":"","type":"boolean","values":[]},"show_grid":{"name":"show_grid","description":"","type":"boolean","values":[]},"show_ruler":{"name":"show_ruler","description":"","type":"boolean","values":[]},"show_guides":{"name":"show_guides","description":"","type":"boolean","values":[]},"lock":{"name":"lock","description":"","type":"boolean","values":[]},"visible":{"name":"visible","description":"","type":"boolean","values":[]},"unit":{"name":"unit","description":"","type":"string","values":[{"name":"px","description":""},{"name":"rem","description":""},{"name":"cm","description":""},{"name":"mm","description":""},{"name":"in","description":""}]},"nb_col":{"name":"nb_col","description":"","type":"number","values":[]},"nb_row":{"name":"nb_row","description":"","type":"number","values":[]},"col_width":{"name":"col_width","description":"","type":"number","values":[]},"row_height":{"name":"row_height","description":"","type":"number","values":[]},"ruler_size":{"name":"ruler_size","description":"","type":"number","values":[]},"step":{"name":"step","description":"","type":"number","values":[]},"step_big":{"name":"step_big","description":"","type":"number","values":[]},"magnetic":{"name":"magnetic","description":"","type":"number","values":[]}}},"av-grid-guide-helper":{"class":"Aventus.Layout.GridGuideHelper","name":"av-grid-guide-helper","description":"","attributes":{"direction":{"name":"direction","description":"","type":"string","values":[{"name":"y","description":""},{"name":"x","description":""}]},"moving":{"name":"moving","description":"","type":"boolean","values":[]}}},"av-scrollable":{"class":"Aventus.Layout.Scrollable","name":"av-scrollable","description":"","attributes":{"min_zoom":{"name":"min_zoom","description":"","type":"number","values":[]},"max_zoom":{"name":"max_zoom","description":"","type":"number","values":[]},"floating_scroll":{"name":"floating_scroll","description":"Determine if scrollbar will be floating or not","type":"boolean","values":[]},"x_scroll":{"name":"x_scroll","description":"Determine if x scroll is allowed","type":"boolean","values":[]},"y_scroll":{"name":"y_scroll","description":"Determine if x scroll is allowed","type":"boolean","values":[]},"auto_hide":{"name":"auto_hide","description":"If true, the scrollers will hide if they're not in use","type":"boolean","values":[]},"break":{"name":"break","description":"","type":"number","values":[]},"disable":{"name":"disable","description":"Disable user action","type":"boolean","values":[]},"mouse_drag":{"name":"mouse_drag","description":"Allow scroll by dragging with the mouse","type":"boolean","values":[]},"pinch":{"name":"pinch","description":"","type":"boolean","values":[]},"zoom":{"name":"zoom","description":"Set the zoom to apply for the container","type":"number","values":[]},"onScrollChange":{"name":"@scrollChange","description":"/**\r\n * Callback trigger when the scroll change\r\n */","values":[]},"onZoomChange":{"name":"@zoomChange","description":"","values":[]}}},"av-default-404":{"class":"Aventus.Navigation.Default404","name":"av-default-404","description":"","attributes":{"visible":{"name":"visible","description":"","type":"boolean","values":[]}}}}
531
1246
  //#endregion html //
532
1247
  //#region dependances //
533
- []
1248
+ {}
534
1249
  //#endregion dependances //