@everymatrix/general-registration 1.10.4 → 1.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/checkbox-input_11.cjs.entry.js +1118 -487
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-9a07d1e9.js → index-68f93e1e.js} +9 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.css +40 -14
- package/dist/collection/components/general-registration/general-registration.js +153 -300
- package/dist/components/checkbox-input2.js +8 -2
- package/dist/components/date-input2.js +19 -1441
- package/dist/components/email-input2.js +28 -9
- package/dist/components/general-input2.js +6 -6
- package/dist/components/general-registration.js +112 -274
- package/dist/components/input-field-shared-styles.js +13776 -0
- package/dist/components/locale.utils.js +1 -1
- package/dist/components/number-input2.js +8 -2
- package/dist/components/password-input2.js +748 -9
- package/dist/components/pattern-mixin.js +84 -0
- package/dist/components/radio-input2.js +1 -1
- package/dist/components/select-input2.js +8 -4
- package/dist/components/tel-input2.js +22 -10
- package/dist/components/text-input2.js +27 -18
- package/dist/components/vaadin-button.js +1432 -0
- package/dist/components/vaadin-combo-box.js +3 -82
- package/dist/components/virtual-keyboard-controller.js +2136 -15909
- package/dist/esm/checkbox-input_11.entry.js +1118 -487
- package/dist/esm/general-registration.js +2 -2
- package/dist/esm/{index-0505440f.js → index-16916adb.js} +9 -5
- package/dist/esm/loader.js +2 -2
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/p-8f644809.js +1 -0
- package/dist/general-registration/{p-6a27a1e0.entry.js → p-fb5bf415.entry.js} +210 -100
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +6 -4
- package/dist/types/components/general-registration/general-registration.d.ts +20 -284
- package/dist/types/components.d.ts +11 -17
- package/package.json +3 -2
- package/dist/general-registration/p-1a88a312.js +0 -1
|
@@ -28,10 +28,11 @@ export interface ValidationSchema {
|
|
|
28
28
|
min: number;
|
|
29
29
|
max: number;
|
|
30
30
|
}
|
|
31
|
-
interface CustomValidationRules {
|
|
31
|
+
export interface CustomValidationRules {
|
|
32
32
|
rule: string;
|
|
33
|
-
pattern?: string;
|
|
34
33
|
errorMessage: string;
|
|
34
|
+
pattern?: string;
|
|
35
|
+
displayName?: string;
|
|
35
36
|
}
|
|
36
37
|
export interface CustomRule {
|
|
37
38
|
rule: string;
|
|
@@ -46,12 +47,13 @@ export interface InputStateEvent {
|
|
|
46
47
|
name: string;
|
|
47
48
|
}
|
|
48
49
|
export interface InputValueEvent {
|
|
49
|
-
value: string
|
|
50
|
+
value: string;
|
|
50
51
|
name: string;
|
|
51
52
|
}
|
|
52
53
|
export interface InputValue {
|
|
53
|
-
value: string
|
|
54
|
+
value: string;
|
|
54
55
|
name: string;
|
|
56
|
+
isDuplicate: boolean;
|
|
55
57
|
}
|
|
56
58
|
export interface RegisterStep {
|
|
57
59
|
registrationId: string;
|
|
@@ -1,314 +1,47 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
import type { InputStateEvent, InputValueEvent, RegistrationConfig, StepState, InputValue } from '../../../../general-input/src/utils/types';
|
|
2
3
|
import '@everymatrix/general-input';
|
|
3
4
|
export declare class GeneralRegistration {
|
|
4
|
-
data: {
|
|
5
|
-
type: string;
|
|
6
|
-
content: {
|
|
7
|
-
step: string;
|
|
8
|
-
fields: ({
|
|
9
|
-
name: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
defaultValue: any;
|
|
12
|
-
validate: {
|
|
13
|
-
mandatory: boolean;
|
|
14
|
-
minLength: number;
|
|
15
|
-
maxLength: number;
|
|
16
|
-
min?: undefined;
|
|
17
|
-
max?: undefined;
|
|
18
|
-
custom?: undefined;
|
|
19
|
-
type?: undefined;
|
|
20
|
-
};
|
|
21
|
-
autofill: boolean;
|
|
22
|
-
action?: undefined;
|
|
23
|
-
inputType?: undefined;
|
|
24
|
-
data?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
name: string;
|
|
27
|
-
displayName: string;
|
|
28
|
-
defaultValue: any;
|
|
29
|
-
validate: {
|
|
30
|
-
mandatory: boolean;
|
|
31
|
-
minLength: number;
|
|
32
|
-
maxLength: number;
|
|
33
|
-
min?: undefined;
|
|
34
|
-
max?: undefined;
|
|
35
|
-
custom?: undefined;
|
|
36
|
-
type?: undefined;
|
|
37
|
-
};
|
|
38
|
-
autofill?: undefined;
|
|
39
|
-
action?: undefined;
|
|
40
|
-
inputType?: undefined;
|
|
41
|
-
data?: undefined;
|
|
42
|
-
} | {
|
|
43
|
-
name: string;
|
|
44
|
-
displayName: string;
|
|
45
|
-
action: string;
|
|
46
|
-
defaultValue: any;
|
|
47
|
-
validate: {
|
|
48
|
-
mandatory: boolean;
|
|
49
|
-
minLength?: undefined;
|
|
50
|
-
maxLength?: undefined;
|
|
51
|
-
min?: undefined;
|
|
52
|
-
max?: undefined;
|
|
53
|
-
custom?: undefined;
|
|
54
|
-
type?: undefined;
|
|
55
|
-
};
|
|
56
|
-
autofill: boolean;
|
|
57
|
-
inputType: string;
|
|
58
|
-
data?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
name: string;
|
|
61
|
-
displayName: string;
|
|
62
|
-
defaultValue: any;
|
|
63
|
-
validate: {
|
|
64
|
-
min: string;
|
|
65
|
-
max: string;
|
|
66
|
-
mandatory: boolean;
|
|
67
|
-
minLength?: undefined;
|
|
68
|
-
maxLength?: undefined;
|
|
69
|
-
custom?: undefined;
|
|
70
|
-
type?: undefined;
|
|
71
|
-
};
|
|
72
|
-
inputType: string;
|
|
73
|
-
autofill?: undefined;
|
|
74
|
-
action?: undefined;
|
|
75
|
-
data?: undefined;
|
|
76
|
-
} | {
|
|
77
|
-
name: string;
|
|
78
|
-
displayName: string;
|
|
79
|
-
defaultValue: string;
|
|
80
|
-
validate: {
|
|
81
|
-
mandatory: boolean;
|
|
82
|
-
custom: {
|
|
83
|
-
rule: string;
|
|
84
|
-
pattern: string;
|
|
85
|
-
errorMessage: string;
|
|
86
|
-
}[];
|
|
87
|
-
minLength?: undefined;
|
|
88
|
-
maxLength?: undefined;
|
|
89
|
-
min?: undefined;
|
|
90
|
-
max?: undefined;
|
|
91
|
-
type?: undefined;
|
|
92
|
-
};
|
|
93
|
-
inputType: string;
|
|
94
|
-
autofill?: undefined;
|
|
95
|
-
action?: undefined;
|
|
96
|
-
data?: undefined;
|
|
97
|
-
} | {
|
|
98
|
-
name: string;
|
|
99
|
-
displayName: string;
|
|
100
|
-
defaultValue: any;
|
|
101
|
-
validate: {
|
|
102
|
-
mandatory: boolean;
|
|
103
|
-
minLength: number;
|
|
104
|
-
maxLength: number;
|
|
105
|
-
type: string;
|
|
106
|
-
custom: {
|
|
107
|
-
rule: string;
|
|
108
|
-
pattern: string;
|
|
109
|
-
errorMessage: string;
|
|
110
|
-
}[];
|
|
111
|
-
min?: undefined;
|
|
112
|
-
max?: undefined;
|
|
113
|
-
};
|
|
114
|
-
inputType: string;
|
|
115
|
-
autofill?: undefined;
|
|
116
|
-
action?: undefined;
|
|
117
|
-
data?: undefined;
|
|
118
|
-
} | {
|
|
119
|
-
name: string;
|
|
120
|
-
displayName: string;
|
|
121
|
-
defaultValue: any;
|
|
122
|
-
validate: {
|
|
123
|
-
mandatory: boolean;
|
|
124
|
-
type: string;
|
|
125
|
-
custom: ({
|
|
126
|
-
rule: string;
|
|
127
|
-
errorMessage: string;
|
|
128
|
-
pattern?: undefined;
|
|
129
|
-
displayName?: undefined;
|
|
130
|
-
} | {
|
|
131
|
-
rule: string;
|
|
132
|
-
pattern: string;
|
|
133
|
-
errorMessage: string;
|
|
134
|
-
displayName?: undefined;
|
|
135
|
-
} | {
|
|
136
|
-
rule: string;
|
|
137
|
-
displayName: string;
|
|
138
|
-
errorMessage: string;
|
|
139
|
-
pattern?: undefined;
|
|
140
|
-
})[];
|
|
141
|
-
minLength?: undefined;
|
|
142
|
-
maxLength?: undefined;
|
|
143
|
-
min?: undefined;
|
|
144
|
-
max?: undefined;
|
|
145
|
-
};
|
|
146
|
-
autofill?: undefined;
|
|
147
|
-
action?: undefined;
|
|
148
|
-
inputType?: undefined;
|
|
149
|
-
data?: undefined;
|
|
150
|
-
} | {
|
|
151
|
-
name: string;
|
|
152
|
-
displayName: string;
|
|
153
|
-
validate: {
|
|
154
|
-
mandatory: boolean;
|
|
155
|
-
type: string;
|
|
156
|
-
minLength?: undefined;
|
|
157
|
-
maxLength?: undefined;
|
|
158
|
-
min?: undefined;
|
|
159
|
-
max?: undefined;
|
|
160
|
-
custom?: undefined;
|
|
161
|
-
};
|
|
162
|
-
inputType: string;
|
|
163
|
-
defaultValue?: undefined;
|
|
164
|
-
autofill?: undefined;
|
|
165
|
-
action?: undefined;
|
|
166
|
-
data?: undefined;
|
|
167
|
-
} | {
|
|
168
|
-
name: string;
|
|
169
|
-
validate: {
|
|
170
|
-
mandatory: boolean;
|
|
171
|
-
minLength?: undefined;
|
|
172
|
-
maxLength?: undefined;
|
|
173
|
-
min?: undefined;
|
|
174
|
-
max?: undefined;
|
|
175
|
-
custom?: undefined;
|
|
176
|
-
type?: undefined;
|
|
177
|
-
};
|
|
178
|
-
inputType: string;
|
|
179
|
-
displayName?: undefined;
|
|
180
|
-
defaultValue?: undefined;
|
|
181
|
-
autofill?: undefined;
|
|
182
|
-
action?: undefined;
|
|
183
|
-
data?: undefined;
|
|
184
|
-
} | {
|
|
185
|
-
name: string;
|
|
186
|
-
data: {
|
|
187
|
-
values: {
|
|
188
|
-
label: string;
|
|
189
|
-
value: string;
|
|
190
|
-
}[];
|
|
191
|
-
};
|
|
192
|
-
validate: {
|
|
193
|
-
mandatory: boolean;
|
|
194
|
-
minLength?: undefined;
|
|
195
|
-
maxLength?: undefined;
|
|
196
|
-
min?: undefined;
|
|
197
|
-
max?: undefined;
|
|
198
|
-
custom?: undefined;
|
|
199
|
-
type?: undefined;
|
|
200
|
-
};
|
|
201
|
-
inputType: string;
|
|
202
|
-
displayName?: undefined;
|
|
203
|
-
defaultValue?: undefined;
|
|
204
|
-
autofill?: undefined;
|
|
205
|
-
action?: undefined;
|
|
206
|
-
} | {
|
|
207
|
-
name: string;
|
|
208
|
-
validate: {
|
|
209
|
-
mandatory: boolean;
|
|
210
|
-
custom: ({
|
|
211
|
-
rule: string;
|
|
212
|
-
pattern: string;
|
|
213
|
-
errorMessage: string;
|
|
214
|
-
} | {
|
|
215
|
-
rule: string;
|
|
216
|
-
errorMessage: string;
|
|
217
|
-
pattern?: undefined;
|
|
218
|
-
})[];
|
|
219
|
-
minLength?: undefined;
|
|
220
|
-
maxLength?: undefined;
|
|
221
|
-
min?: undefined;
|
|
222
|
-
max?: undefined;
|
|
223
|
-
type?: undefined;
|
|
224
|
-
};
|
|
225
|
-
displayName?: undefined;
|
|
226
|
-
defaultValue?: undefined;
|
|
227
|
-
autofill?: undefined;
|
|
228
|
-
action?: undefined;
|
|
229
|
-
inputType?: undefined;
|
|
230
|
-
data?: undefined;
|
|
231
|
-
} | {
|
|
232
|
-
name: string;
|
|
233
|
-
displayName: string;
|
|
234
|
-
action: any;
|
|
235
|
-
data: {
|
|
236
|
-
values: {
|
|
237
|
-
label: string;
|
|
238
|
-
value: string;
|
|
239
|
-
}[];
|
|
240
|
-
};
|
|
241
|
-
validate: {
|
|
242
|
-
mandatory: boolean;
|
|
243
|
-
minLength?: undefined;
|
|
244
|
-
maxLength?: undefined;
|
|
245
|
-
min?: undefined;
|
|
246
|
-
max?: undefined;
|
|
247
|
-
custom?: undefined;
|
|
248
|
-
type?: undefined;
|
|
249
|
-
};
|
|
250
|
-
inputType: string;
|
|
251
|
-
defaultValue?: undefined;
|
|
252
|
-
autofill?: undefined;
|
|
253
|
-
} | {
|
|
254
|
-
name: string;
|
|
255
|
-
displayName: string;
|
|
256
|
-
data: any;
|
|
257
|
-
action: string;
|
|
258
|
-
validate: {
|
|
259
|
-
mandatory: boolean;
|
|
260
|
-
minLength?: undefined;
|
|
261
|
-
maxLength?: undefined;
|
|
262
|
-
min?: undefined;
|
|
263
|
-
max?: undefined;
|
|
264
|
-
custom?: undefined;
|
|
265
|
-
type?: undefined;
|
|
266
|
-
};
|
|
267
|
-
inputType: string;
|
|
268
|
-
defaultValue?: undefined;
|
|
269
|
-
autofill?: undefined;
|
|
270
|
-
})[];
|
|
271
|
-
actions: string[];
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
5
|
/**
|
|
275
6
|
* NorWAy Endpoint for all the calls.
|
|
276
7
|
*/
|
|
277
8
|
endpoint: string;
|
|
278
9
|
/**
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
10
|
+
* Currently selected language
|
|
11
|
+
*/
|
|
12
|
+
language: string;
|
|
282
13
|
/**
|
|
283
|
-
*
|
|
14
|
+
* Client custom styling via string
|
|
284
15
|
*/
|
|
285
|
-
|
|
16
|
+
clientStyling: string;
|
|
286
17
|
/**
|
|
287
|
-
*
|
|
18
|
+
* Client custom styling via url content
|
|
288
19
|
*/
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Currently selected language
|
|
292
|
-
*/
|
|
293
|
-
language: string;
|
|
20
|
+
clientStylingUrl: string;
|
|
294
21
|
errorMessage: string;
|
|
295
22
|
emitValue: boolean;
|
|
296
23
|
isFormValid: boolean;
|
|
297
24
|
listOfInputs: any[];
|
|
298
25
|
isLoading: boolean;
|
|
299
|
-
|
|
26
|
+
limitStylingAppends: boolean;
|
|
300
27
|
registrationStep: string;
|
|
301
|
-
|
|
28
|
+
sendStep(): void;
|
|
29
|
+
private registrationID;
|
|
302
30
|
listOfInputValues: InputValue[];
|
|
303
31
|
listOfActions: any[];
|
|
304
|
-
|
|
32
|
+
indexStep: number;
|
|
305
33
|
isLastStep: boolean;
|
|
34
|
+
stylingContainer: HTMLElement;
|
|
306
35
|
registrationStepsState: {
|
|
307
36
|
regId: any;
|
|
308
37
|
};
|
|
38
|
+
registrationWidgetLoaded: EventEmitter;
|
|
39
|
+
registrationStepUpdated: EventEmitter<string>;
|
|
309
40
|
checkInputsValidityHandler(event: CustomEvent<InputStateEvent>): void;
|
|
310
41
|
getInputsValueHandler(event: CustomEvent<InputValueEvent>): void;
|
|
311
42
|
componentWillLoad(): Promise<void>;
|
|
43
|
+
componentDidRender(): void;
|
|
44
|
+
componentDidLoad(): void;
|
|
312
45
|
nextHandler(e: any): void;
|
|
313
46
|
backHandler(e: any): void;
|
|
314
47
|
stepsStateMachine(state: StepState): void;
|
|
@@ -316,7 +49,10 @@ export declare class GeneralRegistration {
|
|
|
316
49
|
setRegisterStep(): void;
|
|
317
50
|
setRegister(): void;
|
|
318
51
|
formatConfig(config: RegistrationConfig): void;
|
|
52
|
+
stepChange(action: any): string;
|
|
319
53
|
getInvalidStatus(listOfInputs: any): boolean;
|
|
54
|
+
setClientStyling: () => void;
|
|
55
|
+
setClientStylingURL: () => void;
|
|
320
56
|
renderInputs(): HTMLElement[];
|
|
321
57
|
renderButtons(): HTMLElement;
|
|
322
58
|
render(): any;
|
|
@@ -8,13 +8,13 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface GeneralRegistration {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Client custom styling via string
|
|
12
12
|
*/
|
|
13
|
-
"
|
|
13
|
+
"clientStyling": string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Client custom styling via url content
|
|
16
16
|
*/
|
|
17
|
-
"
|
|
17
|
+
"clientStylingUrl": string;
|
|
18
18
|
/**
|
|
19
19
|
* NorWAy Endpoint for all the calls.
|
|
20
20
|
*/
|
|
@@ -23,10 +23,6 @@ export namespace Components {
|
|
|
23
23
|
* Currently selected language
|
|
24
24
|
*/
|
|
25
25
|
"language": string;
|
|
26
|
-
/**
|
|
27
|
-
* The tenandId of the domain
|
|
28
|
-
*/
|
|
29
|
-
"tenantId": string;
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
declare global {
|
|
@@ -43,25 +39,23 @@ declare global {
|
|
|
43
39
|
declare namespace LocalJSX {
|
|
44
40
|
interface GeneralRegistration {
|
|
45
41
|
/**
|
|
46
|
-
*
|
|
42
|
+
* Client custom styling via string
|
|
47
43
|
*/
|
|
48
|
-
"
|
|
44
|
+
"clientStyling"?: string;
|
|
49
45
|
/**
|
|
50
|
-
*
|
|
46
|
+
* Client custom styling via url content
|
|
51
47
|
*/
|
|
52
|
-
"
|
|
48
|
+
"clientStylingUrl"?: string;
|
|
53
49
|
/**
|
|
54
50
|
* NorWAy Endpoint for all the calls.
|
|
55
51
|
*/
|
|
56
|
-
"endpoint"
|
|
52
|
+
"endpoint": string;
|
|
57
53
|
/**
|
|
58
54
|
* Currently selected language
|
|
59
55
|
*/
|
|
60
56
|
"language"?: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*/
|
|
64
|
-
"tenantId"?: string;
|
|
57
|
+
"onRegistrationStepUpdated"?: (event: CustomEvent<string>) => void;
|
|
58
|
+
"onRegistrationWidgetLoaded"?: (event: CustomEvent<any>) => void;
|
|
65
59
|
}
|
|
66
60
|
interface IntrinsicElements {
|
|
67
61
|
"general-registration": GeneralRegistration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/general-registration",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.10",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@everymatrix/general-input": "*",
|
|
21
21
|
"@vaadin/date-picker": "^23.1.5",
|
|
22
|
-
"@vaadin/combo-box": "^23.1.5"
|
|
22
|
+
"@vaadin/combo-box": "^23.1.5",
|
|
23
|
+
"@vaadin/password-field": "^23.1.5"
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=(e,t,n)=>{n&&n.map((([n,l,s])=>{const c=e,r=a(t,s),i=u(n);o.ael(c,l,r,i),(t.o=t.o||[]).push((()=>o.rel(c,l,r,i)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){K(e)}},u=e=>0!=(2&e),f=new WeakMap,d=e=>"sc-"+e.h,h={},$=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1,c=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!$(l))&&(l+=""),s&&o?c[c.length-1].$+=l:c.push(s?m(null,l):l),o=s)};if(r(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=m(e,null);return i.m=t,c.length>0&&(i.p=c),i},m=(e,t)=>({t:0,g:e,$:t,S:null,p:null,m:null}),p={},b=(e,t,n,s,c,r)=>{if(n!==s){let i=J(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,l=g(n),o=g(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if("ref"===t)s&&s(e);else if(i||"o"!==t[0]||"n"!==t[1]){const l=$(s);if((i||l&&null!==s)&&!c)try{if(e.tagName.includes("-"))e[t]=s;else{let l=null==s?"":s;"list"===t?i=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||c)&&!l&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):J(l,a)?a.slice(2):a[2]+t.slice(3),n&&o.rel(e,t,n,!1),s&&o.ael(e,t,s,!1)}},w=/\s/,g=e=>e?e.split(w):[],S=(e,t,n,l)=>{const s=11===t.S.nodeType&&t.S.host?t.S.host:t.S,o=e&&e.m||h,c=t.m||h;for(l in o)l in c||b(s,l,o[l],void 0,n,t.t);for(l in c)b(s,l,o[l],c[l],n,t.t)},j=(t,n,l)=>{let o,c,r=n.p[l],i=0;if(null!==r.$)o=r.S=s.createTextNode(r.$);else if(o=r.S=s.createElement(r.g),S(null,r,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.p)for(i=0;i<r.p.length;++i)c=j(t,r,i),c&&o.appendChild(c);return o},v=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=j(null,l,o),r&&(s[o].S=r,i.insertBefore(r,n)))},M=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.S,O(l),s.remove())},k=(e,t)=>e.g===t.g,C=(e,t)=>{const n=t.S=e.S,l=e.p,s=t.p,o=t.$;null===o?(S(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],a=t[r],u=l.length-1,f=l[0],d=l[u];for(;o<=r&&c<=u;)null==i?i=t[++o]:null==a?a=t[--r]:null==f?f=l[++c]:null==d?d=l[--u]:k(i,f)?(C(i,f),i=t[++o],f=l[++c]):k(a,d)?(C(a,d),a=t[--r],d=l[--u]):k(i,d)?(C(i,d),e.insertBefore(i.S,a.S.nextSibling),i=t[++o],d=l[--u]):k(a,f)?(C(a,f),e.insertBefore(a.S,i.S),a=t[--r],f=l[++c]):(s=j(t&&t[c],n,c),f=l[++c],s&&i.S.parentNode.insertBefore(s,i.S));o>r?v(e,null==l[u+1]?null:l[u+1].S,n,l,c,u):c>u&&M(t,o,r)})(n,l,t,s):null!==s?(null!==e.$&&(n.textContent=""),v(n,null,t,s,0,s.length-1)):null!==l&&M(l,0,l.length-1)):e.$!==o&&(n.data=o)},O=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(O)},L=e=>B(e).j,P=(e,t,n)=>{const l=L(e);return{emit:e=>x(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},x=(e,t,n)=>{const l=o.ce(t,n);return e.dispatchEvent(l),l},E=(e,t)=>{t&&!e.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.v=t)))},N=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.M),oe((()=>T(e,t)));e.t|=512},T=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>W(e,n,t)))},W=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.k,n=e.j,l=t.t,o=((e,t)=>{let n=d(t),l=Y.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=f.get(e=e.head||e);o||f.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);A(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>F(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},A=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.C||m(null,null),c=(e=>e&&e.g===p)(l)?l:y(null,null,l);t=s.tagName,c.g=null,c.t|=4,n.C=c,c.S=o.S=s.shadowRoot||s,e=s["s-sc"],C(o,c)})(n,l)}catch(e){K(e,n.j)}return null},F=e=>{const t=e.j,n=e.i,l=e.M;64&e.t||(e.t|=64,D(t),U(n,"componentDidLoad"),e.O(t),l||R()),e.v&&(e.v(),e.v=void 0),512&e.t&&se((()=>N(e,!1))),e.t&=-517},R=()=>{D(s.documentElement),se((()=>x(l,"appload",{detail:{namespace:"general-registration"}})))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){K(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),D=e=>e.classList.add("hydrated"),H=(e,t,n)=>{if(t.L){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>B(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=B(e),o=s.j,c=s.N.get(t),r=s.t,i=s.i;if(n=((e,t)=>null==e||$(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&r)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(s.N.set(t,n),i)){if(l.P&&128&r){const e=l.P[t];e&&e.map((e=>{try{i[e](n,c,t)}catch(e){K(e,o)}}))}2==(18&r)&&N(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},V=e=>{U(e,"connectedCallback")},_=(e,t={})=>{const n=[],c=t.exclude||[],a=l.customElements,u=s.head,f=u.querySelector("meta[charset]"),h=s.createElement("style"),$=[];let y,m=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],h:t[1],L:t[2],T:t[3]};l.L=t[2],l.T=t[3],l.P={};const s=l.h,u=class extends HTMLElement{constructor(e){super(e),I(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),m?$.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=B(e),n=t.k,l=()=>{};if(1&t.t)i(e,t,n.T),V(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.M=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=X(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.P=s.watchers,H(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){K(e)}t.t&=-9,t.t|=128,e(),V(t.i)}if(s.style){let e=s.style;const t=d(n);if(!Y.has(t)){const l=()=>{};((e,t,n)=>{let l=Y.get(e);r&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Y.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.M,c=()=>N(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{if(0==(1&o.t)){const e=B(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return B(this).W}};l.A=e[0],c.includes(s)||a.get(s)||(n.push(s),a.define(s,H(u,l,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),u.insertBefore(h,f?f.nextSibling:u.firstChild),m=!1,$.length?$.map((e=>e.connectedCallback())):o.jmp((()=>y=setTimeout(R,30)))},z=new WeakMap,B=e=>z.get(e),G=(e,t)=>z.set(t.i=e,t),I=(e,t)=>{const n={t:0,j:e,k:t,N:new Map};return n.W=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],i(e,n,t.T),z.set(e,n)},J=(e,t)=>t in e,K=(e,t)=>(0,console.error)(e,t),Q=new Map,X=e=>{const t=e.h.replace(/-/g,"_"),n=e.A,l=Q.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Q.set(n,e),e[t])),K)},Y=new Map,Z=[],ee=[],te=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?se(le):o.raf(le))},ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){K(e)}e.length=0},le=()=>{ne(Z),ne(ee),(n=Z.length>0)&&o.raf(le)},se=e=>c().then(e),oe=te(ee,!0);export{_ as b,P as c,L as g,y as h,c as p,G as r}
|