@flamingo-stack/openframe-frontend-core 0.0.774 → 0.0.776
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-L5CKY5WA.cjs → chunk-24OYQQZC.cjs} +13 -13
- package/dist/{chunk-LEVA5WO3.cjs → chunk-2AZAJ7RK.cjs} +39 -39
- package/dist/{chunk-U332FL4C.cjs → chunk-2MF547RG.cjs} +22 -22
- package/dist/{chunk-HTSRAQVG.cjs → chunk-2YB4X5WT.cjs} +4 -4
- package/dist/{chunk-SWEPHSIP.cjs → chunk-3V27UHSH.cjs} +4 -4
- package/dist/{chunk-EQBJHJS7.cjs → chunk-6HY2NH7D.cjs} +2 -2
- package/dist/{chunk-5Z3XL2VU.cjs → chunk-AMVI5VXM.cjs} +68 -68
- package/dist/{chunk-E5E7IE7X.cjs → chunk-BDYI6HBT.cjs} +12 -12
- package/dist/{chunk-VISK6LKE.cjs → chunk-DDXQGTWB.cjs} +2 -2
- package/dist/{chunk-IQQ3SLUK.cjs → chunk-F65RSJVV.cjs} +17 -17
- package/dist/{chunk-NX7P2T2U.cjs → chunk-IXZNBDXT.cjs} +11 -11
- package/dist/{chunk-KWZ62LPZ.cjs → chunk-KM2TVQCH.cjs} +98 -98
- package/dist/{chunk-Q7EXOVMT.cjs → chunk-L55XLH5A.cjs} +29 -29
- package/dist/{chunk-TOPGBOCN.cjs → chunk-LNCBN4BL.cjs} +2 -2
- package/dist/{chunk-VWUQVJ2D.cjs → chunk-MWH5ZTMB.cjs} +77 -77
- package/dist/{chunk-Y3EBUFX4.cjs → chunk-MYHS4W2H.cjs} +1 -1
- package/dist/{chunk-BTVO676B.cjs → chunk-NWZSYG4S.cjs} +74 -74
- package/dist/{chunk-TUXPFF4P.cjs → chunk-OJLZ7PGO.cjs} +28 -28
- package/dist/{chunk-TTQHSSHF.cjs → chunk-OTZQP53Y.cjs} +3 -3
- package/dist/{chunk-ZHGOXDA3.cjs → chunk-UM6HFGTI.cjs} +64 -57
- package/dist/{chunk-USMR73ND.cjs → chunk-WAQPW4CB.cjs} +4 -4
- package/dist/{chunk-4JZC624S.cjs → chunk-XN6LXMH5.cjs} +174 -173
- package/dist/{chunk-Q6B2DC65.cjs → chunk-XT5WEHFM.cjs} +3 -3
- package/dist/{chunk-UAKXZ2KD.cjs → chunk-YFTQ2ALU.cjs} +37 -37
- package/dist/{chunk-5AOKXXHV.cjs → chunk-Z5KX56TK.cjs} +4 -4
- package/dist/{cloud-tenants-7RNZ6GHM.cjs → cloud-tenants-QFE6QMR5.cjs} +7 -7
- package/dist/components/authors/author-detail-view.d.ts.map +1 -1
- package/dist/components/authors/author-detail-view.js +12 -2
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/use-file-playback.d.ts +6 -4
- package/dist/components/features/use-file-playback.d.ts.map +1 -1
- package/dist/components/features/use-file-playback.js +16 -7
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/index.cjs +66 -56
- package/dist/components/meeting-scheduler/index.cjs +37 -37
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/related-content/card-registry.d.ts +5 -0
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/card-registry.js +2 -0
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +11 -6
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/photo-wall.d.ts +9 -1
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +8 -7
- package/dist/{devices-NNDBC6IH.cjs → devices-SFJDLXSW.cjs} +8 -8
- package/dist/{embeddable-chat-DI7ZZTBP.cjs → embeddable-chat-XZUWAK4W.cjs} +73 -73
- package/dist/index.cjs +11 -11
- package/dist/{knowledge-DPUMWQED.cjs → knowledge-SAK3ZGCO.cjs} +8 -8
- package/dist/{logs-EE25MWYM.cjs → logs-CYBGMFA5.cjs} +15 -15
- package/dist/{policies-H5LPZWEM.cjs → policies-XXDOICWF.cjs} +11 -11
- package/dist/{scripts-YGO4LOES.cjs → scripts-C5T2AQPA.cjs} +12 -12
- package/dist/{software-update-5BEB62ZH.cjs → software-update-XU5AI4TP.cjs} +10 -10
- package/dist/{video-file-player-4TXA7BZF.cjs → video-file-player-6ZFOZFER.cjs} +16 -7
- package/package.json +1 -1
- package/src/components/authors/author-detail-view.tsx +10 -2
- package/src/components/features/use-file-playback.ts +33 -14
- package/src/components/related-content/card-registry.tsx +7 -0
- package/src/components/related-content/related-content-section.tsx +12 -2
- package/src/components/ui/photo-wall.tsx +19 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXN6LXMH5cjs = require('./chunk-XN6LXMH5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkXN6LXMH5cjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkXN6LXMH5cjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkLNCBN4BLcjs = require('./chunk-LNCBN4BL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ var _chunkTOPGBOCNcjs = require('./chunk-TOPGBOCN.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkOJLZ7PGOcjs = require('./chunk-OJLZ7PGO.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -40,7 +40,7 @@ var _chunkTUXPFF4Pcjs = require('./chunk-TUXPFF4P.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkMYHS4W2Hcjs = require('./chunk-MYHS4W2H.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -453,7 +453,7 @@ function programEntry(configKey) {
|
|
|
453
453
|
// Hosts are drawn only for a type whose cards show them (its config's `cardShowsHosts`): elsewhere a record may
|
|
454
454
|
// have none.
|
|
455
455
|
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
456
|
-
|
|
456
|
+
_chunkMYHS4W2Hcjs.ProgramCardSkeleton,
|
|
457
457
|
{
|
|
458
458
|
size: size === "sm" ? "sm" : "default",
|
|
459
459
|
media: configKey === "event" ? EVENT_CARD_SKELETON_MEDIA : 0,
|
|
@@ -465,7 +465,7 @@ function programEntry(configKey) {
|
|
|
465
465
|
const config = _optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.programConfigs, 'optionalAccess', _7 => _7[configKey]]);
|
|
466
466
|
if (!config) return null;
|
|
467
467
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
468
|
-
|
|
468
|
+
_chunkMYHS4W2Hcjs.ProgramCard,
|
|
469
469
|
{
|
|
470
470
|
config,
|
|
471
471
|
item,
|
|
@@ -474,6 +474,7 @@ function programEntry(configKey) {
|
|
|
474
474
|
href: ctx.href,
|
|
475
475
|
targetPlatform: ctx.targetPlatform,
|
|
476
476
|
placeholderUrl: ctx.placeholderUrl,
|
|
477
|
+
priority: ctx.priority,
|
|
477
478
|
...ctx.anchorAttrs
|
|
478
479
|
}
|
|
479
480
|
);
|
|
@@ -482,10 +483,10 @@ function programEntry(configKey) {
|
|
|
482
483
|
}
|
|
483
484
|
function roadmapEntry(cardType) {
|
|
484
485
|
return cardEntry({
|
|
485
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
486
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
486
487
|
decode: decodeRoadmapRow,
|
|
487
488
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
-
|
|
489
|
+
_chunkMYHS4W2Hcjs.RoadmapCard,
|
|
489
490
|
{
|
|
490
491
|
item,
|
|
491
492
|
href: ctx.href,
|
|
@@ -502,25 +503,26 @@ function roadmapEntry(cardType) {
|
|
|
502
503
|
}
|
|
503
504
|
var RELATED_CARD_REGISTRY = {
|
|
504
505
|
blog_post_existing: cardEntry({
|
|
505
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
506
507
|
decode: decodeBlogRow,
|
|
507
508
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
508
|
-
|
|
509
|
+
_chunkMYHS4W2Hcjs.BlogCard,
|
|
509
510
|
{
|
|
510
511
|
post,
|
|
511
512
|
size: ctx.legacySize,
|
|
512
513
|
href: ctx.href,
|
|
513
514
|
targetPlatform: ctx.targetPlatform,
|
|
514
515
|
placeholderUrl: ctx.placeholderUrl,
|
|
516
|
+
priority: ctx.priority,
|
|
515
517
|
...ctx.anchorAttrs
|
|
516
518
|
}
|
|
517
519
|
)
|
|
518
520
|
}),
|
|
519
521
|
case_study: cardEntry({
|
|
520
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
521
523
|
decode: decodeCaseStudyRow,
|
|
522
524
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
523
|
-
|
|
525
|
+
_chunkMYHS4W2Hcjs.CaseStudyCard,
|
|
524
526
|
{
|
|
525
527
|
study,
|
|
526
528
|
size: ctx.legacySize,
|
|
@@ -532,10 +534,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
532
534
|
)
|
|
533
535
|
}),
|
|
534
536
|
customer_interview: cardEntry({
|
|
535
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
536
538
|
decode: decodeCustomerInterviewRow,
|
|
537
539
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
|
-
|
|
540
|
+
_chunkMYHS4W2Hcjs.CustomerInterviewCard,
|
|
539
541
|
{
|
|
540
542
|
interview,
|
|
541
543
|
size: ctx.legacySize,
|
|
@@ -553,13 +555,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
553
555
|
* record, and the three props the rail sets itself are read off it.
|
|
554
556
|
*/
|
|
555
557
|
product_release: cardEntry({
|
|
556
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
557
559
|
decode: asRecord,
|
|
558
560
|
render: (release, ctx) => {
|
|
559
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => (
|
|
561
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => ( _chunkMYHS4W2Hcjs.buildProductReleaseCardProps));
|
|
560
562
|
const releaseProps = buildReleaseProps(release);
|
|
561
563
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
562
|
-
|
|
564
|
+
_chunkOJLZ7PGOcjs.ProductReleaseCard,
|
|
563
565
|
{
|
|
564
566
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
565
567
|
title: str(release, "title"),
|
|
@@ -575,10 +577,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
575
577
|
webinar: programEntry("webinar"),
|
|
576
578
|
event: programEntry("event"),
|
|
577
579
|
investor_update: cardEntry({
|
|
578
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
579
581
|
decode: decodeInvestorUpdateRow,
|
|
580
582
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
581
|
-
|
|
583
|
+
_chunkMYHS4W2Hcjs.InvestorUpdateCard,
|
|
582
584
|
{
|
|
583
585
|
update,
|
|
584
586
|
size: ctx.legacySize,
|
|
@@ -593,10 +595,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
593
595
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
594
596
|
* section" rail, not this full-width row. */
|
|
595
597
|
onboarding_guide: cardEntry({
|
|
596
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
597
599
|
decode: decodeOnboardingGuideRow,
|
|
598
600
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
599
|
-
|
|
601
|
+
_chunkMYHS4W2Hcjs.OnboardingGuideCard,
|
|
600
602
|
{
|
|
601
603
|
guide,
|
|
602
604
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -613,10 +615,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
613
615
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
614
616
|
* card in a dead <a>. */
|
|
615
617
|
what_i_shipped: cardEntry({
|
|
616
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOJLZ7PGOcjs.WhatIShippedCardSkeleton, {}),
|
|
617
619
|
decode: decodeEmployeeEntryRow,
|
|
618
620
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
619
|
-
|
|
621
|
+
_chunkOJLZ7PGOcjs.WhatIShippedCard,
|
|
620
622
|
{
|
|
621
623
|
entry,
|
|
622
624
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -626,10 +628,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
626
628
|
}),
|
|
627
629
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
628
630
|
how_i_work: cardEntry({
|
|
629
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOJLZ7PGOcjs.HowIWorkCardSkeleton, {}),
|
|
630
632
|
decode: decodeEmployeeEntryRow,
|
|
631
633
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
632
|
-
|
|
634
|
+
_chunkOJLZ7PGOcjs.HowIWorkCard,
|
|
633
635
|
{
|
|
634
636
|
entry,
|
|
635
637
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -639,10 +641,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
639
641
|
}),
|
|
640
642
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
641
643
|
ai_prompt: cardEntry({
|
|
642
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOJLZ7PGOcjs.AiPromptCardSkeleton, {}),
|
|
643
645
|
decode: decodeEmployeeEntryRow,
|
|
644
646
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
645
|
-
|
|
647
|
+
_chunkOJLZ7PGOcjs.AiPromptCard,
|
|
646
648
|
{
|
|
647
649
|
entry,
|
|
648
650
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -663,7 +665,7 @@ function DefaultLinkPropsProvider({
|
|
|
663
665
|
children
|
|
664
666
|
}) {
|
|
665
667
|
if (!href) return children(null);
|
|
666
|
-
const newTab =
|
|
668
|
+
const newTab = _chunkMYHS4W2Hcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
667
669
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
668
670
|
}
|
|
669
671
|
function defaultResolveHref(ref) {
|
|
@@ -684,7 +686,8 @@ function CardForType({
|
|
|
684
686
|
targetPlatform,
|
|
685
687
|
linkProps,
|
|
686
688
|
extras,
|
|
687
|
-
adminCampaignCard
|
|
689
|
+
adminCampaignCard,
|
|
690
|
+
priority
|
|
688
691
|
}) {
|
|
689
692
|
if (type === "marketing_campaign") {
|
|
690
693
|
return adminCampaignCard ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, adminCampaignCard.Card, { campaign: item }) : null;
|
|
@@ -713,6 +716,7 @@ function CardForType({
|
|
|
713
716
|
// a numeric title reached `buildOgPlaceholderUrl` as a number. `rowString`
|
|
714
717
|
// makes the claim true.
|
|
715
718
|
placeholderUrl: _nullishCoalesce(_optionalChain([extras, 'optionalAccess', _10 => _10.buildOgPlaceholderUrl, 'optionalCall', _11 => _11(_nullishCoalesce(rowString(item, "title"), () => ( "")))]), () => ( void 0)),
|
|
719
|
+
priority,
|
|
716
720
|
extras
|
|
717
721
|
});
|
|
718
722
|
}
|
|
@@ -723,9 +727,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
723
727
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
724
728
|
);
|
|
725
729
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
726
|
-
const { data, dataUrl, error } =
|
|
730
|
+
const { data, dataUrl, error } = _chunkOJLZ7PGOcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
727
731
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
728
|
-
setPages(new Map(pages).set(dataUrl,
|
|
732
|
+
setPages(new Map(pages).set(dataUrl, _chunkMYHS4W2Hcjs.extractItems.call(void 0, data)));
|
|
729
733
|
}
|
|
730
734
|
if (url === null) return { items: null, isLoading: false };
|
|
731
735
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -734,7 +738,7 @@ function gridClassFor(columns) {
|
|
|
734
738
|
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";
|
|
735
739
|
}
|
|
736
740
|
function resolveGroupConfig(type) {
|
|
737
|
-
return _nullishCoalesce(
|
|
741
|
+
return _nullishCoalesce(_chunkOJLZ7PGOcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
738
742
|
label: type,
|
|
739
743
|
order: 999,
|
|
740
744
|
layout: "grid",
|
|
@@ -747,15 +751,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
747
751
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
748
752
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
749
753
|
function GroupHeading({ type }) {
|
|
750
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
754
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkOJLZ7PGOcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
751
755
|
}
|
|
752
756
|
function orderRailTypes(types, entityType) {
|
|
753
|
-
let ordered =
|
|
757
|
+
let ordered = _chunkOJLZ7PGOcjs.orderContentRefTypes.call(void 0, types);
|
|
754
758
|
if (entityType) {
|
|
755
|
-
const canonicalEntityType =
|
|
756
|
-
const sameType = ordered.filter((t) =>
|
|
759
|
+
const canonicalEntityType = _chunkMYHS4W2Hcjs.canonicalContentRefType.call(void 0, entityType);
|
|
760
|
+
const sameType = ordered.filter((t) => _chunkMYHS4W2Hcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
757
761
|
if (sameType.length > 0) {
|
|
758
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
762
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkMYHS4W2Hcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
759
763
|
}
|
|
760
764
|
}
|
|
761
765
|
return ordered;
|
|
@@ -771,7 +775,8 @@ function ContentGroup({
|
|
|
771
775
|
adminCampaignCard,
|
|
772
776
|
heading,
|
|
773
777
|
onLoadingChange,
|
|
774
|
-
seedRows
|
|
778
|
+
seedRows,
|
|
779
|
+
leadsRail = false
|
|
775
780
|
}) {
|
|
776
781
|
const config = resolveGroupConfig(type);
|
|
777
782
|
const isListLayout = config.layout === "list";
|
|
@@ -783,10 +788,10 @@ function ContentGroup({
|
|
|
783
788
|
setPagedRefsKey(refsKey);
|
|
784
789
|
setPage(1);
|
|
785
790
|
}
|
|
786
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
787
|
-
const pageRefs = refs.slice((page - 1) *
|
|
791
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE);
|
|
792
|
+
const pageRefs = refs.slice((page - 1) * _chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE, page * _chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE);
|
|
788
793
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
789
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLNCBN4BLcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
790
795
|
_react.useEffect.call(void 0, () => {
|
|
791
796
|
onLoadingChange(type, isLoading);
|
|
792
797
|
return () => onLoadingChange(type, false);
|
|
@@ -804,12 +809,12 @@ function ContentGroup({
|
|
|
804
809
|
}
|
|
805
810
|
if (!items) return null;
|
|
806
811
|
const rowKey = (it) => {
|
|
807
|
-
const extracted =
|
|
812
|
+
const extracted = _chunkMYHS4W2Hcjs.extractItemId.call(void 0, type, it);
|
|
808
813
|
if (extracted !== null) return extracted;
|
|
809
814
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
810
815
|
};
|
|
811
816
|
const itemById = new Map(items.map((it) => [rowKey(it), it]));
|
|
812
|
-
const cards = pageRefs.map((contentRef) => {
|
|
817
|
+
const cards = pageRefs.map((contentRef, index) => {
|
|
813
818
|
const itemId = String(contentRef.id);
|
|
814
819
|
const item = itemById.get(itemId);
|
|
815
820
|
if (!item) return null;
|
|
@@ -826,7 +831,8 @@ function ContentGroup({
|
|
|
826
831
|
targetPlatform,
|
|
827
832
|
linkProps,
|
|
828
833
|
extras,
|
|
829
|
-
adminCampaignCard
|
|
834
|
+
adminCampaignCard,
|
|
835
|
+
priority: leadsRail && page === 1 && index === 0
|
|
830
836
|
}
|
|
831
837
|
) }) }, itemId);
|
|
832
838
|
}).filter(Boolean);
|
|
@@ -874,11 +880,11 @@ function RelatedContentSection({
|
|
|
874
880
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
875
881
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
876
882
|
};
|
|
877
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
883
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkOJLZ7PGOcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
878
884
|
apiBaseUrl,
|
|
879
885
|
extraParams: { authorId, ...typeFilterParams }
|
|
880
886
|
}) : null;
|
|
881
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
887
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkOJLZ7PGOcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
882
888
|
apiBaseUrl,
|
|
883
889
|
entityType,
|
|
884
890
|
entityId,
|
|
@@ -895,7 +901,7 @@ function RelatedContentSection({
|
|
|
895
901
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
896
902
|
[initialItems, suggestionsDisabled]
|
|
897
903
|
);
|
|
898
|
-
const { data, isLoading } =
|
|
904
|
+
const { data, isLoading } = _chunkOJLZ7PGOcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
899
905
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
900
906
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
901
907
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -908,7 +914,7 @@ function RelatedContentSection({
|
|
|
908
914
|
});
|
|
909
915
|
}, []);
|
|
910
916
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
911
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
917
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkMYHS4W2Hcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
912
918
|
[buildListUrl2, apiBaseUrl]
|
|
913
919
|
);
|
|
914
920
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _13 => _13.refs]))), () => ( []));
|
|
@@ -932,7 +938,7 @@ function RelatedContentSection({
|
|
|
932
938
|
}
|
|
933
939
|
if (!showWhenEmpty) return null;
|
|
934
940
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkMYHS4W2Hcjs.accentSentenceMarks.call(void 0, title) }),
|
|
936
942
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
937
943
|
] });
|
|
938
944
|
}
|
|
@@ -958,8 +964,8 @@ function RelatedContentSection({
|
|
|
958
964
|
);
|
|
959
965
|
}
|
|
960
966
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
961
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
962
|
-
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
967
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkMYHS4W2Hcjs.accentSentenceMarks.call(void 0, title) }),
|
|
968
|
+
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
969
|
ContentGroup,
|
|
964
970
|
{
|
|
965
971
|
type,
|
|
@@ -972,7 +978,8 @@ function RelatedContentSection({
|
|
|
972
978
|
adminCampaignCard,
|
|
973
979
|
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GroupHeading, { type }),
|
|
974
980
|
onLoadingChange: onGroupLoadingChange,
|
|
975
|
-
seedRows: _optionalChain([initialRows, 'optionalAccess', _14 => _14[type]])
|
|
981
|
+
seedRows: _optionalChain([initialRows, 'optionalAccess', _14 => _14[type]]),
|
|
982
|
+
leadsRail: groupIndex === 0
|
|
976
983
|
},
|
|
977
984
|
type
|
|
978
985
|
))
|
|
@@ -988,24 +995,24 @@ function RelatedContentSectionSkeleton({
|
|
|
988
995
|
adminCampaignCard,
|
|
989
996
|
extras
|
|
990
997
|
}) {
|
|
991
|
-
const canonicalEntityType = entityType ?
|
|
998
|
+
const canonicalEntityType = entityType ? _chunkMYHS4W2Hcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
992
999
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
993
1000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
994
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
1001
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
995
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
996
1003
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
997
1004
|
)) })
|
|
998
1005
|
] }) : null;
|
|
999
1006
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
1000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
1007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkMYHS4W2Hcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
1001
1008
|
unknownGroup,
|
|
1002
1009
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1003
1010
|
const config = resolveGroupConfig(type);
|
|
1004
|
-
const sameType = canonicalEntityType !== null &&
|
|
1011
|
+
const sameType = canonicalEntityType !== null && _chunkMYHS4W2Hcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1005
1012
|
const isList = config.layout === "list";
|
|
1006
1013
|
const count = Math.min(
|
|
1007
|
-
|
|
1008
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1014
|
+
_chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE,
|
|
1015
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkOJLZ7PGOcjs.GROUP_PAGE_SIZE))
|
|
1009
1016
|
);
|
|
1010
1017
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1011
1018
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkNWZSYG4Scjs = require('./chunk-NWZSYG4S.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKM2TVQCHcjs = require('./chunk-KM2TVQCH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkKM2TVQCHcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkNWZSYG4Scjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|