@flamingo-stack/openframe-frontend-core 0.0.617 → 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-UVK7AQAG.js → chunk-3BNNYHP2.js} +3 -3
- package/dist/{chunk-VHS3OYE4.js → chunk-3Z5ZIKDX.js} +2532 -2460
- package/dist/chunk-3Z5ZIKDX.js.map +1 -0
- package/dist/{chunk-BJDQZH62.cjs → chunk-4ZGUSO7M.cjs} +5 -5
- package/dist/{chunk-BJDQZH62.cjs.map → chunk-4ZGUSO7M.cjs.map} +1 -1
- package/dist/{chunk-HGPGF6SF.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-FP5WYJ3S.js → chunk-65SWJSQX.js} +8 -3
- package/dist/{chunk-FP5WYJ3S.js.map → chunk-65SWJSQX.js.map} +1 -1
- package/dist/{chunk-BLUL2TE3.js → chunk-7HWVD42H.js} +24 -4
- package/dist/chunk-7HWVD42H.js.map +1 -0
- package/dist/{chunk-HR6CHKD6.cjs → chunk-AU2Q75HU.cjs} +6 -6
- package/dist/{chunk-HR6CHKD6.cjs.map → chunk-AU2Q75HU.cjs.map} +1 -1
- package/dist/{chunk-45OAW4M2.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-67XFJ442.cjs → chunk-DXR23SLZ.cjs} +523 -451
- package/dist/chunk-DXR23SLZ.cjs.map +1 -0
- 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-TRY3CUWJ.cjs → chunk-EIFU6N5L.cjs} +29 -29
- package/dist/{chunk-TRY3CUWJ.cjs.map → chunk-EIFU6N5L.cjs.map} +1 -1
- package/dist/{chunk-UQEOAPAI.cjs → chunk-EYKTKDRK.cjs} +101 -58
- package/dist/chunk-EYKTKDRK.cjs.map +1 -0
- package/dist/{chunk-IW746HJ7.js → chunk-FHR2JU2J.js} +2 -2
- package/dist/{chunk-7GLJC4EO.cjs → chunk-GAPXVAS6.cjs} +151 -146
- package/dist/chunk-GAPXVAS6.cjs.map +1 -0
- package/dist/{chunk-QPAPUIF3.cjs → chunk-GNWKLE7O.cjs} +58 -38
- package/dist/chunk-GNWKLE7O.cjs.map +1 -0
- package/dist/{chunk-VNNIRX23.cjs → chunk-HF4EZICZ.cjs} +3 -3
- package/dist/{chunk-VNNIRX23.cjs.map → chunk-HF4EZICZ.cjs.map} +1 -1
- package/dist/{chunk-CXEGV3ZS.js → chunk-HPIRQWNK.js} +3 -3
- package/dist/{chunk-CGCV4QT2.js → chunk-I7RWVDN4.js} +5 -5
- package/dist/{chunk-RZURBPBS.js → chunk-J27HVNT2.js} +4 -4
- package/dist/{chunk-WFM5OAM6.js → chunk-JA2SIJ7T.js} +4 -4
- package/dist/{chunk-UVXMIZYK.js → chunk-JBXNDB5U.js} +8 -8
- package/dist/{chunk-JZELYIFZ.cjs → chunk-KQDGZS3U.cjs} +33 -33
- package/dist/{chunk-JZELYIFZ.cjs.map → chunk-KQDGZS3U.cjs.map} +1 -1
- package/dist/{chunk-7YHUP5BR.js → chunk-LPGBA4UZ.js} +3 -3
- package/dist/{chunk-2OJVGAGX.cjs → chunk-M4V2O2MT.cjs} +12 -12
- package/dist/{chunk-2OJVGAGX.cjs.map → chunk-M4V2O2MT.cjs.map} +1 -1
- package/dist/{chunk-VJJ7LGOI.js → chunk-MJRXGAXS.js} +5 -5
- package/dist/{chunk-V23BJC2Q.cjs → chunk-NOW7NGUH.cjs} +15 -15
- package/dist/{chunk-V23BJC2Q.cjs.map → chunk-NOW7NGUH.cjs.map} +1 -1
- package/dist/{chunk-GH4F4ODL.js → chunk-OD4JKGQG.js} +8 -8
- package/dist/{chunk-FMNS5NN2.cjs → chunk-P3I5KY4A.cjs} +20 -20
- package/dist/{chunk-FMNS5NN2.cjs.map → chunk-P3I5KY4A.cjs.map} +1 -1
- package/dist/{chunk-USP3UWID.cjs → chunk-QVOS4BPC.cjs} +65 -65
- package/dist/{chunk-USP3UWID.cjs.map → chunk-QVOS4BPC.cjs.map} +1 -1
- package/dist/{chunk-ZJYZOOTU.js → chunk-RTC3H5RW.js} +4 -4
- package/dist/{chunk-RU3IKVY2.js → chunk-S44BHDOI.js} +507 -464
- package/dist/chunk-S44BHDOI.js.map +1 -0
- package/dist/{chunk-6RMFEGJ4.js → chunk-SKRI6QJ5.js} +2 -2
- package/dist/{chunk-7FFKXXWY.cjs → chunk-U7MQS4CR.cjs} +88 -88
- package/dist/{chunk-7FFKXXWY.cjs.map → chunk-U7MQS4CR.cjs.map} +1 -1
- package/dist/{chunk-332JHI2D.cjs → chunk-UP2OB7RI.cjs} +11 -11
- package/dist/{chunk-332JHI2D.cjs.map → chunk-UP2OB7RI.cjs.map} +1 -1
- package/dist/{chunk-ULM5FCFN.cjs → chunk-UWPZT3FY.cjs} +6 -6
- package/dist/{chunk-ULM5FCFN.cjs.map → chunk-UWPZT3FY.cjs.map} +1 -1
- package/dist/{chunk-TSCIVH7T.js → chunk-VBIFSOPQ.js} +2 -2
- package/dist/{chunk-ZQOK4TCN.cjs → chunk-XRWY5ETC.cjs} +22 -22
- package/dist/{chunk-ZQOK4TCN.cjs.map → chunk-XRWY5ETC.cjs.map} +1 -1
- package/dist/{chunk-LFLJ3IHE.cjs → chunk-YNA7ZCDS.cjs} +28 -28
- package/dist/{chunk-LFLJ3IHE.cjs.map → chunk-YNA7ZCDS.cjs.map} +1 -1
- package/dist/{chunk-5KKLN7Q2.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 +225 -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 +342 -194
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +8 -8
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- 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/avatar-stack.d.ts +16 -3
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +13 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +12 -4
- package/dist/components/ui/people-cell.d.ts +46 -0
- package/dist/components/ui/people-cell.d.ts.map +1 -0
- package/dist/index.cjs +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -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/format.d.ts +8 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +10 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +10 -2
- 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/meeting-scheduler/context-panel.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +1 -1
- package/src/components/related-content/__tests__/card-registry.test.tsx +7 -0
- package/src/components/related-content/card-registry.tsx +20 -1
- package/src/components/ui/__tests__/people-cell.test.tsx +97 -0
- package/src/components/ui/avatar-stack.tsx +40 -13
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/people-cell.tsx +133 -0
- package/src/components/ui/table/__tests__/header-hint.test.tsx +2 -2
- 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/format.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/list-url.ts +1 -0
- package/src/utils/source-icons.ts +3 -0
- package/dist/chunk-67XFJ442.cjs.map +0 -1
- package/dist/chunk-7GLJC4EO.cjs.map +0 -1
- package/dist/chunk-BLUL2TE3.js.map +0 -1
- package/dist/chunk-GBON2OCG.js.map +0 -1
- package/dist/chunk-QPAPUIF3.cjs.map +0 -1
- package/dist/chunk-RU3IKVY2.js.map +0 -1
- package/dist/chunk-UQEOAPAI.cjs.map +0 -1
- package/dist/chunk-VHS3OYE4.js.map +0 -1
- /package/dist/{chunk-UVK7AQAG.js.map → chunk-3BNNYHP2.js.map} +0 -0
- /package/dist/{chunk-HGPGF6SF.js.map → chunk-5DUTXG6P.js.map} +0 -0
- /package/dist/{chunk-45OAW4M2.js.map → chunk-D4ARG53E.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-FHR2JU2J.js.map} +0 -0
- /package/dist/{chunk-CXEGV3ZS.js.map → chunk-HPIRQWNK.js.map} +0 -0
- /package/dist/{chunk-CGCV4QT2.js.map → chunk-I7RWVDN4.js.map} +0 -0
- /package/dist/{chunk-RZURBPBS.js.map → chunk-J27HVNT2.js.map} +0 -0
- /package/dist/{chunk-WFM5OAM6.js.map → chunk-JA2SIJ7T.js.map} +0 -0
- /package/dist/{chunk-UVXMIZYK.js.map → chunk-JBXNDB5U.js.map} +0 -0
- /package/dist/{chunk-7YHUP5BR.js.map → chunk-LPGBA4UZ.js.map} +0 -0
- /package/dist/{chunk-VJJ7LGOI.js.map → chunk-MJRXGAXS.js.map} +0 -0
- /package/dist/{chunk-GH4F4ODL.js.map → chunk-OD4JKGQG.js.map} +0 -0
- /package/dist/{chunk-ZJYZOOTU.js.map → chunk-RTC3H5RW.js.map} +0 -0
- /package/dist/{chunk-6RMFEGJ4.js.map → chunk-SKRI6QJ5.js.map} +0 -0
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-VBIFSOPQ.js.map} +0 -0
- /package/dist/{chunk-5KKLN7Q2.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";
|
|
@@ -394,6 +394,8 @@ import {
|
|
|
394
394
|
PasswordInput,
|
|
395
395
|
PasswordResetForm,
|
|
396
396
|
PathsDisplay,
|
|
397
|
+
PeopleCell,
|
|
398
|
+
PersonCell,
|
|
397
399
|
PhoneInput,
|
|
398
400
|
PlatformFilterComponent,
|
|
399
401
|
PlatformSkeletonContainer,
|
|
@@ -615,7 +617,7 @@ import {
|
|
|
615
617
|
useTimeTracker,
|
|
616
618
|
useTrackerClock,
|
|
617
619
|
useWalkthroughVideo
|
|
618
|
-
} from "../chunk-
|
|
620
|
+
} from "../chunk-3Z5ZIKDX.js";
|
|
619
621
|
import "../chunk-L2SLFCXP.js";
|
|
620
622
|
import "../chunk-BJXDHKUX.js";
|
|
621
623
|
import {
|
|
@@ -640,7 +642,7 @@ import {
|
|
|
640
642
|
PaginationLink,
|
|
641
643
|
PaginationNext,
|
|
642
644
|
PaginationPrevious
|
|
643
|
-
} from "../chunk-
|
|
645
|
+
} from "../chunk-5WGOAJ4B.js";
|
|
644
646
|
import {
|
|
645
647
|
positiveInt
|
|
646
648
|
} from "../chunk-BVQEU5JB.js";
|
|
@@ -985,7 +987,7 @@ import {
|
|
|
985
987
|
useVideoOriginPreconnect,
|
|
986
988
|
useVideoWarmup,
|
|
987
989
|
usesCanonicalStatusStyle
|
|
988
|
-
} from "../chunk-
|
|
990
|
+
} from "../chunk-65SWJSQX.js";
|
|
989
991
|
import {
|
|
990
992
|
errorMessage,
|
|
991
993
|
scrollElementIntoView
|
|
@@ -1147,6 +1149,8 @@ import "../chunk-IMDG23LW.js";
|
|
|
1147
1149
|
import "../chunk-W72U7OU7.js";
|
|
1148
1150
|
import {
|
|
1149
1151
|
AdminContentCard,
|
|
1152
|
+
AiPromptCard,
|
|
1153
|
+
AiPromptCardSkeleton,
|
|
1150
1154
|
AvatarStack,
|
|
1151
1155
|
BlogCard,
|
|
1152
1156
|
BlogCardSkeleton,
|
|
@@ -1239,7 +1243,7 @@ import {
|
|
|
1239
1243
|
transformPodcastToProgram,
|
|
1240
1244
|
transformWebinarToProgram,
|
|
1241
1245
|
useCoverImageFallback
|
|
1242
|
-
} from "../chunk-
|
|
1246
|
+
} from "../chunk-S44BHDOI.js";
|
|
1243
1247
|
import {
|
|
1244
1248
|
next_image_default
|
|
1245
1249
|
} from "../chunk-MDKCTSDS.js";
|
|
@@ -2173,9 +2177,147 @@ function CommentComposer({
|
|
|
2173
2177
|
] });
|
|
2174
2178
|
}
|
|
2175
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
|
+
|
|
2176
2318
|
// src/components/filter-chip.tsx
|
|
2177
2319
|
import { X as X2 } from "lucide-react";
|
|
2178
|
-
import { jsx as
|
|
2320
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2179
2321
|
function FilterChip({
|
|
2180
2322
|
label,
|
|
2181
2323
|
variant = "unselected",
|
|
@@ -2207,7 +2349,7 @@ function FilterChip({
|
|
|
2207
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",
|
|
2208
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"
|
|
2209
2351
|
};
|
|
2210
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ jsxs9(
|
|
2211
2353
|
"div",
|
|
2212
2354
|
{
|
|
2213
2355
|
className: cn(baseClasses, variantClasses[variant], className),
|
|
@@ -2221,7 +2363,7 @@ function FilterChip({
|
|
|
2221
2363
|
"aria-pressed": onClick && variant === "selected" ? true : void 0,
|
|
2222
2364
|
"aria-disabled": disabled,
|
|
2223
2365
|
children: [
|
|
2224
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ jsx11(
|
|
2225
2367
|
"span",
|
|
2226
2368
|
{
|
|
2227
2369
|
className: cn(
|
|
@@ -2232,7 +2374,7 @@ function FilterChip({
|
|
|
2232
2374
|
children: label
|
|
2233
2375
|
}
|
|
2234
2376
|
),
|
|
2235
|
-
removable && onRemove && /* @__PURE__ */
|
|
2377
|
+
removable && onRemove && /* @__PURE__ */ jsx11(
|
|
2236
2378
|
"button",
|
|
2237
2379
|
{
|
|
2238
2380
|
type: "button",
|
|
@@ -2251,7 +2393,7 @@ function FilterChip({
|
|
|
2251
2393
|
),
|
|
2252
2394
|
"aria-label": `Remove ${label} filter`,
|
|
2253
2395
|
tabIndex: disabled ? -1 : 0,
|
|
2254
|
-
children: /* @__PURE__ */
|
|
2396
|
+
children: /* @__PURE__ */ jsx11(X2, { className: "h-2 w-2 md:h-2 md:w-2" })
|
|
2255
2397
|
}
|
|
2256
2398
|
)
|
|
2257
2399
|
]
|
|
@@ -2261,22 +2403,22 @@ function FilterChip({
|
|
|
2261
2403
|
|
|
2262
2404
|
// src/components/footer.tsx
|
|
2263
2405
|
import { Suspense } from "react";
|
|
2264
|
-
import { Fragment as
|
|
2406
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2265
2407
|
function NavLinkSkeleton() {
|
|
2266
|
-
return /* @__PURE__ */
|
|
2408
|
+
return /* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-20 md:h-6 md:w-24" });
|
|
2267
2409
|
}
|
|
2268
2410
|
function Footer({ config, renderLink }) {
|
|
2269
2411
|
if (!config) {
|
|
2270
2412
|
console.warn("Footer: No config provided");
|
|
2271
2413
|
return null;
|
|
2272
2414
|
}
|
|
2273
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx12(UniversalFooter, { config, renderLink });
|
|
2274
2416
|
}
|
|
2275
2417
|
function UniversalFooter({
|
|
2276
2418
|
config,
|
|
2277
2419
|
renderLink
|
|
2278
2420
|
}) {
|
|
2279
|
-
const defaultRenderLink = (link) => /* @__PURE__ */
|
|
2421
|
+
const defaultRenderLink = (link) => /* @__PURE__ */ jsx12(
|
|
2280
2422
|
"a",
|
|
2281
2423
|
{
|
|
2282
2424
|
href: link.href,
|
|
@@ -2285,21 +2427,21 @@ function UniversalFooter({
|
|
|
2285
2427
|
}
|
|
2286
2428
|
);
|
|
2287
2429
|
const linkRenderer = renderLink || defaultRenderLink;
|
|
2288
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ jsxs10(
|
|
2289
2431
|
"footer",
|
|
2290
2432
|
{
|
|
2291
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`,
|
|
2292
2434
|
children: [
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
/* @__PURE__ */
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
config.logo && /* @__PURE__ */
|
|
2297
|
-
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 })
|
|
2298
2440
|
] }),
|
|
2299
|
-
!config.moveDescriptionToRight && /* @__PURE__ */
|
|
2300
|
-
/* @__PURE__ */
|
|
2301
|
-
config.belowDescriptionContent && /* @__PURE__ */
|
|
2302
|
-
!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(
|
|
2303
2445
|
SocialIconRow,
|
|
2304
2446
|
{
|
|
2305
2447
|
className: "pt-2",
|
|
@@ -2307,22 +2449,22 @@ function UniversalFooter({
|
|
|
2307
2449
|
}
|
|
2308
2450
|
)
|
|
2309
2451
|
] }),
|
|
2310
|
-
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 })
|
|
2311
2453
|
] }),
|
|
2312
|
-
config.sections.map((section, index) => /* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2314
|
-
/* @__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)) })
|
|
2315
2457
|
] }, index)),
|
|
2316
|
-
config.customComponent && /* @__PURE__ */
|
|
2317
|
-
(config.rightColumnContent || config.moveDescriptionToRight) && /* @__PURE__ */
|
|
2318
|
-
config.moveDescriptionToRight && /* @__PURE__ */
|
|
2319
|
-
/* @__PURE__ */
|
|
2320
|
-
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 })
|
|
2321
2463
|
] }),
|
|
2322
|
-
config.rightColumnContent && /* @__PURE__ */
|
|
2464
|
+
config.rightColumnContent && /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(Skeleton, { className: "h-32 w-full" }), children: config.rightColumnContent })
|
|
2323
2465
|
] })
|
|
2324
2466
|
] }),
|
|
2325
|
-
/* @__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: [
|
|
2326
2468
|
"\xA9 ",
|
|
2327
2469
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
2328
2470
|
" ",
|
|
@@ -2642,20 +2784,20 @@ var blogFilterConfig = {
|
|
|
2642
2784
|
|
|
2643
2785
|
// src/components/footer-waitlist-button.tsx
|
|
2644
2786
|
import { useCallback } from "react";
|
|
2645
|
-
import { jsx as
|
|
2787
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2646
2788
|
function FooterWaitlistButton({ className }) {
|
|
2647
2789
|
const router = useRouter();
|
|
2648
2790
|
const runtime = useChatRuntime();
|
|
2649
2791
|
const handleClick = useCallback(() => {
|
|
2650
2792
|
executeNavigationImperative({ runtime, href: "/waitlist#top", fallbackNavigate: router.push });
|
|
2651
2793
|
}, [router, runtime]);
|
|
2652
|
-
return /* @__PURE__ */
|
|
2794
|
+
return /* @__PURE__ */ jsx13(Button, { onClick: handleClick, className, leftIcon: /* @__PURE__ */ jsx13(OpenFrameLogo, {}), children: "Join Waitlist" });
|
|
2653
2795
|
}
|
|
2654
2796
|
|
|
2655
2797
|
// src/components/hero-image-uploader.tsx
|
|
2656
2798
|
import { Loader2, Image as ImageIcon2, Upload, X as X3 } from "lucide-react";
|
|
2657
|
-
import { useRef, useState as
|
|
2658
|
-
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";
|
|
2659
2801
|
function readUploadedUrl(payload) {
|
|
2660
2802
|
if (typeof payload !== "object" || payload === null) return null;
|
|
2661
2803
|
if ("data" in payload) {
|
|
@@ -2681,7 +2823,7 @@ function HeroImageUploader({
|
|
|
2681
2823
|
}) {
|
|
2682
2824
|
const inputRef = useRef(null);
|
|
2683
2825
|
const { toast } = useToast();
|
|
2684
|
-
const [uploading, setUploading] =
|
|
2826
|
+
const [uploading, setUploading] = useState4(false);
|
|
2685
2827
|
const ALLOWED_TYPES = ["image/jpeg", "image/jpg", "image/png", "image/webp", "image/gif"];
|
|
2686
2828
|
const MAX_SIZE = 5 * 1024 * 1024;
|
|
2687
2829
|
const openDialog = () => inputRef.current?.click();
|
|
@@ -2758,59 +2900,59 @@ function HeroImageUploader({
|
|
|
2758
2900
|
onChange(void 0);
|
|
2759
2901
|
};
|
|
2760
2902
|
const heightStyle = typeof height === "number" ? `${height}px` : height;
|
|
2761
|
-
return /* @__PURE__ */
|
|
2762
|
-
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(
|
|
2763
2905
|
"div",
|
|
2764
2906
|
{
|
|
2765
2907
|
className: "group relative flex aspect-square h-auto w-full items-center justify-center overflow-hidden md:aspect-auto md:h-full",
|
|
2766
2908
|
style: { height: heightStyle },
|
|
2767
2909
|
children: [
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
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(
|
|
2771
2913
|
Button,
|
|
2772
2914
|
{
|
|
2773
2915
|
variant: "outline",
|
|
2774
2916
|
size: "icon",
|
|
2775
2917
|
onClick: openDialog,
|
|
2776
2918
|
className: "h-12 w-12 rounded-full bg-white text-black hover:bg-gray-100",
|
|
2777
|
-
children: /* @__PURE__ */
|
|
2919
|
+
children: /* @__PURE__ */ jsx14(Upload, { className: "h-5 w-5" })
|
|
2778
2920
|
}
|
|
2779
2921
|
),
|
|
2780
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx14(
|
|
2781
2923
|
Button,
|
|
2782
2924
|
{
|
|
2783
2925
|
variant: "outline",
|
|
2784
2926
|
size: "icon",
|
|
2785
2927
|
onClick: () => handleRemove(),
|
|
2786
2928
|
className: "h-12 w-12 rounded-full bg-white text-black hover:bg-gray-100",
|
|
2787
|
-
children: /* @__PURE__ */
|
|
2929
|
+
children: /* @__PURE__ */ jsx14(X3, { className: "h-5 w-5" })
|
|
2788
2930
|
}
|
|
2789
2931
|
)
|
|
2790
2932
|
] })
|
|
2791
2933
|
]
|
|
2792
2934
|
}
|
|
2793
|
-
) : /* @__PURE__ */
|
|
2935
|
+
) : /* @__PURE__ */ jsx14(
|
|
2794
2936
|
"div",
|
|
2795
2937
|
{
|
|
2796
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`,
|
|
2797
2939
|
style: { height: heightStyle },
|
|
2798
2940
|
onClick: openDialog,
|
|
2799
|
-
children: uploading ? /* @__PURE__ */
|
|
2800
|
-
/* @__PURE__ */
|
|
2801
|
-
/* @__PURE__ */
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
/* @__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" })
|
|
2804
2946
|
] })
|
|
2805
2947
|
}
|
|
2806
2948
|
),
|
|
2807
|
-
/* @__PURE__ */
|
|
2949
|
+
/* @__PURE__ */ jsx14("input", { ref: inputRef, type: "file", accept: "image/*", onChange: handleSelect, className: "hidden" })
|
|
2808
2950
|
] });
|
|
2809
2951
|
}
|
|
2810
2952
|
|
|
2811
2953
|
// src/components/icons-block.tsx
|
|
2812
2954
|
import { Sun, Moon, CheckCircle, Github, PlusCircle } from "lucide-react";
|
|
2813
|
-
import { useState as
|
|
2955
|
+
import { useState as useState5, useEffect as useEffect2, useMemo as useMemo2 } from "react";
|
|
2814
2956
|
|
|
2815
2957
|
// src/components/icons-stub.tsx
|
|
2816
2958
|
import { DollarSign, Code, Users, Building, GitCompare, MessageSquare } from "lucide-react";
|
|
@@ -2823,13 +2965,13 @@ var CommunityIcon2 = MessageSquare;
|
|
|
2823
2965
|
var CompareIcon2 = GitCompare;
|
|
2824
2966
|
|
|
2825
2967
|
// src/components/icons-block.tsx
|
|
2826
|
-
import { jsx as
|
|
2968
|
+
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2827
2969
|
var SunIcon2 = Sun;
|
|
2828
2970
|
var MoonIcon2 = Moon;
|
|
2829
2971
|
var CheckCircleIcon3 = CheckCircle;
|
|
2830
2972
|
var GitHubIcon2 = Github;
|
|
2831
2973
|
var PlusCircleIcon2 = PlusCircle;
|
|
2832
|
-
var OpenmspLogo2 = () => /* @__PURE__ */
|
|
2974
|
+
var OpenmspLogo2 = () => /* @__PURE__ */ jsx15("div", { children: "Logo" });
|
|
2833
2975
|
var availableIcons = [
|
|
2834
2976
|
VendorDirectoryIcon2,
|
|
2835
2977
|
OpenSourceIcon2,
|
|
@@ -2869,8 +3011,8 @@ function buildIconGrid(columns, seed) {
|
|
|
2869
3011
|
return grid;
|
|
2870
3012
|
}
|
|
2871
3013
|
function ResponsiveIconsBlock({ loading = false }) {
|
|
2872
|
-
const [columns, setColumns] =
|
|
2873
|
-
const [randomSeed] =
|
|
3014
|
+
const [columns, setColumns] = useState5(24);
|
|
3015
|
+
const [randomSeed] = useState5(() => Date.now());
|
|
2874
3016
|
const hydrated = useIsHydrated();
|
|
2875
3017
|
const iconGrid = useMemo2(
|
|
2876
3018
|
() => hydrated ? buildIconGrid(columns, randomSeed) : NO_GRID,
|
|
@@ -2892,17 +3034,17 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2892
3034
|
return iconGrid[row]?.[col] || availableIcons[0];
|
|
2893
3035
|
};
|
|
2894
3036
|
if (loading || iconGrid.length === 0) {
|
|
2895
|
-
return /* @__PURE__ */
|
|
3037
|
+
return /* @__PURE__ */ jsx15(
|
|
2896
3038
|
"div",
|
|
2897
3039
|
{
|
|
2898
3040
|
className: "relative h-[80px] w-full overflow-hidden bg-[#1A1A1A] md:h-[112px]",
|
|
2899
3041
|
role: "presentation",
|
|
2900
3042
|
"aria-hidden": "true",
|
|
2901
|
-
children: /* @__PURE__ */
|
|
3043
|
+
children: /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 animate-pulse bg-[#2A2A2A]/60" })
|
|
2902
3044
|
}
|
|
2903
3045
|
);
|
|
2904
3046
|
}
|
|
2905
|
-
return /* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsxs12(
|
|
2906
3048
|
"div",
|
|
2907
3049
|
{
|
|
2908
3050
|
className: "relative z-10 h-[80px] w-full overflow-hidden bg-[#1A1A1A] md:h-[112px]",
|
|
@@ -2910,14 +3052,14 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2910
3052
|
role: "presentation",
|
|
2911
3053
|
"aria-hidden": "true",
|
|
2912
3054
|
children: [
|
|
2913
|
-
/* @__PURE__ */
|
|
3055
|
+
/* @__PURE__ */ jsx15("style", { children: `
|
|
2914
3056
|
.icons-block svg,
|
|
2915
3057
|
.icons-block svg * {
|
|
2916
3058
|
filter: grayscale(100%) brightness(0) invert(1) brightness(0.4) !important;
|
|
2917
3059
|
fill: currentColor !important;
|
|
2918
3060
|
}
|
|
2919
3061
|
` }),
|
|
2920
|
-
/* @__PURE__ */
|
|
3062
|
+
/* @__PURE__ */ jsx15(
|
|
2921
3063
|
"div",
|
|
2922
3064
|
{
|
|
2923
3065
|
className: "icons-block grid h-full w-full",
|
|
@@ -2929,7 +3071,7 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2929
3071
|
const col = idx % displayColumns;
|
|
2930
3072
|
const row = Math.floor(idx / displayColumns);
|
|
2931
3073
|
const IconComponent = getIconForIndex(idx);
|
|
2932
|
-
return /* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ jsx15(
|
|
2933
3075
|
"div",
|
|
2934
3076
|
{
|
|
2935
3077
|
className: "flex h-full w-full items-center justify-center",
|
|
@@ -2942,7 +3084,7 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2942
3084
|
boxSizing: "border-box"
|
|
2943
3085
|
},
|
|
2944
3086
|
role: "presentation",
|
|
2945
|
-
children: /* @__PURE__ */
|
|
3087
|
+
children: /* @__PURE__ */ jsx15(IconComponent, { width: 16, height: 16, className: "text-[#666666] md:h-5 md:w-5", "aria-hidden": "true" })
|
|
2946
3088
|
},
|
|
2947
3089
|
idx
|
|
2948
3090
|
);
|
|
@@ -2956,9 +3098,9 @@ function ResponsiveIconsBlock({ loading = false }) {
|
|
|
2956
3098
|
|
|
2957
3099
|
// src/components/image-cropper.tsx
|
|
2958
3100
|
import { Check, RotateCcw } from "lucide-react";
|
|
2959
|
-
import { useCallback as useCallback2, useState as
|
|
3101
|
+
import { useCallback as useCallback2, useState as useState6 } from "react";
|
|
2960
3102
|
import Cropper from "react-easy-crop";
|
|
2961
|
-
import { jsx as
|
|
3103
|
+
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2962
3104
|
function loadImage(src) {
|
|
2963
3105
|
return new Promise((resolve, reject) => {
|
|
2964
3106
|
const img = new Image();
|
|
@@ -2977,10 +3119,10 @@ var ImageCropper = ({
|
|
|
2977
3119
|
maxSizePx = 512,
|
|
2978
3120
|
className
|
|
2979
3121
|
}) => {
|
|
2980
|
-
const [crop, setCrop] =
|
|
2981
|
-
const [zoom, setZoom] =
|
|
2982
|
-
const [rotation, setRotation] =
|
|
2983
|
-
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);
|
|
2984
3126
|
const onCropComplete = useCallback2((_croppedAreaPercentages, areaPixels) => {
|
|
2985
3127
|
setCroppedAreaPixels(areaPixels);
|
|
2986
3128
|
}, []);
|
|
@@ -3045,7 +3187,7 @@ var ImageCropper = ({
|
|
|
3045
3187
|
onCancel?.();
|
|
3046
3188
|
}
|
|
3047
3189
|
};
|
|
3048
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsxs13(
|
|
3049
3191
|
"div",
|
|
3050
3192
|
{
|
|
3051
3193
|
className: cn("relative flex w-full flex-col gap-4", className),
|
|
@@ -3053,7 +3195,7 @@ var ImageCropper = ({
|
|
|
3053
3195
|
tabIndex: 0,
|
|
3054
3196
|
"aria-label": "Image cropper",
|
|
3055
3197
|
children: [
|
|
3056
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx16("div", { className: cn("relative aspect-square w-full overflow-hidden rounded-md md:aspect-video", checkerBg), children: /* @__PURE__ */ jsx16(
|
|
3057
3199
|
Cropper,
|
|
3058
3200
|
{
|
|
3059
3201
|
image: src,
|
|
@@ -3070,10 +3212,10 @@ var ImageCropper = ({
|
|
|
3070
3212
|
objectFit: "contain"
|
|
3071
3213
|
}
|
|
3072
3214
|
) }),
|
|
3073
|
-
/* @__PURE__ */
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__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(
|
|
3077
3219
|
Slider,
|
|
3078
3220
|
{
|
|
3079
3221
|
min: 1,
|
|
@@ -3086,9 +3228,9 @@ var ImageCropper = ({
|
|
|
3086
3228
|
}
|
|
3087
3229
|
)
|
|
3088
3230
|
] }),
|
|
3089
|
-
/* @__PURE__ */
|
|
3090
|
-
/* @__PURE__ */
|
|
3091
|
-
/* @__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(
|
|
3092
3234
|
Slider,
|
|
3093
3235
|
{
|
|
3094
3236
|
min: 0,
|
|
@@ -3100,12 +3242,12 @@ var ImageCropper = ({
|
|
|
3100
3242
|
className: "flex-1"
|
|
3101
3243
|
}
|
|
3102
3244
|
),
|
|
3103
|
-
/* @__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" }) })
|
|
3104
3246
|
] })
|
|
3105
3247
|
] }),
|
|
3106
|
-
/* @__PURE__ */
|
|
3107
|
-
onCancel && /* @__PURE__ */
|
|
3108
|
-
/* @__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(
|
|
3109
3251
|
Button,
|
|
3110
3252
|
{
|
|
3111
3253
|
variant: "accent",
|
|
@@ -3113,7 +3255,7 @@ var ImageCropper = ({
|
|
|
3113
3255
|
const result = await exportCrop();
|
|
3114
3256
|
if (result) onComplete(result);
|
|
3115
3257
|
},
|
|
3116
|
-
leftIcon: /* @__PURE__ */
|
|
3258
|
+
leftIcon: /* @__PURE__ */ jsx16(Check, { className: "h-4 w-4" }),
|
|
3117
3259
|
"aria-label": "Apply crop",
|
|
3118
3260
|
children: "Apply"
|
|
3119
3261
|
}
|
|
@@ -3125,19 +3267,19 @@ var ImageCropper = ({
|
|
|
3125
3267
|
};
|
|
3126
3268
|
|
|
3127
3269
|
// src/components/metric-value.tsx
|
|
3128
|
-
import { jsx as
|
|
3270
|
+
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3129
3271
|
function MetricValue({ value, label, className }) {
|
|
3130
|
-
return /* @__PURE__ */
|
|
3272
|
+
return /* @__PURE__ */ jsxs14("div", { className: cn("flex items-end gap-2 whitespace-nowrap text-ods-text-primary text-h4", className), children: [
|
|
3131
3273
|
value,
|
|
3132
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx17("span", { className: "text-ods-text-secondary text-h6", children: label })
|
|
3133
3275
|
] });
|
|
3134
3276
|
}
|
|
3135
3277
|
|
|
3136
3278
|
// src/components/msp-display.tsx
|
|
3137
|
-
import { jsx as
|
|
3279
|
+
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3138
3280
|
function MSPDisplay({ name, logoUrl, size = 40, className }) {
|
|
3139
|
-
return /* @__PURE__ */
|
|
3140
|
-
/* @__PURE__ */
|
|
3281
|
+
return /* @__PURE__ */ jsxs15("div", { className: cn("flex min-w-0 items-center gap-2", className), children: [
|
|
3282
|
+
/* @__PURE__ */ jsx18(
|
|
3141
3283
|
SquareAvatar,
|
|
3142
3284
|
{
|
|
3143
3285
|
src: logoUrl ? getProxiedImageUrl(logoUrl) || logoUrl : void 0,
|
|
@@ -3146,16 +3288,16 @@ function MSPDisplay({ name, logoUrl, size = 40, className }) {
|
|
|
3146
3288
|
sizePx: size
|
|
3147
3289
|
}
|
|
3148
3290
|
),
|
|
3149
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ jsx18("h2", { className: "truncate pl-2", children: name })
|
|
3150
3292
|
] });
|
|
3151
3293
|
}
|
|
3152
3294
|
|
|
3153
3295
|
// src/components/open-source-features.tsx
|
|
3154
3296
|
import { Terminal, DollarSign as DollarSign2, Network, Users as Users2 } from "lucide-react";
|
|
3155
|
-
import { jsx as
|
|
3297
|
+
import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3156
3298
|
|
|
3157
3299
|
// src/components/pricing-display.tsx
|
|
3158
|
-
import { jsx as
|
|
3300
|
+
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3159
3301
|
var PRICING_STYLES = {
|
|
3160
3302
|
// Comparison table style (current default)
|
|
3161
3303
|
comparison: {
|
|
@@ -3191,11 +3333,11 @@ function PricingDisplay({
|
|
|
3191
3333
|
styleConfig = PRICING_STYLES.comparison
|
|
3192
3334
|
}) {
|
|
3193
3335
|
if (typeof pricing === "string") {
|
|
3194
|
-
return /* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ jsx20(LegacyPricingDisplay, { pricing, className, styleConfig });
|
|
3195
3337
|
}
|
|
3196
3338
|
const pricingArray = Array.isArray(pricing) ? pricing : [pricing];
|
|
3197
3339
|
if (!pricingArray || pricingArray.length === 0) {
|
|
3198
|
-
return /* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ jsx20(
|
|
3199
3341
|
"span",
|
|
3200
3342
|
{
|
|
3201
3343
|
className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize} ${styleConfig.fontFamily} ${className}`,
|
|
@@ -3207,9 +3349,9 @@ function PricingDisplay({
|
|
|
3207
3349
|
const item = pricingArray[0];
|
|
3208
3350
|
const price = item.ranges?.[0]?.min || 0;
|
|
3209
3351
|
const unit = item.ranges?.[0]?.unit;
|
|
3210
|
-
return /* @__PURE__ */
|
|
3211
|
-
/* @__PURE__ */
|
|
3212
|
-
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: [
|
|
3213
3355
|
"/",
|
|
3214
3356
|
unit
|
|
3215
3357
|
] })
|
|
@@ -3219,9 +3361,9 @@ function PricingDisplay({
|
|
|
3219
3361
|
(item) => formatPriceValue(item.ranges?.[0]?.min || 0, styleConfig.showTildePrefix)
|
|
3220
3362
|
);
|
|
3221
3363
|
const itemWithUnit = pricingArray.find((item) => item.ranges?.[0]?.unit);
|
|
3222
|
-
return /* @__PURE__ */
|
|
3223
|
-
/* @__PURE__ */
|
|
3224
|
-
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: [
|
|
3225
3367
|
"/",
|
|
3226
3368
|
itemWithUnit.ranges[0].unit
|
|
3227
3369
|
] })
|
|
@@ -3242,7 +3384,7 @@ function LegacyPricingDisplay({
|
|
|
3242
3384
|
styleConfig = PRICING_STYLES.comparison
|
|
3243
3385
|
}) {
|
|
3244
3386
|
if (pricing === "Free" || pricing === "No pricing data") {
|
|
3245
|
-
return /* @__PURE__ */
|
|
3387
|
+
return /* @__PURE__ */ jsx20(
|
|
3246
3388
|
"span",
|
|
3247
3389
|
{
|
|
3248
3390
|
className: `${styleConfig.priceTextColor} ${styleConfig.priceTextSize} ${styleConfig.fontFamily} ${className}`,
|
|
@@ -3304,9 +3446,9 @@ function LegacyPricingDisplay({
|
|
|
3304
3446
|
};
|
|
3305
3447
|
};
|
|
3306
3448
|
const { mainValue, secondaryInfo } = parsePricing(pricing);
|
|
3307
|
-
return /* @__PURE__ */
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
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 })
|
|
3310
3452
|
] });
|
|
3311
3453
|
}
|
|
3312
3454
|
function formatPricingForDisplay(pricing) {
|
|
@@ -3314,7 +3456,7 @@ function formatPricingForDisplay(pricing) {
|
|
|
3314
3456
|
}
|
|
3315
3457
|
|
|
3316
3458
|
// src/components/results-count.tsx
|
|
3317
|
-
import { Fragment as
|
|
3459
|
+
import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3318
3460
|
function ResultsCount({ currentPage, pageSize, totalResults, resultType, sortingMessage }) {
|
|
3319
3461
|
if (totalResults === 0) {
|
|
3320
3462
|
return null;
|
|
@@ -3324,7 +3466,7 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3324
3466
|
const plural = resultType === "vendors" ? "vendors" : "posts";
|
|
3325
3467
|
const singular = resultType === "vendors" ? "vendor" : "post";
|
|
3326
3468
|
const displayType = totalResults === 1 ? singular : plural;
|
|
3327
|
-
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: [
|
|
3328
3470
|
"Showing ",
|
|
3329
3471
|
startIndex,
|
|
3330
3472
|
"-",
|
|
@@ -3333,7 +3475,7 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3333
3475
|
totalResults,
|
|
3334
3476
|
" ",
|
|
3335
3477
|
displayType,
|
|
3336
|
-
sortingMessage && /* @__PURE__ */
|
|
3478
|
+
sortingMessage && /* @__PURE__ */ jsxs18("span", { className: "ml-2 text-ods-accent", children: [
|
|
3337
3479
|
"\u2022 ",
|
|
3338
3480
|
sortingMessage
|
|
3339
3481
|
] })
|
|
@@ -3344,14 +3486,14 @@ function ResultsCount({ currentPage, pageSize, totalResults, resultType, sorting
|
|
|
3344
3486
|
import { Boxes, Database, Hand, Plug, ShieldCheck, Sparkles } from "lucide-react";
|
|
3345
3487
|
|
|
3346
3488
|
// src/components/openframe-logo.tsx
|
|
3347
|
-
import { jsx as
|
|
3489
|
+
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3348
3490
|
var OpenFrameLogo2 = ({
|
|
3349
3491
|
className,
|
|
3350
3492
|
lowerPathColor,
|
|
3351
3493
|
upperPathColor,
|
|
3352
3494
|
...props
|
|
3353
3495
|
}) => {
|
|
3354
|
-
return /* @__PURE__ */
|
|
3496
|
+
return /* @__PURE__ */ jsx22(
|
|
3355
3497
|
"svg",
|
|
3356
3498
|
{
|
|
3357
3499
|
...props,
|
|
@@ -3365,30 +3507,30 @@ var OpenFrameLogo2 = ({
|
|
|
3365
3507
|
"--fill-0": "currentColor",
|
|
3366
3508
|
...props.style
|
|
3367
3509
|
},
|
|
3368
|
-
children: /* @__PURE__ */
|
|
3369
|
-
/* @__PURE__ */
|
|
3370
|
-
/* @__PURE__ */
|
|
3510
|
+
children: /* @__PURE__ */ jsxs19("g", { children: [
|
|
3511
|
+
/* @__PURE__ */ jsxs19("g", { children: [
|
|
3512
|
+
/* @__PURE__ */ jsx22(
|
|
3371
3513
|
"path",
|
|
3372
3514
|
{
|
|
3373
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",
|
|
3374
3516
|
fill: lowerPathColor ?? "#ffffff"
|
|
3375
3517
|
}
|
|
3376
3518
|
),
|
|
3377
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ jsx22(
|
|
3378
3520
|
"path",
|
|
3379
3521
|
{
|
|
3380
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",
|
|
3381
3523
|
fill: lowerPathColor ?? "#ffffff"
|
|
3382
3524
|
}
|
|
3383
3525
|
),
|
|
3384
|
-
/* @__PURE__ */
|
|
3526
|
+
/* @__PURE__ */ jsx22(
|
|
3385
3527
|
"path",
|
|
3386
3528
|
{
|
|
3387
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",
|
|
3388
3530
|
fill: lowerPathColor ?? "#ffffff"
|
|
3389
3531
|
}
|
|
3390
3532
|
),
|
|
3391
|
-
/* @__PURE__ */
|
|
3533
|
+
/* @__PURE__ */ jsx22(
|
|
3392
3534
|
"path",
|
|
3393
3535
|
{
|
|
3394
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",
|
|
@@ -3396,7 +3538,7 @@ var OpenFrameLogo2 = ({
|
|
|
3396
3538
|
}
|
|
3397
3539
|
)
|
|
3398
3540
|
] }),
|
|
3399
|
-
/* @__PURE__ */
|
|
3541
|
+
/* @__PURE__ */ jsx22(
|
|
3400
3542
|
"path",
|
|
3401
3543
|
{
|
|
3402
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",
|
|
@@ -3409,7 +3551,7 @@ var OpenFrameLogo2 = ({
|
|
|
3409
3551
|
};
|
|
3410
3552
|
|
|
3411
3553
|
// src/components/vendor-tag.tsx
|
|
3412
|
-
import { jsx as
|
|
3554
|
+
import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3413
3555
|
function VendorTag({ type, text, className = "", hidden = false, size = "md", accentColor }) {
|
|
3414
3556
|
const baseClasses = cn(
|
|
3415
3557
|
"flex items-center gap-1.5 whitespace-nowrap rounded border border-ods-border bg-ods-bg",
|
|
@@ -3421,99 +3563,99 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3421
3563
|
return {
|
|
3422
3564
|
text: "Placeholder",
|
|
3423
3565
|
textColor: "text-ods-text-primary",
|
|
3424
|
-
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" }) })
|
|
3425
3567
|
};
|
|
3426
3568
|
case "ai":
|
|
3427
3569
|
return {
|
|
3428
3570
|
text: "AI Selected",
|
|
3429
3571
|
textColor: "text-ods-text-primary",
|
|
3430
|
-
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" }) })
|
|
3431
3573
|
};
|
|
3432
3574
|
case "manual":
|
|
3433
3575
|
return {
|
|
3434
3576
|
text: "Manually Selected",
|
|
3435
3577
|
textColor: "text-ods-text-secondary",
|
|
3436
|
-
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" }) })
|
|
3437
3579
|
};
|
|
3438
3580
|
case "open-source":
|
|
3439
3581
|
return {
|
|
3440
3582
|
text: text || "Open Source",
|
|
3441
|
-
icon: /* @__PURE__ */
|
|
3583
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3442
3584
|
"div",
|
|
3443
3585
|
{
|
|
3444
3586
|
className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-accent",
|
|
3445
3587
|
style: accentColor ? { backgroundColor: accentColor } : void 0,
|
|
3446
|
-
children: /* @__PURE__ */
|
|
3588
|
+
children: /* @__PURE__ */ jsx23(OpenSourceIcon2, { width: 10, height: 10, className: "text-ods-text-on-accent" })
|
|
3447
3589
|
}
|
|
3448
3590
|
)
|
|
3449
3591
|
};
|
|
3450
3592
|
case "commercial":
|
|
3451
3593
|
return {
|
|
3452
3594
|
text: text || "Commercial Vendor",
|
|
3453
|
-
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" }) })
|
|
3454
3596
|
};
|
|
3455
3597
|
// platform-capability tags — same neutral icon-box chrome as 'commercial'
|
|
3456
3598
|
case "api":
|
|
3457
3599
|
return {
|
|
3458
3600
|
text: text || "API",
|
|
3459
|
-
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" }) })
|
|
3460
3602
|
};
|
|
3461
3603
|
case "data":
|
|
3462
3604
|
return {
|
|
3463
3605
|
text: text || "Data",
|
|
3464
|
-
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" }) })
|
|
3465
3607
|
};
|
|
3466
3608
|
case "k8s":
|
|
3467
3609
|
return {
|
|
3468
3610
|
text: text || "K8s",
|
|
3469
|
-
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" }) })
|
|
3470
3612
|
};
|
|
3471
3613
|
case "secured":
|
|
3472
3614
|
return {
|
|
3473
3615
|
text: text || "Secured",
|
|
3474
|
-
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" }) })
|
|
3475
3617
|
};
|
|
3476
3618
|
case "free":
|
|
3477
3619
|
return {
|
|
3478
3620
|
text: text || "Free",
|
|
3479
|
-
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: "$" }) })
|
|
3480
3622
|
};
|
|
3481
3623
|
case "freemium":
|
|
3482
3624
|
return {
|
|
3483
3625
|
text: text || "Freemium",
|
|
3484
|
-
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: "$" }) })
|
|
3485
3627
|
};
|
|
3486
3628
|
case "paid":
|
|
3487
3629
|
return {
|
|
3488
3630
|
text: text || "Paid",
|
|
3489
|
-
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" }) })
|
|
3490
3632
|
};
|
|
3491
3633
|
case "enterprise":
|
|
3492
3634
|
return {
|
|
3493
3635
|
text: text || "Enterprise",
|
|
3494
|
-
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" }) })
|
|
3495
3637
|
};
|
|
3496
3638
|
case "recommended":
|
|
3497
3639
|
return {
|
|
3498
3640
|
text: text || "Recommended",
|
|
3499
|
-
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" }) })
|
|
3500
3642
|
};
|
|
3501
3643
|
case "classification": {
|
|
3502
3644
|
const classificationType = text?.toLowerCase();
|
|
3503
3645
|
if (classificationType === "open_source") {
|
|
3504
3646
|
return {
|
|
3505
3647
|
text: "Open Source",
|
|
3506
|
-
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" }) })
|
|
3507
3649
|
};
|
|
3508
3650
|
} else if (classificationType === "commercial") {
|
|
3509
3651
|
return {
|
|
3510
3652
|
text: "Commercial Vendor",
|
|
3511
|
-
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" }) })
|
|
3512
3654
|
};
|
|
3513
3655
|
} else if (classificationType === "openframe_selected") {
|
|
3514
3656
|
return {
|
|
3515
3657
|
text: "OpenFrame Selected",
|
|
3516
|
-
icon: /* @__PURE__ */
|
|
3658
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3517
3659
|
OpenFrameLogo2,
|
|
3518
3660
|
{
|
|
3519
3661
|
lowerPathColor: "currentColor",
|
|
@@ -3525,14 +3667,14 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3525
3667
|
} else {
|
|
3526
3668
|
return {
|
|
3527
3669
|
text: text || "Classification",
|
|
3528
|
-
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" }) })
|
|
3529
3671
|
};
|
|
3530
3672
|
}
|
|
3531
3673
|
}
|
|
3532
3674
|
case "openframe_selected":
|
|
3533
3675
|
return {
|
|
3534
3676
|
text: text || "OpenFrame Selected",
|
|
3535
|
-
icon: /* @__PURE__ */
|
|
3677
|
+
icon: /* @__PURE__ */ jsx23(
|
|
3536
3678
|
OpenFrameLogo2,
|
|
3537
3679
|
{
|
|
3538
3680
|
lowerPathColor: "currentColor",
|
|
@@ -3549,19 +3691,19 @@ function VendorTag({ type, text, className = "", hidden = false, size = "md", ac
|
|
|
3549
3691
|
}
|
|
3550
3692
|
};
|
|
3551
3693
|
const { text: displayText, icon, textColor } = getTagContent();
|
|
3552
|
-
return /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ jsxs20("div", { className: cn(baseClasses, className, hidden && "invisible"), children: [
|
|
3553
3695
|
icon,
|
|
3554
|
-
/* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ jsx23("span", { className: cn("font-semibold text-h5", textColor ? textColor : "text-ods-text-primary"), children: displayText })
|
|
3555
3697
|
] });
|
|
3556
3698
|
}
|
|
3557
3699
|
|
|
3558
3700
|
// src/components/selection-source-badge.tsx
|
|
3559
|
-
import { jsx as
|
|
3701
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3560
3702
|
function SelectionSourceBadge({ source, hidden = false }) {
|
|
3561
3703
|
if (!source) {
|
|
3562
3704
|
return null;
|
|
3563
3705
|
}
|
|
3564
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ jsx24(
|
|
3565
3707
|
VendorTag,
|
|
3566
3708
|
{
|
|
3567
3709
|
type: source?.toLowerCase(),
|
|
@@ -3573,32 +3715,32 @@ function SelectionSourceBadge({ source, hidden = false }) {
|
|
|
3573
3715
|
}
|
|
3574
3716
|
|
|
3575
3717
|
// src/components/vendor-page-skeleton.tsx
|
|
3576
|
-
import { jsx as
|
|
3718
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
3577
3719
|
function VendorPageSkeleton() {
|
|
3578
|
-
return /* @__PURE__ */
|
|
3720
|
+
return /* @__PURE__ */ jsx25(VendorDetailLayoutSkeleton, {});
|
|
3579
3721
|
}
|
|
3580
3722
|
|
|
3581
3723
|
// src/components/why-it-matters.tsx
|
|
3582
|
-
import { jsx as
|
|
3724
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3583
3725
|
|
|
3584
3726
|
// src/components/yes-no-display.tsx
|
|
3585
|
-
import { jsx as
|
|
3727
|
+
import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3586
3728
|
function YesNoDisplay({ value, yesText = "Yes", noText = "No", customText, className = "" }) {
|
|
3587
3729
|
if (customText) {
|
|
3588
|
-
return /* @__PURE__ */
|
|
3589
|
-
/* @__PURE__ */
|
|
3590
|
-
/* @__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 })
|
|
3591
3733
|
] });
|
|
3592
3734
|
}
|
|
3593
3735
|
if (value) {
|
|
3594
|
-
return /* @__PURE__ */
|
|
3595
|
-
/* @__PURE__ */
|
|
3596
|
-
/* @__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 })
|
|
3597
3739
|
] });
|
|
3598
3740
|
}
|
|
3599
|
-
return /* @__PURE__ */
|
|
3600
|
-
/* @__PURE__ */
|
|
3601
|
-
/* @__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 })
|
|
3602
3744
|
] });
|
|
3603
3745
|
}
|
|
3604
3746
|
function evaluateFeatureValue(value, dataType) {
|
|
@@ -3632,11 +3774,11 @@ function evaluateFeatureValue(value, dataType) {
|
|
|
3632
3774
|
}
|
|
3633
3775
|
|
|
3634
3776
|
// src/components/made-with-love.tsx
|
|
3635
|
-
import { useState as
|
|
3636
|
-
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";
|
|
3637
3779
|
function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
3638
|
-
const [isMobile, setIsMobile] =
|
|
3639
|
-
const [isHovered, setIsHovered] =
|
|
3780
|
+
const [isMobile, setIsMobile] = useState7(false);
|
|
3781
|
+
const [isHovered, setIsHovered] = useState7(false);
|
|
3640
3782
|
useEffect3(() => {
|
|
3641
3783
|
const checkMobile = () => {
|
|
3642
3784
|
setIsMobile(window.innerWidth < 640);
|
|
@@ -3703,9 +3845,9 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3703
3845
|
marginLeft: "4px",
|
|
3704
3846
|
textDecoration: "none"
|
|
3705
3847
|
};
|
|
3706
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ jsxs23("div", { style: containerStyle, className, children: [
|
|
3707
3849
|
"Made with love by",
|
|
3708
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ jsxs23(
|
|
3709
3851
|
"a",
|
|
3710
3852
|
{
|
|
3711
3853
|
href: flamingoUrl,
|
|
@@ -3715,14 +3857,14 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3715
3857
|
onMouseEnter: () => setIsHovered(true),
|
|
3716
3858
|
onMouseLeave: () => setIsHovered(false),
|
|
3717
3859
|
children: [
|
|
3718
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ jsx28("div", { style: logoStyle, children: /* @__PURE__ */ jsx28(
|
|
3719
3861
|
FlamingoLogo2,
|
|
3720
3862
|
{
|
|
3721
3863
|
size: config.logoSize,
|
|
3722
3864
|
color: "#f357bb"
|
|
3723
3865
|
}
|
|
3724
3866
|
) }),
|
|
3725
|
-
/* @__PURE__ */
|
|
3867
|
+
/* @__PURE__ */ jsx28("span", { style: textStyle, children: "Flamingo" })
|
|
3726
3868
|
]
|
|
3727
3869
|
}
|
|
3728
3870
|
)
|
|
@@ -3731,7 +3873,7 @@ function MadeWithLove({ className = "", size = "md", showOnMobile = true }) {
|
|
|
3731
3873
|
|
|
3732
3874
|
// src/components/date-time-picker.tsx
|
|
3733
3875
|
import DatePicker2 from "react-datepicker";
|
|
3734
|
-
import { jsx as
|
|
3876
|
+
import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3735
3877
|
var inputClassName = cn(
|
|
3736
3878
|
"flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background",
|
|
3737
3879
|
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
@@ -3755,9 +3897,9 @@ function DateTimePicker({
|
|
|
3755
3897
|
timeIntervals = 15,
|
|
3756
3898
|
dateFormat = "MMMM d, yyyy h:mm aa"
|
|
3757
3899
|
}) {
|
|
3758
|
-
return /* @__PURE__ */
|
|
3759
|
-
label && /* @__PURE__ */
|
|
3760
|
-
/* @__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(
|
|
3761
3903
|
DatePicker2,
|
|
3762
3904
|
{
|
|
3763
3905
|
selected: value,
|
|
@@ -3772,7 +3914,7 @@ function DateTimePicker({
|
|
|
3772
3914
|
className: inputClassName
|
|
3773
3915
|
}
|
|
3774
3916
|
) }),
|
|
3775
|
-
/* @__PURE__ */
|
|
3917
|
+
/* @__PURE__ */ jsx29(
|
|
3776
3918
|
"style",
|
|
3777
3919
|
{
|
|
3778
3920
|
dangerouslySetInnerHTML: {
|
|
@@ -3883,7 +4025,7 @@ function DateTimePicker({
|
|
|
3883
4025
|
}
|
|
3884
4026
|
|
|
3885
4027
|
// src/components/authors/author-detail-view.tsx
|
|
3886
|
-
import { jsx as
|
|
4028
|
+
import { jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3887
4029
|
function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
3888
4030
|
const runtime = useChatRuntime();
|
|
3889
4031
|
const proxiedAvatar = author.avatarUrl ? proxyImageUrl ? proxyImageUrl(author.avatarUrl) : getProxiedImageUrl(author.avatarUrl, {
|
|
@@ -3893,14 +4035,14 @@ function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
|
3893
4035
|
}) ?? author.avatarUrl : null;
|
|
3894
4036
|
const subtitle = [author.jobTitle, author.company].filter(Boolean).join(" @ ");
|
|
3895
4037
|
const bioText = formatBioText(author.about);
|
|
3896
|
-
return /* @__PURE__ */
|
|
3897
|
-
/* @__PURE__ */
|
|
3898
|
-
/* @__PURE__ */
|
|
3899
|
-
/* @__PURE__ */
|
|
3900
|
-
/* @__PURE__ */
|
|
3901
|
-
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 }),
|
|
3902
4044
|
author.socialLinks.length > 0 && // Ghost compact row (transparent 32px) — metadata, not CTAs.
|
|
3903
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsx30(
|
|
3904
4046
|
SocialIconRow,
|
|
3905
4047
|
{
|
|
3906
4048
|
compact: true,
|
|
@@ -3913,8 +4055,8 @@ function AuthorDetailView({ author, proxyImageUrl, children, className }) {
|
|
|
3913
4055
|
)
|
|
3914
4056
|
] })
|
|
3915
4057
|
] }),
|
|
3916
|
-
bioText && /* @__PURE__ */
|
|
3917
|
-
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)) }),
|
|
3918
4060
|
children
|
|
3919
4061
|
] });
|
|
3920
4062
|
}
|
|
@@ -3944,6 +4086,8 @@ export {
|
|
|
3944
4086
|
AdminFormModal,
|
|
3945
4087
|
AgentMark,
|
|
3946
4088
|
AiAssistantInfo,
|
|
4089
|
+
AiPromptCard,
|
|
4090
|
+
AiPromptCardSkeleton,
|
|
3947
4091
|
AiRobotIcon,
|
|
3948
4092
|
Alert,
|
|
3949
4093
|
AlertDescription,
|
|
@@ -4139,6 +4283,8 @@ export {
|
|
|
4139
4283
|
CommentCard,
|
|
4140
4284
|
CommentComposer,
|
|
4141
4285
|
CommentSkeleton,
|
|
4286
|
+
CommentThread,
|
|
4287
|
+
CommentsBlock,
|
|
4142
4288
|
CommunityHubIcon,
|
|
4143
4289
|
CommunityIcon,
|
|
4144
4290
|
CompactPageLoader,
|
|
@@ -4593,12 +4739,14 @@ export {
|
|
|
4593
4739
|
PatchPolicyIcon,
|
|
4594
4740
|
PathsDisplay,
|
|
4595
4741
|
PdfViewer,
|
|
4742
|
+
PeopleCell,
|
|
4596
4743
|
PersistentFilterControls,
|
|
4597
4744
|
PersistentMobileDropdown,
|
|
4598
4745
|
PersistentPagination,
|
|
4599
4746
|
PersistentPaginationWrapper,
|
|
4600
4747
|
PersistentSearchContainer,
|
|
4601
4748
|
PersistentSidebar,
|
|
4749
|
+
PersonCell,
|
|
4602
4750
|
PhoneInput,
|
|
4603
4751
|
PilotIcon,
|
|
4604
4752
|
PlatformBadge,
|