@burdenoff/microfe-housingvista 2026.703.13 → 2026.709.1

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 (27) hide show
  1. package/dist/generated/wspace-operations.js +67 -0
  2. package/dist/generated/wspace-operations.js.map +1 -0
  3. package/dist/housingvista/hooks/index.js +1 -0
  4. package/dist/housingvista/hooks/index.js.map +1 -1
  5. package/dist/housingvista/hooks/useHousingVistaAnalytics.js +57 -0
  6. package/dist/housingvista/hooks/useHousingVistaAnalytics.js.map +1 -0
  7. package/dist/housingvista/index.js +2 -0
  8. package/dist/housingvista/pages/HomePage.js +135 -132
  9. package/dist/housingvista/pages/HomePage.js.map +1 -1
  10. package/dist/housingvista/pages/analytics/AnalyticsPage.js +136 -134
  11. package/dist/housingvista/pages/analytics/AnalyticsPage.js.map +1 -1
  12. package/dist/housingvista/pages/assets/AssetManagementPage.js.map +1 -1
  13. package/dist/housingvista/pages/investments/InvestmentsPage.js.map +1 -1
  14. package/dist/housingvista/pages/properties/AddPropertyPage.js +279 -278
  15. package/dist/housingvista/pages/properties/AddPropertyPage.js.map +1 -1
  16. package/dist/housingvista/pages/properties/PropertiesPage.js +93 -86
  17. package/dist/housingvista/pages/properties/PropertiesPage.js.map +1 -1
  18. package/dist/housingvista/pages/properties/PropertyDetailPage.js +514 -511
  19. package/dist/housingvista/pages/properties/PropertyDetailPage.js.map +1 -1
  20. package/dist/housingvista/services/assistantApi.js +222 -0
  21. package/dist/housingvista/services/assistantApi.js.map +1 -0
  22. package/dist/housingvista/services/createSandboxAssistantTransport.js +120 -0
  23. package/dist/housingvista/services/createSandboxAssistantTransport.js.map +1 -0
  24. package/dist/housingvista/utils/pageContext.js +77 -0
  25. package/dist/housingvista/utils/pageContext.js.map +1 -0
  26. package/dist/index.js +5 -3
  27. package/package.json +6 -2
@@ -1,101 +1,102 @@
1
1
  import { cn as e } from "../../utils/helpers.js";
2
2
  import { PageLayout as t } from "../../components/PageLayout.js";
3
3
  import { Breadcrumbs as n } from "../../components/Breadcrumbs.js";
4
- import { useCreateProperty as r } from "../../hooks/index.js";
5
- import { notify as i } from "../../lib/toast.js";
6
- import { FileUploader as a } from "../../components/FileUploader.js";
4
+ import { useHousingVistaAnalytics as r } from "../../hooks/useHousingVistaAnalytics.js";
5
+ import { useCreateProperty as i } from "../../hooks/index.js";
6
+ import { notify as a } from "../../lib/toast.js";
7
+ import { FileUploader as o } from "../../components/FileUploader.js";
7
8
  import "../../components/index.js";
8
- import { useCallback as o, useState as s } from "react";
9
- import { Bath as c, Bed as l, Calendar as u, Car as d, CheckCircle as f, ChevronLeft as p, ChevronRight as m, DollarSign as h, Dumbbell as g, Flame as _, Home as v, MapPin as y, Maximize as b, Shield as x, TreePine as S, Upload as C, Waves as w, Wifi as T, Wind as E } from "lucide-react";
10
- import { useNavigate as D } from "react-router-dom";
11
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
12
- import { EmphasisPanel as A } from "@burdenoff/fe-libs/ui";
9
+ import { useCallback as s, useState as c } from "react";
10
+ import { Bath as l, Bed as u, Calendar as d, Car as f, CheckCircle as p, ChevronLeft as m, ChevronRight as h, DollarSign as g, Dumbbell as _, Flame as v, Home as y, MapPin as b, Maximize as x, Shield as S, TreePine as C, Upload as w, Waves as T, Wifi as E, Wind as D } from "lucide-react";
11
+ import { useNavigate as O } from "react-router-dom";
12
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
13
+ import { EmphasisPanel as j } from "@burdenoff/fe-libs/ui";
13
14
  //#region src/housingvista/pages/properties/AddPropertyPage.tsx
14
- var j = {
15
+ var M = {
15
16
  sale: "for_sale",
16
17
  rent: "for_rent",
17
18
  lease: "for_rent"
18
- }, M = {
19
+ }, N = {
19
20
  sale: "sale",
20
21
  rent: "rent",
21
22
  lease: "lease"
22
- }, N = [
23
+ }, P = [
23
24
  {
24
25
  id: "basic",
25
26
  label: "Basic Info",
26
- icon: v
27
+ icon: y
27
28
  },
28
29
  {
29
30
  id: "location",
30
31
  label: "Location",
31
- icon: y
32
+ icon: b
32
33
  },
33
34
  {
34
35
  id: "specs",
35
36
  label: "Specifications",
36
- icon: b
37
+ icon: x
37
38
  },
38
39
  {
39
40
  id: "amenities",
40
41
  label: "Amenities",
41
- icon: T
42
+ icon: E
42
43
  },
43
44
  {
44
45
  id: "pricing",
45
46
  label: "Pricing",
46
- icon: h
47
+ icon: g
47
48
  },
48
49
  {
49
50
  id: "images",
50
51
  label: "Images",
51
- icon: C
52
+ icon: w
52
53
  }
53
- ], P = [
54
+ ], F = [
54
55
  {
55
56
  id: "swimming_pool",
56
57
  label: "Swimming Pool",
57
- icon: w
58
+ icon: T
58
59
  },
59
60
  {
60
61
  id: "gym",
61
62
  label: "Gym / Fitness",
62
- icon: g
63
+ icon: _
63
64
  },
64
65
  {
65
66
  id: "parking",
66
67
  label: "Parking",
67
- icon: d
68
+ icon: f
68
69
  },
69
70
  {
70
71
  id: "garden",
71
72
  label: "Garden",
72
- icon: S
73
+ icon: C
73
74
  },
74
75
  {
75
76
  id: "security",
76
77
  label: "24/7 Security",
77
- icon: x
78
+ icon: S
78
79
  },
79
80
  {
80
81
  id: "wifi",
81
82
  label: "Wi-Fi",
82
- icon: T
83
+ icon: E
83
84
  },
84
85
  {
85
86
  id: "fireplace",
86
87
  label: "Fireplace",
87
- icon: _
88
+ icon: v
88
89
  },
89
90
  {
90
91
  id: "ac",
91
92
  label: "Central AC",
92
- icon: E
93
+ icon: D
93
94
  }
94
- ], F = [{
95
+ ], I = [{
95
96
  label: "Properties",
96
97
  href: "../"
97
- }, { label: "Add New" }], I = () => {
98
- let g = D(), { createProperty: _, loading: v } = r(), [x, S] = s(0), [w, T] = s({
98
+ }, { label: "Add New" }], L = () => {
99
+ let _ = O(), { createProperty: v, loading: y } = i(), { emitResource: S } = r(), [C, T] = c(0), [E, D] = c({
99
100
  title: "",
100
101
  description: "",
101
102
  propertyType: "residential",
@@ -120,132 +121,132 @@ var j = {
120
121
  currency: "USD",
121
122
  negotiable: !1,
122
123
  images: []
123
- }), E = o((e) => {
124
- T((t) => {
124
+ }), L = s((e) => {
125
+ D((t) => {
125
126
  let n = new Set(t.images.map((e) => e.id)), r = [...t.images, ...e.filter((e) => !n.has(e.id))];
126
127
  return {
127
128
  ...t,
128
129
  images: r
129
130
  };
130
131
  });
131
- }, []), I = o((e) => {
132
- T((t) => ({
132
+ }, []), R = s((e) => {
133
+ D((t) => ({
133
134
  ...t,
134
135
  images: t.images.filter((t) => t.id !== e)
135
136
  }));
136
- }, []), L = o((e) => {
137
+ }, []), z = s((e) => {
137
138
  let { name: t, value: n, type: r } = e.target;
138
- T((i) => ({
139
+ D((i) => ({
139
140
  ...i,
140
141
  [t]: r === "checkbox" ? e.target.checked : n
141
142
  }));
142
- }, []), R = o((e) => {
143
- T((t) => ({
143
+ }, []), B = s((e) => {
144
+ D((t) => ({
144
145
  ...t,
145
146
  amenities: t.amenities.includes(e) ? t.amenities.filter((t) => t !== e) : [...t.amenities, e]
146
147
  }));
147
- }, []), z = () => {
148
- switch (x) {
149
- case 0: return w.title.trim() !== "" && w.description.trim() !== "";
150
- case 1: return w.address.trim() !== "" && w.city.trim() !== "" && w.state.trim() !== "";
151
- case 2: return w.area.trim() !== "";
148
+ }, []), V = () => {
149
+ switch (C) {
150
+ case 0: return E.title.trim() !== "" && E.description.trim() !== "";
151
+ case 1: return E.address.trim() !== "" && E.city.trim() !== "" && E.state.trim() !== "";
152
+ case 2: return E.area.trim() !== "";
152
153
  case 3: return !0;
153
- case 4: return w.price.trim() !== "";
154
+ case 4: return E.price.trim() !== "";
154
155
  case 5: return !0;
155
156
  default: return !1;
156
157
  }
157
- }, B = async () => {
158
+ }, H = async () => {
158
159
  let e = {
159
- title: w.title.trim(),
160
- description: w.description.trim() || void 0,
161
- status: j[w.listingType] ?? "for_sale",
162
- type: w.propertyType,
163
- category: w.category,
164
- address: w.address.trim() || void 0,
165
- city: w.city.trim(),
166
- state: w.state.trim(),
167
- country: w.country || void 0,
168
- pincode: w.zipCode.trim() || void 0,
169
- neighborhood: w.neighborhood.trim() || void 0,
170
- price: Number(w.price) || 0,
171
- currency: w.currency,
172
- priceType: M[w.listingType] ?? "sale",
173
- negotiable: w.negotiable,
174
- bedrooms: Number(w.bedrooms) || 0,
175
- bathrooms: Number(w.bathrooms) || 0,
176
- totalArea: Number(w.area) || 0,
177
- floors: w.floors ? Number(w.floors) : void 0,
178
- parking: w.parking ? Number(w.parking) : void 0,
179
- furnishingStatus: w.furnishing,
180
- ageOfProperty: w.yearBuilt ? Math.max(0, (/* @__PURE__ */ new Date()).getFullYear() - Number(w.yearBuilt)) : void 0,
181
- facing: w.facing,
182
- amenities: w.amenities.map((e) => ({
183
- name: P.find((t) => t.id === e)?.label ?? e,
160
+ title: E.title.trim(),
161
+ description: E.description.trim() || void 0,
162
+ status: M[E.listingType] ?? "for_sale",
163
+ type: E.propertyType,
164
+ category: E.category,
165
+ address: E.address.trim() || void 0,
166
+ city: E.city.trim(),
167
+ state: E.state.trim(),
168
+ country: E.country || void 0,
169
+ pincode: E.zipCode.trim() || void 0,
170
+ neighborhood: E.neighborhood.trim() || void 0,
171
+ price: Number(E.price) || 0,
172
+ currency: E.currency,
173
+ priceType: N[E.listingType] ?? "sale",
174
+ negotiable: E.negotiable,
175
+ bedrooms: Number(E.bedrooms) || 0,
176
+ bathrooms: Number(E.bathrooms) || 0,
177
+ totalArea: Number(E.area) || 0,
178
+ floors: E.floors ? Number(E.floors) : void 0,
179
+ parking: E.parking ? Number(E.parking) : void 0,
180
+ furnishingStatus: E.furnishing,
181
+ ageOfProperty: E.yearBuilt ? Math.max(0, (/* @__PURE__ */ new Date()).getFullYear() - Number(E.yearBuilt)) : void 0,
182
+ facing: E.facing,
183
+ amenities: E.amenities.map((e) => ({
184
+ name: F.find((t) => t.id === e)?.label ?? e,
184
185
  category: "general",
185
186
  available: !0
186
187
  })),
187
- images: w.images.map((e, t) => ({
188
+ images: E.images.map((e, t) => ({
188
189
  url: e.url,
189
190
  isPrimary: t === 0,
190
191
  order: t
191
192
  }))
192
193
  };
193
194
  try {
194
- let t = await _(e);
195
- i.success("Property created", `${t.title} has been added to your listings.`), g(`../properties/${t.id}`);
195
+ let t = await v(e);
196
+ S("housingvista.property.created", t.id), a.success("Property created", `${t.title} has been added to your listings.`), _(`../properties/${t.id}`);
196
197
  } catch (e) {
197
- i.error("Could not create property", e.message);
198
+ a.error("Could not create property", e.message);
198
199
  }
199
- }, V = x === N.length - 1;
200
- return /* @__PURE__ */ k(t, {
200
+ }, U = C === P.length - 1;
201
+ return /* @__PURE__ */ A(t, {
201
202
  title: "Add New Property",
202
203
  description: "List your property for sale or rent",
203
204
  purpose: "Create a complete, market-ready listing in a few guided steps. Fill in the basics, location, specifications, amenities, pricing, and photos — the more detail you add, the more inquiries and stronger offers your property attracts.",
204
205
  children: [
205
- /* @__PURE__ */ O(n, { items: F }),
206
- /* @__PURE__ */ k(A, {
206
+ /* @__PURE__ */ k(n, { items: I }),
207
+ /* @__PURE__ */ A(j, {
207
208
  className: "p-5",
208
209
  children: [
209
- /* @__PURE__ */ k("div", {
210
+ /* @__PURE__ */ A("div", {
210
211
  className: "mb-3 flex items-center justify-between",
211
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("p", {
212
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("p", {
212
213
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
213
214
  children: [
214
215
  "Step ",
215
- x + 1,
216
+ C + 1,
216
217
  " of ",
217
- N.length
218
+ P.length
218
219
  ]
219
- }), /* @__PURE__ */ O("p", {
220
+ }), /* @__PURE__ */ k("p", {
220
221
  className: "text-base font-semibold text-text-primary",
221
- children: N[x].label
222
- })] }), /* @__PURE__ */ k("span", {
222
+ children: P[C].label
223
+ })] }), /* @__PURE__ */ A("span", {
223
224
  className: "text-sm font-semibold text-text-primary",
224
- children: [Math.round((x + 1) / N.length * 100), "%"]
225
+ children: [Math.round((C + 1) / P.length * 100), "%"]
225
226
  })]
226
227
  }),
227
- /* @__PURE__ */ O("div", {
228
+ /* @__PURE__ */ k("div", {
228
229
  className: "h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken",
229
- children: /* @__PURE__ */ O("div", {
230
+ children: /* @__PURE__ */ k("div", {
230
231
  className: "h-full rounded-full bg-action-primary-bg transition-[width] duration-300",
231
- style: { width: `${(x + 1) / N.length * 100}%` }
232
+ style: { width: `${(C + 1) / P.length * 100}%` }
232
233
  })
233
234
  }),
234
- /* @__PURE__ */ O("div", {
235
+ /* @__PURE__ */ k("div", {
235
236
  className: "mt-4 flex items-center gap-1 overflow-x-auto pb-1",
236
- children: N.map((t, n) => {
237
- let r = t.icon, i = n === x, a = n < x;
238
- return /* @__PURE__ */ k("button", {
239
- onClick: () => n <= x && S(n),
240
- className: e("flex shrink-0 items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", i && "bg-action-primary-bg text-action-primary-text", a && "bg-status-success-bg-subtle text-status-success-text", !i && !a && "text-text-secondary hover:bg-bg-sunken/50", n > x && "cursor-not-allowed"),
241
- disabled: n > x,
237
+ children: P.map((t, n) => {
238
+ let r = t.icon, i = n === C, a = n < C;
239
+ return /* @__PURE__ */ A("button", {
240
+ onClick: () => n <= C && T(n),
241
+ className: e("flex shrink-0 items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", i && "bg-action-primary-bg text-action-primary-text", a && "bg-status-success-bg-subtle text-status-success-text", !i && !a && "text-text-secondary hover:bg-bg-sunken/50", n > C && "cursor-not-allowed"),
242
+ disabled: n > C,
242
243
  children: [
243
- O(a ? f : r, { className: "h-4 w-4" }),
244
- /* @__PURE__ */ O("span", {
244
+ k(a ? p : r, { className: "h-4 w-4" }),
245
+ /* @__PURE__ */ k("span", {
245
246
  className: "hidden sm:inline",
246
247
  children: t.label
247
248
  }),
248
- /* @__PURE__ */ O("span", {
249
+ /* @__PURE__ */ k("span", {
249
250
  className: "sm:hidden",
250
251
  children: n + 1
251
252
  })
@@ -255,145 +256,145 @@ var j = {
255
256
  })
256
257
  ]
257
258
  }),
258
- /* @__PURE__ */ k("div", {
259
+ /* @__PURE__ */ A("div", {
259
260
  className: "max-w-3xl",
260
- children: [/* @__PURE__ */ k("div", {
261
+ children: [/* @__PURE__ */ A("div", {
261
262
  className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
262
263
  children: [
263
- x === 0 && /* @__PURE__ */ k("div", {
264
+ C === 0 && /* @__PURE__ */ A("div", {
264
265
  className: "space-y-4",
265
266
  children: [
266
- /* @__PURE__ */ O("h3", {
267
+ /* @__PURE__ */ k("h3", {
267
268
  className: "text-lg font-semibold text-text-primary",
268
269
  children: "Basic Information"
269
270
  }),
270
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
271
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
271
272
  htmlFor: "title",
272
273
  className: "mb-1.5 block text-sm font-medium text-text-primary",
273
274
  children: "Property Title *"
274
- }), /* @__PURE__ */ O("input", {
275
+ }), /* @__PURE__ */ k("input", {
275
276
  id: "title",
276
277
  name: "title",
277
- value: w.title,
278
- onChange: L,
278
+ value: E.title,
279
+ onChange: z,
279
280
  placeholder: "e.g., Luxury 3BHK Apartment in Downtown",
280
281
  required: !0,
281
282
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
282
283
  })] }),
283
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
284
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
284
285
  htmlFor: "description",
285
286
  className: "mb-1.5 block text-sm font-medium text-text-primary",
286
287
  children: "Description *"
287
- }), /* @__PURE__ */ O("textarea", {
288
+ }), /* @__PURE__ */ k("textarea", {
288
289
  id: "description",
289
290
  name: "description",
290
- value: w.description,
291
- onChange: L,
291
+ value: E.description,
292
+ onChange: z,
292
293
  placeholder: "Describe your property in detail...",
293
294
  required: !0,
294
295
  rows: 4,
295
296
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
296
297
  })] }),
297
- /* @__PURE__ */ k("div", {
298
+ /* @__PURE__ */ A("div", {
298
299
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
299
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
300
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
300
301
  htmlFor: "propertyType",
301
302
  className: "mb-1.5 block text-sm font-medium text-text-primary",
302
303
  children: "Property Type *"
303
- }), /* @__PURE__ */ k("select", {
304
+ }), /* @__PURE__ */ A("select", {
304
305
  id: "propertyType",
305
306
  name: "propertyType",
306
- value: w.propertyType,
307
- onChange: L,
307
+ value: E.propertyType,
308
+ onChange: z,
308
309
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
309
310
  children: [
310
- /* @__PURE__ */ O("option", {
311
+ /* @__PURE__ */ k("option", {
311
312
  value: "residential",
312
313
  children: "Residential"
313
314
  }),
314
- /* @__PURE__ */ O("option", {
315
+ /* @__PURE__ */ k("option", {
315
316
  value: "commercial",
316
317
  children: "Commercial"
317
318
  }),
318
- /* @__PURE__ */ O("option", {
319
+ /* @__PURE__ */ k("option", {
319
320
  value: "industrial",
320
321
  children: "Industrial"
321
322
  }),
322
- /* @__PURE__ */ O("option", {
323
+ /* @__PURE__ */ k("option", {
323
324
  value: "agricultural",
324
325
  children: "Agricultural"
325
326
  }),
326
- /* @__PURE__ */ O("option", {
327
+ /* @__PURE__ */ k("option", {
327
328
  value: "mixed_use",
328
329
  children: "Mixed Use"
329
330
  })
330
331
  ]
331
- })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
332
+ })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
332
333
  htmlFor: "category",
333
334
  className: "mb-1.5 block text-sm font-medium text-text-primary",
334
335
  children: "Category *"
335
- }), /* @__PURE__ */ k("select", {
336
+ }), /* @__PURE__ */ A("select", {
336
337
  id: "category",
337
338
  name: "category",
338
- value: w.category,
339
- onChange: L,
339
+ value: E.category,
340
+ onChange: z,
340
341
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
341
342
  children: [
342
- /* @__PURE__ */ O("option", {
343
+ /* @__PURE__ */ k("option", {
343
344
  value: "apartment",
344
345
  children: "Apartment"
345
346
  }),
346
- /* @__PURE__ */ O("option", {
347
+ /* @__PURE__ */ k("option", {
347
348
  value: "house",
348
349
  children: "House"
349
350
  }),
350
- /* @__PURE__ */ O("option", {
351
+ /* @__PURE__ */ k("option", {
351
352
  value: "villa",
352
353
  children: "Villa"
353
354
  }),
354
- /* @__PURE__ */ O("option", {
355
+ /* @__PURE__ */ k("option", {
355
356
  value: "office",
356
357
  children: "Office"
357
358
  }),
358
- /* @__PURE__ */ O("option", {
359
+ /* @__PURE__ */ k("option", {
359
360
  value: "retail",
360
361
  children: "Retail"
361
362
  }),
362
- /* @__PURE__ */ O("option", {
363
+ /* @__PURE__ */ k("option", {
363
364
  value: "warehouse",
364
365
  children: "Warehouse"
365
366
  }),
366
- /* @__PURE__ */ O("option", {
367
+ /* @__PURE__ */ k("option", {
367
368
  value: "land",
368
369
  children: "Land"
369
370
  }),
370
- /* @__PURE__ */ O("option", {
371
+ /* @__PURE__ */ k("option", {
371
372
  value: "plot",
372
373
  children: "Plot"
373
374
  })
374
375
  ]
375
376
  })] })]
376
377
  }),
377
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
378
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
378
379
  htmlFor: "listingType",
379
380
  className: "mb-1.5 block text-sm font-medium text-text-primary",
380
381
  children: "Listing Type *"
381
- }), /* @__PURE__ */ k("select", {
382
+ }), /* @__PURE__ */ A("select", {
382
383
  id: "listingType",
383
384
  name: "listingType",
384
- value: w.listingType,
385
- onChange: L,
385
+ value: E.listingType,
386
+ onChange: z,
386
387
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] sm:max-w-xs",
387
388
  children: [
388
- /* @__PURE__ */ O("option", {
389
+ /* @__PURE__ */ k("option", {
389
390
  value: "sale",
390
391
  children: "For Sale"
391
392
  }),
392
- /* @__PURE__ */ O("option", {
393
+ /* @__PURE__ */ k("option", {
393
394
  value: "rent",
394
395
  children: "For Rent"
395
396
  }),
396
- /* @__PURE__ */ O("option", {
397
+ /* @__PURE__ */ k("option", {
397
398
  value: "lease",
398
399
  children: "For Lease"
399
400
  })
@@ -401,106 +402,106 @@ var j = {
401
402
  })] })
402
403
  ]
403
404
  }),
404
- x === 1 && /* @__PURE__ */ k("div", {
405
+ C === 1 && /* @__PURE__ */ A("div", {
405
406
  className: "space-y-4",
406
407
  children: [
407
- /* @__PURE__ */ k("h3", {
408
+ /* @__PURE__ */ A("h3", {
408
409
  className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
409
- children: [/* @__PURE__ */ O(y, { className: "h-5 w-5" }), "Location Details"]
410
+ children: [/* @__PURE__ */ k(b, { className: "h-5 w-5" }), "Location Details"]
410
411
  }),
411
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
412
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
412
413
  htmlFor: "address",
413
414
  className: "mb-1.5 block text-sm font-medium text-text-primary",
414
415
  children: "Street Address *"
415
- }), /* @__PURE__ */ O("input", {
416
+ }), /* @__PURE__ */ k("input", {
416
417
  id: "address",
417
418
  name: "address",
418
- value: w.address,
419
- onChange: L,
419
+ value: E.address,
420
+ onChange: z,
420
421
  placeholder: "e.g., 123 Main Street, Unit 2504",
421
422
  required: !0,
422
423
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
423
424
  })] }),
424
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
425
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
425
426
  htmlFor: "neighborhood",
426
427
  className: "mb-1.5 block text-sm font-medium text-text-primary",
427
428
  children: "Neighborhood"
428
- }), /* @__PURE__ */ O("input", {
429
+ }), /* @__PURE__ */ k("input", {
429
430
  id: "neighborhood",
430
431
  name: "neighborhood",
431
- value: w.neighborhood,
432
- onChange: L,
432
+ value: E.neighborhood,
433
+ onChange: z,
433
434
  placeholder: "e.g., Midtown",
434
435
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
435
436
  })] }),
436
- /* @__PURE__ */ k("div", {
437
+ /* @__PURE__ */ A("div", {
437
438
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
438
439
  children: [
439
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
440
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
440
441
  htmlFor: "city",
441
442
  className: "mb-1.5 block text-sm font-medium text-text-primary",
442
443
  children: "City *"
443
- }), /* @__PURE__ */ O("input", {
444
+ }), /* @__PURE__ */ k("input", {
444
445
  id: "city",
445
446
  name: "city",
446
- value: w.city,
447
- onChange: L,
447
+ value: E.city,
448
+ onChange: z,
448
449
  placeholder: "City",
449
450
  required: !0,
450
451
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
451
452
  })] }),
452
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
453
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
453
454
  htmlFor: "state",
454
455
  className: "mb-1.5 block text-sm font-medium text-text-primary",
455
456
  children: "State *"
456
- }), /* @__PURE__ */ O("input", {
457
+ }), /* @__PURE__ */ k("input", {
457
458
  id: "state",
458
459
  name: "state",
459
- value: w.state,
460
- onChange: L,
460
+ value: E.state,
461
+ onChange: z,
461
462
  placeholder: "State",
462
463
  required: !0,
463
464
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
464
465
  })] }),
465
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
466
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
466
467
  htmlFor: "zipCode",
467
468
  className: "mb-1.5 block text-sm font-medium text-text-primary",
468
469
  children: "ZIP Code *"
469
- }), /* @__PURE__ */ O("input", {
470
+ }), /* @__PURE__ */ k("input", {
470
471
  id: "zipCode",
471
472
  name: "zipCode",
472
- value: w.zipCode,
473
- onChange: L,
473
+ value: E.zipCode,
474
+ onChange: z,
474
475
  placeholder: "ZIP Code",
475
476
  required: !0,
476
477
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
477
478
  })] })
478
479
  ]
479
480
  }),
480
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
481
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
481
482
  htmlFor: "country",
482
483
  className: "mb-1.5 block text-sm font-medium text-text-primary",
483
484
  children: "Country"
484
- }), /* @__PURE__ */ k("select", {
485
+ }), /* @__PURE__ */ A("select", {
485
486
  id: "country",
486
487
  name: "country",
487
- value: w.country,
488
- onChange: L,
488
+ value: E.country,
489
+ onChange: z,
489
490
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] sm:max-w-xs",
490
491
  children: [
491
- /* @__PURE__ */ O("option", {
492
+ /* @__PURE__ */ k("option", {
492
493
  value: "USA",
493
494
  children: "United States"
494
495
  }),
495
- /* @__PURE__ */ O("option", {
496
+ /* @__PURE__ */ k("option", {
496
497
  value: "Canada",
497
498
  children: "Canada"
498
499
  }),
499
- /* @__PURE__ */ O("option", {
500
+ /* @__PURE__ */ k("option", {
500
501
  value: "UK",
501
502
  children: "United Kingdom"
502
503
  }),
503
- /* @__PURE__ */ O("option", {
504
+ /* @__PURE__ */ k("option", {
504
505
  value: "India",
505
506
  children: "India"
506
507
  })
@@ -508,152 +509,152 @@ var j = {
508
509
  })] })
509
510
  ]
510
511
  }),
511
- x === 2 && /* @__PURE__ */ k("div", {
512
+ C === 2 && /* @__PURE__ */ A("div", {
512
513
  className: "space-y-4",
513
514
  children: [
514
- /* @__PURE__ */ O("h3", {
515
+ /* @__PURE__ */ k("h3", {
515
516
  className: "text-lg font-semibold text-text-primary",
516
517
  children: "Property Specifications"
517
518
  }),
518
- /* @__PURE__ */ k("div", {
519
+ /* @__PURE__ */ A("div", {
519
520
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
520
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
521
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
521
522
  htmlFor: "area",
522
523
  className: "mb-1.5 flex items-center gap-1.5 text-sm font-medium text-text-primary",
523
- children: [/* @__PURE__ */ O(b, { className: "h-4 w-4" }), "Total Area (sq ft) *"]
524
- }), /* @__PURE__ */ O("input", {
524
+ children: [/* @__PURE__ */ k(x, { className: "h-4 w-4" }), "Total Area (sq ft) *"]
525
+ }), /* @__PURE__ */ k("input", {
525
526
  id: "area",
526
527
  name: "area",
527
528
  type: "number",
528
- value: w.area,
529
- onChange: L,
529
+ value: E.area,
530
+ onChange: z,
530
531
  placeholder: "Enter area",
531
532
  required: !0,
532
533
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
533
- })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
534
+ })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
534
535
  htmlFor: "yearBuilt",
535
536
  className: "mb-1.5 flex items-center gap-1.5 text-sm font-medium text-text-primary",
536
- children: [/* @__PURE__ */ O(u, { className: "h-4 w-4" }), "Year Built"]
537
- }), /* @__PURE__ */ O("input", {
537
+ children: [/* @__PURE__ */ k(d, { className: "h-4 w-4" }), "Year Built"]
538
+ }), /* @__PURE__ */ k("input", {
538
539
  id: "yearBuilt",
539
540
  name: "yearBuilt",
540
541
  type: "number",
541
- value: w.yearBuilt,
542
- onChange: L,
542
+ value: E.yearBuilt,
543
+ onChange: z,
543
544
  placeholder: "YYYY",
544
545
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
545
546
  })] })]
546
547
  }),
547
- /* @__PURE__ */ k("div", {
548
+ /* @__PURE__ */ A("div", {
548
549
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
549
550
  children: [
550
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
551
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
551
552
  htmlFor: "bedrooms",
552
553
  className: "mb-1.5 flex items-center gap-1.5 text-sm font-medium text-text-primary",
553
- children: [/* @__PURE__ */ O(l, { className: "h-4 w-4" }), "Bedrooms"]
554
- }), /* @__PURE__ */ O("input", {
554
+ children: [/* @__PURE__ */ k(u, { className: "h-4 w-4" }), "Bedrooms"]
555
+ }), /* @__PURE__ */ k("input", {
555
556
  id: "bedrooms",
556
557
  name: "bedrooms",
557
558
  type: "number",
558
- value: w.bedrooms,
559
- onChange: L,
559
+ value: E.bedrooms,
560
+ onChange: z,
560
561
  placeholder: "0",
561
562
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
562
563
  })] }),
563
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
564
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
564
565
  htmlFor: "bathrooms",
565
566
  className: "mb-1.5 flex items-center gap-1.5 text-sm font-medium text-text-primary",
566
- children: [/* @__PURE__ */ O(c, { className: "h-4 w-4" }), "Bathrooms"]
567
- }), /* @__PURE__ */ O("input", {
567
+ children: [/* @__PURE__ */ k(l, { className: "h-4 w-4" }), "Bathrooms"]
568
+ }), /* @__PURE__ */ k("input", {
568
569
  id: "bathrooms",
569
570
  name: "bathrooms",
570
571
  type: "number",
571
- value: w.bathrooms,
572
- onChange: L,
572
+ value: E.bathrooms,
573
+ onChange: z,
573
574
  placeholder: "0",
574
575
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
575
576
  })] }),
576
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
577
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
577
578
  htmlFor: "parking",
578
579
  className: "mb-1.5 flex items-center gap-1.5 text-sm font-medium text-text-primary",
579
- children: [/* @__PURE__ */ O(d, { className: "h-4 w-4" }), "Parking Spots"]
580
- }), /* @__PURE__ */ O("input", {
580
+ children: [/* @__PURE__ */ k(f, { className: "h-4 w-4" }), "Parking Spots"]
581
+ }), /* @__PURE__ */ k("input", {
581
582
  id: "parking",
582
583
  name: "parking",
583
584
  type: "number",
584
- value: w.parking,
585
- onChange: L,
585
+ value: E.parking,
586
+ onChange: z,
586
587
  placeholder: "0",
587
588
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
588
589
  })] })
589
590
  ]
590
591
  }),
591
- /* @__PURE__ */ k("div", {
592
+ /* @__PURE__ */ A("div", {
592
593
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
593
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
594
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
594
595
  htmlFor: "furnishing",
595
596
  className: "mb-1.5 block text-sm font-medium text-text-primary",
596
597
  children: "Furnishing Status"
597
- }), /* @__PURE__ */ k("select", {
598
+ }), /* @__PURE__ */ A("select", {
598
599
  id: "furnishing",
599
600
  name: "furnishing",
600
- value: w.furnishing,
601
- onChange: L,
601
+ value: E.furnishing,
602
+ onChange: z,
602
603
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
603
604
  children: [
604
- /* @__PURE__ */ O("option", {
605
+ /* @__PURE__ */ k("option", {
605
606
  value: "unfurnished",
606
607
  children: "Unfurnished"
607
608
  }),
608
- /* @__PURE__ */ O("option", {
609
+ /* @__PURE__ */ k("option", {
609
610
  value: "semi_furnished",
610
611
  children: "Semi Furnished"
611
612
  }),
612
- /* @__PURE__ */ O("option", {
613
+ /* @__PURE__ */ k("option", {
613
614
  value: "furnished",
614
615
  children: "Furnished"
615
616
  })
616
617
  ]
617
- })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
618
+ })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
618
619
  htmlFor: "facing",
619
620
  className: "mb-1.5 block text-sm font-medium text-text-primary",
620
621
  children: "Facing Direction"
621
- }), /* @__PURE__ */ k("select", {
622
+ }), /* @__PURE__ */ A("select", {
622
623
  id: "facing",
623
624
  name: "facing",
624
- value: w.facing,
625
- onChange: L,
625
+ value: E.facing,
626
+ onChange: z,
626
627
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
627
628
  children: [
628
- /* @__PURE__ */ O("option", {
629
+ /* @__PURE__ */ k("option", {
629
630
  value: "North",
630
631
  children: "North"
631
632
  }),
632
- /* @__PURE__ */ O("option", {
633
+ /* @__PURE__ */ k("option", {
633
634
  value: "South",
634
635
  children: "South"
635
636
  }),
636
- /* @__PURE__ */ O("option", {
637
+ /* @__PURE__ */ k("option", {
637
638
  value: "East",
638
639
  children: "East"
639
640
  }),
640
- /* @__PURE__ */ O("option", {
641
+ /* @__PURE__ */ k("option", {
641
642
  value: "West",
642
643
  children: "West"
643
644
  }),
644
- /* @__PURE__ */ O("option", {
645
+ /* @__PURE__ */ k("option", {
645
646
  value: "Northeast",
646
647
  children: "Northeast"
647
648
  }),
648
- /* @__PURE__ */ O("option", {
649
+ /* @__PURE__ */ k("option", {
649
650
  value: "Northwest",
650
651
  children: "Northwest"
651
652
  }),
652
- /* @__PURE__ */ O("option", {
653
+ /* @__PURE__ */ k("option", {
653
654
  value: "Southeast",
654
655
  children: "Southeast"
655
656
  }),
656
- /* @__PURE__ */ O("option", {
657
+ /* @__PURE__ */ k("option", {
657
658
  value: "Southwest",
658
659
  children: "Southwest"
659
660
  })
@@ -662,97 +663,97 @@ var j = {
662
663
  })
663
664
  ]
664
665
  }),
665
- x === 3 && /* @__PURE__ */ k("div", {
666
+ C === 3 && /* @__PURE__ */ A("div", {
666
667
  className: "space-y-4",
667
668
  children: [
668
- /* @__PURE__ */ O("h3", {
669
+ /* @__PURE__ */ k("h3", {
669
670
  className: "text-lg font-semibold text-text-primary",
670
671
  children: "Property Amenities"
671
672
  }),
672
- /* @__PURE__ */ O("p", {
673
+ /* @__PURE__ */ k("p", {
673
674
  className: "text-sm text-text-secondary",
674
675
  children: "Select all amenities available at this property."
675
676
  }),
676
- /* @__PURE__ */ O("div", {
677
+ /* @__PURE__ */ k("div", {
677
678
  className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
678
- children: P.map((t) => {
679
- let n = t.icon, r = w.amenities.includes(t.id);
680
- return /* @__PURE__ */ k("button", {
679
+ children: F.map((t) => {
680
+ let n = t.icon, r = E.amenities.includes(t.id);
681
+ return /* @__PURE__ */ A("button", {
681
682
  type: "button",
682
- onClick: () => R(t.id),
683
+ onClick: () => B(t.id),
683
684
  className: e("flex flex-col items-center gap-2 rounded-lg border p-4 text-sm font-medium transition-colors", r ? "border-action-primary-border bg-action-primary-bg/5 text-text-primary" : "border-border-subtle text-text-secondary hover:bg-bg-sunken/50"),
684
685
  children: [
685
- /* @__PURE__ */ O(n, { className: "h-6 w-6" }),
686
- /* @__PURE__ */ O("span", { children: t.label }),
687
- r && /* @__PURE__ */ O(f, { className: "h-4 w-4 text-status-success-text" })
686
+ /* @__PURE__ */ k(n, { className: "h-6 w-6" }),
687
+ /* @__PURE__ */ k("span", { children: t.label }),
688
+ r && /* @__PURE__ */ k(p, { className: "h-4 w-4 text-status-success-text" })
688
689
  ]
689
690
  }, t.id);
690
691
  })
691
692
  })
692
693
  ]
693
694
  }),
694
- x === 4 && /* @__PURE__ */ k("div", {
695
+ C === 4 && /* @__PURE__ */ A("div", {
695
696
  className: "space-y-4",
696
697
  children: [
697
- /* @__PURE__ */ k("h3", {
698
+ /* @__PURE__ */ A("h3", {
698
699
  className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
699
- children: [/* @__PURE__ */ O(h, { className: "h-5 w-5" }), "Pricing Details"]
700
+ children: [/* @__PURE__ */ k(g, { className: "h-5 w-5" }), "Pricing Details"]
700
701
  }),
701
- /* @__PURE__ */ k("div", {
702
+ /* @__PURE__ */ A("div", {
702
703
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
703
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
704
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
704
705
  htmlFor: "price",
705
706
  className: "mb-1.5 block text-sm font-medium text-text-primary",
706
707
  children: "Price *"
707
- }), /* @__PURE__ */ O("input", {
708
+ }), /* @__PURE__ */ k("input", {
708
709
  id: "price",
709
710
  name: "price",
710
711
  type: "number",
711
- value: w.price,
712
- onChange: L,
712
+ value: E.price,
713
+ onChange: z,
713
714
  placeholder: "Enter price",
714
715
  required: !0,
715
716
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
716
- })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
717
+ })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
717
718
  htmlFor: "currency",
718
719
  className: "mb-1.5 block text-sm font-medium text-text-primary",
719
720
  children: "Currency"
720
- }), /* @__PURE__ */ k("select", {
721
+ }), /* @__PURE__ */ A("select", {
721
722
  id: "currency",
722
723
  name: "currency",
723
- value: w.currency,
724
- onChange: L,
724
+ value: E.currency,
725
+ onChange: z,
725
726
  className: "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
726
727
  children: [
727
- /* @__PURE__ */ O("option", {
728
+ /* @__PURE__ */ k("option", {
728
729
  value: "USD",
729
730
  children: "USD ($)"
730
731
  }),
731
- /* @__PURE__ */ O("option", {
732
+ /* @__PURE__ */ k("option", {
732
733
  value: "EUR",
733
734
  children: "EUR"
734
735
  }),
735
- /* @__PURE__ */ O("option", {
736
+ /* @__PURE__ */ k("option", {
736
737
  value: "GBP",
737
738
  children: "GBP"
738
739
  }),
739
- /* @__PURE__ */ O("option", {
740
+ /* @__PURE__ */ k("option", {
740
741
  value: "INR",
741
742
  children: "INR"
742
743
  })
743
744
  ]
744
745
  })] })]
745
746
  }),
746
- /* @__PURE__ */ k("div", {
747
+ /* @__PURE__ */ A("div", {
747
748
  className: "flex items-center gap-2",
748
- children: [/* @__PURE__ */ O("input", {
749
+ children: [/* @__PURE__ */ k("input", {
749
750
  type: "checkbox",
750
751
  id: "negotiable",
751
752
  name: "negotiable",
752
- checked: w.negotiable,
753
- onChange: L,
753
+ checked: E.negotiable,
754
+ onChange: z,
754
755
  className: "h-4 w-4 rounded border-border-subtle"
755
- }), /* @__PURE__ */ O("label", {
756
+ }), /* @__PURE__ */ k("label", {
756
757
  htmlFor: "negotiable",
757
758
  className: "text-sm text-text-primary",
758
759
  children: "Price is negotiable"
@@ -760,34 +761,34 @@ var j = {
760
761
  })
761
762
  ]
762
763
  }),
763
- x === 5 && /* @__PURE__ */ k("div", {
764
+ C === 5 && /* @__PURE__ */ A("div", {
764
765
  className: "space-y-4",
765
766
  children: [
766
- /* @__PURE__ */ k("h3", {
767
+ /* @__PURE__ */ A("h3", {
767
768
  className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
768
- children: [/* @__PURE__ */ O(C, { className: "h-5 w-5" }), "Property Images"]
769
+ children: [/* @__PURE__ */ k(w, { className: "h-5 w-5" }), "Property Images"]
769
770
  }),
770
- /* @__PURE__ */ O("p", {
771
+ /* @__PURE__ */ k("p", {
771
772
  className: "text-sm text-text-secondary",
772
773
  children: "Upload photos of the property (JPG, PNG). The first image becomes the cover."
773
774
  }),
774
- /* @__PURE__ */ O(a, {
775
+ /* @__PURE__ */ k(o, {
775
776
  accept: "image/*",
776
777
  multiple: !0,
777
778
  label: "Upload property images",
778
- value: w.images,
779
- onUploaded: E,
780
- onRemove: I
779
+ value: E.images,
780
+ onUploaded: L,
781
+ onRemove: R
781
782
  }),
782
- w.images.length > 0 && /* @__PURE__ */ O("div", {
783
+ E.images.length > 0 && /* @__PURE__ */ k("div", {
783
784
  className: "grid grid-cols-3 gap-3 sm:grid-cols-4",
784
- children: w.images.map((e, t) => /* @__PURE__ */ k("div", {
785
+ children: E.images.map((e, t) => /* @__PURE__ */ A("div", {
785
786
  className: "relative aspect-square overflow-hidden rounded-lg border border-border-subtle bg-bg-sunken/50",
786
- children: [/* @__PURE__ */ O("img", {
787
+ children: [/* @__PURE__ */ k("img", {
787
788
  src: e.url,
788
789
  alt: e.name,
789
790
  className: "h-full w-full object-cover"
790
- }), t === 0 && /* @__PURE__ */ O("span", {
791
+ }), t === 0 && /* @__PURE__ */ k("span", {
791
792
  className: "absolute left-1.5 top-1.5 rounded bg-action-primary-bg px-1.5 py-0.5 text-[10px] font-semibold text-action-primary-text",
792
793
  children: "Cover"
793
794
  })]
@@ -796,26 +797,26 @@ var j = {
796
797
  ]
797
798
  })
798
799
  ]
799
- }), /* @__PURE__ */ k("div", {
800
+ }), /* @__PURE__ */ A("div", {
800
801
  className: "mt-6 flex items-center justify-between",
801
- children: [/* @__PURE__ */ k("button", {
802
+ children: [/* @__PURE__ */ A("button", {
802
803
  type: "button",
803
- onClick: () => x === 0 ? g("../properties") : S((e) => e - 1),
804
- disabled: v,
804
+ onClick: () => C === 0 ? _("../properties") : T((e) => e - 1),
805
+ disabled: y,
805
806
  className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50",
806
- children: [/* @__PURE__ */ O(p, { className: "h-4 w-4" }), x === 0 ? "Cancel" : "Previous"]
807
- }), V ? /* @__PURE__ */ O("button", {
807
+ children: [/* @__PURE__ */ k(m, { className: "h-4 w-4" }), C === 0 ? "Cancel" : "Previous"]
808
+ }), U ? /* @__PURE__ */ k("button", {
808
809
  type: "button",
809
- onClick: B,
810
- disabled: !z() || v,
810
+ onClick: H,
811
+ disabled: !V() || y,
811
812
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-6 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover disabled:opacity-50",
812
- children: v ? "Adding Property..." : "Submit Property"
813
- }) : /* @__PURE__ */ k("button", {
813
+ children: y ? "Adding Property..." : "Submit Property"
814
+ }) : /* @__PURE__ */ A("button", {
814
815
  type: "button",
815
- onClick: () => S((e) => e + 1),
816
- disabled: !z(),
816
+ onClick: () => T((e) => e + 1),
817
+ disabled: !V(),
817
818
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover disabled:opacity-50",
818
- children: ["Next", /* @__PURE__ */ O(m, { className: "h-4 w-4" })]
819
+ children: ["Next", /* @__PURE__ */ k(h, { className: "h-4 w-4" })]
819
820
  })]
820
821
  })]
821
822
  })
@@ -823,6 +824,6 @@ var j = {
823
824
  });
824
825
  };
825
826
  //#endregion
826
- export { I as AddPropertyPage };
827
+ export { L as AddPropertyPage };
827
828
 
828
829
  //# sourceMappingURL=AddPropertyPage.js.map