@burdenoff/microfe-technospam 2026.709.2 → 2026.709.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 (46) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/technospam/TechnoSpamRoutes.d.ts.map +1 -1
  3. package/dist/technospam/TechnoSpamRoutes.js +100 -74
  4. package/dist/technospam/TechnoSpamRoutes.js.map +1 -1
  5. package/dist/technospam/components/PageLayout.d.ts.map +1 -1
  6. package/dist/technospam/components/PageLayout.js +26 -23
  7. package/dist/technospam/components/PageLayout.js.map +1 -1
  8. package/dist/technospam/components/TagInput.d.ts +18 -0
  9. package/dist/technospam/components/TagInput.d.ts.map +1 -0
  10. package/dist/technospam/components/TagInput.js +58 -0
  11. package/dist/technospam/components/TagInput.js.map +1 -0
  12. package/dist/technospam/components/TagStrip.d.ts +12 -0
  13. package/dist/technospam/components/TagStrip.d.ts.map +1 -0
  14. package/dist/technospam/components/TagStrip.js +20 -0
  15. package/dist/technospam/components/TagStrip.js.map +1 -0
  16. package/dist/technospam/components/index.d.ts +2 -0
  17. package/dist/technospam/components/index.d.ts.map +1 -1
  18. package/dist/technospam/components/index.js +2 -0
  19. package/dist/technospam/hooks/useNativeControls.d.ts +27 -0
  20. package/dist/technospam/hooks/useNativeControls.d.ts.map +1 -0
  21. package/dist/technospam/hooks/useNativeControls.js +18 -0
  22. package/dist/technospam/hooks/useNativeControls.js.map +1 -0
  23. package/dist/technospam/hooks/useTechnoSpamAnalytics.d.ts +1 -1
  24. package/dist/technospam/hooks/useTechnoSpamAnalytics.d.ts.map +1 -1
  25. package/dist/technospam/hooks/useTechnoSpamAnalytics.js.map +1 -1
  26. package/dist/technospam/hooks/useTechnoSpamPageView.d.ts +14 -0
  27. package/dist/technospam/hooks/useTechnoSpamPageView.d.ts.map +1 -0
  28. package/dist/technospam/hooks/useTechnoSpamPageView.js +26 -0
  29. package/dist/technospam/hooks/useTechnoSpamPageView.js.map +1 -0
  30. package/dist/technospam/index.js +1 -1
  31. package/dist/technospam/pages/AdminAdminDashboardPagePage.d.ts.map +1 -1
  32. package/dist/technospam/pages/AdminAdminDashboardPagePage.js +408 -399
  33. package/dist/technospam/pages/AdminAdminDashboardPagePage.js.map +1 -1
  34. package/dist/technospam/pages/ApplicationsProblemDetailsPagePage.d.ts.map +1 -1
  35. package/dist/technospam/pages/ApplicationsProblemDetailsPagePage.js +50 -55
  36. package/dist/technospam/pages/ApplicationsProblemDetailsPagePage.js.map +1 -1
  37. package/dist/technospam/pages/ApplicationsProblemsPagePage.js +25 -25
  38. package/dist/technospam/pages/CoursesCourseDetailsPagePage.d.ts.map +1 -1
  39. package/dist/technospam/pages/CoursesCourseDetailsPagePage.js +142 -144
  40. package/dist/technospam/pages/CoursesCourseDetailsPagePage.js.map +1 -1
  41. package/dist/technospam/pages/CoursesCoursesPagePage.js +30 -30
  42. package/dist/technospam/pages/HackathonsHackathonsPagePage.js +29 -29
  43. package/dist/technospam/pages/MentorshipMentorProfilePagePage.js +54 -54
  44. package/dist/technospam/pages/MentorshipMentorsPagePage.js +61 -61
  45. package/dist/technospam/pages/MentorshipSessionsPagePage.js +42 -42
  46. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
1
  import { useTechnoSpam as e, useTechnoSpamNavigate as t } from "../providers/TechnoSpamProvider.js";
2
- import { PageLayout as n } from "../components/PageLayout.js";
3
- import { StatCard as r } from "../components/StatCard.js";
4
- import { MediaCover as i, topicIcon as a } from "../components/MediaCover.js";
5
- import { formatDuration as o } from "../utils/format.js";
6
- import { StatusBadge as s } from "../components/StatusBadge.js";
7
- import { LoadMore as c } from "../components/LoadMore.js";
8
- import { EmptyView as l, ErrorView as u, LoadingGrid as d } from "../components/StateViews.js";
2
+ import { useTechnoSpamAnalytics as n } from "../hooks/useTechnoSpamAnalytics.js";
3
+ import { PageLayout as r } from "../components/PageLayout.js";
4
+ import { StatCard as i } from "../components/StatCard.js";
5
+ import { MediaCover as a, topicIcon as o } from "../components/MediaCover.js";
6
+ import { formatDuration as s } from "../utils/format.js";
7
+ import { StatusBadge as c } from "../components/StatusBadge.js";
8
+ import { LoadMore as l } from "../components/LoadMore.js";
9
+ import { EmptyView as u, ErrorView as d, LoadingGrid as f } from "../components/StateViews.js";
9
10
  import "../components/index.js";
10
- import { pageArg as f, useCoursesQuery as p, usePageLimit as m } from "../api/technospamApi.js";
11
- import { useTechnoSpamAnalytics as h } from "../hooks/useTechnoSpamAnalytics.js";
11
+ import { pageArg as p, useCoursesQuery as m, usePageLimit as h } from "../api/technospamApi.js";
12
12
  import { useMemo as g, useState as _ } from "react";
13
13
  import { BookOpen as v, Clock as y, GraduationCap as b, Layers as x, Search as S, Sparkles as C } from "lucide-react";
14
14
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
@@ -40,10 +40,10 @@ function P({ course: e, onOpen: t }) {
40
40
  return /* @__PURE__ */ T(O, {
41
41
  className: "group flex cursor-pointer flex-col overflow-hidden transition-all duration-200 hover:-translate-y-1 hover:shadow-lg",
42
42
  onClick: t,
43
- children: [/* @__PURE__ */ w(i, {
43
+ children: [/* @__PURE__ */ w(a, {
44
44
  seed: `${e.topic ?? ""} ${e.title}`,
45
- icon: a(e.topic ?? e.title),
46
- children: /* @__PURE__ */ w(s, {
45
+ icon: o(e.topic ?? e.title),
46
+ children: /* @__PURE__ */ w(c, {
47
47
  status: e.level,
48
48
  kind: "level"
49
49
  })
@@ -74,7 +74,7 @@ function P({ course: e, onOpen: t }) {
74
74
  children: [
75
75
  /* @__PURE__ */ w(y, { size: 13 }),
76
76
  " ",
77
- o(e.estimatedMinutes)
77
+ s(e.estimatedMinutes)
78
78
  ]
79
79
  })]
80
80
  }),
@@ -91,48 +91,48 @@ function P({ course: e, onOpen: t }) {
91
91
  });
92
92
  }
93
93
  function F() {
94
- let i = t(), { workspaceId: a } = e(), { emit: s } = h(), [x, E] = _("ALL"), [O, F] = _(""), { limit: I, more: L } = m(), { data: R, loading: z, error: B } = p({
94
+ let a = t(), { workspaceId: o } = e(), { emit: c } = n(), [x, E] = _("ALL"), [O, F] = _(""), { limit: I, more: L } = h(), { data: R, loading: z, error: B } = m({
95
95
  status: "PUBLISHED",
96
- pagination: f(I),
96
+ pagination: p(I),
97
97
  ...x === "ALL" ? {} : { level: x }
98
98
  }), V = R?.tecListCourses.items ?? [], H = R?.tecListCourses.pageInfo.hasMore ?? !1, U = g(() => {
99
99
  let e = O.trim().toLowerCase();
100
100
  return e ? V.filter((t) => t.title.toLowerCase().includes(e) || (t.topic ?? "").toLowerCase().includes(e) || t.tags.some((t) => t.toLowerCase().includes(e))) : V;
101
101
  }, [V, O]);
102
- return /* @__PURE__ */ T(n, {
102
+ return /* @__PURE__ */ T(r, {
103
103
  hero: !0,
104
104
  title: "Course Catalog",
105
105
  description: "Learn technology by doing — practical, project-based courses across the stack.",
106
106
  actions: /* @__PURE__ */ T(D, {
107
107
  variant: "outline",
108
- onClick: () => i("/courses/my-learning-page"),
108
+ onClick: () => a("/courses/my-learning-page"),
109
109
  children: [/* @__PURE__ */ w(b, { size: 16 }), " My Learning"]
110
110
  }),
111
111
  children: [
112
112
  /* @__PURE__ */ T("div", {
113
113
  className: "mb-5 grid grid-cols-2 gap-3 sm:grid-cols-4",
114
114
  children: [
115
- /* @__PURE__ */ w(r, {
115
+ /* @__PURE__ */ w(i, {
116
116
  label: "Courses",
117
117
  value: V.length,
118
118
  icon: v,
119
119
  tone: "blue"
120
120
  }),
121
- /* @__PURE__ */ w(r, {
121
+ /* @__PURE__ */ w(i, {
122
122
  label: "Beginner-friendly",
123
123
  value: V.filter((e) => e.level === "BEGINNER").length,
124
124
  icon: C,
125
125
  tone: "green"
126
126
  }),
127
- /* @__PURE__ */ w(r, {
127
+ /* @__PURE__ */ w(i, {
128
128
  label: "Advanced+",
129
129
  value: V.filter((e) => e.level === "ADVANCED" || e.level === "EXPERT").length,
130
130
  icon: b,
131
131
  tone: "purple"
132
132
  }),
133
- /* @__PURE__ */ w(r, {
133
+ /* @__PURE__ */ w(i, {
134
134
  label: "Total content",
135
- value: o(V.reduce((e, t) => e + t.estimatedMinutes, 0)),
135
+ value: s(V.reduce((e, t) => e + t.estimatedMinutes, 0)),
136
136
  icon: y,
137
137
  tone: "teal"
138
138
  })
@@ -159,8 +159,8 @@ function F() {
159
159
  onChange: (e) => F(e.target.value),
160
160
  onBlur: () => {
161
161
  let e = O.trim();
162
- e && s("technospam.search.performed", {
163
- workspaceId: a,
162
+ e && c("technospam.search.performed", {
163
+ workspaceId: o,
164
164
  entityType: "course",
165
165
  queryLength: e.length
166
166
  });
@@ -168,10 +168,10 @@ function F() {
168
168
  })]
169
169
  })]
170
170
  }),
171
- z && !V.length ? /* @__PURE__ */ w(d, {}) : B ? /* @__PURE__ */ w(u, {
171
+ z && !V.length ? /* @__PURE__ */ w(f, {}) : B ? /* @__PURE__ */ w(d, {
172
172
  title: "Couldn't load courses",
173
173
  error: B
174
- }) : U.length === 0 ? /* @__PURE__ */ w(l, {
174
+ }) : U.length === 0 ? /* @__PURE__ */ w(u, {
175
175
  icon: /* @__PURE__ */ w(v, { size: 26 }),
176
176
  title: O || x !== "ALL" ? "No matching courses" : "No courses published yet",
177
177
  description: O || x !== "ALL" ? "Try a different search or level filter." : "Published courses will appear here. Check back soon — TechnoSpam is pre-launch."
@@ -180,15 +180,15 @@ function F() {
180
180
  children: U.map((e) => /* @__PURE__ */ w(P, {
181
181
  course: e,
182
182
  onOpen: () => {
183
- s("technospam.course.viewed", {
184
- workspaceId: a,
183
+ c("technospam.course.viewed", {
184
+ workspaceId: o,
185
185
  entityId: e.id,
186
186
  entityType: "TEC_COURSE"
187
- }), i(`/courses/course-details-page?id=${e.id}`);
187
+ }), a(`/courses/course-details-page?id=${e.id}`);
188
188
  }
189
189
  }, e.id))
190
190
  }),
191
- /* @__PURE__ */ w(c, {
191
+ /* @__PURE__ */ w(l, {
192
192
  hasMore: H,
193
193
  loading: z,
194
194
  onClick: L
@@ -1,14 +1,14 @@
1
1
  import { useTechnoSpam as e, useTechnoSpamNavigate as t } from "../providers/TechnoSpamProvider.js";
2
- import { PageLayout as n } from "../components/PageLayout.js";
3
- import { StatCard as r } from "../components/StatCard.js";
4
- import { MediaCover as i } from "../components/MediaCover.js";
5
- import { formatDate as a, formatMoney as o } from "../utils/format.js";
6
- import { StatusBadge as s } from "../components/StatusBadge.js";
7
- import { LoadMore as c } from "../components/LoadMore.js";
8
- import { EmptyView as l, ErrorView as u, LoadingGrid as d } from "../components/StateViews.js";
2
+ import { useTechnoSpamAnalytics as n } from "../hooks/useTechnoSpamAnalytics.js";
3
+ import { PageLayout as r } from "../components/PageLayout.js";
4
+ import { StatCard as i } from "../components/StatCard.js";
5
+ import { MediaCover as a } from "../components/MediaCover.js";
6
+ import { formatDate as o, formatMoney as s } from "../utils/format.js";
7
+ import { StatusBadge as c } from "../components/StatusBadge.js";
8
+ import { LoadMore as l } from "../components/LoadMore.js";
9
+ import { EmptyView as u, ErrorView as d, LoadingGrid as f } from "../components/StateViews.js";
9
10
  import "../components/index.js";
10
- import { pageArg as f, useHackathonsQuery as p, usePageLimit as m } from "../api/technospamApi.js";
11
- import { useTechnoSpamAnalytics as h } from "../hooks/useTechnoSpamAnalytics.js";
11
+ import { pageArg as p, useHackathonsQuery as m, usePageLimit as h } from "../api/technospamApi.js";
12
12
  import { useMemo as g, useState as _ } from "react";
13
13
  import { Award as v, CalendarDays as y, Search as b, Sparkles as x, Trophy as S, Users as C } from "lucide-react";
14
14
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
@@ -40,11 +40,11 @@ function N({ hackathon: e, onOpen: t }) {
40
40
  return /* @__PURE__ */ T(D, {
41
41
  className: "group flex cursor-pointer flex-col overflow-hidden transition-all duration-200 hover:-translate-y-1 hover:shadow-lg",
42
42
  onClick: t,
43
- children: [/* @__PURE__ */ w(i, {
43
+ children: [/* @__PURE__ */ w(a, {
44
44
  height: "h-32",
45
45
  seed: e.theme ?? e.id,
46
46
  icon: S,
47
- children: /* @__PURE__ */ w(s, { status: e.status })
47
+ children: /* @__PURE__ */ w(c, { status: e.status })
48
48
  }), /* @__PURE__ */ T("div", {
49
49
  className: "flex flex-1 flex-col gap-3 p-4",
50
50
  children: [
@@ -65,10 +65,10 @@ function N({ hackathon: e, onOpen: t }) {
65
65
  children: [
66
66
  /* @__PURE__ */ w(y, { size: 13 }),
67
67
  " ",
68
- a(e.startAt),
68
+ o(e.startAt),
69
69
  " –",
70
70
  " ",
71
- a(e.endAt)
71
+ o(e.endAt)
72
72
  ]
73
73
  }), /* @__PURE__ */ T("span", {
74
74
  className: "inline-flex items-center gap-1",
@@ -84,7 +84,7 @@ function N({ hackathon: e, onOpen: t }) {
84
84
  children: [
85
85
  /* @__PURE__ */ w(v, { size: 15 }),
86
86
  " ",
87
- o(e.prizePool, e.currency),
87
+ s(e.prizePool, e.currency),
88
88
  " prize pool"
89
89
  ]
90
90
  }),
@@ -101,14 +101,14 @@ function N({ hackathon: e, onOpen: t }) {
101
101
  });
102
102
  }
103
103
  function P() {
104
- let i = t(), { workspaceId: a } = e(), { emit: s } = h(), [y, C] = _("ALL"), [E, D] = _(""), { limit: P, more: F } = m(), { data: I, loading: L, error: R } = p({
105
- pagination: f(P),
104
+ let a = t(), { workspaceId: o } = e(), { emit: c } = n(), [y, C] = _("ALL"), [E, D] = _(""), { limit: P, more: F } = h(), { data: I, loading: L, error: R } = m({
105
+ pagination: p(P),
106
106
  ...y === "ALL" ? {} : { status: y }
107
107
  }), z = I?.tecListHackathons.items ?? [], B = I?.tecListHackathons.pageInfo.hasMore ?? !1, V = g(() => {
108
108
  let e = E.trim().toLowerCase();
109
109
  return e ? z.filter((t) => t.title.toLowerCase().includes(e) || (t.theme ?? "").toLowerCase().includes(e) || t.tags.some((t) => t.toLowerCase().includes(e))) : z;
110
110
  }, [z, E]), H = V.filter((e) => e.status === "REGISTRATION_OPEN").length, U = V.reduce((e, t) => e + t.prizePool, 0), W = V[0]?.currency ?? "USD";
111
- return /* @__PURE__ */ T(n, {
111
+ return /* @__PURE__ */ T(r, {
112
112
  hero: !0,
113
113
  title: "Hackathons",
114
114
  description: "Compete, collaborate, and ship real projects with a team in a fixed window.",
@@ -116,21 +116,21 @@ function P() {
116
116
  /* @__PURE__ */ T("div", {
117
117
  className: "mb-5 grid grid-cols-1 gap-3 sm:grid-cols-3",
118
118
  children: [
119
- /* @__PURE__ */ w(r, {
119
+ /* @__PURE__ */ w(i, {
120
120
  label: "Hackathons",
121
121
  value: V.length,
122
122
  icon: S,
123
123
  tone: "purple"
124
124
  }),
125
- /* @__PURE__ */ w(r, {
125
+ /* @__PURE__ */ w(i, {
126
126
  label: "Registration open",
127
127
  value: H,
128
128
  icon: x,
129
129
  tone: "green"
130
130
  }),
131
- /* @__PURE__ */ w(r, {
131
+ /* @__PURE__ */ w(i, {
132
132
  label: "Total prize pool",
133
- value: o(U, W),
133
+ value: s(U, W),
134
134
  icon: v,
135
135
  tone: "amber"
136
136
  })
@@ -157,8 +157,8 @@ function P() {
157
157
  onChange: (e) => D(e.target.value),
158
158
  onBlur: () => {
159
159
  let e = E.trim();
160
- e && s("technospam.search.performed", {
161
- workspaceId: a,
160
+ e && c("technospam.search.performed", {
161
+ workspaceId: o,
162
162
  entityType: "hackathon",
163
163
  queryLength: e.length
164
164
  });
@@ -166,10 +166,10 @@ function P() {
166
166
  })]
167
167
  })]
168
168
  }),
169
- L && !V.length ? /* @__PURE__ */ w(d, {}) : R ? /* @__PURE__ */ w(u, {
169
+ L && !V.length ? /* @__PURE__ */ w(f, {}) : R ? /* @__PURE__ */ w(d, {
170
170
  title: "Couldn't load hackathons",
171
171
  error: R
172
- }) : V.length === 0 ? /* @__PURE__ */ w(l, {
172
+ }) : V.length === 0 ? /* @__PURE__ */ w(u, {
173
173
  icon: /* @__PURE__ */ w(S, { size: 26 }),
174
174
  title: y === "ALL" ? "No hackathons yet" : "No hackathons in this stage",
175
175
  description: y === "ALL" ? "Upcoming hackathons will appear here. Check back soon — TechnoSpam is pre-launch." : "Try a different stage filter."
@@ -178,15 +178,15 @@ function P() {
178
178
  children: V.map((e) => /* @__PURE__ */ w(N, {
179
179
  hackathon: e,
180
180
  onOpen: () => {
181
- s("technospam.hackathon.viewed", {
182
- workspaceId: a,
181
+ c("technospam.hackathon.viewed", {
182
+ workspaceId: o,
183
183
  entityId: e.id,
184
184
  entityType: "TEC_HACKATHON"
185
- }), i(`/hackathons/hackathon-details-page?id=${e.id}`);
185
+ }), a(`/hackathons/hackathon-details-page?id=${e.id}`);
186
186
  }
187
187
  }, e.id))
188
188
  }),
189
- /* @__PURE__ */ w(c, {
189
+ /* @__PURE__ */ w(l, {
190
190
  hasMore: B,
191
191
  loading: L,
192
192
  onClick: F
@@ -1,23 +1,23 @@
1
1
  import { useTechnoSpam as e } from "../providers/TechnoSpamProvider.js";
2
- import { cn as t } from "../utils/cn.js";
3
- import { PageLayout as n } from "../components/PageLayout.js";
4
- import { StatCard as r } from "../components/StatCard.js";
5
- import { coverGradient as i, topicIcon as a } from "../components/MediaCover.js";
6
- import { formatDateTime as o, formatDuration as s, formatMoney as c } from "../utils/format.js";
7
- import { StatusBadge as l } from "../components/StatusBadge.js";
8
- import { EmptyView as u, ErrorView as d } from "../components/StateViews.js";
2
+ import { useTechnoSpamAnalytics as t } from "../hooks/useTechnoSpamAnalytics.js";
3
+ import { cn as n } from "../utils/cn.js";
4
+ import { PageLayout as r } from "../components/PageLayout.js";
5
+ import { StatCard as i } from "../components/StatCard.js";
6
+ import { coverGradient as a, topicIcon as o } from "../components/MediaCover.js";
7
+ import { formatDateTime as s, formatDuration as c, formatMoney as l } from "../utils/format.js";
8
+ import { StatusBadge as u } from "../components/StatusBadge.js";
9
+ import { EmptyView as d, ErrorView as f } from "../components/StateViews.js";
9
10
  import "../components/index.js";
10
- import { notify as f } from "../lib/toast.js";
11
- import { useBookSession as p, useMentorQuery as m } from "../api/technospamApi.js";
12
- import { useTechnoSpamAnalytics as h } from "../hooks/useTechnoSpamAnalytics.js";
11
+ import { notify as p } from "../lib/toast.js";
12
+ import { useBookSession as m, useMentorQuery as h } from "../api/technospamApi.js";
13
13
  import { createElement as g, useState as _ } from "react";
14
14
  import { Award as v, CalendarClock as y, DollarSign as b, MessageSquare as x, Star as S, Video as C } from "lucide-react";
15
15
  import { useSearchParams as w } from "react-router-dom";
16
16
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
17
17
  import { Badge as D, Button as O, GlassCard as k, Input as A, Skeleton as j, Textarea as M } from "@burdenoff/fe-libs/ui";
18
18
  //#region src/technospam/pages/MentorshipMentorProfilePagePage.tsx
19
- function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
20
- let [i, a] = _(""), [o, s] = _(""), [c, l] = _(""), [u, d] = _("60"), [m, { loading: g }] = p(), { emit: v } = h(), b = c ? new Date(c) : null, x = b != null && !Number.isNaN(b.getTime()), S = i.trim().length > 0 && x && !g && !t;
19
+ function N({ mentorId: e, disabled: n, onBooked: r, workspaceId: i }) {
20
+ let [a, o] = _(""), [s, c] = _(""), [l, u] = _(""), [d, f] = _("60"), [h, { loading: g }] = m(), { emit: v } = t(), b = l ? new Date(l) : null, x = b != null && !Number.isNaN(b.getTime()), S = a.trim().length > 0 && x && !g && !n;
21
21
  return /* @__PURE__ */ E(k, {
22
22
  className: "p-5",
23
23
  children: [
@@ -34,7 +34,7 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
34
34
  children: "Schedule 1:1 time with your mentor."
35
35
  })] })]
36
36
  }),
37
- t ? /* @__PURE__ */ T("p", {
37
+ n ? /* @__PURE__ */ T("p", {
38
38
  className: "rounded-lg border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-secondary",
39
39
  children: "This mentor isn't accepting new mentees right now."
40
40
  }) : null,
@@ -49,9 +49,9 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
49
49
  })]
50
50
  }), /* @__PURE__ */ T(A, {
51
51
  placeholder: "e.g. System design interview prep",
52
- value: i,
53
- onChange: (e) => a(e.target.value),
54
- disabled: t
52
+ value: a,
53
+ onChange: (e) => o(e.target.value),
54
+ disabled: n
55
55
  })] }),
56
56
  /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
57
57
  className: "mb-1.5 block text-sm font-medium text-text-primary",
@@ -59,9 +59,9 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
59
59
  }), /* @__PURE__ */ T(M, {
60
60
  rows: 3,
61
61
  placeholder: "What would you like to cover? Share context so your mentor can prepare.",
62
- value: o,
63
- onChange: (e) => s(e.target.value),
64
- disabled: t
62
+ value: s,
63
+ onChange: (e) => c(e.target.value),
64
+ disabled: n
65
65
  })] }),
66
66
  /* @__PURE__ */ E("div", {
67
67
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
@@ -73,9 +73,9 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
73
73
  })]
74
74
  }), /* @__PURE__ */ T(A, {
75
75
  type: "datetime-local",
76
- value: c,
77
- onChange: (e) => l(e.target.value),
78
- disabled: t
76
+ value: l,
77
+ onChange: (e) => u(e.target.value),
78
+ disabled: n
79
79
  })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
80
80
  className: "mb-1.5 block text-sm font-medium text-text-primary",
81
81
  children: "Duration (min)"
@@ -83,9 +83,9 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
83
83
  type: "number",
84
84
  min: 15,
85
85
  step: 15,
86
- value: u,
87
- onChange: (e) => d(e.target.value),
88
- disabled: t
86
+ value: d,
87
+ onChange: (e) => f(e.target.value),
88
+ disabled: n
89
89
  })] })]
90
90
  }),
91
91
  /* @__PURE__ */ E(O, {
@@ -94,23 +94,23 @@ function N({ mentorId: e, disabled: t, onBooked: n, workspaceId: r }) {
94
94
  if (!S || !b) return;
95
95
  let t = {
96
96
  mentorId: e,
97
- topic: i.trim(),
97
+ topic: a.trim(),
98
98
  scheduledAt: b.toISOString()
99
99
  };
100
- o.trim() && (t.agenda = o.trim());
101
- let c = Number.parseInt(u, 10);
102
- !Number.isNaN(c) && c > 0 && (t.durationMinutes = c), v("technospam.mentor.book_clicked", {
103
- workspaceId: r,
100
+ s.trim() && (t.agenda = s.trim());
101
+ let n = Number.parseInt(d, 10);
102
+ !Number.isNaN(n) && n > 0 && (t.durationMinutes = n), v("technospam.mentor.book_clicked", {
103
+ workspaceId: i,
104
104
  entityId: e,
105
105
  entityType: "TEC_MENTOR"
106
106
  });
107
- let p = await m({ variables: { input: t } });
108
- p.data?.tecBookSession && (v("technospam.mentor.booked", {
109
- workspaceId: r,
107
+ let l = await h({ variables: { input: t } });
108
+ l.data?.tecBookSession && (v("technospam.mentor.booked", {
109
+ workspaceId: i,
110
110
  entityId: e,
111
111
  entityType: "TEC_MENTOR",
112
- sessionId: p.data.tecBookSession.id
113
- }), f.success("Session requested", "Your mentor will confirm the booking soon."), a(""), s(""), l(""), d("60"), n?.());
112
+ sessionId: l.data.tecBookSession.id
113
+ }), p.success("Session requested", "Your mentor will confirm the booking soon."), o(""), c(""), u(""), f("60"), r?.());
114
114
  },
115
115
  disabled: !S,
116
116
  children: [
@@ -140,36 +140,36 @@ function P({ session: e }) {
140
140
  }), /* @__PURE__ */ E("div", {
141
141
  className: "text-xs text-text-muted",
142
142
  children: [
143
- o(e.scheduledAt),
143
+ s(e.scheduledAt),
144
144
  " · ",
145
- s(e.durationMinutes)
145
+ c(e.durationMinutes)
146
146
  ]
147
147
  })]
148
148
  }),
149
- /* @__PURE__ */ T(l, { status: e.status })
149
+ /* @__PURE__ */ T(u, { status: e.status })
150
150
  ]
151
151
  });
152
152
  }
153
153
  function F() {
154
- let [o] = w(), s = o.get("id") ?? "", { workspaceId: f } = e(), { data: p, loading: h, error: _, refetch: C } = m(s), O = p?.tecMentor ?? null;
155
- if (h && !O) return /* @__PURE__ */ E(n, {
154
+ let [t] = w(), s = t.get("id") ?? "", { workspaceId: c } = e(), { data: p, loading: m, error: _, refetch: C } = h(s), O = p?.tecMentor ?? null;
155
+ if (m && !O) return /* @__PURE__ */ E(r, {
156
156
  title: "Mentor",
157
157
  backPath: "/mentorship/mentors-page",
158
158
  children: [/* @__PURE__ */ T(j, { className: "mb-4 h-40 w-full rounded-xl" }), /* @__PURE__ */ T(j, { className: "h-64 w-full rounded-xl" })]
159
159
  });
160
- if (_ || !O) return /* @__PURE__ */ T(n, {
160
+ if (_ || !O) return /* @__PURE__ */ T(r, {
161
161
  title: "Mentor",
162
162
  backPath: "/mentorship/mentors-page",
163
- children: _ ? /* @__PURE__ */ T(d, {
163
+ children: _ ? /* @__PURE__ */ T(f, {
164
164
  title: "Couldn't load mentor",
165
165
  error: _
166
- }) : /* @__PURE__ */ T(u, {
166
+ }) : /* @__PURE__ */ T(d, {
167
167
  title: "Mentor not found",
168
168
  description: "This mentor profile may no longer be available."
169
169
  })
170
170
  });
171
- let A = [...O.sessions ?? []].sort((e, t) => new Date(t.scheduledAt).getTime() - new Date(e.scheduledAt).getTime()).slice(0, 5), M = a(O.expertise.join(" ") || O.headline);
172
- return /* @__PURE__ */ E(n, {
171
+ let A = [...O.sessions ?? []].sort((e, t) => new Date(t.scheduledAt).getTime() - new Date(e.scheduledAt).getTime()).slice(0, 5), M = o(O.expertise.join(" ") || O.headline);
172
+ return /* @__PURE__ */ E(r, {
173
173
  hero: !0,
174
174
  backPath: "/mentorship/mentors-page",
175
175
  title: "Mentor Profile",
@@ -177,7 +177,7 @@ function F() {
177
177
  /* @__PURE__ */ E(k, {
178
178
  className: "mb-6 overflow-hidden p-0",
179
179
  children: [/* @__PURE__ */ E("div", {
180
- className: t("relative h-24 overflow-hidden bg-gradient-to-br", i(O.headline)),
180
+ className: n("relative h-24 overflow-hidden bg-gradient-to-br", a(O.headline)),
181
181
  children: [g(M, {
182
182
  className: "pointer-events-none absolute -right-3 -top-4 text-white/15",
183
183
  size: 120,
@@ -191,7 +191,7 @@ function F() {
191
191
  children: [/* @__PURE__ */ E("div", {
192
192
  className: "relative shrink-0",
193
193
  children: [/* @__PURE__ */ T("span", {
194
- className: t("flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-br text-white shadow-lg ring-4 ring-bg-surface", i(O.headline)),
194
+ className: n("flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-br text-white shadow-lg ring-4 ring-bg-surface", a(O.headline)),
195
195
  children: g(M, {
196
196
  size: 34,
197
197
  strokeWidth: 1.6
@@ -204,7 +204,7 @@ function F() {
204
204
  children: O.headline
205
205
  }), /* @__PURE__ */ E("div", {
206
206
  className: "mt-2 flex flex-wrap items-center gap-2",
207
- children: [/* @__PURE__ */ T(l, { status: O.status }), O.isAcceptingMentees ? /* @__PURE__ */ E(D, {
207
+ children: [/* @__PURE__ */ T(u, { status: O.status }), O.isAcceptingMentees ? /* @__PURE__ */ E(D, {
208
208
  variant: "outline",
209
209
  className: "inline-flex items-center gap-1.5 border-status-success-border bg-status-success-bg-subtle text-status-success-text",
210
210
  children: [/* @__PURE__ */ T("span", { className: "h-1.5 w-1.5 rounded-full bg-status-success-text" }), " Accepting mentees"]
@@ -229,25 +229,25 @@ function F() {
229
229
  /* @__PURE__ */ E("div", {
230
230
  className: "mb-6 grid grid-cols-2 gap-3 sm:grid-cols-4",
231
231
  children: [
232
- /* @__PURE__ */ T(r, {
232
+ /* @__PURE__ */ T(i, {
233
233
  label: "Rate",
234
- value: `${c(O.hourlyRate, O.currency)}/hr`,
234
+ value: `${l(O.hourlyRate, O.currency)}/hr`,
235
235
  icon: b,
236
236
  tone: "blue"
237
237
  }),
238
- /* @__PURE__ */ T(r, {
238
+ /* @__PURE__ */ T(i, {
239
239
  label: "Rating",
240
240
  value: O.ratingAvg > 0 ? O.ratingAvg.toFixed(1) : "New",
241
241
  icon: S,
242
242
  tone: "amber"
243
243
  }),
244
- /* @__PURE__ */ T(r, {
244
+ /* @__PURE__ */ T(i, {
245
245
  label: "Sessions",
246
246
  value: O.sessionsCount,
247
247
  icon: x,
248
248
  tone: "purple"
249
249
  }),
250
- /* @__PURE__ */ T(r, {
250
+ /* @__PURE__ */ T(i, {
251
251
  label: "Status",
252
252
  value: O.status === "ACTIVE" ? "Active" : "Pending",
253
253
  icon: v,
@@ -261,7 +261,7 @@ function F() {
261
261
  mentorId: O.id,
262
262
  disabled: !O.isAcceptingMentees,
263
263
  onBooked: () => void C(),
264
- workspaceId: f
264
+ workspaceId: c
265
265
  }), /* @__PURE__ */ E(k, {
266
266
  className: "p-5",
267
267
  children: [/* @__PURE__ */ E("div", {