@flamingo-stack/openframe-frontend-core 0.0.773 → 0.0.775
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/{chunk-VW2QQKQ6.cjs → chunk-36GYLB3Z.cjs} +15 -15
- package/dist/{chunk-5HBGBLJT.cjs → chunk-3XLDYEQD.cjs} +74 -63
- package/dist/{chunk-7P2QXBWE.cjs → chunk-42JGOJCB.cjs} +234 -213
- package/dist/{chunk-I4ZVMNHO.cjs → chunk-4LFB4YY3.cjs} +6 -6
- package/dist/{chunk-JJNOAYD4.cjs → chunk-5AOKXXHV.cjs} +4 -4
- package/dist/{chunk-MT5Z2LSV.cjs → chunk-5YJWT5ZQ.cjs} +72 -72
- package/dist/{chunk-42YLIZFD.cjs → chunk-6SJYFUGD.cjs} +22 -22
- package/dist/{chunk-BPAYT72L.cjs → chunk-BTVO676B.cjs} +148 -131
- package/dist/{chunk-TZ4GKUO2.cjs → chunk-CZIMISAR.cjs} +5 -1
- package/dist/{chunk-XVFM6SJA.cjs → chunk-E64HPPRH.cjs} +31 -31
- package/dist/{chunk-CTRJNTYU.cjs → chunk-EQBJHJS7.cjs} +2 -2
- package/dist/{chunk-6LLF2QCS.cjs → chunk-F67SEXCW.cjs} +39 -39
- package/dist/{chunk-HEEK42BL.cjs → chunk-FHTTRWAK.cjs} +81 -81
- package/dist/{chunk-NRFNZ35Z.cjs → chunk-IQQ3SLUK.cjs} +19 -19
- package/dist/{chunk-RNLRS4ID.cjs → chunk-KKAY6GPU.cjs} +2 -2
- package/dist/{chunk-ILZEXCJH.cjs → chunk-KWZ62LPZ.cjs} +124 -104
- package/dist/{chunk-KDMWXXLE.cjs → chunk-L5CKY5WA.cjs} +15 -15
- package/dist/{chunk-CW3ML76U.cjs → chunk-NTPX5GXI.cjs} +4 -0
- package/dist/{chunk-NPCFVTA2.cjs → chunk-ODF3KCRK.cjs} +31 -31
- package/dist/{chunk-YSKX42LW.cjs → chunk-PMX6QNNN.cjs} +12 -12
- package/dist/{chunk-2A56MLLL.cjs → chunk-SWEPHSIP.cjs} +4 -4
- package/dist/{chunk-7J4YWDT6.cjs → chunk-TF2XYDH3.cjs} +3 -3
- package/dist/{chunk-KSCEAIBS.cjs → chunk-TOPGBOCN.cjs} +2 -2
- package/dist/{chunk-FPCGKH5K.cjs → chunk-TUXPFF4P.cjs} +31 -29
- package/dist/{chunk-SE76YGR3.cjs → chunk-USMR73ND.cjs} +4 -4
- package/dist/{chunk-BMFU2CUL.cjs → chunk-VAGZJRYV.cjs} +4 -4
- package/dist/{chunk-3FREBLAJ.cjs → chunk-VDXBACD3.cjs} +47 -45
- package/dist/{chunk-X5Z4HRH7.cjs → chunk-VISK6LKE.cjs} +2 -2
- package/dist/{chunk-5V7BIUGA.cjs → chunk-Y3EBUFX4.cjs} +92 -21
- package/dist/{cloud-tenants-EE5ULFOK.cjs → cloud-tenants-ISGAMTJD.cjs} +11 -11
- 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 +28 -28
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/ask-prompts.js +28 -19
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +3 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +2 -0
- package/dist/components/chat/entity-cards/program-card.d.ts +6 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +19 -2
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +10 -4
- package/dist/components/chat/utils/ask-ai-events.d.ts +10 -0
- package/dist/components/chat/utils/ask-ai-events.d.ts.map +1 -1
- package/dist/components/chat/utils/ask-ai-events.js +21 -1
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +5 -2
- package/dist/components/features/video-shared.d.ts +2 -1
- package/dist/components/features/video-shared.d.ts.map +1 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +64 -13
- package/dist/components/help-center-pages/index.cjs +100 -100
- package/dist/components/index.cjs +74 -62
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/site-header.d.ts.map +1 -1
- package/dist/components/navigation/site-header.js +3 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- 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 +7 -6
- package/dist/components/related-content/index.d.ts +2 -1
- package/dist/components/related-content/index.d.ts.map +1 -1
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/related-content/related-content-section.d.ts +8 -10
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +20 -11
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/index.cjs +13 -11
- package/dist/components/ui/photo-wall.d.ts +16 -1
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +24 -9
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +9 -3
- package/dist/{devices-EBGGHEGR.cjs → devices-AHJX6ACJ.cjs} +12 -12
- package/dist/{embeddable-chat-HCT4QV35.cjs → embeddable-chat-DI7ZZTBP.cjs} +75 -75
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/hooks/use-near-viewport.js +4 -0
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-5ZSMKKTL.cjs → knowledge-FH5GVRVP.cjs} +12 -12
- package/dist/{logs-GUV3BMGC.cjs → logs-JBIHHLUQ.cjs} +19 -19
- package/dist/{policies-HPMTDOAS.cjs → policies-XLJ2ABY5.cjs} +15 -15
- package/dist/{scripts-QYYKCIUW.cjs → scripts-CQLXM7PP.cjs} +16 -16
- package/dist/{software-update-NC2KZKEI.cjs → software-update-7NYZ7L76.cjs} +14 -14
- package/dist/utils/content-ref-groups.d.ts +8 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.js +2 -0
- package/dist/utils/dismiss-cookie.d.ts +14 -0
- package/dist/utils/dismiss-cookie.d.ts.map +1 -1
- package/dist/utils/dismiss-cookie.js +4 -0
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/visitor-os.d.ts +9 -0
- package/dist/utils/visitor-os.d.ts.map +1 -1
- package/dist/utils/visitor-os.js +4 -0
- package/dist/{video-file-player-COXRF4M5.cjs → video-file-player-4TXA7BZF.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/authors/author-detail-view.tsx +10 -2
- package/src/components/chat/ask-prompts.tsx +6 -1
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +4 -0
- package/src/components/chat/entity-cards/program-card.tsx +24 -2
- package/src/components/chat/index.ts +16 -9
- package/src/components/chat/utils/ask-ai-events.ts +26 -0
- package/src/components/features/video-hover-preview.tsx +46 -37
- package/src/components/features/video-shared.tsx +2 -1
- package/src/components/features/video.tsx +102 -19
- package/src/components/navigation/mingo-ai-button.tsx +2 -1
- package/src/components/navigation/site-header.tsx +3 -1
- package/src/components/related-content/card-registry.tsx +7 -0
- package/src/components/related-content/index.ts +2 -1
- package/src/components/related-content/related-content-section.tsx +38 -14
- package/src/components/ui/photo-wall.tsx +43 -10
- package/src/components/ui/tab-navigation.tsx +18 -3
- package/src/hooks/use-near-viewport.ts +6 -0
- package/src/utils/content-ref-groups.ts +9 -0
- package/src/utils/dismiss-cookie.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/visitor-os.ts +12 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk42JGOJCBcjs = require('./chunk-42JGOJCB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -14,19 +14,19 @@ var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkE64HPPRHcjs = require('./chunk-E64HPPRH.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkBTVO676Bcjs = require('./chunk-BTVO676B.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkKWZ62LPZcjs = require('./chunk-KWZ62LPZ.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkKWZ62LPZcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkE64HPPRHcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkE64HPPRHcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkE64HPPRHcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkY3EBUFX4cjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkY3EBUFX4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkBTVO676Bcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunk42JGOJCBcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkKWZ62LPZcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkKWZ62LPZcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -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 _chunkTOPGBOCNcjs = require('./chunk-TOPGBOCN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,8 +15,8 @@ var _chunkKSCEAIBScjs = require('./chunk-KSCEAIBS.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var _chunkFPCGKH5Kcjs = require('./chunk-FPCGKH5K.cjs');
|
|
19
18
|
|
|
19
|
+
var _chunkTUXPFF4Pcjs = require('./chunk-TUXPFF4P.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -39,7 +39,8 @@ var _chunkFPCGKH5Kcjs = require('./chunk-FPCGKH5K.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -452,7 +453,7 @@ function programEntry(configKey) {
|
|
|
452
453
|
// Hosts are drawn only for a type whose cards show them (its config's `cardShowsHosts`): elsewhere a record may
|
|
453
454
|
// have none.
|
|
454
455
|
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
455
|
-
|
|
456
|
+
_chunkY3EBUFX4cjs.ProgramCardSkeleton,
|
|
456
457
|
{
|
|
457
458
|
size: size === "sm" ? "sm" : "default",
|
|
458
459
|
media: configKey === "event" ? EVENT_CARD_SKELETON_MEDIA : 0,
|
|
@@ -464,7 +465,7 @@ function programEntry(configKey) {
|
|
|
464
465
|
const config = _optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.programConfigs, 'optionalAccess', _7 => _7[configKey]]);
|
|
465
466
|
if (!config) return null;
|
|
466
467
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
-
|
|
468
|
+
_chunkY3EBUFX4cjs.ProgramCard,
|
|
468
469
|
{
|
|
469
470
|
config,
|
|
470
471
|
item,
|
|
@@ -473,6 +474,7 @@ function programEntry(configKey) {
|
|
|
473
474
|
href: ctx.href,
|
|
474
475
|
targetPlatform: ctx.targetPlatform,
|
|
475
476
|
placeholderUrl: ctx.placeholderUrl,
|
|
477
|
+
priority: ctx.priority,
|
|
476
478
|
...ctx.anchorAttrs
|
|
477
479
|
}
|
|
478
480
|
);
|
|
@@ -481,10 +483,10 @@ function programEntry(configKey) {
|
|
|
481
483
|
}
|
|
482
484
|
function roadmapEntry(cardType) {
|
|
483
485
|
return cardEntry({
|
|
484
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
486
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
485
487
|
decode: decodeRoadmapRow,
|
|
486
488
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
-
|
|
489
|
+
_chunkY3EBUFX4cjs.RoadmapCard,
|
|
488
490
|
{
|
|
489
491
|
item,
|
|
490
492
|
href: ctx.href,
|
|
@@ -501,25 +503,26 @@ function roadmapEntry(cardType) {
|
|
|
501
503
|
}
|
|
502
504
|
var RELATED_CARD_REGISTRY = {
|
|
503
505
|
blog_post_existing: cardEntry({
|
|
504
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
505
507
|
decode: decodeBlogRow,
|
|
506
508
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
509
|
+
_chunkY3EBUFX4cjs.BlogCard,
|
|
508
510
|
{
|
|
509
511
|
post,
|
|
510
512
|
size: ctx.legacySize,
|
|
511
513
|
href: ctx.href,
|
|
512
514
|
targetPlatform: ctx.targetPlatform,
|
|
513
515
|
placeholderUrl: ctx.placeholderUrl,
|
|
516
|
+
priority: ctx.priority,
|
|
514
517
|
...ctx.anchorAttrs
|
|
515
518
|
}
|
|
516
519
|
)
|
|
517
520
|
}),
|
|
518
521
|
case_study: cardEntry({
|
|
519
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
520
523
|
decode: decodeCaseStudyRow,
|
|
521
524
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
-
|
|
525
|
+
_chunkY3EBUFX4cjs.CaseStudyCard,
|
|
523
526
|
{
|
|
524
527
|
study,
|
|
525
528
|
size: ctx.legacySize,
|
|
@@ -531,10 +534,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
531
534
|
)
|
|
532
535
|
}),
|
|
533
536
|
customer_interview: cardEntry({
|
|
534
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
535
538
|
decode: decodeCustomerInterviewRow,
|
|
536
539
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
-
|
|
540
|
+
_chunkY3EBUFX4cjs.CustomerInterviewCard,
|
|
538
541
|
{
|
|
539
542
|
interview,
|
|
540
543
|
size: ctx.legacySize,
|
|
@@ -552,13 +555,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
552
555
|
* record, and the three props the rail sets itself are read off it.
|
|
553
556
|
*/
|
|
554
557
|
product_release: cardEntry({
|
|
555
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
556
559
|
decode: asRecord,
|
|
557
560
|
render: (release, ctx) => {
|
|
558
|
-
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]), () => ( _chunkY3EBUFX4cjs.buildProductReleaseCardProps));
|
|
559
562
|
const releaseProps = buildReleaseProps(release);
|
|
560
563
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
561
|
-
|
|
564
|
+
_chunkTUXPFF4Pcjs.ProductReleaseCard,
|
|
562
565
|
{
|
|
563
566
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
564
567
|
title: str(release, "title"),
|
|
@@ -574,10 +577,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
574
577
|
webinar: programEntry("webinar"),
|
|
575
578
|
event: programEntry("event"),
|
|
576
579
|
investor_update: cardEntry({
|
|
577
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
578
581
|
decode: decodeInvestorUpdateRow,
|
|
579
582
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
-
|
|
583
|
+
_chunkY3EBUFX4cjs.InvestorUpdateCard,
|
|
581
584
|
{
|
|
582
585
|
update,
|
|
583
586
|
size: ctx.legacySize,
|
|
@@ -592,10 +595,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
592
595
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
593
596
|
* section" rail, not this full-width row. */
|
|
594
597
|
onboarding_guide: cardEntry({
|
|
595
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
596
599
|
decode: decodeOnboardingGuideRow,
|
|
597
600
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
-
|
|
601
|
+
_chunkY3EBUFX4cjs.OnboardingGuideCard,
|
|
599
602
|
{
|
|
600
603
|
guide,
|
|
601
604
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -612,10 +615,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
615
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
613
616
|
* card in a dead <a>. */
|
|
614
617
|
what_i_shipped: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUXPFF4Pcjs.WhatIShippedCardSkeleton, {}),
|
|
616
619
|
decode: decodeEmployeeEntryRow,
|
|
617
620
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
621
|
+
_chunkTUXPFF4Pcjs.WhatIShippedCard,
|
|
619
622
|
{
|
|
620
623
|
entry,
|
|
621
624
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +628,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
628
|
}),
|
|
626
629
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
630
|
how_i_work: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUXPFF4Pcjs.HowIWorkCardSkeleton, {}),
|
|
629
632
|
decode: decodeEmployeeEntryRow,
|
|
630
633
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
634
|
+
_chunkTUXPFF4Pcjs.HowIWorkCard,
|
|
632
635
|
{
|
|
633
636
|
entry,
|
|
634
637
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -638,10 +641,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
638
641
|
}),
|
|
639
642
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
640
643
|
ai_prompt: cardEntry({
|
|
641
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUXPFF4Pcjs.AiPromptCardSkeleton, {}),
|
|
642
645
|
decode: decodeEmployeeEntryRow,
|
|
643
646
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
-
|
|
647
|
+
_chunkTUXPFF4Pcjs.AiPromptCard,
|
|
645
648
|
{
|
|
646
649
|
entry,
|
|
647
650
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -662,7 +665,7 @@ function DefaultLinkPropsProvider({
|
|
|
662
665
|
children
|
|
663
666
|
}) {
|
|
664
667
|
if (!href) return children(null);
|
|
665
|
-
const newTab =
|
|
668
|
+
const newTab = _chunkY3EBUFX4cjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
666
669
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
667
670
|
}
|
|
668
671
|
function defaultResolveHref(ref) {
|
|
@@ -683,7 +686,8 @@ function CardForType({
|
|
|
683
686
|
targetPlatform,
|
|
684
687
|
linkProps,
|
|
685
688
|
extras,
|
|
686
|
-
adminCampaignCard
|
|
689
|
+
adminCampaignCard,
|
|
690
|
+
priority
|
|
687
691
|
}) {
|
|
688
692
|
if (type === "marketing_campaign") {
|
|
689
693
|
return adminCampaignCard ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, adminCampaignCard.Card, { campaign: item }) : null;
|
|
@@ -712,17 +716,20 @@ function CardForType({
|
|
|
712
716
|
// a numeric title reached `buildOgPlaceholderUrl` as a number. `rowString`
|
|
713
717
|
// makes the claim true.
|
|
714
718
|
placeholderUrl: _nullishCoalesce(_optionalChain([extras, 'optionalAccess', _10 => _10.buildOgPlaceholderUrl, 'optionalCall', _11 => _11(_nullishCoalesce(rowString(item, "title"), () => ( "")))]), () => ( void 0)),
|
|
719
|
+
priority,
|
|
715
720
|
extras
|
|
716
721
|
});
|
|
717
722
|
}
|
|
718
|
-
function useGroupItems(type, refs, buildUrl) {
|
|
723
|
+
function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
719
724
|
const ids = refs.map((r) => r.id);
|
|
720
725
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
721
|
-
const [pages, setPages] = _react.useState.call(void 0,
|
|
726
|
+
const [pages, setPages] = _react.useState.call(void 0,
|
|
727
|
+
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
728
|
+
);
|
|
722
729
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
723
|
-
const { data, dataUrl, error } =
|
|
730
|
+
const { data, dataUrl, error } = _chunkTUXPFF4Pcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
724
731
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
725
|
-
setPages(new Map(pages).set(dataUrl,
|
|
732
|
+
setPages(new Map(pages).set(dataUrl, _chunkY3EBUFX4cjs.extractItems.call(void 0, data)));
|
|
726
733
|
}
|
|
727
734
|
if (url === null) return { items: null, isLoading: false };
|
|
728
735
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -731,29 +738,28 @@ function gridClassFor(columns) {
|
|
|
731
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";
|
|
732
739
|
}
|
|
733
740
|
function resolveGroupConfig(type) {
|
|
734
|
-
return _nullishCoalesce(
|
|
741
|
+
return _nullishCoalesce(_chunkTUXPFF4Pcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
735
742
|
label: type,
|
|
736
743
|
order: 999,
|
|
737
744
|
layout: "grid",
|
|
738
745
|
gridSize: "default"
|
|
739
746
|
}));
|
|
740
747
|
}
|
|
741
|
-
var GROUP_PAGE_SIZE = 12;
|
|
742
748
|
var GROUP_CLASS = "space-y-4";
|
|
743
749
|
var GROUP_LIST_CLASS = "space-y-4";
|
|
744
750
|
var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
745
751
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
746
752
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
747
753
|
function GroupHeading({ type }) {
|
|
748
|
-
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: _chunkTUXPFF4Pcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
749
755
|
}
|
|
750
756
|
function orderRailTypes(types, entityType) {
|
|
751
|
-
let ordered =
|
|
757
|
+
let ordered = _chunkTUXPFF4Pcjs.orderContentRefTypes.call(void 0, types);
|
|
752
758
|
if (entityType) {
|
|
753
|
-
const canonicalEntityType =
|
|
754
|
-
const sameType = ordered.filter((t) =>
|
|
759
|
+
const canonicalEntityType = _chunkY3EBUFX4cjs.canonicalContentRefType.call(void 0, entityType);
|
|
760
|
+
const sameType = ordered.filter((t) => _chunkY3EBUFX4cjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
755
761
|
if (sameType.length > 0) {
|
|
756
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
762
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkY3EBUFX4cjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
757
763
|
}
|
|
758
764
|
}
|
|
759
765
|
return ordered;
|
|
@@ -768,7 +774,9 @@ function ContentGroup({
|
|
|
768
774
|
extras,
|
|
769
775
|
adminCampaignCard,
|
|
770
776
|
heading,
|
|
771
|
-
onLoadingChange
|
|
777
|
+
onLoadingChange,
|
|
778
|
+
seedRows,
|
|
779
|
+
leadsRail = false
|
|
772
780
|
}) {
|
|
773
781
|
const config = resolveGroupConfig(type);
|
|
774
782
|
const isListLayout = config.layout === "list";
|
|
@@ -780,10 +788,10 @@ function ContentGroup({
|
|
|
780
788
|
setPagedRefsKey(refsKey);
|
|
781
789
|
setPage(1);
|
|
782
790
|
}
|
|
783
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
784
|
-
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
785
|
-
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
786
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
791
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE);
|
|
792
|
+
const pageRefs = refs.slice((page - 1) * _chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE, page * _chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE);
|
|
793
|
+
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
794
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTOPGBOCNcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
787
795
|
_react.useEffect.call(void 0, () => {
|
|
788
796
|
onLoadingChange(type, isLoading);
|
|
789
797
|
return () => onLoadingChange(type, false);
|
|
@@ -801,12 +809,12 @@ function ContentGroup({
|
|
|
801
809
|
}
|
|
802
810
|
if (!items) return null;
|
|
803
811
|
const rowKey = (it) => {
|
|
804
|
-
const extracted =
|
|
812
|
+
const extracted = _chunkY3EBUFX4cjs.extractItemId.call(void 0, type, it);
|
|
805
813
|
if (extracted !== null) return extracted;
|
|
806
814
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
807
815
|
};
|
|
808
816
|
const itemById = new Map(items.map((it) => [rowKey(it), it]));
|
|
809
|
-
const cards = pageRefs.map((contentRef) => {
|
|
817
|
+
const cards = pageRefs.map((contentRef, index) => {
|
|
810
818
|
const itemId = String(contentRef.id);
|
|
811
819
|
const item = itemById.get(itemId);
|
|
812
820
|
if (!item) return null;
|
|
@@ -823,7 +831,8 @@ function ContentGroup({
|
|
|
823
831
|
targetPlatform,
|
|
824
832
|
linkProps,
|
|
825
833
|
extras,
|
|
826
|
-
adminCampaignCard
|
|
834
|
+
adminCampaignCard,
|
|
835
|
+
priority: leadsRail && page === 1 && index === 0
|
|
827
836
|
}
|
|
828
837
|
) }) }, itemId);
|
|
829
838
|
}).filter(Boolean);
|
|
@@ -852,6 +861,7 @@ function RelatedContentSection({
|
|
|
852
861
|
sameTypeMinResults,
|
|
853
862
|
includeTypes,
|
|
854
863
|
initialItems,
|
|
864
|
+
initialRows,
|
|
855
865
|
title = "Related Content",
|
|
856
866
|
columns = 2,
|
|
857
867
|
excludeTypes,
|
|
@@ -870,11 +880,11 @@ function RelatedContentSection({
|
|
|
870
880
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
871
881
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
872
882
|
};
|
|
873
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
883
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkTUXPFF4Pcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
874
884
|
apiBaseUrl,
|
|
875
885
|
extraParams: { authorId, ...typeFilterParams }
|
|
876
886
|
}) : null;
|
|
877
|
-
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 ? _chunkTUXPFF4Pcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
878
888
|
apiBaseUrl,
|
|
879
889
|
entityType,
|
|
880
890
|
entityId,
|
|
@@ -891,7 +901,7 @@ function RelatedContentSection({
|
|
|
891
901
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
892
902
|
[initialItems, suggestionsDisabled]
|
|
893
903
|
);
|
|
894
|
-
const { data, isLoading } =
|
|
904
|
+
const { data, isLoading } = _chunkTUXPFF4Pcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
895
905
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
896
906
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
897
907
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -904,7 +914,7 @@ function RelatedContentSection({
|
|
|
904
914
|
});
|
|
905
915
|
}, []);
|
|
906
916
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
907
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
917
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkY3EBUFX4cjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
908
918
|
[buildListUrl2, apiBaseUrl]
|
|
909
919
|
);
|
|
910
920
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _13 => _13.refs]))), () => ( []));
|
|
@@ -928,7 +938,7 @@ function RelatedContentSection({
|
|
|
928
938
|
}
|
|
929
939
|
if (!showWhenEmpty) return null;
|
|
930
940
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
931
|
-
/* @__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: _chunkY3EBUFX4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
932
942
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
933
943
|
] });
|
|
934
944
|
}
|
|
@@ -954,8 +964,8 @@ function RelatedContentSection({
|
|
|
954
964
|
);
|
|
955
965
|
}
|
|
956
966
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
958
|
-
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
967
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkY3EBUFX4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
968
|
+
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
969
|
ContentGroup,
|
|
960
970
|
{
|
|
961
971
|
type,
|
|
@@ -967,7 +977,9 @@ function RelatedContentSection({
|
|
|
967
977
|
extras,
|
|
968
978
|
adminCampaignCard,
|
|
969
979
|
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GroupHeading, { type }),
|
|
970
|
-
onLoadingChange: onGroupLoadingChange
|
|
980
|
+
onLoadingChange: onGroupLoadingChange,
|
|
981
|
+
seedRows: _optionalChain([initialRows, 'optionalAccess', _14 => _14[type]]),
|
|
982
|
+
leadsRail: groupIndex === 0
|
|
971
983
|
},
|
|
972
984
|
type
|
|
973
985
|
))
|
|
@@ -983,24 +995,24 @@ function RelatedContentSectionSkeleton({
|
|
|
983
995
|
adminCampaignCard,
|
|
984
996
|
extras
|
|
985
997
|
}) {
|
|
986
|
-
const canonicalEntityType = entityType ?
|
|
998
|
+
const canonicalEntityType = entityType ? _chunkY3EBUFX4cjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
987
999
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
988
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" }) }),
|
|
989
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: GROUP_PAGE_SIZE }, (_, i) => (
|
|
1001
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
990
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
991
1003
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
992
1004
|
)) })
|
|
993
1005
|
] }) : null;
|
|
994
1006
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
995
|
-
/* @__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 ? _chunkY3EBUFX4cjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
996
1008
|
unknownGroup,
|
|
997
1009
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
998
1010
|
const config = resolveGroupConfig(type);
|
|
999
|
-
const sameType = canonicalEntityType !== null &&
|
|
1011
|
+
const sameType = canonicalEntityType !== null && _chunkY3EBUFX4cjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1000
1012
|
const isList = config.layout === "list";
|
|
1001
1013
|
const count = Math.min(
|
|
1002
|
-
GROUP_PAGE_SIZE,
|
|
1003
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( GROUP_PAGE_SIZE))
|
|
1014
|
+
_chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE,
|
|
1015
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkTUXPFF4Pcjs.GROUP_PAGE_SIZE))
|
|
1004
1016
|
);
|
|
1005
1017
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1006
1018
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -1017,5 +1029,4 @@ function RelatedContentSectionSkeleton({
|
|
|
1017
1029
|
|
|
1018
1030
|
|
|
1019
1031
|
|
|
1020
|
-
|
|
1021
|
-
exports.GROUP_PAGE_SIZE = GROUP_PAGE_SIZE; exports.RelatedContentSection = RelatedContentSection; exports.RelatedContentSectionSkeleton = RelatedContentSectionSkeleton;
|
|
1032
|
+
exports.RelatedContentSection = RelatedContentSection; exports.RelatedContentSectionSkeleton = RelatedContentSectionSkeleton;
|