@burdenoff/microfe-crewfoundry 2026.1013.2 → 2026.1029.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 (198) hide show
  1. package/dist/crewfoundry/CrewFoundryRoot.d.ts.map +1 -1
  2. package/dist/crewfoundry/CrewFoundryRoot.js +160 -256
  3. package/dist/crewfoundry/CrewFoundryRoot.js.map +1 -1
  4. package/dist/crewfoundry/CrewFoundryRoutes.d.ts.map +1 -1
  5. package/dist/crewfoundry/CrewFoundryRoutes.js +152 -192
  6. package/dist/crewfoundry/CrewFoundryRoutes.js.map +1 -1
  7. package/dist/crewfoundry/components/InlineError.d.ts +5 -0
  8. package/dist/crewfoundry/components/InlineError.d.ts.map +1 -0
  9. package/dist/crewfoundry/components/InlineError.js +17 -0
  10. package/dist/crewfoundry/components/InlineError.js.map +1 -0
  11. package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts +14 -0
  12. package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts.map +1 -0
  13. package/dist/crewfoundry/components/marketplace/BookServiceModal.js +75 -0
  14. package/dist/crewfoundry/components/marketplace/BookServiceModal.js.map +1 -0
  15. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts +24 -0
  16. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts.map +1 -0
  17. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js +47 -0
  18. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js.map +1 -0
  19. package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts +12 -0
  20. package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts.map +1 -0
  21. package/dist/crewfoundry/components/marketplace/ServiceListingModal.js +123 -0
  22. package/dist/crewfoundry/components/marketplace/ServiceListingModal.js.map +1 -0
  23. package/dist/crewfoundry/components/viz/CertificateCard.js +4 -118
  24. package/dist/crewfoundry/components/viz/PathSteps.js +3 -68
  25. package/dist/crewfoundry/components/viz/lib/geometry.js +5 -13
  26. package/dist/crewfoundry/components/viz/lib/geometry.js.map +1 -1
  27. package/dist/crewfoundry/lib/analytics.d.ts +1 -6
  28. package/dist/crewfoundry/lib/analytics.d.ts.map +1 -1
  29. package/dist/crewfoundry/lib/analytics.js +3 -18
  30. package/dist/crewfoundry/lib/analytics.js.map +1 -1
  31. package/dist/crewfoundry/lib/companyFinance.d.ts +3 -7
  32. package/dist/crewfoundry/lib/companyFinance.d.ts.map +1 -1
  33. package/dist/crewfoundry/lib/companyFinance.js +3 -8
  34. package/dist/crewfoundry/lib/companyFinance.js.map +1 -1
  35. package/dist/crewfoundry/lib/learning.d.ts +12 -0
  36. package/dist/crewfoundry/lib/learning.d.ts.map +1 -0
  37. package/dist/crewfoundry/lib/learning.js +26 -0
  38. package/dist/crewfoundry/lib/learning.js.map +1 -0
  39. package/dist/crewfoundry/lib/marketplace.d.ts +30 -0
  40. package/dist/crewfoundry/lib/marketplace.d.ts.map +1 -0
  41. package/dist/crewfoundry/lib/marketplace.js +91 -0
  42. package/dist/crewfoundry/lib/marketplace.js.map +1 -0
  43. package/dist/crewfoundry/lib/useEnsureLoaded.d.ts +7 -0
  44. package/dist/crewfoundry/lib/useEnsureLoaded.d.ts.map +1 -0
  45. package/dist/crewfoundry/lib/useEnsureLoaded.js +25 -0
  46. package/dist/crewfoundry/lib/useEnsureLoaded.js.map +1 -0
  47. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.d.ts.map +1 -1
  48. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js +12 -25
  49. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js.map +1 -1
  50. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.d.ts.map +1 -1
  51. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +145 -157
  52. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
  53. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.d.ts.map +1 -1
  54. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +14 -14
  55. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
  56. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.d.ts.map +1 -1
  57. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +14 -14
  58. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
  59. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.d.ts.map +1 -1
  60. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js +71 -33
  61. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js.map +1 -1
  62. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.d.ts.map +1 -1
  63. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js +247 -173
  64. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js.map +1 -1
  65. package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts +12 -0
  66. package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts.map +1 -1
  67. package/dist/crewfoundry/pages/LearningCoursesPagePage.js +307 -293
  68. package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
  69. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts +2 -0
  70. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts.map +1 -0
  71. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js +223 -0
  72. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js.map +1 -0
  73. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts +4 -0
  74. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts.map +1 -1
  75. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js +115 -160
  76. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js.map +1 -1
  77. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.d.ts.map +1 -1
  78. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js +165 -75
  79. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js.map +1 -1
  80. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts +7 -0
  81. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts.map +1 -0
  82. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js +175 -0
  83. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js.map +1 -0
  84. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.d.ts.map +1 -1
  85. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js +182 -223
  86. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
  87. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.d.ts.map +1 -1
  88. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js +168 -227
  89. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js.map +1 -1
  90. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.d.ts.map +1 -1
  91. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js +127 -290
  92. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js.map +1 -1
  93. package/dist/crewfoundry/store/crewfoundryStore.d.ts +138 -78
  94. package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
  95. package/dist/crewfoundry/store/crewfoundryStore.js +323 -244
  96. package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
  97. package/dist/crewfoundry/utils/dateUtils.d.ts +5 -0
  98. package/dist/crewfoundry/utils/dateUtils.d.ts.map +1 -1
  99. package/dist/crewfoundry/utils/dateUtils.js +10 -1
  100. package/dist/crewfoundry/utils/dateUtils.js.map +1 -1
  101. package/dist/generated/global-types.d.ts +5145 -1627
  102. package/dist/generated/global-types.d.ts.map +1 -1
  103. package/dist/generated/wspace-types.d.ts +100373 -34602
  104. package/dist/generated/wspace-types.d.ts.map +1 -1
  105. package/dist/utils/pageContext.d.ts.map +1 -1
  106. package/dist/utils/pageContext.js +0 -1
  107. package/dist/utils/pageContext.js.map +1 -1
  108. package/package.json +1 -1
  109. package/dist/crewfoundry/components/viz/CertificateCard.js.map +0 -1
  110. package/dist/crewfoundry/components/viz/PathSteps.js.map +0 -1
  111. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts +0 -2
  112. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts.map +0 -1
  113. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js +0 -53
  114. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js.map +0 -1
  115. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts +0 -2
  116. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts.map +0 -1
  117. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +0 -107
  118. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +0 -1
  119. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts +0 -2
  120. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts.map +0 -1
  121. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js +0 -62
  122. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js.map +0 -1
  123. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts +0 -2
  124. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts.map +0 -1
  125. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js +0 -37
  126. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js.map +0 -1
  127. package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts +0 -2
  128. package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts.map +0 -1
  129. package/dist/crewfoundry/pages/LearningCertificatesPagePage.js +0 -111
  130. package/dist/crewfoundry/pages/LearningCertificatesPagePage.js.map +0 -1
  131. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts +0 -2
  132. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts.map +0 -1
  133. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js +0 -309
  134. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js.map +0 -1
  135. package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts +0 -2
  136. package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts.map +0 -1
  137. package/dist/crewfoundry/pages/LearningLearningPagePage.js +0 -200
  138. package/dist/crewfoundry/pages/LearningLearningPagePage.js.map +0 -1
  139. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts +0 -2
  140. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts.map +0 -1
  141. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js +0 -190
  142. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js.map +0 -1
  143. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts +0 -2
  144. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts.map +0 -1
  145. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js +0 -230
  146. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +0 -1
  147. package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts +0 -2
  148. package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts.map +0 -1
  149. package/dist/crewfoundry/pages/LearningMyLearningPagePage.js +0 -293
  150. package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +0 -1
  151. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts +0 -2
  152. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts.map +0 -1
  153. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js +0 -163
  154. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js.map +0 -1
  155. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts +0 -2
  156. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts.map +0 -1
  157. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js +0 -365
  158. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js.map +0 -1
  159. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts +0 -2
  160. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts.map +0 -1
  161. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js +0 -224
  162. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js.map +0 -1
  163. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts +0 -2
  164. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts.map +0 -1
  165. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js +0 -180
  166. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js.map +0 -1
  167. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts +0 -2
  168. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts.map +0 -1
  169. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js +0 -38
  170. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js.map +0 -1
  171. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts +0 -2
  172. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts.map +0 -1
  173. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js +0 -204
  174. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js.map +0 -1
  175. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts +0 -2
  176. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts.map +0 -1
  177. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js +0 -55
  178. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js.map +0 -1
  179. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts +0 -2
  180. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts.map +0 -1
  181. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js +0 -335
  182. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +0 -1
  183. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts +0 -2
  184. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts.map +0 -1
  185. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js +0 -160
  186. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js.map +0 -1
  187. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts +0 -2
  188. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts.map +0 -1
  189. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js +0 -80
  190. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js.map +0 -1
  191. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts +0 -2
  192. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts.map +0 -1
  193. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js +0 -191
  194. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js.map +0 -1
  195. package/dist/crewfoundry/utils/courseProgress.d.ts +0 -33
  196. package/dist/crewfoundry/utils/courseProgress.d.ts.map +0 -1
  197. package/dist/crewfoundry/utils/courseProgress.js +0 -46
  198. package/dist/crewfoundry/utils/courseProgress.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { useCrewFoundryStore as e } from "../store/crewfoundryStore.js";
2
- import { formatEnumLabel as t } from "../utils/formatEnumLabel.js";
3
- import { AvatarStack as n } from "../components/viz/AvatarStack.js";
1
+ import { CONVERSATIONS_ROUTE as e, useCrewFoundryStore as t } from "../store/crewfoundryStore.js";
2
+ import { formatEnumLabel as n } from "../utils/formatEnumLabel.js";
3
+ import { AvatarStack as r } from "../components/viz/AvatarStack.js";
4
4
  import "../components/viz/index.js";
5
- import { FormModal as r, useFormModal as ee } from "../components/forms/FormModal.js";
6
- import { useMemo as i, useState as a } from "react";
7
- import { Eye as o, MessageSquare as s, Pencil as te, Pin as c, PinOff as ne, Plus as re, Search as ie, Send as ae, Trash2 as l } from "lucide-react";
8
- import { useNavigate as u } from "react-router";
9
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
10
- import { AlertDialog as p, AlertDialogAction as m, AlertDialogCancel as h, AlertDialogContent as g, AlertDialogDescription as _, AlertDialogFooter as oe, AlertDialogHeader as v, AlertDialogTitle as se, Badge as y, Button as b, Card as ce, CardContent as x, CardHeader as S, CardTitle as C, GlassCard as le, GradientText as ue, IllustratedEmptyState as de, Input as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
11
- import { useGlobalUi as E } from "@burdenoff/fe-libs/shared/providers/shell";
12
- import { formatRelativeTime as D } from "@burdenoff/fe-libs/shared/utils";
5
+ import { FormModal as ee, useFormModal as i } from "../components/forms/FormModal.js";
6
+ import { useMemo as a, useState as o } from "react";
7
+ import { Eye as s, MessageSquare as c, Pencil as l, Pin as u, PinOff as d, Plus as f, Search as te, Send as ne, Trash2 as re } from "lucide-react";
8
+ import { useNavigate as ie } from "react-router";
9
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ import { AlertDialog as h, AlertDialogAction as g, AlertDialogCancel as _, AlertDialogContent as ae, AlertDialogDescription as oe, AlertDialogFooter as se, AlertDialogHeader as v, AlertDialogTitle as y, Badge as b, Button as x, Card as ce, CardContent as S, CardHeader as C, CardTitle as w, GlassCard as le, GradientText as ue, IllustratedEmptyState as de, Input as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
11
+ import { useGlobalUi as D } from "@burdenoff/fe-libs/shared/providers/shell";
12
+ import { formatRelativeTime as O } from "@burdenoff/fe-libs/shared/utils";
13
13
  //#region src/crewfoundry/pages/CommunicationsAnnouncementsPagePage.tsx
14
- var O = [
14
+ var k = [
15
15
  {
16
16
  label: "General",
17
17
  value: "general"
@@ -32,7 +32,7 @@ var O = [
32
32
  label: "Event",
33
33
  value: "event"
34
34
  }
35
- ], k = [
35
+ ], A = [
36
36
  {
37
37
  label: "Low",
38
38
  value: "low"
@@ -49,18 +49,18 @@ var O = [
49
49
  label: "Urgent",
50
50
  value: "urgent"
51
51
  }
52
- ], A = {
52
+ ], j = {
53
53
  general: "bg-bg-sunken text-text-secondary",
54
54
  hr: "bg-status-success-bg text-status-success-text",
55
55
  it: "bg-bg-sunken text-text-secondary",
56
56
  emergency: "bg-status-error-bg text-status-error-text",
57
57
  event: "bg-status-info-bg text-status-info-text"
58
- }, j = {
58
+ }, M = {
59
59
  low: "bg-bg-sunken text-text-secondary",
60
60
  medium: "bg-bg-sunken text-text-secondary",
61
61
  high: "bg-status-warning-bg text-status-warning-text",
62
62
  urgent: "bg-status-error-bg text-status-error-text"
63
- }, M = [
63
+ }, N = [
64
64
  {
65
65
  name: "title",
66
66
  label: "Title",
@@ -92,7 +92,7 @@ var O = [
92
92
  label: "Category",
93
93
  type: "select",
94
94
  required: !0,
95
- options: O,
95
+ options: k,
96
96
  placeholder: "Select a category"
97
97
  },
98
98
  {
@@ -100,7 +100,7 @@ var O = [
100
100
  label: "Priority",
101
101
  type: "select",
102
102
  required: !0,
103
- options: k,
103
+ options: A,
104
104
  placeholder: "Select a priority"
105
105
  },
106
106
  {
@@ -114,29 +114,29 @@ var O = [
114
114
  label: "Pin to top",
115
115
  type: "switch"
116
116
  }
117
- ], N = M.filter((e) => e.name !== "author" && e.name !== "authorRole"), P = (e) => {
117
+ ], P = N.filter((e) => e.name !== "author" && e.name !== "authorRole"), F = (e) => {
118
118
  if (!e) return "";
119
119
  try {
120
- return D(e);
120
+ return O(e);
121
121
  } catch {
122
122
  return e;
123
123
  }
124
124
  };
125
- function F() {
126
- let { announcements: D, notifications: O, addAnnouncement: k, updateAnnouncement: F, removeAnnouncement: I } = e(), { showToast: L } = E(), R = u(), z = ee(), [B, V] = a(null), [H, U] = a(!1), [W, fe] = a(""), [pe, me] = a(""), G = z.context, K = i(() => O.filter((e) => e.category === "communications"), [O]), q = W.trim().toLowerCase(), J = i(() => q.length === 0 ? D : D.filter((e) => `${e.title} ${e.content} ${e.tags.join(" ")}`.toLowerCase().includes(q)), [D, q]), Y = J.filter((e) => e.isPinned), X = J.filter((e) => !e.isPinned), he = async (e) => {
125
+ function I() {
126
+ let { announcements: O, notifications: k, addAnnouncement: A, updateAnnouncement: I, removeAnnouncement: L } = t(), { showToast: R } = D(), z = ie(), B = i(), [V, H] = o(null), [U, W] = o(!1), [G, fe] = o(""), K = B.context, q = a(() => k.filter((e) => e.category === "communications"), [k]), J = G.trim().toLowerCase(), Y = a(() => J.length === 0 ? O : O.filter((e) => `${e.title} ${e.content} ${e.tags.join(" ")}`.toLowerCase().includes(J)), [O, J]), X = Y.filter((e) => e.isPinned), Z = Y.filter((e) => !e.isPinned), pe = async (e) => {
127
127
  let t = Array.isArray(e.tags) ? e.tags : [];
128
- if (G) {
129
- await F(G.id, {
128
+ if (K) {
129
+ await I(K.id, {
130
130
  title: String(e.title),
131
131
  content: String(e.content),
132
132
  category: String(e.category),
133
133
  priority: String(e.priority),
134
134
  isPinned: !!e.isPinned,
135
135
  tags: t
136
- }), L("Announcement updated", "success");
136
+ }), R("Announcement updated", "success");
137
137
  return;
138
138
  }
139
- await k({
139
+ await A({
140
140
  id: crypto.randomUUID(),
141
141
  title: String(e.title),
142
142
  content: String(e.content),
@@ -148,118 +148,118 @@ function F() {
148
148
  createdAt: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10),
149
149
  viewCount: 0,
150
150
  tags: t
151
- }), L("Announcement published", "success");
152
- }, ge = async (e) => {
151
+ }), R("Announcement published", "success");
152
+ }, me = async (e) => {
153
153
  try {
154
- await F(e.id, { isPinned: !e.isPinned }), L(e.isPinned ? "Unpinned" : "Pinned to top", "success");
154
+ await I(e.id, { isPinned: !e.isPinned }), R(e.isPinned ? "Unpinned" : "Pinned to top", "success");
155
155
  } catch (e) {
156
- L(e instanceof Error ? e.message : "Unable to update announcement", "error");
156
+ R(e instanceof Error ? e.message : "Unable to update announcement", "error");
157
157
  }
158
- }, _e = async () => {
159
- if (B) {
160
- U(!0);
158
+ }, he = async () => {
159
+ if (V) {
160
+ W(!0);
161
161
  try {
162
- await I(B.id), L("Announcement deleted", "success"), V(null);
162
+ await L(V.id), R("Announcement deleted", "success"), H(null);
163
163
  } catch (e) {
164
- L(e instanceof Error ? e.message : "Unable to delete announcement", "error");
164
+ R(e instanceof Error ? e.message : "Unable to delete announcement", "error");
165
165
  } finally {
166
- U(!1);
166
+ W(!1);
167
167
  }
168
168
  }
169
- }, Z = () => R("../communications/messages-page"), Q = G ? {
170
- title: G.title,
171
- content: G.content,
172
- category: G.category,
173
- priority: G.priority,
174
- tags: G.tags,
175
- isPinned: G.isPinned
176
- } : void 0, $ = (e, r) => /* @__PURE__ */ f(le, {
177
- treatment: r ? "glass" : "plain",
178
- glow: r,
169
+ }, Q = () => z(e), ge = K ? {
170
+ title: K.title,
171
+ content: K.content,
172
+ category: K.category,
173
+ priority: K.priority,
174
+ tags: K.tags,
175
+ isPinned: K.isPinned
176
+ } : void 0, $ = (e, t) => /* @__PURE__ */ m(le, {
177
+ treatment: t ? "glass" : "plain",
178
+ glow: t,
179
179
  className: "transition-shadow hover:shadow-elevation-2",
180
- children: [/* @__PURE__ */ f(S, {
180
+ children: [/* @__PURE__ */ m(C, {
181
181
  className: "pb-3",
182
- children: [/* @__PURE__ */ f("div", {
182
+ children: [/* @__PURE__ */ m("div", {
183
183
  className: "flex items-start justify-between gap-3",
184
- children: [/* @__PURE__ */ f("div", {
184
+ children: [/* @__PURE__ */ m("div", {
185
185
  className: "flex flex-wrap items-center gap-2",
186
186
  children: [
187
- /* @__PURE__ */ d(y, {
188
- className: `border-transparent text-[10px] ${j[e.priority]}`,
189
- children: t(e.priority)
187
+ /* @__PURE__ */ p(b, {
188
+ className: `border-transparent text-[10px] ${M[e.priority]}`,
189
+ children: n(e.priority)
190
190
  }),
191
- /* @__PURE__ */ d(y, {
192
- className: `border-transparent text-[10px] ${A[e.category]}`,
193
- children: t(e.category)
191
+ /* @__PURE__ */ p(b, {
192
+ className: `border-transparent text-[10px] ${j[e.category]}`,
193
+ children: n(e.category)
194
194
  }),
195
- /* @__PURE__ */ f("span", {
195
+ /* @__PURE__ */ m("span", {
196
196
  className: "flex items-center gap-1.5 text-xs text-text-secondary",
197
197
  children: [
198
- /* @__PURE__ */ d(n, {
198
+ /* @__PURE__ */ p(r, {
199
199
  people: [{ name: e.author }],
200
200
  size: 20
201
201
  }),
202
202
  e.author,
203
- /* @__PURE__ */ f("span", {
203
+ /* @__PURE__ */ m("span", {
204
204
  className: "text-text-muted",
205
- children: ["· ", P(e.createdAt)]
205
+ children: ["· ", F(e.createdAt)]
206
206
  })
207
207
  ]
208
208
  })
209
209
  ]
210
- }), /* @__PURE__ */ f("div", {
210
+ }), /* @__PURE__ */ m("div", {
211
211
  className: "flex items-center gap-0.5",
212
212
  children: [
213
- /* @__PURE__ */ d(b, {
213
+ /* @__PURE__ */ p(x, {
214
214
  variant: "ghost",
215
215
  size: "icon",
216
216
  className: `h-7 w-7 ${e.isPinned ? "text-status-info-text" : ""}`,
217
217
  "aria-label": e.isPinned ? `Unpin ${e.title}` : `Pin ${e.title}`,
218
218
  "aria-pressed": e.isPinned,
219
- onClick: () => void ge(e),
220
- children: e.isPinned ? /* @__PURE__ */ d(ne, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ d(c, { className: "h-3.5 w-3.5" })
219
+ onClick: () => void me(e),
220
+ children: e.isPinned ? /* @__PURE__ */ p(d, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ p(u, { className: "h-3.5 w-3.5" })
221
221
  }),
222
- /* @__PURE__ */ d(b, {
222
+ /* @__PURE__ */ p(x, {
223
223
  variant: "ghost",
224
224
  size: "icon",
225
225
  className: "h-7 w-7",
226
226
  "aria-label": `Edit announcement ${e.title}`,
227
- onClick: () => z.openModal(e),
228
- children: /* @__PURE__ */ d(te, { className: "h-3.5 w-3.5" })
227
+ onClick: () => B.openModal(e),
228
+ children: /* @__PURE__ */ p(l, { className: "h-3.5 w-3.5" })
229
229
  }),
230
- /* @__PURE__ */ d(b, {
230
+ /* @__PURE__ */ p(x, {
231
231
  variant: "ghost",
232
232
  size: "icon",
233
233
  className: "h-7 w-7 text-status-error-text",
234
234
  "aria-label": `Delete announcement ${e.title}`,
235
- onClick: () => V(e),
236
- children: /* @__PURE__ */ d(l, { className: "h-3.5 w-3.5" })
235
+ onClick: () => H(e),
236
+ children: /* @__PURE__ */ p(re, { className: "h-3.5 w-3.5" })
237
237
  })
238
238
  ]
239
239
  })]
240
- }), /* @__PURE__ */ d(C, {
240
+ }), /* @__PURE__ */ p(w, {
241
241
  className: "text-base",
242
242
  children: e.title
243
243
  })]
244
- }), /* @__PURE__ */ f(x, {
244
+ }), /* @__PURE__ */ m(S, {
245
245
  className: "pt-0",
246
246
  children: [
247
- /* @__PURE__ */ d("p", {
247
+ /* @__PURE__ */ p("p", {
248
248
  className: "text-sm text-text-secondary",
249
249
  children: e.content
250
250
  }),
251
- e.tags.length > 0 && /* @__PURE__ */ d("div", {
251
+ e.tags.length > 0 && /* @__PURE__ */ p("div", {
252
252
  className: "mt-3 flex flex-wrap gap-1",
253
- children: e.tags.map((e) => /* @__PURE__ */ d(y, {
253
+ children: e.tags.map((e) => /* @__PURE__ */ p(b, {
254
254
  variant: "outline",
255
255
  className: "text-[9px]",
256
256
  children: e
257
257
  }, e))
258
258
  }),
259
- /* @__PURE__ */ f("div", {
259
+ /* @__PURE__ */ m("div", {
260
260
  className: "mt-3 flex items-center gap-1 text-xs text-text-muted",
261
261
  children: [
262
- /* @__PURE__ */ d(o, { className: "h-3 w-3" }),
262
+ /* @__PURE__ */ p(s, { className: "h-3 w-3" }),
263
263
  e.viewCount,
264
264
  " read"
265
265
  ]
@@ -267,164 +267,152 @@ function F() {
267
267
  ]
268
268
  })]
269
269
  }, e.id);
270
- return /* @__PURE__ */ f("div", {
270
+ return /* @__PURE__ */ m("div", {
271
271
  className: "space-y-6 p-6",
272
272
  children: [
273
- /* @__PURE__ */ f("div", {
273
+ /* @__PURE__ */ m("div", {
274
274
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
275
- children: [/* @__PURE__ */ f("div", { children: [
276
- /* @__PURE__ */ d("h1", {
275
+ children: [/* @__PURE__ */ m("div", { children: [
276
+ /* @__PURE__ */ p("h1", {
277
277
  className: "text-2xl font-semibold",
278
- children: /* @__PURE__ */ d(ue, { children: "Announcements" })
278
+ children: /* @__PURE__ */ p(ue, { children: "Announcements" })
279
279
  }),
280
- /* @__PURE__ */ f("p", {
280
+ /* @__PURE__ */ m("p", {
281
281
  className: "text-sm text-text-secondary",
282
- children: [D.length, " company announcements"]
282
+ children: [O.length, " company announcements"]
283
283
  }),
284
- /* @__PURE__ */ d(T, {
284
+ /* @__PURE__ */ p(E, {
285
285
  className: "mt-1",
286
286
  children: "Broadcast company-wide news and updates so everyone stays informed — post announcements here when you have something the whole team needs to see."
287
287
  })
288
- ] }), /* @__PURE__ */ f(b, {
288
+ ] }), /* @__PURE__ */ m(x, {
289
289
  size: "sm",
290
- onClick: () => z.openModal(),
291
- children: [/* @__PURE__ */ d(re, { className: "h-4 w-4 mr-1" }), "New Announcement"]
290
+ onClick: () => B.openModal(),
291
+ children: [/* @__PURE__ */ p(f, { className: "h-4 w-4 mr-1" }), "New Announcement"]
292
292
  })]
293
293
  }),
294
- /* @__PURE__ */ f("div", {
294
+ /* @__PURE__ */ m("div", {
295
295
  className: "relative max-w-md",
296
- children: [/* @__PURE__ */ d(ie, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ d(w, {
296
+ children: [/* @__PURE__ */ p(te, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ p(T, {
297
297
  placeholder: "Search announcements...",
298
298
  className: "pl-9",
299
- value: W,
299
+ value: G,
300
300
  onChange: (e) => fe(e.target.value)
301
301
  })]
302
302
  }),
303
- /* @__PURE__ */ f("div", {
303
+ /* @__PURE__ */ m("div", {
304
304
  className: "grid gap-6 lg:grid-cols-3",
305
- children: [/* @__PURE__ */ f("div", {
305
+ children: [/* @__PURE__ */ m("div", {
306
306
  className: "space-y-4 lg:col-span-2",
307
307
  children: [
308
- J.length === 0 && /* @__PURE__ */ d(de, {
308
+ Y.length === 0 && /* @__PURE__ */ p(de, {
309
309
  illustration: "empty-notifications",
310
- title: q ? "No announcements match" : "No announcements yet",
311
- description: q ? "Try a different search term." : "Post an announcement to share news with the whole team."
310
+ title: J ? "No announcements match" : "No announcements yet",
311
+ description: J ? "Try a different search term." : "Post an announcement to share news with the whole team."
312
312
  }),
313
- Y.length > 0 && /* @__PURE__ */ f("div", {
313
+ X.length > 0 && /* @__PURE__ */ m("div", {
314
314
  className: "space-y-3",
315
- children: [/* @__PURE__ */ f("h2", {
315
+ children: [/* @__PURE__ */ m("h2", {
316
316
  className: "flex items-center gap-1 text-sm font-medium",
317
- children: [/* @__PURE__ */ d(c, { className: "h-4 w-4" }), "Pinned"]
318
- }), Y.map((e) => $(e, !0))]
317
+ children: [/* @__PURE__ */ p(u, { className: "h-4 w-4" }), "Pinned"]
318
+ }), X.map((e) => $(e, !0))]
319
319
  }),
320
- X.length > 0 && /* @__PURE__ */ d("div", {
320
+ Z.length > 0 && /* @__PURE__ */ p("div", {
321
321
  className: "space-y-3",
322
- children: X.map((e) => $(e, !1))
322
+ children: Z.map((e) => $(e, !1))
323
323
  })
324
324
  ]
325
- }), /* @__PURE__ */ d("div", {
325
+ }), /* @__PURE__ */ p("div", {
326
326
  className: "lg:col-span-1",
327
- children: /* @__PURE__ */ f(ce, {
327
+ children: /* @__PURE__ */ m(ce, {
328
328
  className: "lg:sticky lg:top-6",
329
- children: [/* @__PURE__ */ f(S, {
329
+ children: [/* @__PURE__ */ m(C, {
330
330
  className: "flex flex-row items-center justify-between space-y-0 pb-3",
331
- children: [/* @__PURE__ */ d(C, {
331
+ children: [/* @__PURE__ */ p(w, {
332
332
  className: "text-base",
333
333
  children: "Conversations"
334
- }), /* @__PURE__ */ f(b, {
334
+ }), /* @__PURE__ */ m(x, {
335
335
  variant: "ghost",
336
336
  size: "sm",
337
- onClick: Z,
338
- children: [/* @__PURE__ */ d(s, { className: "mr-1 h-3.5 w-3.5" }), "Open"]
337
+ onClick: Q,
338
+ children: [/* @__PURE__ */ p(c, { className: "mr-1 h-3.5 w-3.5" }), "Open"]
339
339
  })]
340
- }), /* @__PURE__ */ f(x, {
340
+ }), /* @__PURE__ */ m(S, {
341
341
  className: "space-y-1",
342
- children: [K.length === 0 ? /* @__PURE__ */ d("p", {
342
+ children: [q.length === 0 ? /* @__PURE__ */ p("p", {
343
343
  className: "py-6 text-center text-xs text-text-muted",
344
344
  children: "No active conversations yet. Team channels will appear here as they get activity."
345
- }) : K.map((e) => /* @__PURE__ */ f("button", {
345
+ }) : q.map((e) => /* @__PURE__ */ m("button", {
346
346
  type: "button",
347
- onClick: Z,
347
+ onClick: Q,
348
348
  className: "flex w-full items-start gap-3 rounded-[var(--radius-card)] p-2 text-left transition-colors hover:bg-bg-sunken",
349
349
  children: [
350
- /* @__PURE__ */ d(n, {
350
+ /* @__PURE__ */ p(r, {
351
351
  people: [{ name: e.title }],
352
352
  size: 32
353
353
  }),
354
- /* @__PURE__ */ f("div", {
354
+ /* @__PURE__ */ m("div", {
355
355
  className: "min-w-0 flex-1",
356
- children: [/* @__PURE__ */ f("div", {
356
+ children: [/* @__PURE__ */ m("div", {
357
357
  className: "flex items-center justify-between gap-2",
358
- children: [/* @__PURE__ */ d("p", {
358
+ children: [/* @__PURE__ */ p("p", {
359
359
  className: "truncate text-sm font-medium",
360
360
  children: e.title
361
- }), /* @__PURE__ */ d("span", {
361
+ }), /* @__PURE__ */ p("span", {
362
362
  className: "shrink-0 text-[10px] text-text-muted",
363
- children: P(e.createdAt)
363
+ children: F(e.createdAt)
364
364
  })]
365
- }), /* @__PURE__ */ d("p", {
365
+ }), /* @__PURE__ */ p("p", {
366
366
  className: "truncate text-xs text-text-secondary",
367
367
  children: e.message
368
368
  })]
369
369
  }),
370
- !e.read && /* @__PURE__ */ d("span", {
370
+ !e.read && /* @__PURE__ */ p("span", {
371
371
  className: "mt-1.5 h-2 w-2 shrink-0 rounded-full bg-status-success-text",
372
372
  "aria-label": "Unread"
373
373
  })
374
374
  ]
375
- }, e.id)), /* @__PURE__ */ f("div", {
376
- className: "flex items-center gap-2 pt-3",
377
- children: [/* @__PURE__ */ d(w, {
378
- placeholder: "Type a message...",
379
- className: "h-9 flex-1",
380
- value: pe,
381
- onChange: (e) => me(e.target.value),
382
- onKeyDown: (e) => {
383
- e.key === "Enter" && Z();
384
- },
385
- "aria-label": "Message composer"
386
- }), /* @__PURE__ */ d(b, {
387
- size: "icon",
388
- className: "h-9 w-9 shrink-0",
389
- "aria-label": "Open messages to send",
390
- onClick: Z,
391
- children: /* @__PURE__ */ d(ae, { className: "h-4 w-4" })
392
- })]
375
+ }, e.id)), /* @__PURE__ */ m(x, {
376
+ variant: "outline",
377
+ size: "sm",
378
+ className: "mt-3 w-full",
379
+ onClick: Q,
380
+ children: [/* @__PURE__ */ p(ne, { className: "mr-1 h-3.5 w-3.5" }), "Write a message in Conversations"]
393
381
  })]
394
382
  })]
395
383
  })
396
384
  })]
397
385
  }),
398
- /* @__PURE__ */ d(r, {
399
- open: z.open,
400
- onOpenChange: z.onOpenChange,
401
- title: G ? "Edit Announcement" : "New Announcement",
402
- description: G ? "Update this announcement for the whole team." : "Share news and updates across the company.",
403
- fields: G ? N : M,
404
- initialValues: Q,
405
- submitLabel: G ? "Save changes" : "Publish",
406
- onSubmit: he
386
+ /* @__PURE__ */ p(ee, {
387
+ open: B.open,
388
+ onOpenChange: B.onOpenChange,
389
+ title: K ? "Edit Announcement" : "New Announcement",
390
+ description: K ? "Update this announcement for the whole team." : "Share news and updates across the company.",
391
+ fields: K ? P : N,
392
+ initialValues: ge,
393
+ submitLabel: K ? "Save changes" : "Publish",
394
+ onSubmit: pe
407
395
  }),
408
- /* @__PURE__ */ d(p, {
409
- open: B !== null,
396
+ /* @__PURE__ */ p(h, {
397
+ open: V !== null,
410
398
  onOpenChange: (e) => {
411
- e || V(null);
399
+ e || H(null);
412
400
  },
413
- children: /* @__PURE__ */ f(g, { children: [/* @__PURE__ */ f(v, { children: [/* @__PURE__ */ d(se, { children: "Delete announcement?" }), /* @__PURE__ */ d(_, { children: B ? `"${B.title}" will be permanently removed. This cannot be undone.` : "" })] }), /* @__PURE__ */ f(oe, { children: [/* @__PURE__ */ d(h, {
414
- disabled: H,
401
+ children: /* @__PURE__ */ m(ae, { children: [/* @__PURE__ */ m(v, { children: [/* @__PURE__ */ p(y, { children: "Delete announcement?" }), /* @__PURE__ */ p(oe, { children: V ? `"${V.title}" will be permanently removed. This cannot be undone.` : "" })] }), /* @__PURE__ */ m(se, { children: [/* @__PURE__ */ p(_, {
402
+ disabled: U,
415
403
  children: "Cancel"
416
- }), /* @__PURE__ */ d(m, {
404
+ }), /* @__PURE__ */ p(g, {
417
405
  onClick: (e) => {
418
- e.preventDefault(), _e();
406
+ e.preventDefault(), he();
419
407
  },
420
- disabled: H,
421
- children: H ? "Deleting…" : "Delete"
408
+ disabled: U,
409
+ children: U ? "Deleting…" : "Delete"
422
410
  })] })] })
423
411
  })
424
412
  ]
425
413
  });
426
414
  }
427
415
  //#endregion
428
- export { F as CommunicationsAnnouncementsPagePage };
416
+ export { I as CommunicationsAnnouncementsPagePage };
429
417
 
430
418
  //# sourceMappingURL=CommunicationsAnnouncementsPagePage.js.map