@flamingo-stack/openframe-frontend-core 0.0.618 → 0.0.619-2160.6147.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/{chunk-ANMD7SM4.js → chunk-3BNNYHP2.js} +3 -3
- package/dist/{chunk-YCZBCEQO.js → chunk-3Z5ZIKDX.js} +4 -4
- package/dist/{chunk-3FTNQDLP.cjs → chunk-4ZGUSO7M.cjs} +5 -5
- package/dist/{chunk-3FTNQDLP.cjs.map → chunk-4ZGUSO7M.cjs.map} +1 -1
- package/dist/{chunk-VRN5YYD3.js → chunk-5DUTXG6P.js} +3 -3
- package/dist/{chunk-VIBREYUK.cjs → chunk-5G3L6327.cjs} +3 -3
- package/dist/{chunk-VIBREYUK.cjs.map → chunk-5G3L6327.cjs.map} +1 -1
- package/dist/{chunk-GBON2OCG.js → chunk-5WGOAJ4B.js} +3 -2
- package/dist/chunk-5WGOAJ4B.js.map +1 -0
- package/dist/{chunk-FCN2HN6Q.js → chunk-65SWJSQX.js} +8 -3
- package/dist/{chunk-FCN2HN6Q.js.map → chunk-65SWJSQX.js.map} +1 -1
- package/dist/{chunk-6XJS3WU7.js → chunk-7HWVD42H.js} +24 -4
- package/dist/chunk-7HWVD42H.js.map +1 -0
- package/dist/{chunk-RDEFB354.cjs → chunk-AU2Q75HU.cjs} +6 -6
- package/dist/{chunk-RDEFB354.cjs.map → chunk-AU2Q75HU.cjs.map} +1 -1
- package/dist/{chunk-J25M43YI.js → chunk-D4ARG53E.js} +6 -6
- package/dist/{chunk-UXOOVP77.cjs → chunk-DV7IBKJI.cjs} +4 -4
- package/dist/{chunk-UXOOVP77.cjs.map → chunk-DV7IBKJI.cjs.map} +1 -1
- package/dist/{chunk-CM6DNLK7.cjs → chunk-DXR23SLZ.cjs} +200 -200
- package/dist/{chunk-CM6DNLK7.cjs.map → chunk-DXR23SLZ.cjs.map} +1 -1
- package/dist/{chunk-N6CULJYR.cjs → chunk-EG4IKWY4.cjs} +3 -2
- package/dist/{chunk-N6CULJYR.cjs.map → chunk-EG4IKWY4.cjs.map} +1 -1
- package/dist/{chunk-UKFBPJBK.cjs → chunk-EIFU6N5L.cjs} +29 -29
- package/dist/{chunk-UKFBPJBK.cjs.map → chunk-EIFU6N5L.cjs.map} +1 -1
- package/dist/{chunk-E2EGTHYA.cjs → chunk-EYKTKDRK.cjs} +75 -48
- package/dist/chunk-EYKTKDRK.cjs.map +1 -0
- package/dist/{chunk-IW746HJ7.js → chunk-FHR2JU2J.js} +2 -2
- package/dist/{chunk-ROQTWRV7.cjs → chunk-GAPXVAS6.cjs} +151 -146
- package/dist/chunk-GAPXVAS6.cjs.map +1 -0
- package/dist/{chunk-7ZEQMFP3.cjs → chunk-GNWKLE7O.cjs} +58 -38
- package/dist/chunk-GNWKLE7O.cjs.map +1 -0
- package/dist/{chunk-PIJK3FV6.cjs → chunk-HF4EZICZ.cjs} +3 -3
- package/dist/{chunk-PIJK3FV6.cjs.map → chunk-HF4EZICZ.cjs.map} +1 -1
- package/dist/{chunk-WVRXDGGP.js → chunk-HPIRQWNK.js} +3 -3
- package/dist/{chunk-2DTZXXY3.js → chunk-I7RWVDN4.js} +5 -5
- package/dist/{chunk-XUNFDRMP.js → chunk-J27HVNT2.js} +4 -4
- package/dist/{chunk-GFWKEWEH.js → chunk-JA2SIJ7T.js} +4 -4
- package/dist/{chunk-IPHA3AQ6.js → chunk-JBXNDB5U.js} +8 -8
- package/dist/{chunk-E7VXPU3R.cjs → chunk-KQDGZS3U.cjs} +33 -33
- package/dist/{chunk-E7VXPU3R.cjs.map → chunk-KQDGZS3U.cjs.map} +1 -1
- package/dist/{chunk-CWMKY2UJ.js → chunk-LPGBA4UZ.js} +3 -3
- package/dist/{chunk-G7NEMLNW.cjs → chunk-M4V2O2MT.cjs} +12 -12
- package/dist/{chunk-G7NEMLNW.cjs.map → chunk-M4V2O2MT.cjs.map} +1 -1
- package/dist/{chunk-5P74E24M.js → chunk-MJRXGAXS.js} +5 -5
- package/dist/{chunk-K26VN65M.cjs → chunk-NOW7NGUH.cjs} +15 -15
- package/dist/{chunk-K26VN65M.cjs.map → chunk-NOW7NGUH.cjs.map} +1 -1
- package/dist/{chunk-GD7CV2JI.js → chunk-OD4JKGQG.js} +8 -8
- package/dist/{chunk-U6B3MM4U.cjs → chunk-P3I5KY4A.cjs} +20 -20
- package/dist/{chunk-U6B3MM4U.cjs.map → chunk-P3I5KY4A.cjs.map} +1 -1
- package/dist/{chunk-BXNSKTEG.cjs → chunk-QVOS4BPC.cjs} +65 -65
- package/dist/{chunk-BXNSKTEG.cjs.map → chunk-QVOS4BPC.cjs.map} +1 -1
- package/dist/{chunk-NUU5ZEEG.js → chunk-RTC3H5RW.js} +4 -4
- package/dist/{chunk-GXUGYZ6H.js → chunk-S44BHDOI.js} +481 -454
- package/dist/chunk-S44BHDOI.js.map +1 -0
- package/dist/{chunk-RROIA6WY.js → chunk-SKRI6QJ5.js} +2 -2
- package/dist/{chunk-MOC7JLEP.cjs → chunk-U7MQS4CR.cjs} +88 -88
- package/dist/{chunk-MOC7JLEP.cjs.map → chunk-U7MQS4CR.cjs.map} +1 -1
- package/dist/{chunk-BGDYSUA2.cjs → chunk-UP2OB7RI.cjs} +11 -11
- package/dist/{chunk-BGDYSUA2.cjs.map → chunk-UP2OB7RI.cjs.map} +1 -1
- package/dist/{chunk-EJGZIYC7.cjs → chunk-UWPZT3FY.cjs} +6 -6
- package/dist/{chunk-EJGZIYC7.cjs.map → chunk-UWPZT3FY.cjs.map} +1 -1
- package/dist/{chunk-TSCIVH7T.js → chunk-VBIFSOPQ.js} +2 -2
- package/dist/{chunk-IDMEC4ZK.cjs → chunk-XRWY5ETC.cjs} +22 -22
- package/dist/{chunk-IDMEC4ZK.cjs.map → chunk-XRWY5ETC.cjs.map} +1 -1
- package/dist/{chunk-EXEXX34Q.cjs → chunk-YNA7ZCDS.cjs} +28 -28
- package/dist/{chunk-EXEXX34Q.cjs.map → chunk-YNA7ZCDS.cjs.map} +1 -1
- package/dist/{chunk-UUXLDIK3.js → chunk-ZPJ6KYAW.js} +3 -3
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +35 -0
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +2 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +7 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +6 -2
- package/dist/components/comment-card.d.ts +26 -24
- package/dist/components/comment-card.d.ts.map +1 -1
- package/dist/components/comment-thread.d.ts +58 -0
- package/dist/components/comment-thread.d.ts.map +1 -0
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +27 -27
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +221 -77
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +338 -194
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/tickets/index.js +9 -9
- package/dist/components/ui/index.cjs +9 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +8 -4
- package/dist/index.cjs +13 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/types/marketing.d.ts +1 -1
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/index.cjs +5 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +62 -0
- package/src/components/chat/entity-cards/dispatch.tsx +3 -1
- package/src/components/chat/entity-cards/index.ts +2 -0
- package/src/components/comment-card.tsx +27 -24
- package/src/components/comment-thread.tsx +212 -0
- package/src/components/index.ts +1 -0
- package/src/components/related-content/__tests__/card-registry.test.tsx +7 -0
- package/src/components/related-content/card-registry.tsx +20 -1
- package/src/types/marketing.ts +1 -0
- package/src/utils/__tests__/list-url.test.ts +1 -0
- package/src/utils/content-ref-groups.ts +1 -0
- package/src/utils/list-url.ts +1 -0
- package/src/utils/source-icons.ts +3 -0
- package/dist/chunk-6XJS3WU7.js.map +0 -1
- package/dist/chunk-7ZEQMFP3.cjs.map +0 -1
- package/dist/chunk-E2EGTHYA.cjs.map +0 -1
- package/dist/chunk-GBON2OCG.js.map +0 -1
- package/dist/chunk-GXUGYZ6H.js.map +0 -1
- package/dist/chunk-ROQTWRV7.cjs.map +0 -1
- /package/dist/{chunk-ANMD7SM4.js.map → chunk-3BNNYHP2.js.map} +0 -0
- /package/dist/{chunk-YCZBCEQO.js.map → chunk-3Z5ZIKDX.js.map} +0 -0
- /package/dist/{chunk-VRN5YYD3.js.map → chunk-5DUTXG6P.js.map} +0 -0
- /package/dist/{chunk-J25M43YI.js.map → chunk-D4ARG53E.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-FHR2JU2J.js.map} +0 -0
- /package/dist/{chunk-WVRXDGGP.js.map → chunk-HPIRQWNK.js.map} +0 -0
- /package/dist/{chunk-2DTZXXY3.js.map → chunk-I7RWVDN4.js.map} +0 -0
- /package/dist/{chunk-XUNFDRMP.js.map → chunk-J27HVNT2.js.map} +0 -0
- /package/dist/{chunk-GFWKEWEH.js.map → chunk-JA2SIJ7T.js.map} +0 -0
- /package/dist/{chunk-IPHA3AQ6.js.map → chunk-JBXNDB5U.js.map} +0 -0
- /package/dist/{chunk-CWMKY2UJ.js.map → chunk-LPGBA4UZ.js.map} +0 -0
- /package/dist/{chunk-5P74E24M.js.map → chunk-MJRXGAXS.js.map} +0 -0
- /package/dist/{chunk-GD7CV2JI.js.map → chunk-OD4JKGQG.js.map} +0 -0
- /package/dist/{chunk-NUU5ZEEG.js.map → chunk-RTC3H5RW.js.map} +0 -0
- /package/dist/{chunk-RROIA6WY.js.map → chunk-SKRI6QJ5.js.map} +0 -0
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-VBIFSOPQ.js.map} +0 -0
- /package/dist/{chunk-UUXLDIK3.js.map → chunk-ZPJ6KYAW.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../chunk-5I3BSQ6D.js";
|
|
|
4
4
|
import {
|
|
5
5
|
GROUP_PAGE_SIZE,
|
|
6
6
|
RelatedContentSection
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-7HWVD42H.js";
|
|
8
8
|
import {
|
|
9
9
|
CveLink,
|
|
10
10
|
OnboardingStepCard,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SoftwareInfo,
|
|
16
16
|
SoftwareSourceBadge,
|
|
17
17
|
ToolBadge
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-JA2SIJ7T.js";
|
|
19
19
|
import {
|
|
20
20
|
AppHeader,
|
|
21
21
|
AppLayout,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
SlidingSidebar,
|
|
35
35
|
TicketAlertsButton,
|
|
36
36
|
TopNavigation
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-MJRXGAXS.js";
|
|
38
38
|
import {
|
|
39
39
|
DeliveryLists,
|
|
40
40
|
DeliveryTable,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
RoadmapView,
|
|
49
49
|
useLegalDocs,
|
|
50
50
|
useRoadmapVoting
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-OD4JKGQG.js";
|
|
52
52
|
import {
|
|
53
53
|
DocNavigationProvider,
|
|
54
54
|
DocViewer,
|
|
@@ -62,28 +62,28 @@ import {
|
|
|
62
62
|
useDocNavigation,
|
|
63
63
|
useDocumentTree,
|
|
64
64
|
useScrollSpy
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-I7RWVDN4.js";
|
|
66
66
|
import {
|
|
67
67
|
FileDownloadCard,
|
|
68
68
|
GoogleSheetsViewer,
|
|
69
69
|
PdfViewer
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-5DUTXG6P.js";
|
|
71
71
|
import {
|
|
72
72
|
PersistentPagination,
|
|
73
73
|
PersistentPaginationWrapper,
|
|
74
74
|
usePaginationLoading
|
|
75
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-FHR2JU2J.js";
|
|
76
76
|
import {
|
|
77
77
|
FaqAccordion,
|
|
78
78
|
FaqDocumentPage,
|
|
79
79
|
FaqSection
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-J27HVNT2.js";
|
|
81
81
|
import {
|
|
82
82
|
MobileNavigationDropdown,
|
|
83
83
|
MultiLevelNavigation,
|
|
84
84
|
StickySectionNav,
|
|
85
85
|
useSectionNavigation
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-SKRI6QJ5.js";
|
|
87
87
|
import {
|
|
88
88
|
DeliveryRow,
|
|
89
89
|
DevCardRowContent,
|
|
@@ -91,16 +91,16 @@ import {
|
|
|
91
91
|
DevCardRowSkeletonList,
|
|
92
92
|
DevSectionPage,
|
|
93
93
|
DevSectionView
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-LPGBA4UZ.js";
|
|
95
95
|
import {
|
|
96
96
|
EmptyState,
|
|
97
97
|
UnifiedPagination
|
|
98
|
-
} from "../chunk-
|
|
99
|
-
import "../chunk-
|
|
98
|
+
} from "../chunk-VBIFSOPQ.js";
|
|
99
|
+
import "../chunk-ZPJ6KYAW.js";
|
|
100
100
|
import {
|
|
101
101
|
ArticleAuthorByline,
|
|
102
102
|
DetailPageSkeleton
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-3BNNYHP2.js";
|
|
104
104
|
import {
|
|
105
105
|
DocSearchBar,
|
|
106
106
|
DocSearchResultRow,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
mapDocSearchResults,
|
|
109
109
|
resolveSearchResultAction,
|
|
110
110
|
useDocSearch
|
|
111
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-RTC3H5RW.js";
|
|
112
112
|
import {
|
|
113
113
|
useSelfFetch
|
|
114
114
|
} from "../chunk-F2KBCLUG.js";
|
|
@@ -617,7 +617,7 @@ import {
|
|
|
617
617
|
useTimeTracker,
|
|
618
618
|
useTrackerClock,
|
|
619
619
|
useWalkthroughVideo
|
|
620
|
-
} from "../chunk-
|
|
620
|
+
} from "../chunk-3Z5ZIKDX.js";
|
|
621
621
|
import "../chunk-L2SLFCXP.js";
|
|
622
622
|
import "../chunk-BJXDHKUX.js";
|
|
623
623
|
import {
|
|
@@ -642,7 +642,7 @@ import {
|
|
|
642
642
|
PaginationLink,
|
|
643
643
|
PaginationNext,
|
|
644
644
|
PaginationPrevious
|
|
645
|
-
} from "../chunk-
|
|
645
|
+
} from "../chunk-5WGOAJ4B.js";
|
|
646
646
|
import {
|
|
647
647
|
positiveInt
|
|
648
648
|
} from "../chunk-BVQEU5JB.js";
|
|
@@ -987,7 +987,7 @@ import {
|
|
|
987
987
|
useVideoOriginPreconnect,
|
|
988
988
|
useVideoWarmup,
|
|
989
989
|
usesCanonicalStatusStyle
|
|
990
|
-
} from "../chunk-
|
|
990
|
+
} from "../chunk-65SWJSQX.js";
|
|
991
991
|
import {
|
|
992
992
|
errorMessage,
|
|
993
993
|
scrollElementIntoView
|
|
@@ -1149,6 +1149,8 @@ import "../chunk-IMDG23LW.js";
|
|
|
1149
1149
|
import "../chunk-W72U7OU7.js";
|
|
1150
1150
|
import {
|
|
1151
1151
|
AdminContentCard,
|
|
1152
|
+
AiPromptCard,
|
|
1153
|
+
AiPromptCardSkeleton,
|
|
1152
1154
|
AvatarStack,
|
|
1153
1155
|
BlogCard,
|
|
1154
1156
|
BlogCardSkeleton,
|
|
@@ -1241,7 +1243,7 @@ import {
|
|
|
1241
1243
|
transformPodcastToProgram,
|
|
1242
1244
|
transformWebinarToProgram,
|
|
1243
1245
|
useCoverImageFallback
|
|
1244
|
-
} from "../chunk-
|
|
1246
|
+
} from "../chunk-S44BHDOI.js";
|
|
1245
1247
|
import {
|
|
1246
1248
|
next_image_default
|
|
1247
1249
|
} from "../chunk-MDKCTSDS.js";
|
|
@@ -2175,9 +2177,147 @@ function CommentComposer({
|
|
|
2175
2177
|
] });
|
|
2176
2178
|
}
|
|
2177
2179
|
|
|
2180
|
+
// src/components/comment-thread.tsx
|
|
2181
|
+
import { ChevronDown } from "lucide-react";
|
|
2182
|
+
import { useState as useState3 } from "react";
|
|
2183
|
+
import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2184
|
+
function CommentThread({
|
|
2185
|
+
comments,
|
|
2186
|
+
emptyLabel,
|
|
2187
|
+
onReply,
|
|
2188
|
+
onDelete,
|
|
2189
|
+
renderBadges,
|
|
2190
|
+
renderActions,
|
|
2191
|
+
replyPlaceholder = "Write a reply",
|
|
2192
|
+
pending = false,
|
|
2193
|
+
leadWith,
|
|
2194
|
+
onViewProduct
|
|
2195
|
+
}) {
|
|
2196
|
+
if (comments.length === 0) {
|
|
2197
|
+
return emptyLabel ? /* @__PURE__ */ jsx10("p", { className: "text-ods-text-secondary text-h6", children: emptyLabel }) : null;
|
|
2198
|
+
}
|
|
2199
|
+
return /* @__PURE__ */ jsx10("div", { className: "flex flex-col gap-[var(--spacing-system-sf)]", children: comments.map((comment) => /* @__PURE__ */ jsx10(
|
|
2200
|
+
CommentThreadRow,
|
|
2201
|
+
{
|
|
2202
|
+
comment,
|
|
2203
|
+
onReply,
|
|
2204
|
+
onDelete,
|
|
2205
|
+
renderBadges,
|
|
2206
|
+
renderActions,
|
|
2207
|
+
replyPlaceholder,
|
|
2208
|
+
pending,
|
|
2209
|
+
leadWith,
|
|
2210
|
+
onViewProduct
|
|
2211
|
+
},
|
|
2212
|
+
comment.id
|
|
2213
|
+
)) });
|
|
2214
|
+
}
|
|
2215
|
+
function CommentThreadRow({
|
|
2216
|
+
comment,
|
|
2217
|
+
onReply,
|
|
2218
|
+
onDelete,
|
|
2219
|
+
renderBadges,
|
|
2220
|
+
renderActions,
|
|
2221
|
+
replyPlaceholder,
|
|
2222
|
+
pending,
|
|
2223
|
+
leadWith,
|
|
2224
|
+
onViewProduct
|
|
2225
|
+
}) {
|
|
2226
|
+
const [replyOpen, setReplyOpen] = useState3(false);
|
|
2227
|
+
const replies = comment.replies ?? [];
|
|
2228
|
+
const actions = renderActions?.(comment);
|
|
2229
|
+
const footer = /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
2230
|
+
renderBadges?.(comment),
|
|
2231
|
+
replies.length > 0 ? /* @__PURE__ */ jsxs8("span", { className: "text-ods-text-secondary text-h6", children: [
|
|
2232
|
+
replies.length,
|
|
2233
|
+
" ",
|
|
2234
|
+
replies.length === 1 ? "reply" : "replies"
|
|
2235
|
+
] }) : null,
|
|
2236
|
+
onReply || actions ? /* @__PURE__ */ jsxs8("span", { className: "ml-auto flex flex-wrap gap-[var(--spacing-system-xsf)]", children: [
|
|
2237
|
+
onReply ? /* @__PURE__ */ jsx10(
|
|
2238
|
+
Button,
|
|
2239
|
+
{
|
|
2240
|
+
type: "button",
|
|
2241
|
+
variant: "outline",
|
|
2242
|
+
size: "small-legacy",
|
|
2243
|
+
onClick: () => setReplyOpen((open) => !open),
|
|
2244
|
+
disabled: pending,
|
|
2245
|
+
children: "Reply"
|
|
2246
|
+
}
|
|
2247
|
+
) : null,
|
|
2248
|
+
actions
|
|
2249
|
+
] }) : null
|
|
2250
|
+
] });
|
|
2251
|
+
return /* @__PURE__ */ jsx10(
|
|
2252
|
+
CommentCard,
|
|
2253
|
+
{
|
|
2254
|
+
fullBody: true,
|
|
2255
|
+
comment,
|
|
2256
|
+
leadWith,
|
|
2257
|
+
onViewProduct,
|
|
2258
|
+
onDeleteComment: onDelete ? (id) => void onDelete(id) : void 0,
|
|
2259
|
+
footer,
|
|
2260
|
+
children: replies.length > 0 || replyOpen ? /* @__PURE__ */ jsxs8("div", { className: "ml-[var(--spacing-system-lf)] mt-[var(--spacing-system-xsf)] flex flex-col gap-[var(--spacing-system-xsf)] border-l border-ods-border pl-[var(--spacing-system-sf)]", children: [
|
|
2261
|
+
replies.map((reply) => /* @__PURE__ */ jsx10(
|
|
2262
|
+
CommentCard,
|
|
2263
|
+
{
|
|
2264
|
+
fullBody: true,
|
|
2265
|
+
compact: true,
|
|
2266
|
+
comment: reply,
|
|
2267
|
+
onDeleteComment: onDelete ? (id) => void onDelete(id) : void 0
|
|
2268
|
+
},
|
|
2269
|
+
reply.id
|
|
2270
|
+
)),
|
|
2271
|
+
replyOpen && onReply ? /* @__PURE__ */ jsx10(
|
|
2272
|
+
CommentComposer,
|
|
2273
|
+
{
|
|
2274
|
+
pending,
|
|
2275
|
+
onCancel: () => setReplyOpen(false),
|
|
2276
|
+
submitLabel: "Reply",
|
|
2277
|
+
ariaLabel: "Reply",
|
|
2278
|
+
placeholder: replyPlaceholder,
|
|
2279
|
+
onSubmit: async ({ body }) => {
|
|
2280
|
+
const ok = await onReply(comment.id, body);
|
|
2281
|
+
if (ok === false) return false;
|
|
2282
|
+
setReplyOpen(false);
|
|
2283
|
+
return true;
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
) : null
|
|
2287
|
+
] }) : null
|
|
2288
|
+
}
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
function CommentsBlock({ title, summary, defaultOpen = false, children, composer }) {
|
|
2292
|
+
const [open, setOpen] = useState3(defaultOpen);
|
|
2293
|
+
const [seenDefaultOpen, setSeenDefaultOpen] = useState3(defaultOpen);
|
|
2294
|
+
if (defaultOpen !== seenDefaultOpen) {
|
|
2295
|
+
setSeenDefaultOpen(defaultOpen);
|
|
2296
|
+
if (defaultOpen) setOpen(true);
|
|
2297
|
+
}
|
|
2298
|
+
return /* @__PURE__ */ jsxs8("div", { className: "space-y-[var(--spacing-system-sf)]", children: [
|
|
2299
|
+
/* @__PURE__ */ jsx10(
|
|
2300
|
+
Button,
|
|
2301
|
+
{
|
|
2302
|
+
type: "button",
|
|
2303
|
+
variant: "transparent",
|
|
2304
|
+
size: "small-legacy",
|
|
2305
|
+
className: "px-0 text-ods-text-secondary hover:text-ods-text-primary",
|
|
2306
|
+
onClick: () => setOpen((value) => !value),
|
|
2307
|
+
rightIcon: /* @__PURE__ */ jsx10(ChevronDown, { className: `h-4 w-4 transition-transform ${open ? "rotate-180" : ""}` }),
|
|
2308
|
+
children: `${title} \xB7 ${summary}`
|
|
2309
|
+
}
|
|
2310
|
+
),
|
|
2311
|
+
open ? /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
2312
|
+
children,
|
|
2313
|
+
composer
|
|
2314
|
+
] }) : null
|
|
2315
|
+
] });
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2178
2318
|
// src/components/filter-chip.tsx
|
|
2179
2319
|
import { X as X2 } from "lucide-react";
|
|
2180
|
-
import { jsx as
|
|
2320
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2181
2321
|
function FilterChip({
|
|
2182
2322
|
label,
|
|
2183
2323
|
variant = "unselected",
|
|
@@ -2209,7 +2349,7 @@ function FilterChip({
|
|
|
2209
2349
|
subcategory: "bg-ods-bg-surface text-ods-text-primary border border-ods-accent/60 hover:bg-ods-border hover:border-ods-accent/80 hover:text-ods-text-primary focus:ring-ods-accent/60 focus:ring-offset-ods-bg",
|
|
2210
2350
|
tag: "bg-ods-bg-surface text-ods-text-primary border border-ods-accent/20 hover:bg-ods-border hover:border-ods-accent/30 hover:text-ods-text-primary focus:ring-ods-accent/20 focus:ring-offset-ods-bg"
|
|
2211
2351
|
};
|
|
2212
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ jsxs9(
|
|
2213
2353
|
"div",
|
|
2214
2354
|
{
|
|
2215
2355
|
className: cn(baseClasses, variantClasses[variant], className),
|
|
@@ -2223,7 +2363,7 @@ function FilterChip({
|
|
|
2223
2363
|
"aria-pressed": onClick && variant === "selected" ? true : void 0,
|
|
2224
2364
|
"aria-disabled": disabled,
|
|
2225
2365
|
children: [
|
|
2226
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ jsx11(
|
|
2227
2367
|
"span",
|
|
2228
2368
|
{
|
|
2229
2369
|
className: cn(
|
|
@@ -2234,7 +2374,7 @@ function FilterChip({
|
|
|
2234
2374
|
children: label
|
|
2235
2375
|
}
|
|
2236
2376
|
),
|
|
2237
|
-
removable && onRemove && /* @__PURE__ */
|
|
2377
|
+
removable && onRemove && /* @__PURE__ */ jsx11(
|
|
2238
2378
|
"button",
|
|
2239
2379
|
{
|
|
2240
2380
|
type: "button",
|
|
@@ -2253,7 +2393,7 @@ function FilterChip({
|
|
|
2253
2393
|
),
|
|
2254
2394
|
"aria-label": `Remove ${label} filter`,
|
|
2255
2395
|
tabIndex: disabled ? -1 : 0,
|
|
2256
|
-
children: /* @__PURE__ */
|
|
2396
|
+
children: /* @__PURE__ */ jsx11(X2, { className: "h-2 w-2 md:h-2 md:w-2" })
|
|
2257
2397
|
}
|
|
2258
2398
|
)
|
|
2259
2399
|
]
|
|
@@ -2263,22 +2403,22 @@ function FilterChip({
|
|
|
2263
2403
|
|
|
2264
2404
|
// src/components/footer.tsx
|
|
2265
2405
|
import { Suspense } from "react";
|
|
2266
|
-
import { Fragment as
|
|
2406
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2267
2407
|
function NavLinkSkeleton() {
|
|
2268
|
-
return /* @__PURE__ */
|
|
2408
|
+
return /* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-20 md:h-6 md:w-24" });
|
|
2269
2409
|
}
|
|
2270
2410
|
function Footer({ config, renderLink }) {
|
|
2271
2411
|
if (!config) {
|
|
2272
2412
|
console.warn("Footer: No config provided");
|
|
2273
2413
|
return null;
|
|
2274
2414
|
}
|
|
2275
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx12(UniversalFooter, { config, renderLink });
|
|
2276
2416
|
}
|
|
2277
2417
|
function UniversalFooter({
|
|
2278
2418
|
config,
|
|
2279
2419
|
renderLink
|
|
2280
2420
|
}) {
|
|
2281
|
-
const defaultRenderLink = (link) => /* @__PURE__ */
|
|
2421
|
+
const defaultRenderLink = (link) => /* @__PURE__ */ jsx12(
|
|
2282
2422
|
"a",
|
|
2283
2423
|
{
|
|
2284
2424
|
href: link.href,
|
|
@@ -2287,21 +2427,21 @@ function UniversalFooter({
|
|
|
2287
2427
|
}
|
|
2288
2428
|
);
|
|
2289
2429
|
const linkRenderer = renderLink || defaultRenderLink;
|
|
2290
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ jsxs10(
|
|
2291
2431
|
"footer",
|
|
2292
2432
|
{
|
|
2293
2433
|
className: `flex w-full flex-col items-center justify-center ${config.backgroundColor || "bg-ods-card"} relative z-[44] min-h-[auto] gap-6 border-t border-ods-border px-6 py-10 md:min-h-[248px] md:gap-6`,
|
|
2294
2434
|
children: [
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
config.logo && /* @__PURE__ */
|
|
2299
|
-
config.nameElement || /* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsxs10("div", { className: "grid w-full grid-cols-2 items-start gap-6 md:gap-8 lg:grid-cols-4", children: [
|
|
2436
|
+
/* @__PURE__ */ jsxs10("div", { className: "col-span-2 flex flex-col items-start gap-4 text-left md:col-span-1 md:gap-6 lg:col-span-1", children: [
|
|
2437
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2438
|
+
config.logo && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-8 w-8" }), children: config.logo }),
|
|
2439
|
+
config.nameElement || /* @__PURE__ */ jsx12("span", { className: "whitespace-nowrap font-heading text-heading-5 font-bold text-ods-text-primary", children: config.name })
|
|
2300
2440
|
] }),
|
|
2301
|
-
!config.moveDescriptionToRight && /* @__PURE__ */
|
|
2302
|
-
/* @__PURE__ */
|
|
2303
|
-
config.belowDescriptionContent && /* @__PURE__ */
|
|
2304
|
-
!config.hideSocialRow && /* @__PURE__ */
|
|
2441
|
+
!config.moveDescriptionToRight && /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
2442
|
+
/* @__PURE__ */ jsx12("p", { className: "font-body text-sm font-medium leading-[1.43] text-ods-text-primary md:text-sm", children: config.description }),
|
|
2443
|
+
config.belowDescriptionContent && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-8 w-full" }), children: config.belowDescriptionContent }),
|
|
2444
|
+
!config.hideSocialRow && /* @__PURE__ */ jsx12(
|
|
2305
2445
|
SocialIconRow,
|
|
2306
2446
|
{
|
|
2307
2447
|
className: "pt-2",
|
|
@@ -2309,22 +2449,22 @@ function UniversalFooter({
|
|
|
2309
2449
|
}
|
|
2310
2450
|
)
|
|
2311
2451
|
] }),
|
|
2312
|
-
config.moveDescriptionToRight && config.keepBelowDescriptionLeft && config.belowDescriptionContent && /* @__PURE__ */
|
|
2452
|
+
config.moveDescriptionToRight && config.keepBelowDescriptionLeft && config.belowDescriptionContent && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-8 w-full" }), children: config.belowDescriptionContent })
|
|
2313
2453
|
] }),
|
|
2314
|
-
config.sections.map((section, index) => /* @__PURE__ */
|
|
2315
|
-
/* @__PURE__ */
|
|
2316
|
-
/* @__PURE__ */
|
|
2454
|
+
config.sections.map((section, index) => /* @__PURE__ */ jsxs10("div", { className: "col-span-1 flex flex-col items-start gap-3 text-left", children: [
|
|
2455
|
+
/* @__PURE__ */ jsx12("h3", { className: "tracking-[-0.02em] text-ods-text-muted text-h5", children: section.title }),
|
|
2456
|
+
/* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-3", children: section.links.map((link, linkIndex) => /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(NavLinkSkeleton, {}), children: linkRenderer(link) }, linkIndex)) })
|
|
2317
2457
|
] }, index)),
|
|
2318
|
-
config.customComponent && /* @__PURE__ */
|
|
2319
|
-
(config.rightColumnContent || config.moveDescriptionToRight) && /* @__PURE__ */
|
|
2320
|
-
config.moveDescriptionToRight && /* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
config.belowDescriptionContent && !config.keepBelowDescriptionLeft && /* @__PURE__ */
|
|
2458
|
+
config.customComponent && /* @__PURE__ */ jsx12("div", { className: "col-span-2 flex flex-col justify-center md:col-span-1 lg:col-span-1", children: /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-32 w-full" }), children: config.customComponent }) }),
|
|
2459
|
+
(config.rightColumnContent || config.moveDescriptionToRight) && /* @__PURE__ */ jsxs10("div", { className: "col-span-2 flex flex-col justify-start gap-4 md:col-span-1 md:gap-6 lg:col-span-1", children: [
|
|
2460
|
+
config.moveDescriptionToRight && /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
2461
|
+
/* @__PURE__ */ jsx12("p", { className: "font-body text-sm font-medium leading-[1.43] text-ods-text-primary md:text-sm", children: config.description }),
|
|
2462
|
+
config.belowDescriptionContent && !config.keepBelowDescriptionLeft && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-8 w-full" }), children: config.belowDescriptionContent })
|
|
2323
2463
|
] }),
|
|
2324
|
-
config.rightColumnContent && /* @__PURE__ */
|
|
2464
|
+
config.rightColumnContent && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-32 w-full" }), children: config.rightColumnContent })
|
|
2325
2465
|
] })
|
|
2326
2466
|
] }),
|
|
2327
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ jsxs10("p", { className: "text-md md:text-md w-full pt-4 text-center font-body font-medium leading-[1.33] text-ods-text-muted md:pt-0", children: [
|
|
2328
2468
|
"\xA9 ",
|
|
2329
2469
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
2330
2470
|
" ",
|
|
@@ -2644,20 +2784,20 @@ var blogFilterConfig = {
|
|
|
2644
2784
|
|
|
2645
2785
|
// src/components/footer-waitlist-button.tsx
|
|
2646
2786
|
import { useCallback } from "react";
|
|
2647
|
-
import { jsx as
|
|
2787
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2648
2788
|
function FooterWaitlistButton({ className }) {
|
|
2649
2789
|
const router = useRouter();
|
|
2650
2790
|
const runtime = useChatRuntime();
|
|
2651
2791
|
const handleClick = useCallback(() => {
|
|
2652
2792
|
executeNavigationImperative({ runtime, href: "/waitlist#top", fallbackNavigate: router.push });
|
|
2653
2793
|
}, [router, runtime]);
|
|
2654
|
-
return /* @__PURE__ */
|
|
2794
|
+
return /* @__PURE__ */ jsx13(Button, { onClick: handleClick, className, leftIcon: /* @__PURE__ */ jsx13(OpenFrameLogo, {}), children: "Join Waitlist" });
|
|
2655
2795
|
}
|
|
2656
2796
|
|
|
2657
2797
|
// src/components/hero-image-uploader.tsx
|
|
2658
2798
|
import { Loader2, Image as ImageIcon2, Upload, X as X3 } from "lucide-react";
|
|
2659
|
-
import { useRef, useState as
|
|
2660
|
-
import { Fragment as
|
|
2799
|
+
import { useRef, useState as useState4 } from "react";
|
|
2800
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2661
2801
|
function readUploadedUrl(payload) {
|
|
2662
2802
|
if (typeof payload !== "object" || payload === null) return null;
|
|
2663
2803
|
if ("data" in payload) {
|
|
@@ -2683,7 +2823,7 @@ function HeroImageUploader({
|
|
|
2683
2823
|
}) {
|
|
2684
2824
|
const inputRef = useRef(null);
|
|
2685
2825
|
const { toast } = useToast();
|
|
2686
|
-
const [uploading, setUploading] =
|
|
2826
|
+
const [uploading, setUploading] = useState4(false);
|
|
2687
2827
|
const ALLOWED_TYPES = ["image/jpeg", "image/jpg", "image/png", "image/webp", "image/gif"];
|
|
2688
2828
|
const MAX_SIZE = 5 * 1024 * 1024;
|
|
2689
2829
|
const openDialog = () => inputRef.current?.click();
|
|
@@ -2760,59 +2900,59 @@ function HeroImageUploader({
|
|
|
2760
2900
|
onChange(void 0);
|
|
2761
2901
|
};
|
|
2762
2902
|
const heightStyle = typeof height === "number" ? `${height}px` : height;
|
|
2763
|
-
return /* @__PURE__ */
|
|
2764
|
-
imageUrl ? /* @__PURE__ */
|
|
2903
|
+
return /* @__PURE__ */ jsxs11("div", { className: "h-full max-h-full min-h-[300px] w-full space-y-2", children: [
|
|
2904
|
+
imageUrl ? /* @__PURE__ */ jsxs11(
|
|
2765
2905
|
"div",
|
|
2766
2906
|
{
|
|
2767
2907
|
className: "group relative flex aspect-square h-auto w-full items-center justify-center overflow-hidden md:aspect-auto md:h-full",
|
|
2768
2908
|
style: { height: heightStyle },
|
|
2769
2909
|
children: [
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
showReplaceButton && /* @__PURE__ */
|
|
2910
|
+
/* @__PURE__ */ jsx14(next_image_default, { src: imageUrl, className: `object-${objectFit}`, alt: "Cover", fill: true, sizes: "100vw", unoptimized: true }),
|
|
2911
|
+
/* @__PURE__ */ jsxs11("div", { className: "absolute inset-0 flex items-center justify-center gap-4 rounded-lg bg-black/40 opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
2912
|
+
showReplaceButton && /* @__PURE__ */ jsx14(
|
|
2773
2913
|
Button,
|
|
2774
2914
|
{
|
|
2775
2915
|
variant: "outline",
|
|
2776
2916
|
size: "icon",
|
|
2777
2917
|
onClick: openDialog,
|
|
2778
2918
|
className: "h-12 w-12 rounded-full bg-white text-black hover:bg-gray-100",
|
|
2779
|
-
children: /* @__PURE__ */
|
|
2919
|
+
children: /* @__PURE__ */ jsx14(Upload, { className: "h-5 w-5" })
|
|
2780
2920
|
}
|
|
2781
2921
|
),
|
|
2782
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx14(
|
|
2783
2923
|
Button,
|
|
2784
2924
|
{
|
|
2785
2925
|
variant: "outline",
|
|
2786
2926
|
size: "icon",
|
|
2787
2927
|
onClick: () => handleRemove(),
|
|
2788
2928
|
className: "h-12 w-12 rounded-full bg-white text-black hover:bg-gray-100",
|
|
2789
|
-
children: /* @__PURE__ */
|
|
2929
|
+
children: /* @__PURE__ */ jsx14(X3, { className: "h-5 w-5" })
|
|
2790
2930
|
}
|
|
2791
2931
|
)
|
|
2792
2932
|
] })
|
|
2793
2933
|
]
|
|
2794
2934
|
}
|
|
2795
|
-
) : /* @__PURE__ */
|
|
2935
|
+
) : /* @__PURE__ */ jsx14(
|
|
2796
2936
|
"div",
|
|
2797
2937
|
{
|
|
2798
2938
|
className: `h-full w-full border-2 border-dashed ${uploading ? "border-ods-accent" : "border-ods-border hover:border-ods-accent"} flex cursor-pointer flex-col items-center justify-center rounded-lg bg-ods-bg`,
|
|
2799
2939
|
style: { height: heightStyle },
|
|
2800
2940
|
onClick: openDialog,
|
|
2801
|
-
children: uploading ? /* @__PURE__ */
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
/* @__PURE__ */
|
|
2804
|
-
/* @__PURE__ */
|
|
2805
|
-
/* @__PURE__ */
|
|
2941
|
+
children: uploading ? /* @__PURE__ */ jsx14(Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
2942
|
+
/* @__PURE__ */ jsx14(ImageIcon2, { className: "h-12 w-12 text-ods-text-secondary" }),
|
|
2943
|
+
/* @__PURE__ */ jsx14("span", { className: "mt-2 text-ods-text-primary text-h6", children: "Upload cover image" }),
|
|
2944
|
+
/* @__PURE__ */ jsx14("span", { className: "mt-1 text-ods-text-secondary text-h6", children: "Click to upload or drag and drop" }),
|
|
2945
|
+
/* @__PURE__ */ jsx14("span", { className: "text-ods-text-secondary text-h6", children: "PNG, JPEG, WebP, GIF up to 5MB" })
|
|
2806
2946
|
] })
|
|
2807
2947
|
}
|
|
2808
2948
|
),
|
|
2809
|
-
/* @__PURE__ */
|
|
2949
|
+
/* @__PURE__ */ jsx14("input", { ref: inputRef, type: "file", accept: "image/*", onChange: handleSelect, className: "hidden" })
|
|
2810
2950
|
] });
|
|
2811
2951
|
}
|
|
2812
2952
|
|
|
2813
2953
|
// src/components/icons-block.tsx
|
|
2814
2954
|
import { Sun, Moon, CheckCircle, Github, PlusCircle } from "lucide-react";
|
|
2815
|
-
import { useState as
|
|
2955
|
+
import { useState as useState5, useEffect as useEffect2, useMemo as useMemo2 } from "react";
|
|
2816
2956
|
|
|
2817
2957
|
// src/components/icons-stub.tsx
|
|
2818
2958
|
import { DollarSign, Code, Users, Building, GitCompare, MessageSquare } from "lucide-react";
|
|
@@ -2825,13 +2965,13 @@ var CommunityIcon2 = MessageSquare;
|
|
|
2825
2965
|
var CompareIcon2 = GitCompare;
|
|
2826
2966
|
|
|
2827
2967
|
// src/components/icons-block.tsx
|
|
2828
|
-
import { jsx as
|
|
2968
|
+
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2829
2969
|
var SunIcon2 = Sun;
|
|
2830
2970
|
var MoonIcon2 = Moon;
|
|
2831
2971
|
var CheckCircleIcon3 = CheckCircle;
|
|
2832
2972
|
var GitHubIcon2 = Github;
|
|
2833
2973
|
var PlusCircleIcon2 = PlusCircle;
|
|
2834
|
-
var OpenmspLogo2 = () => /* @__PURE__ */
|
|
2974
|
+
var OpenmspLogo2 = () => /* @__PURE__ */ jsx15("div", { children: "Logo" });
|
|
2835
2975
|
var availableIcons = [
|
|
2836
2976
|
VendorDirectoryIcon2,
|
|
2837
2977
|
OpenSourceIcon2,
|
|
@@ -2871,8 +3011,8 @@ function buildIconGrid(columns, seed) {
|
|
|
2871
3011
|
return grid;
|
|
2872
3012
|
}
|
|
2873
3013
|
function ResponsiveIconsBlock({ loading = false }) {
|
|
2874
|
-
const [columns, setColumns] =
|
|
2875
|
-
const [randomSeed] =
|
|
3014
|
+
const [columns, setColumns] = useState5(24);
|
|
3015
|
+
const [randomSeed] = useState5(() => Date.now());
|
|
2876
3016
|
const hydrated = useIsHydrated();
|
|
2877
3017
|
const iconGrid = useMemo2(
|
|
2878
3018
|
() => hydrated ? buildIconGrid(columns, randomSeed) : NO_GRID,
|
|
@@ -2894,17 +3034,17 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2894
3034
|
return iconGrid[row]?.[col] || availableIcons[0];
|
|
2895
3035
|
};
|
|
2896
3036
|
if (loading || iconGrid.length === 0) {
|
|
2897
|
-
return /* @__PURE__ */
|
|
3037
|
+
return /* @__PURE__ */ jsx15(
|
|
2898
3038
|
"div",
|
|
2899
3039
|
{
|
|
2900
3040
|
className: "relative h-[80px] w-full overflow-hidden bg-[#1A1A1A] md:h-[112px]",
|
|
2901
3041
|
role: "presentation",
|
|
2902
3042
|
"aria-hidden": "true",
|
|
2903
|
-
children: /* @__PURE__ */
|
|
3043
|
+
children: /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 animate-pulse bg-[#2A2A2A]/60" })
|
|
2904
3044
|
}
|
|
2905
3045
|
);
|
|
2906
3046
|
}
|
|
2907
|
-
return /* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsxs12(
|
|
2908
3048
|
"div",
|
|
2909
3049
|
{
|
|
2910
3050
|
className: "relative z-10 h-[80px] w-full overflow-hidden bg-[#1A1A1A] md:h-[112px]",
|
|
@@ -2912,14 +3052,14 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2912
3052
|
role: "presentation",
|
|
2913
3053
|
"aria-hidden": "true",
|
|
2914
3054
|
children: [
|
|
2915
|
-
/* @__PURE__ */
|
|
3055
|
+
/* @__PURE__ */ jsx15("style", { children: `
|
|
2916
3056
|
.icons-block svg,
|
|
2917
3057
|
.icons-block svg * {
|
|
2918
3058
|
filter: grayscale(100%) brightness(0) invert(1) brightness(0.4) !important;
|
|
2919
3059
|
fill: currentColor !important;
|
|
2920
3060
|
}
|
|
2921
3061
|
` }),
|
|
2922
|
-
/* @__PURE__ */
|
|
3062
|
+
/* @__PURE__ */ jsx15(
|
|
2923
3063
|
"div",
|
|
2924
3064
|
{
|
|
2925
3065
|
className: "icons-block grid h-full w-full",
|
|
@@ -2931,7 +3071,7 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2931
3071
|
const col = idx % displayColumns;
|
|
2932
3072
|
const row = Math.floor(idx / displayColumns);
|
|
2933
3073
|
const IconComponent = getIconForIndex(idx);
|
|
2934
|
-
return /* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ jsx15(
|
|
2935
3075
|
"div",
|
|
2936
3076
|
{
|
|
2937
3077
|
className: "flex h-full w-full items-center justify-center",
|
|
@@ -2944,7 +3084,7 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2944
3084
|
boxSizing: "border-box"
|
|
2945
3085
|
},
|
|
2946
3086
|
role: "presentation",
|
|
2947
|
-
children: /* @__PURE__ */
|
|
3087
|
+
children: /* @__PURE__ */ jsx15(IconComponent, { width: 16, height: 16, className: "text-[#666666] md:h-5 md:w-5", "aria-hidden": "true" })
|
|
2948
3088
|
},
|
|
2949
3089
|
idx
|
|
2950
3090
|
);
|
|
@@ -2958,9 +3098,9 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2958
3098
|
|
|
2959
3099
|
// src/components/image-cropper.tsx
|
|
2960
3100
|
import { Check, RotateCcw } from "lucide-react";
|
|
2961
|
-
import { useCallback as useCallback2, useState as
|
|
3101
|
+
import { useCallback as useCallback2, useState as useState6 } from "react";
|
|
2962
3102
|
import Cropper from "react-easy-crop";
|
|
2963
|
-
import { jsx as
|
|
3103
|
+
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2964
3104
|
function loadImage(src) {
|
|
2965
3105
|
return new Promise((resolve, reject) => {
|
|
2966
3106
|
const img = new Image();
|
|
@@ -2979,10 +3119,10 @@ var ImageCropper = ({
|
|
|
2979
3119
|
maxSizePx = 512,
|
|
2980
3120
|
className
|
|
2981
3121
|
}) => {
|
|
2982
|
-
const [crop, setCrop] =
|
|
2983
|
-
const [zoom, setZoom] =
|
|
2984
|
-
const [rotation, setRotation] =
|
|
2985
|
-
const [croppedAreaPixels, setCroppedAreaPixels] =
|
|
3122
|
+
const [crop, setCrop] = useState6({ x: 0, y: 0 });
|
|
3123
|
+
const [zoom, setZoom] = useState6(1);
|
|
3124
|
+
const [rotation, setRotation] = useState6(0);
|
|
3125
|
+
const [croppedAreaPixels, setCroppedAreaPixels] = useState6(null);
|
|
2986
3126
|
const onCropComplete = useCallback2((_croppedAreaPercentages, areaPixels) => {
|
|
2987
3127
|
setCroppedAreaPixels(areaPixels);
|
|
2988
3128
|
}, []);
|
|
@@ -3047,7 +3187,7 @@ var ImageCropper = ({
|
|
|
3047
3187
|
onCancel?.();
|
|
3048
3188
|
}
|
|
3049
3189
|
};
|
|
3050
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsxs13(
|
|
3051
3191
|
"div",
|
|
3052
3192
|
{
|
|
3053
3193
|
className: cn("relative flex w-full flex-col gap-4", className),
|
|
@@ -3055,7 +3195,7 @@ var ImageCropper = ({
|
|
|
3055
3195
|
tabIndex: 0,
|
|
3056
3196
|
"aria-label": "Image cropper",
|
|
3057
3197
|
children: [
|
|
3058
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx16("div", { className: cn("relative aspect-square w-full overflow-hidden rounded-md md:aspect-video", checkerBg), children: /* @__PURE__ */ jsx16(
|
|
3059
3199
|
Cropper,
|
|
3060
3200
|
{
|
|
3061
3201
|
image: src,
|
|
@@ -3072,10 +3212,10 @@ var ImageCropper = ({
|
|
|
3072
3212
|
objectFit: "contain"
|
|
3073
3213
|
}
|
|
3074
3214
|
) }),
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-4", children: [
|
|
3216
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3", children: [
|
|
3217
|
+
/* @__PURE__ */ jsx16("span", { className: "min-w-[60px] text-h6", children: "Zoom" }),
|
|
3218
|
+
/* @__PURE__ */ jsx16(
|
|
3079
3219
|
Slider,
|
|
3080
3220
|
{
|
|
3081
3221
|
min: 1,
|
|
@@ -3088,9 +3228,9 @@ var ImageCropper = ({
|
|
|
3088
3228
|
}
|
|
3089
3229
|
)
|
|
3090
3230
|
] }),
|
|
3091
|
-
/* @__PURE__ */
|
|
3092
|
-
/* @__PURE__ */
|
|
3093
|
-
/* @__PURE__ */
|
|
3231
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3", children: [
|
|
3232
|
+
/* @__PURE__ */ jsx16("span", { className: "min-w-[60px] text-h6", children: "Rotate" }),
|
|
3233
|
+
/* @__PURE__ */ jsx16(
|
|
3094
3234
|
Slider,
|
|
3095
3235
|
{
|
|
3096
3236
|
min: 0,
|
|
@@ -3102,12 +3242,12 @@ var ImageCropper = ({
|
|
|
3102
3242
|
className: "flex-1"
|
|
3103
3243
|
}
|
|
3104
3244
|
),
|
|
3105
|
-
/* @__PURE__ */
|
|
3245
|
+
/* @__PURE__ */ jsx16(Button, { variant: "outline", size: "icon", onClick: () => setRotation(0), "aria-label": "Reset rotation", children: /* @__PURE__ */ jsx16(RotateCcw, { className: "h-4 w-4" }) })
|
|
3106
3246
|
] })
|
|
3107
3247
|
] }),
|
|
3108
|
-
/* @__PURE__ */
|
|
3109
|
-
onCancel && /* @__PURE__ */
|
|
3110
|
-
/* @__PURE__ */
|
|
3248
|
+
/* @__PURE__ */ jsxs13("div", { className: "mt-2 flex justify-end gap-2", children: [
|
|
3249
|
+
onCancel && /* @__PURE__ */ jsx16(Button, { variant: "outline", onClick: onCancel, "aria-label": "Cancel crop", children: "Cancel" }),
|
|
3250
|
+
/* @__PURE__ */ jsx16(
|
|
3111
3251
|
Button,
|
|
3112
3252
|
{
|
|
3113
3253
|
variant: "accent",
|
|
@@ -3115,7 +3255,7 @@ var ImageCropper = ({
|
|
|
3115
3255
|
const result = await exportCrop();
|
|
3116
3256
|
if (result) onComplete(result);
|
|
3117
3257
|
},
|
|
3118
|
-
leftIcon: /* @__PURE__ */
|
|
3258
|
+
leftIcon: /* @__PURE__ */ jsx16(Check, { className: "h-4 w-4" }),
|
|
3119
3259
|
"aria-label": "Apply crop",
|
|
3120
3260
|
children: "Apply"
|
|
3121
3261
|
}
|
|
@@ -3127,19 +3267,19 @@ var ImageCropper = ({
|
|
|
3127
3267
|
};
|
|
3128
3268
|
|
|
3129
3269
|
// src/components/metric-value.tsx
|
|
3130
|
-
import { jsx as
|
|
3270
|
+
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3131
3271
|
function MetricValue({ value, label, className }) {
|
|
3132
|
-
return /* @__PURE__ */
|
|
3272
|
+
return /* @__PURE__ */ jsxs14("div", { className: cn("flex items-end gap-2 whitespace-nowrap text-ods-text-primary text-h4", className), children: [
|
|
3133
3273
|
value,
|
|
3134
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx17("span", { className: "text-ods-text-secondary text-h6", children: label })
|
|
3135
3275
|
] });
|
|
3136
3276
|
}
|
|
3137
3277
|
|
|
3138
3278
|
// src/components/msp-display.tsx
|
|
3139
|
-
import { jsx as
|
|
3279
|
+
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3140
3280
|
function MSPDisplay({ name, logoUrl, size = 40, className }) {
|
|
3141
|
-
return /* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
3281
|
+
return /* @__PURE__ */ jsxs15("div", { className: cn("flex min-w-0 items-center gap-2", className), children: [
|
|
3282
|
+
/* @__PURE__ */ jsx18(
|
|
3143
3283
|
SquareAvatar,
|
|
3144
3284
|
{
|
|
3145
3285
|
src: logoUrl ? getProxiedImageUrl(logoUrl) || logoUrl : void 0,
|
|
@@ -3148,16 +3288,16 @@ function MSPDisplay({ name, logoUrl, size = 40, className }) {
|
|
|
3148
3288
|
sizePx: size
|
|
3149
3289
|
}
|
|
3150
3290
|
),
|
|
3151
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ jsx18("h2", { className: "truncate pl-2", children: name })
|
|
3152
3292
|
] });
|
|
3153
3293
|
}
|
|
3154
3294
|
|
|
3155
3295
|
// src/components/open-source-features.tsx
|
|
3156
3296
|
import { Terminal, DollarSign as DollarSign2, Network, Users as Users2 } from "lucide-react";
|
|
3157
|
-
import { jsx as
|
|
3297
|
+
import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3158
3298
|
|
|
3159
3299
|
// src/components/pricing-display.tsx
|
|
3160
|
-
import { jsx as
|
|
3300
|
+
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3161
3301
|
var PRICING_STYLES = {
|
|
3162
3302
|
// Comparison table style (current default)
|
|
3163
3303
|
comparison: {
|
|
@@ -3193,11 +3333,11 @@ function PricingDisplay({
|
|
|
3193
3333
|
styleConfig = PRICING_STYLES.comparison
|
|
3194
3334
|
}) {
|
|
3195
3335
|
if (typeof pricing === "string") {
|
|
3196
|
-
return /* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ jsx20(LegacyPricingDisplay, { pricing, className, styleConfig });
|
|
3197
3337
|
}
|
|
3198
3338
|
const pricingArray = Array.isArray(pricing) ? pricing : [pricing];
|
|
3199
3339
|
if (!pricingArray || pricingArray.length === 0) {
|
|
3200
|
-
return /* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ jsx20(
|
|
3201
3341
|
"span",
|
|
3202
3342
|
{
|
|
3203
3343
|
className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize} ${styleConfig.fontFamily} ${className}`,
|
|
@@ -3209,9 +3349,9 @@ function PricingDisplay({
|
|
|
3209
3349
|
const item = pricingArray[0];
|
|
3210
3350
|
const price = item.ranges?.[0]?.min || 0;
|
|
3211
3351
|
const unit = item.ranges?.[0]?.unit;
|
|
3212
|
-
return /* @__PURE__ */
|
|
3213
|
-
/* @__PURE__ */
|
|
3214
|
-
unit && /* @__PURE__ */
|
|
3352
|
+
return /* @__PURE__ */ jsxs17("span", { className: `${styleConfig.fontFamily} ${className}`, children: [
|
|
3353
|
+
/* @__PURE__ */ jsx20("span", { className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize}`, children: formatPriceValue(price, styleConfig.showTildePrefix) }),
|
|
3354
|
+
unit && /* @__PURE__ */ jsxs17("span", { className: `${styleConfig.secondaryTextColor} ${styleConfig.secondaryTextSize}`, children: [
|
|
3215
3355
|
"/",
|
|
3216
3356
|
unit
|
|
3217
3357
|
] })
|
|
@@ -3221,9 +3361,9 @@ function PricingDisplay({
|
|
|
3221
3361
|
(item) => formatPriceValue(item.ranges?.[0]?.min || 0, styleConfig.showTildePrefix)
|
|
3222
3362
|
);
|
|
3223
3363
|
const itemWithUnit = pricingArray.find((item) => item.ranges?.[0]?.unit);
|
|
3224
|
-
return /* @__PURE__ */
|
|
3225
|
-
/* @__PURE__ */
|
|
3226
|
-
itemWithUnit && itemWithUnit.ranges?.[0]?.unit && /* @__PURE__ */
|
|
3364
|
+
return /* @__PURE__ */ jsxs17("span", { className: `${styleConfig.fontFamily} ${className}`, children: [
|
|
3365
|
+
/* @__PURE__ */ jsx20("span", { className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize}`, children: priceValues.join(" | ") }),
|
|
3366
|
+
itemWithUnit && itemWithUnit.ranges?.[0]?.unit && /* @__PURE__ */ jsxs17("span", { className: `${styleConfig.secondaryTextColor} ${styleConfig.secondaryTextSize}`, children: [
|
|
3227
3367
|
"/",
|
|
3228
3368
|
itemWithUnit.ranges[0].unit
|
|
3229
3369
|
] })
|
|
@@ -3244,7 +3384,7 @@ function LegacyPricingDisplay({
|
|
|
3244
3384
|
styleConfig = PRICING_STYLES.comparison
|
|
3245
3385
|
}) {
|
|
3246
3386
|
if (pricing === "Free" || pricing === "No pricing data") {
|
|
3247
|
-
return /* @__PURE__ */
|
|
3387
|
+
return /* @__PURE__ */ jsx20(
|
|
3248
3388
|
"span",
|
|
3249
3389
|
{
|
|
3250
3390
|
className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize} ${styleConfig.fontFamily} ${className}`,
|
|
@@ -3306,9 +3446,9 @@ function LegacyPricingDisplay({
|
|
|
3306
3446
|
};
|
|
3307
3447
|
};
|
|
3308
3448
|
const { mainValue, secondaryInfo } = parsePricing(pricing);
|
|
3309
|
-
return /* @__PURE__ */
|
|
3310
|
-
/* @__PURE__ */
|
|
3311
|
-
secondaryInfo && /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsxs17("span", { className: `${styleConfig.fontFamily} ${className}`, children: [
|
|
3450
|
+
/* @__PURE__ */ jsx20("span", { className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize}`, children: mainValue }),
|
|
3451
|
+
secondaryInfo && /* @__PURE__ */ jsx20("span", { className: `${styleConfig.secondaryTextColor} ${styleConfig.secondaryTextSize}`, children: secondaryInfo })
|
|
3312
3452
|
] });
|
|
3313
3453
|
}
|
|
3314
3454
|
function formatPricingForDisplay(pricing) {
|
|
@@ -3316,7 +3456,7 @@ function formatPricingForDisplay(pricing) {
|
|
|
3316
3456
|
}
|
|
3317
3457
|
|
|
3318
3458
|
// src/components/results-count.tsx
|
|
3319
|
-
import { Fragment as
|
|
3459
|
+
import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3320
3460
|
function ResultsCount({ currentPage, pageSize, totalResults, resultType, sortingMessage }) {
|
|
3321
3461
|
if (totalResults === 0) {
|
|
3322
3462
|
return null;
|
|
@@ -3326,7 +3466,7 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3326
3466
|
const plural = resultType === "vendors" ? "vendors" : "posts";
|
|
3327
3467
|
const singular = resultType === "vendors" ? "vendor" : "post";
|
|
3328
3468
|
const displayType = totalResults === 1 ? singular : plural;
|
|
3329
|
-
return /* @__PURE__ */
|
|
3469
|
+
return /* @__PURE__ */ jsx21("div", { className: "mb-6", children: /* @__PURE__ */ jsx21("p", { className: "text-ods-text-secondary text-h6", children: totalResults > 0 && /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
3330
3470
|
"Showing ",
|
|
3331
3471
|
startIndex,
|
|
3332
3472
|
"-",
|
|
@@ -3335,7 +3475,7 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3335
3475
|
totalResults,
|
|
3336
3476
|
" ",
|
|
3337
3477
|
displayType,
|
|
3338
|
-
sortingMessage && /* @__PURE__ */
|
|
3478
|
+
sortingMessage && /* @__PURE__ */ jsxs18("span", { className: "ml-2 text-ods-accent", children: [
|
|
3339
3479
|
"\u2022 ",
|
|
3340
3480
|
sortingMessage
|
|
3341
3481
|
] })
|
|
@@ -3346,14 +3486,14 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3346
3486
|
import { Boxes, Database, Hand, Plug, ShieldCheck, Sparkles } from "lucide-react";
|
|
3347
3487
|
|
|
3348
3488
|
// src/components/openframe-logo.tsx
|
|
3349
|
-
import { jsx as
|
|
3489
|
+
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3350
3490
|
var OpenFrameLogo2 = ({
|
|
3351
3491
|
className,
|
|
3352
3492
|
lowerPathColor,
|
|
3353
3493
|
upperPathColor,
|
|
3354
3494
|
...props
|
|
3355
3495
|
}) => {
|
|
3356
|
-
return /* @__PURE__ */
|
|
3496
|
+
return /* @__PURE__ */ jsx22(
|
|
3357
3497
|
"svg",
|
|
3358
3498
|
{
|
|
3359
3499
|
...props,
|
|
@@ -3367,30 +3507,30 @@ var OpenFrameLogo2 = ({
|
|
|
3367
3507
|
"--fill-0": "currentColor",
|
|
3368
3508
|
...props.style
|
|
3369
3509
|
},
|
|
3370
|
-
children: /* @__PURE__ */
|
|
3371
|
-
/* @__PURE__ */
|
|
3372
|
-
/* @__PURE__ */
|
|
3510
|
+
children: /* @__PURE__ */ jsxs19("g", { children: [
|
|
3511
|
+
/* @__PURE__ */ jsxs19("g", { children: [
|
|
3512
|
+
/* @__PURE__ */ jsx22(
|
|
3373
3513
|
"path",
|
|
3374
3514
|
{
|
|
3375
3515
|
d: "M21.3333 16.5333C21.3333 16.2388 21.5721 16 21.8667 16H26.1333C26.4279 16 26.6667 16.2388 26.6667 16.5333V20.8C26.6667 21.0946 26.4279 21.3333 26.1333 21.3333H21.8667C21.5721 21.3333 21.3333 21.0946 21.3333 20.8V16.5333Z",
|
|
3376
3516
|
fill: lowerPathColor ?? "#ffffff"
|
|
3377
3517
|
}
|
|
3378
3518
|
),
|
|
3379
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ jsx22(
|
|
3380
3520
|
"path",
|
|
3381
3521
|
{
|
|
3382
3522
|
d: "M16 21.8667C16 21.5721 16.2388 21.3333 16.5333 21.3333H20.8C21.0946 21.3333 21.3333 21.5721 21.3333 21.8667V26.1333C21.3333 26.4279 21.0946 26.6667 20.8 26.6667H16.5333C16.2388 26.6667 16 26.4279 16 26.1333V21.8667Z",
|
|
3383
3523
|
fill: lowerPathColor ?? "#ffffff"
|
|
3384
3524
|
}
|
|
3385
3525
|
),
|
|
3386
|
-
/* @__PURE__ */
|
|
3526
|
+
/* @__PURE__ */ jsx22(
|
|
3387
3527
|
"path",
|
|
3388
3528
|
{
|
|
3389
3529
|
d: "M26.6667 21.8667C26.6667 21.5721 26.9054 21.3333 27.2 21.3333H31.4667C31.7612 21.3333 32 21.5721 32 21.8667V26.1333C32 26.4279 31.7612 26.6667 31.4667 26.6667H27.2C26.9054 26.6667 26.6667 26.4279 26.6667 26.1333V21.8667Z",
|
|
3390
3530
|
fill: lowerPathColor ?? "#ffffff"
|
|
3391
3531
|
}
|
|
3392
3532
|
),
|
|
3393
|
-
/* @__PURE__ */
|
|
3533
|
+
/* @__PURE__ */ jsx22(
|
|
3394
3534
|
"path",
|
|
3395
3535
|
{
|
|
3396
3536
|
d: "M21.3333 27.2C21.3333 26.9054 21.5721 26.6667 21.8667 26.6667H26.1333C26.4279 26.6667 26.6667 26.9054 26.6667 27.2V31.4667C26.6667 31.7612 26.4279 32 26.1333 32H21.8667C21.5721 32 21.3333 31.7612 21.3333 31.4667V27.2Z",
|
|
@@ -3398,7 +3538,7 @@ var OpenFrameLogo2 = ({
|
|
|
3398
3538
|
}
|
|
3399
3539
|
)
|
|
3400
3540
|
] }),
|
|
3401
|
-
/* @__PURE__ */
|
|
3541
|
+
/* @__PURE__ */ jsx22(
|
|
3402
3542
|
"path",
|
|
3403
3543
|
{
|
|
3404
3544
|
d: "M30.9333 0H1.06667C0.477563 0 0 0.477564 0 1.06667V30.9333C0 31.5224 0.477563 32 1.06667 32H14.9333C15.5224 32 16 31.5224 16 30.9333V27.7333C16 27.1442 15.5224 26.6667 14.9333 26.6667H5.86667C5.57211 26.6667 5.33333 26.4279 5.33333 26.1333V5.86667C5.33333 5.57211 5.57211 5.33333 5.86667 5.33333H26.1333C26.4279 5.33333 26.6667 5.57212 26.6667 5.86667V14.9333C26.6667 15.5224 27.1442 16 27.7333 16H30.9333C31.5224 16 32 15.5224 32 14.9333V1.06667C32 0.477563 31.5224 0 30.9333 0Z",
|
|
@@ -3411,7 +3551,7 @@ var OpenFrameLogo2 = ({
|
|
|
3411
3551
|
};
|
|
3412
3552
|
|
|
3413
3553
|
// src/components/vendor-tag.tsx
|
|
3414
|
-
import { jsx as
|
|
3554
|
+
import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3415
3555
|
function VendorTag({ type, text, className = "", hidden = false, size = "md", accentColor }) {
|
|
3416
3556
|
const baseClasses = cn(
|
|
3417
3557
|
"flex items-center gap-1.5 whitespace-nowrap rounded border border-ods-border bg-ods-bg",
|
|
@@ -3423,99 +3563,99 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3423
3563
|
return {
|
|
3424
3564
|
text: "Placeholder",
|
|
3425
3565
|
textColor: "text-ods-text-primary",
|
|
3426
|
-
icon: /* @__PURE__ */
|
|
3566
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm", children: /* @__PURE__ */ jsx23(Sparkles, { width: 10, height: 10, className: "text-ods-text-primary" }) })
|
|
3427
3567
|
};
|
|
3428
3568
|
case "ai":
|
|
3429
3569
|
return {
|
|
3430
3570
|
text: "AI Selected",
|
|
3431
3571
|
textColor: "text-ods-text-primary",
|
|
3432
|
-
icon: /* @__PURE__ */
|
|
3572
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm", children: /* @__PURE__ */ jsx23(Sparkles, { width: 10, height: 10, className: "text-ods-text-primary" }) })
|
|
3433
3573
|
};
|
|
3434
3574
|
case "manual":
|
|
3435
3575
|
return {
|
|
3436
3576
|
text: "Manually Selected",
|
|
3437
3577
|
textColor: "text-ods-text-secondary",
|
|
3438
|
-
icon: /* @__PURE__ */
|
|
3578
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm", children: /* @__PURE__ */ jsx23(Hand, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3439
3579
|
};
|
|
3440
3580
|
case "open-source":
|
|
3441
3581
|
return {
|
|
3442
3582
|
text: text || "Open Source",
|
|
3443
|
-
icon: /* @__PURE__ */
|
|
3583
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3444
3584
|
"div",
|
|
3445
3585
|
{
|
|
3446
3586
|
className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent",
|
|
3447
3587
|
style: accentColor ? { backgroundColor: accentColor } : void 0,
|
|
3448
|
-
children: /* @__PURE__ */
|
|
3588
|
+
children: /* @__PURE__ */ jsx23(OpenSourceIcon2, { width: 10, height: 10, className: "text-ods-text-on-accent" })
|
|
3449
3589
|
}
|
|
3450
3590
|
)
|
|
3451
3591
|
};
|
|
3452
3592
|
case "commercial":
|
|
3453
3593
|
return {
|
|
3454
3594
|
text: text || "Commercial Vendor",
|
|
3455
|
-
icon: /* @__PURE__ */
|
|
3595
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(CoinsIcon2, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3456
3596
|
};
|
|
3457
3597
|
// platform-capability tags — same neutral icon-box chrome as 'commercial'
|
|
3458
3598
|
case "api":
|
|
3459
3599
|
return {
|
|
3460
3600
|
text: text || "API",
|
|
3461
|
-
icon: /* @__PURE__ */
|
|
3601
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(Plug, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3462
3602
|
};
|
|
3463
3603
|
case "data":
|
|
3464
3604
|
return {
|
|
3465
3605
|
text: text || "Data",
|
|
3466
|
-
icon: /* @__PURE__ */
|
|
3606
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(Database, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3467
3607
|
};
|
|
3468
3608
|
case "k8s":
|
|
3469
3609
|
return {
|
|
3470
3610
|
text: text || "K8s",
|
|
3471
|
-
icon: /* @__PURE__ */
|
|
3611
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(Boxes, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3472
3612
|
};
|
|
3473
3613
|
case "secured":
|
|
3474
3614
|
return {
|
|
3475
3615
|
text: text || "Secured",
|
|
3476
|
-
icon: /* @__PURE__ */
|
|
3616
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(ShieldCheck, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3477
3617
|
};
|
|
3478
3618
|
case "free":
|
|
3479
3619
|
return {
|
|
3480
3620
|
text: text || "Free",
|
|
3481
|
-
icon: /* @__PURE__ */
|
|
3621
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23("span", { className: "text-[8px] font-bold text-ods-text-on-accent", children: "$" }) })
|
|
3482
3622
|
};
|
|
3483
3623
|
case "freemium":
|
|
3484
3624
|
return {
|
|
3485
3625
|
text: text || "Freemium",
|
|
3486
|
-
icon: /* @__PURE__ */
|
|
3626
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23("span", { className: "text-[8px] font-bold text-ods-text-on-accent", children: "$" }) })
|
|
3487
3627
|
};
|
|
3488
3628
|
case "paid":
|
|
3489
3629
|
return {
|
|
3490
3630
|
text: text || "Paid",
|
|
3491
|
-
icon: /* @__PURE__ */
|
|
3631
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(CoinsIcon2, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3492
3632
|
};
|
|
3493
3633
|
case "enterprise":
|
|
3494
3634
|
return {
|
|
3495
3635
|
text: text || "Enterprise",
|
|
3496
|
-
icon: /* @__PURE__ */
|
|
3636
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23("span", { className: "text-[8px] font-bold text-ods-text-on-accent", children: "E" }) })
|
|
3497
3637
|
};
|
|
3498
3638
|
case "recommended":
|
|
3499
3639
|
return {
|
|
3500
3640
|
text: text || "Recommended",
|
|
3501
|
-
icon: /* @__PURE__ */
|
|
3641
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23("span", { className: "text-[8px] font-bold text-ods-text-on-accent", children: "\u2605" }) })
|
|
3502
3642
|
};
|
|
3503
3643
|
case "classification": {
|
|
3504
3644
|
const classificationType = text?.toLowerCase();
|
|
3505
3645
|
if (classificationType === "open_source") {
|
|
3506
3646
|
return {
|
|
3507
3647
|
text: "Open Source",
|
|
3508
|
-
icon: /* @__PURE__ */
|
|
3648
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23(OpenSourceIcon2, { width: 10, height: 10, className: "text-ods-text-on-accent" }) })
|
|
3509
3649
|
};
|
|
3510
3650
|
} else if (classificationType === "commercial") {
|
|
3511
3651
|
return {
|
|
3512
3652
|
text: "Commercial Vendor",
|
|
3513
|
-
icon: /* @__PURE__ */
|
|
3653
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ jsx23(CoinsIcon2, { width: 10, height: 10, className: "text-ods-text-secondary" }) })
|
|
3514
3654
|
};
|
|
3515
3655
|
} else if (classificationType === "openframe_selected") {
|
|
3516
3656
|
return {
|
|
3517
3657
|
text: "OpenFrame Selected",
|
|
3518
|
-
icon: /* @__PURE__ */
|
|
3658
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3519
3659
|
OpenFrameLogo2,
|
|
3520
3660
|
{
|
|
3521
3661
|
lowerPathColor: "currentColor",
|
|
@@ -3527,14 +3667,14 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3527
3667
|
} else {
|
|
3528
3668
|
return {
|
|
3529
3669
|
text: text || "Classification",
|
|
3530
|
-
icon: /* @__PURE__ */
|
|
3670
|
+
icon: /* @__PURE__ */ jsx23("div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent", children: /* @__PURE__ */ jsx23("span", { className: "text-[8px] font-bold text-ods-text-on-accent", children: "C" }) })
|
|
3531
3671
|
};
|
|
3532
3672
|
}
|
|
3533
3673
|
}
|
|
3534
3674
|
case "openframe_selected":
|
|
3535
3675
|
return {
|
|
3536
3676
|
text: text || "OpenFrame Selected",
|
|
3537
|
-
icon: /* @__PURE__ */
|
|
3677
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3538
3678
|
OpenFrameLogo2,
|
|
3539
3679
|
{
|
|
3540
3680
|
lowerPathColor: "currentColor",
|
|
@@ -3551,19 +3691,19 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3551
3691
|
}
|
|
3552
3692
|
};
|
|
3553
3693
|
const { text: displayText, icon, textColor } = getTagContent();
|
|
3554
|
-
return /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ jsxs20("div", { className: cn(baseClasses, className, hidden && "invisible"), children: [
|
|
3555
3695
|
icon,
|
|
3556
|
-
/* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ jsx23("span", { className: cn("font-semibold text-h5", textColor ? textColor : "text-ods-text-primary"), children: displayText })
|
|
3557
3697
|
] });
|
|
3558
3698
|
}
|
|
3559
3699
|
|
|
3560
3700
|
// src/components/selection-source-badge.tsx
|
|
3561
|
-
import { jsx as
|
|
3701
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3562
3702
|
function SelectionSourceBadge({ source, hidden = false }) {
|
|
3563
3703
|
if (!source) {
|
|
3564
3704
|
return null;
|
|
3565
3705
|
}
|
|
3566
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ jsx24(
|
|
3567
3707
|
VendorTag,
|
|
3568
3708
|
{
|
|
3569
3709
|
type: source?.toLowerCase(),
|
|
@@ -3575,32 +3715,32 @@ function SelectionSourceBadge({ source, hidden = false }) {
|
|
|
3575
3715
|
}
|
|
3576
3716
|
|
|
3577
3717
|
// src/components/vendor-page-skeleton.tsx
|
|
3578
|
-
import { jsx as
|
|
3718
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
3579
3719
|
function VendorPageSkeleton() {
|
|
3580
|
-
return /* @__PURE__ */
|
|
3720
|
+
return /* @__PURE__ */ jsx25(VendorDetailLayoutSkeleton, {});
|
|
3581
3721
|
}
|
|
3582
3722
|
|
|
3583
3723
|
// src/components/why-it-matters.tsx
|
|
3584
|
-
import { jsx as
|
|
3724
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3585
3725
|
|
|
3586
3726
|
// src/components/yes-no-display.tsx
|
|
3587
|
-
import { jsx as
|
|
3727
|
+
import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3588
3728
|
function YesNoDisplay({ value, yesText = "Yes", noText = "No", customText, className = "" }) {
|
|
3589
3729
|
if (customText) {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3591
|
-
/* @__PURE__ */
|
|
3592
|
-
/* @__PURE__ */
|
|
3730
|
+
return /* @__PURE__ */ jsxs22("div", { className: `flex items-center gap-2 ${className}`, children: [
|
|
3731
|
+
/* @__PURE__ */ jsx27(CheckCircleIcon2, { className: "h-6 w-6" }),
|
|
3732
|
+
/* @__PURE__ */ jsx27("span", { className: "text-ods-text-primary text-h6", children: customText })
|
|
3593
3733
|
] });
|
|
3594
3734
|
}
|
|
3595
3735
|
if (value) {
|
|
3596
|
-
return /* @__PURE__ */
|
|
3597
|
-
/* @__PURE__ */
|
|
3598
|
-
/* @__PURE__ */
|
|
3736
|
+
return /* @__PURE__ */ jsxs22("div", { className: `flex items-center gap-2 ${className}`, children: [
|
|
3737
|
+
/* @__PURE__ */ jsx27(CheckCircleIcon2, { className: "h-6 w-6" }),
|
|
3738
|
+
/* @__PURE__ */ jsx27("span", { className: "text-ods-text-primary text-h6", children: yesText })
|
|
3599
3739
|
] });
|
|
3600
3740
|
}
|
|
3601
|
-
return /* @__PURE__ */
|
|
3602
|
-
/* @__PURE__ */
|
|
3603
|
-
/* @__PURE__ */
|
|
3741
|
+
return /* @__PURE__ */ jsxs22("div", { className: `flex items-center gap-2 ${className}`, children: [
|
|
3742
|
+
/* @__PURE__ */ jsx27(XCircleIcon, { className: "h-6 w-6" }),
|
|
3743
|
+
/* @__PURE__ */ jsx27("span", { className: "text-ods-text-secondary text-h6", children: noText })
|
|
3604
3744
|
] });
|
|
3605
3745
|
}
|
|
3606
3746
|
function evaluateFeatureValue(value, dataType) {
|
|
@@ -3634,11 +3774,11 @@ function evaluateFeatureValue(value, dataType) {
|
|
|
3634
3774
|
}
|
|
3635
3775
|
|
|
3636
3776
|
// src/components/made-with-love.tsx
|
|
3637
|
-
import { useState as
|
|
3638
|
-
import { jsx as
|
|
3777
|
+
import { useState as useState7, useEffect as useEffect3 } from "react";
|
|
3778
|
+
import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3639
3779
|
function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
3640
|
-
const [isMobile, setIsMobile] =
|
|
3641
|
-
const [isHovered, setIsHovered] =
|
|
3780
|
+
const [isMobile, setIsMobile] = useState7(false);
|
|
3781
|
+
const [isHovered, setIsHovered] = useState7(false);
|
|
3642
3782
|
useEffect3(() => {
|
|
3643
3783
|
const checkMobile = () => {
|
|
3644
3784
|
setIsMobile(window.innerWidth < 640);
|
|
@@ -3705,9 +3845,9 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3705
3845
|
marginLeft: "4px",
|
|
3706
3846
|
textDecoration: "none"
|
|
3707
3847
|
};
|
|
3708
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ jsxs23("div", { style: containerStyle, className, children: [
|
|
3709
3849
|
"Made with love by",
|
|
3710
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ jsxs23(
|
|
3711
3851
|
"a",
|
|
3712
3852
|
{
|
|
3713
3853
|
href: flamingoUrl,
|
|
@@ -3717,14 +3857,14 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3717
3857
|
onMouseEnter: () => setIsHovered(true),
|
|
3718
3858
|
onMouseLeave: () => setIsHovered(false),
|
|
3719
3859
|
children: [
|
|
3720
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ jsx28("div", { style: logoStyle, children: /* @__PURE__ */ jsx28(
|
|
3721
3861
|
FlamingoLogo2,
|
|
3722
3862
|
{
|
|
3723
3863
|
size: config.logoSize,
|
|
3724
3864
|
color: "#f357bb"
|
|
3725
3865
|
}
|
|
3726
3866
|
) }),
|
|
3727
|
-
/* @__PURE__ */
|
|
3867
|
+
/* @__PURE__ */ jsx28("span", { style: textStyle, children: "Flamingo" })
|
|
3728
3868
|
]
|
|
3729
3869
|
}
|
|
3730
3870
|
)
|
|
@@ -3733,7 +3873,7 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3733
3873
|
|
|
3734
3874
|
// src/components/date-time-picker.tsx
|
|
3735
3875
|
import DatePicker2 from "react-datepicker";
|
|
3736
|
-
import { jsx as
|
|
3876
|
+
import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3737
3877
|
var inputClassName = cn(
|
|
3738
3878
|
"flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background",
|
|
3739
3879
|
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
@@ -3757,9 +3897,9 @@ function DateTimePicker({
|
|
|
3757
3897
|
timeIntervals = 15,
|
|
3758
3898
|
dateFormat = "MMMM d, yyyy h:mm aa"
|
|
3759
3899
|
}) {
|
|
3760
|
-
return /* @__PURE__ */
|
|
3761
|
-
label && /* @__PURE__ */
|
|
3762
|
-
/* @__PURE__ */
|
|
3900
|
+
return /* @__PURE__ */ jsxs24("div", { className: cn("space-y-2", className), children: [
|
|
3901
|
+
label && /* @__PURE__ */ jsx29(Label, { className: "font-semibold text-ods-text-secondary text-h5", children: label }),
|
|
3902
|
+
/* @__PURE__ */ jsx29("div", { className: "w-full", children: /* @__PURE__ */ jsx29(
|
|
3763
3903
|
DatePicker2,
|
|
3764
3904
|
{
|
|
3765
3905
|
selected: value,
|
|
@@ -3774,7 +3914,7 @@ function DateTimePicker({
|
|
|
3774
3914
|
className: inputClassName
|
|
3775
3915
|
}
|
|
3776
3916
|
) }),
|
|
3777
|
-
/* @__PURE__ */
|
|
3917
|
+
/* @__PURE__ */ jsx29(
|
|
3778
3918
|
"style",
|
|
3779
3919
|
{
|
|
3780
3920
|
dangerouslySetInnerHTML: {
|
|
@@ -3885,7 +4025,7 @@ function DateTimePicker({
|
|
|
3885
4025
|
}
|
|
3886
4026
|
|
|
3887
4027
|
// src/components/authors/author-detail-view.tsx
|
|
3888
|
-
import { jsx as
|
|
4028
|
+
import { jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3889
4029
|
function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
3890
4030
|
const runtime = useChatRuntime();
|
|
3891
4031
|
const proxiedAvatar = author.avatarUrl ? proxyImageUrl ? proxyImageUrl(author.avatarUrl) : getProxiedImageUrl(author.avatarUrl, {
|
|
@@ -3895,14 +4035,14 @@ function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
|
3895
4035
|
}) ?? author.avatarUrl : null;
|
|
3896
4036
|
const subtitle = [author.jobTitle, author.company].filter(Boolean).join(" @ ");
|
|
3897
4037
|
const bioText = formatBioText(author.about);
|
|
3898
|
-
return /* @__PURE__ */
|
|
3899
|
-
/* @__PURE__ */
|
|
3900
|
-
/* @__PURE__ */
|
|
3901
|
-
/* @__PURE__ */
|
|
3902
|
-
/* @__PURE__ */
|
|
3903
|
-
subtitle && /* @__PURE__ */
|
|
4038
|
+
return /* @__PURE__ */ jsxs25("div", { className: cn("flex flex-col gap-5 md:gap-6", className), children: [
|
|
4039
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex w-full items-start gap-6", children: [
|
|
4040
|
+
/* @__PURE__ */ jsx30("div", { className: "relative h-24 w-24 shrink-0", children: /* @__PURE__ */ jsx30("div", { className: "relative h-full w-full overflow-hidden rounded-full border border-ods-border bg-ods-bg-surface", children: proxiedAvatar ? /* @__PURE__ */ jsx30(next_image_default, { src: proxiedAvatar, alt: author.fullName, fill: true, className: "object-cover", unoptimized: true }) : /* @__PURE__ */ jsx30("div", { className: "flex h-full w-full items-center justify-center font-heading text-3xl text-ods-text-secondary", children: author.fullName.charAt(0).toUpperCase() }) }) }),
|
|
4041
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex min-w-0 flex-col justify-center gap-2", children: [
|
|
4042
|
+
/* @__PURE__ */ jsx30("p", { className: "truncate leading-none text-ods-text-primary text-h2", children: author.fullName }),
|
|
4043
|
+
subtitle && /* @__PURE__ */ jsx30("p", { className: "truncate font-body text-lg leading-none text-ods-text-secondary", children: subtitle }),
|
|
3904
4044
|
author.socialLinks.length > 0 && // Ghost compact row (transparent 32px) — metadata, not CTAs.
|
|
3905
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsx30(
|
|
3906
4046
|
SocialIconRow,
|
|
3907
4047
|
{
|
|
3908
4048
|
compact: true,
|
|
@@ -3915,8 +4055,8 @@ function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
|
3915
4055
|
)
|
|
3916
4056
|
] })
|
|
3917
4057
|
] }),
|
|
3918
|
-
bioText && /* @__PURE__ */
|
|
3919
|
-
author.knowsAbout.length > 0 && /* @__PURE__ */
|
|
4058
|
+
bioText && /* @__PURE__ */ jsx30("p", { className: "text-ods-text-secondary text-h6", children: bioText }),
|
|
4059
|
+
author.knowsAbout.length > 0 && /* @__PURE__ */ jsx30("div", { className: "flex flex-wrap gap-2", children: author.knowsAbout.map((topic) => /* @__PURE__ */ jsx30(StatusBadge, { text: topic, variant: "button", colorScheme: "cyan", singleLine: true }, topic)) }),
|
|
3920
4060
|
children
|
|
3921
4061
|
] });
|
|
3922
4062
|
}
|
|
@@ -3946,6 +4086,8 @@ export {
|
|
|
3946
4086
|
AdminFormModal,
|
|
3947
4087
|
AgentMark,
|
|
3948
4088
|
AiAssistantInfo,
|
|
4089
|
+
AiPromptCard,
|
|
4090
|
+
AiPromptCardSkeleton,
|
|
3949
4091
|
AiRobotIcon,
|
|
3950
4092
|
Alert,
|
|
3951
4093
|
AlertDescription,
|
|
@@ -4141,6 +4283,8 @@ export {
|
|
|
4141
4283
|
CommentCard,
|
|
4142
4284
|
CommentComposer,
|
|
4143
4285
|
CommentSkeleton,
|
|
4286
|
+
CommentThread,
|
|
4287
|
+
CommentsBlock,
|
|
4144
4288
|
CommunityHubIcon,
|
|
4145
4289
|
CommunityIcon,
|
|
4146
4290
|
CompactPageLoader,
|