udp-schema 1.1.0 → 2.0.0
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/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/profile-fields/01-profile.d.ts.map +1 -1
- package/dist/profile-fields/01-profile.js +168 -23
- package/dist/profile-fields/01-profile.js.map +1 -1
- package/dist/profile-fields/02-political.d.ts.map +1 -1
- package/dist/profile-fields/02-political.js +119 -28
- package/dist/profile-fields/02-political.js.map +1 -1
- package/dist/profile-fields/03-electoral.d.ts.map +1 -1
- package/dist/profile-fields/03-electoral.js +83 -13
- package/dist/profile-fields/03-electoral.js.map +1 -1
- package/dist/profile-fields/04-leadership.d.ts.map +1 -1
- package/dist/profile-fields/04-leadership.js +131 -14
- package/dist/profile-fields/04-leadership.js.map +1 -1
- package/dist/profile-fields/05-psychological.d.ts.map +1 -1
- package/dist/profile-fields/05-psychological.js +41 -12
- package/dist/profile-fields/05-psychological.js.map +1 -1
- package/dist/profile-fields/06-education.d.ts.map +1 -1
- package/dist/profile-fields/06-education.js +128 -15
- package/dist/profile-fields/06-education.js.map +1 -1
- package/dist/profile-fields/07-employment.d.ts.map +1 -1
- package/dist/profile-fields/07-employment.js +99 -19
- package/dist/profile-fields/07-employment.js.map +1 -1
- package/dist/profile-fields/08-neurodiversity.d.ts.map +1 -1
- package/dist/profile-fields/08-neurodiversity.js +128 -21
- package/dist/profile-fields/08-neurodiversity.js.map +1 -1
- package/dist/profile-fields/09-health.d.ts.map +1 -1
- package/dist/profile-fields/09-health.js +141 -19
- package/dist/profile-fields/09-health.js.map +1 -1
- package/dist/profile-fields/10-worldview.d.ts.map +1 -1
- package/dist/profile-fields/10-worldview.js +112 -13
- package/dist/profile-fields/10-worldview.js.map +1 -1
- package/dist/profile-fields/11-residence.d.ts.map +1 -1
- package/dist/profile-fields/11-residence.js +39 -5
- package/dist/profile-fields/11-residence.js.map +1 -1
- package/dist/profile-fields/12-household.d.ts.map +1 -1
- package/dist/profile-fields/12-household.js +175 -25
- package/dist/profile-fields/12-household.js.map +1 -1
- package/dist/profile-fields/index.d.ts +8 -8
- package/dist/profile-fields/index.d.ts.map +1 -1
- package/dist/profile-fields/index.js +8 -8
- package/dist/profile-fields/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,136 @@
|
|
|
1
1
|
export const qualificationOptions = [
|
|
2
|
-
{ value: 'CLASS_10', label: 'Class 10 (Secondary)' },
|
|
3
|
-
{ value: '
|
|
4
|
-
{ value: '
|
|
5
|
-
{ value: '
|
|
2
|
+
{ value: 'CLASS_10', label: 'Class 10 (Secondary)' },
|
|
3
|
+
{ value: 'CLASS_12', label: 'Class 12 (Higher Secondary)' },
|
|
4
|
+
{ value: 'DIPLOMA', label: 'Diploma / ITI' },
|
|
5
|
+
{ value: 'GRADUATION', label: "Graduation (Bachelor's)" },
|
|
6
|
+
{ value: 'POST_GRAD', label: "Post Graduation (Master's)" },
|
|
7
|
+
{ value: 'PHD', label: 'Doctorate / PhD' },
|
|
8
|
+
{ value: 'POST_DOCTORATE', label: 'Post Doctorate' },
|
|
9
|
+
{ value: 'OTHER', label: 'Other' },
|
|
6
10
|
];
|
|
7
11
|
export const education = {
|
|
8
|
-
key: 'education',
|
|
12
|
+
key: 'education',
|
|
13
|
+
label: 'Education',
|
|
14
|
+
step: 6,
|
|
9
15
|
description: 'Academic background and qualifications.',
|
|
10
16
|
fields: [
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
17
|
+
{
|
|
18
|
+
order: 1,
|
|
19
|
+
key: 'highestQualification',
|
|
20
|
+
label: 'Highest Qualification',
|
|
21
|
+
type: 'single_select',
|
|
22
|
+
step: 6,
|
|
23
|
+
isOnboarding: true,
|
|
24
|
+
options: [...qualificationOptions],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
order: 2,
|
|
28
|
+
key: 'education10th',
|
|
29
|
+
label: 'Class 10 Details',
|
|
30
|
+
type: 'object',
|
|
31
|
+
step: 6,
|
|
32
|
+
isOnboarding: true,
|
|
33
|
+
optional: true,
|
|
34
|
+
conditionalOn: {
|
|
35
|
+
field: 'highestQualification',
|
|
36
|
+
values: [
|
|
37
|
+
'CLASS_10',
|
|
38
|
+
'CLASS_12',
|
|
39
|
+
'DIPLOMA',
|
|
40
|
+
'GRADUATION',
|
|
41
|
+
'POST_GRAD',
|
|
42
|
+
'PHD',
|
|
43
|
+
'POST_DOCTORATE',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
order: 3,
|
|
49
|
+
key: 'education12th',
|
|
50
|
+
label: 'Class 12 Details',
|
|
51
|
+
type: 'object',
|
|
52
|
+
step: 6,
|
|
53
|
+
isOnboarding: true,
|
|
54
|
+
optional: true,
|
|
55
|
+
conditionalOn: {
|
|
56
|
+
field: 'highestQualification',
|
|
57
|
+
values: ['CLASS_12', 'DIPLOMA', 'GRADUATION', 'POST_GRAD', 'PHD', 'POST_DOCTORATE'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
order: 4,
|
|
62
|
+
key: 'diplomas',
|
|
63
|
+
label: 'Diploma',
|
|
64
|
+
type: 'object_array',
|
|
65
|
+
step: 6,
|
|
66
|
+
isOnboarding: true,
|
|
67
|
+
optional: true,
|
|
68
|
+
conditionalOn: { field: 'highestQualification', values: ['DIPLOMA'] },
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
order: 5,
|
|
72
|
+
key: 'graduations',
|
|
73
|
+
label: 'Graduation',
|
|
74
|
+
type: 'object_array',
|
|
75
|
+
step: 6,
|
|
76
|
+
isOnboarding: true,
|
|
77
|
+
optional: true,
|
|
78
|
+
conditionalOn: {
|
|
79
|
+
field: 'highestQualification',
|
|
80
|
+
values: ['GRADUATION', 'POST_GRAD', 'PHD', 'POST_DOCTORATE'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
order: 6,
|
|
85
|
+
key: 'postGraduations',
|
|
86
|
+
label: 'Post Graduation',
|
|
87
|
+
type: 'object_array',
|
|
88
|
+
step: 6,
|
|
89
|
+
isOnboarding: true,
|
|
90
|
+
optional: true,
|
|
91
|
+
conditionalOn: {
|
|
92
|
+
field: 'highestQualification',
|
|
93
|
+
values: ['POST_GRAD', 'PHD', 'POST_DOCTORATE'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
order: 7,
|
|
98
|
+
key: 'doctorates',
|
|
99
|
+
label: 'Doctorate / PhD',
|
|
100
|
+
type: 'object_array',
|
|
101
|
+
step: 6,
|
|
102
|
+
isOnboarding: true,
|
|
103
|
+
optional: true,
|
|
104
|
+
conditionalOn: { field: 'highestQualification', values: ['PHD', 'POST_DOCTORATE'] },
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
order: 8,
|
|
108
|
+
key: 'postDoctorates',
|
|
109
|
+
label: 'Post Doctorate',
|
|
110
|
+
type: 'object_array',
|
|
111
|
+
step: 6,
|
|
112
|
+
isOnboarding: true,
|
|
113
|
+
optional: true,
|
|
114
|
+
conditionalOn: { field: 'highestQualification', values: ['POST_DOCTORATE'] },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
order: 9,
|
|
118
|
+
key: 'otherCertificates',
|
|
119
|
+
label: 'Other Certificates',
|
|
120
|
+
type: 'object_array',
|
|
121
|
+
step: 6,
|
|
122
|
+
isOnboarding: true,
|
|
123
|
+
optional: true,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
order: 10,
|
|
127
|
+
key: 'educationNotes',
|
|
128
|
+
label: 'Education Notes',
|
|
129
|
+
type: 'textarea',
|
|
130
|
+
step: 6,
|
|
131
|
+
isOnboarding: true,
|
|
132
|
+
optional: true,
|
|
133
|
+
},
|
|
21
134
|
],
|
|
22
135
|
};
|
|
23
136
|
//# sourceMappingURL=06-education.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"06-education.js","sourceRoot":"","sources":["../../src/profile-fields/06-education.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,sBAAsB,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"06-education.js","sourceRoot":"","sources":["../../src/profile-fields/06-education.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,sBAAsB,EAAE;IACpD,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,6BAA6B,EAAE;IAC3D,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE;IAC5C,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,yBAAyB,EAAE;IACzD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,4BAA4B,EAAE;IAC3D,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE;IAC1C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACpD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CAC1B,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,CAAC;IACP,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE;QACN;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,sBAAsB;YAC3B,KAAK,EAAE,uBAAuB;YAC9B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YAC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,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const qualificationOptions = [\n { value: 'CLASS_10', label: 'Class 10 (Secondary)' },\n { value: 'CLASS_12', label: 'Class 12 (Higher Secondary)' },\n { value: 'DIPLOMA', label: 'Diploma / ITI' },\n { value: 'GRADUATION', label: \"Graduation (Bachelor's)\" },\n { value: 'POST_GRAD', label: \"Post Graduation (Master's)\" },\n { value: 'PHD', label: 'Doctorate / PhD' },\n { value: 'POST_DOCTORATE', label: 'Post Doctorate' },\n { value: 'OTHER', label: 'Other' },\n] as const;\n\nexport const education: FieldGroup = {\n key: 'education',\n label: 'Education',\n step: 6,\n description: 'Academic background and qualifications.',\n fields: [\n {\n order: 1,\n key: 'highestQualification',\n label: 'Highest Qualification',\n type: 'single_select',\n step: 6,\n isOnboarding: true,\n options: [...qualificationOptions],\n },\n {\n order: 2,\n key: 'education10th',\n label: 'Class 10 Details',\n type: 'object',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: {\n field: 'highestQualification',\n values: [\n 'CLASS_10',\n 'CLASS_12',\n 'DIPLOMA',\n 'GRADUATION',\n 'POST_GRAD',\n 'PHD',\n 'POST_DOCTORATE',\n ],\n },\n },\n {\n order: 3,\n key: 'education12th',\n label: 'Class 12 Details',\n type: 'object',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: {\n field: 'highestQualification',\n values: ['CLASS_12', 'DIPLOMA', 'GRADUATION', 'POST_GRAD', 'PHD', 'POST_DOCTORATE'],\n },\n },\n {\n order: 4,\n key: 'diplomas',\n label: 'Diploma',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: { field: 'highestQualification', values: ['DIPLOMA'] },\n },\n {\n order: 5,\n key: 'graduations',\n label: 'Graduation',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: {\n field: 'highestQualification',\n values: ['GRADUATION', 'POST_GRAD', 'PHD', 'POST_DOCTORATE'],\n },\n },\n {\n order: 6,\n key: 'postGraduations',\n label: 'Post Graduation',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: {\n field: 'highestQualification',\n values: ['POST_GRAD', 'PHD', 'POST_DOCTORATE'],\n },\n },\n {\n order: 7,\n key: 'doctorates',\n label: 'Doctorate / PhD',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: { field: 'highestQualification', values: ['PHD', 'POST_DOCTORATE'] },\n },\n {\n order: 8,\n key: 'postDoctorates',\n label: 'Post Doctorate',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n conditionalOn: { field: 'highestQualification', values: ['POST_DOCTORATE'] },\n },\n {\n order: 9,\n key: 'otherCertificates',\n label: 'Other Certificates',\n type: 'object_array',\n step: 6,\n isOnboarding: true,\n optional: true,\n },\n {\n order: 10,\n key: 'educationNotes',\n label: 'Education Notes',\n type: 'textarea',\n step: 6,\n isOnboarding: true,\n optional: true,\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-employment.d.ts","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"07-employment.d.ts","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAOf,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEX,eAAO,MAAM,UAAU,EAAE,UAiFxB,CAAC"}
|
|
@@ -1,32 +1,112 @@
|
|
|
1
1
|
export const employmentStatusOptions = [
|
|
2
|
-
{ value: 'employed', label: 'Employed' },
|
|
3
|
-
{ value: '
|
|
4
|
-
{ value: '
|
|
5
|
-
{ value: '
|
|
2
|
+
{ value: 'employed', label: 'Employed' },
|
|
3
|
+
{ value: 'self_employed', label: 'Self-employed' },
|
|
4
|
+
{ value: 'unemployed', label: 'Unemployed' },
|
|
5
|
+
{ value: 'student', label: 'Student' },
|
|
6
|
+
{ value: 'homemaker', label: 'Homemaker' },
|
|
7
|
+
{ value: 'retired', label: 'Retired' },
|
|
8
|
+
{ value: 'daily_wage', label: 'Daily wage worker' },
|
|
9
|
+
{ value: 'other', label: 'Other' },
|
|
6
10
|
];
|
|
7
11
|
export const shiftOptions = [
|
|
8
|
-
{ value: 'day_shift', label: 'Day shift' },
|
|
9
|
-
{ value: '
|
|
10
|
-
{ value: '
|
|
12
|
+
{ value: 'day_shift', label: 'Day shift' },
|
|
13
|
+
{ value: 'night_shift', label: 'Night shift' },
|
|
14
|
+
{ value: 'rotating', label: 'Rotating shifts' },
|
|
15
|
+
{ value: 'flexible', label: 'Flexible hours' },
|
|
16
|
+
{ value: 'work_from_home', label: 'Work from home' },
|
|
17
|
+
{ value: 'not_applicable', label: 'Not applicable' },
|
|
11
18
|
];
|
|
12
19
|
export const incomeRangeOptions = [
|
|
13
|
-
{ value: 'below_5k', label: 'Below ₹5,000' },
|
|
14
|
-
{ value: '
|
|
15
|
-
{ value: '
|
|
16
|
-
{ value: '
|
|
20
|
+
{ value: 'below_5k', label: 'Below ₹5,000' },
|
|
21
|
+
{ value: '5k_10k', label: '₹5,000 – ₹10,000' },
|
|
22
|
+
{ value: '10k_25k', label: '₹10,000 – ₹25,000' },
|
|
23
|
+
{ value: '25k_50k', label: '₹25,000 – ₹50,000' },
|
|
24
|
+
{ value: '50k_1L', label: '₹50,000 – ₹1 Lakh' },
|
|
25
|
+
{ value: '1L_2.5L', label: '₹1 Lakh – ₹2.5 Lakh' },
|
|
26
|
+
{ value: '2.5L_5L', label: '₹2.5 Lakh – ₹5 Lakh' },
|
|
27
|
+
{ value: 'above_5L', label: 'Above ₹5 Lakh' },
|
|
17
28
|
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
18
29
|
];
|
|
19
30
|
export const employment = {
|
|
20
|
-
key: 'employment',
|
|
31
|
+
key: 'employment',
|
|
32
|
+
label: 'Employment & Occupation',
|
|
33
|
+
step: 7,
|
|
21
34
|
description: 'Current job, shift, income, and dream occupation.',
|
|
22
35
|
fields: [
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
{
|
|
37
|
+
order: 1,
|
|
38
|
+
key: 'employmentStatus',
|
|
39
|
+
label: 'Employment Status',
|
|
40
|
+
type: 'single_select',
|
|
41
|
+
step: 7,
|
|
42
|
+
isOnboarding: true,
|
|
43
|
+
optional: true,
|
|
44
|
+
options: [...employmentStatusOptions],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
order: 2,
|
|
48
|
+
key: 'occupation',
|
|
49
|
+
label: 'Occupation',
|
|
50
|
+
type: 'text',
|
|
51
|
+
step: 7,
|
|
52
|
+
isOnboarding: true,
|
|
53
|
+
optional: true,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
order: 3,
|
|
57
|
+
key: 'workShift',
|
|
58
|
+
label: 'Work Shift',
|
|
59
|
+
type: 'single_select',
|
|
60
|
+
step: 7,
|
|
61
|
+
isOnboarding: true,
|
|
62
|
+
optional: true,
|
|
63
|
+
options: [...shiftOptions],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
order: 4,
|
|
67
|
+
key: 'comfortableWithShift',
|
|
68
|
+
label: 'Comfortable with Shift',
|
|
69
|
+
type: 'single_select',
|
|
70
|
+
step: 7,
|
|
71
|
+
isOnboarding: true,
|
|
72
|
+
optional: true,
|
|
73
|
+
options: [
|
|
74
|
+
{ value: 'yes', label: 'Yes' },
|
|
75
|
+
{ value: 'no', label: 'No' },
|
|
76
|
+
{ value: 'somewhat', label: 'Somewhat' },
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
order: 5,
|
|
81
|
+
key: 'desiredShift',
|
|
82
|
+
label: 'Desired Shift',
|
|
83
|
+
type: 'single_select',
|
|
84
|
+
step: 7,
|
|
85
|
+
isOnboarding: true,
|
|
86
|
+
optional: true,
|
|
87
|
+
options: [...shiftOptions],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
order: 6,
|
|
91
|
+
key: 'incomeRange',
|
|
92
|
+
label: 'Income Range',
|
|
93
|
+
type: 'single_select',
|
|
94
|
+
step: 7,
|
|
95
|
+
isOnboarding: true,
|
|
96
|
+
optional: true,
|
|
97
|
+
options: [...incomeRangeOptions],
|
|
98
|
+
sensitive: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
order: 7,
|
|
102
|
+
key: 'dreamOccupation',
|
|
103
|
+
label: 'Dream Occupation',
|
|
104
|
+
type: 'textarea',
|
|
105
|
+
step: 7,
|
|
106
|
+
isOnboarding: true,
|
|
107
|
+
optional: true,
|
|
108
|
+
maxLength: 500,
|
|
109
|
+
},
|
|
30
110
|
],
|
|
31
111
|
};
|
|
32
112
|
//# sourceMappingURL=07-employment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-employment.js","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"07-employment.js","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB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,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;gBAC5B,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;aACzC;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,YAAY,CAAC;SAC3B;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC;YAChC,SAAS,EAAE,IAAI;SAChB;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,iBAAiB;YACtB,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,GAAG;SACf;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const employmentStatusOptions = [\n { value: 'employed', label: 'Employed' },\n { value: 'self_employed', label: 'Self-employed' },\n { value: 'unemployed', label: 'Unemployed' },\n { value: 'student', label: 'Student' },\n { value: 'homemaker', label: 'Homemaker' },\n { value: 'retired', label: 'Retired' },\n { value: 'daily_wage', label: 'Daily wage worker' },\n { value: 'other', label: 'Other' },\n] as const;\n\nexport const shiftOptions = [\n { value: 'day_shift', label: 'Day shift' },\n { value: 'night_shift', label: 'Night shift' },\n { value: 'rotating', label: 'Rotating shifts' },\n { value: 'flexible', label: 'Flexible hours' },\n { value: 'work_from_home', label: 'Work from home' },\n { value: 'not_applicable', label: 'Not applicable' },\n] as const;\n\nexport const incomeRangeOptions = [\n { value: 'below_5k', label: 'Below ₹5,000' },\n { value: '5k_10k', label: '₹5,000 – ₹10,000' },\n { value: '10k_25k', label: '₹10,000 – ₹25,000' },\n { value: '25k_50k', label: '₹25,000 – ₹50,000' },\n { value: '50k_1L', label: '₹50,000 – ₹1 Lakh' },\n { value: '1L_2.5L', label: '₹1 Lakh – ₹2.5 Lakh' },\n { value: '2.5L_5L', label: '₹2.5 Lakh – ₹5 Lakh' },\n { value: 'above_5L', label: 'Above ₹5 Lakh' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const employment: FieldGroup = {\n key: 'employment',\n label: 'Employment & Occupation',\n step: 7,\n description: 'Current job, shift, income, and dream occupation.',\n fields: [\n {\n order: 1,\n key: 'employmentStatus',\n label: 'Employment Status',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...employmentStatusOptions],\n },\n {\n order: 2,\n key: 'occupation',\n label: 'Occupation',\n type: 'text',\n step: 7,\n isOnboarding: true,\n optional: true,\n },\n {\n order: 3,\n key: 'workShift',\n label: 'Work Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 4,\n key: 'comfortableWithShift',\n label: 'Comfortable with Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'somewhat', label: 'Somewhat' },\n ],\n },\n {\n order: 5,\n key: 'desiredShift',\n label: 'Desired Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 6,\n key: 'incomeRange',\n label: 'Income Range',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...incomeRangeOptions],\n sensitive: true,\n },\n {\n order: 7,\n key: 'dreamOccupation',\n label: 'Dream Occupation',\n type: 'textarea',\n step: 7,\n isOnboarding: true,\n optional: true,\n maxLength: 500,\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"08-neurodiversity.d.ts","sourceRoot":"","sources":["../../src/profile-fields/08-neurodiversity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"08-neurodiversity.d.ts","sourceRoot":"","sources":["../../src/profile-fields/08-neurodiversity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCjC,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,UAsF5B,CAAC"}
|
|
@@ -1,39 +1,146 @@
|
|
|
1
1
|
export const neurodiversityConditionOptions = [
|
|
2
2
|
{ value: 'adhd', label: 'ADHD', description: 'Attention Deficit Hyperactivity Disorder' },
|
|
3
|
-
{
|
|
4
|
-
|
|
3
|
+
{
|
|
4
|
+
value: 'autism_spectrum',
|
|
5
|
+
label: 'Autism Spectrum',
|
|
6
|
+
description: 'Autism Spectrum Disorder (ASD)',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
value: 'dyslexia',
|
|
10
|
+
label: 'Dyslexia',
|
|
11
|
+
description: 'Difficulty with reading and language processing',
|
|
12
|
+
},
|
|
5
13
|
{ value: 'dyspraxia', label: 'Dyspraxia', description: 'Difficulty with motor coordination' },
|
|
6
14
|
{ value: 'dyscalculia', label: 'Dyscalculia', description: 'Difficulty with numbers and math' },
|
|
7
|
-
{
|
|
15
|
+
{
|
|
16
|
+
value: 'tourettes',
|
|
17
|
+
label: "Tourette's Syndrome",
|
|
18
|
+
description: 'Involuntary tics and movements',
|
|
19
|
+
},
|
|
8
20
|
{ value: 'ocd', label: 'OCD', description: 'Obsessive-Compulsive Disorder' },
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
21
|
+
{
|
|
22
|
+
value: 'bipolar',
|
|
23
|
+
label: 'Bipolar Disorder',
|
|
24
|
+
description: 'Mood episodes between mania and depression',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: 'anxiety_disorder',
|
|
28
|
+
label: 'Anxiety Disorder',
|
|
29
|
+
description: 'Persistent excessive worry',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: 'sensory_processing',
|
|
33
|
+
label: 'Sensory Processing Disorder',
|
|
34
|
+
description: 'Difficulty processing sensory information',
|
|
35
|
+
},
|
|
36
|
+
{ value: 'other', label: 'Other' },
|
|
37
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
13
38
|
];
|
|
14
39
|
export const sensoryPreferenceOptions = [
|
|
15
|
-
{ value: 'loud_sounds', label: 'Sensitive to loud sounds' },
|
|
16
|
-
{ value: '
|
|
17
|
-
{ value: '
|
|
40
|
+
{ value: 'loud_sounds', label: 'Sensitive to loud sounds' },
|
|
41
|
+
{ value: 'bright_lights', label: 'Sensitive to bright lights' },
|
|
42
|
+
{ value: 'textures', label: 'Sensitive to textures' },
|
|
43
|
+
{ value: 'smells', label: 'Sensitive to smells' },
|
|
44
|
+
{ value: 'quiet_environment', label: 'Needs quiet environment' },
|
|
45
|
+
{ value: 'seeks_stimulation', label: 'Seeks sensory stimulation' },
|
|
18
46
|
{ value: 'no_specific', label: 'No specific sensory needs' },
|
|
19
47
|
];
|
|
20
48
|
export const supportNeedOptions = [
|
|
21
|
-
{ value: 'flexible_deadlines', label: 'Flexible deadlines' },
|
|
22
|
-
{ value: '
|
|
23
|
-
{ value: '
|
|
24
|
-
{ value: '
|
|
49
|
+
{ value: 'flexible_deadlines', label: 'Flexible deadlines' },
|
|
50
|
+
{ value: 'written_instructions', label: 'Written instructions' },
|
|
51
|
+
{ value: 'quiet_workspace', label: 'Quiet workspace' },
|
|
52
|
+
{ value: 'regular_breaks', label: 'Regular breaks' },
|
|
53
|
+
{ value: 'structured_routines', label: 'Structured routines' },
|
|
54
|
+
{ value: 'assistive_technology', label: 'Assistive technology' },
|
|
55
|
+
{ value: 'peer_support', label: 'Peer support' },
|
|
56
|
+
{ value: 'professional_support', label: 'Professional support' },
|
|
25
57
|
{ value: 'no_specific', label: 'No specific needs' },
|
|
26
58
|
];
|
|
27
59
|
export const neurodiversity = {
|
|
28
|
-
key: 'neurodiversity',
|
|
60
|
+
key: 'neurodiversity',
|
|
61
|
+
label: 'Neurodiversity',
|
|
62
|
+
step: 8,
|
|
29
63
|
description: 'Neurodivergent identity, learning style, and support needs.',
|
|
30
64
|
fields: [
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
65
|
+
{
|
|
66
|
+
order: 1,
|
|
67
|
+
key: 'neurodiverseIdentity',
|
|
68
|
+
label: 'Neurodiverse Identity',
|
|
69
|
+
type: 'single_select',
|
|
70
|
+
step: 8,
|
|
71
|
+
isOnboarding: true,
|
|
72
|
+
optional: true,
|
|
73
|
+
options: [
|
|
74
|
+
{ value: 'yes', label: 'Yes' },
|
|
75
|
+
{ value: 'no', label: 'No' },
|
|
76
|
+
{ value: 'exploring', label: 'Exploring / Not sure' },
|
|
77
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
order: 2,
|
|
82
|
+
key: 'conditions',
|
|
83
|
+
label: 'Conditions',
|
|
84
|
+
type: 'multi_select',
|
|
85
|
+
step: 8,
|
|
86
|
+
isOnboarding: true,
|
|
87
|
+
optional: true,
|
|
88
|
+
options: [...neurodiversityConditionOptions],
|
|
89
|
+
conditionalOn: { field: 'neurodiverseIdentity', values: ['yes', 'exploring'] },
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
order: 3,
|
|
93
|
+
key: 'sensoryPreferences',
|
|
94
|
+
label: 'Sensory Preferences',
|
|
95
|
+
type: 'multi_select',
|
|
96
|
+
step: 8,
|
|
97
|
+
isOnboarding: true,
|
|
98
|
+
optional: true,
|
|
99
|
+
options: [...sensoryPreferenceOptions],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
order: 4,
|
|
103
|
+
key: 'learningStyle',
|
|
104
|
+
label: 'Learning Style',
|
|
105
|
+
type: 'single_select',
|
|
106
|
+
step: 8,
|
|
107
|
+
isOnboarding: true,
|
|
108
|
+
optional: true,
|
|
109
|
+
options: [
|
|
110
|
+
{ value: 'visual', label: 'Visual learner' },
|
|
111
|
+
{ value: 'auditory', label: 'Auditory learner' },
|
|
112
|
+
{ value: 'kinesthetic', label: 'Kinesthetic (hands-on)' },
|
|
113
|
+
{ value: 'reading_writing', label: 'Reading & Writing' },
|
|
114
|
+
{ value: 'mixed', label: 'Mixed / All styles' },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
order: 5,
|
|
119
|
+
key: 'communicationPreference',
|
|
120
|
+
label: 'Communication Preference',
|
|
121
|
+
type: 'single_select',
|
|
122
|
+
step: 8,
|
|
123
|
+
isOnboarding: true,
|
|
124
|
+
optional: true,
|
|
125
|
+
options: [
|
|
126
|
+
{ value: 'face_to_face', label: 'Face-to-face verbal' },
|
|
127
|
+
{ value: 'written', label: 'Written (text/email)' },
|
|
128
|
+
{ value: 'visual_aids', label: 'Visual aids' },
|
|
129
|
+
{ value: 'phone_calls', label: 'Phone calls' },
|
|
130
|
+
{ value: 'small_groups_only', label: 'Small groups only' },
|
|
131
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
order: 6,
|
|
136
|
+
key: 'supportNeeds',
|
|
137
|
+
label: 'Support Needs',
|
|
138
|
+
type: 'multi_select',
|
|
139
|
+
step: 8,
|
|
140
|
+
isOnboarding: true,
|
|
141
|
+
optional: true,
|
|
142
|
+
options: [...supportNeedOptions],
|
|
143
|
+
},
|
|
37
144
|
],
|
|
38
145
|
};
|
|
39
146
|
//# sourceMappingURL=08-neurodiversity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"08-neurodiversity.js","sourceRoot":"","sources":["../../src/profile-fields/08-neurodiversity.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,0CAA0C,EAAE;IACzF,
|
|
1
|
+
{"version":3,"file":"08-neurodiversity.js","sourceRoot":"","sources":["../../src/profile-fields/08-neurodiversity.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,0CAA0C,EAAE;IACzF;QACE,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,gCAAgC;KAC9C;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,iDAAiD;KAC/D;IACD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,oCAAoC,EAAE;IAC7F,EAAE,KAAK,EAAE,a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K,EAAE,qBAAqB,EAAE;gBACvD,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,sBAAsB,EAAE;gBACnD,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;gBAC1D,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;aAC3D;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC;SACjC;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const neurodiversityConditionOptions = [\n { value: 'adhd', label: 'ADHD', description: 'Attention Deficit Hyperactivity Disorder' },\n {\n value: 'autism_spectrum',\n label: 'Autism Spectrum',\n description: 'Autism Spectrum Disorder (ASD)',\n },\n {\n value: 'dyslexia',\n label: 'Dyslexia',\n description: 'Difficulty with reading and language processing',\n },\n { value: 'dyspraxia', label: 'Dyspraxia', description: 'Difficulty with motor coordination' },\n { value: 'dyscalculia', label: 'Dyscalculia', description: 'Difficulty with numbers and math' },\n {\n value: 'tourettes',\n label: \"Tourette's Syndrome\",\n description: 'Involuntary tics and movements',\n },\n { value: 'ocd', label: 'OCD', description: 'Obsessive-Compulsive Disorder' },\n {\n value: 'bipolar',\n label: 'Bipolar Disorder',\n description: 'Mood episodes between mania and depression',\n },\n {\n value: 'anxiety_disorder',\n label: 'Anxiety Disorder',\n description: 'Persistent excessive worry',\n },\n {\n value: 'sensory_processing',\n label: 'Sensory Processing Disorder',\n description: 'Difficulty processing sensory information',\n },\n { value: 'other', label: 'Other' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const sensoryPreferenceOptions = [\n { value: 'loud_sounds', label: 'Sensitive to loud sounds' },\n { value: 'bright_lights', label: 'Sensitive to bright lights' },\n { value: 'textures', label: 'Sensitive to textures' },\n { value: 'smells', label: 'Sensitive to smells' },\n { value: 'quiet_environment', label: 'Needs quiet environment' },\n { value: 'seeks_stimulation', label: 'Seeks sensory stimulation' },\n { value: 'no_specific', label: 'No specific sensory needs' },\n] as const;\n\nexport const supportNeedOptions = [\n { value: 'flexible_deadlines', label: 'Flexible deadlines' },\n { value: 'written_instructions', label: 'Written instructions' },\n { value: 'quiet_workspace', label: 'Quiet workspace' },\n { value: 'regular_breaks', label: 'Regular breaks' },\n { value: 'structured_routines', label: 'Structured routines' },\n { value: 'assistive_technology', label: 'Assistive technology' },\n { value: 'peer_support', label: 'Peer support' },\n { value: 'professional_support', label: 'Professional support' },\n { value: 'no_specific', label: 'No specific needs' },\n] as const;\n\nexport const neurodiversity: FieldGroup = {\n key: 'neurodiversity',\n label: 'Neurodiversity',\n step: 8,\n description: 'Neurodivergent identity, learning style, and support needs.',\n fields: [\n {\n order: 1,\n key: 'neurodiverseIdentity',\n label: 'Neurodiverse Identity',\n type: 'single_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'exploring', label: 'Exploring / Not sure' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 2,\n key: 'conditions',\n label: 'Conditions',\n type: 'multi_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [...neurodiversityConditionOptions],\n conditionalOn: { field: 'neurodiverseIdentity', values: ['yes', 'exploring'] },\n },\n {\n order: 3,\n key: 'sensoryPreferences',\n label: 'Sensory Preferences',\n type: 'multi_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [...sensoryPreferenceOptions],\n },\n {\n order: 4,\n key: 'learningStyle',\n label: 'Learning Style',\n type: 'single_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'visual', label: 'Visual learner' },\n { value: 'auditory', label: 'Auditory learner' },\n { value: 'kinesthetic', label: 'Kinesthetic (hands-on)' },\n { value: 'reading_writing', label: 'Reading & Writing' },\n { value: 'mixed', label: 'Mixed / All styles' },\n ],\n },\n {\n order: 5,\n key: 'communicationPreference',\n label: 'Communication Preference',\n type: 'single_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'face_to_face', label: 'Face-to-face verbal' },\n { value: 'written', label: 'Written (text/email)' },\n { value: 'visual_aids', label: 'Visual aids' },\n { value: 'phone_calls', label: 'Phone calls' },\n { value: 'small_groups_only', label: 'Small groups only' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 6,\n key: 'supportNeeds',\n label: 'Support Needs',\n type: 'multi_select',\n step: 8,\n isOnboarding: true,\n optional: true,\n options: [...supportNeedOptions],\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"09-health.d.ts","sourceRoot":"","sources":["../../src/profile-fields/09-health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"09-health.d.ts","sourceRoot":"","sources":["../../src/profile-fields/09-health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EASpB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAQtB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBd,CAAC;AAEX,eAAO,MAAM,eAAe,EAAE,UAuH7B,CAAC"}
|