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