@flamingo-stack/openframe-frontend-core 0.0.820 → 0.0.822
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/build/export-map.json +1 -1
- package/dist/chat-protocol/citation-chip.d.ts +20 -0
- package/dist/chat-protocol/citation-chip.d.ts.map +1 -0
- package/dist/chat-protocol/citation-chip.js +25 -0
- package/dist/chat-protocol/index.cjs +25 -0
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +1 -0
- package/dist/{chunk-OTGYA5F7.cjs → chunk-2LT2WR4O.cjs} +57 -46
- package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
- package/dist/{chunk-NSN3O47K.cjs → chunk-3BW6PEAB.cjs} +32 -32
- package/dist/{chunk-L55EVW33.cjs → chunk-6UVOL3ZF.cjs} +6 -6
- package/dist/{chunk-IJ3C4WL5.cjs → chunk-BN535RBR.cjs} +55 -55
- package/dist/{chunk-MOPDE3OA.cjs → chunk-D5JSCXSL.cjs} +13 -13
- package/dist/{chunk-JQ3JZLYS.cjs → chunk-DYSMAPSI.cjs} +4 -4
- package/dist/{chunk-7X7PHALX.cjs → chunk-ECLKFEZP.cjs} +11 -11
- package/dist/{chunk-DLQCSJTY.cjs → chunk-FQQDI3UN.cjs} +3 -3
- package/dist/{chunk-5GUQBNQF.cjs → chunk-GA2PYQLC.cjs} +63 -63
- package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
- package/dist/{chunk-BHJDQYUN.cjs → chunk-M6PCHMRI.cjs} +131 -131
- package/dist/{chunk-TYDSD3FV.cjs → chunk-N6X5H3JM.cjs} +4 -4
- package/dist/{chunk-TVOAFYT7.cjs → chunk-NSGD22VV.cjs} +39 -39
- package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
- package/dist/{chunk-YAY7Z42C.cjs → chunk-SBXL5EKE.cjs} +32 -97
- package/dist/{chunk-CJ7VHMPD.cjs → chunk-TJFVIJPV.cjs} +2 -2
- package/dist/{chunk-42K7MLVS.cjs → chunk-U643BWTQ.cjs} +30 -30
- package/dist/{chunk-STFOH6QU.cjs → chunk-U7CH53FT.cjs} +13 -13
- package/dist/{chunk-ADBZCDFX.cjs → chunk-UUFL4FDS.cjs} +14 -14
- package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
- package/dist/{chunk-2TEUAOUZ.cjs → chunk-YCWG63NR.cjs} +3 -3
- package/dist/{cloud-tenants-ENCHNOF2.cjs → cloud-tenants-AKMN4SU4.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/remark-strip-citations.d.ts +3 -4
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +3 -13
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +2 -6
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/contexts/chat-runtime-context.d.ts +4 -3
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-HRLHG4TR.cjs → devices-IHDA22KS.cjs} +7 -7
- package/dist/{embeddable-chat-ARMXVLUP.cjs → embeddable-chat-MQGYFYGX.cjs} +68 -72
- package/dist/index.cjs +17 -17
- package/dist/{knowledge-S2L5ZCAU.cjs → knowledge-JHSMUC6Y.cjs} +7 -7
- package/dist/{logs-UYQZSFS4.cjs → logs-7PMA2ARK.cjs} +14 -14
- package/dist/{policies-SMA4MW6L.cjs → policies-QNNZVXIS.cjs} +10 -10
- package/dist/{scripts-TZNXTFRR.cjs → scripts-LOMWOSQS.cjs} +11 -11
- package/dist/{software-update-YHDVBC7V.cjs → software-update-YF3VQIP4.cjs} +9 -9
- package/dist/utils/image-proxy.d.ts +3 -2
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/image-proxy.js +11 -4
- package/dist/utils/index.cjs +68 -62
- package/package.json +1 -1
- package/src/chat-protocol/citation-chip.ts +46 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/components/chat/remark-strip-citations.ts +7 -26
- package/src/components/chat/utils/cited-sources.ts +2 -8
- package/src/contexts/chat-runtime-context.tsx +4 -3
- package/src/utils/image-proxy.ts +17 -6
|
@@ -12,7 +12,7 @@ var _chunkNPNZAAOBcjs = require('./chunk-NPNZAAOB.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunkUDLDXVY4cjs = require('./chunk-UDLDXVY4.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -449,13 +449,13 @@ function programEntry(configKey) {
|
|
|
449
449
|
return cardEntry({
|
|
450
450
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
451
451
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
452
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
453
453
|
decode: decodeProgramRow,
|
|
454
454
|
render: (item, ctx) => {
|
|
455
455
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
456
456
|
if (!config) return null;
|
|
457
457
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
458
|
-
|
|
458
|
+
_chunkQCRJVO6Ycjs.ProgramCard,
|
|
459
459
|
{
|
|
460
460
|
config,
|
|
461
461
|
item,
|
|
@@ -473,10 +473,10 @@ function programEntry(configKey) {
|
|
|
473
473
|
}
|
|
474
474
|
function roadmapEntry(cardType) {
|
|
475
475
|
return cardEntry({
|
|
476
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
476
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
477
477
|
decode: decodeRoadmapRow,
|
|
478
478
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
479
|
-
|
|
479
|
+
_chunkQCRJVO6Ycjs.RoadmapCard,
|
|
480
480
|
{
|
|
481
481
|
item,
|
|
482
482
|
href: ctx.href,
|
|
@@ -493,10 +493,10 @@ function roadmapEntry(cardType) {
|
|
|
493
493
|
}
|
|
494
494
|
var RELATED_CARD_REGISTRY = {
|
|
495
495
|
blog_post_existing: cardEntry({
|
|
496
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
496
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
497
497
|
decode: decodeBlogRow,
|
|
498
498
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
499
|
-
|
|
499
|
+
_chunkQCRJVO6Ycjs.BlogCard,
|
|
500
500
|
{
|
|
501
501
|
post,
|
|
502
502
|
size: ctx.legacySize,
|
|
@@ -524,10 +524,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
524
524
|
)
|
|
525
525
|
}),
|
|
526
526
|
customer_interview: cardEntry({
|
|
527
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
528
528
|
decode: decodeCustomerInterviewRow,
|
|
529
529
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
530
|
-
|
|
530
|
+
_chunkQCRJVO6Ycjs.CustomerInterviewCard,
|
|
531
531
|
{
|
|
532
532
|
interview,
|
|
533
533
|
size: ctx.legacySize,
|
|
@@ -545,13 +545,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
545
545
|
* record, and the three props the rail sets itself are read off it.
|
|
546
546
|
*/
|
|
547
547
|
product_release: cardEntry({
|
|
548
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
549
549
|
decode: asRecord,
|
|
550
550
|
render: (release, ctx) => {
|
|
551
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
551
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkQCRJVO6Ycjs.buildProductReleaseCardProps));
|
|
552
552
|
const releaseProps = buildReleaseProps(release);
|
|
553
553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunkQCRJVO6Ycjs.ProductReleaseCard,
|
|
555
555
|
{
|
|
556
556
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
557
557
|
title: str(release, "title"),
|
|
@@ -567,10 +567,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
567
567
|
webinar: programEntry("webinar"),
|
|
568
568
|
event: programEntry("event"),
|
|
569
569
|
investor_update: cardEntry({
|
|
570
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
571
571
|
decode: decodeInvestorUpdateRow,
|
|
572
572
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
573
|
-
|
|
573
|
+
_chunkQCRJVO6Ycjs.InvestorUpdateCard,
|
|
574
574
|
{
|
|
575
575
|
update,
|
|
576
576
|
size: ctx.legacySize,
|
|
@@ -585,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
585
585
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
586
586
|
* section" rail, not this full-width row. */
|
|
587
587
|
onboarding_guide: cardEntry({
|
|
588
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
589
589
|
decode: decodeOnboardingGuideRow,
|
|
590
590
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunkQCRJVO6Ycjs.OnboardingGuideCard,
|
|
592
592
|
{
|
|
593
593
|
guide,
|
|
594
594
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -605,10 +605,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
605
605
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
606
606
|
* card in a dead <a>. */
|
|
607
607
|
what_i_shipped: cardEntry({
|
|
608
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
608
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGBILLSRMcjs.WhatIShippedCard, { loading: true }),
|
|
609
609
|
decode: decodeEmployeeEntryRow,
|
|
610
610
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
611
|
-
|
|
611
|
+
_chunkGBILLSRMcjs.WhatIShippedCard,
|
|
612
612
|
{
|
|
613
613
|
entry,
|
|
614
614
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -618,10 +618,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
618
618
|
}),
|
|
619
619
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
620
620
|
how_i_work: cardEntry({
|
|
621
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGBILLSRMcjs.HowIWorkCard, { loading: true }),
|
|
622
622
|
decode: decodeEmployeeEntryRow,
|
|
623
623
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunkGBILLSRMcjs.HowIWorkCard,
|
|
625
625
|
{
|
|
626
626
|
entry,
|
|
627
627
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -631,10 +631,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
631
631
|
}),
|
|
632
632
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
633
633
|
ai_prompt: cardEntry({
|
|
634
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
634
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGBILLSRMcjs.AiPromptCard, { loading: true }),
|
|
635
635
|
decode: decodeEmployeeEntryRow,
|
|
636
636
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
-
|
|
637
|
+
_chunkGBILLSRMcjs.AiPromptCard,
|
|
638
638
|
{
|
|
639
639
|
entry,
|
|
640
640
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -718,9 +718,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
718
718
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
719
719
|
);
|
|
720
720
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
721
|
-
const { data, dataUrl, error } =
|
|
721
|
+
const { data, dataUrl, error } = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
722
722
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
723
|
-
setPages(new Map(pages).set(dataUrl,
|
|
723
|
+
setPages(new Map(pages).set(dataUrl, _chunkQCRJVO6Ycjs.extractItems.call(void 0, data)));
|
|
724
724
|
}
|
|
725
725
|
if (url === null) return { items: null, isLoading: false };
|
|
726
726
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -729,7 +729,7 @@ function gridClassFor(columns) {
|
|
|
729
729
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
730
730
|
}
|
|
731
731
|
function resolveGroupConfig(type) {
|
|
732
|
-
return _nullishCoalesce(
|
|
732
|
+
return _nullishCoalesce(_chunkGBILLSRMcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
733
733
|
label: type,
|
|
734
734
|
order: 999,
|
|
735
735
|
layout: "grid",
|
|
@@ -742,15 +742,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
742
742
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
743
743
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
744
744
|
function GroupHeading({ type }) {
|
|
745
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
745
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkGBILLSRMcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
746
746
|
}
|
|
747
747
|
function orderRailTypes(types, entityType) {
|
|
748
|
-
let ordered =
|
|
748
|
+
let ordered = _chunkGBILLSRMcjs.orderContentRefTypes.call(void 0, types);
|
|
749
749
|
if (entityType) {
|
|
750
|
-
const canonicalEntityType =
|
|
751
|
-
const sameType = ordered.filter((t) =>
|
|
750
|
+
const canonicalEntityType = _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, entityType);
|
|
751
|
+
const sameType = ordered.filter((t) => _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
752
752
|
if (sameType.length > 0) {
|
|
753
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
753
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
return ordered;
|
|
@@ -779,8 +779,8 @@ function ContentGroup({
|
|
|
779
779
|
setPagedRefsKey(refsKey);
|
|
780
780
|
setPage(1);
|
|
781
781
|
}
|
|
782
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
783
|
-
const pageRefs = refs.slice((page - 1) *
|
|
782
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkGBILLSRMcjs.GROUP_PAGE_SIZE);
|
|
783
|
+
const pageRefs = refs.slice((page - 1) * _chunkGBILLSRMcjs.GROUP_PAGE_SIZE, page * _chunkGBILLSRMcjs.GROUP_PAGE_SIZE);
|
|
784
784
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
785
785
|
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPNZAAOBcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
786
786
|
_react.useEffect.call(void 0, () => {
|
|
@@ -800,7 +800,7 @@ function ContentGroup({
|
|
|
800
800
|
}
|
|
801
801
|
if (!items) return null;
|
|
802
802
|
const rowKey = (it) => {
|
|
803
|
-
const extracted =
|
|
803
|
+
const extracted = _chunkQCRJVO6Ycjs.extractItemId.call(void 0, type, it);
|
|
804
804
|
if (extracted !== null) return extracted;
|
|
805
805
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
806
806
|
};
|
|
@@ -871,11 +871,11 @@ function RelatedContentSection({
|
|
|
871
871
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
872
872
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
873
873
|
};
|
|
874
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
874
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkGBILLSRMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
875
875
|
apiBaseUrl,
|
|
876
876
|
extraParams: { authorId, ...typeFilterParams }
|
|
877
877
|
}) : null;
|
|
878
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
878
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkGBILLSRMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
879
879
|
apiBaseUrl,
|
|
880
880
|
entityType,
|
|
881
881
|
entityId,
|
|
@@ -892,7 +892,7 @@ function RelatedContentSection({
|
|
|
892
892
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
893
893
|
[initialItems, suggestionsDisabled]
|
|
894
894
|
);
|
|
895
|
-
const { data, isLoading } =
|
|
895
|
+
const { data, isLoading } = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
896
896
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
897
897
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
898
898
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -905,7 +905,7 @@ function RelatedContentSection({
|
|
|
905
905
|
});
|
|
906
906
|
}, []);
|
|
907
907
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
908
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
908
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkQCRJVO6Ycjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
909
909
|
[buildListUrl2, apiBaseUrl]
|
|
910
910
|
);
|
|
911
911
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -929,7 +929,7 @@ function RelatedContentSection({
|
|
|
929
929
|
}
|
|
930
930
|
if (!showWhenEmpty) return null;
|
|
931
931
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkQCRJVO6Ycjs.accentSentenceMarks.call(void 0, title) }),
|
|
933
933
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
934
934
|
] });
|
|
935
935
|
}
|
|
@@ -955,7 +955,7 @@ function RelatedContentSection({
|
|
|
955
955
|
);
|
|
956
956
|
}
|
|
957
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
958
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkQCRJVO6Ycjs.accentSentenceMarks.call(void 0, title) }),
|
|
959
959
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
960
|
ContentGroup,
|
|
961
961
|
{
|
|
@@ -986,24 +986,24 @@ function RelatedContentSectionSkeleton({
|
|
|
986
986
|
adminCampaignCard,
|
|
987
987
|
extras
|
|
988
988
|
}) {
|
|
989
|
-
const canonicalEntityType = entityType ?
|
|
989
|
+
const canonicalEntityType = entityType ? _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
990
990
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
991
991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkGBILLSRMcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
993
993
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
994
994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
995
995
|
)) })
|
|
996
996
|
] }) : null;
|
|
997
997
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
998
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkQCRJVO6Ycjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
999
999
|
unknownGroup,
|
|
1000
1000
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1001
1001
|
const config = resolveGroupConfig(type);
|
|
1002
|
-
const sameType = canonicalEntityType !== null &&
|
|
1002
|
+
const sameType = canonicalEntityType !== null && _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1003
1003
|
const isList = config.layout === "list";
|
|
1004
1004
|
const count = Math.min(
|
|
1005
|
-
|
|
1006
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1005
|
+
_chunkGBILLSRMcjs.GROUP_PAGE_SIZE,
|
|
1006
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkGBILLSRMcjs.GROUP_PAGE_SIZE))
|
|
1007
1007
|
);
|
|
1008
1008
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1009
1009
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTJFVIJPVcjs = require('./chunk-TJFVIJPV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDYSMAPSIcjs = require('./chunk-DYSMAPSI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var _chunkJQ3JZLYScjs = require('./chunk-JQ3JZLYS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkM6PCHMRIcjs = require('./chunk-M6PCHMRI.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkEHANO6UEcjs = require('./chunk-EHANO6UE.cjs');
|
|
@@ -39,11 +39,11 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -199,7 +199,7 @@ function NavItemRow({
|
|
|
199
199
|
className
|
|
200
200
|
}) {
|
|
201
201
|
const label = navLinkLabel(link);
|
|
202
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
202
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
203
203
|
const singleLine = !link.description && !link.builtOn;
|
|
204
204
|
const rowClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
205
205
|
ROW_CLASSES[variant],
|
|
@@ -256,7 +256,7 @@ function loadFeatureCard() {
|
|
|
256
256
|
}
|
|
257
257
|
function subscribeToFeatureCard(listener) {
|
|
258
258
|
featureCardListeners.add(listener);
|
|
259
|
-
const cancel =
|
|
259
|
+
const cancel = _chunkSBXL5EKEcjs.afterPageLoad.call(void 0, loadFeatureCard);
|
|
260
260
|
return () => {
|
|
261
261
|
featureCardListeners.delete(listener);
|
|
262
262
|
cancel();
|
|
@@ -621,7 +621,7 @@ function SiteHeader({
|
|
|
621
621
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
622
622
|
leading,
|
|
623
623
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
625
625
|
{
|
|
626
626
|
className: "border-r border-ods-border lg:hidden",
|
|
627
627
|
onClick: mobile.onToggle,
|
|
@@ -647,7 +647,7 @@ function SiteHeader({
|
|
|
647
647
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
648
648
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
649
649
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
650
|
-
|
|
650
|
+
_chunkSBXL5EKEcjs.MingoAiButton,
|
|
651
651
|
{
|
|
652
652
|
source: mingo.source,
|
|
653
653
|
icon: mingo.icon,
|
|
@@ -751,7 +751,7 @@ function MobileNavSheetBody({
|
|
|
751
751
|
] }),
|
|
752
752
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
753
753
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
754
|
-
|
|
754
|
+
_chunkSBXL5EKEcjs.MingoAiButton,
|
|
755
755
|
{
|
|
756
756
|
variant: "field",
|
|
757
757
|
source: askAI.source,
|
|
@@ -929,7 +929,7 @@ function SiteFooter({
|
|
|
929
929
|
const columns = nav.footerColumns;
|
|
930
930
|
const accordion = columns.length > ACCORDION_OVER;
|
|
931
931
|
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
932
|
-
|
|
932
|
+
_chunkM6PCHMRIcjs.SocialIconRow,
|
|
933
933
|
{
|
|
934
934
|
compact: true,
|
|
935
935
|
links: nav.brand.social.map((link) => ({
|
|
@@ -1032,7 +1032,7 @@ var _framermotion = require('framer-motion');
|
|
|
1032
1032
|
|
|
1033
1033
|
function SlidingSidebar({ config }) {
|
|
1034
1034
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
1035
|
-
const mounted =
|
|
1035
|
+
const mounted = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
1036
1036
|
const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
|
|
1037
1037
|
const asideRef = _react.useRef.call(void 0, null);
|
|
1038
1038
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
@@ -1207,7 +1207,7 @@ function SlidingSidebar({ config }) {
|
|
|
1207
1207
|
// src/components/navigation/page-section-bar.tsx
|
|
1208
1208
|
|
|
1209
1209
|
|
|
1210
|
-
var SECTION_BAR_HEIGHT_PX =
|
|
1210
|
+
var SECTION_BAR_HEIGHT_PX = _chunkTJFVIJPVcjs.STICKY_SECTION_NAV_HEIGHT_PX;
|
|
1211
1211
|
var PAGE_ANCHOR_SCROLL_MARGIN_CLASS = "scroll-mt-36";
|
|
1212
1212
|
var PAGE_ANCHOR_SCOPE_CLASS = "[&_[id]]:scroll-mt-36";
|
|
1213
1213
|
var PAGE_ANCHOR_GAP_PX = 16;
|
|
@@ -1235,21 +1235,21 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1235
1235
|
const sections = useRenderedSections(listed);
|
|
1236
1236
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1237
1237
|
const headerBottom = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, void 0, { stuckOnly: true });
|
|
1238
|
-
const { activeSection, handleSectionClick } =
|
|
1238
|
+
const { activeSection, handleSectionClick } = _chunkTJFVIJPVcjs.useScrollSpy.call(void 0, sections, {
|
|
1239
1239
|
syncHash: true,
|
|
1240
1240
|
aboveFirst: "none",
|
|
1241
1241
|
headerOffset: headerBottom + SECTION_BAR_HEIGHT_PX + PAGE_ANCHOR_GAP_PX
|
|
1242
1242
|
});
|
|
1243
1243
|
if (sections.length === 0 && !inScope) return null;
|
|
1244
1244
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1245
|
-
|
|
1245
|
+
_chunkM6PCHMRIcjs.PageContainer,
|
|
1246
1246
|
{
|
|
1247
1247
|
as: "div",
|
|
1248
1248
|
backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1249
1249
|
backgroundStyle: { top: headerBottom },
|
|
1250
1250
|
contentPadding: SECTION_BAR_INSET_CLASS,
|
|
1251
1251
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1252
|
-
|
|
1252
|
+
_chunkTJFVIJPVcjs.StickySectionNav,
|
|
1253
1253
|
{
|
|
1254
1254
|
orientation: "horizontal",
|
|
1255
1255
|
label,
|
|
@@ -1258,7 +1258,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1258
1258
|
onSectionClick: handleSectionClick,
|
|
1259
1259
|
brand,
|
|
1260
1260
|
action: action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1261
|
+
_chunk2LT2WR4Ocjs.NavLinkAnchorViaRuntime,
|
|
1262
1262
|
{
|
|
1263
1263
|
href: action.href,
|
|
1264
1264
|
onClick: (event) => {
|
|
@@ -1345,7 +1345,7 @@ function LoadedNavigationSidebarItemButton({
|
|
|
1345
1345
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1346
1346
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
|
|
1347
1347
|
_react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
|
|
1348
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1348
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.UnreadDot, { size: "fixed" })
|
|
1349
1349
|
] }),
|
|
1350
1350
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1351
1351
|
"span",
|
|
@@ -1455,7 +1455,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
|
|
|
1455
1455
|
setTabletFor(isTablet);
|
|
1456
1456
|
if (isTablet) setTabletMinimized(true);
|
|
1457
1457
|
}
|
|
1458
|
-
const hydrated =
|
|
1458
|
+
const hydrated = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
1459
1459
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1460
1460
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1461
1461
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1647,7 +1647,7 @@ function HeaderGlobalSearch({
|
|
|
1647
1647
|
"form",
|
|
1648
1648
|
{
|
|
1649
1649
|
onSubmit: handleSubmit,
|
|
1650
|
-
...
|
|
1650
|
+
..._chunkSBXL5EKEcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
1651
1651
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1652
1652
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
1653
1653
|
// Transparent so the cell inherits the bar's background
|
|
@@ -1754,14 +1754,14 @@ function HeaderOrganizationFilter({
|
|
|
1754
1754
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
1755
1755
|
|
|
1756
1756
|
function TicketAlertsButton({ href, disabled, className }) {
|
|
1757
|
-
const live =
|
|
1757
|
+
const live = _chunkDYSMAPSIcjs.useOptionalTicketLive.call(void 0, );
|
|
1758
1758
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
1759
1759
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
1760
1760
|
const targetId = live.nextUnreadTicketId;
|
|
1761
|
-
const target = targetId ?
|
|
1761
|
+
const target = targetId ? _chunkSBXL5EKEcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
1762
1762
|
const handleClick = () => _chunkA34UNP5Vcjs.executeNavigationImperative.call(void 0, { runtime, href: target });
|
|
1763
1763
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1764
|
-
|
|
1764
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
1765
1765
|
{
|
|
1766
1766
|
icon: (
|
|
1767
1767
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -1771,7 +1771,7 @@ function TicketAlertsButton({ href, disabled, className }) {
|
|
|
1771
1771
|
// existing while updates are unread — never by tinting the glyph.
|
|
1772
1772
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
1773
1773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
1774
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
1775
1775
|
] })
|
|
1776
1776
|
),
|
|
1777
1777
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -1847,7 +1847,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1847
1847
|
leading: (
|
|
1848
1848
|
// Mobile: Burger Menu Button
|
|
1849
1849
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1850
|
-
|
|
1850
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
1851
1851
|
{
|
|
1852
1852
|
onClick: onToggleMobileMenu,
|
|
1853
1853
|
isActive: isMobileMenuOpen,
|
|
@@ -1873,7 +1873,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1873
1873
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1874
1874
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1875
1875
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1876
|
-
|
|
1876
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
1877
1877
|
{
|
|
1878
1878
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1879
1879
|
"aria-label": "Search",
|
|
@@ -1890,7 +1890,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1890
1890
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1891
1891
|
}
|
|
1892
1892
|
),
|
|
1893
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1893
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1894
1894
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1895
1895
|
NotificationsHeaderButton,
|
|
1896
1896
|
{
|
|
@@ -1909,7 +1909,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1909
1909
|
),
|
|
1910
1910
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
|
|
1911
1911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1912
|
-
|
|
1912
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
1913
1913
|
{
|
|
1914
1914
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
1915
|
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
@@ -1994,12 +1994,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1994
1994
|
);
|
|
1995
1995
|
});
|
|
1996
1996
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1997
|
-
const ctx =
|
|
1997
|
+
const ctx = _chunkM6PCHMRIcjs.useOptionalNotifications.call(void 0, );
|
|
1998
1998
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _56 => _56.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1999
1999
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _57 => _57.isOpen]), () => ( false));
|
|
2000
2000
|
const onClick = _optionalChain([ctx, 'optionalAccess', _58 => _58.toggle]);
|
|
2001
2001
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2002
|
-
|
|
2002
|
+
_chunkM6PCHMRIcjs.HeaderButton,
|
|
2003
2003
|
{
|
|
2004
2004
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
|
|
2005
2005
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2652,7 +2652,7 @@ function AppLayout({
|
|
|
2652
2652
|
}),
|
|
2653
2653
|
[]
|
|
2654
2654
|
);
|
|
2655
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2655
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2656
2656
|
topBar,
|
|
2657
2657
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2658
2658
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2676,7 +2676,7 @@ function AppLayout({
|
|
|
2676
2676
|
disabled
|
|
2677
2677
|
}
|
|
2678
2678
|
),
|
|
2679
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2679
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.NotificationDrawer, {}),
|
|
2680
2680
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2681
2681
|
"div",
|
|
2682
2682
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkM6PCHMRIcjs = require('./chunk-M6PCHMRI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -37,7 +37,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
37
37
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
38
38
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
39
39
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
40
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
40
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk2LT2WR4Ocjs.resolveSourceIcon.call(void 0, {
|
|
41
41
|
sourceRepo,
|
|
42
42
|
documentType: docType
|
|
43
43
|
});
|
|
@@ -67,7 +67,7 @@ function DocSearchBar({
|
|
|
67
67
|
renderResult
|
|
68
68
|
}) {
|
|
69
69
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
70
|
-
|
|
70
|
+
_chunkM6PCHMRIcjs.SearchInput,
|
|
71
71
|
{
|
|
72
72
|
placeholder,
|
|
73
73
|
value: query,
|
|
@@ -117,7 +117,7 @@ function mapDocSearchResults(docs) {
|
|
|
117
117
|
results.push({
|
|
118
118
|
id: `group-${entry.repo}`,
|
|
119
119
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
120
|
-
title: `${
|
|
120
|
+
title: `${_chunk2LT2WR4Ocjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk2LT2WR4Ocjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
121
121
|
path: rows[0].path,
|
|
122
122
|
type: "file",
|
|
123
123
|
metadata: {
|
|
@@ -316,7 +316,7 @@ function useDocSearch(config) {
|
|
|
316
316
|
}
|
|
317
317
|
case "ask-ai":
|
|
318
318
|
setKeepOpen(false);
|
|
319
|
-
window.dispatchEvent(new CustomEvent(
|
|
319
|
+
window.dispatchEvent(new CustomEvent(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
320
320
|
return;
|
|
321
321
|
case "route":
|
|
322
322
|
setKeepOpen(false);
|