@burdenoff/microfe-housingvista 2026.1102.2 → 2026.1102.4

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 (70) hide show
  1. package/dist/housingvista/components/DocumentChip.d.ts +17 -0
  2. package/dist/housingvista/components/DocumentChip.d.ts.map +1 -0
  3. package/dist/housingvista/components/DocumentChip.js +68 -0
  4. package/dist/housingvista/components/DocumentChip.js.map +1 -0
  5. package/dist/housingvista/components/FileUploader.d.ts +2 -0
  6. package/dist/housingvista/components/FileUploader.d.ts.map +1 -1
  7. package/dist/housingvista/components/FileUploader.js +14 -14
  8. package/dist/housingvista/components/FileUploader.js.map +1 -1
  9. package/dist/housingvista/components/ServiceCategoryIcon.d.ts +13 -0
  10. package/dist/housingvista/components/ServiceCategoryIcon.d.ts.map +1 -0
  11. package/dist/housingvista/components/ServiceCategoryIcon.js +23 -0
  12. package/dist/housingvista/components/ServiceCategoryIcon.js.map +1 -0
  13. package/dist/housingvista/components/index.d.ts +1 -0
  14. package/dist/housingvista/components/index.d.ts.map +1 -1
  15. package/dist/housingvista/components/index.js +1 -0
  16. package/dist/housingvista/hooks/index.d.ts +9 -0
  17. package/dist/housingvista/hooks/index.d.ts.map +1 -1
  18. package/dist/housingvista/hooks/index.js +4 -2
  19. package/dist/housingvista/hooks/index.js.map +1 -1
  20. package/dist/housingvista/pages/investments/InvestmentDetailPage.d.ts.map +1 -1
  21. package/dist/housingvista/pages/investments/InvestmentDetailPage.js +345 -322
  22. package/dist/housingvista/pages/investments/InvestmentDetailPage.js.map +1 -1
  23. package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts +11 -0
  24. package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts.map +1 -0
  25. package/dist/housingvista/pages/investments/InvestmentDocuments.js +99 -0
  26. package/dist/housingvista/pages/investments/InvestmentDocuments.js.map +1 -0
  27. package/dist/housingvista/pages/legal/LegalPage.d.ts.map +1 -1
  28. package/dist/housingvista/pages/legal/LegalPage.js +87 -110
  29. package/dist/housingvista/pages/legal/LegalPage.js.map +1 -1
  30. package/dist/housingvista/pages/marketplace/MarketplacePage.d.ts.map +1 -1
  31. package/dist/housingvista/pages/marketplace/MarketplacePage.js +80 -113
  32. package/dist/housingvista/pages/marketplace/MarketplacePage.js.map +1 -1
  33. package/dist/housingvista/pages/marketplace/ServiceDetailPage.d.ts.map +1 -1
  34. package/dist/housingvista/pages/marketplace/ServiceDetailPage.js +127 -135
  35. package/dist/housingvista/pages/marketplace/ServiceDetailPage.js.map +1 -1
  36. package/dist/housingvista/pages/offers/OffersPage.d.ts.map +1 -1
  37. package/dist/housingvista/pages/offers/OffersPage.js +110 -176
  38. package/dist/housingvista/pages/offers/OffersPage.js.map +1 -1
  39. package/dist/housingvista/pages/offers/offerTimeline.d.ts +14 -0
  40. package/dist/housingvista/pages/offers/offerTimeline.d.ts.map +1 -0
  41. package/dist/housingvista/pages/offers/offerTimeline.js +77 -0
  42. package/dist/housingvista/pages/offers/offerTimeline.js.map +1 -0
  43. package/dist/housingvista/pages/properties/PropertyDetailPage.d.ts.map +1 -1
  44. package/dist/housingvista/pages/properties/PropertyDetailPage.js +262 -257
  45. package/dist/housingvista/pages/properties/PropertyDetailPage.js.map +1 -1
  46. package/dist/housingvista/pages/rental/ApplicationDocuments.d.ts.map +1 -1
  47. package/dist/housingvista/pages/rental/ApplicationDocuments.js +7 -34
  48. package/dist/housingvista/pages/rental/ApplicationDocuments.js.map +1 -1
  49. package/dist/housingvista/services/createSandboxAssistantTransport.d.ts.map +1 -1
  50. package/dist/housingvista/services/createSandboxAssistantTransport.js +12 -6
  51. package/dist/housingvista/services/createSandboxAssistantTransport.js.map +1 -1
  52. package/dist/housingvista/types/index.d.ts +3 -1
  53. package/dist/housingvista/types/index.d.ts.map +1 -1
  54. package/dist/housingvista/utils/assistantRetry.d.ts +31 -0
  55. package/dist/housingvista/utils/assistantRetry.d.ts.map +1 -0
  56. package/dist/housingvista/utils/assistantRetry.js +33 -0
  57. package/dist/housingvista/utils/assistantRetry.js.map +1 -0
  58. package/dist/housingvista/utils/investmentDocuments.d.ts +17 -0
  59. package/dist/housingvista/utils/investmentDocuments.d.ts.map +1 -0
  60. package/dist/housingvista/utils/investmentDocuments.js +12 -0
  61. package/dist/housingvista/utils/investmentDocuments.js.map +1 -0
  62. package/dist/housingvista/utils/serviceCategories.d.ts +105 -0
  63. package/dist/housingvista/utils/serviceCategories.d.ts.map +1 -0
  64. package/dist/housingvista/utils/serviceCategories.js +70 -0
  65. package/dist/housingvista/utils/serviceCategories.js.map +1 -0
  66. package/dist/housingvista/utils/similarProperties.d.ts +14 -0
  67. package/dist/housingvista/utils/similarProperties.d.ts.map +1 -0
  68. package/dist/housingvista/utils/similarProperties.js +17 -0
  69. package/dist/housingvista/utils/similarProperties.js.map +1 -0
  70. package/package.json +1 -1
@@ -9,11 +9,12 @@ import { notify as l } from "../../lib/toast.js";
9
9
  import { ContactOwnerDialog as ie } from "../../components/ContactOwnerDialog.js";
10
10
  import "../../components/index.js";
11
11
  import { useServerPagination as ae } from "../../hooks/useServerPagination.js";
12
- import { useMemo as oe, useState as u } from "react";
13
- import { ArrowRight as se, Check as d, Handshake as f, Home as ce, MapPin as le, MessageSquare as ue, Repeat as p, Tag as m, Undo2 as de, X as fe } from "lucide-react";
12
+ import { buildTimeline as u } from "./offerTimeline.js";
13
+ import { useMemo as oe, useState as d } from "react";
14
+ import { ArrowRight as se, Check as f, Handshake as p, Home as ce, MapPin as le, MessageSquare as ue, Repeat as m, Tag as h, Undo2 as de, X as fe } from "lucide-react";
14
15
  import { useNavigate as pe } from "react-router";
15
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
16
- import { Button as _, EmphasisPanel as me, GlassCard as he, Pagination as ge, ResponsiveDialog as v, ResponsiveDialogContent as y, ResponsiveDialogDescription as b, ResponsiveDialogFooter as x, ResponsiveDialogHeader as S, ResponsiveDialogTitle as C } from "@burdenoff/fe-libs/ui";
16
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
17
+ import { Button as v, EmphasisPanel as me, GlassCard as he, Pagination as ge, ResponsiveDialog as y, ResponsiveDialogContent as b, ResponsiveDialogDescription as x, ResponsiveDialogFooter as S, ResponsiveDialogHeader as C, ResponsiveDialogTitle as w } from "@burdenoff/fe-libs/ui";
17
18
  //#region src/housingvista/pages/offers/OffersPage.tsx
18
19
  var _e = [
19
20
  {
@@ -54,103 +55,36 @@ function ve(e) {
54
55
  default: return "muted";
55
56
  }
56
57
  }
57
- var w = {
58
+ var T = {
58
59
  success: "bg-status-success",
59
60
  warning: "bg-status-warning",
60
61
  error: "bg-status-error",
61
62
  info: "bg-status-info",
62
63
  muted: "bg-text-secondary"
63
64
  };
64
- function T(e) {
65
- let t = {
66
- label: "Submitted",
67
- date: e.createdAt,
68
- tone: "info",
69
- filled: !0
70
- }, n = e.respondedAt;
71
- switch (e.status) {
72
- case "accepted": return [
73
- {
74
- ...t,
75
- tone: "success"
76
- },
77
- ...e.counterAmount == null ? [] : [{
78
- label: "Countered",
79
- date: null,
80
- tone: "success",
81
- filled: !0
82
- }],
83
- {
84
- label: "Accepted",
85
- date: n,
86
- tone: "success",
87
- filled: !0
88
- }
89
- ];
90
- case "countered": return [
91
- {
92
- ...t,
93
- tone: "warning"
94
- },
95
- {
96
- label: "Countered",
97
- date: n,
98
- tone: "warning",
99
- filled: !0
100
- },
101
- {
102
- label: "Accepted",
103
- date: null,
104
- tone: "muted",
105
- filled: !1
106
- }
107
- ];
108
- case "rejected": return [{ ...t }, {
109
- label: "Rejected",
110
- date: n,
111
- tone: "error",
112
- filled: !0
113
- }];
114
- case "withdrawn": return [{ ...t }, {
115
- label: "Withdrawn",
116
- date: e.updatedAt,
117
- tone: "muted",
118
- filled: !0
119
- }];
120
- case "expired": return [{ ...t }, {
121
- label: "Expired",
122
- date: e.expiresAt,
123
- tone: "muted",
124
- filled: !0
125
- }];
126
- default: return [{ ...t }, {
127
- label: "Accepted",
128
- date: null,
129
- tone: "muted",
130
- filled: !1
131
- }];
132
- }
133
- }
134
65
  function ye({ offer: t }) {
135
- let r = T(t);
136
- return /* @__PURE__ */ h("ol", {
66
+ let r = u(t);
67
+ return /* @__PURE__ */ g("ol", {
137
68
  className: "flex items-start",
138
69
  "aria-label": "Offer status timeline",
139
70
  children: r.map((t, i) => {
140
71
  let a = i === r.length - 1, o = !a && r[i + 1].filled;
141
- return /* @__PURE__ */ g("li", {
72
+ return /* @__PURE__ */ _("li", {
142
73
  className: e("flex flex-col items-center", !a && "flex-1"),
143
- children: [/* @__PURE__ */ g("div", {
74
+ children: [/* @__PURE__ */ _("div", {
144
75
  className: "flex w-full items-center",
145
- children: [/* @__PURE__ */ h("span", { className: e("flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-full", t.filled ? w[t.tone] : "border-2 border-border-subtle bg-bg-surface") }), !a && /* @__PURE__ */ h("span", { className: e("mx-1 h-0.5 flex-1 rounded-full", t.filled && o ? w[t.tone] : "bg-border-subtle") })]
146
- }), /* @__PURE__ */ g("div", {
76
+ children: [/* @__PURE__ */ g("span", { className: e("flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-full", t.filled ? T[t.tone] : "border-2 border-border-subtle bg-bg-surface") }), !a && /* @__PURE__ */ g("span", { className: e("mx-1 h-0.5 flex-1 rounded-full", t.filled && o ? T[t.tone] : "bg-border-subtle") })]
77
+ }), /* @__PURE__ */ _("div", {
147
78
  className: e("mt-1.5 text-center", a ? "items-end" : ""),
148
- children: [/* @__PURE__ */ h("span", {
79
+ children: [/* @__PURE__ */ g("span", {
149
80
  className: "block text-xs font-medium text-text-primary",
150
81
  children: t.label
151
- }), t.date && /* @__PURE__ */ h("span", {
82
+ }), t.date ? /* @__PURE__ */ g("span", {
152
83
  className: "block text-[0.65rem] text-text-secondary",
153
84
  children: n(t.date)
85
+ }) : t.note && /* @__PURE__ */ g("span", {
86
+ className: "block text-[0.65rem] italic text-text-secondary",
87
+ children: t.note
154
88
  })]
155
89
  })]
156
90
  }, t.label);
@@ -160,7 +94,7 @@ function ye({ offer: t }) {
160
94
  var E = "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)]";
161
95
  function D() {
162
96
  s("housingvista.offer.viewed");
163
- let w = pe(), T = ae(10), [D, be] = u("all"), { data: O, loading: xe } = c({
97
+ let u = pe(), T = ae(10), [D, be] = d("all"), { data: O, loading: xe } = c({
164
98
  filter: D === "all" ? void 0 : { status: D },
165
99
  pagination: T.pagination
166
100
  }), { data: k } = c({ pagination: {
@@ -170,7 +104,7 @@ function D() {
170
104
  let e = /* @__PURE__ */ new Map();
171
105
  for (let t of j) t.offerId && e.set(t.offerId, t);
172
106
  return e;
173
- }, [j]), [I, L] = u(null), [R, z] = u(null), [B, V] = u(null), [H, U] = u(""), [W, G] = u(""), [K, q] = u("sale"), [J, Y] = u("accept"), [X, Z] = u(""), [Q, $] = u(""), De = (e) => Ee.get(e) ?? null, Oe = (e) => {
107
+ }, [j]), [I, L] = d(null), [R, z] = d(null), [B, V] = d(null), [H, U] = d(""), [W, G] = d(""), [K, q] = d("sale"), [J, Y] = d("accept"), [X, Z] = d(""), [Q, $] = d(""), De = (e) => Ee.get(e) ?? null, Oe = (e) => {
174
108
  V(e), U(e.property ? `${e.property.title} — accepted offer` : "Accepted offer deal"), G(String(e.counterAmount ?? e.amount)), q(e.property?.price.type === "rent" ? "rental" : "sale");
175
109
  }, ke = async (e) => {
176
110
  if (e.preventDefault(), !B?.property) return;
@@ -222,213 +156,213 @@ function D() {
222
156
  l.error("Could not withdraw offer", e.message);
223
157
  }
224
158
  }, Ne = (e) => e === "all" ? k.length : k.filter((t) => t.status === e).length, Pe = k.filter((e) => e.status === "submitted" || e.status === "countered").length, Fe = k.filter((e) => e.status === "accepted").length;
225
- return /* @__PURE__ */ g(r, {
159
+ return /* @__PURE__ */ _(r, {
226
160
  title: "Offers",
227
161
  description: "Track the offers you have made and respond to offers on your listings",
228
162
  purpose: "Every offer in one place: watch its status move from submitted to countered, accepted, or rejected — withdraw one you no longer want, or respond to offers coming in on properties you own.",
229
163
  children: [
230
- /* @__PURE__ */ h(me, {
164
+ /* @__PURE__ */ g(me, {
231
165
  className: "p-4",
232
- children: /* @__PURE__ */ g("div", {
166
+ children: /* @__PURE__ */ _("div", {
233
167
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
234
168
  children: [
235
- /* @__PURE__ */ h(i, {
169
+ /* @__PURE__ */ g(i, {
236
170
  label: "Total offers",
237
171
  value: k.length,
238
- icon: /* @__PURE__ */ h(m, { className: "h-4 w-4" })
172
+ icon: /* @__PURE__ */ g(h, { className: "h-4 w-4" })
239
173
  }),
240
- /* @__PURE__ */ h(i, {
174
+ /* @__PURE__ */ g(i, {
241
175
  label: "Awaiting action",
242
176
  value: Pe,
243
- icon: /* @__PURE__ */ h(p, { className: "h-4 w-4" })
177
+ icon: /* @__PURE__ */ g(m, { className: "h-4 w-4" })
244
178
  }),
245
- /* @__PURE__ */ h(i, {
179
+ /* @__PURE__ */ g(i, {
246
180
  label: "Accepted",
247
181
  value: Fe,
248
- icon: /* @__PURE__ */ h(d, { className: "h-4 w-4" })
182
+ icon: /* @__PURE__ */ g(f, { className: "h-4 w-4" })
249
183
  })
250
184
  ]
251
185
  })
252
186
  }),
253
- /* @__PURE__ */ h("div", {
187
+ /* @__PURE__ */ g("div", {
254
188
  className: "-mx-1 flex flex-nowrap items-center gap-2 overflow-x-auto px-1 pb-1 sm:flex-wrap sm:overflow-visible",
255
189
  children: _e.map((t) => {
256
190
  let n = Ne(t.value), r = D === t.value;
257
- return /* @__PURE__ */ g("button", {
191
+ return /* @__PURE__ */ _("button", {
258
192
  onClick: () => {
259
193
  be(t.value), T.setPage(1);
260
194
  },
261
195
  className: e("inline-flex shrink-0 items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors", r ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
262
- children: [t.label, /* @__PURE__ */ h("span", {
196
+ children: [t.label, /* @__PURE__ */ g("span", {
263
197
  className: e("inline-flex min-w-5 items-center justify-center rounded-full px-1.5 text-[0.65rem] font-semibold tabular-nums", r ? "bg-action-primary-text/20 text-action-primary-text" : "bg-bg-surface text-text-secondary"),
264
198
  children: n
265
199
  })]
266
200
  }, t.value);
267
201
  })
268
202
  }),
269
- O.length === 0 && !xe ? /* @__PURE__ */ h(o, {
203
+ O.length === 0 && !xe ? /* @__PURE__ */ g(o, {
270
204
  illustration: "empty-search",
271
- icon: /* @__PURE__ */ h(m, { className: "h-12 w-12" }),
205
+ icon: /* @__PURE__ */ g(h, { className: "h-12 w-12" }),
272
206
  title: "No offers here",
273
207
  description: "Offers you submit on properties — and offers made on your listings — will appear here.",
274
- action: /* @__PURE__ */ h(_, {
275
- onClick: () => w("../properties"),
208
+ action: /* @__PURE__ */ g(v, {
209
+ onClick: () => u("../properties"),
276
210
  children: "Browse properties"
277
211
  })
278
- }) : /* @__PURE__ */ g("div", {
212
+ }) : /* @__PURE__ */ _("div", {
279
213
  className: "space-y-4",
280
- children: [/* @__PURE__ */ h("div", {
214
+ children: [/* @__PURE__ */ g("div", {
281
215
  className: "grid grid-cols-1 gap-4 xl:grid-cols-2",
282
216
  children: O.map((e) => {
283
217
  let r = e.property?.images.find((e) => e.isPrimary) ?? e.property?.images[0], i = e.status === "submitted" || e.status === "countered", o = e.status === "accepted" ? De(e.id) : null, s = !M && !N;
284
- return /* @__PURE__ */ g(he, {
218
+ return /* @__PURE__ */ _(he, {
285
219
  treatment: i ? "insight" : "plain",
286
220
  glow: i,
287
221
  className: "flex flex-col gap-4 p-5",
288
222
  children: [
289
- /* @__PURE__ */ g("div", {
223
+ /* @__PURE__ */ _("div", {
290
224
  className: "flex items-start gap-3",
291
- children: [/* @__PURE__ */ h("button", {
225
+ children: [/* @__PURE__ */ g("button", {
292
226
  type: "button",
293
- onClick: () => e.property && w(`../properties/${e.property.id}`),
227
+ onClick: () => e.property && u(`../properties/${e.property.id}`),
294
228
  className: "shrink-0",
295
229
  "aria-label": `Open ${e.property?.title ?? "property"}`,
296
- children: r ? /* @__PURE__ */ h("img", {
230
+ children: r ? /* @__PURE__ */ g("img", {
297
231
  src: r.url,
298
232
  alt: "",
299
233
  className: "h-16 w-16 rounded-lg object-cover"
300
- }) : /* @__PURE__ */ h("div", {
234
+ }) : /* @__PURE__ */ g("div", {
301
235
  className: "flex h-16 w-16 items-center justify-center rounded-lg bg-bg-sunken",
302
- children: /* @__PURE__ */ h(ce, { className: "h-6 w-6 text-text-secondary" })
236
+ children: /* @__PURE__ */ g(ce, { className: "h-6 w-6 text-text-secondary" })
303
237
  })
304
- }), /* @__PURE__ */ g("div", {
238
+ }), /* @__PURE__ */ _("div", {
305
239
  className: "min-w-0 flex-1",
306
240
  children: [
307
- /* @__PURE__ */ g("div", {
241
+ /* @__PURE__ */ _("div", {
308
242
  className: "flex flex-wrap items-start justify-between gap-2",
309
- children: [/* @__PURE__ */ g("button", {
243
+ children: [/* @__PURE__ */ _("button", {
310
244
  type: "button",
311
- onClick: () => e.property && w(`../properties/${e.property.id}`),
245
+ onClick: () => e.property && u(`../properties/${e.property.id}`),
312
246
  className: "text-left",
313
- children: [/* @__PURE__ */ h("h3", {
247
+ children: [/* @__PURE__ */ g("h3", {
314
248
  className: "font-semibold text-text-primary hover:text-primary",
315
249
  children: e.property?.title ?? "Property"
316
- }), e.property && /* @__PURE__ */ g("p", {
250
+ }), e.property && /* @__PURE__ */ _("p", {
317
251
  className: "flex items-center gap-1 text-xs text-text-secondary",
318
252
  children: [
319
- /* @__PURE__ */ h(le, { className: "h-3 w-3" }),
253
+ /* @__PURE__ */ g(le, { className: "h-3 w-3" }),
320
254
  e.property.location.city,
321
255
  ", ",
322
256
  e.property.location.state
323
257
  ]
324
258
  })]
325
- }), /* @__PURE__ */ h(a, {
259
+ }), /* @__PURE__ */ g(a, {
326
260
  label: e.status,
327
261
  variant: ve(e.status),
328
262
  dot: !0
329
263
  })]
330
264
  }),
331
- /* @__PURE__ */ g("div", {
265
+ /* @__PURE__ */ _("div", {
332
266
  className: "mt-2 flex items-baseline gap-3",
333
- children: [/* @__PURE__ */ h("span", {
267
+ children: [/* @__PURE__ */ g("span", {
334
268
  className: "text-xl font-bold tabular-nums text-text-primary",
335
269
  children: t(e.amount, e.currency)
336
- }), e.counterAmount != null && /* @__PURE__ */ g("span", {
270
+ }), e.counterAmount != null && /* @__PURE__ */ _("span", {
337
271
  className: "text-sm text-text-secondary",
338
272
  children: [
339
273
  "Counter",
340
274
  " ",
341
- /* @__PURE__ */ h("span", {
275
+ /* @__PURE__ */ g("span", {
342
276
  className: "font-semibold text-status-warning-text",
343
277
  children: t(e.counterAmount, e.currency)
344
278
  })
345
279
  ]
346
280
  })]
347
281
  }),
348
- /* @__PURE__ */ g("p", {
282
+ /* @__PURE__ */ _("p", {
349
283
  className: "mt-0.5 text-xs text-text-secondary",
350
284
  children: ["Submitted ", n(e.createdAt)]
351
285
  }),
352
- (e.status === "submitted" || e.status === "countered") && e.expiresAt && /* @__PURE__ */ g("p", {
286
+ (e.status === "submitted" || e.status === "countered") && e.expiresAt && /* @__PURE__ */ _("p", {
353
287
  className: "mt-0.5 text-xs text-text-secondary",
354
288
  children: ["Expires ", n(e.expiresAt)]
355
289
  })
356
290
  ]
357
291
  })]
358
292
  }),
359
- /* @__PURE__ */ h("div", {
293
+ /* @__PURE__ */ g("div", {
360
294
  className: "rounded-lg bg-bg-sunken/50 p-3",
361
- children: /* @__PURE__ */ h(ye, { offer: e })
295
+ children: /* @__PURE__ */ g(ye, { offer: e })
362
296
  }),
363
- (i || e.property) && /* @__PURE__ */ g("div", {
297
+ (i || e.property) && /* @__PURE__ */ _("div", {
364
298
  className: "flex flex-wrap gap-2",
365
299
  children: [
366
- i && /* @__PURE__ */ g(_, {
300
+ i && /* @__PURE__ */ _(v, {
367
301
  size: "sm",
368
302
  onClick: () => Ae(e),
369
- children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
303
+ children: [/* @__PURE__ */ g(f, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
370
304
  className: "ml-1",
371
305
  children: "Respond"
372
306
  })]
373
307
  }),
374
- i && /* @__PURE__ */ g(_, {
308
+ i && /* @__PURE__ */ _(v, {
375
309
  variant: "outline",
376
310
  size: "sm",
377
311
  disabled: we,
378
312
  onClick: () => Me(e),
379
- children: [/* @__PURE__ */ h(de, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
313
+ children: [/* @__PURE__ */ g(de, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
380
314
  className: "ml-1",
381
315
  children: "Withdraw"
382
316
  })]
383
317
  }),
384
- e.property && /* @__PURE__ */ g(_, {
318
+ e.property && /* @__PURE__ */ _(v, {
385
319
  variant: "ghost",
386
320
  size: "sm",
387
321
  onClick: () => z(e),
388
- children: [/* @__PURE__ */ h(ue, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
322
+ children: [/* @__PURE__ */ g(ue, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
389
323
  className: "ml-1",
390
324
  children: "Message"
391
325
  })]
392
326
  }),
393
- e.status === "accepted" && e.property && N && /* @__PURE__ */ g(_, {
327
+ e.status === "accepted" && e.property && N && /* @__PURE__ */ _(v, {
394
328
  variant: "ghost",
395
329
  size: "sm",
396
330
  disabled: M,
397
331
  onClick: () => P(),
398
- children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
332
+ children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
399
333
  className: "ml-1",
400
334
  children: M ? "Checking for a deal…" : "Deal status unavailable — tap to retry"
401
335
  })]
402
336
  }),
403
- e.status === "accepted" && e.property && s && (o ? /* @__PURE__ */ g(_, {
337
+ e.status === "accepted" && e.property && s && (o ? /* @__PURE__ */ _(v, {
404
338
  variant: "ghost",
405
339
  size: "sm",
406
- onClick: () => w(`../transactions/${o.id}`),
407
- children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
340
+ onClick: () => u(`../transactions/${o.id}`),
341
+ children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
408
342
  className: "ml-1",
409
343
  children: "View deal"
410
344
  })]
411
- }) : /* @__PURE__ */ g(_, {
345
+ }) : /* @__PURE__ */ _(v, {
412
346
  variant: "ghost",
413
347
  size: "sm",
414
348
  onClick: () => Oe(e),
415
- children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
349
+ children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
416
350
  className: "ml-1",
417
351
  children: "Create deal"
418
352
  })]
419
353
  })),
420
- e.property && /* @__PURE__ */ g(_, {
354
+ e.property && /* @__PURE__ */ _(v, {
421
355
  variant: "ghost",
422
356
  size: "sm",
423
- onClick: () => w(`../properties/${e.property?.id}`),
424
- children: [/* @__PURE__ */ h("span", { children: "View property" }), /* @__PURE__ */ h(se, { className: "ml-1 h-4 w-4" })]
357
+ onClick: () => u(`../properties/${e.property?.id}`),
358
+ children: [/* @__PURE__ */ g("span", { children: "View property" }), /* @__PURE__ */ g(se, { className: "ml-1 h-4 w-4" })]
425
359
  })
426
360
  ]
427
361
  })
428
362
  ]
429
363
  }, e.id);
430
364
  })
431
- }), /* @__PURE__ */ h(ge, {
365
+ }), /* @__PURE__ */ g(ge, {
432
366
  page: T.page,
433
367
  pageSize: T.pageSize,
434
368
  hasNextPage: O.length >= T.pageSize,
@@ -437,7 +371,7 @@ function D() {
437
371
  onPageSizeChange: T.setPageSize
438
372
  })]
439
373
  }),
440
- R?.property && /* @__PURE__ */ h(ie, {
374
+ R?.property && /* @__PURE__ */ g(ie, {
441
375
  open: R !== null,
442
376
  onOpenChange: (e) => !e && z(null),
443
377
  entityId: R.property.id,
@@ -447,40 +381,40 @@ function D() {
447
381
  heading: "Message",
448
382
  description: `Discuss ${R.property.title} with the other party. The thread also appears in Messages.`
449
383
  }, R.property.id),
450
- /* @__PURE__ */ h(v, {
384
+ /* @__PURE__ */ g(y, {
451
385
  open: I !== null,
452
386
  onOpenChange: (e) => !e && L(null),
453
- children: /* @__PURE__ */ h(y, {
387
+ children: /* @__PURE__ */ g(b, {
454
388
  className: "sm:max-w-md",
455
- children: /* @__PURE__ */ g("form", {
389
+ children: /* @__PURE__ */ _("form", {
456
390
  onSubmit: je,
457
391
  children: [
458
- /* @__PURE__ */ g(S, { children: [/* @__PURE__ */ h(C, { children: "Respond to offer" }), /* @__PURE__ */ h(b, { children: I?.property?.title ? `Offer of ${t(I.amount, I.currency)} on ${I.property.title}.` : "Accept, counter, or reject this offer." })] }),
459
- /* @__PURE__ */ g("div", {
392
+ /* @__PURE__ */ _(C, { children: [/* @__PURE__ */ g(w, { children: "Respond to offer" }), /* @__PURE__ */ g(x, { children: I?.property?.title ? `Offer of ${t(I.amount, I.currency)} on ${I.property.title}.` : "Accept, counter, or reject this offer." })] }),
393
+ /* @__PURE__ */ _("div", {
460
394
  className: "space-y-3 py-2",
461
395
  children: [
462
- /* @__PURE__ */ h("div", {
396
+ /* @__PURE__ */ g("div", {
463
397
  className: "flex flex-wrap gap-2",
464
398
  children: [
465
399
  "accept",
466
400
  "counter",
467
401
  "reject"
468
- ].map((t) => /* @__PURE__ */ g("button", {
402
+ ].map((t) => /* @__PURE__ */ _("button", {
469
403
  type: "button",
470
404
  onClick: () => Y(t),
471
405
  className: e("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium capitalize transition-colors", J === t ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
472
406
  children: [
473
- t === "accept" && /* @__PURE__ */ h(d, { className: "h-4 w-4" }),
474
- t === "counter" && /* @__PURE__ */ h(p, { className: "h-4 w-4" }),
475
- t === "reject" && /* @__PURE__ */ h(fe, { className: "h-4 w-4" }),
407
+ t === "accept" && /* @__PURE__ */ g(f, { className: "h-4 w-4" }),
408
+ t === "counter" && /* @__PURE__ */ g(m, { className: "h-4 w-4" }),
409
+ t === "reject" && /* @__PURE__ */ g(fe, { className: "h-4 w-4" }),
476
410
  t
477
411
  ]
478
412
  }, t))
479
413
  }),
480
- J === "counter" && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
414
+ J === "counter" && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
481
415
  className: "mb-1.5 block text-sm font-medium text-text-primary",
482
416
  children: "Counter amount *"
483
- }), /* @__PURE__ */ h("input", {
417
+ }), /* @__PURE__ */ g("input", {
484
418
  type: "number",
485
419
  min: 1,
486
420
  step: "any",
@@ -488,10 +422,10 @@ function D() {
488
422
  onChange: (e) => Z(e.target.value),
489
423
  className: E
490
424
  })] }),
491
- /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
425
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
492
426
  className: "mb-1.5 block text-sm font-medium text-text-primary",
493
427
  children: "Note (optional)"
494
- }), /* @__PURE__ */ h("textarea", {
428
+ }), /* @__PURE__ */ g("textarea", {
495
429
  value: Q,
496
430
  onChange: (e) => $(e.target.value),
497
431
  rows: 2,
@@ -499,12 +433,12 @@ function D() {
499
433
  })] })
500
434
  ]
501
435
  }),
502
- /* @__PURE__ */ g(x, { children: [/* @__PURE__ */ h(_, {
436
+ /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(v, {
503
437
  type: "button",
504
438
  variant: "outline",
505
439
  onClick: () => L(null),
506
440
  children: "Cancel"
507
- }), /* @__PURE__ */ h(_, {
441
+ }), /* @__PURE__ */ g(v, {
508
442
  type: "submit",
509
443
  disabled: A,
510
444
  children: A ? "Sending…" : "Send response"
@@ -513,31 +447,31 @@ function D() {
513
447
  })
514
448
  })
515
449
  }),
516
- /* @__PURE__ */ h(v, {
450
+ /* @__PURE__ */ g(y, {
517
451
  open: B !== null,
518
452
  onOpenChange: (e) => !e && V(null),
519
- children: /* @__PURE__ */ h(y, {
453
+ children: /* @__PURE__ */ g(b, {
520
454
  className: "sm:max-w-md",
521
- children: /* @__PURE__ */ g("form", {
455
+ children: /* @__PURE__ */ _("form", {
522
456
  onSubmit: ke,
523
457
  children: [
524
- /* @__PURE__ */ g(S, { children: [/* @__PURE__ */ h(C, { children: "Create deal" }), /* @__PURE__ */ h(b, { children: B?.property?.title ? `Carry the accepted offer on ${B.property.title} through to a transaction.` : "Carry this accepted offer through to a transaction." })] }),
525
- /* @__PURE__ */ g("div", {
458
+ /* @__PURE__ */ _(C, { children: [/* @__PURE__ */ g(w, { children: "Create deal" }), /* @__PURE__ */ g(x, { children: B?.property?.title ? `Carry the accepted offer on ${B.property.title} through to a transaction.` : "Carry this accepted offer through to a transaction." })] }),
459
+ /* @__PURE__ */ _("div", {
526
460
  className: "space-y-3 py-2",
527
461
  children: [
528
- /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
462
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
529
463
  className: "mb-1.5 block text-sm font-medium text-text-primary",
530
464
  children: "Deal title *"
531
- }), /* @__PURE__ */ h("input", {
465
+ }), /* @__PURE__ */ g("input", {
532
466
  value: H,
533
467
  onChange: (e) => U(e.target.value),
534
468
  className: E,
535
469
  required: !0
536
470
  })] }),
537
- /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
471
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
538
472
  className: "mb-1.5 block text-sm font-medium text-text-primary",
539
473
  children: "Amount *"
540
- }), /* @__PURE__ */ h("input", {
474
+ }), /* @__PURE__ */ g("input", {
541
475
  type: "number",
542
476
  min: 1,
543
477
  step: "any",
@@ -546,29 +480,29 @@ function D() {
546
480
  className: E,
547
481
  required: !0
548
482
  })] }),
549
- /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
483
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
550
484
  className: "mb-1.5 block text-sm font-medium text-text-primary",
551
485
  children: "Deal type"
552
- }), /* @__PURE__ */ g("select", {
486
+ }), /* @__PURE__ */ _("select", {
553
487
  value: K,
554
488
  onChange: (e) => q(e.target.value),
555
489
  className: E,
556
- children: [/* @__PURE__ */ h("option", {
490
+ children: [/* @__PURE__ */ g("option", {
557
491
  value: "sale",
558
492
  children: "Sale"
559
- }), /* @__PURE__ */ h("option", {
493
+ }), /* @__PURE__ */ g("option", {
560
494
  value: "rental",
561
495
  children: "Rental"
562
496
  })]
563
497
  })] })
564
498
  ]
565
499
  }),
566
- /* @__PURE__ */ g(x, { children: [/* @__PURE__ */ h(_, {
500
+ /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(v, {
567
501
  type: "button",
568
502
  variant: "outline",
569
503
  onClick: () => V(null),
570
504
  children: "Cancel"
571
- }), /* @__PURE__ */ h(_, {
505
+ }), /* @__PURE__ */ g(v, {
572
506
  type: "submit",
573
507
  disabled: F,
574
508
  children: F ? "Creating…" : "Create deal"