@burdenoff/microfe-crewfoundry 2026.1030.1 → 2026.1030.2

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.
@@ -7,14 +7,15 @@ import { SegmentedTabs as a } from "../components/viz/SegmentedTabs.js";
7
7
  import "../components/viz/index.js";
8
8
  import { ConfirmDialog as o } from "../components/forms/ConfirmDialog.js";
9
9
  import { AttachDocumentDialog as s } from "../components/forms/AttachDocumentDialog.js";
10
- import { useEffect as ee, useRef as te, useState as c } from "react";
11
- import { ArrowLeft as l, BadgeCheck as ne, CalendarDays as re, FileText as ie, Mail as ae, MapPin as u, Phone as oe, Plus as d, Trash2 as f } from "lucide-react";
12
- import { useNavigate as p, useSearchParams as se } from "react-router";
13
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
- import { Badge as g, Button as _, Card as v, CardContent as y, CardHeader as b, CardTitle as x, GlassCard as S, GradientText as ce, IllustratedEmptyState as C, PagePurpose as w, Spinner as T } from "@burdenoff/fe-libs/ui";
15
- import { useGlobalUi as E } from "@burdenoff/fe-libs/shared/providers/shell";
10
+ import { EmployeeSkillsPanel as c } from "../components/EmployeeSkillsPanel.js";
11
+ import { useEffect as l, useRef as ee, useState as u } from "react";
12
+ import { ArrowLeft as d, BadgeCheck as f, CalendarDays as p, FileText as te, Mail as ne, MapPin as re, Phone as ie, Plus as m, Trash2 as ae } from "lucide-react";
13
+ import { useNavigate as h, useSearchParams as g } from "react-router";
14
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
15
+ import { Badge as y, Button as b, Card as x, CardContent as S, CardHeader as C, CardTitle as w, GlassCard as oe, GradientText as se, IllustratedEmptyState as T, PagePurpose as ce, Spinner as le } from "@burdenoff/fe-libs/ui";
16
+ import { useGlobalUi as ue } from "@burdenoff/fe-libs/shared/providers/shell";
16
17
  //#region src/crewfoundry/pages/HrEmployeeProfilePagePage.tsx
17
- var D = [
18
+ var de = [
18
19
  {
19
20
  id: "overview",
20
21
  label: "Overview"
@@ -35,7 +36,7 @@ var D = [
35
36
  id: "activity",
36
37
  label: "Activity"
37
38
  }
38
- ], O = [
39
+ ], E = [
39
40
  {
40
41
  min: 0,
41
42
  max: 6e4
@@ -61,11 +62,11 @@ var D = [
61
62
  max: Infinity
62
63
  }
63
64
  ];
64
- function le(e) {
65
- let t = O.findIndex((t) => e >= t.min && e < t.max), n = t === -1 ? O.length - 1 : t, r = O[n], i = `$${Math.round(r.min / 1e3)}k`, a = r.max === Infinity ? "+" : `–$${Math.round(r.max / 1e3)}k`;
65
+ function fe(e) {
66
+ let t = E.findIndex((t) => e >= t.min && e < t.max), n = t === -1 ? E.length - 1 : t, r = E[n], i = `$${Math.round(r.min / 1e3)}k`, a = r.max === Infinity ? "+" : `–$${Math.round(r.max / 1e3)}k`;
66
67
  return `Band ${n + 1} · ${i}${a}`;
67
68
  }
68
- function ue(e) {
69
+ function D(e) {
69
70
  let t = new Date(e);
70
71
  if (Number.isNaN(t.getTime())) return "—";
71
72
  let n = /* @__PURE__ */ new Date(), r = (n.getFullYear() - t.getFullYear()) * 12 + (n.getMonth() - t.getMonth());
@@ -73,37 +74,37 @@ function ue(e) {
73
74
  let i = Math.floor(r / 12), a = r % 12, o = [];
74
75
  return i > 0 && o.push(`${i} year${i === 1 ? "" : "s"}`), o.push(`${a} month${a === 1 ? "" : "s"}`), o.join(", ");
75
76
  }
76
- function k(e) {
77
+ function O(e) {
77
78
  return e >= 4.5 ? "Excellent" : e >= 3.5 ? "Strong" : e >= 2.5 ? "Meets expectations" : "Needs improvement";
78
79
  }
79
- function A(e) {
80
+ function k(e) {
80
81
  return e === "active" ? "default" : e === "on_leave" ? "secondary" : "destructive";
81
82
  }
82
- function j({ icon: e, children: t }) {
83
- return /* @__PURE__ */ h("span", {
83
+ function A({ icon: e, children: t }) {
84
+ return /* @__PURE__ */ v("span", {
84
85
  className: "inline-flex items-center gap-1.5 rounded-full border border-border-subtle bg-bg-surface px-3 py-1 text-xs text-text-secondary",
85
- children: [/* @__PURE__ */ m("span", {
86
+ children: [/* @__PURE__ */ _("span", {
86
87
  className: "text-text-muted",
87
88
  children: e
88
- }), /* @__PURE__ */ m("span", {
89
+ }), /* @__PURE__ */ _("span", {
89
90
  className: "truncate",
90
91
  children: t
91
92
  })]
92
93
  });
93
94
  }
94
- function M({ label: e, children: t }) {
95
- return /* @__PURE__ */ h("div", {
95
+ function j({ label: e, children: t }) {
96
+ return /* @__PURE__ */ v("div", {
96
97
  className: "flex items-start justify-between gap-4 py-2 text-sm",
97
- children: [/* @__PURE__ */ m("span", {
98
+ children: [/* @__PURE__ */ _("span", {
98
99
  className: "text-text-secondary",
99
100
  children: e
100
- }), /* @__PURE__ */ m("span", {
101
+ }), /* @__PURE__ */ _("span", {
101
102
  className: "text-right font-medium text-text-primary",
102
103
  children: t
103
104
  })]
104
105
  });
105
106
  }
106
- function N(e, n, r, i, a) {
107
+ function M(e, n, r, i, a) {
107
108
  let o = [], s = (e) => {
108
109
  let t = new Date(e).getTime();
109
110
  return Number.isNaN(t) ? 0 : t;
@@ -153,73 +154,73 @@ function N(e, n, r, i, a) {
153
154
  });
154
155
  return o.sort((e, t) => t.ts - e.ts).slice(0, 14).map((e) => e.item);
155
156
  }
156
- function P() {
157
- let O = p(), [P] = se(), F = e((e) => e.employees), I = e((e) => e.timeEntries), L = e((e) => e.leaveRequests), R = e((e) => e.payrollRecords), z = e((e) => e.projects), B = e((e) => e.initialized), V = e((e) => e.employeeDocuments), H = e((e) => e.fetchEmployeeDocuments), de = e((e) => e.uploadEmployeeDocument), fe = e((e) => e.detachEmployeeDocument), { showToast: U } = E(), [W, pe] = c("overview"), [me, G] = c(!1), [K, q] = c(null), J = te(null), he = P.get("id"), Y = F.find((e) => e.id === he);
158
- if (ee(() => {
159
- W === "documents" && Y && J.current !== Y.id && (J.current = Y.id, H(Y.id).catch((e) => {
160
- U(e instanceof Error ? e.message : "Unable to load documents", "error");
157
+ function N() {
158
+ let E = h(), [N] = g(), P = e((e) => e.employees), F = e((e) => e.timeEntries), I = e((e) => e.leaveRequests), L = e((e) => e.payrollRecords), R = e((e) => e.projects), z = e((e) => e.initialized), B = e((e) => e.employeeDocuments), V = e((e) => e.fetchEmployeeDocuments), pe = e((e) => e.uploadEmployeeDocument), me = e((e) => e.detachEmployeeDocument), { showToast: H } = ue(), [U, he] = u("overview"), [W, G] = u(!1), [K, q] = u(null), J = ee(null), ge = N.get("id"), Y = P.find((e) => e.id === ge);
159
+ if (l(() => {
160
+ U === "documents" && Y && J.current !== Y.id && (J.current = Y.id, V(Y.id).catch((e) => {
161
+ H(e instanceof Error ? e.message : "Unable to load documents", "error");
161
162
  }));
162
163
  }, [
163
- W,
164
+ U,
164
165
  Y,
165
- H,
166
- U
167
- ]), !B && !Y) return /* @__PURE__ */ m("div", {
166
+ V,
167
+ H
168
+ ]), !z && !Y) return /* @__PURE__ */ _("div", {
168
169
  className: "flex min-h-[60vh] items-center justify-center p-6",
169
- children: /* @__PURE__ */ m(T, { size: "lg" })
170
+ children: /* @__PURE__ */ _(le, { size: "lg" })
170
171
  });
171
- if (!Y) return /* @__PURE__ */ h("div", {
172
+ if (!Y) return /* @__PURE__ */ v("div", {
172
173
  className: "space-y-4 p-6",
173
- children: [/* @__PURE__ */ h(_, {
174
+ children: [/* @__PURE__ */ v(b, {
174
175
  variant: "ghost",
175
176
  size: "sm",
176
- onClick: () => O("../hr/employees-page"),
177
- children: [/* @__PURE__ */ m(l, { className: "mr-1 h-4 w-4" }), "Back to directory"]
178
- }), /* @__PURE__ */ m(C, {
177
+ onClick: () => E("../hr/employees-page"),
178
+ children: [/* @__PURE__ */ _(d, { className: "mr-1 h-4 w-4" }), "Back to directory"]
179
+ }), /* @__PURE__ */ _(T, {
179
180
  illustration: "empty-search",
180
181
  title: "Employee not found",
181
182
  description: "This profile is no longer available or the link is out of date."
182
183
  })]
183
184
  });
184
- let X = Y.managerId ? F.find((e) => e.id === Y.managerId) : void 0, Z = X ? `${X.firstName} ${X.lastName}` : Y.managerId ? "Assigned" : "No manager", Q = `${Y.firstName} ${Y.lastName}`, $ = N(Y, I, L, R, z);
185
- return /* @__PURE__ */ h("div", {
185
+ let X = Y.managerId ? P.find((e) => e.id === Y.managerId) : void 0, Z = X ? `${X.firstName} ${X.lastName}` : Y.managerId ? "Assigned" : "No manager", Q = `${Y.firstName} ${Y.lastName}`, $ = M(Y, F, I, L, R);
186
+ return /* @__PURE__ */ v("div", {
186
187
  className: "space-y-6 p-6",
187
188
  children: [
188
- /* @__PURE__ */ h(_, {
189
+ /* @__PURE__ */ v(b, {
189
190
  variant: "ghost",
190
191
  size: "sm",
191
- onClick: () => O("../hr/employees-page"),
192
- children: [/* @__PURE__ */ m(l, { className: "mr-1 h-4 w-4" }), "Back to directory"]
192
+ onClick: () => E("../hr/employees-page"),
193
+ children: [/* @__PURE__ */ _(d, { className: "mr-1 h-4 w-4" }), "Back to directory"]
193
194
  }),
194
- /* @__PURE__ */ m(S, {
195
+ /* @__PURE__ */ _(oe, {
195
196
  treatment: "glass",
196
197
  glow: !0,
197
198
  className: "border-border-seam",
198
- children: /* @__PURE__ */ m(y, {
199
+ children: /* @__PURE__ */ _(S, {
199
200
  className: "p-6",
200
- children: /* @__PURE__ */ h("div", {
201
+ children: /* @__PURE__ */ v("div", {
201
202
  className: "flex flex-col gap-5 sm:flex-row sm:items-start",
202
- children: [/* @__PURE__ */ m(i, {
203
+ children: [/* @__PURE__ */ _(i, {
203
204
  people: [{
204
205
  name: Q,
205
206
  avatarUrl: Y.avatar
206
207
  }],
207
208
  max: 1,
208
209
  size: 72
209
- }), /* @__PURE__ */ h("div", {
210
+ }), /* @__PURE__ */ v("div", {
210
211
  className: "flex-1 space-y-3",
211
212
  children: [
212
- /* @__PURE__ */ h("div", {
213
+ /* @__PURE__ */ v("div", {
213
214
  className: "flex flex-wrap items-center gap-3",
214
- children: [/* @__PURE__ */ m("h1", {
215
+ children: [/* @__PURE__ */ _("h1", {
215
216
  className: "text-2xl font-semibold",
216
- children: /* @__PURE__ */ m(ce, { children: Q })
217
- }), /* @__PURE__ */ m(g, {
218
- variant: A(Y.status),
217
+ children: /* @__PURE__ */ _(se, { children: Q })
218
+ }), /* @__PURE__ */ _(y, {
219
+ variant: k(Y.status),
219
220
  children: t(Y.status)
220
221
  })]
221
222
  }),
222
- /* @__PURE__ */ h("p", {
223
+ /* @__PURE__ */ v("p", {
223
224
  className: "text-sm text-text-secondary",
224
225
  children: [
225
226
  Y.position,
@@ -227,23 +228,23 @@ function P() {
227
228
  Y.department
228
229
  ]
229
230
  }),
230
- /* @__PURE__ */ h("div", {
231
+ /* @__PURE__ */ v("div", {
231
232
  className: "flex flex-wrap gap-2",
232
233
  children: [
233
- /* @__PURE__ */ m(j, {
234
- icon: /* @__PURE__ */ m(ae, { className: "h-3.5 w-3.5" }),
234
+ /* @__PURE__ */ _(A, {
235
+ icon: /* @__PURE__ */ _(ne, { className: "h-3.5 w-3.5" }),
235
236
  children: Y.email
236
237
  }),
237
- /* @__PURE__ */ m(j, {
238
- icon: /* @__PURE__ */ m(oe, { className: "h-3.5 w-3.5" }),
238
+ /* @__PURE__ */ _(A, {
239
+ icon: /* @__PURE__ */ _(ie, { className: "h-3.5 w-3.5" }),
239
240
  children: Y.phone
240
241
  }),
241
- /* @__PURE__ */ m(j, {
242
- icon: /* @__PURE__ */ m(u, { className: "h-3.5 w-3.5" }),
242
+ /* @__PURE__ */ _(A, {
243
+ icon: /* @__PURE__ */ _(re, { className: "h-3.5 w-3.5" }),
243
244
  children: Y.location
244
245
  }),
245
- /* @__PURE__ */ h(j, {
246
- icon: /* @__PURE__ */ m(re, { className: "h-3.5 w-3.5" }),
246
+ /* @__PURE__ */ v(A, {
247
+ icon: /* @__PURE__ */ _(p, { className: "h-3.5 w-3.5" }),
247
248
  children: ["Joined ", Y.startDate]
248
249
  })
249
250
  ]
@@ -253,26 +254,26 @@ function P() {
253
254
  })
254
255
  })
255
256
  }),
256
- /* @__PURE__ */ m(w, { children: "A single view of one team member — their role, tenure, performance, and recent activity — so managers and partners have the full context in one place." }),
257
- /* @__PURE__ */ m(a, {
258
- tabs: D,
259
- value: W,
260
- onChange: (e) => pe(e),
257
+ /* @__PURE__ */ _(ce, { children: "A single view of one team member — their role, tenure, performance, and recent activity — so managers and partners have the full context in one place." }),
258
+ /* @__PURE__ */ _(a, {
259
+ tabs: de,
260
+ value: U,
261
+ onChange: (e) => he(e),
261
262
  "aria-label": "Employee profile sections"
262
263
  }),
263
- W === "overview" ? /* @__PURE__ */ h("div", {
264
+ U === "overview" ? /* @__PURE__ */ v("div", {
264
265
  className: "grid gap-4 lg:grid-cols-2",
265
- children: [/* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(x, {
266
+ children: [/* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(C, { children: /* @__PURE__ */ _(w, {
266
267
  className: "text-base",
267
268
  children: "Details"
268
- }) }), /* @__PURE__ */ h(y, {
269
+ }) }), /* @__PURE__ */ v(S, {
269
270
  className: "divide-y divide-border-subtle pt-0",
270
271
  children: [
271
- /* @__PURE__ */ m(M, {
272
+ /* @__PURE__ */ _(j, {
272
273
  label: "Manager",
273
- children: /* @__PURE__ */ h("span", {
274
+ children: /* @__PURE__ */ v("span", {
274
275
  className: "inline-flex items-center gap-2",
275
- children: [X ? /* @__PURE__ */ m(i, {
276
+ children: [X ? /* @__PURE__ */ _(i, {
276
277
  people: [{
277
278
  name: Z,
278
279
  avatarUrl: X.avatar
@@ -282,42 +283,42 @@ function P() {
282
283
  }) : null, Z]
283
284
  })
284
285
  }),
285
- /* @__PURE__ */ m(M, {
286
+ /* @__PURE__ */ _(j, {
286
287
  label: "Employment type",
287
288
  children: t(Y.type)
288
289
  }),
289
- /* @__PURE__ */ m(M, {
290
+ /* @__PURE__ */ _(j, {
290
291
  label: "Salary band",
291
- children: le(Y.salary)
292
+ children: fe(Y.salary)
292
293
  }),
293
- /* @__PURE__ */ m(M, {
294
+ /* @__PURE__ */ _(j, {
294
295
  label: "Tenure",
295
- children: ue(Y.startDate)
296
+ children: D(Y.startDate)
296
297
  }),
297
- /* @__PURE__ */ m(M, {
298
+ /* @__PURE__ */ _(j, {
298
299
  label: "Employee ID",
299
- children: /* @__PURE__ */ m("span", {
300
+ children: /* @__PURE__ */ _("span", {
300
301
  className: "break-all font-mono text-xs",
301
302
  children: Y.id
302
303
  })
303
304
  })
304
305
  ]
305
- })] }), /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(x, {
306
+ })] }), /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(C, { children: /* @__PURE__ */ _(w, {
306
307
  className: "text-base",
307
308
  children: "Performance"
308
- }) }), /* @__PURE__ */ h(y, {
309
+ }) }), /* @__PURE__ */ v(S, {
309
310
  className: "flex items-center gap-6 pt-0",
310
- children: [/* @__PURE__ */ m(n, {
311
+ children: [/* @__PURE__ */ _(n, {
311
312
  value: Y.performanceScore,
312
313
  max: 5,
313
314
  label: Y.performanceScore.toFixed(1),
314
315
  caption: "/ 5"
315
- }), /* @__PURE__ */ h("div", {
316
+ }), /* @__PURE__ */ v("div", {
316
317
  className: "space-y-1",
317
- children: [/* @__PURE__ */ m("p", {
318
+ children: [/* @__PURE__ */ _("p", {
318
319
  className: "text-lg font-semibold text-text-primary",
319
- children: k(Y.performanceScore)
320
- }), /* @__PURE__ */ h("p", {
320
+ children: O(Y.performanceScore)
321
+ }), /* @__PURE__ */ v("p", {
321
322
  className: "text-sm text-text-secondary",
322
323
  children: [
323
324
  "Latest review score of ",
@@ -328,48 +329,37 @@ function P() {
328
329
  })]
329
330
  })] })]
330
331
  }) : null,
331
- W === "skills" ? /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(x, {
332
+ U === "skills" ? /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(C, { children: /* @__PURE__ */ _(w, {
332
333
  className: "text-base",
333
334
  children: "Skills"
334
- }) }), /* @__PURE__ */ m(y, {
335
+ }) }), /* @__PURE__ */ _(S, {
335
336
  className: "pt-0",
336
- children: Y.skills.length > 0 ? /* @__PURE__ */ m("div", {
337
- className: "flex flex-wrap gap-2",
338
- children: Y.skills.map((e) => /* @__PURE__ */ m(g, {
339
- variant: "secondary",
340
- className: "text-xs",
341
- children: e
342
- }, e))
343
- }) : /* @__PURE__ */ m(C, {
344
- illustration: "empty-data",
345
- title: "No skills recorded",
346
- description: "This team member has no skills captured yet. Add skills from the employee directory to surface them here."
347
- })
337
+ children: /* @__PURE__ */ _(c, { employeeId: Y.id })
348
338
  })] }) : null,
349
- W === "documents" ? /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ h(b, {
339
+ U === "documents" ? /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ v(C, {
350
340
  className: "flex flex-row items-center justify-between",
351
- children: [/* @__PURE__ */ m(x, {
341
+ children: [/* @__PURE__ */ _(w, {
352
342
  className: "text-base",
353
343
  children: "Documents"
354
- }), /* @__PURE__ */ h(_, {
344
+ }), /* @__PURE__ */ v(b, {
355
345
  size: "sm",
356
346
  onClick: () => G(!0),
357
- children: [/* @__PURE__ */ m(d, { className: "mr-1.5 h-3.5 w-3.5" }), "Attach document"]
347
+ children: [/* @__PURE__ */ _(m, { className: "mr-1.5 h-3.5 w-3.5" }), "Attach document"]
358
348
  })]
359
- }), /* @__PURE__ */ m(y, {
349
+ }), /* @__PURE__ */ _(S, {
360
350
  className: "pt-0",
361
- children: V.length > 0 ? /* @__PURE__ */ m("div", {
351
+ children: B.length > 0 ? /* @__PURE__ */ _("div", {
362
352
  className: "space-y-2",
363
- children: V.map((e) => /* @__PURE__ */ h("div", {
353
+ children: B.map((e) => /* @__PURE__ */ v("div", {
364
354
  className: "flex items-center justify-between gap-3 rounded-input border border-border-subtle bg-bg-surface px-3 py-2.5",
365
- children: [/* @__PURE__ */ h("div", {
355
+ children: [/* @__PURE__ */ v("div", {
366
356
  className: "flex min-w-0 items-center gap-3",
367
- children: [/* @__PURE__ */ m(ie, { className: "h-4 w-4 shrink-0 text-text-muted" }), /* @__PURE__ */ h("div", {
357
+ children: [/* @__PURE__ */ _(te, { className: "h-4 w-4 shrink-0 text-text-muted" }), /* @__PURE__ */ v("div", {
368
358
  className: "min-w-0",
369
- children: [/* @__PURE__ */ m("p", {
359
+ children: [/* @__PURE__ */ _("p", {
370
360
  className: "truncate text-sm font-medium text-text-primary",
371
361
  children: e.title
372
- }), /* @__PURE__ */ h("p", {
362
+ }), /* @__PURE__ */ v("p", {
373
363
  className: "text-xs text-text-muted",
374
364
  children: [
375
365
  e.category ? `${e.category} · ` : "",
@@ -378,45 +368,45 @@ function P() {
378
368
  ]
379
369
  })]
380
370
  })]
381
- }), /* @__PURE__ */ m("button", {
371
+ }), /* @__PURE__ */ _("button", {
382
372
  type: "button",
383
373
  "aria-label": `Remove document "${e.title}"`,
384
374
  className: "shrink-0 text-text-muted hover:text-status-error-fg",
385
375
  onClick: () => q(e.id),
386
- children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
376
+ children: /* @__PURE__ */ _(ae, { className: "h-4 w-4" })
387
377
  })]
388
378
  }, e.id))
389
- }) : /* @__PURE__ */ m(C, {
379
+ }) : /* @__PURE__ */ _(T, {
390
380
  illustration: "empty-data",
391
381
  title: "No documents attached",
392
382
  description: "Offer letters, contracts, and compliance documents attached to this profile will appear here.",
393
- action: /* @__PURE__ */ h(_, {
383
+ action: /* @__PURE__ */ v(b, {
394
384
  size: "sm",
395
385
  onClick: () => G(!0),
396
- children: [/* @__PURE__ */ m(d, { className: "mr-1.5 h-3.5 w-3.5" }), "Attach document"]
386
+ children: [/* @__PURE__ */ _(m, { className: "mr-1.5 h-3.5 w-3.5" }), "Attach document"]
397
387
  })
398
388
  })
399
389
  })] }) : null,
400
- W === "performance" ? /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(x, {
390
+ U === "performance" ? /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(C, { children: /* @__PURE__ */ _(w, {
401
391
  className: "text-base",
402
392
  children: "Performance"
403
- }) }), /* @__PURE__ */ h(y, {
393
+ }) }), /* @__PURE__ */ v(S, {
404
394
  className: "flex flex-col items-center gap-6 pt-0 sm:flex-row sm:items-center",
405
- children: [/* @__PURE__ */ m(n, {
395
+ children: [/* @__PURE__ */ _(n, {
406
396
  value: Y.performanceScore,
407
397
  max: 5,
408
398
  size: 160,
409
399
  label: Y.performanceScore.toFixed(1),
410
400
  caption: "/ 5"
411
- }), /* @__PURE__ */ h("div", {
401
+ }), /* @__PURE__ */ v("div", {
412
402
  className: "flex-1 space-y-2",
413
403
  children: [
414
- /* @__PURE__ */ h(g, {
404
+ /* @__PURE__ */ v(y, {
415
405
  variant: "secondary",
416
406
  className: "gap-1",
417
- children: [/* @__PURE__ */ m(ne, { className: "h-3.5 w-3.5" }), k(Y.performanceScore)]
407
+ children: [/* @__PURE__ */ _(f, { className: "h-3.5 w-3.5" }), O(Y.performanceScore)]
418
408
  }),
419
- /* @__PURE__ */ h("p", {
409
+ /* @__PURE__ */ v("p", {
420
410
  className: "text-sm text-text-secondary",
421
411
  children: [
422
412
  Q,
@@ -425,35 +415,35 @@ function P() {
425
415
  " out of 5."
426
416
  ]
427
417
  }),
428
- /* @__PURE__ */ m("p", {
418
+ /* @__PURE__ */ _("p", {
429
419
  className: "text-xs text-text-muted",
430
420
  children: "Goal, peer, and manager sub-scores will appear here once captured on the review record."
431
421
  })
432
422
  ]
433
423
  })]
434
424
  })] }) : null,
435
- W === "activity" ? /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(x, {
425
+ U === "activity" ? /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(C, { children: /* @__PURE__ */ _(w, {
436
426
  className: "text-base",
437
427
  children: "Recent activity"
438
- }) }), /* @__PURE__ */ m(y, {
428
+ }) }), /* @__PURE__ */ _(S, {
439
429
  className: "pt-0",
440
- children: $.length > 0 ? /* @__PURE__ */ m(r, { items: $ }) : /* @__PURE__ */ m(C, {
430
+ children: $.length > 0 ? /* @__PURE__ */ _(r, { items: $ }) : /* @__PURE__ */ _(T, {
441
431
  illustration: "empty-data",
442
432
  title: "No activity yet",
443
433
  description: "Time logs, leave, payroll, and project assignments for this employee will show up here."
444
434
  })
445
435
  })] }) : null,
446
- /* @__PURE__ */ m(s, {
447
- open: me,
436
+ /* @__PURE__ */ _(s, {
437
+ open: W,
448
438
  onOpenChange: G,
449
- onUpload: ({ file: e, title: t, category: n }) => de({
439
+ onUpload: ({ file: e, title: t, category: n }) => pe({
450
440
  employeeId: Y.id,
451
441
  file: e,
452
442
  title: t,
453
443
  category: n
454
444
  })
455
445
  }),
456
- /* @__PURE__ */ m(o, {
446
+ /* @__PURE__ */ _(o, {
457
447
  open: K !== null,
458
448
  onOpenChange: (e) => {
459
449
  e || q(null);
@@ -463,13 +453,13 @@ function P() {
463
453
  confirmLabel: "Remove",
464
454
  destructive: !0,
465
455
  onConfirm: async () => {
466
- K && (await fe(K), q(null));
456
+ K && (await me(K), q(null));
467
457
  }
468
458
  })
469
459
  ]
470
460
  });
471
461
  }
472
462
  //#endregion
473
- export { P as HrEmployeeProfilePagePage };
463
+ export { N as HrEmployeeProfilePagePage };
474
464
 
475
465
  //# sourceMappingURL=HrEmployeeProfilePagePage.js.map