@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.
Files changed (145) hide show
  1. package/dist/components/forms/field-renderer.cjs +120 -69
  2. package/dist/components/forms/field-renderer.js +120 -69
  3. package/dist/components/forms/form-designer.cjs +2352 -1488
  4. package/dist/components/forms/form-designer.js +2353 -1489
  5. package/dist/components/forms/form-examples.cjs +10 -10
  6. package/dist/components/forms/form-examples.js +10 -10
  7. package/dist/components/forms/form-state-viewer.cjs +988 -433
  8. package/dist/components/forms/form-state-viewer.js +988 -433
  9. package/dist/components/forms/metadata-form.cjs +446 -170
  10. package/dist/components/forms/metadata-form.js +446 -170
  11. package/dist/components/forms/schema-viewer.cjs +173 -80
  12. package/dist/components/forms/schema-viewer.js +173 -80
  13. package/dist/components/ui/accordion.cjs +131 -27
  14. package/dist/components/ui/accordion.js +131 -27
  15. package/dist/components/ui/alert-dialog.cjs +273 -45
  16. package/dist/components/ui/alert-dialog.js +273 -45
  17. package/dist/components/ui/alert.cjs +106 -17
  18. package/dist/components/ui/alert.js +106 -17
  19. package/dist/components/ui/avatar.cjs +100 -15
  20. package/dist/components/ui/avatar.js +100 -15
  21. package/dist/components/ui/badge.cjs +36 -6
  22. package/dist/components/ui/badge.js +36 -6
  23. package/dist/components/ui/breadcrumb.cjs +258 -52
  24. package/dist/components/ui/breadcrumb.js +258 -52
  25. package/dist/components/ui/button-group.cjs +119 -19
  26. package/dist/components/ui/button-group.js +119 -19
  27. package/dist/components/ui/button.cjs +48 -8
  28. package/dist/components/ui/button.js +48 -8
  29. package/dist/components/ui/calendar.cjs +88 -30
  30. package/dist/components/ui/calendar.js +88 -30
  31. package/dist/components/ui/card.cjs +199 -30
  32. package/dist/components/ui/card.js +199 -30
  33. package/dist/components/ui/checkbox.cjs +42 -8
  34. package/dist/components/ui/checkbox.js +42 -8
  35. package/dist/components/ui/combobox.cjs +150 -53
  36. package/dist/components/ui/combobox.js +150 -53
  37. package/dist/components/ui/command.cjs +291 -53
  38. package/dist/components/ui/command.js +291 -53
  39. package/dist/components/ui/context-menu.cjs +370 -72
  40. package/dist/components/ui/context-menu.js +370 -72
  41. package/dist/components/ui/data-table.cjs +76 -39
  42. package/dist/components/ui/data-table.js +76 -39
  43. package/dist/components/ui/date-picker.cjs +179 -68
  44. package/dist/components/ui/date-picker.js +179 -68
  45. package/dist/components/ui/datetime-picker.cjs +225 -104
  46. package/dist/components/ui/datetime-picker.js +225 -104
  47. package/dist/components/ui/dialog.cjs +290 -78
  48. package/dist/components/ui/dialog.js +290 -78
  49. package/dist/components/ui/drawer.cjs +220 -39
  50. package/dist/components/ui/drawer.js +220 -39
  51. package/dist/components/ui/dropdown-menu.cjs +376 -73
  52. package/dist/components/ui/dropdown-menu.js +376 -73
  53. package/dist/components/ui/editable-cell.cjs +106 -42
  54. package/dist/components/ui/editable-cell.js +106 -42
  55. package/dist/components/ui/empty-state.cjs +106 -33
  56. package/dist/components/ui/empty-state.js +106 -33
  57. package/dist/components/ui/file-upload.cjs +405 -187
  58. package/dist/components/ui/file-upload.d.ts +3 -1
  59. package/dist/components/ui/file-upload.js +405 -187
  60. package/dist/components/ui/hover-card.cjs +46 -7
  61. package/dist/components/ui/hover-card.js +46 -7
  62. package/dist/components/ui/index.cjs +4 -4
  63. package/dist/components/ui/input.cjs +39 -6
  64. package/dist/components/ui/input.js +39 -6
  65. package/dist/components/ui/label.cjs +34 -5
  66. package/dist/components/ui/label.js +34 -5
  67. package/dist/components/ui/layout/column.cjs +209 -41
  68. package/dist/components/ui/layout/column.js +209 -41
  69. package/dist/components/ui/layout/grid.cjs +275 -60
  70. package/dist/components/ui/layout/grid.js +275 -60
  71. package/dist/components/ui/layout/row.cjs +209 -41
  72. package/dist/components/ui/layout/row.js +209 -41
  73. package/dist/components/ui/menubar.cjs +540 -106
  74. package/dist/components/ui/menubar.js +540 -106
  75. package/dist/components/ui/multi-select.cjs +289 -135
  76. package/dist/components/ui/multi-select.js +289 -135
  77. package/dist/components/ui/navigation-menu.cjs +244 -47
  78. package/dist/components/ui/navigation-menu.js +244 -47
  79. package/dist/components/ui/pagination.cjs +301 -65
  80. package/dist/components/ui/pagination.js +301 -65
  81. package/dist/components/ui/popover.cjs +48 -9
  82. package/dist/components/ui/popover.js +48 -9
  83. package/dist/components/ui/progress.cjs +48 -8
  84. package/dist/components/ui/progress.js +48 -8
  85. package/dist/components/ui/radio-group.cjs +74 -12
  86. package/dist/components/ui/radio-group.js +74 -12
  87. package/dist/components/ui/resizable.cjs +75 -10
  88. package/dist/components/ui/resizable.js +75 -10
  89. package/dist/components/ui/scroll-area.cjs +113 -21
  90. package/dist/components/ui/scroll-area.js +113 -21
  91. package/dist/components/ui/search.cjs +280 -98
  92. package/dist/components/ui/search.js +280 -98
  93. package/dist/components/ui/select.cjs +334 -68
  94. package/dist/components/ui/select.js +334 -68
  95. package/dist/components/ui/separator.cjs +48 -7
  96. package/dist/components/ui/separator.js +48 -7
  97. package/dist/components/ui/sheet.cjs +236 -50
  98. package/dist/components/ui/sheet.js +236 -50
  99. package/dist/components/ui/skeleton.cjs +31 -5
  100. package/dist/components/ui/skeleton.js +31 -5
  101. package/dist/components/ui/slider.cjs +71 -21
  102. package/dist/components/ui/slider.js +71 -21
  103. package/dist/components/ui/sonner.cjs +43 -15
  104. package/dist/components/ui/sonner.js +43 -15
  105. package/dist/components/ui/spinner.cjs +83 -21
  106. package/dist/components/ui/spinner.js +83 -21
  107. package/dist/components/ui/stats-card.cjs +169 -60
  108. package/dist/components/ui/stats-card.js +169 -60
  109. package/dist/components/ui/stepper.cjs +126 -57
  110. package/dist/components/ui/stepper.js +126 -57
  111. package/dist/components/ui/switch.cjs +42 -8
  112. package/dist/components/ui/switch.js +42 -8
  113. package/dist/components/ui/table.cjs +267 -42
  114. package/dist/components/ui/table.js +267 -42
  115. package/dist/components/ui/tabs.cjs +100 -15
  116. package/dist/components/ui/tabs.js +100 -15
  117. package/dist/components/ui/textarea.cjs +34 -5
  118. package/dist/components/ui/textarea.js +34 -5
  119. package/dist/components/ui/toggle-group.cjs +112 -19
  120. package/dist/components/ui/toggle-group.js +112 -19
  121. package/dist/components/ui/toggle.cjs +43 -6
  122. package/dist/components/ui/toggle.js +43 -6
  123. package/dist/components/ui/tooltip.cjs +40 -6
  124. package/dist/components/ui/tooltip.js +40 -6
  125. package/dist/examples/admin-layout-example.cjs +879 -347
  126. package/dist/examples/admin-layout-example.js +879 -347
  127. package/dist/examples/app-shell-example.cjs +14 -14
  128. package/dist/examples/app-shell-example.js +14 -14
  129. package/dist/examples/dashboard-example.cjs +495 -334
  130. package/dist/examples/dashboard-example.js +495 -334
  131. package/dist/examples/data-management-example.cjs +501 -303
  132. package/dist/examples/data-management-example.js +502 -304
  133. package/dist/examples/flow-editor-layout-example.cjs +435 -231
  134. package/dist/examples/flow-editor-layout-example.js +436 -232
  135. package/dist/examples/flow-start-example.cjs +508 -251
  136. package/dist/examples/flow-start-example.js +509 -252
  137. package/dist/examples/form-builder-example.cjs +1006 -602
  138. package/dist/examples/form-builder-example.js +1007 -603
  139. package/dist/examples/new-project-example.cjs +806 -474
  140. package/dist/examples/new-project-example.js +807 -475
  141. package/dist/examples/settings-example.cjs +792 -704
  142. package/dist/examples/settings-example.js +792 -704
  143. package/dist/examples/vscode-example.cjs +731 -236
  144. package/dist/examples/vscode-example.js +731 -236
  145. package/package.json +4 -1
@@ -27,6 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  SettingsExample: ()=>SettingsExample
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 external_lucide_react_namespaceObject = require("lucide-react");
32
33
  const avatar_cjs_namespaceObject = require("../components/ui/avatar.cjs");
@@ -85,775 +86,862 @@ const navItems = [
85
86
  }
86
87
  ];
87
88
  function SettingsExample() {
88
- const [activeSection, setActiveSection] = external_react_namespaceObject.useState('profile');
89
- const [formData, setFormData] = external_react_namespaceObject.useState({
90
- firstName: 'John',
91
- lastName: 'Doe',
92
- email: 'john.doe@example.com',
93
- username: 'johndoe',
94
- bio: 'Software developer passionate about building great products.',
95
- theme: 'system',
96
- language: 'en',
97
- emailNotifications: true,
98
- pushNotifications: false,
99
- marketingEmails: false,
100
- twoFactor: false
101
- });
102
- const updateField = (field, value)=>{
103
- setFormData((prev)=>({
104
- ...prev,
105
- [field]: value
106
- }));
107
- };
108
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
109
- minH: "screen",
110
- className: "bg-background",
111
- children: [
112
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
113
- className: "border-b",
114
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
115
- h: 14,
116
- align: "center",
117
- className: "container mx-auto px-4",
118
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
119
- className: "text-lg font-semibold",
120
- children: "Settings"
121
- })
89
+ const $ = (0, compiler_runtime_namespaceObject.c)(34);
90
+ const [activeSection, setActiveSection] = external_react_namespaceObject.useState("profile");
91
+ let t0;
92
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
93
+ t0 = {
94
+ firstName: "John",
95
+ lastName: "Doe",
96
+ email: "john.doe@example.com",
97
+ username: "johndoe",
98
+ bio: "Software developer passionate about building great products.",
99
+ theme: "system",
100
+ language: "en",
101
+ emailNotifications: true,
102
+ pushNotifications: false,
103
+ marketingEmails: false,
104
+ twoFactor: false
105
+ };
106
+ $[0] = t0;
107
+ } else t0 = $[0];
108
+ const [formData, setFormData] = external_react_namespaceObject.useState(t0);
109
+ let t1;
110
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
111
+ t1 = (field, value)=>{
112
+ setFormData((prev)=>({
113
+ ...prev,
114
+ [field]: value
115
+ }));
116
+ };
117
+ $[1] = t1;
118
+ } else t1 = $[1];
119
+ const updateField = t1;
120
+ let t2;
121
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
122
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
123
+ className: "border-b",
124
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
125
+ h: 14,
126
+ align: "center",
127
+ className: "container mx-auto px-4",
128
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
129
+ className: "text-lg font-semibold",
130
+ children: "Settings"
122
131
  })
123
- }),
124
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
125
- gap: 8,
126
- flex: 1,
127
- className: "container mx-auto p-6",
132
+ })
133
+ });
134
+ $[2] = t2;
135
+ } else t2 = $[2];
136
+ let t3;
137
+ if ($[3] !== activeSection) {
138
+ t3 = navItems.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
139
+ onClick: ()=>setActiveSection(item.id),
140
+ className: (0, index_cjs_namespaceObject.cn)("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors", activeSection === item.id ? "bg-muted font-medium" : "text-muted-foreground hover:bg-muted/50 hover:text-foreground"),
128
141
  children: [
129
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("aside", {
130
- className: "w-56 shrink-0",
131
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
132
- className: "space-y-1",
133
- children: navItems.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
134
- onClick: ()=>setActiveSection(item.id),
135
- className: (0, index_cjs_namespaceObject.cn)('flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors', activeSection === item.id ? 'bg-muted font-medium' : 'text-muted-foreground hover:bg-muted/50 hover:text-foreground'),
136
- children: [
137
- item.icon,
138
- item.label
139
- ]
140
- }, item.id))
142
+ item.icon,
143
+ item.label
144
+ ]
145
+ }, item.id));
146
+ $[3] = activeSection;
147
+ $[4] = t3;
148
+ } else t3 = $[4];
149
+ let t4;
150
+ if ($[5] !== t3) {
151
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("aside", {
152
+ className: "w-56 shrink-0",
153
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
154
+ className: "space-y-1",
155
+ children: t3
156
+ })
157
+ });
158
+ $[5] = t3;
159
+ $[6] = t4;
160
+ } else t4 = $[6];
161
+ let t5;
162
+ if ($[7] !== activeSection || $[8] !== formData) {
163
+ t5 = "profile" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
164
+ children: [
165
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
166
+ children: [
167
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
168
+ className: "text-2xl font-bold",
169
+ children: "Profile"
170
+ }),
171
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
172
+ className: "text-muted-foreground",
173
+ children: "Manage your public profile information."
141
174
  })
142
- }),
143
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("main", {
144
- className: "flex-1 space-y-6",
145
- children: [
146
- 'profile' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
175
+ ]
176
+ }),
177
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
178
+ children: [
179
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
180
+ children: [
181
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
182
+ children: "Avatar"
183
+ }),
184
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
185
+ children: "Click on the avatar to upload a custom one from your files."
186
+ })
187
+ ]
188
+ }),
189
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
190
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
191
+ gap: 4,
192
+ align: "center",
147
193
  children: [
148
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
194
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(avatar_cjs_namespaceObject.Avatar, {
195
+ className: "h-20 w-20",
149
196
  children: [
150
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
151
- className: "text-2xl font-bold",
152
- children: "Profile"
197
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarImage, {
198
+ src: ""
153
199
  }),
154
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
155
- className: "text-muted-foreground",
156
- children: "Manage your public profile information."
200
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
201
+ className: "text-lg",
202
+ children: "JD"
157
203
  })
158
204
  ]
159
205
  }),
160
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
206
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
207
+ gap: 2,
161
208
  children: [
162
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
163
- children: [
164
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
165
- children: "Avatar"
166
- }),
167
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
168
- children: "Click on the avatar to upload a custom one from your files."
169
- })
170
- ]
209
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
210
+ variant: "outline",
211
+ size: "sm",
212
+ children: "Upload"
171
213
  }),
172
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
173
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
174
- gap: 4,
175
- align: "center",
176
- children: [
177
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(avatar_cjs_namespaceObject.Avatar, {
178
- className: "h-20 w-20",
179
- children: [
180
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarImage, {
181
- src: ""
182
- }),
183
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
184
- className: "text-lg",
185
- children: "JD"
186
- })
187
- ]
188
- }),
189
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
190
- gap: 2,
191
- children: [
192
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
193
- variant: "outline",
194
- size: "sm",
195
- children: "Upload"
196
- }),
197
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
198
- variant: "ghost",
199
- size: "sm",
200
- children: "Remove"
201
- })
202
- ]
203
- })
204
- ]
205
- })
214
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
215
+ variant: "ghost",
216
+ size: "sm",
217
+ children: "Remove"
206
218
  })
207
219
  ]
208
- }),
209
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
210
- children: [
211
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
212
- children: [
213
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
214
- children: "Personal Information"
215
- }),
216
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
217
- children: "Update your personal details here."
218
- })
219
- ]
220
- }),
221
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
222
- className: "space-y-4",
223
- children: [
224
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Grid, {
225
- gap: 4,
226
- cols: 2,
227
- className: "md:grid-cols-2",
228
- children: [
229
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
230
- gap: 2,
231
- children: [
232
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
233
- htmlFor: "firstName",
234
- children: "First name"
235
- }),
236
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
237
- id: "firstName",
238
- value: formData.firstName,
239
- onChange: (e)=>updateField('firstName', e.target.value)
240
- })
241
- ]
242
- }),
243
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
244
- gap: 2,
245
- children: [
246
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
247
- htmlFor: "lastName",
248
- children: "Last name"
249
- }),
250
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
251
- id: "lastName",
252
- value: formData.lastName,
253
- onChange: (e)=>updateField('lastName', e.target.value)
254
- })
255
- ]
256
- })
257
- ]
258
- }),
259
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
260
- gap: 2,
261
- children: [
262
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
263
- htmlFor: "username",
264
- children: "Username"
265
- }),
266
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
267
- id: "username",
268
- value: formData.username,
269
- onChange: (e)=>updateField('username', e.target.value)
270
- })
271
- ]
272
- }),
273
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
274
- gap: 2,
275
- children: [
276
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
277
- htmlFor: "bio",
278
- children: "Bio"
279
- }),
280
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(textarea_cjs_namespaceObject.Textarea, {
281
- id: "bio",
282
- value: formData.bio,
283
- onChange: (e)=>updateField('bio', e.target.value),
284
- rows: 3
285
- }),
286
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
287
- className: "text-xs text-muted-foreground",
288
- children: "Brief description for your profile. URLs are hyperlinked."
289
- })
290
- ]
291
- })
292
- ]
293
- }),
294
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
295
- className: "border-t px-6 py-4",
296
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
297
- children: "Save changes"
220
+ })
221
+ ]
222
+ })
223
+ })
224
+ ]
225
+ }),
226
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
227
+ children: [
228
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
229
+ children: [
230
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
231
+ children: "Personal Information"
232
+ }),
233
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
234
+ children: "Update your personal details here."
235
+ })
236
+ ]
237
+ }),
238
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
239
+ className: "space-y-4",
240
+ children: [
241
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Grid, {
242
+ gap: 4,
243
+ cols: 2,
244
+ className: "md:grid-cols-2",
245
+ children: [
246
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
247
+ gap: 2,
248
+ children: [
249
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
250
+ htmlFor: "firstName",
251
+ children: "First name"
252
+ }),
253
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
254
+ id: "firstName",
255
+ value: formData.firstName,
256
+ onChange: (e)=>updateField("firstName", e.target.value)
298
257
  })
299
- })
300
- ]
258
+ ]
259
+ }),
260
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
261
+ gap: 2,
262
+ children: [
263
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
264
+ htmlFor: "lastName",
265
+ children: "Last name"
266
+ }),
267
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
268
+ id: "lastName",
269
+ value: formData.lastName,
270
+ onChange: (e_0)=>updateField("lastName", e_0.target.value)
271
+ })
272
+ ]
273
+ })
274
+ ]
275
+ }),
276
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
277
+ gap: 2,
278
+ children: [
279
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
280
+ htmlFor: "username",
281
+ children: "Username"
282
+ }),
283
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
284
+ id: "username",
285
+ value: formData.username,
286
+ onChange: (e_1)=>updateField("username", e_1.target.value)
287
+ })
288
+ ]
289
+ }),
290
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
291
+ gap: 2,
292
+ children: [
293
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
294
+ htmlFor: "bio",
295
+ children: "Bio"
296
+ }),
297
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(textarea_cjs_namespaceObject.Textarea, {
298
+ id: "bio",
299
+ value: formData.bio,
300
+ onChange: (e_2)=>updateField("bio", e_2.target.value),
301
+ rows: 3
302
+ }),
303
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
304
+ className: "text-xs text-muted-foreground",
305
+ children: "Brief description for your profile. URLs are hyperlinked."
306
+ })
307
+ ]
308
+ })
309
+ ]
310
+ }),
311
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
312
+ className: "border-t px-6 py-4",
313
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
314
+ children: "Save changes"
315
+ })
316
+ })
317
+ ]
318
+ })
319
+ ]
320
+ });
321
+ $[7] = activeSection;
322
+ $[8] = formData;
323
+ $[9] = t5;
324
+ } else t5 = $[9];
325
+ let t6;
326
+ if ($[10] !== activeSection || $[11] !== formData) {
327
+ t6 = "account" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
328
+ children: [
329
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
330
+ children: [
331
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
332
+ className: "text-2xl font-bold",
333
+ children: "Account"
334
+ }),
335
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
336
+ className: "text-muted-foreground",
337
+ children: "Manage your account settings and email preferences."
338
+ })
339
+ ]
340
+ }),
341
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
342
+ children: [
343
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
344
+ children: [
345
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
346
+ children: "Email"
347
+ }),
348
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
349
+ children: "Your email address is used for login and notifications."
350
+ })
351
+ ]
352
+ }),
353
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
354
+ className: "space-y-4",
355
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
356
+ className: "space-y-2",
357
+ children: [
358
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
359
+ htmlFor: "email",
360
+ children: "Email address"
361
+ }),
362
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
363
+ id: "email",
364
+ type: "email",
365
+ value: formData.email,
366
+ onChange: (e_3)=>updateField("email", e_3.target.value)
301
367
  })
302
368
  ]
303
- }),
304
- 'account' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
369
+ })
370
+ }),
371
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
372
+ className: "border-t px-6 py-4",
373
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
374
+ children: "Update email"
375
+ })
376
+ })
377
+ ]
378
+ }),
379
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
380
+ className: "border-destructive",
381
+ children: [
382
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
383
+ children: [
384
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
385
+ className: "text-destructive",
386
+ children: "Danger Zone"
387
+ }),
388
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
389
+ children: "Irreversible and destructive actions."
390
+ })
391
+ ]
392
+ }),
393
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
394
+ className: "space-y-4",
395
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
396
+ justify: "between",
397
+ align: "center",
305
398
  children: [
306
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
399
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
400
+ gap: 0,
307
401
  children: [
308
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
309
- className: "text-2xl font-bold",
310
- children: "Account"
402
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
403
+ className: "font-medium",
404
+ children: "Delete account"
311
405
  }),
312
406
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
313
- className: "text-muted-foreground",
314
- children: "Manage your account settings and email preferences."
407
+ className: "text-sm text-muted-foreground",
408
+ children: "Permanently delete your account and all associated data."
315
409
  })
316
410
  ]
317
411
  }),
318
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
319
- children: [
320
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
321
- children: [
322
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
323
- children: "Email"
324
- }),
325
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
326
- children: "Your email address is used for login and notifications."
327
- })
328
- ]
329
- }),
330
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
331
- className: "space-y-4",
332
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
333
- className: "space-y-2",
412
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
413
+ variant: "destructive",
414
+ children: "Delete account"
415
+ })
416
+ ]
417
+ })
418
+ })
419
+ ]
420
+ })
421
+ ]
422
+ });
423
+ $[10] = activeSection;
424
+ $[11] = formData;
425
+ $[12] = t6;
426
+ } else t6 = $[12];
427
+ let t7;
428
+ if ($[13] !== activeSection || $[14] !== formData) {
429
+ t7 = "appearance" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
430
+ children: [
431
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
432
+ children: [
433
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
434
+ className: "text-2xl font-bold",
435
+ children: "Appearance"
436
+ }),
437
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
438
+ className: "text-muted-foreground",
439
+ children: "Customize the appearance of the application."
440
+ })
441
+ ]
442
+ }),
443
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
444
+ children: [
445
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
446
+ children: [
447
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
448
+ children: "Theme"
449
+ }),
450
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
451
+ children: "Select your preferred theme for the dashboard."
452
+ })
453
+ ]
454
+ }),
455
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
456
+ className: "space-y-4",
457
+ children: [
458
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
459
+ className: "space-y-2",
460
+ children: [
461
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
462
+ htmlFor: "theme",
463
+ children: "Theme"
464
+ }),
465
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
466
+ value: formData.theme,
467
+ onValueChange: (value_0)=>updateField("theme", value_0),
468
+ children: [
469
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
470
+ id: "theme",
471
+ className: "w-[200px]",
472
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
473
+ }),
474
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
334
475
  children: [
335
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
336
- htmlFor: "email",
337
- children: "Email address"
476
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
477
+ value: "light",
478
+ children: "Light"
479
+ }),
480
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
481
+ value: "dark",
482
+ children: "Dark"
338
483
  }),
339
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
340
- id: "email",
341
- type: "email",
342
- value: formData.email,
343
- onChange: (e)=>updateField('email', e.target.value)
484
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
485
+ value: "system",
486
+ children: "System"
344
487
  })
345
488
  ]
346
489
  })
347
- }),
348
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
349
- className: "border-t px-6 py-4",
350
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
351
- children: "Update email"
352
- })
353
- })
354
- ]
355
- }),
356
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
357
- className: "border-destructive",
358
- children: [
359
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
360
- children: [
361
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
362
- className: "text-destructive",
363
- children: "Danger Zone"
364
- }),
365
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
366
- children: "Irreversible and destructive actions."
367
- })
368
- ]
369
- }),
370
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
371
- className: "space-y-4",
372
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
373
- justify: "between",
374
- align: "center",
490
+ ]
491
+ })
492
+ ]
493
+ }),
494
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
495
+ className: "space-y-2",
496
+ children: [
497
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
498
+ htmlFor: "language",
499
+ children: "Language"
500
+ }),
501
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
502
+ value: formData.language,
503
+ onValueChange: (value_1)=>updateField("language", value_1),
504
+ children: [
505
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
506
+ id: "language",
507
+ className: "w-[200px]",
508
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
509
+ }),
510
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
375
511
  children: [
376
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
377
- gap: 0,
378
- children: [
379
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
380
- className: "font-medium",
381
- children: "Delete account"
382
- }),
383
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
384
- className: "text-sm text-muted-foreground",
385
- children: "Permanently delete your account and all associated data."
386
- })
387
- ]
512
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
513
+ value: "en",
514
+ children: "English"
515
+ }),
516
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
517
+ value: "es",
518
+ children: "Spanish"
388
519
  }),
389
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
390
- variant: "destructive",
391
- children: "Delete account"
520
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
521
+ value: "fr",
522
+ children: "French"
523
+ }),
524
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
525
+ value: "de",
526
+ children: "German"
392
527
  })
393
528
  ]
394
529
  })
395
- })
396
- ]
397
- })
398
- ]
399
- }),
400
- 'appearance' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
530
+ ]
531
+ })
532
+ ]
533
+ })
534
+ ]
535
+ })
536
+ ]
537
+ })
538
+ ]
539
+ });
540
+ $[13] = activeSection;
541
+ $[14] = formData;
542
+ $[15] = t7;
543
+ } else t7 = $[15];
544
+ let t8;
545
+ if ($[16] !== activeSection || $[17] !== formData) {
546
+ t8 = "notifications" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
547
+ children: [
548
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
549
+ children: [
550
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
551
+ className: "text-2xl font-bold",
552
+ children: "Notifications"
553
+ }),
554
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
555
+ className: "text-muted-foreground",
556
+ children: "Configure how you receive notifications."
557
+ })
558
+ ]
559
+ }),
560
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
561
+ children: [
562
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
563
+ children: [
564
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
565
+ children: "Notification Preferences"
566
+ }),
567
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
568
+ children: "Choose what notifications you want to receive."
569
+ })
570
+ ]
571
+ }),
572
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
573
+ className: "space-y-6",
574
+ children: [
575
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
576
+ justify: "between",
577
+ align: "center",
578
+ children: [
579
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
580
+ gap: 0.5,
581
+ children: [
582
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
583
+ children: "Email notifications"
584
+ }),
585
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
586
+ className: "text-sm text-muted-foreground",
587
+ children: "Receive notifications via email."
588
+ })
589
+ ]
590
+ }),
591
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
592
+ checked: formData.emailNotifications,
593
+ onCheckedChange: (checked)=>updateField("emailNotifications", checked)
594
+ })
595
+ ]
596
+ }),
597
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
598
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
599
+ justify: "between",
600
+ align: "center",
601
+ children: [
602
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
603
+ gap: 0.5,
604
+ children: [
605
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
606
+ children: "Push notifications"
607
+ }),
608
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
609
+ className: "text-sm text-muted-foreground",
610
+ children: "Receive push notifications on your device."
611
+ })
612
+ ]
613
+ }),
614
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
615
+ checked: formData.pushNotifications,
616
+ onCheckedChange: (checked_0)=>updateField("pushNotifications", checked_0)
617
+ })
618
+ ]
619
+ }),
620
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
621
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
622
+ justify: "between",
623
+ align: "center",
624
+ children: [
625
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
626
+ gap: 0.5,
627
+ children: [
628
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
629
+ children: "Marketing emails"
630
+ }),
631
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
632
+ className: "text-sm text-muted-foreground",
633
+ children: "Receive emails about new features and updates."
634
+ })
635
+ ]
636
+ }),
637
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
638
+ checked: formData.marketingEmails,
639
+ onCheckedChange: (checked_1)=>updateField("marketingEmails", checked_1)
640
+ })
641
+ ]
642
+ })
643
+ ]
644
+ })
645
+ ]
646
+ })
647
+ ]
648
+ });
649
+ $[16] = activeSection;
650
+ $[17] = formData;
651
+ $[18] = t8;
652
+ } else t8 = $[18];
653
+ let t9;
654
+ if ($[19] !== activeSection || $[20] !== formData) {
655
+ t9 = "security" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
656
+ children: [
657
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
658
+ children: [
659
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
660
+ className: "text-2xl font-bold",
661
+ children: "Security"
662
+ }),
663
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
664
+ className: "text-muted-foreground",
665
+ children: "Manage your security preferences."
666
+ })
667
+ ]
668
+ }),
669
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
670
+ children: [
671
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
672
+ children: [
673
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
674
+ children: "Password"
675
+ }),
676
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
677
+ children: "Change your password here."
678
+ })
679
+ ]
680
+ }),
681
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
682
+ className: "space-y-4",
683
+ children: [
684
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
685
+ className: "space-y-2",
686
+ children: [
687
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
688
+ htmlFor: "currentPassword",
689
+ children: "Current password"
690
+ }),
691
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
692
+ id: "currentPassword",
693
+ type: "password"
694
+ })
695
+ ]
696
+ }),
697
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
698
+ className: "space-y-2",
699
+ children: [
700
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
701
+ htmlFor: "newPassword",
702
+ children: "New password"
703
+ }),
704
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
705
+ id: "newPassword",
706
+ type: "password"
707
+ })
708
+ ]
709
+ }),
710
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
711
+ className: "space-y-2",
712
+ children: [
713
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
714
+ htmlFor: "confirmPassword",
715
+ children: "Confirm password"
716
+ }),
717
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
718
+ id: "confirmPassword",
719
+ type: "password"
720
+ })
721
+ ]
722
+ })
723
+ ]
724
+ }),
725
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
726
+ className: "border-t px-6 py-4",
727
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
728
+ children: "Update password"
729
+ })
730
+ })
731
+ ]
732
+ }),
733
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
734
+ children: [
735
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
736
+ children: [
737
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
738
+ children: "Two-Factor Authentication"
739
+ }),
740
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
741
+ children: "Add an extra layer of security to your account."
742
+ })
743
+ ]
744
+ }),
745
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
746
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
747
+ justify: "between",
748
+ align: "center",
401
749
  children: [
402
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
750
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
751
+ gap: 0.5,
403
752
  children: [
404
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
405
- className: "text-2xl font-bold",
406
- children: "Appearance"
407
- }),
408
753
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
409
- className: "text-muted-foreground",
410
- children: "Customize the appearance of the application."
411
- })
412
- ]
413
- }),
414
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
415
- children: [
416
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
417
- children: [
418
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
419
- children: "Theme"
420
- }),
421
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
422
- children: "Select your preferred theme for the dashboard."
423
- })
424
- ]
425
- }),
426
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
427
- className: "space-y-4",
428
- children: [
429
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
430
- className: "space-y-2",
431
- children: [
432
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
433
- htmlFor: "theme",
434
- children: "Theme"
435
- }),
436
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
437
- value: formData.theme,
438
- onValueChange: (value)=>updateField('theme', value),
439
- children: [
440
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
441
- id: "theme",
442
- className: "w-[200px]",
443
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
444
- }),
445
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
446
- children: [
447
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
448
- value: "light",
449
- children: "Light"
450
- }),
451
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
452
- value: "dark",
453
- children: "Dark"
454
- }),
455
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
456
- value: "system",
457
- children: "System"
458
- })
459
- ]
460
- })
461
- ]
462
- })
463
- ]
464
- }),
465
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
466
- className: "space-y-2",
467
- children: [
468
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
469
- htmlFor: "language",
470
- children: "Language"
471
- }),
472
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
473
- value: formData.language,
474
- onValueChange: (value)=>updateField('language', value),
475
- children: [
476
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
477
- id: "language",
478
- className: "w-[200px]",
479
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
480
- }),
481
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
482
- children: [
483
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
484
- value: "en",
485
- children: "English"
486
- }),
487
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
488
- value: "es",
489
- children: "Spanish"
490
- }),
491
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
492
- value: "fr",
493
- children: "French"
494
- }),
495
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
496
- value: "de",
497
- children: "German"
498
- })
499
- ]
500
- })
501
- ]
502
- })
503
- ]
504
- })
505
- ]
506
- })
507
- ]
508
- })
509
- ]
510
- }),
511
- 'notifications' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
512
- children: [
513
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
514
- children: [
515
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
516
- className: "text-2xl font-bold",
517
- children: "Notifications"
754
+ className: "font-medium",
755
+ children: "Enable 2FA"
518
756
  }),
519
757
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
520
- className: "text-muted-foreground",
521
- children: "Configure how you receive notifications."
758
+ className: "text-sm text-muted-foreground",
759
+ children: "Secure your account with two-factor authentication."
522
760
  })
523
761
  ]
524
762
  }),
525
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
526
- children: [
527
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
528
- children: [
529
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
530
- children: "Notification Preferences"
531
- }),
532
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
533
- children: "Choose what notifications you want to receive."
534
- })
535
- ]
536
- }),
537
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
538
- className: "space-y-6",
539
- children: [
540
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
541
- justify: "between",
542
- align: "center",
543
- children: [
544
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
545
- gap: 0.5,
546
- children: [
547
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
548
- children: "Email notifications"
549
- }),
550
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
551
- className: "text-sm text-muted-foreground",
552
- children: "Receive notifications via email."
553
- })
554
- ]
555
- }),
556
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
557
- checked: formData.emailNotifications,
558
- onCheckedChange: (checked)=>updateField('emailNotifications', checked)
559
- })
560
- ]
561
- }),
562
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
563
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
564
- justify: "between",
565
- align: "center",
566
- children: [
567
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
568
- gap: 0.5,
569
- children: [
570
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
571
- children: "Push notifications"
572
- }),
573
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
574
- className: "text-sm text-muted-foreground",
575
- children: "Receive push notifications on your device."
576
- })
577
- ]
578
- }),
579
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
580
- checked: formData.pushNotifications,
581
- onCheckedChange: (checked)=>updateField('pushNotifications', checked)
582
- })
583
- ]
584
- }),
585
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
586
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
587
- justify: "between",
588
- align: "center",
589
- children: [
590
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
591
- gap: 0.5,
592
- children: [
593
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
594
- children: "Marketing emails"
595
- }),
596
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
597
- className: "text-sm text-muted-foreground",
598
- children: "Receive emails about new features and updates."
599
- })
600
- ]
601
- }),
602
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
603
- checked: formData.marketingEmails,
604
- onCheckedChange: (checked)=>updateField('marketingEmails', checked)
605
- })
606
- ]
607
- })
608
- ]
609
- })
610
- ]
763
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
764
+ checked: formData.twoFactor,
765
+ onCheckedChange: (checked_2)=>updateField("twoFactor", checked_2)
611
766
  })
612
767
  ]
613
- }),
614
- 'security' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
768
+ })
769
+ })
770
+ ]
771
+ })
772
+ ]
773
+ });
774
+ $[19] = activeSection;
775
+ $[20] = formData;
776
+ $[21] = t9;
777
+ } else t9 = $[21];
778
+ let t10;
779
+ if ($[22] !== activeSection) {
780
+ t10 = "billing" === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
781
+ children: [
782
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
783
+ children: [
784
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
785
+ className: "text-2xl font-bold",
786
+ children: "Billing"
787
+ }),
788
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
789
+ className: "text-muted-foreground",
790
+ children: "Manage your billing information and subscription."
791
+ })
792
+ ]
793
+ }),
794
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
795
+ children: [
796
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
797
+ children: [
798
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
799
+ children: "Current Plan"
800
+ }),
801
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
802
+ children: "You are currently on the Pro plan."
803
+ })
804
+ ]
805
+ }),
806
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
807
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
808
+ justify: "between",
809
+ align: "center",
810
+ className: "rounded-lg border p-4",
615
811
  children: [
616
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
812
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
813
+ gap: 0,
617
814
  children: [
618
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
619
- className: "text-2xl font-bold",
620
- children: "Security"
621
- }),
622
815
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
623
- className: "text-muted-foreground",
624
- children: "Manage your security preferences."
625
- })
626
- ]
627
- }),
628
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
629
- children: [
630
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
631
- children: [
632
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
633
- children: "Password"
634
- }),
635
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
636
- children: "Change your password here."
637
- })
638
- ]
639
- }),
640
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
641
- className: "space-y-4",
642
- children: [
643
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
644
- className: "space-y-2",
645
- children: [
646
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
647
- htmlFor: "currentPassword",
648
- children: "Current password"
649
- }),
650
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
651
- id: "currentPassword",
652
- type: "password"
653
- })
654
- ]
655
- }),
656
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
657
- className: "space-y-2",
658
- children: [
659
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
660
- htmlFor: "newPassword",
661
- children: "New password"
662
- }),
663
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
664
- id: "newPassword",
665
- type: "password"
666
- })
667
- ]
668
- }),
669
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
670
- className: "space-y-2",
671
- children: [
672
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
673
- htmlFor: "confirmPassword",
674
- children: "Confirm password"
675
- }),
676
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
677
- id: "confirmPassword",
678
- type: "password"
679
- })
680
- ]
681
- })
682
- ]
816
+ className: "font-semibold",
817
+ children: "Pro Plan"
683
818
  }),
684
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
685
- className: "border-t px-6 py-4",
686
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
687
- children: "Update password"
688
- })
819
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
820
+ className: "text-sm text-muted-foreground",
821
+ children: "$29/month • Renews on Jan 1, 2025"
689
822
  })
690
823
  ]
691
824
  }),
692
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
693
- children: [
694
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
695
- children: [
696
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
697
- children: "Two-Factor Authentication"
698
- }),
699
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
700
- children: "Add an extra layer of security to your account."
701
- })
702
- ]
703
- }),
704
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
705
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
706
- justify: "between",
707
- align: "center",
708
- children: [
709
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
710
- gap: 0.5,
711
- children: [
712
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
713
- className: "font-medium",
714
- children: "Enable 2FA"
715
- }),
716
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
717
- className: "text-sm text-muted-foreground",
718
- children: "Secure your account with two-factor authentication."
719
- })
720
- ]
721
- }),
722
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
723
- checked: formData.twoFactor,
724
- onCheckedChange: (checked)=>updateField('twoFactor', checked)
725
- })
726
- ]
727
- })
728
- })
729
- ]
825
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
826
+ variant: "outline",
827
+ children: "Manage subscription"
730
828
  })
731
829
  ]
732
- }),
733
- 'billing' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
830
+ })
831
+ })
832
+ ]
833
+ }),
834
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
835
+ children: [
836
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
837
+ children: [
838
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
839
+ children: "Payment Method"
840
+ }),
841
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
842
+ children: "Update your payment information."
843
+ })
844
+ ]
845
+ }),
846
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
847
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
848
+ justify: "between",
849
+ align: "center",
850
+ className: "rounded-lg border p-4",
734
851
  children: [
735
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
852
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
853
+ gap: 3,
854
+ align: "center",
736
855
  children: [
737
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
738
- className: "text-2xl font-bold",
739
- children: "Billing"
856
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
857
+ justify: "center",
858
+ align: "center",
859
+ className: "h-10 w-14 rounded bg-muted",
860
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CreditCard, {
861
+ className: "h-5 w-5"
862
+ })
740
863
  }),
741
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
742
- className: "text-muted-foreground",
743
- children: "Manage your billing information and subscription."
744
- })
745
- ]
746
- }),
747
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
748
- children: [
749
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
864
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
865
+ gap: 0,
750
866
  children: [
751
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
752
- children: "Current Plan"
867
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
868
+ className: "font-medium",
869
+ children: "•••• •••• •••• 4242"
753
870
  }),
754
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
755
- children: "You are currently on the Pro plan."
871
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
872
+ className: "text-sm text-muted-foreground",
873
+ children: "Expires 12/25"
756
874
  })
757
875
  ]
758
- }),
759
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
760
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
761
- justify: "between",
762
- align: "center",
763
- className: "rounded-lg border p-4",
764
- children: [
765
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
766
- gap: 0,
767
- children: [
768
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
769
- className: "font-semibold",
770
- children: "Pro Plan"
771
- }),
772
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
773
- className: "text-sm text-muted-foreground",
774
- children: "$29/month • Renews on Jan 1, 2025"
775
- })
776
- ]
777
- }),
778
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
779
- variant: "outline",
780
- children: "Manage subscription"
781
- })
782
- ]
783
- })
784
876
  })
785
877
  ]
786
878
  }),
787
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
788
- children: [
789
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
790
- children: [
791
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
792
- children: "Payment Method"
793
- }),
794
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
795
- children: "Update your payment information."
796
- })
797
- ]
798
- }),
799
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
800
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
801
- justify: "between",
802
- align: "center",
803
- className: "rounded-lg border p-4",
804
- children: [
805
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
806
- gap: 3,
807
- align: "center",
808
- children: [
809
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
810
- justify: "center",
811
- align: "center",
812
- className: "h-10 w-14 rounded bg-muted",
813
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CreditCard, {
814
- className: "h-5 w-5"
815
- })
816
- }),
817
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
818
- gap: 0,
819
- children: [
820
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
821
- className: "font-medium",
822
- children: "•••• •••• •••• 4242"
823
- }),
824
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
825
- className: "text-sm text-muted-foreground",
826
- children: "Expires 12/25"
827
- })
828
- ]
829
- })
830
- ]
831
- }),
832
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
833
- variant: "ghost",
834
- size: "sm",
835
- children: "Edit"
836
- })
837
- ]
838
- })
839
- }),
840
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
841
- className: "border-t px-6 py-4",
842
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
843
- variant: "outline",
844
- children: "Add payment method"
845
- })
846
- })
847
- ]
879
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
880
+ variant: "ghost",
881
+ size: "sm",
882
+ children: "Edit"
848
883
  })
849
884
  ]
850
885
  })
851
- ]
852
- })
853
- ]
854
- })
855
- ]
856
- });
886
+ }),
887
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
888
+ className: "border-t px-6 py-4",
889
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
890
+ variant: "outline",
891
+ children: "Add payment method"
892
+ })
893
+ })
894
+ ]
895
+ })
896
+ ]
897
+ });
898
+ $[22] = activeSection;
899
+ $[23] = t10;
900
+ } else t10 = $[23];
901
+ let t11;
902
+ if ($[24] !== t10 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7 || $[28] !== t8 || $[29] !== t9) {
903
+ t11 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("main", {
904
+ className: "flex-1 space-y-6",
905
+ children: [
906
+ t5,
907
+ t6,
908
+ t7,
909
+ t8,
910
+ t9,
911
+ t10
912
+ ]
913
+ });
914
+ $[24] = t10;
915
+ $[25] = t5;
916
+ $[26] = t6;
917
+ $[27] = t7;
918
+ $[28] = t8;
919
+ $[29] = t9;
920
+ $[30] = t11;
921
+ } else t11 = $[30];
922
+ let t12;
923
+ if ($[31] !== t11 || $[32] !== t4) {
924
+ t12 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
925
+ minH: "screen",
926
+ className: "bg-background",
927
+ children: [
928
+ t2,
929
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
930
+ gap: 8,
931
+ flex: 1,
932
+ className: "container mx-auto p-6",
933
+ children: [
934
+ t4,
935
+ t11
936
+ ]
937
+ })
938
+ ]
939
+ });
940
+ $[31] = t11;
941
+ $[32] = t4;
942
+ $[33] = t12;
943
+ } else t12 = $[33];
944
+ return t12;
857
945
  }
858
946
  exports.SettingsExample = __webpack_exports__.SettingsExample;
859
947
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [