@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.
- package/dist/crewfoundry/CrewFoundryRoot.d.ts.map +1 -1
- package/dist/crewfoundry/CrewFoundryRoot.js +160 -256
- package/dist/crewfoundry/CrewFoundryRoot.js.map +1 -1
- package/dist/crewfoundry/CrewFoundryRoutes.d.ts.map +1 -1
- package/dist/crewfoundry/CrewFoundryRoutes.js +152 -192
- package/dist/crewfoundry/CrewFoundryRoutes.js.map +1 -1
- package/dist/crewfoundry/components/InlineError.d.ts +5 -0
- package/dist/crewfoundry/components/InlineError.d.ts.map +1 -0
- package/dist/crewfoundry/components/InlineError.js +17 -0
- package/dist/crewfoundry/components/InlineError.js.map +1 -0
- package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts +14 -0
- package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts.map +1 -0
- package/dist/crewfoundry/components/marketplace/BookServiceModal.js +75 -0
- package/dist/crewfoundry/components/marketplace/BookServiceModal.js.map +1 -0
- package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts +24 -0
- package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts.map +1 -0
- package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js +47 -0
- package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js.map +1 -0
- package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts +12 -0
- package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts.map +1 -0
- package/dist/crewfoundry/components/marketplace/ServiceListingModal.js +123 -0
- package/dist/crewfoundry/components/marketplace/ServiceListingModal.js.map +1 -0
- package/dist/crewfoundry/components/viz/CertificateCard.js +4 -118
- package/dist/crewfoundry/components/viz/PathSteps.js +3 -68
- package/dist/crewfoundry/components/viz/lib/geometry.js +5 -13
- package/dist/crewfoundry/components/viz/lib/geometry.js.map +1 -1
- package/dist/crewfoundry/lib/analytics.d.ts +1 -6
- package/dist/crewfoundry/lib/analytics.d.ts.map +1 -1
- package/dist/crewfoundry/lib/analytics.js +3 -18
- package/dist/crewfoundry/lib/analytics.js.map +1 -1
- package/dist/crewfoundry/lib/companyFinance.d.ts +3 -7
- package/dist/crewfoundry/lib/companyFinance.d.ts.map +1 -1
- package/dist/crewfoundry/lib/companyFinance.js +3 -8
- package/dist/crewfoundry/lib/companyFinance.js.map +1 -1
- package/dist/crewfoundry/lib/learning.d.ts +12 -0
- package/dist/crewfoundry/lib/learning.d.ts.map +1 -0
- package/dist/crewfoundry/lib/learning.js +26 -0
- package/dist/crewfoundry/lib/learning.js.map +1 -0
- package/dist/crewfoundry/lib/marketplace.d.ts +30 -0
- package/dist/crewfoundry/lib/marketplace.d.ts.map +1 -0
- package/dist/crewfoundry/lib/marketplace.js +91 -0
- package/dist/crewfoundry/lib/marketplace.js.map +1 -0
- package/dist/crewfoundry/lib/useEnsureLoaded.d.ts +7 -0
- package/dist/crewfoundry/lib/useEnsureLoaded.d.ts.map +1 -0
- package/dist/crewfoundry/lib/useEnsureLoaded.js +25 -0
- package/dist/crewfoundry/lib/useEnsureLoaded.js.map +1 -0
- package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js +12 -25
- package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +145 -157
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +14 -14
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +14 -14
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js +71 -33
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js +247 -173
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts +12 -0
- package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js +307 -293
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts +2 -0
- package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts.map +1 -0
- package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js +223 -0
- package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js.map +1 -0
- package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts +4 -0
- package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js +115 -160
- package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js +165 -75
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts +7 -0
- package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts.map +1 -0
- package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js +175 -0
- package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js.map +1 -0
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js +182 -223
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js +168 -227
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js +127 -290
- package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.d.ts +138 -78
- package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +323 -244
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/dist/crewfoundry/utils/dateUtils.d.ts +5 -0
- package/dist/crewfoundry/utils/dateUtils.d.ts.map +1 -1
- package/dist/crewfoundry/utils/dateUtils.js +10 -1
- package/dist/crewfoundry/utils/dateUtils.js.map +1 -1
- package/dist/generated/global-types.d.ts +5145 -1627
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.d.ts +100373 -34602
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/utils/pageContext.d.ts.map +1 -1
- package/dist/utils/pageContext.js +0 -1
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
- package/dist/crewfoundry/components/viz/CertificateCard.js.map +0 -1
- package/dist/crewfoundry/components/viz/PathSteps.js.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js +0 -53
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +0 -107
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js +0 -62
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js +0 -37
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningCertificatesPagePage.js +0 -111
- package/dist/crewfoundry/pages/LearningCertificatesPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js +0 -309
- package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPagePage.js +0 -200
- package/dist/crewfoundry/pages/LearningLearningPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js +0 -190
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js +0 -230
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js +0 -293
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js +0 -163
- package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js +0 -365
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js +0 -224
- package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js +0 -180
- package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js +0 -38
- package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js +0 -204
- package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js +0 -55
- package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js +0 -335
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js +0 -160
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js +0 -80
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js.map +0 -1
- package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts +0 -2
- package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts.map +0 -1
- package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js +0 -191
- package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js.map +0 -1
- package/dist/crewfoundry/utils/courseProgress.d.ts +0 -33
- package/dist/crewfoundry/utils/courseProgress.d.ts.map +0 -1
- package/dist/crewfoundry/utils/courseProgress.js +0 -46
- package/dist/crewfoundry/utils/courseProgress.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { formatEnumLabel as
|
|
3
|
-
import { AvatarStack as
|
|
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
|
|
6
|
-
import { useMemo as
|
|
7
|
-
import { Eye as
|
|
8
|
-
import { useNavigate as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { AlertDialog as
|
|
11
|
-
import { useGlobalUi as
|
|
12
|
-
import { formatRelativeTime as
|
|
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
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
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:
|
|
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
|
-
],
|
|
117
|
+
], P = N.filter((e) => e.name !== "author" && e.name !== "authorRole"), F = (e) => {
|
|
118
118
|
if (!e) return "";
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return O(e);
|
|
121
121
|
} catch {
|
|
122
122
|
return e;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
function
|
|
126
|
-
let { announcements:
|
|
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 (
|
|
129
|
-
await
|
|
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
|
-
}),
|
|
136
|
+
}), R("Announcement updated", "success");
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
await
|
|
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
|
-
}),
|
|
152
|
-
},
|
|
151
|
+
}), R("Announcement published", "success");
|
|
152
|
+
}, me = async (e) => {
|
|
153
153
|
try {
|
|
154
|
-
await
|
|
154
|
+
await I(e.id, { isPinned: !e.isPinned }), R(e.isPinned ? "Unpinned" : "Pinned to top", "success");
|
|
155
155
|
} catch (e) {
|
|
156
|
-
|
|
156
|
+
R(e instanceof Error ? e.message : "Unable to update announcement", "error");
|
|
157
157
|
}
|
|
158
|
-
},
|
|
159
|
-
if (
|
|
160
|
-
|
|
158
|
+
}, he = async () => {
|
|
159
|
+
if (V) {
|
|
160
|
+
W(!0);
|
|
161
161
|
try {
|
|
162
|
-
await
|
|
162
|
+
await L(V.id), R("Announcement deleted", "success"), H(null);
|
|
163
163
|
} catch (e) {
|
|
164
|
-
|
|
164
|
+
R(e instanceof Error ? e.message : "Unable to delete announcement", "error");
|
|
165
165
|
} finally {
|
|
166
|
-
|
|
166
|
+
W(!1);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
},
|
|
170
|
-
title:
|
|
171
|
-
content:
|
|
172
|
-
category:
|
|
173
|
-
priority:
|
|
174
|
-
tags:
|
|
175
|
-
isPinned:
|
|
176
|
-
} : void 0, $ = (e,
|
|
177
|
-
treatment:
|
|
178
|
-
glow:
|
|
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__ */
|
|
180
|
+
children: [/* @__PURE__ */ m(C, {
|
|
181
181
|
className: "pb-3",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ m("div", {
|
|
183
183
|
className: "flex items-start justify-between gap-3",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ m("div", {
|
|
185
185
|
className: "flex flex-wrap items-center gap-2",
|
|
186
186
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
className: `border-transparent text-[10px] ${
|
|
189
|
-
children:
|
|
187
|
+
/* @__PURE__ */ p(b, {
|
|
188
|
+
className: `border-transparent text-[10px] ${M[e.priority]}`,
|
|
189
|
+
children: n(e.priority)
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
className: `border-transparent text-[10px] ${
|
|
193
|
-
children:
|
|
191
|
+
/* @__PURE__ */ p(b, {
|
|
192
|
+
className: `border-transparent text-[10px] ${j[e.category]}`,
|
|
193
|
+
children: n(e.category)
|
|
194
194
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ m("span", {
|
|
196
196
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
197
197
|
children: [
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ p(r, {
|
|
199
199
|
people: [{ name: e.author }],
|
|
200
200
|
size: 20
|
|
201
201
|
}),
|
|
202
202
|
e.author,
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ m("span", {
|
|
204
204
|
className: "text-text-muted",
|
|
205
|
-
children: ["· ",
|
|
205
|
+
children: ["· ", F(e.createdAt)]
|
|
206
206
|
})
|
|
207
207
|
]
|
|
208
208
|
})
|
|
209
209
|
]
|
|
210
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ m("div", {
|
|
211
211
|
className: "flex items-center gap-0.5",
|
|
212
212
|
children: [
|
|
213
|
-
/* @__PURE__ */
|
|
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
|
|
220
|
-
children: e.isPinned ? /* @__PURE__ */ d
|
|
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__ */
|
|
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: () =>
|
|
228
|
-
children: /* @__PURE__ */
|
|
227
|
+
onClick: () => B.openModal(e),
|
|
228
|
+
children: /* @__PURE__ */ p(l, { className: "h-3.5 w-3.5" })
|
|
229
229
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
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: () =>
|
|
236
|
-
children: /* @__PURE__ */
|
|
235
|
+
onClick: () => H(e),
|
|
236
|
+
children: /* @__PURE__ */ p(re, { className: "h-3.5 w-3.5" })
|
|
237
237
|
})
|
|
238
238
|
]
|
|
239
239
|
})]
|
|
240
|
-
}), /* @__PURE__ */
|
|
240
|
+
}), /* @__PURE__ */ p(w, {
|
|
241
241
|
className: "text-base",
|
|
242
242
|
children: e.title
|
|
243
243
|
})]
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ m(S, {
|
|
245
245
|
className: "pt-0",
|
|
246
246
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
259
|
+
/* @__PURE__ */ m("div", {
|
|
260
260
|
className: "mt-3 flex items-center gap-1 text-xs text-text-muted",
|
|
261
261
|
children: [
|
|
262
|
-
/* @__PURE__ */
|
|
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__ */
|
|
270
|
+
return /* @__PURE__ */ m("div", {
|
|
271
271
|
className: "space-y-6 p-6",
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ m("div", {
|
|
274
274
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ m("div", { children: [
|
|
276
|
+
/* @__PURE__ */ p("h1", {
|
|
277
277
|
className: "text-2xl font-semibold",
|
|
278
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ p(ue, { children: "Announcements" })
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ m("p", {
|
|
281
281
|
className: "text-sm text-text-secondary",
|
|
282
|
-
children: [
|
|
282
|
+
children: [O.length, " company announcements"]
|
|
283
283
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
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__ */
|
|
288
|
+
] }), /* @__PURE__ */ m(x, {
|
|
289
289
|
size: "sm",
|
|
290
|
-
onClick: () =>
|
|
291
|
-
children: [/* @__PURE__ */
|
|
290
|
+
onClick: () => B.openModal(),
|
|
291
|
+
children: [/* @__PURE__ */ p(f, { className: "h-4 w-4 mr-1" }), "New Announcement"]
|
|
292
292
|
})]
|
|
293
293
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ m("div", {
|
|
295
295
|
className: "relative max-w-md",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
299
|
+
value: G,
|
|
300
300
|
onChange: (e) => fe(e.target.value)
|
|
301
301
|
})]
|
|
302
302
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ m("div", {
|
|
304
304
|
className: "grid gap-6 lg:grid-cols-3",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ m("div", {
|
|
306
306
|
className: "space-y-4 lg:col-span-2",
|
|
307
307
|
children: [
|
|
308
|
-
|
|
308
|
+
Y.length === 0 && /* @__PURE__ */ p(de, {
|
|
309
309
|
illustration: "empty-notifications",
|
|
310
|
-
title:
|
|
311
|
-
description:
|
|
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
|
-
|
|
313
|
+
X.length > 0 && /* @__PURE__ */ m("div", {
|
|
314
314
|
className: "space-y-3",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
316
316
|
className: "flex items-center gap-1 text-sm font-medium",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
318
|
-
}),
|
|
317
|
+
children: [/* @__PURE__ */ p(u, { className: "h-4 w-4" }), "Pinned"]
|
|
318
|
+
}), X.map((e) => $(e, !0))]
|
|
319
319
|
}),
|
|
320
|
-
|
|
320
|
+
Z.length > 0 && /* @__PURE__ */ p("div", {
|
|
321
321
|
className: "space-y-3",
|
|
322
|
-
children:
|
|
322
|
+
children: Z.map((e) => $(e, !1))
|
|
323
323
|
})
|
|
324
324
|
]
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ p("div", {
|
|
326
326
|
className: "lg:col-span-1",
|
|
327
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ m(ce, {
|
|
328
328
|
className: "lg:sticky lg:top-6",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ m(C, {
|
|
330
330
|
className: "flex flex-row items-center justify-between space-y-0 pb-3",
|
|
331
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ p(w, {
|
|
332
332
|
className: "text-base",
|
|
333
333
|
children: "Conversations"
|
|
334
|
-
}), /* @__PURE__ */
|
|
334
|
+
}), /* @__PURE__ */ m(x, {
|
|
335
335
|
variant: "ghost",
|
|
336
336
|
size: "sm",
|
|
337
|
-
onClick:
|
|
338
|
-
children: [/* @__PURE__ */
|
|
337
|
+
onClick: Q,
|
|
338
|
+
children: [/* @__PURE__ */ p(c, { className: "mr-1 h-3.5 w-3.5" }), "Open"]
|
|
339
339
|
})]
|
|
340
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ m(S, {
|
|
341
341
|
className: "space-y-1",
|
|
342
|
-
children: [
|
|
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
|
-
}) :
|
|
345
|
+
}) : q.map((e) => /* @__PURE__ */ m("button", {
|
|
346
346
|
type: "button",
|
|
347
|
-
onClick:
|
|
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__ */
|
|
350
|
+
/* @__PURE__ */ p(r, {
|
|
351
351
|
people: [{ name: e.title }],
|
|
352
352
|
size: 32
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ m("div", {
|
|
355
355
|
className: "min-w-0 flex-1",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ m("div", {
|
|
357
357
|
className: "flex items-center justify-between gap-2",
|
|
358
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ p("p", {
|
|
359
359
|
className: "truncate text-sm font-medium",
|
|
360
360
|
children: e.title
|
|
361
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ p("span", {
|
|
362
362
|
className: "shrink-0 text-[10px] text-text-muted",
|
|
363
|
-
children:
|
|
363
|
+
children: F(e.createdAt)
|
|
364
364
|
})]
|
|
365
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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__ */
|
|
399
|
-
open:
|
|
400
|
-
onOpenChange:
|
|
401
|
-
title:
|
|
402
|
-
description:
|
|
403
|
-
fields:
|
|
404
|
-
initialValues:
|
|
405
|
-
submitLabel:
|
|
406
|
-
onSubmit:
|
|
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__ */
|
|
409
|
-
open:
|
|
396
|
+
/* @__PURE__ */ p(h, {
|
|
397
|
+
open: V !== null,
|
|
410
398
|
onOpenChange: (e) => {
|
|
411
|
-
e ||
|
|
399
|
+
e || H(null);
|
|
412
400
|
},
|
|
413
|
-
children: /* @__PURE__ */
|
|
414
|
-
disabled:
|
|
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__ */
|
|
404
|
+
}), /* @__PURE__ */ p(g, {
|
|
417
405
|
onClick: (e) => {
|
|
418
|
-
e.preventDefault(),
|
|
406
|
+
e.preventDefault(), he();
|
|
419
407
|
},
|
|
420
|
-
disabled:
|
|
421
|
-
children:
|
|
408
|
+
disabled: U,
|
|
409
|
+
children: U ? "Deleting…" : "Delete"
|
|
422
410
|
})] })] })
|
|
423
411
|
})
|
|
424
412
|
]
|
|
425
413
|
});
|
|
426
414
|
}
|
|
427
415
|
//#endregion
|
|
428
|
-
export {
|
|
416
|
+
export { I as CommunicationsAnnouncementsPagePage };
|
|
429
417
|
|
|
430
418
|
//# sourceMappingURL=CommunicationsAnnouncementsPagePage.js.map
|