@3t-transform/threeteeui 0.0.14 → 0.0.16

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 (104) hide show
  1. package/dist/cjs/{index-bf39be87.js → index-864b7110.js} +4 -3
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +18 -18
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +18 -18
  5. package/dist/cjs/tttx-form.cjs.entry.js +364 -176
  6. package/dist/cjs/tttx-icon.cjs.entry.js +56 -54
  7. package/dist/cjs/tttx-list.cjs.entry.js +188 -188
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +13 -13
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +127 -127
  11. package/dist/cjs/tttx-table.cjs.entry.js +60 -0
  12. package/dist/cjs/tttx.cjs.js +2 -2
  13. package/dist/collection/collection-manifest.json +2 -1
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -93
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +25 -25
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +116 -114
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +32 -32
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -66
  19. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  20. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -96
  21. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -23
  22. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -101
  23. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +9 -9
  24. package/dist/collection/components/molecules/tttx-form/tttx-form.js +451 -249
  25. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +109 -102
  26. package/dist/collection/components/molecules/tttx-list/tttx-list.js +311 -311
  27. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +15 -15
  28. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +569 -569
  29. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +134 -134
  30. package/dist/collection/components/molecules/tttx-table/tttx-table.css +166 -0
  31. package/dist/collection/components/molecules/tttx-table/tttx-table.js +177 -0
  32. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +81 -0
  33. package/dist/collection/components/palette.stories.js +7 -7
  34. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  35. package/dist/collection/icons.js +2838 -2838
  36. package/dist/collection/index.js +1 -1
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.js +1 -0
  39. package/dist/components/tttx-button.js +35 -35
  40. package/dist/components/tttx-checkbox.js +36 -36
  41. package/dist/components/tttx-form.js +381 -193
  42. package/dist/components/tttx-icon2.js +73 -71
  43. package/dist/components/tttx-list.js +214 -214
  44. package/dist/components/tttx-loading-spinner2.js +33 -33
  45. package/dist/components/tttx-popover-content.js +1 -37
  46. package/dist/components/tttx-popover-content2.js +39 -0
  47. package/dist/components/tttx-standalone-input.js +169 -168
  48. package/dist/components/tttx-table.d.ts +11 -0
  49. package/dist/components/tttx-table.js +91 -0
  50. package/dist/esm/{index-63c4d25e.js → index-232e347b.js} +4 -3
  51. package/dist/esm/loader.js +3 -3
  52. package/dist/esm/polyfills/core-js.js +0 -0
  53. package/dist/esm/polyfills/dom.js +0 -0
  54. package/dist/esm/polyfills/es5-html-element.js +0 -0
  55. package/dist/esm/polyfills/index.js +0 -0
  56. package/dist/esm/polyfills/system.js +0 -0
  57. package/dist/esm/tttx-button.entry.js +18 -18
  58. package/dist/esm/tttx-checkbox.entry.js +18 -18
  59. package/dist/esm/tttx-form.entry.js +364 -176
  60. package/dist/esm/tttx-icon.entry.js +56 -54
  61. package/dist/esm/tttx-list.entry.js +188 -188
  62. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  63. package/dist/esm/tttx-popover-content.entry.js +13 -13
  64. package/dist/esm/tttx-standalone-input.entry.js +127 -127
  65. package/dist/esm/tttx-table.entry.js +56 -0
  66. package/dist/esm/tttx.js +3 -3
  67. package/dist/tttx/{p-2d54f8aa.entry.js → p-01e1894e.entry.js} +1 -1
  68. package/dist/tttx/{p-709246f5.entry.js → p-10316ff1.entry.js} +1 -1
  69. package/dist/tttx/p-125f06b3.entry.js +1 -0
  70. package/dist/tttx/p-184c4fae.js +2 -0
  71. package/dist/tttx/{p-ad0c3fe4.entry.js → p-3973b7dd.entry.js} +1 -1
  72. package/dist/tttx/p-5ce1ba22.entry.js +1 -0
  73. package/dist/tttx/{p-4c57bcbd.entry.js → p-6828fe6f.entry.js} +1 -1
  74. package/dist/tttx/p-b1c22f5f.entry.js +1 -0
  75. package/dist/tttx/{p-1a4eb1f3.entry.js → p-c7f9be65.entry.js} +1 -1
  76. package/dist/tttx/{p-2b6720ac.entry.js → p-fe4c70b2.entry.js} +1 -1
  77. package/dist/tttx/tttx.esm.js +1 -1
  78. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -9
  79. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -20
  80. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -14
  81. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -21
  82. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  83. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  84. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -7
  85. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -18
  86. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -9
  87. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -6
  88. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +134 -18
  89. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -6
  90. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -51
  91. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -13
  92. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -38
  93. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -106
  94. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -0
  95. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -0
  96. package/dist/types/components/palette.stories.d.ts +6 -6
  97. package/dist/types/components.d.ts +29 -1
  98. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  99. package/dist/types/icons.d.ts +2 -2
  100. package/dist/types/index.d.ts +1 -1
  101. package/package.json +7 -4
  102. package/dist/tttx/p-28e4c359.entry.js +0 -1
  103. package/dist/tttx/p-95a29e09.entry.js +0 -1
  104. package/dist/tttx/p-bec472d8.js +0 -2
@@ -1,38 +1,38 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- export type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
3
- export type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
4
- export type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
5
- export type TimeSyntax = `${number}${number}:${number}${number}`;
6
- export type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
7
- export type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
8
- export declare class TttxInput {
9
- label: string;
10
- showerrormsg: boolean;
11
- errormsg: string;
12
- iconleft: string;
13
- iconright: string;
14
- autocapitalize: string;
15
- autocomplete: 'off' | 'on';
16
- autofocus: boolean;
17
- checked: boolean;
18
- disabled: boolean;
19
- max: MinMaxDates | number;
20
- maxlength: string | number;
21
- min: MinMaxDates | number;
22
- minlength: string | number;
23
- name: string;
24
- pattern: string;
25
- placeholder: string;
26
- readonly: string | boolean;
27
- required: boolean;
28
- step: string | number;
29
- type: string;
30
- value: string | number;
31
- valueChanged: EventEmitter<string>;
32
- handleChange(event: Event | InputEvent): void;
33
- focusChanged: EventEmitter<string>;
34
- handleFocus(event: Event | InputEvent): void;
35
- blurChanged: EventEmitter<string>;
36
- handleBlur(event: Event | InputEvent): void;
37
- render(): any;
38
- }
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
3
+ export type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
4
+ export type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
5
+ export type TimeSyntax = `${number}${number}:${number}${number}`;
6
+ export type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
7
+ export type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
8
+ export declare class TttxInput {
9
+ label: string;
10
+ showerrormsg: boolean;
11
+ errormsg: string;
12
+ iconleft: string;
13
+ iconright: string;
14
+ autocapitalize: string;
15
+ autocomplete: 'off' | 'on';
16
+ autofocus: boolean;
17
+ checked: boolean;
18
+ disabled: boolean;
19
+ max: MinMaxDates | number;
20
+ maxlength: string | number;
21
+ min: MinMaxDates | number;
22
+ minlength: string | number;
23
+ name: string;
24
+ pattern: string;
25
+ placeholder: string;
26
+ readonly: string | boolean;
27
+ required: boolean;
28
+ step: string | number;
29
+ type: string;
30
+ value: string | number;
31
+ valueChanged: EventEmitter<string>;
32
+ handleChange(event: Event | InputEvent): void;
33
+ focusChanged: EventEmitter<string>;
34
+ handleFocus(event: Event | InputEvent): void;
35
+ blurChanged: EventEmitter<string>;
36
+ handleBlur(event: Event | InputEvent): void;
37
+ render(): any;
38
+ }
@@ -1,106 +1,106 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- iconleft: {
6
- options: string[];
7
- control: {
8
- type: string;
9
- };
10
- };
11
- iconright: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- label: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- errormsg: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- showerrormsg: {
28
- control: {
29
- type: string;
30
- };
31
- };
32
- checked: {
33
- control: {
34
- type: string;
35
- };
36
- };
37
- disabled: {
38
- control: {
39
- type: string;
40
- };
41
- };
42
- max: {
43
- control: {
44
- type: string;
45
- };
46
- };
47
- maxlength: {
48
- control: {
49
- type: string;
50
- };
51
- };
52
- min: {
53
- control: {
54
- type: string;
55
- };
56
- };
57
- minlength: {
58
- control: {
59
- type: string;
60
- };
61
- };
62
- name: {
63
- control: {
64
- type: string;
65
- };
66
- };
67
- pattern: {
68
- control: {
69
- type: string;
70
- };
71
- };
72
- placeholder: {
73
- control: {
74
- type: string;
75
- };
76
- };
77
- readonly: {
78
- control: {
79
- type: string;
80
- };
81
- };
82
- required: {
83
- control: {
84
- type: string;
85
- };
86
- };
87
- step: {
88
- control: {
89
- type: string;
90
- };
91
- };
92
- type: {
93
- options: string[];
94
- control: {
95
- type: string;
96
- };
97
- };
98
- value: {
99
- control: {
100
- type: string;
101
- };
102
- };
103
- };
104
- };
105
- export default _default;
106
- export declare const InputField: any;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ iconleft: {
6
+ options: string[];
7
+ control: {
8
+ type: string;
9
+ };
10
+ };
11
+ iconright: {
12
+ options: string[];
13
+ control: {
14
+ type: string;
15
+ };
16
+ };
17
+ label: {
18
+ control: {
19
+ type: string;
20
+ };
21
+ };
22
+ errormsg: {
23
+ control: {
24
+ type: string;
25
+ };
26
+ };
27
+ showerrormsg: {
28
+ control: {
29
+ type: string;
30
+ };
31
+ };
32
+ checked: {
33
+ control: {
34
+ type: string;
35
+ };
36
+ };
37
+ disabled: {
38
+ control: {
39
+ type: string;
40
+ };
41
+ };
42
+ max: {
43
+ control: {
44
+ type: string;
45
+ };
46
+ };
47
+ maxlength: {
48
+ control: {
49
+ type: string;
50
+ };
51
+ };
52
+ min: {
53
+ control: {
54
+ type: string;
55
+ };
56
+ };
57
+ minlength: {
58
+ control: {
59
+ type: string;
60
+ };
61
+ };
62
+ name: {
63
+ control: {
64
+ type: string;
65
+ };
66
+ };
67
+ pattern: {
68
+ control: {
69
+ type: string;
70
+ };
71
+ };
72
+ placeholder: {
73
+ control: {
74
+ type: string;
75
+ };
76
+ };
77
+ readonly: {
78
+ control: {
79
+ type: string;
80
+ };
81
+ };
82
+ required: {
83
+ control: {
84
+ type: string;
85
+ };
86
+ };
87
+ step: {
88
+ control: {
89
+ type: string;
90
+ };
91
+ };
92
+ type: {
93
+ options: string[];
94
+ control: {
95
+ type: string;
96
+ };
97
+ };
98
+ value: {
99
+ control: {
100
+ type: string;
101
+ };
102
+ };
103
+ };
104
+ };
105
+ export default _default;
106
+ export declare const InputField: any;
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class TttxTable {
3
+ headers: any;
4
+ data: any;
5
+ loading: boolean;
6
+ selected: number;
7
+ rowSelected: EventEmitter<any>;
8
+ headerClicked: EventEmitter<any>;
9
+ handleKeyDown(ev: KeyboardEvent): void;
10
+ updateSelectedIndex(key: string): void;
11
+ emitRowSelected(): void;
12
+ rowSelectedHandler(row: any): void;
13
+ headerClickedHandler(key: string): void;
14
+ render(): any;
15
+ }
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ loading: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ };
10
+ };
11
+ parameters: {
12
+ actions: {
13
+ handles: string[];
14
+ };
15
+ };
16
+ decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
17
+ };
18
+ export default _default;
19
+ export declare const BasicTable: any;
20
+ export declare const TablePreSelected: any;
21
+ export declare const TableLoading: any;
@@ -1,6 +1,6 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- };
5
- export default _default;
6
- export declare const Default: any;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: any;
@@ -62,6 +62,12 @@ export namespace Components {
62
62
  "type": string;
63
63
  "value": string | number;
64
64
  }
65
+ interface TttxTable {
66
+ "data": any;
67
+ "headers": any;
68
+ "loading": boolean;
69
+ "selected": number;
70
+ }
65
71
  }
66
72
  export interface TttxButtonCustomEvent<T> extends CustomEvent<T> {
67
73
  detail: T;
@@ -83,6 +89,10 @@ export interface TttxStandaloneInputCustomEvent<T> extends CustomEvent<T> {
83
89
  detail: T;
84
90
  target: HTMLTttxStandaloneInputElement;
85
91
  }
92
+ export interface TttxTableCustomEvent<T> extends CustomEvent<T> {
93
+ detail: T;
94
+ target: HTMLTttxTableElement;
95
+ }
86
96
  declare global {
87
97
  interface HTMLTttxButtonElement extends Components.TttxButton, HTMLStencilElement {
88
98
  }
@@ -132,6 +142,12 @@ declare global {
132
142
  prototype: HTMLTttxStandaloneInputElement;
133
143
  new (): HTMLTttxStandaloneInputElement;
134
144
  };
145
+ interface HTMLTttxTableElement extends Components.TttxTable, HTMLStencilElement {
146
+ }
147
+ var HTMLTttxTableElement: {
148
+ prototype: HTMLTttxTableElement;
149
+ new (): HTMLTttxTableElement;
150
+ };
135
151
  interface HTMLElementTagNameMap {
136
152
  "tttx-button": HTMLTttxButtonElement;
137
153
  "tttx-checkbox": HTMLTttxCheckboxElement;
@@ -141,6 +157,7 @@ declare global {
141
157
  "tttx-loading-spinner": HTMLTttxLoadingSpinnerElement;
142
158
  "tttx-popover-content": HTMLTttxPopoverContentElement;
143
159
  "tttx-standalone-input": HTMLTttxStandaloneInputElement;
160
+ "tttx-table": HTMLTttxTableElement;
144
161
  }
145
162
  }
146
163
  declare namespace LocalJSX {
@@ -157,7 +174,8 @@ declare namespace LocalJSX {
157
174
  }
158
175
  interface TttxForm {
159
176
  "formschema"?: any;
160
- "onSubmitEvent"?: (event: TttxFormCustomEvent<FormData>) => void;
177
+ "onDataChanged"?: (event: TttxFormCustomEvent<{ name: string, value: any }>) => void;
178
+ "onDataSubmitted"?: (event: TttxFormCustomEvent<FormData>) => void;
161
179
  "submitValue"?: any;
162
180
  }
163
181
  interface TttxIcon {
@@ -208,6 +226,14 @@ declare namespace LocalJSX {
208
226
  "type"?: string;
209
227
  "value"?: string | number;
210
228
  }
229
+ interface TttxTable {
230
+ "data"?: any;
231
+ "headers"?: any;
232
+ "loading"?: boolean;
233
+ "onHeaderClicked"?: (event: TttxTableCustomEvent<any>) => void;
234
+ "onRowSelected"?: (event: TttxTableCustomEvent<any>) => void;
235
+ "selected"?: number;
236
+ }
211
237
  interface IntrinsicElements {
212
238
  "tttx-button": TttxButton;
213
239
  "tttx-checkbox": TttxCheckbox;
@@ -217,6 +243,7 @@ declare namespace LocalJSX {
217
243
  "tttx-loading-spinner": TttxLoadingSpinner;
218
244
  "tttx-popover-content": TttxPopoverContent;
219
245
  "tttx-standalone-input": TttxStandaloneInput;
246
+ "tttx-table": TttxTable;
220
247
  }
221
248
  }
222
249
  export { LocalJSX as JSX };
@@ -231,6 +258,7 @@ declare module "@stencil/core" {
231
258
  "tttx-loading-spinner": LocalJSX.TttxLoadingSpinner & JSXBase.HTMLAttributes<HTMLTttxLoadingSpinnerElement>;
232
259
  "tttx-popover-content": LocalJSX.TttxPopoverContent & JSXBase.HTMLAttributes<HTMLTttxPopoverContentElement>;
233
260
  "tttx-standalone-input": LocalJSX.TttxStandaloneInput & JSXBase.HTMLAttributes<HTMLTttxStandaloneInputElement>;
261
+ "tttx-table": LocalJSX.TttxTable & JSXBase.HTMLAttributes<HTMLTttxTableElement>;
234
262
  }
235
263
  }
236
264
  }
@@ -1,5 +1,5 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const Default: any;
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const Default: any;
@@ -1,2 +1,2 @@
1
- declare const icons: string[];
2
- export default icons;
1
+ declare const icons: string[];
2
+ export default icons;
@@ -1 +1 @@
1
- export { Components, JSX } from './components';
1
+ export { Components, JSX } from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -18,12 +18,15 @@
18
18
  "build": "stencil build --docs",
19
19
  "start": "stencil build --watch --serve",
20
20
  "test": "stencil test --spec --e2e",
21
+ "coverage": "yarn test -- --coverage --no-cache",
21
22
  "test.watch": "stencil test --spec --e2e --watchAll",
22
23
  "generate": "stencil generate",
23
24
  "storybook": "storybook dev -p 6006",
24
25
  "build-storybook": "storybook build",
25
26
  "chromatic": "npx chromatic --project-token=531b962b0be5 --exit-zero-on-changes --exit-once-uploaded",
26
- "lint:generate": "eslint --ext .tsx -o output.eslint.json -f json"
27
+ "lint": "eslint \"./src/**/*.{ts,js}\"",
28
+ "lint:generate": "eslint \"./src/**/*.{ts,js}\" -o output.eslint.json -f json",
29
+ "lint:fix": "eslint \"./src/**/*.{ts,js}\" --fix"
27
30
  },
28
31
  "resolutions": {
29
32
  "@types/babel__traverse": "7.0.6"
@@ -45,8 +48,8 @@
45
48
  "@storybook/testing-library": "^0.1.0",
46
49
  "@storybook/web-components": "^7.0.6",
47
50
  "@types/jest": "^27.0.3",
48
- "@typescript-eslint/eslint-plugin": "^5.59.0",
49
- "@typescript-eslint/parser": "^5.59.0",
51
+ "@typescript-eslint/eslint-plugin": "^5.59.1",
52
+ "@typescript-eslint/parser": "^5.59.1",
50
53
  "chromatic": "^6.7.4",
51
54
  "eslint": "^8.38.0",
52
55
  "jest": "^27.4.5",
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as n}from"./p-bec472d8.js";const e=class{constructor(s){t(this,s),this.valueChanged=i(this,"valueChanged",7),this.focusChanged=i(this,"focusChanged",7),this.blurChanged=i(this,"blurChanged",7),this.label=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.iconleft=void 0,this.iconright=void 0,this.autocapitalize=void 0,this.autocomplete=void 0,this.autofocus=void 0,this.checked=void 0,this.disabled=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.step=void 0,this.type="text",this.value=void 0}handleChange(t){const i=t.target;this.value=i.value,this.valueChanged.emit(i.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}render(){const t=["standalone",this.showerrormsg?"invalid":""].join(" ");return s(n,null,s("label",{class:"inputBlock"},this.label,this.required?"":s("span",{class:"optional"}," (optional)"),this.iconleft&&s("div",{class:"icon-left"},s("tttx-icon",{icon:this.iconleft,colour:"grey"})),s("input",{class:t,autocapitalize:"url"===this.type||"email"===this.type||"password"===this.type?this.autocapitalize:null,autofocus:this.autofocus,autocomplete:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"datepickers"===this.type||"range"===this.type||"color"===this.type?this.autocomplete:null,checked:"checkbox"===this.type||"radio"===this.type?this.checked:null,disabled:this.required?null:this.disabled,max:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.max:null,maxlength:this.maxlength,min:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.min:null,minlength:this.minlength,name:this.name,pattern:"text"===this.type||"date"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type?this.pattern:null,placeholder:"text"===this.type||"tel"===this.type||"email"===this.type||"url"===this.type||"password"===this.type||"search"===this.type?this.placeholder:null,readonly:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type?this.readonly:null,required:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"checkbox"===this.type||"radio"===this.type||"file"===this.type?this.required:null,step:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.step:null,type:this.type,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this)}),this.iconright&&s("div",{class:"icon-right"},s("tttx-icon",{icon:this.iconright,colour:"grey"})),s("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},s("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg)))}};e.style='.material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}';export{e as tttx_standalone_input}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as e,H as o}from"./p-bec472d8.js";const n=class{constructor(e){i(this,e),this.submitEvent=t(this,"submitEvent",7),this.template=document.createElement("template"),this.formschema=void 0,this.submitValue=void 0}onFormSchemaChange(i){this._formSchema="string"==typeof i?JSON.parse(i):i}validityCheck(i){var t,e,o,n;i.preventDefault();const r=i.target;let a=!0,l="";if(r.validity.valueMissing?l=null!==(t=r.dataset.required)&&void 0!==t?t:"This field is required":r.validity.patternMismatch?l=null!==(e=r.dataset.pattern)&&void 0!==e?e:"Incorrect format":r.validity.badInput?l=null!==(o=r.dataset.badinput)&&void 0!==o?o:"Wrong input type":r.validity.rangeOverflow||r.validity.rangeUnderflow?l=null!==(n=r.dataset.range)&&void 0!==n?n:"Invalid value":a=!1,a){r.className="invalid";const i=document.createElement("span");i.className="material-symbols-rounded",i.textContent="warning",r.parentElement.querySelector(".errorBubble").replaceChildren(),r.parentElement.querySelector(".errorBubble").append(i),r.parentElement.querySelector(".errorBubble").append(l)}else r.className="",r.parentElement.querySelector(".errorBubble").replaceChildren()}doSubmit(i){i.preventDefault();const t=new FormData(i.target);this.submitEvent.emit(t)}fieldsetChange(i){console.log(i.target.name+" has changed")}componentWillLoad(){this.onFormSchemaChange(this.formschema)}componentWillRender(){this.template.content.replaceChildren(),this.populateFormFromSchema()}populateFormFromSchema(){if(!this._formSchema)return;const i=this._formSchema.properties;Object.keys(i).forEach((t=>{var e,o,n;const r=i[t].form,a=document.createElement("input");if(a.name=t,a.type=r.type,a.placeholder=null!==(e=r.placeholder)&&void 0!==e?e:"",a.autocomplete="off",a.autocapitalize="off",r.validation){const i=r.validation;i.required&&(a.setAttribute("required",""),a.setAttribute("data-required",null!==(o=i.required.message)&&void 0!==o?o:"")),i.pattern&&(a.setAttribute("pattern",i.pattern.pattern),a.setAttribute("data-pattern",null!==(n=i.pattern.message)&&void 0!==n?n:"")),i.badInput&&a.setAttribute("data-badinput",i.badInput.message),i.minmax&&(a.setAttribute("min",i.minmax.min),a.setAttribute("max",i.minmax.max),a.setAttribute("data-range",i.minmax.message)),i.maxlength&&a.setAttribute("maxlength",i.maxlength)}const l=document.createElement("div");l.className="errorBubble";const s=document.createElement("label");if(s.className="inputBlock",s.innerText=r.label,!r.validation){const i=document.createElement("span");i.className="optional",i.innerHTML="&nbsp;(optional)",s.appendChild(i)}s.appendChild(a),s.appendChild(l),this.template.content.append(s)}));const t=document.createElement("input");t.type="submit",t.className="button primary-blue",console.log(this.submitValue),t.value="Save",this.template.content.append(t)}componentDidRender(){if(!this._formSchema)return;const i=this.template.content.cloneNode(!0);Object.keys(this._formSchema.properties).forEach((t=>{i.querySelector(`[name=${t}]`).oninvalid=this.validityCheck.bind(this),i.querySelector(`[name=${t}]`).onblur=this.validityCheck.bind(this)})),this.fieldset.appendChild(i)}render(){return e(o,null,e("form",{onSubmit:this.doSubmit.bind(this)},e("fieldset",{onChange:this.fieldsetChange,ref:i=>this.fieldset=i})))}static get watchers(){return{formschema:["onFormSchemaChange"]}}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.icon-right{margin-top:5px;margin-right:4px}.icon-left{margin-top:5px;margin-left:4px}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.focused{border-color:#1479c6}.errormsg{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger{color:#dc0000}.optional{color:#757575;font-weight:normal}label.inputBlock{display:block;position:relative;line-height:21px}label{font-weight:500;font-size:16px}input:not([type=submit]){font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid:invalid,input.standalone.invalid{border:1px solid #dc0000}input~.errorBubble{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input~.errorBubble:not(.visible){visibility:hidden}input~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}input:focus{border-color:#1479c6}.button{height:36px;padding:8px 16px;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button:hover{background:#f0f0f0}.button:active{background:#e3e3e3}.primary-blue{background:#1479c6;border:1px solid #1479c6;color:white}.primary-blue:hover{background:#1169ba}.primary-blue:active{background:#0951a8}.secondary-white{background:white;border:1px solid #212121}:host{display:block}fieldset{margin:0;padding:0;border:none}input[type=submit]{margin-left:auto}';export{n as tttx_form}
@@ -1,2 +0,0 @@
1
- let e,n,t=!1;const l={},o=e=>"object"==(e=typeof e)||"function"===e;function s(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,s=!1,c=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!o(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?i(null,l):l),c=s)};if(u(t),n){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}const a=i(e,null);return a.l=n,r.length>0&&(a.o=r),a},i=(e,n)=>({i:0,u:e,t:n,m:null,o:null,l:null}),r={},u=e=>V(e).h,a=(e,n,t)=>{const l=u(e);return{emit:e=>f(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},f=(e,n,t)=>{const l=Y.ce(n,t);return e.dispatchEvent(l),l},d=new WeakMap,m=e=>"sc-"+e.p,h=(e,n,t,l,s,c)=>{if(t!==l){let i=B(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=y(t),s=y(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const r=o(l);if((i||r&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&c||s)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):B(Q,r)?r.slice(2):r[2]+n.slice(3),t&&Y.rel(e,n,t,!1),l&&Y.ael(e,n,l,!1)}},p=/\s/,y=e=>e?e.split(p):[],$=(e,n,t,o)=>{const s=11===n.m.nodeType&&n.m.host?n.m.host:n.m,c=e&&e.l||l,i=n.l||l;for(o in c)o in i||h(s,o,c[o],void 0,t,n.i);for(o in i)h(s,o,c[o],i[o],t,n.i)},b=(n,t,l)=>{const o=t.o[l];let s,c,i=0;if(null!==o.t)s=o.m=X.createTextNode(o.t);else if(s=o.m=X.createElement(o.u),$(null,o,!1),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=b(n,o,i),c&&s.appendChild(c);return s},w=(e,t,l,o,s,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=b(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},v=(e,n,t,l,o)=>{for(;n<=t;++n)(l=e[n])&&(o=l.m,j(l),o.remove())},S=(e,n)=>e.u===n.u,g=(e,n)=>{const t=n.m=e.m,l=e.o,o=n.o,s=n.t;null===s?("slot"===n.u||$(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s=0,c=0,i=n.length-1,r=n[0],u=n[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=n[++s]:null==u?u=n[--i]:null==f?f=l[++c]:null==d?d=l[--a]:S(r,f)?(g(r,f),r=n[++s],f=l[++c]):S(u,d)?(g(u,d),u=n[--i],d=l[--a]):S(r,d)?(g(r,d),e.insertBefore(r.m,u.m.nextSibling),r=n[++s],d=l[--a]):S(u,f)?(g(u,f),e.insertBefore(u.m,r.m),u=n[--i],f=l[++c]):(o=b(n&&n[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?w(e,null==l[a+1]?null:l[a+1].m,t,l,c,a):c>a&&v(n,s,i)})(t,l,n,o):null!==o?(null!==e.t&&(t.textContent=""),w(t,null,n,o,0,o.length-1)):null!==l&&v(l,0,l.length-1)):e.t!==s&&(t.data=s)},j=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(j)},M=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},k=(e,n)=>{if(e.i|=16,!(4&e.i))return M(e,e.v),ie((()=>C(e,n)));e.i|=512},C=(e,n)=>{const t=e.S;let l;return n&&(e.i|=256,e.g&&(e.g.map((([e,n])=>R(t,e,n))),e.g=null),l=R(t,"componentWillLoad")),l=W(l,(()=>R(t,"componentWillRender"))),W(l,(()=>O(e,t,n)))},O=async(e,n,t)=>{const l=e.h,o=l["s-rc"];t&&(e=>{const n=e.j,t=e.h,l=n.i,o=((e,n)=>{var t;let l=m(n);const o=K.get(l);if(e=11===e.nodeType?e:X,o)if("string"==typeof o){let n,c=d.get(e=e.head||e);if(c||d.set(e,c=new Set),!c.has(l)){{n=X.createElement("style"),n.innerHTML=o;const l=null!==(t=Y.M)&&void 0!==t?t:s(X);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}c&&c.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);x(e,n),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>L(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},x=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.h,s=t.k||i(null,null),u=(e=>e&&e.u===r)(l)?l:c(null,null,l);n=o.tagName,u.u=null,u.i|=4,t.k=u,u.m=s.m=o.shadowRoot||o,e=o["s-sc"],g(s,u)})(t,l)}catch(e){G(e,t.h)}return null},L=e=>{const n=e.h,t=e.S,l=e.v;R(t,"componentDidRender"),64&e.i||(e.i|=64,E(n),R(t,"componentDidLoad"),e.C(n),l||P()),e.$&&(e.$(),e.$=void 0),512&e.i&&ce((()=>k(e,!1))),e.i&=-517},P=()=>{E(X.documentElement),ce((()=>f(Q,"appload",{detail:{namespace:"tttx"}})))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},W=(e,n)=>e&&e.then?e.then(n):n(),E=e=>e.classList.add("hydrated"),N=(e,n,t)=>{if(n.O){e.watchers&&(n.L=e.watchers);const l=Object.entries(n.O),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(s,e,{get(){return((e,n)=>V(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const s=V(e),c=s.h,i=s.P.get(n),r=s.i,u=s.S;if(t=((e,n)=>null==e||o(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.O[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(s.P.set(n,t),u)){if(l.L&&128&r){const e=l.L[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){G(e,c)}}))}2==(18&r)&&k(s,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const n=new Map;s.attributeChangedCallback=function(e,t,l){Y.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},T=(e,n={})=>{var t;const l=[],o=n.exclude||[],c=Q.customElements,i=X.head,r=i.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,n),Y.R=new URL(n.resourcesUrl||"./",X.baseURI).href,e.map((e=>{e[1].map((n=>{const t={i:n[0],p:n[1],O:n[2],W:n[3]};t.O=n[2],t.W=n[3],t.L={};const s=t.p,i=class extends HTMLElement{constructor(e){super(e),z(e=this,t),1&t.i&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(e=>{if(0==(1&Y.i)){const n=V(e),t=n.j,l=()=>{};if(1&n.i)A(e,n,t.W);else{n.i|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){M(n,n.v=t);break}}t.O&&Object.entries(t.O).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=J(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(t.L=o.watchers,N(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){G(e)}n.i&=-9,n.i|=128,e()}if(o.style){let e=o.style;const n=m(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.v,c=()=>k(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(()=>{if(0==(1&Y.i)){const e=V(this),n=e.S;e.N&&(e.N.map((e=>e())),e.N=void 0),R(n,"disconnectedCallback")}})()))}componentOnReady(){return V(this).T}};t.A=e[0],o.includes(s)||c.get(s)||(l.push(s),c.define(s,N(i,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=Y.M)&&void 0!==t?t:s(X);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>f=setTimeout(P,30)))},A=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=H(e,t),c=D(n,o),i=U(t);Y.ael(s,l,c,i),(n.N=n.N||[]).push((()=>Y.rel(s,l,c,i)))}))},D=(e,n)=>t=>{try{256&e.i?e.S[n](t):(e.g=e.g||[]).push([n,t])}catch(e){G(e)}},H=(e,n)=>4&n?X:e,U=e=>0!=(2&e),q=e=>Y.M=e,F=new WeakMap,V=e=>F.get(e),_=(e,n)=>F.set(n.S=e,n),z=(e,n)=>{const t={i:0,h:e,j:n,P:new Map};return t.T=new Promise((e=>t.C=e)),e["s-p"]=[],e["s-rc"]=[],A(e,t,n.W),F.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.p.replace(/-/g,"_"),t=e.A,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={i:0,R:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&Y.i?ce(se):Y.raf(se))},oe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},se=()=>{oe(ne),oe(te),(t=ne.length>0)&&Y.raf(se)},ce=e=>Z().then(e),ie=le(te,!0);export{r as H,T as b,a as c,u as g,c as h,Z as p,_ as r,q as s}