@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/components/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { useState } from "react";
|
|
3
4
|
import { Button } from "../components/ui/button.js";
|
|
4
5
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../components/ui/card.js";
|
|
@@ -15,626 +16,1029 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "../components/ui/tabs.
|
|
|
15
16
|
import { Textarea } from "../components/ui/textarea.js";
|
|
16
17
|
import { Column, Grid, Row } from "../components/ui/layout/index.js";
|
|
17
18
|
function FormBuilderExample() {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
experience: 5,
|
|
30
|
-
interests: [],
|
|
31
|
-
customJson: '{}'
|
|
32
|
-
});
|
|
33
|
-
const updateField = (field, value)=>{
|
|
34
|
-
setFormData((prev)=>({
|
|
35
|
-
...prev,
|
|
36
|
-
[field]: value
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
const handleReset = ()=>{
|
|
40
|
-
setFormData({
|
|
41
|
-
firstName: '',
|
|
42
|
-
lastName: '',
|
|
43
|
-
email: '',
|
|
44
|
-
phone: '',
|
|
45
|
-
bio: '',
|
|
46
|
-
theme: 'system',
|
|
47
|
-
language: 'en',
|
|
19
|
+
const $ = c(113);
|
|
20
|
+
let t0;
|
|
21
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
22
|
+
t0 = {
|
|
23
|
+
firstName: "",
|
|
24
|
+
lastName: "",
|
|
25
|
+
email: "",
|
|
26
|
+
phone: "",
|
|
27
|
+
bio: "",
|
|
28
|
+
theme: "system",
|
|
29
|
+
language: "en",
|
|
48
30
|
notifications: true,
|
|
49
31
|
newsletter: false,
|
|
50
|
-
visibility:
|
|
32
|
+
visibility: "public",
|
|
51
33
|
experience: 5,
|
|
52
34
|
interests: [],
|
|
53
|
-
customJson:
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
35
|
+
customJson: "{}"
|
|
36
|
+
};
|
|
37
|
+
$[0] = t0;
|
|
38
|
+
} else t0 = $[0];
|
|
39
|
+
const [formData, setFormData] = useState(t0);
|
|
40
|
+
let t1;
|
|
41
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42
|
+
t1 = (field, value)=>{
|
|
43
|
+
setFormData((prev)=>({
|
|
44
|
+
...prev,
|
|
45
|
+
[field]: value
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
$[1] = t1;
|
|
49
|
+
} else t1 = $[1];
|
|
50
|
+
const updateField = t1;
|
|
51
|
+
let t2;
|
|
52
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
53
|
+
t2 = ()=>{
|
|
54
|
+
setFormData({
|
|
55
|
+
firstName: "",
|
|
56
|
+
lastName: "",
|
|
57
|
+
email: "",
|
|
58
|
+
phone: "",
|
|
59
|
+
bio: "",
|
|
60
|
+
theme: "system",
|
|
61
|
+
language: "en",
|
|
62
|
+
notifications: true,
|
|
63
|
+
newsletter: false,
|
|
64
|
+
visibility: "public",
|
|
65
|
+
experience: 5,
|
|
66
|
+
interests: [],
|
|
67
|
+
customJson: "{}"
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
$[2] = t2;
|
|
71
|
+
} else t2 = $[2];
|
|
72
|
+
const handleReset = t2;
|
|
73
|
+
const handleSubmit = _temp;
|
|
74
|
+
let t3;
|
|
75
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
76
|
+
t3 = /*#__PURE__*/ jsxs("div", {
|
|
77
|
+
className: "mb-6",
|
|
66
78
|
children: [
|
|
67
|
-
/*#__PURE__*/ jsx(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
/*#__PURE__*/ jsx("h1", {
|
|
80
|
+
className: "text-3xl font-bold tracking-tight",
|
|
81
|
+
children: "Form Builder"
|
|
82
|
+
}),
|
|
83
|
+
/*#__PURE__*/ jsx("p", {
|
|
84
|
+
className: "text-muted-foreground",
|
|
85
|
+
children: "A powerful example showcasing forms, tabs, and live JSON preview"
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
$[3] = t3;
|
|
90
|
+
} else t3 = $[3];
|
|
91
|
+
let t4;
|
|
92
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
93
|
+
t4 = /*#__PURE__*/ jsxs(TabsList, {
|
|
94
|
+
className: "grid w-full grid-cols-4",
|
|
95
|
+
children: [
|
|
96
|
+
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
97
|
+
value: "personal",
|
|
98
|
+
children: "Personal"
|
|
99
|
+
}),
|
|
100
|
+
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
101
|
+
value: "preferences",
|
|
102
|
+
children: "Preferences"
|
|
103
|
+
}),
|
|
104
|
+
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
105
|
+
value: "settings",
|
|
106
|
+
children: "Settings"
|
|
107
|
+
}),
|
|
108
|
+
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
109
|
+
value: "advanced",
|
|
110
|
+
children: "Advanced"
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
});
|
|
114
|
+
$[4] = t4;
|
|
115
|
+
} else t4 = $[4];
|
|
116
|
+
let t5;
|
|
117
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t5 = /*#__PURE__*/ jsxs(CardHeader, {
|
|
119
|
+
children: [
|
|
120
|
+
/*#__PURE__*/ jsx(CardTitle, {
|
|
121
|
+
children: "Personal Information"
|
|
122
|
+
}),
|
|
123
|
+
/*#__PURE__*/ jsx(CardDescription, {
|
|
124
|
+
children: "Enter your personal details below"
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
});
|
|
128
|
+
$[5] = t5;
|
|
129
|
+
} else t5 = $[5];
|
|
130
|
+
let t6;
|
|
131
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
132
|
+
t6 = /*#__PURE__*/ jsx(Label, {
|
|
133
|
+
htmlFor: "firstName",
|
|
134
|
+
children: "First Name"
|
|
135
|
+
});
|
|
136
|
+
$[6] = t6;
|
|
137
|
+
} else t6 = $[6];
|
|
138
|
+
let t7;
|
|
139
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
140
|
+
t7 = (e_0)=>updateField("firstName", e_0.target.value);
|
|
141
|
+
$[7] = t7;
|
|
142
|
+
} else t7 = $[7];
|
|
143
|
+
let t8;
|
|
144
|
+
if ($[8] !== formData.firstName) {
|
|
145
|
+
t8 = /*#__PURE__*/ jsxs(Column, {
|
|
146
|
+
gap: 2,
|
|
147
|
+
children: [
|
|
148
|
+
t6,
|
|
149
|
+
/*#__PURE__*/ jsx(Input, {
|
|
150
|
+
id: "firstName",
|
|
151
|
+
placeholder: "John",
|
|
152
|
+
value: formData.firstName,
|
|
153
|
+
onChange: t7
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
$[8] = formData.firstName;
|
|
158
|
+
$[9] = t8;
|
|
159
|
+
} else t8 = $[9];
|
|
160
|
+
let t9;
|
|
161
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
162
|
+
t9 = /*#__PURE__*/ jsx(Label, {
|
|
163
|
+
htmlFor: "lastName",
|
|
164
|
+
children: "Last Name"
|
|
165
|
+
});
|
|
166
|
+
$[10] = t9;
|
|
167
|
+
} else t9 = $[10];
|
|
168
|
+
let t10;
|
|
169
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
170
|
+
t10 = (e_1)=>updateField("lastName", e_1.target.value);
|
|
171
|
+
$[11] = t10;
|
|
172
|
+
} else t10 = $[11];
|
|
173
|
+
let t11;
|
|
174
|
+
if ($[12] !== formData.lastName) {
|
|
175
|
+
t11 = /*#__PURE__*/ jsxs(Column, {
|
|
176
|
+
gap: 2,
|
|
177
|
+
children: [
|
|
178
|
+
t9,
|
|
179
|
+
/*#__PURE__*/ jsx(Input, {
|
|
180
|
+
id: "lastName",
|
|
181
|
+
placeholder: "Doe",
|
|
182
|
+
value: formData.lastName,
|
|
183
|
+
onChange: t10
|
|
184
|
+
})
|
|
185
|
+
]
|
|
186
|
+
});
|
|
187
|
+
$[12] = formData.lastName;
|
|
188
|
+
$[13] = t11;
|
|
189
|
+
} else t11 = $[13];
|
|
190
|
+
let t12;
|
|
191
|
+
if ($[14] !== t11 || $[15] !== t8) {
|
|
192
|
+
t12 = /*#__PURE__*/ jsxs(Grid, {
|
|
193
|
+
gap: 4,
|
|
194
|
+
cols: 2,
|
|
195
|
+
className: "md:grid-cols-2",
|
|
196
|
+
children: [
|
|
197
|
+
t8,
|
|
198
|
+
t11
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
$[14] = t11;
|
|
202
|
+
$[15] = t8;
|
|
203
|
+
$[16] = t12;
|
|
204
|
+
} else t12 = $[16];
|
|
205
|
+
let t13;
|
|
206
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
207
|
+
t13 = /*#__PURE__*/ jsx(Label, {
|
|
208
|
+
htmlFor: "email",
|
|
209
|
+
children: "Email"
|
|
210
|
+
});
|
|
211
|
+
$[17] = t13;
|
|
212
|
+
} else t13 = $[17];
|
|
213
|
+
let t14;
|
|
214
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
215
|
+
t14 = (e_2)=>updateField("email", e_2.target.value);
|
|
216
|
+
$[18] = t14;
|
|
217
|
+
} else t14 = $[18];
|
|
218
|
+
let t15;
|
|
219
|
+
if ($[19] !== formData.email) {
|
|
220
|
+
t15 = /*#__PURE__*/ jsxs(Column, {
|
|
221
|
+
gap: 2,
|
|
222
|
+
children: [
|
|
223
|
+
t13,
|
|
224
|
+
/*#__PURE__*/ jsx(Input, {
|
|
225
|
+
id: "email",
|
|
226
|
+
type: "email",
|
|
227
|
+
placeholder: "john.doe@example.com",
|
|
228
|
+
value: formData.email,
|
|
229
|
+
onChange: t14
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
});
|
|
233
|
+
$[19] = formData.email;
|
|
234
|
+
$[20] = t15;
|
|
235
|
+
} else t15 = $[20];
|
|
236
|
+
let t16;
|
|
237
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
238
|
+
t16 = /*#__PURE__*/ jsx(Label, {
|
|
239
|
+
htmlFor: "phone",
|
|
240
|
+
children: "Phone Number"
|
|
241
|
+
});
|
|
242
|
+
$[21] = t16;
|
|
243
|
+
} else t16 = $[21];
|
|
244
|
+
let t17;
|
|
245
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
246
|
+
t17 = (e_3)=>updateField("phone", e_3.target.value);
|
|
247
|
+
$[22] = t17;
|
|
248
|
+
} else t17 = $[22];
|
|
249
|
+
let t18;
|
|
250
|
+
if ($[23] !== formData.phone) {
|
|
251
|
+
t18 = /*#__PURE__*/ jsxs(Column, {
|
|
252
|
+
gap: 2,
|
|
253
|
+
children: [
|
|
254
|
+
t16,
|
|
255
|
+
/*#__PURE__*/ jsx(Input, {
|
|
256
|
+
id: "phone",
|
|
257
|
+
type: "tel",
|
|
258
|
+
placeholder: "+1 (555) 000-0000",
|
|
259
|
+
value: formData.phone,
|
|
260
|
+
onChange: t17
|
|
261
|
+
})
|
|
262
|
+
]
|
|
263
|
+
});
|
|
264
|
+
$[23] = formData.phone;
|
|
265
|
+
$[24] = t18;
|
|
266
|
+
} else t18 = $[24];
|
|
267
|
+
let t19;
|
|
268
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
269
|
+
t19 = /*#__PURE__*/ jsx(Label, {
|
|
270
|
+
htmlFor: "bio",
|
|
271
|
+
children: "Bio"
|
|
272
|
+
});
|
|
273
|
+
$[25] = t19;
|
|
274
|
+
} else t19 = $[25];
|
|
275
|
+
let t20;
|
|
276
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
277
|
+
t20 = (e_4)=>updateField("bio", e_4.target.value);
|
|
278
|
+
$[26] = t20;
|
|
279
|
+
} else t20 = $[26];
|
|
280
|
+
let t21;
|
|
281
|
+
if ($[27] !== formData.bio) {
|
|
282
|
+
t21 = /*#__PURE__*/ jsxs(Column, {
|
|
283
|
+
gap: 2,
|
|
284
|
+
children: [
|
|
285
|
+
t19,
|
|
286
|
+
/*#__PURE__*/ jsx(Textarea, {
|
|
287
|
+
id: "bio",
|
|
288
|
+
placeholder: "Tell us about yourself...",
|
|
289
|
+
rows: 4,
|
|
290
|
+
value: formData.bio,
|
|
291
|
+
onChange: t20
|
|
292
|
+
})
|
|
293
|
+
]
|
|
294
|
+
});
|
|
295
|
+
$[27] = formData.bio;
|
|
296
|
+
$[28] = t21;
|
|
297
|
+
} else t21 = $[28];
|
|
298
|
+
let t22;
|
|
299
|
+
if ($[29] !== t12 || $[30] !== t15 || $[31] !== t18 || $[32] !== t21) {
|
|
300
|
+
t22 = /*#__PURE__*/ jsx(TabsContent, {
|
|
301
|
+
value: "personal",
|
|
302
|
+
className: "space-y-4",
|
|
303
|
+
children: /*#__PURE__*/ jsxs(Card, {
|
|
304
|
+
children: [
|
|
305
|
+
t5,
|
|
306
|
+
/*#__PURE__*/ jsxs(CardContent, {
|
|
307
|
+
className: "space-y-4",
|
|
308
|
+
children: [
|
|
309
|
+
t12,
|
|
310
|
+
t15,
|
|
311
|
+
t18,
|
|
312
|
+
t21
|
|
313
|
+
]
|
|
314
|
+
})
|
|
315
|
+
]
|
|
316
|
+
})
|
|
317
|
+
});
|
|
318
|
+
$[29] = t12;
|
|
319
|
+
$[30] = t15;
|
|
320
|
+
$[31] = t18;
|
|
321
|
+
$[32] = t21;
|
|
322
|
+
$[33] = t22;
|
|
323
|
+
} else t22 = $[33];
|
|
324
|
+
let t23;
|
|
325
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
326
|
+
t23 = /*#__PURE__*/ jsxs(CardHeader, {
|
|
327
|
+
children: [
|
|
328
|
+
/*#__PURE__*/ jsx(CardTitle, {
|
|
329
|
+
children: "Preferences"
|
|
330
|
+
}),
|
|
331
|
+
/*#__PURE__*/ jsx(CardDescription, {
|
|
332
|
+
children: "Customize your experience"
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
});
|
|
336
|
+
$[34] = t23;
|
|
337
|
+
} else t23 = $[34];
|
|
338
|
+
let t24;
|
|
339
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
340
|
+
t24 = /*#__PURE__*/ jsx(Label, {
|
|
341
|
+
htmlFor: "theme",
|
|
342
|
+
children: "Theme"
|
|
343
|
+
});
|
|
344
|
+
$[35] = t24;
|
|
345
|
+
} else t24 = $[35];
|
|
346
|
+
let t25;
|
|
347
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
348
|
+
t25 = (value_0)=>updateField("theme", value_0);
|
|
349
|
+
$[36] = t25;
|
|
350
|
+
} else t25 = $[36];
|
|
351
|
+
let t26;
|
|
352
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
353
|
+
t26 = /*#__PURE__*/ jsx(SelectTrigger, {
|
|
354
|
+
id: "theme",
|
|
355
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
356
|
+
placeholder: "Select a theme"
|
|
357
|
+
})
|
|
358
|
+
});
|
|
359
|
+
$[37] = t26;
|
|
360
|
+
} else t26 = $[37];
|
|
361
|
+
let t27;
|
|
362
|
+
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
363
|
+
t27 = /*#__PURE__*/ jsxs(SelectContent, {
|
|
364
|
+
children: [
|
|
365
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
366
|
+
value: "light",
|
|
367
|
+
children: "Light"
|
|
368
|
+
}),
|
|
369
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
370
|
+
value: "dark",
|
|
371
|
+
children: "Dark"
|
|
372
|
+
}),
|
|
373
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
374
|
+
value: "system",
|
|
375
|
+
children: "System"
|
|
376
|
+
})
|
|
377
|
+
]
|
|
378
|
+
});
|
|
379
|
+
$[38] = t27;
|
|
380
|
+
} else t27 = $[38];
|
|
381
|
+
let t28;
|
|
382
|
+
if ($[39] !== formData.theme) {
|
|
383
|
+
t28 = /*#__PURE__*/ jsxs(Column, {
|
|
384
|
+
gap: 2,
|
|
385
|
+
children: [
|
|
386
|
+
t24,
|
|
387
|
+
/*#__PURE__*/ jsxs(Select, {
|
|
388
|
+
value: formData.theme,
|
|
389
|
+
onValueChange: t25,
|
|
390
|
+
children: [
|
|
391
|
+
t26,
|
|
392
|
+
t27
|
|
393
|
+
]
|
|
394
|
+
})
|
|
395
|
+
]
|
|
396
|
+
});
|
|
397
|
+
$[39] = formData.theme;
|
|
398
|
+
$[40] = t28;
|
|
399
|
+
} else t28 = $[40];
|
|
400
|
+
let t29;
|
|
401
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
402
|
+
t29 = /*#__PURE__*/ jsx(Label, {
|
|
403
|
+
htmlFor: "language",
|
|
404
|
+
children: "Language"
|
|
405
|
+
});
|
|
406
|
+
$[41] = t29;
|
|
407
|
+
} else t29 = $[41];
|
|
408
|
+
let t30;
|
|
409
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
410
|
+
t30 = (value_1)=>updateField("language", value_1);
|
|
411
|
+
$[42] = t30;
|
|
412
|
+
} else t30 = $[42];
|
|
413
|
+
let t31;
|
|
414
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
415
|
+
t31 = /*#__PURE__*/ jsx(SelectTrigger, {
|
|
416
|
+
id: "language",
|
|
417
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
418
|
+
placeholder: "Select a language"
|
|
419
|
+
})
|
|
420
|
+
});
|
|
421
|
+
$[43] = t31;
|
|
422
|
+
} else t31 = $[43];
|
|
423
|
+
let t32;
|
|
424
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
425
|
+
t32 = /*#__PURE__*/ jsxs(SelectContent, {
|
|
426
|
+
children: [
|
|
427
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
428
|
+
value: "en",
|
|
429
|
+
children: "English"
|
|
430
|
+
}),
|
|
431
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
432
|
+
value: "es",
|
|
433
|
+
children: "Spanish"
|
|
434
|
+
}),
|
|
435
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
436
|
+
value: "fr",
|
|
437
|
+
children: "French"
|
|
438
|
+
}),
|
|
439
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
440
|
+
value: "de",
|
|
441
|
+
children: "German"
|
|
442
|
+
}),
|
|
443
|
+
/*#__PURE__*/ jsx(SelectItem, {
|
|
444
|
+
value: "ja",
|
|
445
|
+
children: "Japanese"
|
|
446
|
+
})
|
|
447
|
+
]
|
|
448
|
+
});
|
|
449
|
+
$[44] = t32;
|
|
450
|
+
} else t32 = $[44];
|
|
451
|
+
let t33;
|
|
452
|
+
if ($[45] !== formData.language) {
|
|
453
|
+
t33 = /*#__PURE__*/ jsxs(Column, {
|
|
454
|
+
gap: 2,
|
|
455
|
+
children: [
|
|
456
|
+
t29,
|
|
457
|
+
/*#__PURE__*/ jsxs(Select, {
|
|
458
|
+
value: formData.language,
|
|
459
|
+
onValueChange: t30,
|
|
460
|
+
children: [
|
|
461
|
+
t31,
|
|
462
|
+
t32
|
|
463
|
+
]
|
|
464
|
+
})
|
|
465
|
+
]
|
|
466
|
+
});
|
|
467
|
+
$[45] = formData.language;
|
|
468
|
+
$[46] = t33;
|
|
469
|
+
} else t33 = $[46];
|
|
470
|
+
let t34;
|
|
471
|
+
if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
|
|
472
|
+
t34 = /*#__PURE__*/ jsxs(Column, {
|
|
473
|
+
gap: 0.5,
|
|
474
|
+
children: [
|
|
475
|
+
/*#__PURE__*/ jsx(Label, {
|
|
476
|
+
htmlFor: "notifications",
|
|
477
|
+
children: "Notifications"
|
|
478
|
+
}),
|
|
479
|
+
/*#__PURE__*/ jsx("p", {
|
|
480
|
+
className: "text-sm text-muted-foreground",
|
|
481
|
+
children: "Receive notifications about your account"
|
|
482
|
+
})
|
|
483
|
+
]
|
|
484
|
+
});
|
|
485
|
+
$[47] = t34;
|
|
486
|
+
} else t34 = $[47];
|
|
487
|
+
let t35;
|
|
488
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
489
|
+
t35 = (checked)=>updateField("notifications", checked);
|
|
490
|
+
$[48] = t35;
|
|
491
|
+
} else t35 = $[48];
|
|
492
|
+
let t36;
|
|
493
|
+
if ($[49] !== formData.notifications) {
|
|
494
|
+
t36 = /*#__PURE__*/ jsxs(Row, {
|
|
495
|
+
justify: "between",
|
|
496
|
+
align: "center",
|
|
497
|
+
children: [
|
|
498
|
+
t34,
|
|
499
|
+
/*#__PURE__*/ jsx(Switch, {
|
|
500
|
+
id: "notifications",
|
|
501
|
+
checked: formData.notifications,
|
|
502
|
+
onCheckedChange: t35
|
|
503
|
+
})
|
|
504
|
+
]
|
|
505
|
+
});
|
|
506
|
+
$[49] = formData.notifications;
|
|
507
|
+
$[50] = t36;
|
|
508
|
+
} else t36 = $[50];
|
|
509
|
+
let t37;
|
|
510
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
511
|
+
t37 = (checked_0)=>updateField("newsletter", !!checked_0);
|
|
512
|
+
$[51] = t37;
|
|
513
|
+
} else t37 = $[51];
|
|
514
|
+
let t38;
|
|
515
|
+
if ($[52] !== formData.newsletter) {
|
|
516
|
+
t38 = /*#__PURE__*/ jsx(Checkbox, {
|
|
517
|
+
id: "newsletter",
|
|
518
|
+
checked: formData.newsletter,
|
|
519
|
+
onCheckedChange: t37
|
|
520
|
+
});
|
|
521
|
+
$[52] = formData.newsletter;
|
|
522
|
+
$[53] = t38;
|
|
523
|
+
} else t38 = $[53];
|
|
524
|
+
let t39;
|
|
525
|
+
if ($[54] === Symbol.for("react.memo_cache_sentinel")) {
|
|
526
|
+
t39 = /*#__PURE__*/ jsx(Label, {
|
|
527
|
+
htmlFor: "newsletter",
|
|
528
|
+
className: "text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
529
|
+
children: "Subscribe to newsletter"
|
|
530
|
+
});
|
|
531
|
+
$[54] = t39;
|
|
532
|
+
} else t39 = $[54];
|
|
533
|
+
let t40;
|
|
534
|
+
if ($[55] !== t38) {
|
|
535
|
+
t40 = /*#__PURE__*/ jsxs(Row, {
|
|
536
|
+
gap: 2,
|
|
537
|
+
align: "center",
|
|
538
|
+
children: [
|
|
539
|
+
t38,
|
|
540
|
+
t39
|
|
541
|
+
]
|
|
542
|
+
});
|
|
543
|
+
$[55] = t38;
|
|
544
|
+
$[56] = t40;
|
|
545
|
+
} else t40 = $[56];
|
|
546
|
+
let t41;
|
|
547
|
+
if ($[57] !== t28 || $[58] !== t33 || $[59] !== t36 || $[60] !== t40) {
|
|
548
|
+
t41 = /*#__PURE__*/ jsx(TabsContent, {
|
|
549
|
+
value: "preferences",
|
|
550
|
+
className: "space-y-4",
|
|
551
|
+
children: /*#__PURE__*/ jsxs(Card, {
|
|
552
|
+
children: [
|
|
553
|
+
t23,
|
|
554
|
+
/*#__PURE__*/ jsxs(CardContent, {
|
|
555
|
+
className: "space-y-6",
|
|
556
|
+
children: [
|
|
557
|
+
t28,
|
|
558
|
+
t33,
|
|
559
|
+
t36,
|
|
560
|
+
t40
|
|
561
|
+
]
|
|
562
|
+
})
|
|
563
|
+
]
|
|
564
|
+
})
|
|
565
|
+
});
|
|
566
|
+
$[57] = t28;
|
|
567
|
+
$[58] = t33;
|
|
568
|
+
$[59] = t36;
|
|
569
|
+
$[60] = t40;
|
|
570
|
+
$[61] = t41;
|
|
571
|
+
} else t41 = $[61];
|
|
572
|
+
let t42;
|
|
573
|
+
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
574
|
+
t42 = /*#__PURE__*/ jsxs(CardHeader, {
|
|
575
|
+
children: [
|
|
576
|
+
/*#__PURE__*/ jsx(CardTitle, {
|
|
577
|
+
children: "Settings"
|
|
578
|
+
}),
|
|
579
|
+
/*#__PURE__*/ jsx(CardDescription, {
|
|
580
|
+
children: "Configure your account settings"
|
|
581
|
+
})
|
|
582
|
+
]
|
|
583
|
+
});
|
|
584
|
+
$[62] = t42;
|
|
585
|
+
} else t42 = $[62];
|
|
586
|
+
let t43;
|
|
587
|
+
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
588
|
+
t43 = /*#__PURE__*/ jsx(Label, {
|
|
589
|
+
children: "Profile Visibility"
|
|
590
|
+
});
|
|
591
|
+
$[63] = t43;
|
|
592
|
+
} else t43 = $[63];
|
|
593
|
+
let t44;
|
|
594
|
+
if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
|
|
595
|
+
t44 = (value_2)=>updateField("visibility", value_2);
|
|
596
|
+
$[64] = t44;
|
|
597
|
+
} else t44 = $[64];
|
|
598
|
+
let t45;
|
|
599
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
600
|
+
t45 = /*#__PURE__*/ jsxs(Row, {
|
|
601
|
+
gap: 2,
|
|
602
|
+
align: "center",
|
|
603
|
+
children: [
|
|
604
|
+
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
605
|
+
value: "public",
|
|
606
|
+
id: "public"
|
|
607
|
+
}),
|
|
608
|
+
/*#__PURE__*/ jsx(Label, {
|
|
609
|
+
htmlFor: "public",
|
|
610
|
+
className: "font-normal",
|
|
611
|
+
children: "Public - Anyone can see your profile"
|
|
612
|
+
})
|
|
613
|
+
]
|
|
614
|
+
});
|
|
615
|
+
$[65] = t45;
|
|
616
|
+
} else t45 = $[65];
|
|
617
|
+
let t46;
|
|
618
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
619
|
+
t46 = /*#__PURE__*/ jsxs(Row, {
|
|
620
|
+
gap: 2,
|
|
621
|
+
align: "center",
|
|
622
|
+
children: [
|
|
623
|
+
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
624
|
+
value: "private",
|
|
625
|
+
id: "private"
|
|
626
|
+
}),
|
|
627
|
+
/*#__PURE__*/ jsx(Label, {
|
|
628
|
+
htmlFor: "private",
|
|
629
|
+
className: "font-normal",
|
|
630
|
+
children: "Private - Only you can see your profile"
|
|
631
|
+
})
|
|
632
|
+
]
|
|
633
|
+
});
|
|
634
|
+
$[66] = t46;
|
|
635
|
+
} else t46 = $[66];
|
|
636
|
+
let t47;
|
|
637
|
+
if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
|
|
638
|
+
t47 = /*#__PURE__*/ jsxs(Row, {
|
|
639
|
+
gap: 2,
|
|
640
|
+
align: "center",
|
|
641
|
+
children: [
|
|
642
|
+
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
643
|
+
value: "friends",
|
|
644
|
+
id: "friends"
|
|
645
|
+
}),
|
|
646
|
+
/*#__PURE__*/ jsx(Label, {
|
|
647
|
+
htmlFor: "friends",
|
|
648
|
+
className: "font-normal",
|
|
649
|
+
children: "Friends - Only friends can see your profile"
|
|
650
|
+
})
|
|
651
|
+
]
|
|
652
|
+
});
|
|
653
|
+
$[67] = t47;
|
|
654
|
+
} else t47 = $[67];
|
|
655
|
+
let t48;
|
|
656
|
+
if ($[68] !== formData.visibility) {
|
|
657
|
+
t48 = /*#__PURE__*/ jsxs(Column, {
|
|
658
|
+
gap: 3,
|
|
659
|
+
children: [
|
|
660
|
+
t43,
|
|
661
|
+
/*#__PURE__*/ jsxs(RadioGroup, {
|
|
662
|
+
value: formData.visibility,
|
|
663
|
+
onValueChange: t44,
|
|
664
|
+
children: [
|
|
665
|
+
t45,
|
|
666
|
+
t46,
|
|
667
|
+
t47
|
|
668
|
+
]
|
|
669
|
+
})
|
|
670
|
+
]
|
|
671
|
+
});
|
|
672
|
+
$[68] = formData.visibility;
|
|
673
|
+
$[69] = t48;
|
|
674
|
+
} else t48 = $[69];
|
|
675
|
+
let t49;
|
|
676
|
+
if ($[70] !== formData.experience) {
|
|
677
|
+
t49 = /*#__PURE__*/ jsx(Row, {
|
|
678
|
+
justify: "between",
|
|
679
|
+
align: "center",
|
|
680
|
+
children: /*#__PURE__*/ jsxs(Label, {
|
|
681
|
+
htmlFor: "experience",
|
|
682
|
+
children: [
|
|
683
|
+
"Experience Level: ",
|
|
684
|
+
formData.experience
|
|
685
|
+
]
|
|
686
|
+
})
|
|
687
|
+
});
|
|
688
|
+
$[70] = formData.experience;
|
|
689
|
+
$[71] = t49;
|
|
690
|
+
} else t49 = $[71];
|
|
691
|
+
let t50;
|
|
692
|
+
if ($[72] !== formData.experience) {
|
|
693
|
+
t50 = [
|
|
694
|
+
formData.experience
|
|
695
|
+
];
|
|
696
|
+
$[72] = formData.experience;
|
|
697
|
+
$[73] = t50;
|
|
698
|
+
} else t50 = $[73];
|
|
699
|
+
let t51;
|
|
700
|
+
if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
|
|
701
|
+
t51 = (value_3)=>updateField("experience", value_3[0]);
|
|
702
|
+
$[74] = t51;
|
|
703
|
+
} else t51 = $[74];
|
|
704
|
+
let t52;
|
|
705
|
+
if ($[75] !== t50) {
|
|
706
|
+
t52 = /*#__PURE__*/ jsx(Slider, {
|
|
707
|
+
id: "experience",
|
|
708
|
+
min: 0,
|
|
709
|
+
max: 10,
|
|
710
|
+
step: 1,
|
|
711
|
+
value: t50,
|
|
712
|
+
onValueChange: t51
|
|
713
|
+
});
|
|
714
|
+
$[75] = t50;
|
|
715
|
+
$[76] = t52;
|
|
716
|
+
} else t52 = $[76];
|
|
717
|
+
let t53;
|
|
718
|
+
if ($[77] === Symbol.for("react.memo_cache_sentinel")) {
|
|
719
|
+
t53 = /*#__PURE__*/ jsxs(Row, {
|
|
720
|
+
justify: "between",
|
|
721
|
+
className: "text-xs text-muted-foreground",
|
|
722
|
+
children: [
|
|
723
|
+
/*#__PURE__*/ jsx("span", {
|
|
724
|
+
children: "Beginner"
|
|
725
|
+
}),
|
|
726
|
+
/*#__PURE__*/ jsx("span", {
|
|
727
|
+
children: "Expert"
|
|
728
|
+
})
|
|
729
|
+
]
|
|
730
|
+
});
|
|
731
|
+
$[77] = t53;
|
|
732
|
+
} else t53 = $[77];
|
|
733
|
+
let t54;
|
|
734
|
+
if ($[78] !== t49 || $[79] !== t52) {
|
|
735
|
+
t54 = /*#__PURE__*/ jsxs(Column, {
|
|
736
|
+
gap: 3,
|
|
737
|
+
children: [
|
|
738
|
+
t49,
|
|
739
|
+
t52,
|
|
740
|
+
t53
|
|
741
|
+
]
|
|
742
|
+
});
|
|
743
|
+
$[78] = t49;
|
|
744
|
+
$[79] = t52;
|
|
745
|
+
$[80] = t54;
|
|
746
|
+
} else t54 = $[80];
|
|
747
|
+
let t55;
|
|
748
|
+
if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
|
|
749
|
+
t55 = /*#__PURE__*/ jsx(Label, {
|
|
750
|
+
children: "Interests"
|
|
751
|
+
});
|
|
752
|
+
$[81] = t55;
|
|
753
|
+
} else t55 = $[81];
|
|
754
|
+
let t56;
|
|
755
|
+
if ($[82] !== formData.interests) {
|
|
756
|
+
t56 = /*#__PURE__*/ jsxs(Column, {
|
|
757
|
+
gap: 3,
|
|
758
|
+
children: [
|
|
759
|
+
t55,
|
|
760
|
+
/*#__PURE__*/ jsx(Column, {
|
|
761
|
+
gap: 2,
|
|
762
|
+
children: [
|
|
763
|
+
"Technology",
|
|
764
|
+
"Design",
|
|
765
|
+
"Business",
|
|
766
|
+
"Science",
|
|
767
|
+
"Arts"
|
|
768
|
+
].map((interest)=>/*#__PURE__*/ jsxs(Row, {
|
|
769
|
+
gap: 2,
|
|
770
|
+
align: "center",
|
|
74
771
|
children: [
|
|
75
|
-
/*#__PURE__*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
children: "A powerful example showcasing forms, tabs, and live JSON preview"
|
|
85
|
-
})
|
|
86
|
-
]
|
|
772
|
+
/*#__PURE__*/ jsx(Checkbox, {
|
|
773
|
+
id: interest,
|
|
774
|
+
checked: formData.interests.includes(interest),
|
|
775
|
+
onCheckedChange: (checked_1)=>{
|
|
776
|
+
checked_1 ? updateField("interests", [
|
|
777
|
+
...formData.interests,
|
|
778
|
+
interest
|
|
779
|
+
]) : updateField("interests", formData.interests.filter((i)=>i !== interest));
|
|
780
|
+
}
|
|
87
781
|
}),
|
|
88
|
-
/*#__PURE__*/
|
|
89
|
-
|
|
90
|
-
className: "
|
|
91
|
-
children:
|
|
92
|
-
/*#__PURE__*/ jsxs(Tabs, {
|
|
93
|
-
defaultValue: "personal",
|
|
94
|
-
className: "w-full",
|
|
95
|
-
children: [
|
|
96
|
-
/*#__PURE__*/ jsxs(TabsList, {
|
|
97
|
-
className: "grid w-full grid-cols-4",
|
|
98
|
-
children: [
|
|
99
|
-
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
100
|
-
value: "personal",
|
|
101
|
-
children: "Personal"
|
|
102
|
-
}),
|
|
103
|
-
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
104
|
-
value: "preferences",
|
|
105
|
-
children: "Preferences"
|
|
106
|
-
}),
|
|
107
|
-
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
108
|
-
value: "settings",
|
|
109
|
-
children: "Settings"
|
|
110
|
-
}),
|
|
111
|
-
/*#__PURE__*/ jsx(TabsTrigger, {
|
|
112
|
-
value: "advanced",
|
|
113
|
-
children: "Advanced"
|
|
114
|
-
})
|
|
115
|
-
]
|
|
116
|
-
}),
|
|
117
|
-
/*#__PURE__*/ jsx(TabsContent, {
|
|
118
|
-
value: "personal",
|
|
119
|
-
className: "space-y-4",
|
|
120
|
-
children: /*#__PURE__*/ jsxs(Card, {
|
|
121
|
-
children: [
|
|
122
|
-
/*#__PURE__*/ jsxs(CardHeader, {
|
|
123
|
-
children: [
|
|
124
|
-
/*#__PURE__*/ jsx(CardTitle, {
|
|
125
|
-
children: "Personal Information"
|
|
126
|
-
}),
|
|
127
|
-
/*#__PURE__*/ jsx(CardDescription, {
|
|
128
|
-
children: "Enter your personal details below"
|
|
129
|
-
})
|
|
130
|
-
]
|
|
131
|
-
}),
|
|
132
|
-
/*#__PURE__*/ jsxs(CardContent, {
|
|
133
|
-
className: "space-y-4",
|
|
134
|
-
children: [
|
|
135
|
-
/*#__PURE__*/ jsxs(Grid, {
|
|
136
|
-
gap: 4,
|
|
137
|
-
cols: 2,
|
|
138
|
-
className: "md:grid-cols-2",
|
|
139
|
-
children: [
|
|
140
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
141
|
-
gap: 2,
|
|
142
|
-
children: [
|
|
143
|
-
/*#__PURE__*/ jsx(Label, {
|
|
144
|
-
htmlFor: "firstName",
|
|
145
|
-
children: "First Name"
|
|
146
|
-
}),
|
|
147
|
-
/*#__PURE__*/ jsx(Input, {
|
|
148
|
-
id: "firstName",
|
|
149
|
-
placeholder: "John",
|
|
150
|
-
value: formData.firstName,
|
|
151
|
-
onChange: (e)=>updateField('firstName', e.target.value)
|
|
152
|
-
})
|
|
153
|
-
]
|
|
154
|
-
}),
|
|
155
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
156
|
-
gap: 2,
|
|
157
|
-
children: [
|
|
158
|
-
/*#__PURE__*/ jsx(Label, {
|
|
159
|
-
htmlFor: "lastName",
|
|
160
|
-
children: "Last Name"
|
|
161
|
-
}),
|
|
162
|
-
/*#__PURE__*/ jsx(Input, {
|
|
163
|
-
id: "lastName",
|
|
164
|
-
placeholder: "Doe",
|
|
165
|
-
value: formData.lastName,
|
|
166
|
-
onChange: (e)=>updateField('lastName', e.target.value)
|
|
167
|
-
})
|
|
168
|
-
]
|
|
169
|
-
})
|
|
170
|
-
]
|
|
171
|
-
}),
|
|
172
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
173
|
-
gap: 2,
|
|
174
|
-
children: [
|
|
175
|
-
/*#__PURE__*/ jsx(Label, {
|
|
176
|
-
htmlFor: "email",
|
|
177
|
-
children: "Email"
|
|
178
|
-
}),
|
|
179
|
-
/*#__PURE__*/ jsx(Input, {
|
|
180
|
-
id: "email",
|
|
181
|
-
type: "email",
|
|
182
|
-
placeholder: "john.doe@example.com",
|
|
183
|
-
value: formData.email,
|
|
184
|
-
onChange: (e)=>updateField('email', e.target.value)
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}),
|
|
188
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
189
|
-
gap: 2,
|
|
190
|
-
children: [
|
|
191
|
-
/*#__PURE__*/ jsx(Label, {
|
|
192
|
-
htmlFor: "phone",
|
|
193
|
-
children: "Phone Number"
|
|
194
|
-
}),
|
|
195
|
-
/*#__PURE__*/ jsx(Input, {
|
|
196
|
-
id: "phone",
|
|
197
|
-
type: "tel",
|
|
198
|
-
placeholder: "+1 (555) 000-0000",
|
|
199
|
-
value: formData.phone,
|
|
200
|
-
onChange: (e)=>updateField('phone', e.target.value)
|
|
201
|
-
})
|
|
202
|
-
]
|
|
203
|
-
}),
|
|
204
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
205
|
-
gap: 2,
|
|
206
|
-
children: [
|
|
207
|
-
/*#__PURE__*/ jsx(Label, {
|
|
208
|
-
htmlFor: "bio",
|
|
209
|
-
children: "Bio"
|
|
210
|
-
}),
|
|
211
|
-
/*#__PURE__*/ jsx(Textarea, {
|
|
212
|
-
id: "bio",
|
|
213
|
-
placeholder: "Tell us about yourself...",
|
|
214
|
-
rows: 4,
|
|
215
|
-
value: formData.bio,
|
|
216
|
-
onChange: (e)=>updateField('bio', e.target.value)
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
})
|
|
220
|
-
]
|
|
221
|
-
})
|
|
222
|
-
]
|
|
223
|
-
})
|
|
224
|
-
}),
|
|
225
|
-
/*#__PURE__*/ jsx(TabsContent, {
|
|
226
|
-
value: "preferences",
|
|
227
|
-
className: "space-y-4",
|
|
228
|
-
children: /*#__PURE__*/ jsxs(Card, {
|
|
229
|
-
children: [
|
|
230
|
-
/*#__PURE__*/ jsxs(CardHeader, {
|
|
231
|
-
children: [
|
|
232
|
-
/*#__PURE__*/ jsx(CardTitle, {
|
|
233
|
-
children: "Preferences"
|
|
234
|
-
}),
|
|
235
|
-
/*#__PURE__*/ jsx(CardDescription, {
|
|
236
|
-
children: "Customize your experience"
|
|
237
|
-
})
|
|
238
|
-
]
|
|
239
|
-
}),
|
|
240
|
-
/*#__PURE__*/ jsxs(CardContent, {
|
|
241
|
-
className: "space-y-6",
|
|
242
|
-
children: [
|
|
243
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
244
|
-
gap: 2,
|
|
245
|
-
children: [
|
|
246
|
-
/*#__PURE__*/ jsx(Label, {
|
|
247
|
-
htmlFor: "theme",
|
|
248
|
-
children: "Theme"
|
|
249
|
-
}),
|
|
250
|
-
/*#__PURE__*/ jsxs(Select, {
|
|
251
|
-
value: formData.theme,
|
|
252
|
-
onValueChange: (value)=>updateField('theme', value),
|
|
253
|
-
children: [
|
|
254
|
-
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
255
|
-
id: "theme",
|
|
256
|
-
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
257
|
-
placeholder: "Select a theme"
|
|
258
|
-
})
|
|
259
|
-
}),
|
|
260
|
-
/*#__PURE__*/ jsxs(SelectContent, {
|
|
261
|
-
children: [
|
|
262
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
263
|
-
value: "light",
|
|
264
|
-
children: "Light"
|
|
265
|
-
}),
|
|
266
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
267
|
-
value: "dark",
|
|
268
|
-
children: "Dark"
|
|
269
|
-
}),
|
|
270
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
271
|
-
value: "system",
|
|
272
|
-
children: "System"
|
|
273
|
-
})
|
|
274
|
-
]
|
|
275
|
-
})
|
|
276
|
-
]
|
|
277
|
-
})
|
|
278
|
-
]
|
|
279
|
-
}),
|
|
280
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
281
|
-
gap: 2,
|
|
282
|
-
children: [
|
|
283
|
-
/*#__PURE__*/ jsx(Label, {
|
|
284
|
-
htmlFor: "language",
|
|
285
|
-
children: "Language"
|
|
286
|
-
}),
|
|
287
|
-
/*#__PURE__*/ jsxs(Select, {
|
|
288
|
-
value: formData.language,
|
|
289
|
-
onValueChange: (value)=>updateField('language', value),
|
|
290
|
-
children: [
|
|
291
|
-
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
292
|
-
id: "language",
|
|
293
|
-
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
294
|
-
placeholder: "Select a language"
|
|
295
|
-
})
|
|
296
|
-
}),
|
|
297
|
-
/*#__PURE__*/ jsxs(SelectContent, {
|
|
298
|
-
children: [
|
|
299
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
300
|
-
value: "en",
|
|
301
|
-
children: "English"
|
|
302
|
-
}),
|
|
303
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
304
|
-
value: "es",
|
|
305
|
-
children: "Spanish"
|
|
306
|
-
}),
|
|
307
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
308
|
-
value: "fr",
|
|
309
|
-
children: "French"
|
|
310
|
-
}),
|
|
311
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
312
|
-
value: "de",
|
|
313
|
-
children: "German"
|
|
314
|
-
}),
|
|
315
|
-
/*#__PURE__*/ jsx(SelectItem, {
|
|
316
|
-
value: "ja",
|
|
317
|
-
children: "Japanese"
|
|
318
|
-
})
|
|
319
|
-
]
|
|
320
|
-
})
|
|
321
|
-
]
|
|
322
|
-
})
|
|
323
|
-
]
|
|
324
|
-
}),
|
|
325
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
326
|
-
justify: "between",
|
|
327
|
-
align: "center",
|
|
328
|
-
children: [
|
|
329
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
330
|
-
gap: 0.5,
|
|
331
|
-
children: [
|
|
332
|
-
/*#__PURE__*/ jsx(Label, {
|
|
333
|
-
htmlFor: "notifications",
|
|
334
|
-
children: "Notifications"
|
|
335
|
-
}),
|
|
336
|
-
/*#__PURE__*/ jsx("p", {
|
|
337
|
-
className: "text-sm text-muted-foreground",
|
|
338
|
-
children: "Receive notifications about your account"
|
|
339
|
-
})
|
|
340
|
-
]
|
|
341
|
-
}),
|
|
342
|
-
/*#__PURE__*/ jsx(Switch, {
|
|
343
|
-
id: "notifications",
|
|
344
|
-
checked: formData.notifications,
|
|
345
|
-
onCheckedChange: (checked)=>updateField('notifications', checked)
|
|
346
|
-
})
|
|
347
|
-
]
|
|
348
|
-
}),
|
|
349
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
350
|
-
gap: 2,
|
|
351
|
-
align: "center",
|
|
352
|
-
children: [
|
|
353
|
-
/*#__PURE__*/ jsx(Checkbox, {
|
|
354
|
-
id: "newsletter",
|
|
355
|
-
checked: formData.newsletter,
|
|
356
|
-
onCheckedChange: (checked)=>updateField('newsletter', !!checked)
|
|
357
|
-
}),
|
|
358
|
-
/*#__PURE__*/ jsx(Label, {
|
|
359
|
-
htmlFor: "newsletter",
|
|
360
|
-
className: "text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
361
|
-
children: "Subscribe to newsletter"
|
|
362
|
-
})
|
|
363
|
-
]
|
|
364
|
-
})
|
|
365
|
-
]
|
|
366
|
-
})
|
|
367
|
-
]
|
|
368
|
-
})
|
|
369
|
-
}),
|
|
370
|
-
/*#__PURE__*/ jsx(TabsContent, {
|
|
371
|
-
value: "settings",
|
|
372
|
-
className: "space-y-4",
|
|
373
|
-
children: /*#__PURE__*/ jsxs(Card, {
|
|
374
|
-
children: [
|
|
375
|
-
/*#__PURE__*/ jsxs(CardHeader, {
|
|
376
|
-
children: [
|
|
377
|
-
/*#__PURE__*/ jsx(CardTitle, {
|
|
378
|
-
children: "Settings"
|
|
379
|
-
}),
|
|
380
|
-
/*#__PURE__*/ jsx(CardDescription, {
|
|
381
|
-
children: "Configure your account settings"
|
|
382
|
-
})
|
|
383
|
-
]
|
|
384
|
-
}),
|
|
385
|
-
/*#__PURE__*/ jsxs(CardContent, {
|
|
386
|
-
className: "space-y-6",
|
|
387
|
-
children: [
|
|
388
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
389
|
-
gap: 3,
|
|
390
|
-
children: [
|
|
391
|
-
/*#__PURE__*/ jsx(Label, {
|
|
392
|
-
children: "Profile Visibility"
|
|
393
|
-
}),
|
|
394
|
-
/*#__PURE__*/ jsxs(RadioGroup, {
|
|
395
|
-
value: formData.visibility,
|
|
396
|
-
onValueChange: (value)=>updateField('visibility', value),
|
|
397
|
-
children: [
|
|
398
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
399
|
-
gap: 2,
|
|
400
|
-
align: "center",
|
|
401
|
-
children: [
|
|
402
|
-
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
403
|
-
value: "public",
|
|
404
|
-
id: "public"
|
|
405
|
-
}),
|
|
406
|
-
/*#__PURE__*/ jsx(Label, {
|
|
407
|
-
htmlFor: "public",
|
|
408
|
-
className: "font-normal",
|
|
409
|
-
children: "Public - Anyone can see your profile"
|
|
410
|
-
})
|
|
411
|
-
]
|
|
412
|
-
}),
|
|
413
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
414
|
-
gap: 2,
|
|
415
|
-
align: "center",
|
|
416
|
-
children: [
|
|
417
|
-
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
418
|
-
value: "private",
|
|
419
|
-
id: "private"
|
|
420
|
-
}),
|
|
421
|
-
/*#__PURE__*/ jsx(Label, {
|
|
422
|
-
htmlFor: "private",
|
|
423
|
-
className: "font-normal",
|
|
424
|
-
children: "Private - Only you can see your profile"
|
|
425
|
-
})
|
|
426
|
-
]
|
|
427
|
-
}),
|
|
428
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
429
|
-
gap: 2,
|
|
430
|
-
align: "center",
|
|
431
|
-
children: [
|
|
432
|
-
/*#__PURE__*/ jsx(RadioGroupItem, {
|
|
433
|
-
value: "friends",
|
|
434
|
-
id: "friends"
|
|
435
|
-
}),
|
|
436
|
-
/*#__PURE__*/ jsx(Label, {
|
|
437
|
-
htmlFor: "friends",
|
|
438
|
-
className: "font-normal",
|
|
439
|
-
children: "Friends - Only friends can see your profile"
|
|
440
|
-
})
|
|
441
|
-
]
|
|
442
|
-
})
|
|
443
|
-
]
|
|
444
|
-
})
|
|
445
|
-
]
|
|
446
|
-
}),
|
|
447
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
448
|
-
gap: 3,
|
|
449
|
-
children: [
|
|
450
|
-
/*#__PURE__*/ jsx(Row, {
|
|
451
|
-
justify: "between",
|
|
452
|
-
align: "center",
|
|
453
|
-
children: /*#__PURE__*/ jsxs(Label, {
|
|
454
|
-
htmlFor: "experience",
|
|
455
|
-
children: [
|
|
456
|
-
"Experience Level: ",
|
|
457
|
-
formData.experience
|
|
458
|
-
]
|
|
459
|
-
})
|
|
460
|
-
}),
|
|
461
|
-
/*#__PURE__*/ jsx(Slider, {
|
|
462
|
-
id: "experience",
|
|
463
|
-
min: 0,
|
|
464
|
-
max: 10,
|
|
465
|
-
step: 1,
|
|
466
|
-
value: [
|
|
467
|
-
formData.experience
|
|
468
|
-
],
|
|
469
|
-
onValueChange: (value)=>updateField('experience', value[0])
|
|
470
|
-
}),
|
|
471
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
472
|
-
justify: "between",
|
|
473
|
-
className: "text-xs text-muted-foreground",
|
|
474
|
-
children: [
|
|
475
|
-
/*#__PURE__*/ jsx("span", {
|
|
476
|
-
children: "Beginner"
|
|
477
|
-
}),
|
|
478
|
-
/*#__PURE__*/ jsx("span", {
|
|
479
|
-
children: "Expert"
|
|
480
|
-
})
|
|
481
|
-
]
|
|
482
|
-
})
|
|
483
|
-
]
|
|
484
|
-
}),
|
|
485
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
486
|
-
gap: 3,
|
|
487
|
-
children: [
|
|
488
|
-
/*#__PURE__*/ jsx(Label, {
|
|
489
|
-
children: "Interests"
|
|
490
|
-
}),
|
|
491
|
-
/*#__PURE__*/ jsx(Column, {
|
|
492
|
-
gap: 2,
|
|
493
|
-
children: [
|
|
494
|
-
'Technology',
|
|
495
|
-
'Design',
|
|
496
|
-
'Business',
|
|
497
|
-
'Science',
|
|
498
|
-
'Arts'
|
|
499
|
-
].map((interest)=>/*#__PURE__*/ jsxs(Row, {
|
|
500
|
-
gap: 2,
|
|
501
|
-
align: "center",
|
|
502
|
-
children: [
|
|
503
|
-
/*#__PURE__*/ jsx(Checkbox, {
|
|
504
|
-
id: interest,
|
|
505
|
-
checked: formData.interests.includes(interest),
|
|
506
|
-
onCheckedChange: (checked)=>{
|
|
507
|
-
checked ? updateField('interests', [
|
|
508
|
-
...formData.interests,
|
|
509
|
-
interest
|
|
510
|
-
]) : updateField('interests', formData.interests.filter((i)=>i !== interest));
|
|
511
|
-
}
|
|
512
|
-
}),
|
|
513
|
-
/*#__PURE__*/ jsx(Label, {
|
|
514
|
-
htmlFor: interest,
|
|
515
|
-
className: "text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
516
|
-
children: interest
|
|
517
|
-
})
|
|
518
|
-
]
|
|
519
|
-
}, interest))
|
|
520
|
-
})
|
|
521
|
-
]
|
|
522
|
-
})
|
|
523
|
-
]
|
|
524
|
-
})
|
|
525
|
-
]
|
|
526
|
-
})
|
|
527
|
-
}),
|
|
528
|
-
/*#__PURE__*/ jsx(TabsContent, {
|
|
529
|
-
value: "advanced",
|
|
530
|
-
className: "space-y-4",
|
|
531
|
-
children: /*#__PURE__*/ jsxs(Card, {
|
|
532
|
-
children: [
|
|
533
|
-
/*#__PURE__*/ jsxs(CardHeader, {
|
|
534
|
-
children: [
|
|
535
|
-
/*#__PURE__*/ jsx(CardTitle, {
|
|
536
|
-
children: "Advanced Settings"
|
|
537
|
-
}),
|
|
538
|
-
/*#__PURE__*/ jsx(CardDescription, {
|
|
539
|
-
children: "Configure advanced options with custom JSON"
|
|
540
|
-
})
|
|
541
|
-
]
|
|
542
|
-
}),
|
|
543
|
-
/*#__PURE__*/ jsx(CardContent, {
|
|
544
|
-
className: "space-y-4",
|
|
545
|
-
children: /*#__PURE__*/ jsxs(Column, {
|
|
546
|
-
gap: 2,
|
|
547
|
-
children: [
|
|
548
|
-
/*#__PURE__*/ jsx(Label, {
|
|
549
|
-
htmlFor: "customJson",
|
|
550
|
-
children: "Custom Configuration (JSON)"
|
|
551
|
-
}),
|
|
552
|
-
/*#__PURE__*/ jsx(Textarea, {
|
|
553
|
-
id: "customJson",
|
|
554
|
-
placeholder: '{"key": "value"}',
|
|
555
|
-
rows: 10,
|
|
556
|
-
className: "font-mono text-sm",
|
|
557
|
-
value: formData.customJson,
|
|
558
|
-
onChange: (e)=>updateField('customJson', e.target.value)
|
|
559
|
-
}),
|
|
560
|
-
/*#__PURE__*/ jsx("p", {
|
|
561
|
-
className: "text-xs text-muted-foreground",
|
|
562
|
-
children: "Enter valid JSON for custom configuration"
|
|
563
|
-
})
|
|
564
|
-
]
|
|
565
|
-
})
|
|
566
|
-
})
|
|
567
|
-
]
|
|
568
|
-
})
|
|
569
|
-
})
|
|
570
|
-
]
|
|
571
|
-
}),
|
|
572
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
573
|
-
gap: 4,
|
|
574
|
-
children: [
|
|
575
|
-
/*#__PURE__*/ jsx(Button, {
|
|
576
|
-
type: "submit",
|
|
577
|
-
children: "Submit"
|
|
578
|
-
}),
|
|
579
|
-
/*#__PURE__*/ jsx(Button, {
|
|
580
|
-
type: "button",
|
|
581
|
-
variant: "outline",
|
|
582
|
-
onClick: handleReset,
|
|
583
|
-
children: "Reset"
|
|
584
|
-
})
|
|
585
|
-
]
|
|
586
|
-
})
|
|
587
|
-
]
|
|
782
|
+
/*#__PURE__*/ jsx(Label, {
|
|
783
|
+
htmlFor: interest,
|
|
784
|
+
className: "text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
785
|
+
children: interest
|
|
588
786
|
})
|
|
589
787
|
]
|
|
788
|
+
}, interest))
|
|
789
|
+
})
|
|
790
|
+
]
|
|
791
|
+
});
|
|
792
|
+
$[82] = formData.interests;
|
|
793
|
+
$[83] = t56;
|
|
794
|
+
} else t56 = $[83];
|
|
795
|
+
let t57;
|
|
796
|
+
if ($[84] !== t48 || $[85] !== t54 || $[86] !== t56) {
|
|
797
|
+
t57 = /*#__PURE__*/ jsx(TabsContent, {
|
|
798
|
+
value: "settings",
|
|
799
|
+
className: "space-y-4",
|
|
800
|
+
children: /*#__PURE__*/ jsxs(Card, {
|
|
801
|
+
children: [
|
|
802
|
+
t42,
|
|
803
|
+
/*#__PURE__*/ jsxs(CardContent, {
|
|
804
|
+
className: "space-y-6",
|
|
805
|
+
children: [
|
|
806
|
+
t48,
|
|
807
|
+
t54,
|
|
808
|
+
t56
|
|
809
|
+
]
|
|
810
|
+
})
|
|
811
|
+
]
|
|
812
|
+
})
|
|
813
|
+
});
|
|
814
|
+
$[84] = t48;
|
|
815
|
+
$[85] = t54;
|
|
816
|
+
$[86] = t56;
|
|
817
|
+
$[87] = t57;
|
|
818
|
+
} else t57 = $[87];
|
|
819
|
+
let t58;
|
|
820
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
821
|
+
t58 = /*#__PURE__*/ jsxs(CardHeader, {
|
|
822
|
+
children: [
|
|
823
|
+
/*#__PURE__*/ jsx(CardTitle, {
|
|
824
|
+
children: "Advanced Settings"
|
|
825
|
+
}),
|
|
826
|
+
/*#__PURE__*/ jsx(CardDescription, {
|
|
827
|
+
children: "Configure advanced options with custom JSON"
|
|
828
|
+
})
|
|
829
|
+
]
|
|
830
|
+
});
|
|
831
|
+
$[88] = t58;
|
|
832
|
+
} else t58 = $[88];
|
|
833
|
+
let t59;
|
|
834
|
+
if ($[89] === Symbol.for("react.memo_cache_sentinel")) {
|
|
835
|
+
t59 = /*#__PURE__*/ jsx(Label, {
|
|
836
|
+
htmlFor: "customJson",
|
|
837
|
+
children: "Custom Configuration (JSON)"
|
|
838
|
+
});
|
|
839
|
+
$[89] = t59;
|
|
840
|
+
} else t59 = $[89];
|
|
841
|
+
let t60;
|
|
842
|
+
if ($[90] === Symbol.for("react.memo_cache_sentinel")) {
|
|
843
|
+
t60 = (e_5)=>updateField("customJson", e_5.target.value);
|
|
844
|
+
$[90] = t60;
|
|
845
|
+
} else t60 = $[90];
|
|
846
|
+
let t61;
|
|
847
|
+
if ($[91] !== formData.customJson) {
|
|
848
|
+
t61 = /*#__PURE__*/ jsx(Textarea, {
|
|
849
|
+
id: "customJson",
|
|
850
|
+
placeholder: "{\"key\": \"value\"}",
|
|
851
|
+
rows: 10,
|
|
852
|
+
className: "font-mono text-sm",
|
|
853
|
+
value: formData.customJson,
|
|
854
|
+
onChange: t60
|
|
855
|
+
});
|
|
856
|
+
$[91] = formData.customJson;
|
|
857
|
+
$[92] = t61;
|
|
858
|
+
} else t61 = $[92];
|
|
859
|
+
let t62;
|
|
860
|
+
if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
|
|
861
|
+
t62 = /*#__PURE__*/ jsx("p", {
|
|
862
|
+
className: "text-xs text-muted-foreground",
|
|
863
|
+
children: "Enter valid JSON for custom configuration"
|
|
864
|
+
});
|
|
865
|
+
$[93] = t62;
|
|
866
|
+
} else t62 = $[93];
|
|
867
|
+
let t63;
|
|
868
|
+
if ($[94] !== t61) {
|
|
869
|
+
t63 = /*#__PURE__*/ jsx(TabsContent, {
|
|
870
|
+
value: "advanced",
|
|
871
|
+
className: "space-y-4",
|
|
872
|
+
children: /*#__PURE__*/ jsxs(Card, {
|
|
873
|
+
children: [
|
|
874
|
+
t58,
|
|
875
|
+
/*#__PURE__*/ jsx(CardContent, {
|
|
876
|
+
className: "space-y-4",
|
|
877
|
+
children: /*#__PURE__*/ jsxs(Column, {
|
|
878
|
+
gap: 2,
|
|
879
|
+
children: [
|
|
880
|
+
t59,
|
|
881
|
+
t61,
|
|
882
|
+
t62
|
|
883
|
+
]
|
|
590
884
|
})
|
|
591
885
|
})
|
|
886
|
+
]
|
|
887
|
+
})
|
|
888
|
+
});
|
|
889
|
+
$[94] = t61;
|
|
890
|
+
$[95] = t63;
|
|
891
|
+
} else t63 = $[95];
|
|
892
|
+
let t64;
|
|
893
|
+
if ($[96] !== t22 || $[97] !== t41 || $[98] !== t57 || $[99] !== t63) {
|
|
894
|
+
t64 = /*#__PURE__*/ jsxs(Tabs, {
|
|
895
|
+
defaultValue: "personal",
|
|
896
|
+
className: "w-full",
|
|
897
|
+
children: [
|
|
898
|
+
t4,
|
|
899
|
+
t22,
|
|
900
|
+
t41,
|
|
901
|
+
t57,
|
|
902
|
+
t63
|
|
903
|
+
]
|
|
904
|
+
});
|
|
905
|
+
$[96] = t22;
|
|
906
|
+
$[97] = t41;
|
|
907
|
+
$[98] = t57;
|
|
908
|
+
$[99] = t63;
|
|
909
|
+
$[100] = t64;
|
|
910
|
+
} else t64 = $[100];
|
|
911
|
+
let t65;
|
|
912
|
+
if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
|
|
913
|
+
t65 = /*#__PURE__*/ jsxs(Row, {
|
|
914
|
+
gap: 4,
|
|
915
|
+
children: [
|
|
916
|
+
/*#__PURE__*/ jsx(Button, {
|
|
917
|
+
type: "submit",
|
|
918
|
+
children: "Submit"
|
|
592
919
|
}),
|
|
593
|
-
/*#__PURE__*/ jsx(
|
|
594
|
-
|
|
920
|
+
/*#__PURE__*/ jsx(Button, {
|
|
921
|
+
type: "button",
|
|
922
|
+
variant: "outline",
|
|
923
|
+
onClick: handleReset,
|
|
924
|
+
children: "Reset"
|
|
925
|
+
})
|
|
926
|
+
]
|
|
927
|
+
});
|
|
928
|
+
$[101] = t65;
|
|
929
|
+
} else t65 = $[101];
|
|
930
|
+
let t66;
|
|
931
|
+
if ($[102] !== t64) {
|
|
932
|
+
t66 = /*#__PURE__*/ jsx(ResizablePanel, {
|
|
933
|
+
defaultSize: 50,
|
|
934
|
+
minSize: 30,
|
|
935
|
+
children: /*#__PURE__*/ jsx(ScrollArea, {
|
|
936
|
+
className: "h-screen",
|
|
937
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
938
|
+
className: "p-6",
|
|
939
|
+
children: [
|
|
940
|
+
t3,
|
|
941
|
+
/*#__PURE__*/ jsxs("form", {
|
|
942
|
+
onSubmit: handleSubmit,
|
|
943
|
+
className: "space-y-6",
|
|
944
|
+
children: [
|
|
945
|
+
t64,
|
|
946
|
+
t65
|
|
947
|
+
]
|
|
948
|
+
})
|
|
949
|
+
]
|
|
950
|
+
})
|
|
951
|
+
})
|
|
952
|
+
});
|
|
953
|
+
$[102] = t64;
|
|
954
|
+
$[103] = t66;
|
|
955
|
+
} else t66 = $[103];
|
|
956
|
+
let t67;
|
|
957
|
+
if ($[104] === Symbol.for("react.memo_cache_sentinel")) {
|
|
958
|
+
t67 = /*#__PURE__*/ jsx(ResizableHandle, {
|
|
959
|
+
withHandle: true
|
|
960
|
+
});
|
|
961
|
+
$[104] = t67;
|
|
962
|
+
} else t67 = $[104];
|
|
963
|
+
let t68;
|
|
964
|
+
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
965
|
+
t68 = /*#__PURE__*/ jsxs("div", {
|
|
966
|
+
className: "mb-4",
|
|
967
|
+
children: [
|
|
968
|
+
/*#__PURE__*/ jsx("h2", {
|
|
969
|
+
className: "text-2xl font-bold tracking-tight",
|
|
970
|
+
children: "JSON Preview"
|
|
595
971
|
}),
|
|
596
|
-
/*#__PURE__*/ jsx(
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
972
|
+
/*#__PURE__*/ jsx("p", {
|
|
973
|
+
className: "text-muted-foreground",
|
|
974
|
+
children: "Live preview of your form data"
|
|
975
|
+
})
|
|
976
|
+
]
|
|
977
|
+
});
|
|
978
|
+
$[105] = t68;
|
|
979
|
+
} else t68 = $[105];
|
|
980
|
+
let t69;
|
|
981
|
+
if ($[106] !== formData) {
|
|
982
|
+
t69 = JSON.stringify(formData, null, 2);
|
|
983
|
+
$[106] = formData;
|
|
984
|
+
$[107] = t69;
|
|
985
|
+
} else t69 = $[107];
|
|
986
|
+
let t70;
|
|
987
|
+
if ($[108] !== t69) {
|
|
988
|
+
t70 = /*#__PURE__*/ jsx(ResizablePanel, {
|
|
989
|
+
defaultSize: 50,
|
|
990
|
+
minSize: 30,
|
|
991
|
+
children: /*#__PURE__*/ jsx(Column, {
|
|
992
|
+
h: "screen",
|
|
993
|
+
className: "border-l",
|
|
994
|
+
children: /*#__PURE__*/ jsx(ScrollArea, {
|
|
995
|
+
className: "h-full",
|
|
996
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
997
|
+
className: "p-6",
|
|
998
|
+
children: [
|
|
999
|
+
t68,
|
|
1000
|
+
/*#__PURE__*/ jsx(Card, {
|
|
1001
|
+
children: /*#__PURE__*/ jsx(CardContent, {
|
|
1002
|
+
className: "p-4",
|
|
1003
|
+
children: /*#__PURE__*/ jsx("pre", {
|
|
1004
|
+
className: "overflow-x-auto text-sm",
|
|
1005
|
+
children: /*#__PURE__*/ jsx("code", {
|
|
1006
|
+
children: t69
|
|
629
1007
|
})
|
|
630
1008
|
})
|
|
631
|
-
|
|
1009
|
+
})
|
|
632
1010
|
})
|
|
633
|
-
|
|
1011
|
+
]
|
|
634
1012
|
})
|
|
635
1013
|
})
|
|
636
|
-
|
|
637
|
-
})
|
|
638
|
-
|
|
1014
|
+
})
|
|
1015
|
+
});
|
|
1016
|
+
$[108] = t69;
|
|
1017
|
+
$[109] = t70;
|
|
1018
|
+
} else t70 = $[109];
|
|
1019
|
+
let t71;
|
|
1020
|
+
if ($[110] !== t66 || $[111] !== t70) {
|
|
1021
|
+
t71 = /*#__PURE__*/ jsx(Column, {
|
|
1022
|
+
h: "screen",
|
|
1023
|
+
w: "full",
|
|
1024
|
+
className: "bg-background",
|
|
1025
|
+
children: /*#__PURE__*/ jsxs(ResizablePanelGroup, {
|
|
1026
|
+
direction: "horizontal",
|
|
1027
|
+
children: [
|
|
1028
|
+
t66,
|
|
1029
|
+
t67,
|
|
1030
|
+
t70
|
|
1031
|
+
]
|
|
1032
|
+
})
|
|
1033
|
+
});
|
|
1034
|
+
$[110] = t66;
|
|
1035
|
+
$[111] = t70;
|
|
1036
|
+
$[112] = t71;
|
|
1037
|
+
} else t71 = $[112];
|
|
1038
|
+
return t71;
|
|
1039
|
+
}
|
|
1040
|
+
function _temp(e) {
|
|
1041
|
+
e.preventDefault();
|
|
1042
|
+
alert("Form submitted! Check the JSON preview.");
|
|
639
1043
|
}
|
|
640
1044
|
export { FormBuilderExample };
|