@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
|
@@ -27,467 +27,1022 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
FormStateViewer: ()=>FormStateViewer
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
30
31
|
const external_react_namespaceObject = require("react");
|
|
31
32
|
const badge_cjs_namespaceObject = require("../ui/badge.cjs");
|
|
32
33
|
const card_cjs_namespaceObject = require("../ui/card.cjs");
|
|
33
34
|
const tabs_cjs_namespaceObject = require("../ui/tabs.cjs");
|
|
34
35
|
const scroll_area_cjs_namespaceObject = require("../ui/scroll-area.cjs");
|
|
35
36
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
36
|
-
function FormStateViewer(
|
|
37
|
-
const
|
|
37
|
+
function FormStateViewer(t0) {
|
|
38
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(192);
|
|
39
|
+
const { form, title: t1, className: t2, compact: t3 } = t0;
|
|
40
|
+
const title = void 0 === t1 ? "Form State" : t1;
|
|
41
|
+
const className = void 0 === t2 ? "" : t2;
|
|
42
|
+
const compact = void 0 === t3 ? false : t3;
|
|
43
|
+
const [activeTab, setActiveTab] = (0, external_react_namespaceObject.useState)("values");
|
|
38
44
|
const { formState, watch } = form;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
45
|
+
let T0;
|
|
46
|
+
let T1;
|
|
47
|
+
let T2;
|
|
48
|
+
let T3;
|
|
49
|
+
let stats;
|
|
50
|
+
let t10;
|
|
51
|
+
let t11;
|
|
52
|
+
let t12;
|
|
53
|
+
let t13;
|
|
54
|
+
let t14;
|
|
55
|
+
let t15;
|
|
56
|
+
let t16;
|
|
57
|
+
let t17;
|
|
58
|
+
let t4;
|
|
59
|
+
let t5;
|
|
60
|
+
let t6;
|
|
61
|
+
let t7;
|
|
62
|
+
let t8;
|
|
63
|
+
let t9;
|
|
64
|
+
if ($[0] !== activeTab || $[1] !== className || $[2] !== compact || $[3] !== formState.dirtyFields || $[4] !== formState.errors || $[5] !== formState.isDirty || $[6] !== formState.isSubmitting || $[7] !== formState.isValid || $[8] !== formState.isValidating || $[9] !== formState.submitCount || $[10] !== formState.touchedFields || $[11] !== title || $[12] !== watch) {
|
|
65
|
+
t17 = Symbol.for("react.early_return_sentinel");
|
|
66
|
+
bb0: {
|
|
67
|
+
const values = watch();
|
|
68
|
+
const t18 = formState.isValid;
|
|
69
|
+
const t19 = formState.isDirty;
|
|
70
|
+
const t20 = formState.isSubmitting;
|
|
71
|
+
const t21 = formState.isValidating;
|
|
72
|
+
const t22 = formState.submitCount;
|
|
73
|
+
let t23;
|
|
74
|
+
if ($[32] !== formState.errors) {
|
|
75
|
+
t23 = Object.keys(formState.errors);
|
|
76
|
+
$[32] = formState.errors;
|
|
77
|
+
$[33] = t23;
|
|
78
|
+
} else t23 = $[33];
|
|
79
|
+
const t24 = t23.length;
|
|
80
|
+
let t25;
|
|
81
|
+
if ($[34] !== formState.dirtyFields) {
|
|
82
|
+
t25 = Object.keys(formState.dirtyFields);
|
|
83
|
+
$[34] = formState.dirtyFields;
|
|
84
|
+
$[35] = t25;
|
|
85
|
+
} else t25 = $[35];
|
|
86
|
+
const t26 = t25.length;
|
|
87
|
+
let t27;
|
|
88
|
+
if ($[36] !== formState.touchedFields) {
|
|
89
|
+
t27 = Object.keys(formState.touchedFields);
|
|
90
|
+
$[36] = formState.touchedFields;
|
|
91
|
+
$[37] = t27;
|
|
92
|
+
} else t27 = $[37];
|
|
93
|
+
let t28;
|
|
94
|
+
if ($[38] !== formState.isDirty || $[39] !== formState.isSubmitting || $[40] !== formState.isValid || $[41] !== formState.isValidating || $[42] !== formState.submitCount || $[43] !== t23.length || $[44] !== t25.length || $[45] !== t27.length) {
|
|
95
|
+
t28 = {
|
|
96
|
+
isValid: t18,
|
|
97
|
+
isDirty: t19,
|
|
98
|
+
isSubmitting: t20,
|
|
99
|
+
isValidating: t21,
|
|
100
|
+
submitCount: t22,
|
|
101
|
+
errorCount: t24,
|
|
102
|
+
dirtyFieldsCount: t26,
|
|
103
|
+
touchedFieldsCount: t27.length
|
|
104
|
+
};
|
|
105
|
+
$[38] = formState.isDirty;
|
|
106
|
+
$[39] = formState.isSubmitting;
|
|
107
|
+
$[40] = formState.isValid;
|
|
108
|
+
$[41] = formState.isValidating;
|
|
109
|
+
$[42] = formState.submitCount;
|
|
110
|
+
$[43] = t23.length;
|
|
111
|
+
$[44] = t25.length;
|
|
112
|
+
$[45] = t27.length;
|
|
113
|
+
$[46] = t28;
|
|
114
|
+
} else t28 = $[46];
|
|
115
|
+
stats = t28;
|
|
116
|
+
if (compact) {
|
|
117
|
+
const t29 = `p-4 ${className}`;
|
|
118
|
+
let t30;
|
|
119
|
+
if ($[47] !== title) {
|
|
120
|
+
t30 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
121
|
+
className: "text-sm font-semibold",
|
|
122
|
+
children: title
|
|
123
|
+
});
|
|
124
|
+
$[47] = title;
|
|
125
|
+
$[48] = t30;
|
|
126
|
+
} else t30 = $[48];
|
|
127
|
+
let t31;
|
|
128
|
+
if ($[49] !== stats.isValid) {
|
|
129
|
+
t31 = stats.isValid ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
130
|
+
variant: "default",
|
|
131
|
+
className: "bg-green-600",
|
|
111
132
|
children: [
|
|
112
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
113
|
-
className: "
|
|
114
|
-
children: title
|
|
133
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
134
|
+
className: "w-3 h-3 mr-1"
|
|
115
135
|
}),
|
|
116
|
-
|
|
117
|
-
className: "flex gap-2",
|
|
118
|
-
children: [
|
|
119
|
-
stats.isValid ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
120
|
-
variant: "default",
|
|
121
|
-
className: "bg-green-600",
|
|
122
|
-
children: [
|
|
123
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
124
|
-
className: "w-3 h-3 mr-1"
|
|
125
|
-
}),
|
|
126
|
-
"Valid"
|
|
127
|
-
]
|
|
128
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
129
|
-
variant: "destructive",
|
|
130
|
-
children: [
|
|
131
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XCircle, {
|
|
132
|
-
className: "w-3 h-3 mr-1"
|
|
133
|
-
}),
|
|
134
|
-
stats.errorCount,
|
|
135
|
-
" Error",
|
|
136
|
-
1 !== stats.errorCount ? 's' : ''
|
|
137
|
-
]
|
|
138
|
-
}),
|
|
139
|
-
stats.isDirty && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
140
|
-
variant: "secondary",
|
|
141
|
-
children: [
|
|
142
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
143
|
-
className: "w-3 h-3 mr-1"
|
|
144
|
-
}),
|
|
145
|
-
stats.dirtyFieldsCount,
|
|
146
|
-
" Changed"
|
|
147
|
-
]
|
|
148
|
-
})
|
|
149
|
-
]
|
|
150
|
-
})
|
|
136
|
+
"Valid"
|
|
151
137
|
]
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
className: "grid grid-cols-4 gap-2 text-xs",
|
|
138
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
139
|
+
variant: "destructive",
|
|
155
140
|
children: [
|
|
156
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
157
|
-
className: "
|
|
158
|
-
children: [
|
|
159
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
160
|
-
className: "font-semibold text-lg",
|
|
161
|
-
children: stats.submitCount
|
|
162
|
-
}),
|
|
163
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
164
|
-
className: "text-muted-foreground",
|
|
165
|
-
children: "Submits"
|
|
166
|
-
})
|
|
167
|
-
]
|
|
168
|
-
}),
|
|
169
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
170
|
-
className: "text-center p-2 bg-muted rounded",
|
|
171
|
-
children: [
|
|
172
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
173
|
-
className: "font-semibold text-lg",
|
|
174
|
-
children: stats.errorCount
|
|
175
|
-
}),
|
|
176
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
177
|
-
className: "text-muted-foreground",
|
|
178
|
-
children: "Errors"
|
|
179
|
-
})
|
|
180
|
-
]
|
|
141
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XCircle, {
|
|
142
|
+
className: "w-3 h-3 mr-1"
|
|
181
143
|
}),
|
|
182
|
-
|
|
183
|
-
className: "text-center p-2 bg-muted rounded",
|
|
184
|
-
children: [
|
|
185
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
186
|
-
className: "font-semibold text-lg",
|
|
187
|
-
children: stats.dirtyFieldsCount
|
|
188
|
-
}),
|
|
189
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
190
|
-
className: "text-muted-foreground",
|
|
191
|
-
children: "Dirty"
|
|
192
|
-
})
|
|
193
|
-
]
|
|
194
|
-
}),
|
|
195
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
196
|
-
className: "text-center p-2 bg-muted rounded",
|
|
197
|
-
children: [
|
|
198
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
199
|
-
className: "font-semibold text-lg",
|
|
200
|
-
children: stats.touchedFieldsCount
|
|
201
|
-
}),
|
|
202
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
203
|
-
className: "text-muted-foreground",
|
|
204
|
-
children: "Touched"
|
|
205
|
-
})
|
|
206
|
-
]
|
|
207
|
-
})
|
|
144
|
+
"Invalid"
|
|
208
145
|
]
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsList, {
|
|
218
|
-
className: "w-full justify-start rounded-none border-b px-4",
|
|
146
|
+
});
|
|
147
|
+
$[49] = stats.isValid;
|
|
148
|
+
$[50] = t31;
|
|
149
|
+
} else t31 = $[50];
|
|
150
|
+
let t32;
|
|
151
|
+
if ($[51] !== stats.isDirty) {
|
|
152
|
+
t32 = stats.isDirty && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
153
|
+
variant: "secondary",
|
|
219
154
|
children: [
|
|
220
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
221
|
-
|
|
222
|
-
className: "gap-2",
|
|
223
|
-
children: [
|
|
224
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Database, {
|
|
225
|
-
className: "w-4 h-4"
|
|
226
|
-
}),
|
|
227
|
-
"Values"
|
|
228
|
-
]
|
|
229
|
-
}),
|
|
230
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
231
|
-
value: "errors",
|
|
232
|
-
className: "gap-2",
|
|
233
|
-
children: [
|
|
234
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.AlertCircle, {
|
|
235
|
-
className: "w-4 h-4"
|
|
236
|
-
}),
|
|
237
|
-
"Errors",
|
|
238
|
-
stats.errorCount > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
239
|
-
variant: "destructive",
|
|
240
|
-
className: "ml-1 h-5",
|
|
241
|
-
children: stats.errorCount
|
|
242
|
-
})
|
|
243
|
-
]
|
|
244
|
-
}),
|
|
245
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
246
|
-
value: "state",
|
|
247
|
-
className: "gap-2",
|
|
248
|
-
children: [
|
|
249
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Eye, {
|
|
250
|
-
className: "w-4 h-4"
|
|
251
|
-
}),
|
|
252
|
-
"State"
|
|
253
|
-
]
|
|
155
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
156
|
+
className: "w-3 h-3 mr-1"
|
|
254
157
|
}),
|
|
255
|
-
|
|
256
|
-
value: "fields",
|
|
257
|
-
className: "gap-2",
|
|
258
|
-
children: [
|
|
259
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
260
|
-
className: "w-4 h-4"
|
|
261
|
-
}),
|
|
262
|
-
"Fields"
|
|
263
|
-
]
|
|
264
|
-
})
|
|
158
|
+
"Dirty"
|
|
265
159
|
]
|
|
266
|
-
})
|
|
267
|
-
|
|
268
|
-
|
|
160
|
+
});
|
|
161
|
+
$[51] = stats.isDirty;
|
|
162
|
+
$[52] = t32;
|
|
163
|
+
} else t32 = $[52];
|
|
164
|
+
let t33;
|
|
165
|
+
if ($[53] !== t31 || $[54] !== t32) {
|
|
166
|
+
t33 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
167
|
+
className: "flex gap-2",
|
|
269
168
|
children: [
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
169
|
+
t31,
|
|
170
|
+
t32
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
$[53] = t31;
|
|
174
|
+
$[54] = t32;
|
|
175
|
+
$[55] = t33;
|
|
176
|
+
} else t33 = $[55];
|
|
177
|
+
let t34;
|
|
178
|
+
if ($[56] !== t30 || $[57] !== t33) {
|
|
179
|
+
t34 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
180
|
+
className: "flex items-center justify-between",
|
|
181
|
+
children: [
|
|
182
|
+
t30,
|
|
183
|
+
t33
|
|
184
|
+
]
|
|
185
|
+
});
|
|
186
|
+
$[56] = t30;
|
|
187
|
+
$[57] = t33;
|
|
188
|
+
$[58] = t34;
|
|
189
|
+
} else t34 = $[58];
|
|
190
|
+
const t35 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
191
|
+
className: "space-y-3",
|
|
192
|
+
children: [
|
|
193
|
+
t34,
|
|
194
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("pre", {
|
|
195
|
+
className: "text-xs bg-muted p-3 rounded overflow-auto max-h-40",
|
|
196
|
+
children: JSON.stringify(values, null, 2)
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
});
|
|
200
|
+
let t36;
|
|
201
|
+
if ($[59] !== t29 || $[60] !== t35) {
|
|
202
|
+
t36 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.Card, {
|
|
203
|
+
className: t29,
|
|
204
|
+
children: t35
|
|
205
|
+
});
|
|
206
|
+
$[59] = t29;
|
|
207
|
+
$[60] = t35;
|
|
208
|
+
$[61] = t36;
|
|
209
|
+
} else t36 = $[61];
|
|
210
|
+
t17 = t36;
|
|
211
|
+
break bb0;
|
|
212
|
+
}
|
|
213
|
+
T3 = card_cjs_namespaceObject.Card;
|
|
214
|
+
t15 = `${className}`;
|
|
215
|
+
let t29;
|
|
216
|
+
if ($[62] !== title) {
|
|
217
|
+
t29 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
218
|
+
className: "text-lg font-semibold",
|
|
219
|
+
children: title
|
|
220
|
+
});
|
|
221
|
+
$[62] = title;
|
|
222
|
+
$[63] = t29;
|
|
223
|
+
} else t29 = $[63];
|
|
224
|
+
let t30;
|
|
225
|
+
if ($[64] !== stats.errorCount || $[65] !== stats.isValid) {
|
|
226
|
+
t30 = stats.isValid ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
227
|
+
variant: "default",
|
|
228
|
+
className: "bg-green-600",
|
|
229
|
+
children: [
|
|
230
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
231
|
+
className: "w-3 h-3 mr-1"
|
|
232
|
+
}),
|
|
233
|
+
"Valid"
|
|
234
|
+
]
|
|
235
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
236
|
+
variant: "destructive",
|
|
237
|
+
children: [
|
|
238
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XCircle, {
|
|
239
|
+
className: "w-3 h-3 mr-1"
|
|
240
|
+
}),
|
|
241
|
+
stats.errorCount,
|
|
242
|
+
" Error",
|
|
243
|
+
1 !== stats.errorCount ? "s" : ""
|
|
244
|
+
]
|
|
245
|
+
});
|
|
246
|
+
$[64] = stats.errorCount;
|
|
247
|
+
$[65] = stats.isValid;
|
|
248
|
+
$[66] = t30;
|
|
249
|
+
} else t30 = $[66];
|
|
250
|
+
let t31;
|
|
251
|
+
if ($[67] !== stats.dirtyFieldsCount || $[68] !== stats.isDirty) {
|
|
252
|
+
t31 = stats.isDirty && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
253
|
+
variant: "secondary",
|
|
254
|
+
children: [
|
|
255
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
256
|
+
className: "w-3 h-3 mr-1"
|
|
257
|
+
}),
|
|
258
|
+
stats.dirtyFieldsCount,
|
|
259
|
+
" Changed"
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
$[67] = stats.dirtyFieldsCount;
|
|
263
|
+
$[68] = stats.isDirty;
|
|
264
|
+
$[69] = t31;
|
|
265
|
+
} else t31 = $[69];
|
|
266
|
+
let t32;
|
|
267
|
+
if ($[70] !== t30 || $[71] !== t31) {
|
|
268
|
+
t32 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
269
|
+
className: "flex gap-2",
|
|
270
|
+
children: [
|
|
271
|
+
t30,
|
|
272
|
+
t31
|
|
273
|
+
]
|
|
274
|
+
});
|
|
275
|
+
$[70] = t30;
|
|
276
|
+
$[71] = t31;
|
|
277
|
+
$[72] = t32;
|
|
278
|
+
} else t32 = $[72];
|
|
279
|
+
let t33;
|
|
280
|
+
if ($[73] !== t29 || $[74] !== t32) {
|
|
281
|
+
t33 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
282
|
+
className: "flex items-center justify-between mb-3",
|
|
283
|
+
children: [
|
|
284
|
+
t29,
|
|
285
|
+
t32
|
|
286
|
+
]
|
|
287
|
+
});
|
|
288
|
+
$[73] = t29;
|
|
289
|
+
$[74] = t32;
|
|
290
|
+
$[75] = t33;
|
|
291
|
+
} else t33 = $[75];
|
|
292
|
+
let t34;
|
|
293
|
+
if ($[76] !== stats.submitCount) {
|
|
294
|
+
t34 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
295
|
+
className: "font-semibold text-lg",
|
|
296
|
+
children: stats.submitCount
|
|
297
|
+
});
|
|
298
|
+
$[76] = stats.submitCount;
|
|
299
|
+
$[77] = t34;
|
|
300
|
+
} else t34 = $[77];
|
|
301
|
+
let t35;
|
|
302
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
303
|
+
t35 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
304
|
+
className: "text-muted-foreground",
|
|
305
|
+
children: "Submits"
|
|
306
|
+
});
|
|
307
|
+
$[78] = t35;
|
|
308
|
+
} else t35 = $[78];
|
|
309
|
+
let t36;
|
|
310
|
+
if ($[79] !== t34) {
|
|
311
|
+
t36 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
312
|
+
className: "text-center p-2 bg-muted rounded",
|
|
313
|
+
children: [
|
|
314
|
+
t34,
|
|
315
|
+
t35
|
|
316
|
+
]
|
|
317
|
+
});
|
|
318
|
+
$[79] = t34;
|
|
319
|
+
$[80] = t36;
|
|
320
|
+
} else t36 = $[80];
|
|
321
|
+
let t37;
|
|
322
|
+
if ($[81] !== stats.errorCount) {
|
|
323
|
+
t37 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
324
|
+
className: "font-semibold text-lg",
|
|
325
|
+
children: stats.errorCount
|
|
326
|
+
});
|
|
327
|
+
$[81] = stats.errorCount;
|
|
328
|
+
$[82] = t37;
|
|
329
|
+
} else t37 = $[82];
|
|
330
|
+
let t38;
|
|
331
|
+
if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
|
|
332
|
+
t38 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
333
|
+
className: "text-muted-foreground",
|
|
334
|
+
children: "Errors"
|
|
335
|
+
});
|
|
336
|
+
$[83] = t38;
|
|
337
|
+
} else t38 = $[83];
|
|
338
|
+
let t39;
|
|
339
|
+
if ($[84] !== t37) {
|
|
340
|
+
t39 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
341
|
+
className: "text-center p-2 bg-muted rounded",
|
|
342
|
+
children: [
|
|
343
|
+
t37,
|
|
344
|
+
t38
|
|
345
|
+
]
|
|
346
|
+
});
|
|
347
|
+
$[84] = t37;
|
|
348
|
+
$[85] = t39;
|
|
349
|
+
} else t39 = $[85];
|
|
350
|
+
let t40;
|
|
351
|
+
if ($[86] !== stats.dirtyFieldsCount) {
|
|
352
|
+
t40 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
353
|
+
className: "font-semibold text-lg",
|
|
354
|
+
children: stats.dirtyFieldsCount
|
|
355
|
+
});
|
|
356
|
+
$[86] = stats.dirtyFieldsCount;
|
|
357
|
+
$[87] = t40;
|
|
358
|
+
} else t40 = $[87];
|
|
359
|
+
let t41;
|
|
360
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
361
|
+
t41 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
362
|
+
className: "text-muted-foreground",
|
|
363
|
+
children: "Dirty"
|
|
364
|
+
});
|
|
365
|
+
$[88] = t41;
|
|
366
|
+
} else t41 = $[88];
|
|
367
|
+
let t42;
|
|
368
|
+
if ($[89] !== t40) {
|
|
369
|
+
t42 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
370
|
+
className: "text-center p-2 bg-muted rounded",
|
|
371
|
+
children: [
|
|
372
|
+
t40,
|
|
373
|
+
t41
|
|
374
|
+
]
|
|
375
|
+
});
|
|
376
|
+
$[89] = t40;
|
|
377
|
+
$[90] = t42;
|
|
378
|
+
} else t42 = $[90];
|
|
379
|
+
let t43;
|
|
380
|
+
if ($[91] !== stats.touchedFieldsCount) {
|
|
381
|
+
t43 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
382
|
+
className: "font-semibold text-lg",
|
|
383
|
+
children: stats.touchedFieldsCount
|
|
384
|
+
});
|
|
385
|
+
$[91] = stats.touchedFieldsCount;
|
|
386
|
+
$[92] = t43;
|
|
387
|
+
} else t43 = $[92];
|
|
388
|
+
let t44;
|
|
389
|
+
if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
|
|
390
|
+
t44 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
391
|
+
className: "text-muted-foreground",
|
|
392
|
+
children: "Touched"
|
|
393
|
+
});
|
|
394
|
+
$[93] = t44;
|
|
395
|
+
} else t44 = $[93];
|
|
396
|
+
let t45;
|
|
397
|
+
if ($[94] !== t43) {
|
|
398
|
+
t45 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
399
|
+
className: "text-center p-2 bg-muted rounded",
|
|
400
|
+
children: [
|
|
401
|
+
t43,
|
|
402
|
+
t44
|
|
403
|
+
]
|
|
404
|
+
});
|
|
405
|
+
$[94] = t43;
|
|
406
|
+
$[95] = t45;
|
|
407
|
+
} else t45 = $[95];
|
|
408
|
+
let t46;
|
|
409
|
+
if ($[96] !== t36 || $[97] !== t39 || $[98] !== t42 || $[99] !== t45) {
|
|
410
|
+
t46 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
411
|
+
className: "grid grid-cols-4 gap-2 text-xs",
|
|
412
|
+
children: [
|
|
413
|
+
t36,
|
|
414
|
+
t39,
|
|
415
|
+
t42,
|
|
416
|
+
t45
|
|
417
|
+
]
|
|
418
|
+
});
|
|
419
|
+
$[96] = t36;
|
|
420
|
+
$[97] = t39;
|
|
421
|
+
$[98] = t42;
|
|
422
|
+
$[99] = t45;
|
|
423
|
+
$[100] = t46;
|
|
424
|
+
} else t46 = $[100];
|
|
425
|
+
if ($[101] !== t33 || $[102] !== t46) {
|
|
426
|
+
t16 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
427
|
+
className: "p-4 border-b",
|
|
428
|
+
children: [
|
|
429
|
+
t33,
|
|
430
|
+
t46
|
|
431
|
+
]
|
|
432
|
+
});
|
|
433
|
+
$[101] = t33;
|
|
434
|
+
$[102] = t46;
|
|
435
|
+
$[103] = t16;
|
|
436
|
+
} else t16 = $[103];
|
|
437
|
+
T2 = tabs_cjs_namespaceObject.Tabs;
|
|
438
|
+
t11 = activeTab;
|
|
439
|
+
t12 = setActiveTab;
|
|
440
|
+
t13 = "w-full";
|
|
441
|
+
let t47;
|
|
442
|
+
if ($[104] === Symbol.for("react.memo_cache_sentinel")) {
|
|
443
|
+
t47 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
444
|
+
value: "values",
|
|
445
|
+
className: "gap-2",
|
|
446
|
+
children: [
|
|
447
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Database, {
|
|
448
|
+
className: "w-4 h-4"
|
|
449
|
+
}),
|
|
450
|
+
"Values"
|
|
451
|
+
]
|
|
452
|
+
});
|
|
453
|
+
$[104] = t47;
|
|
454
|
+
} else t47 = $[104];
|
|
455
|
+
let t48;
|
|
456
|
+
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
457
|
+
t48 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.AlertCircle, {
|
|
458
|
+
className: "w-4 h-4"
|
|
459
|
+
});
|
|
460
|
+
$[105] = t48;
|
|
461
|
+
} else t48 = $[105];
|
|
462
|
+
let t49;
|
|
463
|
+
if ($[106] !== stats.errorCount) {
|
|
464
|
+
t49 = stats.errorCount > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
465
|
+
variant: "destructive",
|
|
466
|
+
className: "ml-1 h-5",
|
|
467
|
+
children: stats.errorCount
|
|
468
|
+
});
|
|
469
|
+
$[106] = stats.errorCount;
|
|
470
|
+
$[107] = t49;
|
|
471
|
+
} else t49 = $[107];
|
|
472
|
+
let t50;
|
|
473
|
+
if ($[108] !== t49) {
|
|
474
|
+
t50 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
475
|
+
value: "errors",
|
|
476
|
+
className: "gap-2",
|
|
477
|
+
children: [
|
|
478
|
+
t48,
|
|
479
|
+
"Errors",
|
|
480
|
+
t49
|
|
481
|
+
]
|
|
482
|
+
});
|
|
483
|
+
$[108] = t49;
|
|
484
|
+
$[109] = t50;
|
|
485
|
+
} else t50 = $[109];
|
|
486
|
+
let t51;
|
|
487
|
+
if ($[110] === Symbol.for("react.memo_cache_sentinel")) {
|
|
488
|
+
t51 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
489
|
+
value: "state",
|
|
490
|
+
className: "gap-2",
|
|
491
|
+
children: [
|
|
492
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Eye, {
|
|
493
|
+
className: "w-4 h-4"
|
|
494
|
+
}),
|
|
495
|
+
"State"
|
|
496
|
+
]
|
|
497
|
+
});
|
|
498
|
+
$[110] = t51;
|
|
499
|
+
} else t51 = $[110];
|
|
500
|
+
let t52;
|
|
501
|
+
if ($[111] === Symbol.for("react.memo_cache_sentinel")) {
|
|
502
|
+
t52 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsTrigger, {
|
|
503
|
+
value: "fields",
|
|
504
|
+
className: "gap-2",
|
|
505
|
+
children: [
|
|
506
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
507
|
+
className: "w-4 h-4"
|
|
508
|
+
}),
|
|
509
|
+
"Fields"
|
|
510
|
+
]
|
|
511
|
+
});
|
|
512
|
+
$[111] = t52;
|
|
513
|
+
} else t52 = $[111];
|
|
514
|
+
if ($[112] !== t50) {
|
|
515
|
+
t14 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tabs_cjs_namespaceObject.TabsList, {
|
|
516
|
+
className: "w-full justify-start rounded-none border-b px-4",
|
|
517
|
+
children: [
|
|
518
|
+
t47,
|
|
519
|
+
t50,
|
|
520
|
+
t51,
|
|
521
|
+
t52
|
|
522
|
+
]
|
|
523
|
+
});
|
|
524
|
+
$[112] = t50;
|
|
525
|
+
$[113] = t14;
|
|
526
|
+
} else t14 = $[113];
|
|
527
|
+
T1 = scroll_area_cjs_namespaceObject.ScrollArea;
|
|
528
|
+
t10 = "h-[400px]";
|
|
529
|
+
T0 = tabs_cjs_namespaceObject.TabsContent;
|
|
530
|
+
t8 = "values";
|
|
531
|
+
t9 = "p-4 m-0";
|
|
532
|
+
t6 = "space-y-2";
|
|
533
|
+
if ($[114] === Symbol.for("react.memo_cache_sentinel")) {
|
|
534
|
+
t7 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
535
|
+
className: "text-sm text-muted-foreground mb-3",
|
|
536
|
+
children: "Current form values (updates in real-time)"
|
|
537
|
+
});
|
|
538
|
+
$[114] = t7;
|
|
539
|
+
} else t7 = $[114];
|
|
540
|
+
t4 = "text-xs bg-muted p-4 rounded overflow-auto";
|
|
541
|
+
t5 = JSON.stringify(values, null, 2);
|
|
542
|
+
}
|
|
543
|
+
$[0] = activeTab;
|
|
544
|
+
$[1] = className;
|
|
545
|
+
$[2] = compact;
|
|
546
|
+
$[3] = formState.dirtyFields;
|
|
547
|
+
$[4] = formState.errors;
|
|
548
|
+
$[5] = formState.isDirty;
|
|
549
|
+
$[6] = formState.isSubmitting;
|
|
550
|
+
$[7] = formState.isValid;
|
|
551
|
+
$[8] = formState.isValidating;
|
|
552
|
+
$[9] = formState.submitCount;
|
|
553
|
+
$[10] = formState.touchedFields;
|
|
554
|
+
$[11] = title;
|
|
555
|
+
$[12] = watch;
|
|
556
|
+
$[13] = T0;
|
|
557
|
+
$[14] = T1;
|
|
558
|
+
$[15] = T2;
|
|
559
|
+
$[16] = T3;
|
|
560
|
+
$[17] = stats;
|
|
561
|
+
$[18] = t10;
|
|
562
|
+
$[19] = t11;
|
|
563
|
+
$[20] = t12;
|
|
564
|
+
$[21] = t13;
|
|
565
|
+
$[22] = t14;
|
|
566
|
+
$[23] = t15;
|
|
567
|
+
$[24] = t16;
|
|
568
|
+
$[25] = t17;
|
|
569
|
+
$[26] = t4;
|
|
570
|
+
$[27] = t5;
|
|
571
|
+
$[28] = t6;
|
|
572
|
+
$[29] = t7;
|
|
573
|
+
$[30] = t8;
|
|
574
|
+
$[31] = t9;
|
|
575
|
+
} else {
|
|
576
|
+
T0 = $[13];
|
|
577
|
+
T1 = $[14];
|
|
578
|
+
T2 = $[15];
|
|
579
|
+
T3 = $[16];
|
|
580
|
+
stats = $[17];
|
|
581
|
+
t10 = $[18];
|
|
582
|
+
t11 = $[19];
|
|
583
|
+
t12 = $[20];
|
|
584
|
+
t13 = $[21];
|
|
585
|
+
t14 = $[22];
|
|
586
|
+
t15 = $[23];
|
|
587
|
+
t16 = $[24];
|
|
588
|
+
t17 = $[25];
|
|
589
|
+
t4 = $[26];
|
|
590
|
+
t5 = $[27];
|
|
591
|
+
t6 = $[28];
|
|
592
|
+
t7 = $[29];
|
|
593
|
+
t8 = $[30];
|
|
594
|
+
t9 = $[31];
|
|
595
|
+
}
|
|
596
|
+
if (t17 !== Symbol.for("react.early_return_sentinel")) return t17;
|
|
597
|
+
let t18;
|
|
598
|
+
if ($[115] !== t4 || $[116] !== t5) {
|
|
599
|
+
t18 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("pre", {
|
|
600
|
+
className: t4,
|
|
601
|
+
children: t5
|
|
602
|
+
});
|
|
603
|
+
$[115] = t4;
|
|
604
|
+
$[116] = t5;
|
|
605
|
+
$[117] = t18;
|
|
606
|
+
} else t18 = $[117];
|
|
607
|
+
let t19;
|
|
608
|
+
if ($[118] !== t18 || $[119] !== t6 || $[120] !== t7) {
|
|
609
|
+
t19 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
610
|
+
className: t6,
|
|
611
|
+
children: [
|
|
612
|
+
t7,
|
|
613
|
+
t18
|
|
614
|
+
]
|
|
615
|
+
});
|
|
616
|
+
$[118] = t18;
|
|
617
|
+
$[119] = t6;
|
|
618
|
+
$[120] = t7;
|
|
619
|
+
$[121] = t19;
|
|
620
|
+
} else t19 = $[121];
|
|
621
|
+
let t20;
|
|
622
|
+
if ($[122] !== T0 || $[123] !== t19 || $[124] !== t8 || $[125] !== t9) {
|
|
623
|
+
t20 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(T0, {
|
|
624
|
+
value: t8,
|
|
625
|
+
className: t9,
|
|
626
|
+
children: t19
|
|
627
|
+
});
|
|
628
|
+
$[122] = T0;
|
|
629
|
+
$[123] = t19;
|
|
630
|
+
$[124] = t8;
|
|
631
|
+
$[125] = t9;
|
|
632
|
+
$[126] = t20;
|
|
633
|
+
} else t20 = $[126];
|
|
634
|
+
let t21;
|
|
635
|
+
if ($[127] === Symbol.for("react.memo_cache_sentinel")) {
|
|
636
|
+
t21 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
637
|
+
className: "text-sm text-muted-foreground mb-3",
|
|
638
|
+
children: "Validation errors from Zod schema"
|
|
639
|
+
});
|
|
640
|
+
$[127] = t21;
|
|
641
|
+
} else t21 = $[127];
|
|
642
|
+
let t22;
|
|
643
|
+
if ($[128] !== formState.errors) {
|
|
644
|
+
t22 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tabs_cjs_namespaceObject.TabsContent, {
|
|
645
|
+
value: "errors",
|
|
646
|
+
className: "p-4 m-0",
|
|
647
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
648
|
+
className: "space-y-3",
|
|
649
|
+
children: [
|
|
650
|
+
t21,
|
|
651
|
+
0 === Object.keys(formState.errors).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
652
|
+
className: "flex items-center gap-2 p-4 bg-green-50 dark:bg-green-900/10 rounded text-green-700 dark:text-green-400",
|
|
653
|
+
children: [
|
|
654
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
655
|
+
className: "w-5 h-5"
|
|
384
656
|
}),
|
|
385
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
389
|
-
className: "space-y-3",
|
|
390
|
-
children: [
|
|
391
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
392
|
-
className: "text-sm text-muted-foreground mb-3",
|
|
393
|
-
children: "Field-level state tracking"
|
|
394
|
-
}),
|
|
395
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
396
|
-
className: "space-y-4",
|
|
397
|
-
children: [
|
|
398
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
399
|
-
children: [
|
|
400
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("h4", {
|
|
401
|
-
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
402
|
-
children: [
|
|
403
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
404
|
-
className: "w-4 h-4"
|
|
405
|
-
}),
|
|
406
|
-
"Dirty Fields (",
|
|
407
|
-
stats.dirtyFieldsCount,
|
|
408
|
-
")"
|
|
409
|
-
]
|
|
410
|
-
}),
|
|
411
|
-
0 === Object.keys(formState.dirtyFields).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
412
|
-
className: "text-sm text-muted-foreground italic p-2 bg-muted rounded",
|
|
413
|
-
children: "No fields modified yet"
|
|
414
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
415
|
-
className: "flex flex-wrap gap-2",
|
|
416
|
-
children: Object.keys(formState.dirtyFields).map((field)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
417
|
-
variant: "secondary",
|
|
418
|
-
children: field
|
|
419
|
-
}, field))
|
|
420
|
-
})
|
|
421
|
-
]
|
|
422
|
-
}),
|
|
423
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
424
|
-
children: [
|
|
425
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("h4", {
|
|
426
|
-
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
427
|
-
children: [
|
|
428
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Eye, {
|
|
429
|
-
className: "w-4 h-4"
|
|
430
|
-
}),
|
|
431
|
-
"Touched Fields (",
|
|
432
|
-
stats.touchedFieldsCount,
|
|
433
|
-
")"
|
|
434
|
-
]
|
|
435
|
-
}),
|
|
436
|
-
0 === Object.keys(formState.touchedFields).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
437
|
-
className: "text-sm text-muted-foreground italic p-2 bg-muted rounded",
|
|
438
|
-
children: "No fields touched yet"
|
|
439
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
440
|
-
className: "flex flex-wrap gap-2",
|
|
441
|
-
children: Object.keys(formState.touchedFields).map((field)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
442
|
-
variant: "outline",
|
|
443
|
-
children: field
|
|
444
|
-
}, field))
|
|
445
|
-
})
|
|
446
|
-
]
|
|
447
|
-
})
|
|
448
|
-
]
|
|
449
|
-
})
|
|
450
|
-
]
|
|
451
|
-
})
|
|
657
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
658
|
+
className: "text-sm font-medium",
|
|
659
|
+
children: "No validation errors"
|
|
452
660
|
})
|
|
453
661
|
]
|
|
662
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
663
|
+
className: "space-y-2",
|
|
664
|
+
children: Object.entries(formState.errors).map(_temp)
|
|
454
665
|
})
|
|
455
666
|
]
|
|
456
667
|
})
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
668
|
+
});
|
|
669
|
+
$[128] = formState.errors;
|
|
670
|
+
$[129] = t22;
|
|
671
|
+
} else t22 = $[129];
|
|
672
|
+
let t23;
|
|
673
|
+
if ($[130] === Symbol.for("react.memo_cache_sentinel")) {
|
|
674
|
+
t23 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
675
|
+
className: "text-sm text-muted-foreground mb-3",
|
|
676
|
+
children: "React Hook Form internal state"
|
|
677
|
+
});
|
|
678
|
+
$[130] = t23;
|
|
679
|
+
} else t23 = $[130];
|
|
680
|
+
let t24;
|
|
681
|
+
if ($[131] !== stats.isValid) {
|
|
682
|
+
t24 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
683
|
+
label: "Is Valid",
|
|
684
|
+
value: stats.isValid
|
|
685
|
+
});
|
|
686
|
+
$[131] = stats.isValid;
|
|
687
|
+
$[132] = t24;
|
|
688
|
+
} else t24 = $[132];
|
|
689
|
+
let t25;
|
|
690
|
+
if ($[133] !== stats.isDirty) {
|
|
691
|
+
t25 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
692
|
+
label: "Is Dirty",
|
|
693
|
+
value: stats.isDirty
|
|
694
|
+
});
|
|
695
|
+
$[133] = stats.isDirty;
|
|
696
|
+
$[134] = t25;
|
|
697
|
+
} else t25 = $[134];
|
|
698
|
+
let t26;
|
|
699
|
+
if ($[135] !== stats.isSubmitting) {
|
|
700
|
+
t26 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
701
|
+
label: "Is Submitting",
|
|
702
|
+
value: stats.isSubmitting
|
|
703
|
+
});
|
|
704
|
+
$[135] = stats.isSubmitting;
|
|
705
|
+
$[136] = t26;
|
|
706
|
+
} else t26 = $[136];
|
|
707
|
+
let t27;
|
|
708
|
+
if ($[137] !== stats.isValidating) {
|
|
709
|
+
t27 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
710
|
+
label: "Is Validating",
|
|
711
|
+
value: stats.isValidating
|
|
712
|
+
});
|
|
713
|
+
$[137] = stats.isValidating;
|
|
714
|
+
$[138] = t27;
|
|
715
|
+
} else t27 = $[138];
|
|
716
|
+
let t28;
|
|
717
|
+
if ($[139] !== formState.isSubmitted) {
|
|
718
|
+
t28 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
719
|
+
label: "Is Submitted",
|
|
720
|
+
value: formState.isSubmitted
|
|
721
|
+
});
|
|
722
|
+
$[139] = formState.isSubmitted;
|
|
723
|
+
$[140] = t28;
|
|
724
|
+
} else t28 = $[140];
|
|
725
|
+
let t29;
|
|
726
|
+
if ($[141] !== formState.isSubmitSuccessful) {
|
|
727
|
+
t29 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
728
|
+
label: "Is Submit Successful",
|
|
729
|
+
value: formState.isSubmitSuccessful
|
|
730
|
+
});
|
|
731
|
+
$[141] = formState.isSubmitSuccessful;
|
|
732
|
+
$[142] = t29;
|
|
733
|
+
} else t29 = $[142];
|
|
734
|
+
let t30;
|
|
735
|
+
if ($[143] !== stats.submitCount) {
|
|
736
|
+
t30 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StateItem, {
|
|
737
|
+
label: "Submit Count",
|
|
738
|
+
value: stats.submitCount,
|
|
739
|
+
type: "number"
|
|
740
|
+
});
|
|
741
|
+
$[143] = stats.submitCount;
|
|
742
|
+
$[144] = t30;
|
|
743
|
+
} else t30 = $[144];
|
|
744
|
+
let t31;
|
|
745
|
+
if ($[145] !== t24 || $[146] !== t25 || $[147] !== t26 || $[148] !== t27 || $[149] !== t28 || $[150] !== t29 || $[151] !== t30) {
|
|
746
|
+
t31 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tabs_cjs_namespaceObject.TabsContent, {
|
|
747
|
+
value: "state",
|
|
748
|
+
className: "p-4 m-0",
|
|
749
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
750
|
+
className: "space-y-3",
|
|
471
751
|
children: [
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
752
|
+
t23,
|
|
753
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
754
|
+
className: "space-y-2",
|
|
755
|
+
children: [
|
|
756
|
+
t24,
|
|
757
|
+
t25,
|
|
758
|
+
t26,
|
|
759
|
+
t27,
|
|
760
|
+
t28,
|
|
761
|
+
t29,
|
|
762
|
+
t30
|
|
763
|
+
]
|
|
764
|
+
})
|
|
476
765
|
]
|
|
477
|
-
})
|
|
478
|
-
|
|
766
|
+
})
|
|
767
|
+
});
|
|
768
|
+
$[145] = t24;
|
|
769
|
+
$[146] = t25;
|
|
770
|
+
$[147] = t26;
|
|
771
|
+
$[148] = t27;
|
|
772
|
+
$[149] = t28;
|
|
773
|
+
$[150] = t29;
|
|
774
|
+
$[151] = t30;
|
|
775
|
+
$[152] = t31;
|
|
776
|
+
} else t31 = $[152];
|
|
777
|
+
let t32;
|
|
778
|
+
if ($[153] === Symbol.for("react.memo_cache_sentinel")) {
|
|
779
|
+
t32 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
780
|
+
className: "text-sm text-muted-foreground mb-3",
|
|
781
|
+
children: "Field-level state tracking"
|
|
782
|
+
});
|
|
783
|
+
$[153] = t32;
|
|
784
|
+
} else t32 = $[153];
|
|
785
|
+
let t33;
|
|
786
|
+
if ($[154] === Symbol.for("react.memo_cache_sentinel")) {
|
|
787
|
+
t33 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileEdit, {
|
|
788
|
+
className: "w-4 h-4"
|
|
789
|
+
});
|
|
790
|
+
$[154] = t33;
|
|
791
|
+
} else t33 = $[154];
|
|
792
|
+
let t34;
|
|
793
|
+
if ($[155] !== stats.dirtyFieldsCount) {
|
|
794
|
+
t34 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("h4", {
|
|
795
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
796
|
+
children: [
|
|
797
|
+
t33,
|
|
798
|
+
"Dirty Fields (",
|
|
799
|
+
stats.dirtyFieldsCount,
|
|
800
|
+
")"
|
|
801
|
+
]
|
|
802
|
+
});
|
|
803
|
+
$[155] = stats.dirtyFieldsCount;
|
|
804
|
+
$[156] = t34;
|
|
805
|
+
} else t34 = $[156];
|
|
806
|
+
let t35;
|
|
807
|
+
if ($[157] !== formState.dirtyFields) {
|
|
808
|
+
t35 = 0 === Object.keys(formState.dirtyFields).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
809
|
+
className: "text-sm text-muted-foreground italic p-2 bg-muted rounded",
|
|
810
|
+
children: "No fields modified yet"
|
|
811
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
812
|
+
className: "flex flex-wrap gap-2",
|
|
813
|
+
children: Object.keys(formState.dirtyFields).map(_temp2)
|
|
814
|
+
});
|
|
815
|
+
$[157] = formState.dirtyFields;
|
|
816
|
+
$[158] = t35;
|
|
817
|
+
} else t35 = $[158];
|
|
818
|
+
let t36;
|
|
819
|
+
if ($[159] !== t34 || $[160] !== t35) {
|
|
820
|
+
t36 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
821
|
+
children: [
|
|
822
|
+
t34,
|
|
823
|
+
t35
|
|
824
|
+
]
|
|
825
|
+
});
|
|
826
|
+
$[159] = t34;
|
|
827
|
+
$[160] = t35;
|
|
828
|
+
$[161] = t36;
|
|
829
|
+
} else t36 = $[161];
|
|
830
|
+
let t37;
|
|
831
|
+
if ($[162] === Symbol.for("react.memo_cache_sentinel")) {
|
|
832
|
+
t37 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Eye, {
|
|
833
|
+
className: "w-4 h-4"
|
|
834
|
+
});
|
|
835
|
+
$[162] = t37;
|
|
836
|
+
} else t37 = $[162];
|
|
837
|
+
let t38;
|
|
838
|
+
if ($[163] !== stats.touchedFieldsCount) {
|
|
839
|
+
t38 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("h4", {
|
|
840
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
841
|
+
children: [
|
|
842
|
+
t37,
|
|
843
|
+
"Touched Fields (",
|
|
844
|
+
stats.touchedFieldsCount,
|
|
845
|
+
")"
|
|
846
|
+
]
|
|
847
|
+
});
|
|
848
|
+
$[163] = stats.touchedFieldsCount;
|
|
849
|
+
$[164] = t38;
|
|
850
|
+
} else t38 = $[164];
|
|
851
|
+
let t39;
|
|
852
|
+
if ($[165] !== formState.touchedFields) {
|
|
853
|
+
t39 = 0 === Object.keys(formState.touchedFields).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
854
|
+
className: "text-sm text-muted-foreground italic p-2 bg-muted rounded",
|
|
855
|
+
children: "No fields touched yet"
|
|
856
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
857
|
+
className: "flex flex-wrap gap-2",
|
|
858
|
+
children: Object.keys(formState.touchedFields).map(_temp3)
|
|
859
|
+
});
|
|
860
|
+
$[165] = formState.touchedFields;
|
|
861
|
+
$[166] = t39;
|
|
862
|
+
} else t39 = $[166];
|
|
863
|
+
let t40;
|
|
864
|
+
if ($[167] !== t38 || $[168] !== t39) {
|
|
865
|
+
t40 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
866
|
+
children: [
|
|
867
|
+
t38,
|
|
868
|
+
t39
|
|
869
|
+
]
|
|
870
|
+
});
|
|
871
|
+
$[167] = t38;
|
|
872
|
+
$[168] = t39;
|
|
873
|
+
$[169] = t40;
|
|
874
|
+
} else t40 = $[169];
|
|
875
|
+
let t41;
|
|
876
|
+
if ($[170] !== t36 || $[171] !== t40) {
|
|
877
|
+
t41 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tabs_cjs_namespaceObject.TabsContent, {
|
|
878
|
+
value: "fields",
|
|
879
|
+
className: "p-4 m-0",
|
|
880
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
881
|
+
className: "space-y-3",
|
|
479
882
|
children: [
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
883
|
+
t32,
|
|
884
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
885
|
+
className: "space-y-4",
|
|
886
|
+
children: [
|
|
887
|
+
t36,
|
|
888
|
+
t40
|
|
889
|
+
]
|
|
890
|
+
})
|
|
484
891
|
]
|
|
485
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
486
|
-
variant: "outline",
|
|
487
|
-
children: value
|
|
488
892
|
})
|
|
489
|
-
|
|
490
|
-
|
|
893
|
+
});
|
|
894
|
+
$[170] = t36;
|
|
895
|
+
$[171] = t40;
|
|
896
|
+
$[172] = t41;
|
|
897
|
+
} else t41 = $[172];
|
|
898
|
+
let t42;
|
|
899
|
+
if ($[173] !== T1 || $[174] !== t10 || $[175] !== t20 || $[176] !== t22 || $[177] !== t31 || $[178] !== t41) {
|
|
900
|
+
t42 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(T1, {
|
|
901
|
+
className: t10,
|
|
902
|
+
children: [
|
|
903
|
+
t20,
|
|
904
|
+
t22,
|
|
905
|
+
t31,
|
|
906
|
+
t41
|
|
907
|
+
]
|
|
908
|
+
});
|
|
909
|
+
$[173] = T1;
|
|
910
|
+
$[174] = t10;
|
|
911
|
+
$[175] = t20;
|
|
912
|
+
$[176] = t22;
|
|
913
|
+
$[177] = t31;
|
|
914
|
+
$[178] = t41;
|
|
915
|
+
$[179] = t42;
|
|
916
|
+
} else t42 = $[179];
|
|
917
|
+
let t43;
|
|
918
|
+
if ($[180] !== T2 || $[181] !== t11 || $[182] !== t12 || $[183] !== t13 || $[184] !== t14 || $[185] !== t42) {
|
|
919
|
+
t43 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(T2, {
|
|
920
|
+
value: t11,
|
|
921
|
+
onValueChange: t12,
|
|
922
|
+
className: t13,
|
|
923
|
+
children: [
|
|
924
|
+
t14,
|
|
925
|
+
t42
|
|
926
|
+
]
|
|
927
|
+
});
|
|
928
|
+
$[180] = T2;
|
|
929
|
+
$[181] = t11;
|
|
930
|
+
$[182] = t12;
|
|
931
|
+
$[183] = t13;
|
|
932
|
+
$[184] = t14;
|
|
933
|
+
$[185] = t42;
|
|
934
|
+
$[186] = t43;
|
|
935
|
+
} else t43 = $[186];
|
|
936
|
+
let t44;
|
|
937
|
+
if ($[187] !== T3 || $[188] !== t15 || $[189] !== t16 || $[190] !== t43) {
|
|
938
|
+
t44 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(T3, {
|
|
939
|
+
className: t15,
|
|
940
|
+
children: [
|
|
941
|
+
t16,
|
|
942
|
+
t43
|
|
943
|
+
]
|
|
944
|
+
});
|
|
945
|
+
$[187] = T3;
|
|
946
|
+
$[188] = t15;
|
|
947
|
+
$[189] = t16;
|
|
948
|
+
$[190] = t43;
|
|
949
|
+
$[191] = t44;
|
|
950
|
+
} else t44 = $[191];
|
|
951
|
+
return t44;
|
|
952
|
+
}
|
|
953
|
+
function _temp3(field_1) {
|
|
954
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
955
|
+
variant: "outline",
|
|
956
|
+
children: field_1
|
|
957
|
+
}, field_1);
|
|
958
|
+
}
|
|
959
|
+
function _temp2(field_0) {
|
|
960
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
961
|
+
variant: "secondary",
|
|
962
|
+
children: field_0
|
|
963
|
+
}, field_0);
|
|
964
|
+
}
|
|
965
|
+
function _temp(t0) {
|
|
966
|
+
const [field, error] = t0;
|
|
967
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
968
|
+
className: "p-3 bg-destructive/10 rounded border border-destructive/20",
|
|
969
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
970
|
+
className: "flex items-start gap-2",
|
|
971
|
+
children: [
|
|
972
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XCircle, {
|
|
973
|
+
className: "w-4 h-4 text-destructive mt-0.5"
|
|
974
|
+
}),
|
|
975
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
976
|
+
className: "flex-1",
|
|
977
|
+
children: [
|
|
978
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
979
|
+
className: "font-mono text-sm font-semibold",
|
|
980
|
+
children: field
|
|
981
|
+
}),
|
|
982
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
983
|
+
className: "text-sm text-muted-foreground mt-1",
|
|
984
|
+
children: error?.message || "Invalid value"
|
|
985
|
+
})
|
|
986
|
+
]
|
|
987
|
+
})
|
|
988
|
+
]
|
|
989
|
+
})
|
|
990
|
+
}, field);
|
|
991
|
+
}
|
|
992
|
+
function StateItem(t0) {
|
|
993
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(8);
|
|
994
|
+
const { label, value, type: t1 } = t0;
|
|
995
|
+
const type = void 0 === t1 ? "boolean" : t1;
|
|
996
|
+
let t2;
|
|
997
|
+
if ($[0] !== label) {
|
|
998
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
999
|
+
className: "text-sm font-medium",
|
|
1000
|
+
children: label
|
|
1001
|
+
});
|
|
1002
|
+
$[0] = label;
|
|
1003
|
+
$[1] = t2;
|
|
1004
|
+
} else t2 = $[1];
|
|
1005
|
+
let t3;
|
|
1006
|
+
if ($[2] !== type || $[3] !== value) {
|
|
1007
|
+
t3 = "boolean" === type ? value ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
1008
|
+
variant: "default",
|
|
1009
|
+
className: "bg-green-600",
|
|
1010
|
+
children: [
|
|
1011
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
1012
|
+
className: "w-3 h-3 mr-1"
|
|
1013
|
+
}),
|
|
1014
|
+
"True"
|
|
1015
|
+
]
|
|
1016
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
1017
|
+
variant: "secondary",
|
|
1018
|
+
children: [
|
|
1019
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XCircle, {
|
|
1020
|
+
className: "w-3 h-3 mr-1"
|
|
1021
|
+
}),
|
|
1022
|
+
"False"
|
|
1023
|
+
]
|
|
1024
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
1025
|
+
variant: "outline",
|
|
1026
|
+
children: value
|
|
1027
|
+
});
|
|
1028
|
+
$[2] = type;
|
|
1029
|
+
$[3] = value;
|
|
1030
|
+
$[4] = t3;
|
|
1031
|
+
} else t3 = $[4];
|
|
1032
|
+
let t4;
|
|
1033
|
+
if ($[5] !== t2 || $[6] !== t3) {
|
|
1034
|
+
t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
1035
|
+
className: "flex items-center justify-between p-2 bg-muted rounded",
|
|
1036
|
+
children: [
|
|
1037
|
+
t2,
|
|
1038
|
+
t3
|
|
1039
|
+
]
|
|
1040
|
+
});
|
|
1041
|
+
$[5] = t2;
|
|
1042
|
+
$[6] = t3;
|
|
1043
|
+
$[7] = t4;
|
|
1044
|
+
} else t4 = $[7];
|
|
1045
|
+
return t4;
|
|
491
1046
|
}
|
|
492
1047
|
exports.FormStateViewer = __webpack_exports__.FormStateViewer;
|
|
493
1048
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|